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

UNKNOWN_ERROR : string

unkown error

+
UNKNOWN_ERROR_PARTIAL_SYNC : string
+

The synchronization is complete but some elements may be missing

+
USER_ACTION_NEEDED_SCA_REQUIRED : string

Renewal of authentication required

@@ -1523,6 +1526,12 @@ User needs to accept new terms ## UNKNOWN\_ERROR : 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