@purpleschool/gptbot 0.19.21-stage-2-push-msg-apple-pay → 0.19.23-stage-2
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/api/controllers/http/index.d.ts +1 -0
- package/build/api/controllers/http/index.js +1 -0
- package/build/api/controllers/http/push-campaign.d.ts +19 -0
- package/build/api/controllers/http/push-campaign.js +22 -0
- package/build/api/controllers/http/push-cron.d.ts +1 -0
- package/build/api/controllers/http/push-cron.js +1 -0
- package/build/api/routes.d.ts +12 -0
- package/build/api/routes.js +12 -0
- package/build/commands/push/cancel-push-campaign.command.d.ts +31 -0
- package/build/commands/push/cancel-push-campaign.command.js +13 -0
- package/build/commands/push/create-push-campaign.command.d.ts +37 -0
- package/build/commands/push/create-push-campaign.command.js +12 -0
- package/build/commands/push/find-push-campaign-statistics.command.d.ts +18 -0
- package/build/commands/push/find-push-campaign-statistics.command.js +10 -0
- package/build/commands/push/find-push-campaign.command.d.ts +38 -0
- package/build/commands/push/find-push-campaign.command.js +10 -0
- package/build/commands/push/find-push-campaigns.command.d.ts +47 -0
- package/build/commands/push/find-push-campaigns.command.js +25 -0
- package/build/commands/push/index.d.ts +11 -0
- package/build/commands/push/index.js +11 -0
- package/build/commands/push/preview-push-campaign-audience.command.d.ts +15 -0
- package/build/commands/push/preview-push-campaign-audience.command.js +15 -0
- package/build/commands/push/preview-push-campaign-segment.command.d.ts +19 -0
- package/build/commands/push/preview-push-campaign-segment.command.js +13 -0
- package/build/commands/push/run-push-campaigns.command.d.ts +12 -0
- package/build/commands/push/run-push-campaigns.command.js +15 -0
- package/build/commands/push/schedule-push-campaign.command.d.ts +33 -0
- package/build/commands/push/schedule-push-campaign.command.js +18 -0
- package/build/commands/push/send-push-campaign-test.command.d.ts +30 -0
- package/build/commands/push/send-push-campaign-test.command.js +12 -0
- package/build/commands/push/send-test-push.command.d.ts +5 -6
- package/build/commands/push/send-test-push.command.js +2 -18
- package/build/commands/push/update-push-campaign.command.d.ts +42 -0
- package/build/commands/push/update-push-campaign.command.js +13 -0
- package/build/constants/push/enums/index.d.ts +4 -0
- package/build/constants/push/enums/index.js +4 -0
- package/build/constants/push/enums/push-campaign-paid-access.enum.d.ts +9 -0
- package/build/constants/push/enums/push-campaign-paid-access.enum.js +13 -0
- package/build/constants/push/enums/push-campaign-sort-field.enum.d.ts +6 -0
- package/build/constants/push/enums/push-campaign-sort-field.enum.js +10 -0
- package/build/constants/push/enums/push-campaign-start-status.enum.d.ts +7 -0
- package/build/constants/push/enums/push-campaign-start-status.enum.js +11 -0
- package/build/constants/push/enums/push-campaign-status.enum.d.ts +13 -0
- package/build/constants/push/enums/push-campaign-status.enum.js +17 -0
- package/build/models/push/index.d.ts +6 -0
- package/build/models/push/index.js +6 -0
- package/build/models/push/push-campaign-content.schema.d.ts +16 -0
- package/build/models/push/push-campaign-content.schema.js +36 -0
- package/build/models/push/push-campaign-read.schema.d.ts +31 -0
- package/build/models/push/push-campaign-read.schema.js +14 -0
- package/build/models/push/push-campaign-segment.schema.d.ts +10 -0
- package/build/models/push/push-campaign-segment.schema.js +14 -0
- package/build/models/push/push-campaign-statistics.schema.d.ts +11 -0
- package/build/models/push/push-campaign-statistics.schema.js +19 -0
- package/build/models/push/push-campaign.schema.d.ts +21 -0
- package/build/models/push/push-campaign.schema.js +16 -0
- package/build/models/push/push-test-summary.schema.d.ts +21 -0
- package/build/models/push/push-test-summary.schema.js +28 -0
- package/package.json +2 -2
- package/build/helpers/image-generation/calculate-gpt-image-2-price-with-margin.helper.d.ts +0 -62
- package/build/helpers/image-generation/calculate-gpt-image-2-price-with-margin.helper.js +0 -137
|
@@ -90,6 +90,7 @@ export * from './canvas-template';
|
|
|
90
90
|
export * from './app-login';
|
|
91
91
|
export * from './push';
|
|
92
92
|
export * from './push-cron';
|
|
93
|
+
export * from './push-campaign';
|
|
93
94
|
export * from './greetings';
|
|
94
95
|
export * from './motion-control';
|
|
95
96
|
export * from './onboarding';
|
|
@@ -106,6 +106,7 @@ __exportStar(require("./canvas-template"), exports);
|
|
|
106
106
|
__exportStar(require("./app-login"), exports);
|
|
107
107
|
__exportStar(require("./push"), exports);
|
|
108
108
|
__exportStar(require("./push-cron"), exports);
|
|
109
|
+
__exportStar(require("./push-campaign"), exports);
|
|
109
110
|
__exportStar(require("./greetings"), exports);
|
|
110
111
|
__exportStar(require("./motion-control"), exports);
|
|
111
112
|
__exportStar(require("./onboarding"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const PUSH_CAMPAIGN_ADMIN_CONTROLLER: 'push/campaigns';
|
|
2
|
+
export declare const PUSH_CAMPAIGN_ROUTES: {
|
|
3
|
+
readonly CREATE: '';
|
|
4
|
+
readonly FIND_MANY: '';
|
|
5
|
+
readonly FIND_ONE: (uuid: string) => string;
|
|
6
|
+
readonly UPDATE: (uuid: string) => string;
|
|
7
|
+
readonly PARAM_UUID: ':uuid';
|
|
8
|
+
readonly PREVIEW_SEGMENT: 'preview-audience';
|
|
9
|
+
readonly STATISTICS: (uuid: string) => string;
|
|
10
|
+
readonly STATISTICS_PARAM: ':uuid/statistics';
|
|
11
|
+
readonly PREVIEW_AUDIENCE: (uuid: string) => string;
|
|
12
|
+
readonly PREVIEW_AUDIENCE_PARAM: ':uuid/preview-audience';
|
|
13
|
+
readonly TEST: (uuid: string) => string;
|
|
14
|
+
readonly TEST_PARAM: ':uuid/test';
|
|
15
|
+
readonly SCHEDULE: (uuid: string) => string;
|
|
16
|
+
readonly SCHEDULE_PARAM: ':uuid/schedule';
|
|
17
|
+
readonly CANCEL: (uuid: string) => string;
|
|
18
|
+
readonly CANCEL_PARAM: ':uuid/cancel';
|
|
19
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PUSH_CAMPAIGN_ROUTES = exports.PUSH_CAMPAIGN_ADMIN_CONTROLLER = void 0;
|
|
4
|
+
exports.PUSH_CAMPAIGN_ADMIN_CONTROLLER = 'push/campaigns';
|
|
5
|
+
exports.PUSH_CAMPAIGN_ROUTES = {
|
|
6
|
+
CREATE: '',
|
|
7
|
+
FIND_MANY: '',
|
|
8
|
+
FIND_ONE: (uuid) => encodeURIComponent(uuid),
|
|
9
|
+
UPDATE: (uuid) => encodeURIComponent(uuid),
|
|
10
|
+
PARAM_UUID: ':uuid',
|
|
11
|
+
PREVIEW_SEGMENT: 'preview-audience',
|
|
12
|
+
STATISTICS: (uuid) => `${encodeURIComponent(uuid)}/statistics`,
|
|
13
|
+
STATISTICS_PARAM: ':uuid/statistics',
|
|
14
|
+
PREVIEW_AUDIENCE: (uuid) => `${encodeURIComponent(uuid)}/preview-audience`,
|
|
15
|
+
PREVIEW_AUDIENCE_PARAM: ':uuid/preview-audience',
|
|
16
|
+
TEST: (uuid) => `${encodeURIComponent(uuid)}/test`,
|
|
17
|
+
TEST_PARAM: ':uuid/test',
|
|
18
|
+
SCHEDULE: (uuid) => `${encodeURIComponent(uuid)}/schedule`,
|
|
19
|
+
SCHEDULE_PARAM: ':uuid/schedule',
|
|
20
|
+
CANCEL: (uuid) => `${encodeURIComponent(uuid)}/cancel`,
|
|
21
|
+
CANCEL_PARAM: ':uuid/cancel',
|
|
22
|
+
};
|
package/build/api/routes.d.ts
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
export declare const ROOT: '/api';
|
|
2
2
|
export declare const REST_API: {
|
|
3
|
+
readonly PUSH_CAMPAIGN_ADMIN: {
|
|
4
|
+
readonly PREVIEW_SEGMENT: "/api/push/campaigns/preview-audience";
|
|
5
|
+
readonly STATISTICS: (uuid: string) => string;
|
|
6
|
+
readonly SCHEDULE: (uuid: string) => string;
|
|
7
|
+
readonly CANCEL: (uuid: string) => string;
|
|
8
|
+
readonly TEST: (uuid: string) => string;
|
|
9
|
+
readonly PREVIEW_AUDIENCE: (uuid: string) => string;
|
|
10
|
+
readonly CREATE: "/api/push/campaigns";
|
|
11
|
+
readonly FIND_MANY: "/api/push/campaigns";
|
|
12
|
+
readonly FIND_ONE: (uuid: string) => string;
|
|
13
|
+
readonly UPDATE: (uuid: string) => string;
|
|
14
|
+
};
|
|
3
15
|
readonly APPLE_IAP_PRIVATE: {
|
|
4
16
|
readonly TRANSACTIONS: "/api/apple-iap/private/transactions";
|
|
5
17
|
readonly PRODUCTS: "/api/apple-iap/private/products";
|
package/build/api/routes.js
CHANGED
|
@@ -39,6 +39,18 @@ const CONTROLLERS = __importStar(require("./controllers"));
|
|
|
39
39
|
const partner_code_routes_1 = require("./partner-code-routes");
|
|
40
40
|
exports.ROOT = '/api';
|
|
41
41
|
exports.REST_API = {
|
|
42
|
+
PUSH_CAMPAIGN_ADMIN: {
|
|
43
|
+
PREVIEW_SEGMENT: `${exports.ROOT}/${CONTROLLERS.PUSH_CAMPAIGN_ADMIN_CONTROLLER}/${CONTROLLERS.PUSH_CAMPAIGN_ROUTES.PREVIEW_SEGMENT}`,
|
|
44
|
+
STATISTICS: (uuid) => `${exports.ROOT}/${CONTROLLERS.PUSH_CAMPAIGN_ADMIN_CONTROLLER}/${CONTROLLERS.PUSH_CAMPAIGN_ROUTES.STATISTICS(uuid)}`,
|
|
45
|
+
SCHEDULE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PUSH_CAMPAIGN_ADMIN_CONTROLLER}/${CONTROLLERS.PUSH_CAMPAIGN_ROUTES.SCHEDULE(uuid)}`,
|
|
46
|
+
CANCEL: (uuid) => `${exports.ROOT}/${CONTROLLERS.PUSH_CAMPAIGN_ADMIN_CONTROLLER}/${CONTROLLERS.PUSH_CAMPAIGN_ROUTES.CANCEL(uuid)}`,
|
|
47
|
+
TEST: (uuid) => `${exports.ROOT}/${CONTROLLERS.PUSH_CAMPAIGN_ADMIN_CONTROLLER}/${CONTROLLERS.PUSH_CAMPAIGN_ROUTES.TEST(uuid)}`,
|
|
48
|
+
PREVIEW_AUDIENCE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PUSH_CAMPAIGN_ADMIN_CONTROLLER}/${CONTROLLERS.PUSH_CAMPAIGN_ROUTES.PREVIEW_AUDIENCE(uuid)}`,
|
|
49
|
+
CREATE: `${exports.ROOT}/${CONTROLLERS.PUSH_CAMPAIGN_ADMIN_CONTROLLER}`,
|
|
50
|
+
FIND_MANY: `${exports.ROOT}/${CONTROLLERS.PUSH_CAMPAIGN_ADMIN_CONTROLLER}`,
|
|
51
|
+
FIND_ONE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PUSH_CAMPAIGN_ADMIN_CONTROLLER}/${CONTROLLERS.PUSH_CAMPAIGN_ROUTES.FIND_ONE(uuid)}`,
|
|
52
|
+
UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PUSH_CAMPAIGN_ADMIN_CONTROLLER}/${CONTROLLERS.PUSH_CAMPAIGN_ROUTES.UPDATE(uuid)}`,
|
|
53
|
+
},
|
|
42
54
|
APPLE_IAP_PRIVATE: {
|
|
43
55
|
TRANSACTIONS: `${exports.ROOT}/${CONTROLLERS.APPLE_IAP_PRIVATE_CONTROLLER}/${CONTROLLERS.APPLE_IAP_ROUTES.TRANSACTIONS}`,
|
|
44
56
|
PRODUCTS: `${exports.ROOT}/${CONTROLLERS.APPLE_IAP_PRIVATE_CONTROLLER}/${CONTROLLERS.APPLE_IAP_ROUTES.PRODUCTS}`,
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace CancelPushCampaignCommand {
|
|
3
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodUUID;
|
|
5
|
+
}, z.core.$strict>;
|
|
6
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
|
+
const RequestBodySchema: z.ZodDefault<z.ZodObject<{}, z.core.$strict>>;
|
|
8
|
+
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
9
|
+
/** Отмена не отзывает принятые Expo сообщения; повтор возвращает прежнюю отмену. */
|
|
10
|
+
const ResponseSchema: z.ZodObject<{
|
|
11
|
+
data: z.ZodObject<{
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
title: z.ZodString;
|
|
14
|
+
body: z.ZodString;
|
|
15
|
+
url: z.ZodString;
|
|
16
|
+
segment: z.ZodObject<{
|
|
17
|
+
platform: z.ZodOptional<z.ZodEnum<typeof import("../..").PUSH_PLATFORM>>;
|
|
18
|
+
paidAccess: z.ZodOptional<z.ZodEnum<typeof import("../..").PUSH_CAMPAIGN_PAID_ACCESS>>;
|
|
19
|
+
inactiveDays: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
uuid: z.ZodUUID;
|
|
23
|
+
status: z.ZodEnum<typeof import("../..").PUSH_CAMPAIGN_STATUS>;
|
|
24
|
+
scheduledAt: z.ZodNullable<z.ZodDate>;
|
|
25
|
+
createdBy: z.ZodNullable<z.ZodUUID>;
|
|
26
|
+
createdAt: z.ZodDate;
|
|
27
|
+
updatedAt: z.ZodDate;
|
|
28
|
+
}, z.core.$strict>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CancelPushCampaignCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const push_1 = require("../../models/push");
|
|
6
|
+
const find_push_campaign_command_1 = require("./find-push-campaign.command");
|
|
7
|
+
var CancelPushCampaignCommand;
|
|
8
|
+
(function (CancelPushCampaignCommand) {
|
|
9
|
+
CancelPushCampaignCommand.RequestParamsSchema = find_push_campaign_command_1.FindPushCampaignCommand.RequestParamsSchema;
|
|
10
|
+
CancelPushCampaignCommand.RequestBodySchema = zod_1.z.strictObject({}).default({});
|
|
11
|
+
/** Отмена не отзывает принятые Expo сообщения; повтор возвращает прежнюю отмену. */
|
|
12
|
+
CancelPushCampaignCommand.ResponseSchema = zod_1.z.object({ data: push_1.PushCampaignSchema });
|
|
13
|
+
})(CancelPushCampaignCommand || (exports.CancelPushCampaignCommand = CancelPushCampaignCommand = {}));
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace CreatePushCampaignCommand {
|
|
3
|
+
const RequestBodySchema: z.ZodObject<{
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
title: z.ZodString;
|
|
6
|
+
body: z.ZodString;
|
|
7
|
+
url: z.ZodString;
|
|
8
|
+
segment: z.ZodDefault<z.ZodObject<{
|
|
9
|
+
platform: z.ZodOptional<z.ZodEnum<typeof import("../..").PUSH_PLATFORM>>;
|
|
10
|
+
paidAccess: z.ZodOptional<z.ZodEnum<typeof import("../..").PUSH_CAMPAIGN_PAID_ACCESS>>;
|
|
11
|
+
inactiveDays: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
13
|
+
}, z.core.$strict>>;
|
|
14
|
+
}, z.core.$strict>;
|
|
15
|
+
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
16
|
+
const ResponseSchema: z.ZodObject<{
|
|
17
|
+
data: z.ZodObject<{
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
title: z.ZodString;
|
|
20
|
+
body: z.ZodString;
|
|
21
|
+
url: z.ZodString;
|
|
22
|
+
segment: z.ZodObject<{
|
|
23
|
+
platform: z.ZodOptional<z.ZodEnum<typeof import("../..").PUSH_PLATFORM>>;
|
|
24
|
+
paidAccess: z.ZodOptional<z.ZodEnum<typeof import("../..").PUSH_CAMPAIGN_PAID_ACCESS>>;
|
|
25
|
+
inactiveDays: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
27
|
+
}, z.core.$strict>;
|
|
28
|
+
uuid: z.ZodUUID;
|
|
29
|
+
status: z.ZodEnum<typeof import("../..").PUSH_CAMPAIGN_STATUS>;
|
|
30
|
+
scheduledAt: z.ZodNullable<z.ZodDate>;
|
|
31
|
+
createdBy: z.ZodNullable<z.ZodUUID>;
|
|
32
|
+
createdAt: z.ZodDate;
|
|
33
|
+
updatedAt: z.ZodDate;
|
|
34
|
+
}, z.core.$strict>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreatePushCampaignCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const push_1 = require("../../models/push");
|
|
6
|
+
var CreatePushCampaignCommand;
|
|
7
|
+
(function (CreatePushCampaignCommand) {
|
|
8
|
+
CreatePushCampaignCommand.RequestBodySchema = push_1.PushCampaignContentSchema.extend({
|
|
9
|
+
segment: push_1.PushCampaignContentSchema.shape.segment.default({}),
|
|
10
|
+
});
|
|
11
|
+
CreatePushCampaignCommand.ResponseSchema = zod_1.z.object({ data: push_1.PushCampaignSchema });
|
|
12
|
+
})(CreatePushCampaignCommand || (exports.CreatePushCampaignCommand = CreatePushCampaignCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace FindPushCampaignStatisticsCommand {
|
|
3
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodUUID;
|
|
5
|
+
}, z.core.$strict>;
|
|
6
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
|
+
const ResponseSchema: z.ZodObject<{
|
|
8
|
+
data: z.ZodObject<{
|
|
9
|
+
targeted: z.ZodNumber;
|
|
10
|
+
sent: z.ZodNumber;
|
|
11
|
+
delivered: z.ZodNumber;
|
|
12
|
+
opened: z.ZodNumber;
|
|
13
|
+
skipped: z.ZodNumber;
|
|
14
|
+
ctr: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindPushCampaignStatisticsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const push_1 = require("../../models/push");
|
|
6
|
+
var FindPushCampaignStatisticsCommand;
|
|
7
|
+
(function (FindPushCampaignStatisticsCommand) {
|
|
8
|
+
FindPushCampaignStatisticsCommand.RequestParamsSchema = zod_1.z.strictObject({ uuid: zod_1.z.uuid() });
|
|
9
|
+
FindPushCampaignStatisticsCommand.ResponseSchema = zod_1.z.object({ data: push_1.PushCampaignStatisticsSchema });
|
|
10
|
+
})(FindPushCampaignStatisticsCommand || (exports.FindPushCampaignStatisticsCommand = FindPushCampaignStatisticsCommand = {}));
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace FindPushCampaignCommand {
|
|
3
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodUUID;
|
|
5
|
+
}, z.core.$strict>;
|
|
6
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
|
+
const ResponseSchema: z.ZodObject<{
|
|
8
|
+
data: z.ZodObject<{
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
title: z.ZodString;
|
|
11
|
+
body: z.ZodString;
|
|
12
|
+
url: z.ZodString;
|
|
13
|
+
segment: z.ZodObject<{
|
|
14
|
+
platform: z.ZodOptional<z.ZodEnum<typeof import("../..").PUSH_PLATFORM>>;
|
|
15
|
+
paidAccess: z.ZodOptional<z.ZodEnum<typeof import("../..").PUSH_CAMPAIGN_PAID_ACCESS>>;
|
|
16
|
+
inactiveDays: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strict>;
|
|
19
|
+
uuid: z.ZodUUID;
|
|
20
|
+
status: z.ZodEnum<typeof import("../..").PUSH_CAMPAIGN_STATUS>;
|
|
21
|
+
scheduledAt: z.ZodNullable<z.ZodDate>;
|
|
22
|
+
createdBy: z.ZodNullable<z.ZodUUID>;
|
|
23
|
+
createdAt: z.ZodDate;
|
|
24
|
+
updatedAt: z.ZodDate;
|
|
25
|
+
startedAt: z.ZodNullable<z.ZodDate>;
|
|
26
|
+
finishedAt: z.ZodNullable<z.ZodDate>;
|
|
27
|
+
statistics: z.ZodObject<{
|
|
28
|
+
targeted: z.ZodNumber;
|
|
29
|
+
sent: z.ZodNumber;
|
|
30
|
+
delivered: z.ZodNumber;
|
|
31
|
+
opened: z.ZodNumber;
|
|
32
|
+
skipped: z.ZodNumber;
|
|
33
|
+
ctr: z.ZodNullable<z.ZodNumber>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
}, z.core.$strict>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindPushCampaignCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const push_1 = require("../../models/push");
|
|
6
|
+
var FindPushCampaignCommand;
|
|
7
|
+
(function (FindPushCampaignCommand) {
|
|
8
|
+
FindPushCampaignCommand.RequestParamsSchema = zod_1.z.strictObject({ uuid: zod_1.z.uuid() });
|
|
9
|
+
FindPushCampaignCommand.ResponseSchema = zod_1.z.object({ data: push_1.PushCampaignReadSchema });
|
|
10
|
+
})(FindPushCampaignCommand || (exports.FindPushCampaignCommand = FindPushCampaignCommand = {}));
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PUSH_CAMPAIGN_STATUS, PUSH_CAMPAIGN_SORT_FIELD } from '../../constants/push';
|
|
3
|
+
import { SORT_ORDER } from '../../constants/user';
|
|
4
|
+
export declare namespace FindPushCampaignsCommand {
|
|
5
|
+
const RequestQuerySchema: z.ZodObject<{
|
|
6
|
+
status: z.ZodOptional<z.ZodEnum<typeof PUSH_CAMPAIGN_STATUS>>;
|
|
7
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
8
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
9
|
+
sortBy: z.ZodDefault<z.ZodEnum<typeof PUSH_CAMPAIGN_SORT_FIELD>>;
|
|
10
|
+
sortOrder: z.ZodDefault<z.ZodEnum<typeof SORT_ORDER>>;
|
|
11
|
+
}, z.core.$strict>;
|
|
12
|
+
type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
13
|
+
const ResponseSchema: z.ZodObject<{
|
|
14
|
+
data: z.ZodArray<z.ZodObject<{
|
|
15
|
+
name: z.ZodString;
|
|
16
|
+
title: z.ZodString;
|
|
17
|
+
body: z.ZodString;
|
|
18
|
+
url: z.ZodString;
|
|
19
|
+
segment: z.ZodObject<{
|
|
20
|
+
platform: z.ZodOptional<z.ZodEnum<typeof import("../..").PUSH_PLATFORM>>;
|
|
21
|
+
paidAccess: z.ZodOptional<z.ZodEnum<typeof import("../..").PUSH_CAMPAIGN_PAID_ACCESS>>;
|
|
22
|
+
inactiveDays: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, z.core.$strict>;
|
|
25
|
+
uuid: z.ZodUUID;
|
|
26
|
+
status: z.ZodEnum<typeof PUSH_CAMPAIGN_STATUS>;
|
|
27
|
+
scheduledAt: z.ZodNullable<z.ZodDate>;
|
|
28
|
+
createdBy: z.ZodNullable<z.ZodUUID>;
|
|
29
|
+
createdAt: z.ZodDate;
|
|
30
|
+
updatedAt: z.ZodDate;
|
|
31
|
+
startedAt: z.ZodNullable<z.ZodDate>;
|
|
32
|
+
finishedAt: z.ZodNullable<z.ZodDate>;
|
|
33
|
+
statistics: z.ZodObject<{
|
|
34
|
+
targeted: z.ZodNumber;
|
|
35
|
+
sent: z.ZodNumber;
|
|
36
|
+
delivered: z.ZodNumber;
|
|
37
|
+
opened: z.ZodNumber;
|
|
38
|
+
skipped: z.ZodNumber;
|
|
39
|
+
ctr: z.ZodNullable<z.ZodNumber>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
}, z.core.$strict>>;
|
|
42
|
+
page: z.ZodNumber;
|
|
43
|
+
totalPages: z.ZodNumber;
|
|
44
|
+
total: z.ZodNumber;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindPushCampaignsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const push_1 = require("../../constants/push");
|
|
6
|
+
const user_1 = require("../../constants/user");
|
|
7
|
+
const push_2 = require("../../models/push");
|
|
8
|
+
var FindPushCampaignsCommand;
|
|
9
|
+
(function (FindPushCampaignsCommand) {
|
|
10
|
+
FindPushCampaignsCommand.RequestQuerySchema = zod_1.z.strictObject({
|
|
11
|
+
status: zod_1.z.enum(push_1.PUSH_CAMPAIGN_STATUS).optional(),
|
|
12
|
+
limit: zod_1.z.coerce.number().int().positive().max(100).default(20),
|
|
13
|
+
offset: zod_1.z.coerce.number().int().nonnegative().max(2147483647).default(0),
|
|
14
|
+
/** Nullable даты идут после заполненных при обоих направлениях. */
|
|
15
|
+
sortBy: zod_1.z.enum(push_1.PUSH_CAMPAIGN_SORT_FIELD).default(push_1.PUSH_CAMPAIGN_SORT_FIELD.CREATED_AT),
|
|
16
|
+
sortOrder: zod_1.z.enum(user_1.SORT_ORDER).default(user_1.SORT_ORDER.DESC),
|
|
17
|
+
});
|
|
18
|
+
FindPushCampaignsCommand.ResponseSchema = zod_1.z.object({
|
|
19
|
+
data: zod_1.z.array(push_2.PushCampaignReadSchema),
|
|
20
|
+
page: zod_1.z.number().int().positive(),
|
|
21
|
+
totalPages: zod_1.z.number().int().nonnegative(),
|
|
22
|
+
/** Число кампаний с данным фильтром, а не размер страницы или аудитории. */
|
|
23
|
+
total: zod_1.z.number().int().nonnegative(),
|
|
24
|
+
});
|
|
25
|
+
})(FindPushCampaignsCommand || (exports.FindPushCampaignsCommand = FindPushCampaignsCommand = {}));
|
|
@@ -6,3 +6,14 @@ export * from './mark-push-message-opened.command';
|
|
|
6
6
|
export * from './send-test-push.command';
|
|
7
7
|
export * from './check-push-receipts.command';
|
|
8
8
|
export * from './send-daily-push-reminders.command';
|
|
9
|
+
export * from './create-push-campaign.command';
|
|
10
|
+
export * from './find-push-campaign.command';
|
|
11
|
+
export * from './find-push-campaigns.command';
|
|
12
|
+
export * from './update-push-campaign.command';
|
|
13
|
+
export * from './preview-push-campaign-audience.command';
|
|
14
|
+
export * from './send-push-campaign-test.command';
|
|
15
|
+
export * from './schedule-push-campaign.command';
|
|
16
|
+
export * from './cancel-push-campaign.command';
|
|
17
|
+
export * from './run-push-campaigns.command';
|
|
18
|
+
export * from './find-push-campaign-statistics.command';
|
|
19
|
+
export * from './preview-push-campaign-segment.command';
|
|
@@ -22,3 +22,14 @@ __exportStar(require("./mark-push-message-opened.command"), exports);
|
|
|
22
22
|
__exportStar(require("./send-test-push.command"), exports);
|
|
23
23
|
__exportStar(require("./check-push-receipts.command"), exports);
|
|
24
24
|
__exportStar(require("./send-daily-push-reminders.command"), exports);
|
|
25
|
+
__exportStar(require("./create-push-campaign.command"), exports);
|
|
26
|
+
__exportStar(require("./find-push-campaign.command"), exports);
|
|
27
|
+
__exportStar(require("./find-push-campaigns.command"), exports);
|
|
28
|
+
__exportStar(require("./update-push-campaign.command"), exports);
|
|
29
|
+
__exportStar(require("./preview-push-campaign-audience.command"), exports);
|
|
30
|
+
__exportStar(require("./send-push-campaign-test.command"), exports);
|
|
31
|
+
__exportStar(require("./schedule-push-campaign.command"), exports);
|
|
32
|
+
__exportStar(require("./cancel-push-campaign.command"), exports);
|
|
33
|
+
__exportStar(require("./run-push-campaigns.command"), exports);
|
|
34
|
+
__exportStar(require("./find-push-campaign-statistics.command"), exports);
|
|
35
|
+
__exportStar(require("./preview-push-campaign-segment.command"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace PreviewPushCampaignAudienceCommand {
|
|
3
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodUUID;
|
|
5
|
+
}, z.core.$strict>;
|
|
6
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
|
+
const RequestBodySchema: z.ZodObject<{}, z.core.$strict>;
|
|
8
|
+
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
9
|
+
const ResponseSchema: z.ZodObject<{
|
|
10
|
+
data: z.ZodObject<{
|
|
11
|
+
count: z.ZodNumber;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PreviewPushCampaignAudienceCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var PreviewPushCampaignAudienceCommand;
|
|
6
|
+
(function (PreviewPushCampaignAudienceCommand) {
|
|
7
|
+
PreviewPushCampaignAudienceCommand.RequestParamsSchema = zod_1.z.strictObject({ uuid: zod_1.z.uuid() });
|
|
8
|
+
PreviewPushCampaignAudienceCommand.RequestBodySchema = zod_1.z.strictObject({});
|
|
9
|
+
PreviewPushCampaignAudienceCommand.ResponseSchema = zod_1.z.object({
|
|
10
|
+
data: zod_1.z.object({
|
|
11
|
+
/** Уникальные пользователи текущего сегмента; не обещание доставки и не число устройств. */
|
|
12
|
+
count: zod_1.z.number().int().nonnegative(),
|
|
13
|
+
}),
|
|
14
|
+
});
|
|
15
|
+
})(PreviewPushCampaignAudienceCommand || (exports.PreviewPushCampaignAudienceCommand = PreviewPushCampaignAudienceCommand = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace PreviewPushCampaignSegmentCommand {
|
|
3
|
+
/** Read-only preview формы: не создаёт/изменяет черновик и не резервирует адресатов. */
|
|
4
|
+
const RequestBodySchema: z.ZodObject<{
|
|
5
|
+
segment: z.ZodObject<{
|
|
6
|
+
platform: z.ZodOptional<z.ZodEnum<typeof import("../..").PUSH_PLATFORM>>;
|
|
7
|
+
paidAccess: z.ZodOptional<z.ZodEnum<typeof import("../..").PUSH_CAMPAIGN_PAID_ACCESS>>;
|
|
8
|
+
inactiveDays: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strict>;
|
|
11
|
+
}, z.core.$strict>;
|
|
12
|
+
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
13
|
+
const ResponseSchema: z.ZodObject<{
|
|
14
|
+
data: z.ZodObject<{
|
|
15
|
+
count: z.ZodNumber;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PreviewPushCampaignSegmentCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const push_1 = require("../../models/push");
|
|
6
|
+
var PreviewPushCampaignSegmentCommand;
|
|
7
|
+
(function (PreviewPushCampaignSegmentCommand) {
|
|
8
|
+
/** Read-only preview формы: не создаёт/изменяет черновик и не резервирует адресатов. */
|
|
9
|
+
PreviewPushCampaignSegmentCommand.RequestBodySchema = zod_1.z.strictObject({ segment: push_1.PushCampaignSegmentSchema });
|
|
10
|
+
PreviewPushCampaignSegmentCommand.ResponseSchema = zod_1.z.object({
|
|
11
|
+
data: zod_1.z.object({ count: zod_1.z.number().int().nonnegative() }),
|
|
12
|
+
});
|
|
13
|
+
})(PreviewPushCampaignSegmentCommand || (exports.PreviewPushCampaignSegmentCommand = PreviewPushCampaignSegmentCommand = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PUSH_CAMPAIGN_START_STATUS } from '../../constants/push';
|
|
3
|
+
export declare namespace RunPushCampaignsCommand {
|
|
4
|
+
const RequestBodySchema: z.ZodDefault<z.ZodObject<{}, z.core.$strict>>;
|
|
5
|
+
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
6
|
+
const ResponseSchema: z.ZodObject<{
|
|
7
|
+
data: z.ZodObject<{
|
|
8
|
+
status: z.ZodEnum<typeof PUSH_CAMPAIGN_START_STATUS>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RunPushCampaignsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const push_1 = require("../../constants/push");
|
|
6
|
+
var RunPushCampaignsCommand;
|
|
7
|
+
(function (RunPushCampaignsCommand) {
|
|
8
|
+
RunPushCampaignsCommand.RequestBodySchema = zod_1.z.object({}).strict().default({});
|
|
9
|
+
RunPushCampaignsCommand.ResponseSchema = zod_1.z.object({
|
|
10
|
+
data: zod_1.z.object({
|
|
11
|
+
/** Статус принятия в процессе API; итог обхода возвращается отдельно во внутреннюю сводку. */
|
|
12
|
+
status: zod_1.z.enum(push_1.PUSH_CAMPAIGN_START_STATUS),
|
|
13
|
+
}),
|
|
14
|
+
});
|
|
15
|
+
})(RunPushCampaignsCommand || (exports.RunPushCampaignsCommand = RunPushCampaignsCommand = {}));
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace SchedulePushCampaignCommand {
|
|
3
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodUUID;
|
|
5
|
+
}, z.core.$strict>;
|
|
6
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
|
+
const RequestBodySchema: z.ZodDefault<z.ZodObject<{
|
|
8
|
+
scheduledAt: z.ZodOptional<z.ZodISODateTime>;
|
|
9
|
+
}, z.core.$strict>>;
|
|
10
|
+
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
11
|
+
/** SCHEDULED подтверждает принятие намерения, а не завершение доставки. */
|
|
12
|
+
const ResponseSchema: z.ZodObject<{
|
|
13
|
+
data: z.ZodObject<{
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
title: z.ZodString;
|
|
16
|
+
body: z.ZodString;
|
|
17
|
+
url: z.ZodString;
|
|
18
|
+
segment: z.ZodObject<{
|
|
19
|
+
platform: z.ZodOptional<z.ZodEnum<typeof import("../..").PUSH_PLATFORM>>;
|
|
20
|
+
paidAccess: z.ZodOptional<z.ZodEnum<typeof import("../..").PUSH_CAMPAIGN_PAID_ACCESS>>;
|
|
21
|
+
inactiveDays: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strict>;
|
|
24
|
+
uuid: z.ZodUUID;
|
|
25
|
+
status: z.ZodEnum<typeof import("../..").PUSH_CAMPAIGN_STATUS>;
|
|
26
|
+
scheduledAt: z.ZodNullable<z.ZodDate>;
|
|
27
|
+
createdBy: z.ZodNullable<z.ZodUUID>;
|
|
28
|
+
createdAt: z.ZodDate;
|
|
29
|
+
updatedAt: z.ZodDate;
|
|
30
|
+
}, z.core.$strict>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SchedulePushCampaignCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const push_1 = require("../../models/push");
|
|
6
|
+
const find_push_campaign_command_1 = require("./find-push-campaign.command");
|
|
7
|
+
var SchedulePushCampaignCommand;
|
|
8
|
+
(function (SchedulePushCampaignCommand) {
|
|
9
|
+
SchedulePushCampaignCommand.RequestParamsSchema = find_push_campaign_command_1.FindPushCampaignCommand.RequestParamsSchema;
|
|
10
|
+
SchedulePushCampaignCommand.RequestBodySchema = zod_1.z
|
|
11
|
+
.strictObject({
|
|
12
|
+
/** Абсолютный момент с Z/offset; отсутствие означает ближайший запуск с серверным now. */
|
|
13
|
+
scheduledAt: zod_1.z.iso.datetime({ offset: true }).optional(),
|
|
14
|
+
})
|
|
15
|
+
.default({});
|
|
16
|
+
/** SCHEDULED подтверждает принятие намерения, а не завершение доставки. */
|
|
17
|
+
SchedulePushCampaignCommand.ResponseSchema = zod_1.z.object({ data: push_1.PushCampaignSchema });
|
|
18
|
+
})(SchedulePushCampaignCommand || (exports.SchedulePushCampaignCommand = SchedulePushCampaignCommand = {}));
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace SendPushCampaignTestCommand {
|
|
3
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodUUID;
|
|
5
|
+
}, z.core.$strict>;
|
|
6
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
|
+
/** Получатель определяется только по JWT; текст и сегмент берутся из кампании. */
|
|
8
|
+
const RequestBodySchema: z.ZodObject<{}, z.core.$strict>;
|
|
9
|
+
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
10
|
+
const ResponseSchema: z.ZodObject<{
|
|
11
|
+
data: z.ZodObject<{
|
|
12
|
+
total: z.ZodNumber;
|
|
13
|
+
sent: z.ZodNumber;
|
|
14
|
+
failed: z.ZodNumber;
|
|
15
|
+
skipped: z.ZodNumber;
|
|
16
|
+
skipReason: z.ZodNullable<z.ZodEnum<typeof import("../..").PUSH_SKIP_REASON>>;
|
|
17
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
18
|
+
messageId: z.ZodUUID;
|
|
19
|
+
deviceId: z.ZodUUID;
|
|
20
|
+
status: z.ZodEnum<{
|
|
21
|
+
failed: import("../..").PUSH_MESSAGE_STATUS.FAILED;
|
|
22
|
+
sent: import("../..").PUSH_MESSAGE_STATUS.SENT;
|
|
23
|
+
skipped: import("../..").PUSH_MESSAGE_STATUS.SKIPPED;
|
|
24
|
+
}>;
|
|
25
|
+
skipReason: z.ZodNullable<z.ZodEnum<typeof import("../..").PUSH_SKIP_REASON>>;
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SendPushCampaignTestCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const push_1 = require("../../models/push");
|
|
6
|
+
var SendPushCampaignTestCommand;
|
|
7
|
+
(function (SendPushCampaignTestCommand) {
|
|
8
|
+
SendPushCampaignTestCommand.RequestParamsSchema = zod_1.z.strictObject({ uuid: zod_1.z.uuid() });
|
|
9
|
+
/** Получатель определяется только по JWT; текст и сегмент берутся из кампании. */
|
|
10
|
+
SendPushCampaignTestCommand.RequestBodySchema = zod_1.z.strictObject({});
|
|
11
|
+
SendPushCampaignTestCommand.ResponseSchema = zod_1.z.object({ data: push_1.PushTestSummarySchema });
|
|
12
|
+
})(SendPushCampaignTestCommand || (exports.SendPushCampaignTestCommand = SendPushCampaignTestCommand = {}));
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { PUSH_MESSAGE_STATUS, PUSH_SKIP_REASON } from '../../constants/push';
|
|
2
1
|
import { z } from 'zod';
|
|
3
2
|
export declare namespace SendTestPushCommand {
|
|
4
3
|
const RequestBodySchema: z.ZodDefault<z.ZodObject<{}, z.core.$strict>>;
|
|
@@ -9,16 +8,16 @@ export declare namespace SendTestPushCommand {
|
|
|
9
8
|
sent: z.ZodNumber;
|
|
10
9
|
failed: z.ZodNumber;
|
|
11
10
|
skipped: z.ZodNumber;
|
|
12
|
-
skipReason: z.ZodNullable<z.ZodEnum<typeof PUSH_SKIP_REASON>>;
|
|
11
|
+
skipReason: z.ZodNullable<z.ZodEnum<typeof import("../..").PUSH_SKIP_REASON>>;
|
|
13
12
|
messages: z.ZodArray<z.ZodObject<{
|
|
14
13
|
messageId: z.ZodUUID;
|
|
15
14
|
deviceId: z.ZodUUID;
|
|
16
15
|
status: z.ZodEnum<{
|
|
17
|
-
failed: PUSH_MESSAGE_STATUS.FAILED;
|
|
18
|
-
sent: PUSH_MESSAGE_STATUS.SENT;
|
|
19
|
-
skipped: PUSH_MESSAGE_STATUS.SKIPPED;
|
|
16
|
+
failed: import("../..").PUSH_MESSAGE_STATUS.FAILED;
|
|
17
|
+
sent: import("../..").PUSH_MESSAGE_STATUS.SENT;
|
|
18
|
+
skipped: import("../..").PUSH_MESSAGE_STATUS.SKIPPED;
|
|
20
19
|
}>;
|
|
21
|
-
skipReason: z.ZodNullable<z.ZodEnum<typeof PUSH_SKIP_REASON>>;
|
|
20
|
+
skipReason: z.ZodNullable<z.ZodEnum<typeof import("../..").PUSH_SKIP_REASON>>;
|
|
22
21
|
}, z.core.$strip>>;
|
|
23
22
|
}, z.core.$strip>;
|
|
24
23
|
}, z.core.$strip>;
|