@floristcloud/api-lib 1.2.24 → 1.2.25
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 +35 -0
- package/build/enum/index.js +2 -0
- package/build/enum/outbound-sync-intent.enum.js +9 -0
- package/build/enum/outbound-sync-status.enum.js +9 -0
- package/constant/error.ts +35 -0
- package/enum/index.ts +2 -0
- package/enum/outbound-sync-intent.enum.ts +5 -0
- package/enum/outbound-sync-status.enum.ts +5 -0
- package/package.json +1 -1
package/build/constant/error.js
CHANGED
|
@@ -999,4 +999,39 @@ exports.ERRORS = {
|
|
|
999
999
|
message: 'MoySklad catalog exceeds the import size limit; archive unused items in MoySklad first',
|
|
1000
1000
|
httpCode: 413,
|
|
1001
1001
|
},
|
|
1002
|
+
MOYSKLAD_ORDER_CLIENT_NOT_LINKED: {
|
|
1003
|
+
code: 'MS011',
|
|
1004
|
+
message: 'Order client has no MoySklad link; import clients first',
|
|
1005
|
+
httpCode: 400,
|
|
1006
|
+
},
|
|
1007
|
+
MOYSKLAD_ORDER_PRODUCT_NOT_LINKED: {
|
|
1008
|
+
code: 'MS012',
|
|
1009
|
+
message: 'One or more order products have no MoySklad link',
|
|
1010
|
+
httpCode: 400,
|
|
1011
|
+
},
|
|
1012
|
+
MOYSKLAD_INTEGRATION_INCOMPLETE: {
|
|
1013
|
+
code: 'MS013',
|
|
1014
|
+
message: 'MoySklad integration is missing default organization or store',
|
|
1015
|
+
httpCode: 400,
|
|
1016
|
+
},
|
|
1017
|
+
MOYSKLAD_ORDER_LINK_MISSING: {
|
|
1018
|
+
code: 'MS014',
|
|
1019
|
+
message: 'No MoySklad link found for this order',
|
|
1020
|
+
httpCode: 404,
|
|
1021
|
+
},
|
|
1022
|
+
OUTBOUND_SYNC_STUCK_RECOVERED: {
|
|
1023
|
+
code: 'OS001',
|
|
1024
|
+
message: 'Outbound sync job recovered from stuck RUNNING state',
|
|
1025
|
+
httpCode: 500,
|
|
1026
|
+
},
|
|
1027
|
+
OUTBOUND_SYNC_UNEXPECTED_ERROR: {
|
|
1028
|
+
code: 'OS002',
|
|
1029
|
+
message: 'Outbound sync job failed with an unexpected error',
|
|
1030
|
+
httpCode: 500,
|
|
1031
|
+
},
|
|
1032
|
+
OUTBOUND_SYNC_UNSUPPORTED_ENTITY: {
|
|
1033
|
+
code: 'OS003',
|
|
1034
|
+
message: 'Outbound sync entity type is not supported by this provider',
|
|
1035
|
+
httpCode: 400,
|
|
1036
|
+
},
|
|
1002
1037
|
};
|
package/build/enum/index.js
CHANGED
|
@@ -17,6 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./consignment-status.enum"), exports);
|
|
18
18
|
__exportStar(require("./integration-provider.enum"), exports);
|
|
19
19
|
__exportStar(require("./external-entity-type.enum"), exports);
|
|
20
|
+
__exportStar(require("./outbound-sync-intent.enum"), exports);
|
|
21
|
+
__exportStar(require("./outbound-sync-status.enum"), exports);
|
|
20
22
|
__exportStar(require("./order-type.enum"), exports);
|
|
21
23
|
__exportStar(require("./order-status.enum"), exports);
|
|
22
24
|
__exportStar(require("./order-restricted-status-list"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OutboundSyncIntentEnum = void 0;
|
|
4
|
+
var OutboundSyncIntentEnum;
|
|
5
|
+
(function (OutboundSyncIntentEnum) {
|
|
6
|
+
OutboundSyncIntentEnum["CREATE"] = "CREATE";
|
|
7
|
+
OutboundSyncIntentEnum["UPDATE"] = "UPDATE";
|
|
8
|
+
OutboundSyncIntentEnum["DELETE"] = "DELETE";
|
|
9
|
+
})(OutboundSyncIntentEnum || (exports.OutboundSyncIntentEnum = OutboundSyncIntentEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OutboundSyncStatusEnum = void 0;
|
|
4
|
+
var OutboundSyncStatusEnum;
|
|
5
|
+
(function (OutboundSyncStatusEnum) {
|
|
6
|
+
OutboundSyncStatusEnum["PENDING"] = "PENDING";
|
|
7
|
+
OutboundSyncStatusEnum["RUNNING"] = "RUNNING";
|
|
8
|
+
OutboundSyncStatusEnum["DEAD"] = "DEAD";
|
|
9
|
+
})(OutboundSyncStatusEnum || (exports.OutboundSyncStatusEnum = OutboundSyncStatusEnum = {}));
|
package/constant/error.ts
CHANGED
|
@@ -1059,4 +1059,39 @@ export const ERRORS = {
|
|
|
1059
1059
|
message: 'MoySklad catalog exceeds the import size limit; archive unused items in MoySklad first',
|
|
1060
1060
|
httpCode: 413,
|
|
1061
1061
|
},
|
|
1062
|
+
MOYSKLAD_ORDER_CLIENT_NOT_LINKED: {
|
|
1063
|
+
code: 'MS011',
|
|
1064
|
+
message: 'Order client has no MoySklad link; import clients first',
|
|
1065
|
+
httpCode: 400,
|
|
1066
|
+
},
|
|
1067
|
+
MOYSKLAD_ORDER_PRODUCT_NOT_LINKED: {
|
|
1068
|
+
code: 'MS012',
|
|
1069
|
+
message: 'One or more order products have no MoySklad link',
|
|
1070
|
+
httpCode: 400,
|
|
1071
|
+
},
|
|
1072
|
+
MOYSKLAD_INTEGRATION_INCOMPLETE: {
|
|
1073
|
+
code: 'MS013',
|
|
1074
|
+
message: 'MoySklad integration is missing default organization or store',
|
|
1075
|
+
httpCode: 400,
|
|
1076
|
+
},
|
|
1077
|
+
MOYSKLAD_ORDER_LINK_MISSING: {
|
|
1078
|
+
code: 'MS014',
|
|
1079
|
+
message: 'No MoySklad link found for this order',
|
|
1080
|
+
httpCode: 404,
|
|
1081
|
+
},
|
|
1082
|
+
OUTBOUND_SYNC_STUCK_RECOVERED: {
|
|
1083
|
+
code: 'OS001',
|
|
1084
|
+
message: 'Outbound sync job recovered from stuck RUNNING state',
|
|
1085
|
+
httpCode: 500,
|
|
1086
|
+
},
|
|
1087
|
+
OUTBOUND_SYNC_UNEXPECTED_ERROR: {
|
|
1088
|
+
code: 'OS002',
|
|
1089
|
+
message: 'Outbound sync job failed with an unexpected error',
|
|
1090
|
+
httpCode: 500,
|
|
1091
|
+
},
|
|
1092
|
+
OUTBOUND_SYNC_UNSUPPORTED_ENTITY: {
|
|
1093
|
+
code: 'OS003',
|
|
1094
|
+
message: 'Outbound sync entity type is not supported by this provider',
|
|
1095
|
+
httpCode: 400,
|
|
1096
|
+
},
|
|
1062
1097
|
} as const;
|
package/enum/index.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from './consignment-status.enum';
|
|
2
2
|
export * from './integration-provider.enum';
|
|
3
3
|
export * from './external-entity-type.enum';
|
|
4
|
+
export * from './outbound-sync-intent.enum';
|
|
5
|
+
export * from './outbound-sync-status.enum';
|
|
4
6
|
export * from './order-type.enum';
|
|
5
7
|
export * from './order-status.enum';
|
|
6
8
|
export * from './order-restricted-status-list';
|