@floristcloud/api-lib 1.2.198 → 1.2.200
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/commands/client-push/analyze-client-push-campaign.query.js +10 -0
- package/build/commands/client-push/execute-client-push-campaign.command.js +10 -0
- package/build/commands/client-push/get-client-push-campaign-list.query.js +10 -0
- package/build/commands/client-push/index.js +20 -0
- package/build/commands/client-push/send-client-order-push.command.js +10 -0
- package/build/commands/index.js +2 -0
- package/build/commands/integration/one-c/get-one-c-orders-sync-status.query.js +10 -0
- package/build/commands/integration/one-c/index.js +2 -0
- package/build/commands/integration/one-c/retry-one-c-order-deletion.command.js +8 -0
- package/build/commands/staff-push/create-staff-push-pairing.command.js +8 -0
- package/build/commands/staff-push/get-staff-device-list.query.js +8 -0
- package/build/commands/staff-push/index.js +22 -0
- package/build/commands/staff-push/pair-staff-device.command.js +10 -0
- package/build/commands/staff-push/refresh-staff-device.command.js +10 -0
- package/build/commands/staff-push/remove-staff-device.command.js +8 -0
- package/build/commands/staff-push/unpair-staff-device.command.js +10 -0
- package/build/constant/error.js +18 -0
- package/build/enum/client-catalog-push-template.enum.js +10 -0
- package/build/enum/client-order-push-type-list.js +6 -0
- package/build/enum/client-push-campaign-status.enum.js +10 -0
- package/build/enum/device-token-audience.enum.js +9 -0
- package/build/enum/index.js +4 -0
- package/build/enum/notification-type.enum.js +6 -0
- package/build/schemas/client-push/analyze-client-push-campaign-request.schema.js +10 -0
- package/build/schemas/client-push/analyze-client-push-campaign-response.schema.js +8 -0
- package/build/schemas/client-push/client-order-push-result.schema.js +7 -0
- package/build/schemas/client-push/client-order-push-type.schema.js +6 -0
- package/build/schemas/client-push/client-push-campaign-analysis.schema.js +13 -0
- package/build/schemas/client-push/client-push-campaign-client-list-target.schema.js +10 -0
- package/build/schemas/client-push/client-push-campaign-group-target.schema.js +9 -0
- package/build/schemas/client-push/client-push-campaign-max-recipients.constant.js +5 -0
- package/build/schemas/client-push/client-push-campaign-stats.schema.js +11 -0
- package/build/schemas/client-push/client-push-campaign-target.schema.js +8 -0
- package/build/schemas/client-push/client-push-campaign.schema.js +19 -0
- package/build/schemas/client-push/execute-client-push-campaign-request.schema.js +9 -0
- package/build/schemas/client-push/execute-client-push-campaign-response.schema.js +8 -0
- package/build/schemas/client-push/get-client-push-campaign-list-request.schema.js +7 -0
- package/build/schemas/client-push/get-client-push-campaign-list-response.schema.js +8 -0
- package/build/schemas/client-push/index.js +33 -0
- package/build/schemas/client-push/send-client-order-push-request.schema.js +9 -0
- package/build/schemas/client-push/send-client-order-push-response.schema.js +8 -0
- package/build/schemas/index.js +2 -0
- package/build/schemas/integration/one-c/get-one-c-orders-sync-status-request.schema.js +7 -0
- package/build/schemas/integration/one-c/get-one-c-orders-sync-status-response.schema.js +11 -0
- package/build/schemas/integration/one-c/index.js +4 -0
- package/build/schemas/integration/one-c/one-c-order-exchange-state.schema.js +8 -0
- package/build/schemas/integration/one-c/one-c-order-sync-status.schema.js +11 -0
- package/build/schemas/integration/one-c/retry-one-c-order-deletion-response.schema.js +10 -0
- package/build/schemas/staff-push/create-staff-push-pairing-response.schema.js +8 -0
- package/build/schemas/staff-push/get-staff-device-list-response.schema.js +8 -0
- package/build/schemas/staff-push/index.js +28 -0
- package/build/schemas/staff-push/pair-staff-device-request.schema.js +12 -0
- package/build/schemas/staff-push/pair-staff-device-response.schema.js +8 -0
- package/build/schemas/staff-push/refresh-staff-device-request.schema.js +12 -0
- package/build/schemas/staff-push/staff-device-pairing.schema.js +11 -0
- package/build/schemas/staff-push/staff-device.schema.js +12 -0
- package/build/schemas/staff-push/staff-push-pairing-code.schema.js +10 -0
- package/build/schemas/staff-push/staff-push-pairing-secret.schema.js +5 -0
- package/build/schemas/staff-push/staff-push-pairing.schema.js +11 -0
- package/build/schemas/staff-push/staff-push-success-response.schema.js +8 -0
- package/build/schemas/staff-push/unpair-staff-device-request.schema.js +9 -0
- package/commands/client-push/analyze-client-push-campaign.query.ts +11 -0
- package/commands/client-push/execute-client-push-campaign.command.ts +11 -0
- package/commands/client-push/get-client-push-campaign-list.query.ts +11 -0
- package/commands/client-push/index.ts +4 -0
- package/commands/client-push/send-client-order-push.command.ts +11 -0
- package/commands/index.ts +2 -0
- package/commands/integration/one-c/get-one-c-orders-sync-status.query.ts +11 -0
- package/commands/integration/one-c/index.ts +2 -0
- package/commands/integration/one-c/retry-one-c-order-deletion.command.ts +7 -0
- package/commands/staff-push/create-staff-push-pairing.command.ts +7 -0
- package/commands/staff-push/get-staff-device-list.query.ts +7 -0
- package/commands/staff-push/index.ts +6 -0
- package/commands/staff-push/pair-staff-device.command.ts +11 -0
- package/commands/staff-push/refresh-staff-device.command.ts +11 -0
- package/commands/staff-push/remove-staff-device.command.ts +7 -0
- package/commands/staff-push/unpair-staff-device.command.ts +11 -0
- package/constant/error.ts +20 -0
- package/enum/client-catalog-push-template.enum.ts +6 -0
- package/enum/client-order-push-type-list.ts +4 -0
- package/enum/client-push-campaign-status.enum.ts +6 -0
- package/enum/device-token-audience.enum.ts +5 -0
- package/enum/index.ts +4 -0
- package/enum/notification-type.enum.ts +6 -0
- package/package.json +1 -1
- package/schemas/client-push/analyze-client-push-campaign-request.schema.ts +8 -0
- package/schemas/client-push/analyze-client-push-campaign-response.schema.ts +6 -0
- package/schemas/client-push/client-order-push-result.schema.ts +5 -0
- package/schemas/client-push/client-order-push-type.schema.ts +4 -0
- package/schemas/client-push/client-push-campaign-analysis.schema.ts +11 -0
- package/schemas/client-push/client-push-campaign-client-list-target.schema.ts +8 -0
- package/schemas/client-push/client-push-campaign-group-target.schema.ts +7 -0
- package/schemas/client-push/client-push-campaign-max-recipients.constant.ts +2 -0
- package/schemas/client-push/client-push-campaign-stats.schema.ts +9 -0
- package/schemas/client-push/client-push-campaign-target.schema.ts +6 -0
- package/schemas/client-push/client-push-campaign.schema.ts +17 -0
- package/schemas/client-push/execute-client-push-campaign-request.schema.ts +7 -0
- package/schemas/client-push/execute-client-push-campaign-response.schema.ts +6 -0
- package/schemas/client-push/get-client-push-campaign-list-request.schema.ts +5 -0
- package/schemas/client-push/get-client-push-campaign-list-response.schema.ts +6 -0
- package/schemas/client-push/index.ts +17 -0
- package/schemas/client-push/send-client-order-push-request.schema.ts +7 -0
- package/schemas/client-push/send-client-order-push-response.schema.ts +6 -0
- package/schemas/index.ts +2 -0
- package/schemas/integration/one-c/get-one-c-orders-sync-status-request.schema.ts +5 -0
- package/schemas/integration/one-c/get-one-c-orders-sync-status-response.schema.ts +9 -0
- package/schemas/integration/one-c/index.ts +4 -0
- package/schemas/integration/one-c/one-c-order-exchange-state.schema.ts +8 -0
- package/schemas/integration/one-c/one-c-order-sync-status.schema.ts +9 -0
- package/schemas/integration/one-c/retry-one-c-order-deletion-response.schema.ts +8 -0
- package/schemas/staff-push/create-staff-push-pairing-response.schema.ts +6 -0
- package/schemas/staff-push/get-staff-device-list-response.schema.ts +6 -0
- package/schemas/staff-push/index.ts +12 -0
- package/schemas/staff-push/pair-staff-device-request.schema.ts +10 -0
- package/schemas/staff-push/pair-staff-device-response.schema.ts +6 -0
- package/schemas/staff-push/refresh-staff-device-request.schema.ts +10 -0
- package/schemas/staff-push/staff-device-pairing.schema.ts +9 -0
- package/schemas/staff-push/staff-device.schema.ts +10 -0
- package/schemas/staff-push/staff-push-pairing-code.schema.ts +8 -0
- package/schemas/staff-push/staff-push-pairing-secret.schema.ts +3 -0
- package/schemas/staff-push/staff-push-pairing.schema.ts +9 -0
- package/schemas/staff-push/staff-push-success-response.schema.ts +6 -0
- package/schemas/staff-push/unpair-staff-device-request.schema.ts +7 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AnalyzeClientPushCampaignContractQuery = void 0;
|
|
4
|
+
const analyze_client_push_campaign_request_schema_1 = require("../../schemas/client-push/analyze-client-push-campaign-request.schema");
|
|
5
|
+
const analyze_client_push_campaign_response_schema_1 = require("../../schemas/client-push/analyze-client-push-campaign-response.schema");
|
|
6
|
+
var AnalyzeClientPushCampaignContractQuery;
|
|
7
|
+
(function (AnalyzeClientPushCampaignContractQuery) {
|
|
8
|
+
AnalyzeClientPushCampaignContractQuery.RequestSchema = analyze_client_push_campaign_request_schema_1.AnalyzeClientPushCampaignRequestSchema;
|
|
9
|
+
AnalyzeClientPushCampaignContractQuery.ResponseSchema = analyze_client_push_campaign_response_schema_1.AnalyzeClientPushCampaignResponseSchema;
|
|
10
|
+
})(AnalyzeClientPushCampaignContractQuery || (exports.AnalyzeClientPushCampaignContractQuery = AnalyzeClientPushCampaignContractQuery = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExecuteClientPushCampaignContractCommand = void 0;
|
|
4
|
+
const execute_client_push_campaign_request_schema_1 = require("../../schemas/client-push/execute-client-push-campaign-request.schema");
|
|
5
|
+
const execute_client_push_campaign_response_schema_1 = require("../../schemas/client-push/execute-client-push-campaign-response.schema");
|
|
6
|
+
var ExecuteClientPushCampaignContractCommand;
|
|
7
|
+
(function (ExecuteClientPushCampaignContractCommand) {
|
|
8
|
+
ExecuteClientPushCampaignContractCommand.RequestSchema = execute_client_push_campaign_request_schema_1.ExecuteClientPushCampaignRequestSchema;
|
|
9
|
+
ExecuteClientPushCampaignContractCommand.ResponseSchema = execute_client_push_campaign_response_schema_1.ExecuteClientPushCampaignResponseSchema;
|
|
10
|
+
})(ExecuteClientPushCampaignContractCommand || (exports.ExecuteClientPushCampaignContractCommand = ExecuteClientPushCampaignContractCommand = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetClientPushCampaignListContractQuery = void 0;
|
|
4
|
+
const get_client_push_campaign_list_request_schema_1 = require("../../schemas/client-push/get-client-push-campaign-list-request.schema");
|
|
5
|
+
const get_client_push_campaign_list_response_schema_1 = require("../../schemas/client-push/get-client-push-campaign-list-response.schema");
|
|
6
|
+
var GetClientPushCampaignListContractQuery;
|
|
7
|
+
(function (GetClientPushCampaignListContractQuery) {
|
|
8
|
+
GetClientPushCampaignListContractQuery.RequestSchema = get_client_push_campaign_list_request_schema_1.GetClientPushCampaignListRequestSchema;
|
|
9
|
+
GetClientPushCampaignListContractQuery.ResponseSchema = get_client_push_campaign_list_response_schema_1.GetClientPushCampaignListResponseSchema;
|
|
10
|
+
})(GetClientPushCampaignListContractQuery || (exports.GetClientPushCampaignListContractQuery = GetClientPushCampaignListContractQuery = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./send-client-order-push.command"), exports);
|
|
18
|
+
__exportStar(require("./analyze-client-push-campaign.query"), exports);
|
|
19
|
+
__exportStar(require("./execute-client-push-campaign.command"), exports);
|
|
20
|
+
__exportStar(require("./get-client-push-campaign-list.query"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SendClientOrderPushContractCommand = void 0;
|
|
4
|
+
const send_client_order_push_request_schema_1 = require("../../schemas/client-push/send-client-order-push-request.schema");
|
|
5
|
+
const send_client_order_push_response_schema_1 = require("../../schemas/client-push/send-client-order-push-response.schema");
|
|
6
|
+
var SendClientOrderPushContractCommand;
|
|
7
|
+
(function (SendClientOrderPushContractCommand) {
|
|
8
|
+
SendClientOrderPushContractCommand.RequestSchema = send_client_order_push_request_schema_1.SendClientOrderPushRequestSchema;
|
|
9
|
+
SendClientOrderPushContractCommand.ResponseSchema = send_client_order_push_response_schema_1.SendClientOrderPushResponseSchema;
|
|
10
|
+
})(SendClientOrderPushContractCommand || (exports.SendClientOrderPushContractCommand = SendClientOrderPushContractCommand = {}));
|
package/build/commands/index.js
CHANGED
|
@@ -52,6 +52,8 @@ __exportStar(require("./pre-order-collection"), exports);
|
|
|
52
52
|
__exportStar(require("./pre-order-collection-item"), exports);
|
|
53
53
|
__exportStar(require("./pre-order-product"), exports);
|
|
54
54
|
__exportStar(require("./product"), exports);
|
|
55
|
+
__exportStar(require("./staff-push"), exports);
|
|
56
|
+
__exportStar(require("./client-push"), exports);
|
|
55
57
|
__exportStar(require("./product-configuration/create-product-configuration.command"), exports);
|
|
56
58
|
__exportStar(require("./product-configuration/delete-product-configuration.command"), exports);
|
|
57
59
|
__exportStar(require("./product-configuration/find-product-configuration-by-attributes.query"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetOneCOrdersSyncStatusContractQuery = void 0;
|
|
4
|
+
const get_one_c_orders_sync_status_request_schema_1 = require("../../../schemas/integration/one-c/get-one-c-orders-sync-status-request.schema");
|
|
5
|
+
const get_one_c_orders_sync_status_response_schema_1 = require("../../../schemas/integration/one-c/get-one-c-orders-sync-status-response.schema");
|
|
6
|
+
var GetOneCOrdersSyncStatusContractQuery;
|
|
7
|
+
(function (GetOneCOrdersSyncStatusContractQuery) {
|
|
8
|
+
GetOneCOrdersSyncStatusContractQuery.RequestSchema = get_one_c_orders_sync_status_request_schema_1.GetOneCOrdersSyncStatusRequestSchema;
|
|
9
|
+
GetOneCOrdersSyncStatusContractQuery.ResponseSchema = get_one_c_orders_sync_status_response_schema_1.GetOneCOrdersSyncStatusResponseSchema;
|
|
10
|
+
})(GetOneCOrdersSyncStatusContractQuery || (exports.GetOneCOrdersSyncStatusContractQuery = GetOneCOrdersSyncStatusContractQuery = {}));
|
|
@@ -19,6 +19,8 @@ __exportStar(require("./rotate-one-c-password.command"), exports);
|
|
|
19
19
|
__exportStar(require("./disconnect-one-c.command"), exports);
|
|
20
20
|
__exportStar(require("./get-one-c-status.query"), exports);
|
|
21
21
|
__exportStar(require("./get-one-c-order-exchange-state.query"), exports);
|
|
22
|
+
__exportStar(require("./get-one-c-orders-sync-status.query"), exports);
|
|
23
|
+
__exportStar(require("./retry-one-c-order-deletion.command"), exports);
|
|
22
24
|
__exportStar(require("./get-one-c-stock-conflict-list.query"), exports);
|
|
23
25
|
__exportStar(require("./get-one-c-stock-conflict-preview.query"), exports);
|
|
24
26
|
__exportStar(require("./resolve-one-c-stock-conflict.command"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RetryOneCOrderDeletionContractCommand = void 0;
|
|
4
|
+
const retry_one_c_order_deletion_response_schema_1 = require("../../../schemas/integration/one-c/retry-one-c-order-deletion-response.schema");
|
|
5
|
+
var RetryOneCOrderDeletionContractCommand;
|
|
6
|
+
(function (RetryOneCOrderDeletionContractCommand) {
|
|
7
|
+
RetryOneCOrderDeletionContractCommand.ResponseSchema = retry_one_c_order_deletion_response_schema_1.RetryOneCOrderDeletionResponseSchema;
|
|
8
|
+
})(RetryOneCOrderDeletionContractCommand || (exports.RetryOneCOrderDeletionContractCommand = RetryOneCOrderDeletionContractCommand = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateStaffPushPairingContractCommand = void 0;
|
|
4
|
+
const create_staff_push_pairing_response_schema_1 = require("../../schemas/staff-push/create-staff-push-pairing-response.schema");
|
|
5
|
+
var CreateStaffPushPairingContractCommand;
|
|
6
|
+
(function (CreateStaffPushPairingContractCommand) {
|
|
7
|
+
CreateStaffPushPairingContractCommand.ResponseSchema = create_staff_push_pairing_response_schema_1.CreateStaffPushPairingResponseSchema;
|
|
8
|
+
})(CreateStaffPushPairingContractCommand || (exports.CreateStaffPushPairingContractCommand = CreateStaffPushPairingContractCommand = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetStaffDeviceListContractQuery = void 0;
|
|
4
|
+
const get_staff_device_list_response_schema_1 = require("../../schemas/staff-push/get-staff-device-list-response.schema");
|
|
5
|
+
var GetStaffDeviceListContractQuery;
|
|
6
|
+
(function (GetStaffDeviceListContractQuery) {
|
|
7
|
+
GetStaffDeviceListContractQuery.ResponseSchema = get_staff_device_list_response_schema_1.GetStaffDeviceListResponseSchema;
|
|
8
|
+
})(GetStaffDeviceListContractQuery || (exports.GetStaffDeviceListContractQuery = GetStaffDeviceListContractQuery = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./create-staff-push-pairing.command"), exports);
|
|
18
|
+
__exportStar(require("./pair-staff-device.command"), exports);
|
|
19
|
+
__exportStar(require("./refresh-staff-device.command"), exports);
|
|
20
|
+
__exportStar(require("./unpair-staff-device.command"), exports);
|
|
21
|
+
__exportStar(require("./get-staff-device-list.query"), exports);
|
|
22
|
+
__exportStar(require("./remove-staff-device.command"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PairStaffDeviceContractCommand = void 0;
|
|
4
|
+
const pair_staff_device_request_schema_1 = require("../../schemas/staff-push/pair-staff-device-request.schema");
|
|
5
|
+
const pair_staff_device_response_schema_1 = require("../../schemas/staff-push/pair-staff-device-response.schema");
|
|
6
|
+
var PairStaffDeviceContractCommand;
|
|
7
|
+
(function (PairStaffDeviceContractCommand) {
|
|
8
|
+
PairStaffDeviceContractCommand.RequestSchema = pair_staff_device_request_schema_1.PairStaffDeviceRequestSchema;
|
|
9
|
+
PairStaffDeviceContractCommand.ResponseSchema = pair_staff_device_response_schema_1.PairStaffDeviceResponseSchema;
|
|
10
|
+
})(PairStaffDeviceContractCommand || (exports.PairStaffDeviceContractCommand = PairStaffDeviceContractCommand = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RefreshStaffDeviceContractCommand = void 0;
|
|
4
|
+
const refresh_staff_device_request_schema_1 = require("../../schemas/staff-push/refresh-staff-device-request.schema");
|
|
5
|
+
const staff_push_success_response_schema_1 = require("../../schemas/staff-push/staff-push-success-response.schema");
|
|
6
|
+
var RefreshStaffDeviceContractCommand;
|
|
7
|
+
(function (RefreshStaffDeviceContractCommand) {
|
|
8
|
+
RefreshStaffDeviceContractCommand.RequestSchema = refresh_staff_device_request_schema_1.RefreshStaffDeviceRequestSchema;
|
|
9
|
+
RefreshStaffDeviceContractCommand.ResponseSchema = staff_push_success_response_schema_1.StaffPushSuccessResponseSchema;
|
|
10
|
+
})(RefreshStaffDeviceContractCommand || (exports.RefreshStaffDeviceContractCommand = RefreshStaffDeviceContractCommand = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RemoveStaffDeviceContractCommand = void 0;
|
|
4
|
+
const staff_push_success_response_schema_1 = require("../../schemas/staff-push/staff-push-success-response.schema");
|
|
5
|
+
var RemoveStaffDeviceContractCommand;
|
|
6
|
+
(function (RemoveStaffDeviceContractCommand) {
|
|
7
|
+
RemoveStaffDeviceContractCommand.ResponseSchema = staff_push_success_response_schema_1.StaffPushSuccessResponseSchema;
|
|
8
|
+
})(RemoveStaffDeviceContractCommand || (exports.RemoveStaffDeviceContractCommand = RemoveStaffDeviceContractCommand = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnpairStaffDeviceContractCommand = void 0;
|
|
4
|
+
const unpair_staff_device_request_schema_1 = require("../../schemas/staff-push/unpair-staff-device-request.schema");
|
|
5
|
+
const staff_push_success_response_schema_1 = require("../../schemas/staff-push/staff-push-success-response.schema");
|
|
6
|
+
var UnpairStaffDeviceContractCommand;
|
|
7
|
+
(function (UnpairStaffDeviceContractCommand) {
|
|
8
|
+
UnpairStaffDeviceContractCommand.RequestSchema = unpair_staff_device_request_schema_1.UnpairStaffDeviceRequestSchema;
|
|
9
|
+
UnpairStaffDeviceContractCommand.ResponseSchema = staff_push_success_response_schema_1.StaffPushSuccessResponseSchema;
|
|
10
|
+
})(UnpairStaffDeviceContractCommand || (exports.UnpairStaffDeviceContractCommand = UnpairStaffDeviceContractCommand = {}));
|
package/build/constant/error.js
CHANGED
|
@@ -1629,6 +1629,22 @@ exports.ERRORS = {
|
|
|
1629
1629
|
// PUSH NOTIFICATION
|
|
1630
1630
|
PUSH_NOTIFICATION_SEND_FAILED: { code: 'PN001', message: 'Failed to send push notification', httpCode: 500 },
|
|
1631
1631
|
PUSH_NOTIFICATION_NO_DEVICES: { code: 'PN002', message: 'No active devices found for user', httpCode: 404 },
|
|
1632
|
+
// STAFF PUSH (телефон сотрудника, подключённый кодом из панели)
|
|
1633
|
+
STAFF_PUSH_PAIRING_NOT_CREATED: { code: 'SPP001', message: 'Failed to create pairing code', httpCode: 500 },
|
|
1634
|
+
STAFF_PUSH_PAIRING_CODE_INVALID: { code: 'SPP002', message: 'Pairing code is invalid or expired', httpCode: 400 },
|
|
1635
|
+
STAFF_PUSH_PAIRING_FORBIDDEN: { code: 'SPP003', message: 'User cannot receive staff notifications', httpCode: 403 },
|
|
1636
|
+
STAFF_PUSH_DEVICE_NOT_PAIRED: { code: 'SPP004', message: 'Failed to pair staff device', httpCode: 500 },
|
|
1637
|
+
STAFF_PUSH_RATE_LIMIT_EXCEEDED: { code: 'SPP005', message: 'Too many pairing attempts', httpCode: 429 },
|
|
1638
|
+
STAFF_PUSH_DEVICE_LIST_NOT_FETCHED: { code: 'SPP006', message: 'Failed to get staff devices', httpCode: 500 },
|
|
1639
|
+
// CLIENT PUSH (пуш клиенту по заказу и рассылка из каталога)
|
|
1640
|
+
CLIENT_PUSH_NOT_SENT: { code: 'CPN001', message: 'Failed to send push to client', httpCode: 500 },
|
|
1641
|
+
CLIENT_PUSH_CLIENT_HAS_NO_APP: { code: 'CPN002', message: 'Client has no mobile app connected', httpCode: 409 },
|
|
1642
|
+
CLIENT_PUSH_CAMPAIGN_NOT_ANALYZED: { code: 'CPC001', message: 'Failed to analyze client push campaign', httpCode: 500 },
|
|
1643
|
+
CLIENT_PUSH_CAMPAIGN_NOT_CREATED: { code: 'CPC002', message: 'Failed to create client push campaign', httpCode: 500 },
|
|
1644
|
+
CLIENT_PUSH_CAMPAIGN_NO_RECIPIENTS: { code: 'CPC003', message: 'No selected clients can receive the push now', httpCode: 400 },
|
|
1645
|
+
CLIENT_PUSH_CAMPAIGN_LIST_NOT_FETCHED: { code: 'CPC004', message: 'Failed to get client push campaigns', httpCode: 500 },
|
|
1646
|
+
CLIENT_PUSH_CAMPAIGN_TOO_MANY_RECIPIENTS: { code: 'CPC005', message: 'Too many clients selected for one campaign', httpCode: 400 },
|
|
1647
|
+
CLIENT_PUSH_CAMPAIGN_BUSY: { code: 'CPC006', message: 'Another campaign of the company is being started, try again', httpCode: 409 },
|
|
1632
1648
|
// ACCOUNT DELETION REQUEST
|
|
1633
1649
|
ACCOUNT_DELETION_REQUEST_NOT_CREATED: { code: 'ADR001', message: 'Failed to create account deletion request', httpCode: 500 },
|
|
1634
1650
|
ACCOUNT_DELETION_REQUEST_NOT_FOUND: { code: 'ADR002', message: 'Account deletion request not found', httpCode: 404 },
|
|
@@ -1807,6 +1823,8 @@ exports.ERRORS = {
|
|
|
1807
1823
|
},
|
|
1808
1824
|
ONE_C_ORDER_APPLY_EMPTY: { code: 'OC031', message: '1C order contains no lines', httpCode: 422 },
|
|
1809
1825
|
ONE_C_ORDER_APPLY_MIXED_PRICES: { code: 'OC032', message: '1C order contains one product at different prices', httpCode: 422 },
|
|
1826
|
+
ONE_C_ORDER_MANAGED_BY_ONE_C: { code: 'OC033', message: 'The order is managed by 1C and cannot be changed', httpCode: 409 },
|
|
1827
|
+
ONE_C_ORDER_DELETION_NOT_REQUESTED: { code: 'OC034', message: 'The order has no deletion request from 1C', httpCode: 409 },
|
|
1810
1828
|
// COMPANY INTEGRATION (общая запись интеграции компании)
|
|
1811
1829
|
COMPANY_INTEGRATION_FETCH_FAILED: { code: 'CINT001', message: 'Failed to read company integration', httpCode: 500 },
|
|
1812
1830
|
COMPANY_INTEGRATION_NOT_SAVED: { code: 'CINT002', message: 'Failed to save company integration', httpCode: 500 },
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientCatalogPushTemplateEnum = void 0;
|
|
4
|
+
// Шаблоны рассылки клиентам из каталога. Тексты — в каталоге пуш-текстов бэкенда; свободного текста нет.
|
|
5
|
+
var ClientCatalogPushTemplateEnum;
|
|
6
|
+
(function (ClientCatalogPushTemplateEnum) {
|
|
7
|
+
ClientCatalogPushTemplateEnum["CATALOG_UPDATED"] = "CATALOG_UPDATED";
|
|
8
|
+
ClientCatalogPushTemplateEnum["NEW_ARRIVAL"] = "NEW_ARRIVAL";
|
|
9
|
+
ClientCatalogPushTemplateEnum["SPECIAL_OFFER"] = "SPECIAL_OFFER";
|
|
10
|
+
})(ClientCatalogPushTemplateEnum || (exports.ClientCatalogPushTemplateEnum = ClientCatalogPushTemplateEnum = {}));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientOrderPushTypeList = void 0;
|
|
4
|
+
const notification_type_enum_1 = require("./notification-type.enum");
|
|
5
|
+
// Типы пуша, которые сотрудник отправляет клиенту по конкретному заказу из панели.
|
|
6
|
+
exports.ClientOrderPushTypeList = [notification_type_enum_1.NotificationTypeEnum.ORDER_STATUS, notification_type_enum_1.NotificationTypeEnum.ORDER_CREATED];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientPushCampaignStatusEnum = void 0;
|
|
4
|
+
// Состояние рассылки из каталога: PENDING — ждёт отправки, SENDING — отправляется, DONE — итоги записаны.
|
|
5
|
+
var ClientPushCampaignStatusEnum;
|
|
6
|
+
(function (ClientPushCampaignStatusEnum) {
|
|
7
|
+
ClientPushCampaignStatusEnum["PENDING"] = "PENDING";
|
|
8
|
+
ClientPushCampaignStatusEnum["SENDING"] = "SENDING";
|
|
9
|
+
ClientPushCampaignStatusEnum["DONE"] = "DONE";
|
|
10
|
+
})(ClientPushCampaignStatusEnum || (exports.ClientPushCampaignStatusEnum = ClientPushCampaignStatusEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeviceTokenAudienceEnum = void 0;
|
|
4
|
+
// Кому адресовано устройство: CLIENT — приложение после входа покупателя, STAFF — телефон сотрудника, подключённый кодом из панели.
|
|
5
|
+
var DeviceTokenAudienceEnum;
|
|
6
|
+
(function (DeviceTokenAudienceEnum) {
|
|
7
|
+
DeviceTokenAudienceEnum["CLIENT"] = "CLIENT";
|
|
8
|
+
DeviceTokenAudienceEnum["STAFF"] = "STAFF";
|
|
9
|
+
})(DeviceTokenAudienceEnum || (exports.DeviceTokenAudienceEnum = DeviceTokenAudienceEnum = {}));
|
package/build/enum/index.js
CHANGED
|
@@ -25,6 +25,9 @@ __exportStar(require("./category-status.enum"), exports);
|
|
|
25
25
|
__exportStar(require("./chat-has-manager-mode.enum"), exports);
|
|
26
26
|
__exportStar(require("./chat-no-manager-mode.enum"), exports);
|
|
27
27
|
__exportStar(require("./client-contract-status.enum"), exports);
|
|
28
|
+
__exportStar(require("./client-catalog-push-template.enum"), exports);
|
|
29
|
+
__exportStar(require("./client-push-campaign-status.enum"), exports);
|
|
30
|
+
__exportStar(require("./client-order-push-type-list"), exports);
|
|
28
31
|
__exportStar(require("./client-import-entity-property.enum"), exports);
|
|
29
32
|
__exportStar(require("./client-import-errors.enum"), exports);
|
|
30
33
|
__exportStar(require("./client-legal-type.enum"), exports);
|
|
@@ -53,6 +56,7 @@ __exportStar(require("./country-code.enum"), exports);
|
|
|
53
56
|
__exportStar(require("./deleted-by-company-policy.enum"), exports);
|
|
54
57
|
__exportStar(require("./delivery-route-status.enum"), exports);
|
|
55
58
|
__exportStar(require("./device-platform.enum"), exports);
|
|
59
|
+
__exportStar(require("./device-token-audience.enum"), exports);
|
|
56
60
|
__exportStar(require("./discount-price-routing.enum"), exports);
|
|
57
61
|
__exportStar(require("./discount-rules-apply-type.enum"), exports);
|
|
58
62
|
__exportStar(require("./discount-rules-mode-type.enum"), exports);
|
|
@@ -16,4 +16,10 @@ var NotificationTypeEnum;
|
|
|
16
16
|
NotificationTypeEnum["ACCOUNT_DELETION_REQUEST_REJECTED"] = "ACCOUNT_DELETION_REQUEST_REJECTED";
|
|
17
17
|
// Админам: подтверждён конфликт «остаток 1С меньше резерва FC» или его рост (FC-560).
|
|
18
18
|
NotificationTypeEnum["ONE_C_STOCK_CONFLICT"] = "ONE_C_STOCK_CONFLICT";
|
|
19
|
+
// Сотруднику, ответственному за клиента: клиент оформил заказ в витрине или приложении.
|
|
20
|
+
NotificationTypeEnum["CLIENT_ORDER_PLACED"] = "CLIENT_ORDER_PLACED";
|
|
21
|
+
// Клиенту: сотрудник создал для него заказ.
|
|
22
|
+
NotificationTypeEnum["ORDER_CREATED"] = "ORDER_CREATED";
|
|
23
|
+
// Клиенту: рассылка из каталога по шаблону ClientCatalogPushTemplateEnum.
|
|
24
|
+
NotificationTypeEnum["CATALOG_UPDATED"] = "CATALOG_UPDATED";
|
|
19
25
|
})(NotificationTypeEnum || (exports.NotificationTypeEnum = NotificationTypeEnum = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AnalyzeClientPushCampaignRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const client_catalog_push_template_enum_1 = require("../../enum/client-catalog-push-template.enum");
|
|
6
|
+
const client_push_campaign_target_schema_1 = require("./client-push-campaign-target.schema");
|
|
7
|
+
exports.AnalyzeClientPushCampaignRequestSchema = zod_1.z.object({
|
|
8
|
+
template: zod_1.z.nativeEnum(client_catalog_push_template_enum_1.ClientCatalogPushTemplateEnum),
|
|
9
|
+
target: client_push_campaign_target_schema_1.ClientPushCampaignTargetSchema,
|
|
10
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AnalyzeClientPushCampaignResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const client_push_campaign_analysis_schema_1 = require("./client-push-campaign-analysis.schema");
|
|
6
|
+
exports.AnalyzeClientPushCampaignResponseSchema = zod_1.z.object({
|
|
7
|
+
data: client_push_campaign_analysis_schema_1.ClientPushCampaignAnalysisSchema,
|
|
8
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientOrderPushTypeSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const client_order_push_type_list_1 = require("../../enum/client-order-push-type-list");
|
|
6
|
+
exports.ClientOrderPushTypeSchema = zod_1.z.enum(client_order_push_type_list_1.ClientOrderPushTypeList);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientPushCampaignAnalysisSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
// Охват до отправки: total — выбранные клиенты, recipients — получат пуш, withoutApp — без приложения,
|
|
6
|
+
// recentlyNotified — с приложением, но рассылка уже приходила им в течение часа (повторно не отправляется).
|
|
7
|
+
exports.ClientPushCampaignAnalysisSchema = zod_1.z.object({
|
|
8
|
+
total: zod_1.z.number().int(),
|
|
9
|
+
recipients: zod_1.z.number().int(),
|
|
10
|
+
withoutApp: zod_1.z.number().int(),
|
|
11
|
+
recentlyNotified: zod_1.z.number().int(),
|
|
12
|
+
maxRecipients: zod_1.z.number().int(),
|
|
13
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientPushCampaignClientListTargetSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const client_push_campaign_max_recipients_constant_1 = require("./client-push-campaign-max-recipients.constant");
|
|
6
|
+
exports.ClientPushCampaignClientListTargetSchema = zod_1.z
|
|
7
|
+
.object({
|
|
8
|
+
clientUUIDList: zod_1.z.array(zod_1.z.string().uuid()).min(1).max(client_push_campaign_max_recipients_constant_1.CLIENT_PUSH_CAMPAIGN_MAX_RECIPIENTS),
|
|
9
|
+
})
|
|
10
|
+
.strict();
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientPushCampaignGroupTargetSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.ClientPushCampaignGroupTargetSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
group: zod_1.z.string().trim().min(1),
|
|
8
|
+
})
|
|
9
|
+
.strict();
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CLIENT_PUSH_CAMPAIGN_MAX_RECIPIENTS = void 0;
|
|
4
|
+
// Потолок получателей одной рассылки: уведомления создаются в одной транзакции, крон отправляет их порциями.
|
|
5
|
+
exports.CLIENT_PUSH_CAMPAIGN_MAX_RECIPIENTS = 1000;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientPushCampaignStatsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
// Итоги рассылки: pending — ещё в очереди, delivered — пуш принят FCM хотя бы на одно устройство клиента,
|
|
6
|
+
// failed — не ушёл (устройство отключено или FCM отказал).
|
|
7
|
+
exports.ClientPushCampaignStatsSchema = zod_1.z.object({
|
|
8
|
+
pending: zod_1.z.number().int(),
|
|
9
|
+
delivered: zod_1.z.number().int(),
|
|
10
|
+
failed: zod_1.z.number().int(),
|
|
11
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientPushCampaignTargetSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const client_push_campaign_group_target_schema_1 = require("./client-push-campaign-group-target.schema");
|
|
6
|
+
const client_push_campaign_client_list_target_schema_1 = require("./client-push-campaign-client-list-target.schema");
|
|
7
|
+
// Получатели рассылки: группа клиентов или конкретные клиенты — ровно одно из двух.
|
|
8
|
+
exports.ClientPushCampaignTargetSchema = zod_1.z.union([client_push_campaign_group_target_schema_1.ClientPushCampaignGroupTargetSchema, client_push_campaign_client_list_target_schema_1.ClientPushCampaignClientListTargetSchema]);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientPushCampaignSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const client_catalog_push_template_enum_1 = require("../../enum/client-catalog-push-template.enum");
|
|
6
|
+
const client_push_campaign_status_enum_1 = require("../../enum/client-push-campaign-status.enum");
|
|
7
|
+
const client_push_campaign_stats_schema_1 = require("./client-push-campaign-stats.schema");
|
|
8
|
+
// Списка клиентов в ответе нет: он большой и шире того, что видит сотрудник с ограничением по клиентам.
|
|
9
|
+
// targetGroup — группа клиентов; null — рассылка по выбранному списку.
|
|
10
|
+
exports.ClientPushCampaignSchema = zod_1.z.object({
|
|
11
|
+
uuid: zod_1.z.string().uuid(),
|
|
12
|
+
template: zod_1.z.nativeEnum(client_catalog_push_template_enum_1.ClientCatalogPushTemplateEnum),
|
|
13
|
+
targetGroup: zod_1.z.string().nullable(),
|
|
14
|
+
recipientCount: zod_1.z.number().int(),
|
|
15
|
+
status: zod_1.z.nativeEnum(client_push_campaign_status_enum_1.ClientPushCampaignStatusEnum),
|
|
16
|
+
createdByUserUUID: zod_1.z.string().uuid(),
|
|
17
|
+
createdAt: zod_1.z.coerce.date(),
|
|
18
|
+
stats: client_push_campaign_stats_schema_1.ClientPushCampaignStatsSchema,
|
|
19
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExecuteClientPushCampaignRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const analyze_client_push_campaign_request_schema_1 = require("./analyze-client-push-campaign-request.schema");
|
|
6
|
+
// requestId — ключ идемпотентности от панели: повторное нажатие возвращает ту же рассылку.
|
|
7
|
+
exports.ExecuteClientPushCampaignRequestSchema = analyze_client_push_campaign_request_schema_1.AnalyzeClientPushCampaignRequestSchema.extend({
|
|
8
|
+
requestId: zod_1.z.string().uuid(),
|
|
9
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExecuteClientPushCampaignResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const client_push_campaign_schema_1 = require("./client-push-campaign.schema");
|
|
6
|
+
exports.ExecuteClientPushCampaignResponseSchema = zod_1.z.object({
|
|
7
|
+
data: client_push_campaign_schema_1.ClientPushCampaignSchema,
|
|
8
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetClientPushCampaignListRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.GetClientPushCampaignListRequestSchema = zod_1.z.object({
|
|
6
|
+
limit: zod_1.z.coerce.number().int().min(1).max(50).default(10),
|
|
7
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetClientPushCampaignListResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const client_push_campaign_schema_1 = require("./client-push-campaign.schema");
|
|
6
|
+
exports.GetClientPushCampaignListResponseSchema = zod_1.z.object({
|
|
7
|
+
data: zod_1.z.array(client_push_campaign_schema_1.ClientPushCampaignSchema),
|
|
8
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client-order-push-type.schema"), exports);
|
|
18
|
+
__exportStar(require("./send-client-order-push-request.schema"), exports);
|
|
19
|
+
__exportStar(require("./client-order-push-result.schema"), exports);
|
|
20
|
+
__exportStar(require("./send-client-order-push-response.schema"), exports);
|
|
21
|
+
__exportStar(require("./client-push-campaign-max-recipients.constant"), exports);
|
|
22
|
+
__exportStar(require("./client-push-campaign-group-target.schema"), exports);
|
|
23
|
+
__exportStar(require("./client-push-campaign-client-list-target.schema"), exports);
|
|
24
|
+
__exportStar(require("./client-push-campaign-target.schema"), exports);
|
|
25
|
+
__exportStar(require("./analyze-client-push-campaign-request.schema"), exports);
|
|
26
|
+
__exportStar(require("./client-push-campaign-analysis.schema"), exports);
|
|
27
|
+
__exportStar(require("./analyze-client-push-campaign-response.schema"), exports);
|
|
28
|
+
__exportStar(require("./execute-client-push-campaign-request.schema"), exports);
|
|
29
|
+
__exportStar(require("./client-push-campaign-stats.schema"), exports);
|
|
30
|
+
__exportStar(require("./client-push-campaign.schema"), exports);
|
|
31
|
+
__exportStar(require("./execute-client-push-campaign-response.schema"), exports);
|
|
32
|
+
__exportStar(require("./get-client-push-campaign-list-request.schema"), exports);
|
|
33
|
+
__exportStar(require("./get-client-push-campaign-list-response.schema"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SendClientOrderPushRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const client_order_push_type_schema_1 = require("./client-order-push-type.schema");
|
|
6
|
+
exports.SendClientOrderPushRequestSchema = zod_1.z.object({
|
|
7
|
+
orderUUID: zod_1.z.string().uuid(),
|
|
8
|
+
type: client_order_push_type_schema_1.ClientOrderPushTypeSchema,
|
|
9
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SendClientOrderPushResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const client_order_push_result_schema_1 = require("./client-order-push-result.schema");
|
|
6
|
+
exports.SendClientOrderPushResponseSchema = zod_1.z.object({
|
|
7
|
+
data: client_order_push_result_schema_1.ClientOrderPushResultSchema,
|
|
8
|
+
});
|
package/build/schemas/index.js
CHANGED
|
@@ -65,6 +65,8 @@ __exportStar(require("./integration"), exports);
|
|
|
65
65
|
__exportStar(require("./measure-unit"), exports);
|
|
66
66
|
__exportStar(require("./message"), exports);
|
|
67
67
|
__exportStar(require("./messenger-profile"), exports);
|
|
68
|
+
__exportStar(require("./staff-push"), exports);
|
|
69
|
+
__exportStar(require("./client-push"), exports);
|
|
68
70
|
__exportStar(require("./money-account"), exports);
|
|
69
71
|
__exportStar(require("./money-account/money-account-with-balance.schema"), exports);
|
|
70
72
|
__exportStar(require("./money-account/money-account.schema"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetOneCOrdersSyncStatusRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.GetOneCOrdersSyncStatusRequestSchema = zod_1.z.object({
|
|
6
|
+
orderUUIDs: zod_1.z.array(zod_1.z.string().uuid()).min(1).max(200),
|
|
7
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetOneCOrdersSyncStatusResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const one_c_order_sync_status_schema_1 = require("./one-c-order-sync-status.schema");
|
|
6
|
+
exports.GetOneCOrdersSyncStatusResponseSchema = zod_1.z.object({
|
|
7
|
+
message: zod_1.z.string().optional(),
|
|
8
|
+
data: zod_1.z.object({
|
|
9
|
+
statuses: zod_1.z.array(one_c_order_sync_status_schema_1.OneCOrderSyncStatusSchema),
|
|
10
|
+
}),
|
|
11
|
+
});
|
|
@@ -32,3 +32,7 @@ __exportStar(require("./update-one-c-settings-request.schema"), exports);
|
|
|
32
32
|
__exportStar(require("./update-one-c-settings-response.schema"), exports);
|
|
33
33
|
__exportStar(require("./one-c-order-exchange-state.schema"), exports);
|
|
34
34
|
__exportStar(require("./get-one-c-order-exchange-state-response.schema"), exports);
|
|
35
|
+
__exportStar(require("./get-one-c-orders-sync-status-request.schema"), exports);
|
|
36
|
+
__exportStar(require("./get-one-c-orders-sync-status-response.schema"), exports);
|
|
37
|
+
__exportStar(require("./one-c-order-sync-status.schema"), exports);
|
|
38
|
+
__exportStar(require("./retry-one-c-order-deletion-response.schema"), exports);
|
|
@@ -32,4 +32,12 @@ exports.OneCOrderExchangeStateSchema = zod_1.z.object({
|
|
|
32
32
|
// Последнее применение состава из 1С не прошло (режим ONE_C): код ошибки и когда.
|
|
33
33
|
applyErrorCode: zod_1.z.string().nullable(),
|
|
34
34
|
applyErrorAt: zod_1.z.string().datetime().nullable(),
|
|
35
|
+
// 1С ведёт заказ и отправка подтверждена: заказ в FC не редактируется.
|
|
36
|
+
isEditLocked: zod_1.z.boolean(),
|
|
37
|
+
// Документ снят в 1С (пометка удаления или отмена), заказ ждёт удаления в FC.
|
|
38
|
+
deletionRequestedAt: zod_1.z.string().datetime().nullable(),
|
|
39
|
+
// Удаление не прошло: код причины и номер счёта или УПД, если причина в них.
|
|
40
|
+
deletionErrorCode: zod_1.z.string().nullable(),
|
|
41
|
+
deletionErrorDetail: zod_1.z.string().nullable(),
|
|
42
|
+
deletionErrorAt: zod_1.z.string().datetime().nullable(),
|
|
35
43
|
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OneCOrderSyncStatusSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
// Заказ с ошибкой синхронизации с 1С: удаление по сигналу из 1С не прошло.
|
|
6
|
+
exports.OneCOrderSyncStatusSchema = zod_1.z.object({
|
|
7
|
+
orderUUID: zod_1.z.string().uuid(),
|
|
8
|
+
deletionErrorCode: zod_1.z.string(),
|
|
9
|
+
// Номер счёта или УПД, если причина в них.
|
|
10
|
+
deletionErrorDetail: zod_1.z.string().nullable(),
|
|
11
|
+
});
|