@floristcloud/api-lib 1.0.19 → 1.0.20
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 +12 -0
- package/constant/error.ts +12 -0
- package/package.json +1 -1
package/build/constant/error.js
CHANGED
|
@@ -198,6 +198,8 @@ exports.ERRORS = {
|
|
|
198
198
|
httpCode: 400,
|
|
199
199
|
},
|
|
200
200
|
PRODUCT_MULTIPLICITY_OPTION_NOT_FOUND: { code: 'P017', message: 'Product multiplicity option not found', httpCode: 404 },
|
|
201
|
+
PRODUCT_MULTIPLICITY_OPTION_USED_IN_ORDER: { code: 'P018', message: 'Product multiplicity option used in order', httpCode: 400 },
|
|
202
|
+
PRODUCT_MULTIPLICITY_OPTION_NOT_DELETED: { code: 'P019', message: 'Failed to delete product multiplicity option', httpCode: 500 },
|
|
201
203
|
// PRODUCT CONFIGURATION
|
|
202
204
|
PRODUCT_CONFIGURATION_NOT_CREATED: { code: 'PCFG001', message: 'Failed to create product configuration', httpCode: 500 },
|
|
203
205
|
PRODUCT_CONFIGURATION_NOT_DELETED: { code: 'PCFG002', message: 'Failed to delete product configuration', httpCode: 500 },
|
|
@@ -683,6 +685,16 @@ exports.ERRORS = {
|
|
|
683
685
|
httpCode: 400,
|
|
684
686
|
},
|
|
685
687
|
PRE_ORDER_COLLECTION_ITEM_EXPORT_FAILED: { code: 'POCI017', message: 'Failed to export pre order collection item', httpCode: 500 },
|
|
688
|
+
PRE_ORDER_COLLECTION_ITEM_MULTIPLICITY_OPTION_USED_IN_PRE_ORDER: {
|
|
689
|
+
code: 'POCI018',
|
|
690
|
+
message: 'Multiplicity option used in pre order',
|
|
691
|
+
httpCode: 400,
|
|
692
|
+
},
|
|
693
|
+
PRE_ORDER_COLLECTION_ITEM_MULTIPLICITY_OPTION_NOT_DELETED: {
|
|
694
|
+
code: 'POCI019',
|
|
695
|
+
message: 'Failed to delete multiplicity option',
|
|
696
|
+
httpCode: 500,
|
|
697
|
+
},
|
|
686
698
|
// EMPLOYEE SCHEDULE
|
|
687
699
|
EMPLOYEE_SCHEDULE_NOT_CREATED: { code: 'ES001', message: 'Failed to create employee schedule', httpCode: 500 },
|
|
688
700
|
EMPLOYEE_SCHEDULE_NOT_DELETED: { code: 'ES002', message: 'Failed to delete employee schedule', httpCode: 500 },
|
package/constant/error.ts
CHANGED
|
@@ -205,6 +205,8 @@ export const ERRORS = {
|
|
|
205
205
|
httpCode: 400,
|
|
206
206
|
},
|
|
207
207
|
PRODUCT_MULTIPLICITY_OPTION_NOT_FOUND: { code: 'P017', message: 'Product multiplicity option not found', httpCode: 404 },
|
|
208
|
+
PRODUCT_MULTIPLICITY_OPTION_USED_IN_ORDER: { code: 'P018', message: 'Product multiplicity option used in order', httpCode: 400 },
|
|
209
|
+
PRODUCT_MULTIPLICITY_OPTION_NOT_DELETED: { code: 'P019', message: 'Failed to delete product multiplicity option', httpCode: 500 },
|
|
208
210
|
|
|
209
211
|
// PRODUCT CONFIGURATION
|
|
210
212
|
PRODUCT_CONFIGURATION_NOT_CREATED: { code: 'PCFG001', message: 'Failed to create product configuration', httpCode: 500 },
|
|
@@ -715,6 +717,16 @@ export const ERRORS = {
|
|
|
715
717
|
httpCode: 400,
|
|
716
718
|
},
|
|
717
719
|
PRE_ORDER_COLLECTION_ITEM_EXPORT_FAILED: { code: 'POCI017', message: 'Failed to export pre order collection item', httpCode: 500 },
|
|
720
|
+
PRE_ORDER_COLLECTION_ITEM_MULTIPLICITY_OPTION_USED_IN_PRE_ORDER: {
|
|
721
|
+
code: 'POCI018',
|
|
722
|
+
message: 'Multiplicity option used in pre order',
|
|
723
|
+
httpCode: 400,
|
|
724
|
+
},
|
|
725
|
+
PRE_ORDER_COLLECTION_ITEM_MULTIPLICITY_OPTION_NOT_DELETED: {
|
|
726
|
+
code: 'POCI019',
|
|
727
|
+
message: 'Failed to delete multiplicity option',
|
|
728
|
+
httpCode: 500,
|
|
729
|
+
},
|
|
718
730
|
|
|
719
731
|
// EMPLOYEE SCHEDULE
|
|
720
732
|
EMPLOYEE_SCHEDULE_NOT_CREATED: { code: 'ES001', message: 'Failed to create employee schedule', httpCode: 500 },
|