@veruna/api-contracts 11.0.0 → 11.2.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.
Files changed (119) hide show
  1. package/build/controllers/index.d.ts +2 -2
  2. package/build/controllers/index.js +4 -2
  3. package/build/controllers/index.js.map +1 -1
  4. package/build/controllers/notifications.controllers.d.ts +1 -0
  5. package/build/controllers/notifications.controllers.js +2 -1
  6. package/build/controllers/notifications.controllers.js.map +1 -1
  7. package/build/controllers/unreg-users.controllers.d.ts +1 -0
  8. package/build/controllers/unreg-users.controllers.js +2 -1
  9. package/build/controllers/unreg-users.controllers.js.map +1 -1
  10. package/build/rest-api.d.ts +12 -0
  11. package/build/rest-api.js +12 -0
  12. package/build/rest-api.js.map +1 -1
  13. package/build/routes/index.d.ts +2 -0
  14. package/build/routes/index.js +6 -2
  15. package/build/routes/index.js.map +1 -1
  16. package/build/routes/notifications-admin.routes.d.ts +6 -0
  17. package/build/routes/notifications-admin.routes.js +10 -0
  18. package/build/routes/notifications-admin.routes.js.map +1 -0
  19. package/build/routes/unreg-users-admin.routes.d.ts +6 -0
  20. package/build/routes/unreg-users-admin.routes.js +10 -0
  21. package/build/routes/unreg-users-admin.routes.js.map +1 -0
  22. package/build/tsconfig.tsbuildinfo +1 -1
  23. package/build/v1/antifraud/enums/antifraud-event-type.enum.d.ts +2 -1
  24. package/build/v1/antifraud/enums/antifraud-event-type.enum.js +1 -0
  25. package/build/v1/antifraud/enums/antifraud-event-type.enum.js.map +1 -1
  26. package/build/v1/antifraud/enums/antifraud-timeline.enum.d.ts +1 -0
  27. package/build/v1/antifraud/enums/antifraud-timeline.enum.js +1 -0
  28. package/build/v1/antifraud/enums/antifraud-timeline.enum.js.map +1 -1
  29. package/build/v1/file/file.errors.d.ts +1 -0
  30. package/build/v1/file/file.errors.js +5 -0
  31. package/build/v1/file/file.errors.js.map +1 -1
  32. package/build/v1/notifications/queries/admin-notification-detail.query.d.ts +78 -0
  33. package/build/v1/notifications/queries/admin-notification-detail.query.js +13 -0
  34. package/build/v1/notifications/queries/admin-notification-detail.query.js.map +1 -0
  35. package/build/v1/notifications/queries/admin-notifications-dashboard.query.d.ts +53 -0
  36. package/build/v1/notifications/queries/admin-notifications-dashboard.query.js +14 -0
  37. package/build/v1/notifications/queries/admin-notifications-dashboard.query.js.map +1 -0
  38. package/build/v1/notifications/queries/admin-notifications-list.query.d.ts +51 -0
  39. package/build/v1/notifications/queries/admin-notifications-list.query.js +14 -0
  40. package/build/v1/notifications/queries/admin-notifications-list.query.js.map +1 -0
  41. package/build/v1/notifications/queries/admin-user-notifications.query.d.ts +57 -0
  42. package/build/v1/notifications/queries/admin-user-notifications.query.js +14 -0
  43. package/build/v1/notifications/queries/admin-user-notifications.query.js.map +1 -0
  44. package/build/v1/notifications/queries/index.d.ts +4 -0
  45. package/build/v1/notifications/queries/index.js +4 -0
  46. package/build/v1/notifications/queries/index.js.map +1 -1
  47. package/build/v1/notifications/schemas/admin-notification-detail.schema.d.ts +143 -0
  48. package/build/v1/notifications/schemas/admin-notification-detail.schema.js +85 -0
  49. package/build/v1/notifications/schemas/admin-notification-detail.schema.js.map +1 -0
  50. package/build/v1/notifications/schemas/admin-notification-shared.schema.d.ts +44 -0
  51. package/build/v1/notifications/schemas/admin-notification-shared.schema.js +43 -0
  52. package/build/v1/notifications/schemas/admin-notification-shared.schema.js.map +1 -0
  53. package/build/v1/notifications/schemas/admin-notification-sort.enum.d.ts +4 -0
  54. package/build/v1/notifications/schemas/admin-notification-sort.enum.js +9 -0
  55. package/build/v1/notifications/schemas/admin-notification-sort.enum.js.map +1 -0
  56. package/build/v1/notifications/schemas/admin-notifications-dashboard.schema.d.ts +64 -0
  57. package/build/v1/notifications/schemas/admin-notifications-dashboard.schema.js +47 -0
  58. package/build/v1/notifications/schemas/admin-notifications-dashboard.schema.js.map +1 -0
  59. package/build/v1/notifications/schemas/admin-notifications-list.schema.d.ts +48 -0
  60. package/build/v1/notifications/schemas/admin-notifications-list.schema.js +35 -0
  61. package/build/v1/notifications/schemas/admin-notifications-list.schema.js.map +1 -0
  62. package/build/v1/notifications/schemas/admin-user-notifications.schema.d.ts +50 -0
  63. package/build/v1/notifications/schemas/admin-user-notifications.schema.js +22 -0
  64. package/build/v1/notifications/schemas/admin-user-notifications.schema.js.map +1 -0
  65. package/build/v1/notifications/schemas/index.d.ts +6 -0
  66. package/build/v1/notifications/schemas/index.js +6 -0
  67. package/build/v1/notifications/schemas/index.js.map +1 -1
  68. package/build/v1/tasks/schemas/index.d.ts +1 -0
  69. package/build/v1/tasks/schemas/index.js +1 -0
  70. package/build/v1/tasks/schemas/index.js.map +1 -1
  71. package/build/v1/tasks/schemas/task-code.constants.d.ts +2 -0
  72. package/build/v1/tasks/schemas/task-code.constants.js +12 -0
  73. package/build/v1/tasks/schemas/task-code.constants.js.map +1 -0
  74. package/build/v1/unregistered-users/admin/commands/admin-adjust-unreg-balance.command.d.ts +21 -0
  75. package/build/v1/unregistered-users/admin/commands/admin-adjust-unreg-balance.command.js +14 -0
  76. package/build/v1/unregistered-users/admin/commands/admin-adjust-unreg-balance.command.js.map +1 -0
  77. package/build/v1/unregistered-users/admin/commands/admin-set-unreg-status.command.d.ts +15 -0
  78. package/build/v1/unregistered-users/admin/commands/admin-set-unreg-status.command.js +14 -0
  79. package/build/v1/unregistered-users/admin/commands/admin-set-unreg-status.command.js.map +1 -0
  80. package/build/v1/unregistered-users/admin/commands/index.d.ts +2 -0
  81. package/build/v1/unregistered-users/admin/commands/index.js +19 -0
  82. package/build/v1/unregistered-users/admin/commands/index.js.map +1 -0
  83. package/build/v1/unregistered-users/admin/index.d.ts +5 -0
  84. package/build/v1/unregistered-users/admin/index.js +25 -0
  85. package/build/v1/unregistered-users/admin/index.js.map +1 -0
  86. package/build/v1/unregistered-users/admin/queries/admin-search-unreg-users.query.d.ts +36 -0
  87. package/build/v1/unregistered-users/admin/queries/admin-search-unreg-users.query.js +14 -0
  88. package/build/v1/unregistered-users/admin/queries/admin-search-unreg-users.query.js.map +1 -0
  89. package/build/v1/unregistered-users/admin/queries/admin-unreg-user-detail.query.d.ts +28 -0
  90. package/build/v1/unregistered-users/admin/queries/admin-unreg-user-detail.query.js +13 -0
  91. package/build/v1/unregistered-users/admin/queries/admin-unreg-user-detail.query.js.map +1 -0
  92. package/build/v1/unregistered-users/admin/queries/index.d.ts +2 -0
  93. package/build/v1/unregistered-users/admin/queries/index.js +19 -0
  94. package/build/v1/unregistered-users/admin/queries/index.js.map +1 -0
  95. package/build/v1/unregistered-users/admin/schemas/admin-search-unreg.schema.d.ts +44 -0
  96. package/build/v1/unregistered-users/admin/schemas/admin-search-unreg.schema.js +42 -0
  97. package/build/v1/unregistered-users/admin/schemas/admin-search-unreg.schema.js.map +1 -0
  98. package/build/v1/unregistered-users/admin/schemas/admin-set-unreg-status.schema.d.ts +10 -0
  99. package/build/v1/unregistered-users/admin/schemas/admin-set-unreg-status.schema.js +19 -0
  100. package/build/v1/unregistered-users/admin/schemas/admin-set-unreg-status.schema.js.map +1 -0
  101. package/build/v1/unregistered-users/admin/schemas/admin-unreg-detail.schema.d.ts +31 -0
  102. package/build/v1/unregistered-users/admin/schemas/admin-unreg-detail.schema.js +20 -0
  103. package/build/v1/unregistered-users/admin/schemas/admin-unreg-detail.schema.js.map +1 -0
  104. package/build/v1/unregistered-users/admin/schemas/admin-unreg-sort.enum.d.ts +4 -0
  105. package/build/v1/unregistered-users/admin/schemas/admin-unreg-sort.enum.js +9 -0
  106. package/build/v1/unregistered-users/admin/schemas/admin-unreg-sort.enum.js.map +1 -0
  107. package/build/v1/unregistered-users/admin/schemas/index.d.ts +5 -0
  108. package/build/v1/unregistered-users/admin/schemas/index.js +22 -0
  109. package/build/v1/unregistered-users/admin/schemas/index.js.map +1 -0
  110. package/build/v1/unregistered-users/admin/schemas/unreg-status-action.enum.d.ts +5 -0
  111. package/build/v1/unregistered-users/admin/schemas/unreg-status-action.enum.js +10 -0
  112. package/build/v1/unregistered-users/admin/schemas/unreg-status-action.enum.js.map +1 -0
  113. package/build/v1/unregistered-users/index.d.ts +1 -0
  114. package/build/v1/unregistered-users/index.js +1 -0
  115. package/build/v1/unregistered-users/index.js.map +1 -1
  116. package/build/v1/unregistered-users/unregistered-users.errors.d.ts +2 -1
  117. package/build/v1/unregistered-users/unregistered-users.errors.js +2 -0
  118. package/build/v1/unregistered-users/unregistered-users.errors.js.map +1 -1
  119. package/package.json +1 -1
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminNotificationDetailResponseSchema = exports.AdminNotificationEventSchema = exports.AdminNotificationConversionSchema = exports.AdminNotificationLinkSchema = exports.AdminNotificationWebSchema = exports.AdminNotificationJobSchema = exports.AdminNotificationMessageSchema = 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
+ exports.AdminNotificationMessageSchema = zod_1.z.object({
9
+ id: zod_1.z.string().regex(regex_1.UUID_REGEX),
10
+ userId: zod_1.z.string().regex(regex_1.UUID_REGEX),
11
+ groupKey: zod_1.z.string(),
12
+ templateKey: zod_1.z.string(),
13
+ templateVersion: zod_1.z.number().int(),
14
+ payload: zod_1.z.unknown(),
15
+ campaignId: zod_1.z.string().regex(regex_1.UUID_REGEX).nullable(),
16
+ dedupeKey: zod_1.z.string().nullable(),
17
+ priority: zod_1.z.number().int(),
18
+ scheduledAt: zod_1.z.string().datetime().nullable(),
19
+ createdAt: zod_1.z.string().datetime(),
20
+ });
21
+ exports.AdminNotificationJobSchema = zod_1.z.object({
22
+ id: zod_1.z.string().regex(regex_1.UUID_REGEX),
23
+ channel: zod_1.z.nativeEnum(notification_channel_enum_1.NotificationChannel),
24
+ status: zod_1.z.nativeEnum(notification_job_status_enum_1.NotificationJobStatus),
25
+ recipientAddress: zod_1.z.string().nullable(),
26
+ provider: zod_1.z.string().nullable(),
27
+ attempts: zod_1.z.number().int(),
28
+ maxAttempts: zod_1.z.number().int(),
29
+ scheduledAt: zod_1.z.string().datetime(),
30
+ nextRetryAt: zod_1.z.string().datetime().nullable(),
31
+ providerMessageId: zod_1.z.string().nullable(),
32
+ sentAt: zod_1.z.string().datetime().nullable(),
33
+ errorCode: zod_1.z.string().nullable(),
34
+ errorMessage: zod_1.z.string().nullable(),
35
+ deadLetteredAt: zod_1.z.string().datetime().nullable(),
36
+ createdAt: zod_1.z.string().datetime(),
37
+ updatedAt: zod_1.z.string().datetime(),
38
+ });
39
+ exports.AdminNotificationWebSchema = zod_1.z.object({
40
+ id: zod_1.z.string().regex(regex_1.UUID_REGEX),
41
+ title: zod_1.z.string(),
42
+ ctaLabel: zod_1.z.string().nullable(),
43
+ ctaUrl: zod_1.z.string().nullable(),
44
+ imageUrl: zod_1.z.string().nullable(),
45
+ sequence: zod_1.z.string(),
46
+ readAt: zod_1.z.string().datetime().nullable(),
47
+ createdAt: zod_1.z.string().datetime(),
48
+ });
49
+ exports.AdminNotificationLinkSchema = zod_1.z.object({
50
+ id: zod_1.z.string().regex(regex_1.UUID_REGEX),
51
+ channel: zod_1.z.string(),
52
+ linkKey: zod_1.z.string(),
53
+ originalUrl: zod_1.z.string(),
54
+ conversionType: zod_1.z.string().nullable(),
55
+ clickCount: zod_1.z.number().int().nonnegative(),
56
+ firstClickedAt: zod_1.z.string().datetime().nullable(),
57
+ lastClickedAt: zod_1.z.string().datetime().nullable(),
58
+ expiresAt: zod_1.z.string().datetime(),
59
+ createdAt: zod_1.z.string().datetime(),
60
+ });
61
+ exports.AdminNotificationConversionSchema = zod_1.z.object({
62
+ id: zod_1.z.string().regex(regex_1.UUID_REGEX),
63
+ conversionType: zod_1.z.string(),
64
+ attributedBy: zod_1.z.string(),
65
+ attributionLinkId: zod_1.z.string().regex(regex_1.UUID_REGEX).nullable(),
66
+ convertedAt: zod_1.z.string().datetime(),
67
+ });
68
+ exports.AdminNotificationEventSchema = zod_1.z.object({
69
+ id: zod_1.z.string().regex(regex_1.UUID_REGEX),
70
+ channel: zod_1.z.string().nullable(),
71
+ eventType: zod_1.z.string(),
72
+ conversionType: zod_1.z.string().nullable(),
73
+ providerEventId: zod_1.z.string().nullable(),
74
+ meta: zod_1.z.unknown().nullable(),
75
+ eventAt: zod_1.z.string().datetime(),
76
+ });
77
+ exports.AdminNotificationDetailResponseSchema = zod_1.z.object({
78
+ message: exports.AdminNotificationMessageSchema,
79
+ jobs: zod_1.z.array(exports.AdminNotificationJobSchema),
80
+ webNotifications: zod_1.z.array(exports.AdminNotificationWebSchema),
81
+ links: zod_1.z.array(exports.AdminNotificationLinkSchema),
82
+ conversions: zod_1.z.array(exports.AdminNotificationConversionSchema),
83
+ events: zod_1.z.array(exports.AdminNotificationEventSchema),
84
+ });
85
+ //# sourceMappingURL=admin-notification-detail.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-notification-detail.schema.js","sourceRoot":"","sources":["../../../../v1/notifications/schemas/admin-notification-detail.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAmD;AACnD,2EAAkE;AAClE,iFAAuE;AAE1D,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC;IAChC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC;IACpC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACjC,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC,CAAC,QAAQ,EAAE;IACnD,SAAS,EAAE,OAAC,CAAC,MAA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CAAC;IACrD,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,mCAA2B,CAAC;IAC3C,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,yCAAiC,CAAC;IACvD,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,oCAA4B,CAAC;CAChD,CAAC,CAAC"}
@@ -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,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC;IAChC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC;IACpC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACjC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC,CAAC,QAAQ,EAAE;I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WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;CAC5B,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare enum AdminNotificationSortField {
2
+ CREATED_AT = "CREATED_AT",
3
+ PRIORITY = "PRIORITY"
4
+ }
@@ -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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CAAC,0CAAkC,CAAC;IACrD,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,0CAAkC,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;AAClE,iFAAuE;AACvE,iFAA4E;AAC5E,yFAAqF;AAExE,QAAA,mCAAmC,GAAG,OAAC,CAAC,MAAM,CAAC;IACxD,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC,CAAC,QAAQ,EAAE;IAC/C,OAAO,EAAE,OAAC,CAAC,UAAU,CAAC,+CAAmB,CAAC,CAAC,QAAQ,EAAE;IACrD,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,oDAAqB,CAAC,CAAC,QAAQ,EAAE;IACtD,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,MA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,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"}
@@ -1,4 +1,5 @@
1
1
  export * from './task-code.enum';
2
+ export * from './task-code.constants';
2
3
  export * from './user-task-status.enum';
3
4
  export * from './task-type.enum';
4
5
  export * from './task-definition-status.enum';
@@ -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,2 @@
1
+ export declare const MULTI_INSTANCE_TASK_CODES: ReadonlySet<string>;
2
+ export declare function isMultiInstanceTaskCode(taskCode: string): boolean;
@@ -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"}
@@ -0,0 +1,21 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../../shared/http-method.enum';
3
+ export declare namespace AdminAdjustUnregBalanceCommand {
4
+ const Request: z.ZodObject<{
5
+ direction: z.ZodEnum<typeof import("../../../wallet/admin/schemas").AdminAdjustmentDirection>;
6
+ amount: z.ZodString;
7
+ balanceTypeCode: z.ZodOptional<z.ZodString>;
8
+ reason: z.ZodString;
9
+ description: z.ZodOptional<z.ZodString>;
10
+ expiresAt: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strict>;
12
+ const Response: z.ZodObject<{
13
+ direction: z.ZodEnum<typeof import("../../../wallet/admin/schemas").AdminAdjustmentDirection>;
14
+ amount: z.ZodString;
15
+ correlationId: z.ZodString;
16
+ }, z.core.$strip>;
17
+ const URL: (id: string) => string;
18
+ const METHOD = HttpMethod.POST;
19
+ type RequestType = z.infer<typeof Request>;
20
+ type ResponseType = z.infer<typeof Response>;
21
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminAdjustUnregBalanceCommand = void 0;
4
+ const schemas_1 = require("../../../wallet/admin/schemas");
5
+ const rest_api_1 = require("../../../../rest-api");
6
+ const http_method_enum_1 = require("../../../../shared/http-method.enum");
7
+ var AdminAdjustUnregBalanceCommand;
8
+ (function (AdminAdjustUnregBalanceCommand) {
9
+ AdminAdjustUnregBalanceCommand.Request = schemas_1.AdminAdjustBalanceRequestSchema;
10
+ AdminAdjustUnregBalanceCommand.Response = schemas_1.AdminAdjustBalanceResponseSchema;
11
+ AdminAdjustUnregBalanceCommand.URL = rest_api_1.REST_API.V1.UNREG_USERS.ADMIN.ADJUST_BALANCE;
12
+ AdminAdjustUnregBalanceCommand.METHOD = http_method_enum_1.HttpMethod.POST;
13
+ })(AdminAdjustUnregBalanceCommand || (exports.AdminAdjustUnregBalanceCommand = AdminAdjustUnregBalanceCommand = {}));
14
+ //# sourceMappingURL=admin-adjust-unreg-balance.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-adjust-unreg-balance.command.js","sourceRoot":"","sources":["../../../../../v1/unregistered-users/admin/commands/admin-adjust-unreg-balance.command.ts"],"names":[],"mappings":";;;AACA,2DAGuC;AACvC,mDAAgD;AAChD,0EAAiE;AAOjE,IAAiB,8BAA8B,CAS9C;AATD,WAAiB,8BAA8B;IAC9B,sCAAO,GAAG,yCAA+B,CAAC;IAC1C,uCAAQ,GAAG,0CAAgC,CAAC;IAE5C,kCAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,cAAc,CAAC;IACnD,qCAAM,GAAG,6BAAU,CAAC,IAAI,CAAC;AAI1C,CAAC,EATgB,8BAA8B,8CAA9B,8BAA8B,QAS9C"}
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../../shared/http-method.enum';
3
+ export declare namespace AdminSetUnregStatusCommand {
4
+ const Request: z.ZodObject<{
5
+ action: z.ZodEnum<typeof import("../schemas").UnregStatusAction>;
6
+ }, z.core.$strict>;
7
+ const Response: z.ZodObject<{
8
+ id: z.ZodString;
9
+ status: z.ZodEnum<typeof import("../..").UnregUserStatus>;
10
+ }, z.core.$strip>;
11
+ const URL: (id: string) => string;
12
+ const METHOD = HttpMethod.PATCH;
13
+ type RequestType = z.infer<typeof Request>;
14
+ type ResponseType = z.infer<typeof Response>;
15
+ }