@floristcloud/api-lib 1.2.169 → 1.2.170
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/constant/error.js +6 -0
- package/constant/error.ts +6 -0
- package/package.json +1 -1
package/build/constant/error.js
CHANGED
|
@@ -1644,6 +1644,12 @@ exports.ERRORS = {
|
|
|
1644
1644
|
ONE_C_INVALID_CREDENTIALS: { code: 'OC003', message: '1C credentials are invalid', httpCode: 401 },
|
|
1645
1645
|
ONE_C_INTEGRATION_DISABLED: { code: 'OC004', message: '1C integration is disabled for this company', httpCode: 409 },
|
|
1646
1646
|
ONE_C_SESSION_INVALID: { code: 'OC005', message: '1C session is missing or expired', httpCode: 401 },
|
|
1647
|
+
ONE_C_EXCHANGE_FILE_MISSING: { code: 'OC006', message: '1C exchange file was not uploaded or has expired', httpCode: 404 },
|
|
1648
|
+
ONE_C_IMPORT_BUSY: { code: 'OC007', message: 'Another 1C catalog import is running for this company', httpCode: 409 },
|
|
1649
|
+
ONE_C_IMPORT_FAILED: { code: 'OC008', message: 'Failed to import 1C catalog', httpCode: 500 },
|
|
1650
|
+
ONE_C_ORDERS_EXPORT_FAILED: { code: 'OC009', message: 'Failed to export orders to 1C', httpCode: 500 },
|
|
1651
|
+
ONE_C_ORDERS_IMPORT_FAILED: { code: 'OC010', message: 'Failed to apply orders from 1C', httpCode: 500 },
|
|
1652
|
+
ONE_C_ACTOR_NOT_FOUND: { code: 'OC011', message: 'No company admin to attribute 1C changes to', httpCode: 409 },
|
|
1647
1653
|
// COMPANY INTEGRATION (общая запись интеграции компании)
|
|
1648
1654
|
COMPANY_INTEGRATION_FETCH_FAILED: { code: 'CINT001', message: 'Failed to read company integration', httpCode: 500 },
|
|
1649
1655
|
COMPANY_INTEGRATION_NOT_SAVED: { code: 'CINT002', message: 'Failed to save company integration', httpCode: 500 },
|
package/constant/error.ts
CHANGED
|
@@ -1711,6 +1711,12 @@ export const ERRORS = {
|
|
|
1711
1711
|
ONE_C_INVALID_CREDENTIALS: { code: 'OC003', message: '1C credentials are invalid', httpCode: 401 },
|
|
1712
1712
|
ONE_C_INTEGRATION_DISABLED: { code: 'OC004', message: '1C integration is disabled for this company', httpCode: 409 },
|
|
1713
1713
|
ONE_C_SESSION_INVALID: { code: 'OC005', message: '1C session is missing or expired', httpCode: 401 },
|
|
1714
|
+
ONE_C_EXCHANGE_FILE_MISSING: { code: 'OC006', message: '1C exchange file was not uploaded or has expired', httpCode: 404 },
|
|
1715
|
+
ONE_C_IMPORT_BUSY: { code: 'OC007', message: 'Another 1C catalog import is running for this company', httpCode: 409 },
|
|
1716
|
+
ONE_C_IMPORT_FAILED: { code: 'OC008', message: 'Failed to import 1C catalog', httpCode: 500 },
|
|
1717
|
+
ONE_C_ORDERS_EXPORT_FAILED: { code: 'OC009', message: 'Failed to export orders to 1C', httpCode: 500 },
|
|
1718
|
+
ONE_C_ORDERS_IMPORT_FAILED: { code: 'OC010', message: 'Failed to apply orders from 1C', httpCode: 500 },
|
|
1719
|
+
ONE_C_ACTOR_NOT_FOUND: { code: 'OC011', message: 'No company admin to attribute 1C changes to', httpCode: 409 },
|
|
1714
1720
|
|
|
1715
1721
|
// COMPANY INTEGRATION (общая запись интеграции компании)
|
|
1716
1722
|
COMPANY_INTEGRATION_FETCH_FAILED: { code: 'CINT001', message: 'Failed to read company integration', httpCode: 500 },
|