@floristcloud/api-lib 1.2.198 → 1.2.199
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/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 +16 -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/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/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 +18 -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/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,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 },
|
|
@@ -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,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateStaffPushPairingResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const staff_push_pairing_schema_1 = require("./staff-push-pairing.schema");
|
|
6
|
+
exports.CreateStaffPushPairingResponseSchema = zod_1.z.object({
|
|
7
|
+
data: staff_push_pairing_schema_1.StaffPushPairingSchema,
|
|
8
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetStaffDeviceListResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const staff_device_schema_1 = require("./staff-device.schema");
|
|
6
|
+
exports.GetStaffDeviceListResponseSchema = zod_1.z.object({
|
|
7
|
+
data: zod_1.z.array(staff_device_schema_1.StaffDeviceSchema),
|
|
8
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
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("./staff-push-pairing.schema"), exports);
|
|
18
|
+
__exportStar(require("./create-staff-push-pairing-response.schema"), exports);
|
|
19
|
+
__exportStar(require("./staff-push-pairing-code.schema"), exports);
|
|
20
|
+
__exportStar(require("./staff-push-pairing-secret.schema"), exports);
|
|
21
|
+
__exportStar(require("./pair-staff-device-request.schema"), exports);
|
|
22
|
+
__exportStar(require("./staff-device-pairing.schema"), exports);
|
|
23
|
+
__exportStar(require("./pair-staff-device-response.schema"), exports);
|
|
24
|
+
__exportStar(require("./refresh-staff-device-request.schema"), exports);
|
|
25
|
+
__exportStar(require("./unpair-staff-device-request.schema"), exports);
|
|
26
|
+
__exportStar(require("./staff-device.schema"), exports);
|
|
27
|
+
__exportStar(require("./get-staff-device-list-response.schema"), exports);
|
|
28
|
+
__exportStar(require("./staff-push-success-response.schema"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PairStaffDeviceRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const device_platform_enum_1 = require("../../enum/device-platform.enum");
|
|
6
|
+
const staff_push_pairing_code_schema_1 = require("./staff-push-pairing-code.schema");
|
|
7
|
+
exports.PairStaffDeviceRequestSchema = zod_1.z.object({
|
|
8
|
+
pairingCode: staff_push_pairing_code_schema_1.StaffPushPairingCodeSchema,
|
|
9
|
+
token: zod_1.z.string().min(1),
|
|
10
|
+
platform: zod_1.z.nativeEnum(device_platform_enum_1.DevicePlatformEnum),
|
|
11
|
+
deviceId: zod_1.z.string().optional(),
|
|
12
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PairStaffDeviceResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const staff_device_pairing_schema_1 = require("./staff-device-pairing.schema");
|
|
6
|
+
exports.PairStaffDeviceResponseSchema = zod_1.z.object({
|
|
7
|
+
data: staff_device_pairing_schema_1.StaffDevicePairingSchema,
|
|
8
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RefreshStaffDeviceRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const device_platform_enum_1 = require("../../enum/device-platform.enum");
|
|
6
|
+
const staff_push_pairing_secret_schema_1 = require("./staff-push-pairing-secret.schema");
|
|
7
|
+
exports.RefreshStaffDeviceRequestSchema = zod_1.z.object({
|
|
8
|
+
companyUUID: zod_1.z.string().uuid(),
|
|
9
|
+
pairingSecret: staff_push_pairing_secret_schema_1.StaffPushPairingSecretSchema,
|
|
10
|
+
token: zod_1.z.string().min(1),
|
|
11
|
+
platform: zod_1.z.nativeEnum(device_platform_enum_1.DevicePlatformEnum),
|
|
12
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StaffDevicePairingSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
// Что приложение хранит после подключения: секрет для обновления токена и отключения без сессии.
|
|
6
|
+
exports.StaffDevicePairingSchema = zod_1.z.object({
|
|
7
|
+
pairingSecret: zod_1.z.string(),
|
|
8
|
+
companyUUID: zod_1.z.string().uuid(),
|
|
9
|
+
userName: zod_1.z.string(),
|
|
10
|
+
companyName: zod_1.z.string(),
|
|
11
|
+
});
|