Skip to content

Commit

Permalink
feat: Add partial sync error
Browse files Browse the repository at this point in the history
  • Loading branch information
doubleface authored and doubleface committed Jan 29, 2024
1 parent 161b8c0 commit 62f9d9b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/cozy-konnector-libs/docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ DefinePlugin</p>
<dt><a href="#UNKNOWN_ERROR">UNKNOWN_ERROR</a> : <code>string</code></dt>
<dd><p>unkown error</p>
</dd>
<dt><a href="#UNKNOWN_ERROR_PARTIAL_SYNC">UNKNOWN_ERROR_PARTIAL_SYNC</a> : <code>string</code></dt>
<dd><p>The synchronization is complete but some elements may be missing</p>
</dd>
<dt><a href="#USER_ACTION_NEEDED_SCA_REQUIRED">USER_ACTION_NEEDED_SCA_REQUIRED</a> : <code>string</code></dt>
<dd><p>Renewal of authentication required</p>
</dd>
Expand Down Expand Up @@ -1523,6 +1526,12 @@ User needs to accept new terms
## UNKNOWN\_ERROR : <code>string</code>
unkown error

**Kind**: global constant
<a name="UNKNOWN_ERROR_PARTIAL_SYNC"></a>

## UNKNOWN\_ERROR\_PARTIAL\_SYNC : <code>string</code>
The synchronization is complete but some elements may be missing

**Kind**: global constant
<a name="USER_ACTION_NEEDED_SCA_REQUIRED"></a>

Expand Down
8 changes: 8 additions & 0 deletions packages/cozy-konnector-libs/src/helpers/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 62f9d9b

Please sign in to comment.