@veruna/api-contracts 11.0.0 → 11.1.0
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/controllers/index.d.ts +1 -1
- package/build/controllers/index.js +3 -2
- package/build/controllers/index.js.map +1 -1
- package/build/controllers/notifications.controllers.d.ts +1 -0
- package/build/controllers/notifications.controllers.js +2 -1
- package/build/controllers/notifications.controllers.js.map +1 -1
- package/build/rest-api.d.ts +6 -0
- package/build/rest-api.js +6 -0
- package/build/rest-api.js.map +1 -1
- package/build/routes/index.d.ts +1 -0
- package/build/routes/index.js +4 -2
- package/build/routes/index.js.map +1 -1
- package/build/routes/notifications-admin.routes.d.ts +6 -0
- package/build/routes/notifications-admin.routes.js +10 -0
- package/build/routes/notifications-admin.routes.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/file/file.errors.d.ts +1 -0
- package/build/v1/file/file.errors.js +5 -0
- package/build/v1/file/file.errors.js.map +1 -1
- package/build/v1/notifications/queries/admin-notification-detail.query.d.ts +78 -0
- package/build/v1/notifications/queries/admin-notification-detail.query.js +13 -0
- package/build/v1/notifications/queries/admin-notification-detail.query.js.map +1 -0
- package/build/v1/notifications/queries/admin-notifications-dashboard.query.d.ts +53 -0
- package/build/v1/notifications/queries/admin-notifications-dashboard.query.js +14 -0
- package/build/v1/notifications/queries/admin-notifications-dashboard.query.js.map +1 -0
- package/build/v1/notifications/queries/admin-notifications-list.query.d.ts +51 -0
- package/build/v1/notifications/queries/admin-notifications-list.query.js +14 -0
- package/build/v1/notifications/queries/admin-notifications-list.query.js.map +1 -0
- package/build/v1/notifications/queries/admin-user-notifications.query.d.ts +57 -0
- package/build/v1/notifications/queries/admin-user-notifications.query.js +14 -0
- package/build/v1/notifications/queries/admin-user-notifications.query.js.map +1 -0
- package/build/v1/notifications/queries/index.d.ts +4 -0
- package/build/v1/notifications/queries/index.js +4 -0
- package/build/v1/notifications/queries/index.js.map +1 -1
- package/build/v1/notifications/schemas/admin-notification-detail.schema.d.ts +143 -0
- package/build/v1/notifications/schemas/admin-notification-detail.schema.js +85 -0
- package/build/v1/notifications/schemas/admin-notification-detail.schema.js.map +1 -0
- package/build/v1/notifications/schemas/admin-notification-shared.schema.d.ts +44 -0
- package/build/v1/notifications/schemas/admin-notification-shared.schema.js +43 -0
- package/build/v1/notifications/schemas/admin-notification-shared.schema.js.map +1 -0
- package/build/v1/notifications/schemas/admin-notification-sort.enum.d.ts +4 -0
- package/build/v1/notifications/schemas/admin-notification-sort.enum.js +9 -0
- package/build/v1/notifications/schemas/admin-notification-sort.enum.js.map +1 -0
- package/build/v1/notifications/schemas/admin-notifications-dashboard.schema.d.ts +64 -0
- package/build/v1/notifications/schemas/admin-notifications-dashboard.schema.js +47 -0
- package/build/v1/notifications/schemas/admin-notifications-dashboard.schema.js.map +1 -0
- package/build/v1/notifications/schemas/admin-notifications-list.schema.d.ts +48 -0
- package/build/v1/notifications/schemas/admin-notifications-list.schema.js +35 -0
- package/build/v1/notifications/schemas/admin-notifications-list.schema.js.map +1 -0
- package/build/v1/notifications/schemas/admin-user-notifications.schema.d.ts +50 -0
- package/build/v1/notifications/schemas/admin-user-notifications.schema.js +22 -0
- package/build/v1/notifications/schemas/admin-user-notifications.schema.js.map +1 -0
- package/build/v1/notifications/schemas/index.d.ts +6 -0
- package/build/v1/notifications/schemas/index.js +6 -0
- package/build/v1/notifications/schemas/index.js.map +1 -1
- package/build/v1/tasks/schemas/index.d.ts +1 -0
- package/build/v1/tasks/schemas/index.js +1 -0
- package/build/v1/tasks/schemas/index.js.map +1 -1
- package/build/v1/tasks/schemas/task-code.constants.d.ts +2 -0
- package/build/v1/tasks/schemas/task-code.constants.js +12 -0
- package/build/v1/tasks/schemas/task-code.constants.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { NotificationChannel } from './notification-channel.enum';
|
|
3
|
+
export declare const AdminNotificationJobCountsSchema: z.ZodObject<{
|
|
4
|
+
total: z.ZodNumber;
|
|
5
|
+
pending: z.ZodNumber;
|
|
6
|
+
processing: z.ZodNumber;
|
|
7
|
+
sent: z.ZodNumber;
|
|
8
|
+
dlq: z.ZodNumber;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const AdminNotificationListItemSchema: z.ZodObject<{
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
userId: z.ZodString;
|
|
13
|
+
groupKey: z.ZodString;
|
|
14
|
+
templateKey: z.ZodString;
|
|
15
|
+
templateVersion: z.ZodNumber;
|
|
16
|
+
campaignId: z.ZodNullable<z.ZodString>;
|
|
17
|
+
priority: z.ZodNumber;
|
|
18
|
+
scheduledAt: z.ZodNullable<z.ZodString>;
|
|
19
|
+
createdAt: z.ZodString;
|
|
20
|
+
channels: z.ZodArray<z.ZodEnum<typeof NotificationChannel>>;
|
|
21
|
+
jobs: z.ZodObject<{
|
|
22
|
+
total: z.ZodNumber;
|
|
23
|
+
pending: z.ZodNumber;
|
|
24
|
+
processing: z.ZodNumber;
|
|
25
|
+
sent: z.ZodNumber;
|
|
26
|
+
dlq: z.ZodNumber;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
sentAt: z.ZodNullable<z.ZodString>;
|
|
29
|
+
readAt: z.ZodNullable<z.ZodString>;
|
|
30
|
+
clickCount: z.ZodNumber;
|
|
31
|
+
converted: z.ZodBoolean;
|
|
32
|
+
conversionCount: z.ZodNumber;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export declare const AdminNotificationFunnelSchema: z.ZodObject<{
|
|
35
|
+
messages: z.ZodNumber;
|
|
36
|
+
delivered: z.ZodNumber;
|
|
37
|
+
read: z.ZodNumber;
|
|
38
|
+
clicked: z.ZodNumber;
|
|
39
|
+
converted: z.ZodNumber;
|
|
40
|
+
deliveredRate: z.ZodNumber;
|
|
41
|
+
readRate: z.ZodNumber;
|
|
42
|
+
clickedRate: z.ZodNumber;
|
|
43
|
+
convertedRate: z.ZodNumber;
|
|
44
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminNotificationFunnelSchema = exports.AdminNotificationListItemSchema = exports.AdminNotificationJobCountsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const regex_1 = require("../../../shared/regex");
|
|
6
|
+
const notification_channel_enum_1 = require("./notification-channel.enum");
|
|
7
|
+
exports.AdminNotificationJobCountsSchema = zod_1.z.object({
|
|
8
|
+
total: zod_1.z.number().int().nonnegative(),
|
|
9
|
+
pending: zod_1.z.number().int().nonnegative(),
|
|
10
|
+
processing: zod_1.z.number().int().nonnegative(),
|
|
11
|
+
sent: zod_1.z.number().int().nonnegative(),
|
|
12
|
+
dlq: zod_1.z.number().int().nonnegative(),
|
|
13
|
+
});
|
|
14
|
+
exports.AdminNotificationListItemSchema = zod_1.z.object({
|
|
15
|
+
id: zod_1.z.string().regex(regex_1.UUID_REGEX),
|
|
16
|
+
userId: zod_1.z.string().regex(regex_1.UUID_REGEX),
|
|
17
|
+
groupKey: zod_1.z.string(),
|
|
18
|
+
templateKey: zod_1.z.string(),
|
|
19
|
+
templateVersion: zod_1.z.number().int(),
|
|
20
|
+
campaignId: zod_1.z.string().regex(regex_1.UUID_REGEX).nullable(),
|
|
21
|
+
priority: zod_1.z.number().int(),
|
|
22
|
+
scheduledAt: zod_1.z.string().datetime().nullable(),
|
|
23
|
+
createdAt: zod_1.z.string().datetime(),
|
|
24
|
+
channels: zod_1.z.array(zod_1.z.nativeEnum(notification_channel_enum_1.NotificationChannel)),
|
|
25
|
+
jobs: exports.AdminNotificationJobCountsSchema,
|
|
26
|
+
sentAt: zod_1.z.string().datetime().nullable(),
|
|
27
|
+
readAt: zod_1.z.string().datetime().nullable(),
|
|
28
|
+
clickCount: zod_1.z.number().int().nonnegative(),
|
|
29
|
+
converted: zod_1.z.boolean(),
|
|
30
|
+
conversionCount: zod_1.z.number().int().nonnegative(),
|
|
31
|
+
});
|
|
32
|
+
exports.AdminNotificationFunnelSchema = zod_1.z.object({
|
|
33
|
+
messages: zod_1.z.number().int().nonnegative(),
|
|
34
|
+
delivered: zod_1.z.number().int().nonnegative(),
|
|
35
|
+
read: zod_1.z.number().int().nonnegative(),
|
|
36
|
+
clicked: zod_1.z.number().int().nonnegative(),
|
|
37
|
+
converted: zod_1.z.number().int().nonnegative(),
|
|
38
|
+
deliveredRate: zod_1.z.number(),
|
|
39
|
+
readRate: zod_1.z.number(),
|
|
40
|
+
clickedRate: zod_1.z.number(),
|
|
41
|
+
convertedRate: zod_1.z.number(),
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=admin-notification-shared.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-notification-shared.schema.js","sourceRoot":"","sources":["../../../../v1/notifications/schemas/admin-notification-shared.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAmD;AACnD,2EAAkE;AAMrD,QAAA,gCAAgC,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACrC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACvC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAC1C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACpC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CACtC,CAAC,CAAC;AAMU,QAAA,+BAA+B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,EAAE,EAAE,OAAC,CAAC,MAAM,EAA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E,CAAC,WAAW,EAAE;IACzC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACpC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACvC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACzC,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;IACzB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;CAC5B,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminNotificationSortField = void 0;
|
|
4
|
+
var AdminNotificationSortField;
|
|
5
|
+
(function (AdminNotificationSortField) {
|
|
6
|
+
AdminNotificationSortField["CREATED_AT"] = "CREATED_AT";
|
|
7
|
+
AdminNotificationSortField["PRIORITY"] = "PRIORITY";
|
|
8
|
+
})(AdminNotificationSortField || (exports.AdminNotificationSortField = AdminNotificationSortField = {}));
|
|
9
|
+
//# sourceMappingURL=admin-notification-sort.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-notification-sort.enum.js","sourceRoot":"","sources":["../../../../v1/notifications/schemas/admin-notification-sort.enum.ts"],"names":[],"mappings":";;;AAIA,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IAClC,uDAAyB,CAAA;IACzB,mDAAqB,CAAA;AACzB,CAAC,EAHW,0BAA0B,0CAA1B,0BAA0B,QAGrC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { NotificationChannel } from './notification-channel.enum';
|
|
3
|
+
import { NotificationJobStatus } from './notification-job-status.enum';
|
|
4
|
+
export declare const AdminNotificationsDashboardRequestSchema: z.ZodObject<{
|
|
5
|
+
from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
6
|
+
to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
7
|
+
channel: z.ZodOptional<z.ZodEnum<typeof NotificationChannel>>;
|
|
8
|
+
groupKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
templateKey: z.ZodOptional<z.ZodString>;
|
|
10
|
+
campaignId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const AdminNotificationStatusCountSchema: z.ZodObject<{
|
|
13
|
+
status: z.ZodEnum<typeof NotificationJobStatus>;
|
|
14
|
+
count: z.ZodNumber;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export declare const AdminNotificationChannelStatSchema: z.ZodObject<{
|
|
17
|
+
channel: z.ZodEnum<typeof NotificationChannel>;
|
|
18
|
+
jobs: z.ZodNumber;
|
|
19
|
+
sent: z.ZodNumber;
|
|
20
|
+
clicked: z.ZodNumber;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export declare const AdminNotificationTemplateStatSchema: z.ZodObject<{
|
|
23
|
+
templateKey: z.ZodString;
|
|
24
|
+
messages: z.ZodNumber;
|
|
25
|
+
converted: z.ZodNumber;
|
|
26
|
+
conversionRate: z.ZodNumber;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export declare const AdminNotificationsDashboardResponseSchema: z.ZodObject<{
|
|
29
|
+
range: z.ZodObject<{
|
|
30
|
+
from: z.ZodString;
|
|
31
|
+
to: z.ZodString;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
totals: z.ZodObject<{
|
|
34
|
+
messages: z.ZodNumber;
|
|
35
|
+
jobs: z.ZodNumber;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
funnel: z.ZodObject<{
|
|
38
|
+
messages: z.ZodNumber;
|
|
39
|
+
delivered: z.ZodNumber;
|
|
40
|
+
read: z.ZodNumber;
|
|
41
|
+
clicked: z.ZodNumber;
|
|
42
|
+
converted: z.ZodNumber;
|
|
43
|
+
deliveredRate: z.ZodNumber;
|
|
44
|
+
readRate: z.ZodNumber;
|
|
45
|
+
clickedRate: z.ZodNumber;
|
|
46
|
+
convertedRate: z.ZodNumber;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
byStatus: z.ZodArray<z.ZodObject<{
|
|
49
|
+
status: z.ZodEnum<typeof NotificationJobStatus>;
|
|
50
|
+
count: z.ZodNumber;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
byChannel: z.ZodArray<z.ZodObject<{
|
|
53
|
+
channel: z.ZodEnum<typeof NotificationChannel>;
|
|
54
|
+
jobs: z.ZodNumber;
|
|
55
|
+
sent: z.ZodNumber;
|
|
56
|
+
clicked: z.ZodNumber;
|
|
57
|
+
}, z.core.$strip>>;
|
|
58
|
+
topTemplates: z.ZodArray<z.ZodObject<{
|
|
59
|
+
templateKey: z.ZodString;
|
|
60
|
+
messages: z.ZodNumber;
|
|
61
|
+
converted: z.ZodNumber;
|
|
62
|
+
conversionRate: z.ZodNumber;
|
|
63
|
+
}, z.core.$strip>>;
|
|
64
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminNotificationsDashboardResponseSchema = exports.AdminNotificationTemplateStatSchema = exports.AdminNotificationChannelStatSchema = exports.AdminNotificationStatusCountSchema = exports.AdminNotificationsDashboardRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const regex_1 = require("../../../shared/regex");
|
|
6
|
+
const notification_channel_enum_1 = require("./notification-channel.enum");
|
|
7
|
+
const notification_job_status_enum_1 = require("./notification-job-status.enum");
|
|
8
|
+
const admin_notification_shared_schema_1 = require("./admin-notification-shared.schema");
|
|
9
|
+
exports.AdminNotificationsDashboardRequestSchema = zod_1.z.object({
|
|
10
|
+
from: zod_1.z.coerce.date().optional(),
|
|
11
|
+
to: zod_1.z.coerce.date().optional(),
|
|
12
|
+
channel: zod_1.z.nativeEnum(notification_channel_enum_1.NotificationChannel).optional(),
|
|
13
|
+
groupKey: zod_1.z.string().max(64).optional(),
|
|
14
|
+
templateKey: zod_1.z.string().max(128).optional(),
|
|
15
|
+
campaignId: zod_1.z.string().regex(regex_1.UUID_REGEX).optional(),
|
|
16
|
+
});
|
|
17
|
+
exports.AdminNotificationStatusCountSchema = zod_1.z.object({
|
|
18
|
+
status: zod_1.z.nativeEnum(notification_job_status_enum_1.NotificationJobStatus),
|
|
19
|
+
count: zod_1.z.number().int().nonnegative(),
|
|
20
|
+
});
|
|
21
|
+
exports.AdminNotificationChannelStatSchema = zod_1.z.object({
|
|
22
|
+
channel: zod_1.z.nativeEnum(notification_channel_enum_1.NotificationChannel),
|
|
23
|
+
jobs: zod_1.z.number().int().nonnegative(),
|
|
24
|
+
sent: zod_1.z.number().int().nonnegative(),
|
|
25
|
+
clicked: zod_1.z.number().int().nonnegative(),
|
|
26
|
+
});
|
|
27
|
+
exports.AdminNotificationTemplateStatSchema = zod_1.z.object({
|
|
28
|
+
templateKey: zod_1.z.string(),
|
|
29
|
+
messages: zod_1.z.number().int().nonnegative(),
|
|
30
|
+
converted: zod_1.z.number().int().nonnegative(),
|
|
31
|
+
conversionRate: zod_1.z.number(),
|
|
32
|
+
});
|
|
33
|
+
exports.AdminNotificationsDashboardResponseSchema = zod_1.z.object({
|
|
34
|
+
range: zod_1.z.object({
|
|
35
|
+
from: zod_1.z.string().datetime(),
|
|
36
|
+
to: zod_1.z.string().datetime(),
|
|
37
|
+
}),
|
|
38
|
+
totals: zod_1.z.object({
|
|
39
|
+
messages: zod_1.z.number().int().nonnegative(),
|
|
40
|
+
jobs: zod_1.z.number().int().nonnegative(),
|
|
41
|
+
}),
|
|
42
|
+
funnel: admin_notification_shared_schema_1.AdminNotificationFunnelSchema,
|
|
43
|
+
byStatus: zod_1.z.array(exports.AdminNotificationStatusCountSchema),
|
|
44
|
+
byChannel: zod_1.z.array(exports.AdminNotificationChannelStatSchema),
|
|
45
|
+
topTemplates: zod_1.z.array(exports.AdminNotificationTemplateStatSchema),
|
|
46
|
+
});
|
|
47
|
+
//# sourceMappingURL=admin-notifications-dashboard.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-notifications-dashboard.schema.js","sourceRoot":"","sources":["../../../../v1/notifications/schemas/admin-notifications-dashboard.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAmD;AACnD,2EAAkE;AAClE,iFAAuE;AACvE,yFAAmF;AAEtE,QAAA,wCAAwC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7D,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAChC,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAC9B,OAAO,EAAE,OAAC,CAAC,UAAU,CAAC,+CAAmB,CAAC,CAAC,QAAQ,EAAE;IACrD,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAC3C,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC,CAAC,QAAQ,EAAE;CACtD,CAAC,CAAC;AAEU,QAAA,kCAAkC,GAAG,OAAC,CAAC,MAAM,CAAC;IACvD,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,oDAAqB,CAAC;IAC3C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CACxC,CAAC,CAAC;AAEU,QAAA,kCA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CAAC;IACtD,YAAY,EAAE,OAAC,CAAC,KAAK,CAAC,2CAAmC,CAAC;CAC7D,CAAC,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { SortOrder } from '../../shared/sort-order.enum';
|
|
3
|
+
import { NotificationChannel } from './notification-channel.enum';
|
|
4
|
+
import { NotificationJobStatus } from './notification-job-status.enum';
|
|
5
|
+
import { AdminNotificationSortField } from './admin-notification-sort.enum';
|
|
6
|
+
export declare const AdminNotificationsListRequestSchema: z.ZodObject<{
|
|
7
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
8
|
+
channel: z.ZodOptional<z.ZodEnum<typeof NotificationChannel>>;
|
|
9
|
+
status: z.ZodOptional<z.ZodEnum<typeof NotificationJobStatus>>;
|
|
10
|
+
groupKey: z.ZodOptional<z.ZodString>;
|
|
11
|
+
templateKey: z.ZodOptional<z.ZodString>;
|
|
12
|
+
campaignId: z.ZodOptional<z.ZodString>;
|
|
13
|
+
q: z.ZodOptional<z.ZodString>;
|
|
14
|
+
converted: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>>;
|
|
15
|
+
createdFrom: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
16
|
+
createdTo: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
17
|
+
sortBy: z.ZodDefault<z.ZodEnum<typeof AdminNotificationSortField>>;
|
|
18
|
+
sortOrder: z.ZodDefault<z.ZodEnum<typeof SortOrder>>;
|
|
19
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
20
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export declare const AdminNotificationsListResponseSchema: z.ZodObject<{
|
|
23
|
+
items: z.ZodArray<z.ZodObject<{
|
|
24
|
+
id: z.ZodString;
|
|
25
|
+
userId: z.ZodString;
|
|
26
|
+
groupKey: z.ZodString;
|
|
27
|
+
templateKey: z.ZodString;
|
|
28
|
+
templateVersion: z.ZodNumber;
|
|
29
|
+
campaignId: z.ZodNullable<z.ZodString>;
|
|
30
|
+
priority: z.ZodNumber;
|
|
31
|
+
scheduledAt: z.ZodNullable<z.ZodString>;
|
|
32
|
+
createdAt: z.ZodString;
|
|
33
|
+
channels: z.ZodArray<z.ZodEnum<typeof NotificationChannel>>;
|
|
34
|
+
jobs: z.ZodObject<{
|
|
35
|
+
total: z.ZodNumber;
|
|
36
|
+
pending: z.ZodNumber;
|
|
37
|
+
processing: z.ZodNumber;
|
|
38
|
+
sent: z.ZodNumber;
|
|
39
|
+
dlq: z.ZodNumber;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
sentAt: z.ZodNullable<z.ZodString>;
|
|
42
|
+
readAt: z.ZodNullable<z.ZodString>;
|
|
43
|
+
clickCount: z.ZodNumber;
|
|
44
|
+
converted: z.ZodBoolean;
|
|
45
|
+
conversionCount: z.ZodNumber;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
total: z.ZodNumber;
|
|
48
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminNotificationsListResponseSchema = exports.AdminNotificationsListRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const regex_1 = require("../../../shared/regex");
|
|
6
|
+
const sort_order_enum_1 = require("../../shared/sort-order.enum");
|
|
7
|
+
const notification_channel_enum_1 = require("./notification-channel.enum");
|
|
8
|
+
const notification_job_status_enum_1 = require("./notification-job-status.enum");
|
|
9
|
+
const admin_notification_sort_enum_1 = require("./admin-notification-sort.enum");
|
|
10
|
+
const admin_notification_shared_schema_1 = require("./admin-notification-shared.schema");
|
|
11
|
+
exports.AdminNotificationsListRequestSchema = zod_1.z.object({
|
|
12
|
+
userId: zod_1.z.string().regex(regex_1.UUID_REGEX).optional(),
|
|
13
|
+
channel: zod_1.z.nativeEnum(notification_channel_enum_1.NotificationChannel).optional(),
|
|
14
|
+
status: zod_1.z.nativeEnum(notification_job_status_enum_1.NotificationJobStatus).optional(),
|
|
15
|
+
groupKey: zod_1.z.string().max(64).optional(),
|
|
16
|
+
templateKey: zod_1.z.string().max(128).optional(),
|
|
17
|
+
campaignId: zod_1.z.string().regex(regex_1.UUID_REGEX).optional(),
|
|
18
|
+
q: zod_1.z.string().max(128).optional(),
|
|
19
|
+
converted: zod_1.z
|
|
20
|
+
.preprocess((v) => (v === 'true' ? true : v === 'false' ? false : v), zod_1.z.boolean().optional())
|
|
21
|
+
.optional(),
|
|
22
|
+
createdFrom: zod_1.z.coerce.date().optional(),
|
|
23
|
+
createdTo: zod_1.z.coerce.date().optional(),
|
|
24
|
+
sortBy: zod_1.z
|
|
25
|
+
.nativeEnum(admin_notification_sort_enum_1.AdminNotificationSortField)
|
|
26
|
+
.default(admin_notification_sort_enum_1.AdminNotificationSortField.CREATED_AT),
|
|
27
|
+
sortOrder: zod_1.z.nativeEnum(sort_order_enum_1.SortOrder).default(sort_order_enum_1.SortOrder.DESC),
|
|
28
|
+
page: zod_1.z.coerce.number().int().positive().default(1),
|
|
29
|
+
limit: zod_1.z.coerce.number().int().positive().max(100).default(20),
|
|
30
|
+
});
|
|
31
|
+
exports.AdminNotificationsListResponseSchema = zod_1.z.object({
|
|
32
|
+
items: zod_1.z.array(admin_notification_shared_schema_1.AdminNotificationListItemSchema),
|
|
33
|
+
total: zod_1.z.number().int().nonnegative(),
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=admin-notifications-list.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-notifications-list.schema.js","sourceRoot":"","sources":["../../../../v1/notifications/schemas/admin-notifications-list.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAmD;AACnD,kEAAyD;AACzD,2EAAkE;A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AAC;IACnD,SAAS,EAAE,OAAC,CAAC,UAAU,CAAC,2BAAS,CAAC,CAAC,OAAO,CAAC,2BAAS,CAAC,IAAI,CAAC;IAC1D,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IACnD,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CACjE,CAAC,CAAC;AAEU,QAAA,oCAAoC,GAAG,OAAC,CAAC,MAAM,CAAC;IACzD,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,kEAA+B,CAAC;IAC/C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CACxC,CAAC,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AdminUserNotificationsRequestSchema: z.ZodObject<{
|
|
3
|
+
from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
4
|
+
to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
5
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
6
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const AdminUserNotificationsResponseSchema: z.ZodObject<{
|
|
9
|
+
userId: z.ZodString;
|
|
10
|
+
range: z.ZodObject<{
|
|
11
|
+
from: z.ZodString;
|
|
12
|
+
to: z.ZodString;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
summary: z.ZodObject<{
|
|
15
|
+
messages: z.ZodNumber;
|
|
16
|
+
delivered: z.ZodNumber;
|
|
17
|
+
read: z.ZodNumber;
|
|
18
|
+
clicked: z.ZodNumber;
|
|
19
|
+
converted: z.ZodNumber;
|
|
20
|
+
deliveredRate: z.ZodNumber;
|
|
21
|
+
readRate: z.ZodNumber;
|
|
22
|
+
clickedRate: z.ZodNumber;
|
|
23
|
+
convertedRate: z.ZodNumber;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
items: z.ZodArray<z.ZodObject<{
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
userId: z.ZodString;
|
|
28
|
+
groupKey: z.ZodString;
|
|
29
|
+
templateKey: z.ZodString;
|
|
30
|
+
templateVersion: z.ZodNumber;
|
|
31
|
+
campaignId: z.ZodNullable<z.ZodString>;
|
|
32
|
+
priority: z.ZodNumber;
|
|
33
|
+
scheduledAt: z.ZodNullable<z.ZodString>;
|
|
34
|
+
createdAt: z.ZodString;
|
|
35
|
+
channels: z.ZodArray<z.ZodEnum<typeof import("./notification-channel.enum").NotificationChannel>>;
|
|
36
|
+
jobs: z.ZodObject<{
|
|
37
|
+
total: z.ZodNumber;
|
|
38
|
+
pending: z.ZodNumber;
|
|
39
|
+
processing: z.ZodNumber;
|
|
40
|
+
sent: z.ZodNumber;
|
|
41
|
+
dlq: z.ZodNumber;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
sentAt: z.ZodNullable<z.ZodString>;
|
|
44
|
+
readAt: z.ZodNullable<z.ZodString>;
|
|
45
|
+
clickCount: z.ZodNumber;
|
|
46
|
+
converted: z.ZodBoolean;
|
|
47
|
+
conversionCount: z.ZodNumber;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
total: z.ZodNumber;
|
|
50
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminUserNotificationsResponseSchema = exports.AdminUserNotificationsRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const admin_notification_shared_schema_1 = require("./admin-notification-shared.schema");
|
|
6
|
+
exports.AdminUserNotificationsRequestSchema = zod_1.z.object({
|
|
7
|
+
from: zod_1.z.coerce.date().optional(),
|
|
8
|
+
to: zod_1.z.coerce.date().optional(),
|
|
9
|
+
page: zod_1.z.coerce.number().int().positive().default(1),
|
|
10
|
+
limit: zod_1.z.coerce.number().int().positive().max(100).default(20),
|
|
11
|
+
});
|
|
12
|
+
exports.AdminUserNotificationsResponseSchema = zod_1.z.object({
|
|
13
|
+
userId: zod_1.z.string(),
|
|
14
|
+
range: zod_1.z.object({
|
|
15
|
+
from: zod_1.z.string().datetime(),
|
|
16
|
+
to: zod_1.z.string().datetime(),
|
|
17
|
+
}),
|
|
18
|
+
summary: admin_notification_shared_schema_1.AdminNotificationFunnelSchema,
|
|
19
|
+
items: zod_1.z.array(admin_notification_shared_schema_1.AdminNotificationListItemSchema),
|
|
20
|
+
total: zod_1.z.number().int().nonnegative(),
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=admin-user-notifications.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-user-notifications.schema.js","sourceRoot":"","sources":["../../../../v1/notifications/schemas/admin-user-notifications.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yFAG4C;AAE/B,QAAA,mCAAmC,GAAG,OAAC,CAAC,MAAM,CAAC;IACxD,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAChC,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAC9B,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IACnD,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CACjE,CAAC,CAAC;AAEU,QAAA,oCAAoC,GAAG,OAAC,CAAC,MAAM,CAAC;IACzD,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC5B,CAAC;IACF,OAAO,EAAE,gEAA6B;IACtC,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,kEAA+B,CAAC;IAC/C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CACxC,CAAC,CAAC"}
|
|
@@ -13,3 +13,9 @@ export * from './notification-setting.schema';
|
|
|
13
13
|
export * from './notification-settings-response.schema';
|
|
14
14
|
export * from './update-notification-settings-request.schema';
|
|
15
15
|
export * from './notification-job-action.enum';
|
|
16
|
+
export * from './admin-notification-sort.enum';
|
|
17
|
+
export * from './admin-notification-shared.schema';
|
|
18
|
+
export * from './admin-notifications-dashboard.schema';
|
|
19
|
+
export * from './admin-notifications-list.schema';
|
|
20
|
+
export * from './admin-notification-detail.schema';
|
|
21
|
+
export * from './admin-user-notifications.schema';
|
|
@@ -29,4 +29,10 @@ __exportStar(require("./notification-setting.schema"), exports);
|
|
|
29
29
|
__exportStar(require("./notification-settings-response.schema"), exports);
|
|
30
30
|
__exportStar(require("./update-notification-settings-request.schema"), exports);
|
|
31
31
|
__exportStar(require("./notification-job-action.enum"), exports);
|
|
32
|
+
__exportStar(require("./admin-notification-sort.enum"), exports);
|
|
33
|
+
__exportStar(require("./admin-notification-shared.schema"), exports);
|
|
34
|
+
__exportStar(require("./admin-notifications-dashboard.schema"), exports);
|
|
35
|
+
__exportStar(require("./admin-notifications-list.schema"), exports);
|
|
36
|
+
__exportStar(require("./admin-notification-detail.schema"), exports);
|
|
37
|
+
__exportStar(require("./admin-user-notifications.schema"), exports);
|
|
32
38
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/notifications/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,6DAA2C;AAC3C,iEAA+C;AAC/C,+DAA6C;AAC7C,6DAA2C;AAC3C,wDAAsC;AACtC,4DAA0C;AAC1C,8DAA4C;AAC5C,qEAAmD;AACnD,2EAAyD;AACzD,kEAAgD;AAChD,gEAA8C;AAC9C,0EAAwD;AACxD,gFAA8D;AAC9D,iEAA+C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/notifications/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,6DAA2C;AAC3C,iEAA+C;AAC/C,+DAA6C;AAC7C,6DAA2C;AAC3C,wDAAsC;AACtC,4DAA0C;AAC1C,8DAA4C;AAC5C,qEAAmD;AACnD,2EAAyD;AACzD,kEAAgD;AAChD,gEAA8C;AAC9C,0EAAwD;AACxD,gFAA8D;AAC9D,iEAA+C;AAC/C,iEAA+C;AAC/C,qEAAmD;AACnD,yEAAuD;AACvD,oEAAkD;AAClD,qEAAmD;AACnD,oEAAkD"}
|
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./task-code.enum"), exports);
|
|
18
|
+
__exportStar(require("./task-code.constants"), exports);
|
|
18
19
|
__exportStar(require("./user-task-status.enum"), exports);
|
|
19
20
|
__exportStar(require("./task-type.enum"), exports);
|
|
20
21
|
__exportStar(require("./task-definition-status.enum"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/tasks/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,0DAAwC;AACxC,mDAAiC;AACjC,gEAA8C;AAC9C,uDAAqC;AACrC,yDAAuC;AACvC,0DAAwC;AACxC,6DAA2C;AAC3C,6CAA2B;AAC3B,8DAA4C;AAC5C,gEAA8C;AAC9C,+DAA6C;AAC7C,iEAA+C;AAC/C,wDAAsC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/tasks/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,wDAAsC;AACtC,0DAAwC;AACxC,mDAAiC;AACjC,gEAA8C;AAC9C,uDAAqC;AACrC,yDAAuC;AACvC,0DAAwC;AACxC,6DAA2C;AAC3C,6CAA2B;AAC3B,8DAA4C;AAC5C,gEAA8C;AAC9C,+DAA6C;AAC7C,iEAA+C;AAC/C,wDAAsC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MULTI_INSTANCE_TASK_CODES = void 0;
|
|
4
|
+
exports.isMultiInstanceTaskCode = isMultiInstanceTaskCode;
|
|
5
|
+
const task_code_enum_1 = require("./task-code.enum");
|
|
6
|
+
exports.MULTI_INSTANCE_TASK_CODES = new Set([
|
|
7
|
+
task_code_enum_1.TaskCode.SUBSCRIBE_TELEGRAM_CHANNEL,
|
|
8
|
+
]);
|
|
9
|
+
function isMultiInstanceTaskCode(taskCode) {
|
|
10
|
+
return exports.MULTI_INSTANCE_TASK_CODES.has(taskCode);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=task-code.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-code.constants.js","sourceRoot":"","sources":["../../../../v1/tasks/schemas/task-code.constants.ts"],"names":[],"mappings":";;;AA4BA,0DAEC;AA9BD,qDAA4C;AAoB/B,QAAA,yBAAyB,GAAwB,IAAI,GAAG,CAAS;IAC1E,yBAAQ,CAAC,0BAA0B;CACtC,CAAC,CAAC;AAMH,SAAgB,uBAAuB,CAAC,QAAgB;IACpD,OAAO,iCAAyB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACnD,CAAC"}
|