Add isPermanentlyDeleted field to Note model and update sync logic
Despliegue Automático / desplegar (push) Successful in 43s

This commit is contained in:
2026-05-19 11:08:30 +02:00
parent fa78a7e9d1
commit 73a8932c64
3 changed files with 36 additions and 16 deletions
+3
View File
@@ -181,6 +181,7 @@ Body ejemplo:
"serverVersion": 1,
"position": 2000,
"isDeleted": true,
"isPermanentlyDeleted": false,
"updatedAt": "2026-05-18T10:10:00.000Z"
}
]
@@ -239,6 +240,7 @@ Campos:
- `serverVersion`: `number` entero >= 0, obligatorio. Es la versión base local con la que se hizo el cambio.
- `position`: `number`, opcional.
- `isDeleted`: `boolean`, opcional, por defecto `false`.
- `isPermanentlyDeleted`: `boolean`, opcional, por defecto `false`. Si llega en `true`, el servidor guarda la nota con `encrypted_title` y `encrypted_body` vacíos, `position` en `0` y `isDeleted` en `true`.
- `updatedAt`: `ISO date string`, opcional (solo informativo para UI).
#### Response
@@ -260,6 +262,7 @@ Respuesta ejemplo (nuevo contrato):
"serverVersion": 3,
"position": 0,
"isDeleted": false,
"isPermanentlyDeleted": false,
"updatedAt": "2026-05-18T10:15:00.000Z"
}
]