diff --git a/CHANGELOG.md b/CHANGELOG.md index 7248fed951b9c64b162a3ff814b4bc681313053c..d7a39fcd5b5ff12cd0649dcb8240a7d5f0cab39b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,37 +4,18 @@ All notable changes to this project will be documented in this file. See [standa ### [2.1.1](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/compare/v2.1.0...v2.1.1) (2024-10-01) - ### Bug Fixes * **deps:** revert sentry bump ([5f79237](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/commit/5f792376e51e038270e9f5d153e10e7a275ad72d)) -## [1.2.0](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/compare/v1.0.5...v1.2.0) (2023-01-05) - - -### Features - -* **sentry:** add sentry ([b96d775](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/commit/b96d7753f3e69e0a47a25d0f904f0610e2ef8169)) -* update url calls to adict/v2 ([de41dba](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/commit/de41dba688aacdc904d802b2c9155ba3308687d2)) - -### [1.0.5](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/compare/2ac37d312a18c33e2f5c86dbba585526b28c972f...v1.0.5) (2022-10-24) - - -### Bug Fixes - -* **getData:** added vendor_down error to new codes responses from grdf ([7c753a4](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/commit/7c753a43a5fcf92832175025bb8d8d42970e81e1)) -* handling of grdf error code. ([2ac37d3](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/commit/2ac37d312a18c33e2f5c86dbba585526b28c972f)) - ## [2.1.0](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/compare/v2.0.3...v2.1.0) (2024-09-30) - ### Features * fetch BO for GRDF access token ([cb2d483](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/commit/cb2d483e7fb97037287d8dd9a47f67d35ee0fc4d)) * **SAU:** Add the instance name as a Sentry tag ([03c6956](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/commit/03c6956521bb2eb1a61e2f0e4a325810edaee81e)) * update prices ([1d12121](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/commit/1d12121156c43e99ef2eb89aac4c66e856601ab8)) - ### Bug Fixes * **client-connect:** prevent empty consent creation ([de94c6f](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/commit/de94c6f898cc43a49f83d674fea99421f079e0ca)) @@ -48,14 +29,12 @@ All notable changes to this project will be documented in this file. See [standa ### [2.0.1](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/compare/v2.0.0...v2.0.1) (2024-05-30) - ### Bug Fixes * missing pce when coming from client connect ([02b2ebd](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/commit/02b2ebdb881877c91a16c6e25b6a2a84cc5ebc1c)) ## [2.0.0](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/compare/v1.3.1...v2.0.0) (2024-05-29) - ### ⚠ BREAKING CHANGES * **errors:** update generic errors @@ -69,7 +48,6 @@ All notable changes to this project will be documented in this file. See [standa * update login method to "Tier direct" ([25bf661](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/commit/25bf661f2779b9b6e779c7683b93a8d333676717)) * update login method to "Tier direct" ([9193c2b](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/commit/9193c2b6448de2b29695b8748c29c196e3a9e550)) - ### Bug Fixes * boUrlGRDF ([1d05a12](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/commit/1d05a12913ffe8eb74035268d75b4d17f1830644)) @@ -84,13 +62,11 @@ All notable changes to this project will be documented in this file. See [standa ### 1.3.1 (2023-11-29) - ### Features * **sentry:** add sentry ([5fe26ee](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/commit/5fe26eea5e2e46ec0d93317836ca85b7e705b943)) * update url calls to adict/v2 ([2d89818](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/commit/2d89818fc4ad589a4630fd0f6d23d71121d09a22)) - ### Bug Fixes * **error:** 🥅 catch error 1000005 - droit d'accès révoqué ([9b21ec3](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/commit/9b21ec345f91f1058d2128a44124435e94bc5eec)) @@ -103,7 +79,6 @@ All notable changes to this project will be documented in this file. See [standa ### [1.2.1](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/compare/v1.2.0...v1.2.1) (2023-04-11) - ### Bug Fixes * **error:** 🥅 catch error 1000005 - droit d'accès révoqué ([115d428](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/commit/115d42892fc50d538d60b5dafe7e3ba31337105a)) @@ -111,7 +86,6 @@ All notable changes to this project will be documented in this file. See [standa ## [1.2.0](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/compare/v1.0.5...v1.2.0) (2023-01-05) - ### Features * **sentry:** add sentry ([b96d775](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/commit/b96d7753f3e69e0a47a25d0f904f0610e2ef8169)) @@ -119,7 +93,6 @@ All notable changes to this project will be documented in this file. See [standa ### 1.0.5 (2022-10-24) - ### Bug Fixes * **getData:** added vendor_down error to new codes responses from grdf ([7c753a4](https://forge.grandlyon.com/web-et-numerique/llle_project/grdf-konnector/commit/7c753a43a5fcf92832175025bb8d8d42970e81e1)) diff --git a/src/helpers/isVendorDown.js b/src/helpers/isVendorDown.js deleted file mode 100644 index 5a56595f19c872fcc8f3f08c58ec332d5cf04902..0000000000000000000000000000000000000000 --- a/src/helpers/isVendorDown.js +++ /dev/null @@ -1,22 +0,0 @@ -/* -Error handling is based on API GRDF ADICT_Messages erreurs B2B_PROD_v1.4 -some code number can be duplicated depending on the http status -isVendorDown only handle codes associated with http 200 response, all http error should be catched beforehand. -*/ -function isVendorDown(code) { - switch (code) { - case '2000100': - case '1000009': - case '1000010': - case '1000011': - case '1000006': - case '1000016': - case '1000002': - case '1000000': - return true - default: - return false - } -} - -module.exports = isVendorDown diff --git a/src/index.js b/src/index.js index 695f8c2fb7687c7eff6a65a136ad59ae6a920463..85ce25c386b89017d9504bb0d5aca61071b7ecb1 100755 --- a/src/index.js +++ b/src/index.js @@ -86,11 +86,6 @@ async function start(fields, cozyParameters) { log('info', `OAuth callback result found, using pce ${pce}`) } - if (!pce && this._account?.oauth_callback_results?.pce) { - pce = this._account.oauth_callback_results.pce - log('info', `OAuth callback result found, using pce ${pce}`) - } - const transaction = Sentry.startTransaction({ op: 'konnector', name: 'start',