@purpleschool/gptbot 0.19.22-stage-2 → 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 +3 -0
- package/build/api/controllers/http/index.js +3 -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 +6 -0
- package/build/api/controllers/http/push-cron.js +9 -0
- package/build/api/controllers/http/push.d.ts +10 -0
- package/build/api/controllers/http/push.js +13 -0
- package/build/api/routes.d.ts +12 -0
- package/build/api/routes.js +12 -0
- package/build/commands/index.d.ts +1 -0
- package/build/commands/index.js +1 -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/check-push-receipts.command.d.ts +18 -0
- package/build/commands/push/check-push-receipts.command.js +28 -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/delete-push-device.command.d.ts +13 -0
- package/build/commands/push/delete-push-device.command.js +10 -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/get-push-settings.command.d.ts +11 -0
- package/build/commands/push/get-push-settings.command.js +9 -0
- package/build/commands/push/index.d.ts +19 -0
- package/build/commands/push/index.js +35 -0
- package/build/commands/push/mark-push-message-opened.command.d.ts +13 -0
- package/build/commands/push/mark-push-message-opened.command.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/register-push-device.command.d.ts +19 -0
- package/build/commands/push/register-push-device.command.js +38 -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-daily-push-reminders.command.d.ts +12 -0
- package/build/commands/push/send-daily-push-reminders.command.js +15 -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 +25 -0
- package/build/commands/push/send-test-push.command.js +12 -0
- 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/commands/push/update-push-settings.command.d.ts +17 -0
- package/build/commands/push/update-push-settings.command.js +10 -0
- package/build/constants/index.d.ts +1 -0
- package/build/constants/index.js +1 -0
- package/build/constants/push/enums/index.d.ts +11 -0
- package/build/constants/push/enums/index.js +27 -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/constants/push/enums/push-category.enum.d.ts +9 -0
- package/build/constants/push/enums/push-category.enum.js +13 -0
- package/build/constants/push/enums/push-daily-reminder-start-status.enum.d.ts +7 -0
- package/build/constants/push/enums/push-daily-reminder-start-status.enum.js +11 -0
- package/build/constants/push/enums/push-message-status.enum.d.ts +13 -0
- package/build/constants/push/enums/push-message-status.enum.js +17 -0
- package/build/constants/push/enums/push-message-type.enum.d.ts +15 -0
- package/build/constants/push/enums/push-message-type.enum.js +19 -0
- package/build/constants/push/enums/push-platform.enum.d.ts +7 -0
- package/build/constants/push/enums/push-platform.enum.js +11 -0
- package/build/constants/push/enums/push-provider.enum.d.ts +7 -0
- package/build/constants/push/enums/push-provider.enum.js +11 -0
- package/build/constants/push/enums/push-skip-reason.enum.d.ts +11 -0
- package/build/constants/push/enums/push-skip-reason.enum.js +15 -0
- package/build/constants/push/index.d.ts +2 -0
- package/build/constants/push/index.js +18 -0
- package/build/constants/push/push-settings-defaults.d.ts +5 -0
- package/build/constants/push/push-settings-defaults.js +8 -0
- package/build/models/index.d.ts +1 -0
- package/build/models/index.js +1 -0
- package/build/models/push/index.d.ts +8 -0
- package/build/models/push/index.js +24 -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-device.schema.d.ts +17 -0
- package/build/models/push/push-device.schema.js +34 -0
- package/build/models/push/push-settings.schema.d.ts +7 -0
- package/build/models/push/push-settings.schema.js +9 -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
|
@@ -88,6 +88,9 @@ export * from './photo-session';
|
|
|
88
88
|
export * from './photo-studio';
|
|
89
89
|
export * from './canvas-template';
|
|
90
90
|
export * from './app-login';
|
|
91
|
+
export * from './push';
|
|
92
|
+
export * from './push-cron';
|
|
93
|
+
export * from './push-campaign';
|
|
91
94
|
export * from './greetings';
|
|
92
95
|
export * from './motion-control';
|
|
93
96
|
export * from './onboarding';
|
|
@@ -104,6 +104,9 @@ __exportStar(require("./photo-session"), exports);
|
|
|
104
104
|
__exportStar(require("./photo-studio"), exports);
|
|
105
105
|
__exportStar(require("./canvas-template"), exports);
|
|
106
106
|
__exportStar(require("./app-login"), exports);
|
|
107
|
+
__exportStar(require("./push"), exports);
|
|
108
|
+
__exportStar(require("./push-cron"), exports);
|
|
109
|
+
__exportStar(require("./push-campaign"), exports);
|
|
107
110
|
__exportStar(require("./greetings"), exports);
|
|
108
111
|
__exportStar(require("./motion-control"), exports);
|
|
109
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
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PUSH_CRON_ROUTES = exports.PUSH_CRON_CONTROLLER = void 0;
|
|
4
|
+
exports.PUSH_CRON_CONTROLLER = 'push/cron';
|
|
5
|
+
exports.PUSH_CRON_ROUTES = {
|
|
6
|
+
CHECK_RECEIPTS: 'check-receipts',
|
|
7
|
+
SEND_DAILY_REMINDERS: 'send-daily-reminders',
|
|
8
|
+
RUN_CAMPAIGNS: 'run-campaigns',
|
|
9
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const PUSH_PRIVATE_CONTROLLER: 'push';
|
|
2
|
+
export declare const PUSH_ROUTES: {
|
|
3
|
+
readonly DEVICES: 'devices';
|
|
4
|
+
readonly DEVICE: 'devices/:token';
|
|
5
|
+
readonly DELETE_DEVICE: (token: string) => string;
|
|
6
|
+
readonly SETTINGS: 'settings';
|
|
7
|
+
readonly TEST: 'test';
|
|
8
|
+
readonly MESSAGE_OPENED: 'messages/:uuid/opened';
|
|
9
|
+
readonly MARK_MESSAGE_OPENED: (uuid: string) => string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PUSH_ROUTES = exports.PUSH_PRIVATE_CONTROLLER = void 0;
|
|
4
|
+
exports.PUSH_PRIVATE_CONTROLLER = 'push';
|
|
5
|
+
exports.PUSH_ROUTES = {
|
|
6
|
+
DEVICES: 'devices',
|
|
7
|
+
DEVICE: 'devices/:token',
|
|
8
|
+
DELETE_DEVICE: (token) => `devices/${encodeURIComponent(token)}`,
|
|
9
|
+
SETTINGS: 'settings',
|
|
10
|
+
TEST: 'test',
|
|
11
|
+
MESSAGE_OPENED: 'messages/:uuid/opened',
|
|
12
|
+
MARK_MESSAGE_OPENED: (uuid) => `messages/${encodeURIComponent(uuid)}/opened`,
|
|
13
|
+
};
|
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}`,
|
package/build/commands/index.js
CHANGED
|
@@ -76,5 +76,6 @@ __exportStar(require("./team-account"), exports);
|
|
|
76
76
|
__exportStar(require("./team-to-subscription"), exports);
|
|
77
77
|
__exportStar(require("./team-to-product"), exports);
|
|
78
78
|
__exportStar(require("./app-login"), exports);
|
|
79
|
+
__exportStar(require("./push"), exports);
|
|
79
80
|
__exportStar(require("./partner-codes"), exports);
|
|
80
81
|
__exportStar(require("./onboarding"), exports);
|
|
@@ -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,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace CheckPushReceiptsCommand {
|
|
3
|
+
const RequestBodySchema: z.ZodDefault<z.ZodObject<{}, z.core.$strict>>;
|
|
4
|
+
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
5
|
+
const ResponseSchema: z.ZodObject<{
|
|
6
|
+
data: z.ZodObject<{
|
|
7
|
+
selected: z.ZodNumber;
|
|
8
|
+
delivered: z.ZodNumber;
|
|
9
|
+
failed: z.ZodNumber;
|
|
10
|
+
missing: z.ZodNumber;
|
|
11
|
+
unchanged: z.ZodNumber;
|
|
12
|
+
invalidatedDevices: z.ZodNumber;
|
|
13
|
+
skippedInvalidations: z.ZodNumber;
|
|
14
|
+
limitReached: z.ZodBoolean;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CheckPushReceiptsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var CheckPushReceiptsCommand;
|
|
6
|
+
(function (CheckPushReceiptsCommand) {
|
|
7
|
+
CheckPushReceiptsCommand.RequestBodySchema = zod_1.z.object({}).strict().default({});
|
|
8
|
+
CheckPushReceiptsCommand.ResponseSchema = zod_1.z.object({
|
|
9
|
+
data: zod_1.z.object({
|
|
10
|
+
/** Записи журнала в выбранной пачке, включая разные записи с одинаковым ticket. */
|
|
11
|
+
selected: zod_1.z.number().int().nonnegative(),
|
|
12
|
+
/** Сохранённые подтверждения передачи в FCM/APNs; показ и прочтение не подтверждены. */
|
|
13
|
+
delivered: zod_1.z.number().int().nonnegative(),
|
|
14
|
+
/** Сохранённые отказы из квитанций; не ошибки HTTP-запроса всей пачки. */
|
|
15
|
+
failed: zod_1.z.number().int().nonnegative(),
|
|
16
|
+
/** Проверки без квитанции: сообщения остаются SENT для последующей проверки. */
|
|
17
|
+
missing: zod_1.z.number().int().nonnegative(),
|
|
18
|
+
/** Записи, пропущенные при сохранении из-за параллельного изменения. */
|
|
19
|
+
unchanged: zod_1.z.number().int().nonnegative(),
|
|
20
|
+
/** Регистрации, фактически отключённые по DeviceNotRegistered. */
|
|
21
|
+
invalidatedDevices: zod_1.z.number().int().nonnegative(),
|
|
22
|
+
/** Сохранённые DeviceNotRegistered без отключения уже изменённой или отключённой регистрации. */
|
|
23
|
+
skippedInvalidations: zod_1.z.number().int().nonnegative(),
|
|
24
|
+
/** Размер пачки равен лимиту; наличие оставшихся записей отдельно не проверялось. */
|
|
25
|
+
limitReached: zod_1.z.boolean(),
|
|
26
|
+
}),
|
|
27
|
+
});
|
|
28
|
+
})(CheckPushReceiptsCommand || (exports.CheckPushReceiptsCommand = CheckPushReceiptsCommand = {}));
|
|
@@ -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,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace DeletePushDeviceCommand {
|
|
3
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
4
|
+
token: z.ZodString;
|
|
5
|
+
}, z.core.$strict>;
|
|
6
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
|
+
const ResponseSchema: z.ZodObject<{
|
|
8
|
+
data: z.ZodObject<{
|
|
9
|
+
deleted: z.ZodLiteral<true>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeletePushDeviceCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const push_1 = require("../../models/push");
|
|
6
|
+
var DeletePushDeviceCommand;
|
|
7
|
+
(function (DeletePushDeviceCommand) {
|
|
8
|
+
DeletePushDeviceCommand.RequestParamsSchema = push_1.PushDeviceSchema.pick({ token: true }).strict();
|
|
9
|
+
DeletePushDeviceCommand.ResponseSchema = zod_1.z.object({ data: zod_1.z.object({ deleted: zod_1.z.literal(true) }) });
|
|
10
|
+
})(DeletePushDeviceCommand || (exports.DeletePushDeviceCommand = DeletePushDeviceCommand = {}));
|
|
@@ -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 = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GetPushSettingsCommand {
|
|
3
|
+
const ResponseSchema: z.ZodObject<{
|
|
4
|
+
data: z.ZodObject<{
|
|
5
|
+
results: z.ZodBoolean;
|
|
6
|
+
daily: z.ZodBoolean;
|
|
7
|
+
promo: z.ZodBoolean;
|
|
8
|
+
}, z.core.$strict>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetPushSettingsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const push_1 = require("../../models/push");
|
|
6
|
+
var GetPushSettingsCommand;
|
|
7
|
+
(function (GetPushSettingsCommand) {
|
|
8
|
+
GetPushSettingsCommand.ResponseSchema = zod_1.z.object({ data: push_1.PushSettingsSchema });
|
|
9
|
+
})(GetPushSettingsCommand || (exports.GetPushSettingsCommand = GetPushSettingsCommand = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export * from './register-push-device.command';
|
|
2
|
+
export * from './delete-push-device.command';
|
|
3
|
+
export * from './get-push-settings.command';
|
|
4
|
+
export * from './update-push-settings.command';
|
|
5
|
+
export * from './mark-push-message-opened.command';
|
|
6
|
+
export * from './send-test-push.command';
|
|
7
|
+
export * from './check-push-receipts.command';
|
|
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';
|
|
@@ -0,0 +1,35 @@
|
|
|
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("./register-push-device.command"), exports);
|
|
18
|
+
__exportStar(require("./delete-push-device.command"), exports);
|
|
19
|
+
__exportStar(require("./get-push-settings.command"), exports);
|
|
20
|
+
__exportStar(require("./update-push-settings.command"), exports);
|
|
21
|
+
__exportStar(require("./mark-push-message-opened.command"), exports);
|
|
22
|
+
__exportStar(require("./send-test-push.command"), exports);
|
|
23
|
+
__exportStar(require("./check-push-receipts.command"), exports);
|
|
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,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace MarkPushMessageOpenedCommand {
|
|
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
|
+
openedAt: z.ZodISODateTime;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MarkPushMessageOpenedCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var MarkPushMessageOpenedCommand;
|
|
6
|
+
(function (MarkPushMessageOpenedCommand) {
|
|
7
|
+
MarkPushMessageOpenedCommand.RequestParamsSchema = zod_1.z.object({ uuid: zod_1.z.uuid() }).strict();
|
|
8
|
+
MarkPushMessageOpenedCommand.ResponseSchema = zod_1.z.object({
|
|
9
|
+
data: zod_1.z.object({ openedAt: zod_1.z.iso.datetime() }),
|
|
10
|
+
});
|
|
11
|
+
})(MarkPushMessageOpenedCommand || (exports.MarkPushMessageOpenedCommand = MarkPushMessageOpenedCommand = {}));
|
|
@@ -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
|
+
}
|