Add isPermanentlyDeleted field to Note model and update sync logic
Despliegue Automático / desplegar (push) Successful in 43s
Despliegue Automático / desplegar (push) Successful in 43s
This commit is contained in:
@@ -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"
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user