diff --git a/packages/cozy-konnector-libs/docs/api.md b/packages/cozy-konnector-libs/docs/api.md index 240321d2a..534b0f264 100644 --- a/packages/cozy-konnector-libs/docs/api.md +++ b/packages/cozy-konnector-libs/docs/api.md @@ -159,6 +159,9 @@ DefinePlugin
string
unkown error
string
The synchronization is complete but some elements may be missing
+string
Renewal of authentication required
string
unkown error
+**Kind**: global constant
+
+
+## UNKNOWN\_ERROR\_PARTIAL\_SYNC : string
+The synchronization is complete but some elements may be missing
+
**Kind**: global constant
diff --git a/packages/cozy-konnector-libs/src/helpers/errors.js b/packages/cozy-konnector-libs/src/helpers/errors.js
index 981b1d294..bacea5381 100644
--- a/packages/cozy-konnector-libs/src/helpers/errors.js
+++ b/packages/cozy-konnector-libs/src/helpers/errors.js
@@ -134,6 +134,13 @@ const TERMS_VERSION_MISMATCH = 'TERMS_VERSION_MISMATCH'
*/
const UNKNOWN_ERROR = 'UNKNOWN_ERROR'
+/**
+ * The synchronization is complete but some elements may be missing
+ *
+ * @type {string}
+ */
+const UNKNOWN_ERROR_PARTIAL_SYNC = 'UNKNOWN_ERROR.PARTIAL_SYNC'
+
/**
* Renewal of authentication required
*
@@ -197,6 +204,7 @@ module.exports = {
MAINTENANCE,
TERMS_VERSION_MISMATCH,
UNKNOWN_ERROR,
+ UNKNOWN_ERROR_PARTIAL_SYNC,
VENDOR_DOWN,
VENDOR_DOWN_BANK_DOWN,
VENDOR_DOWN_LINXO_DOWN