@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.
Files changed (62) hide show
  1. package/build/controllers/index.d.ts +1 -1
  2. package/build/controllers/index.js +3 -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/rest-api.d.ts +6 -0
  8. package/build/rest-api.js +6 -0
  9. package/build/rest-api.js.map +1 -1
  10. package/build/routes/index.d.ts +1 -0
  11. package/build/routes/index.js +4 -2
  12. package/build/routes/index.js.map +1 -1
  13. package/build/routes/notifications-admin.routes.d.ts +6 -0
  14. package/build/routes/notifications-admin.routes.js +10 -0
  15. package/build/routes/notifications-admin.routes.js.map +1 -0
  16. package/build/tsconfig.tsbuildinfo +1 -1
  17. package/build/v1/file/file.errors.d.ts +1 -0
  18. package/build/v1/file/file.errors.js +5 -0
  19. package/build/v1/file/file.errors.js.map +1 -1
  20. package/build/v1/notifications/queries/admin-notification-detail.query.d.ts +78 -0
  21. package/build/v1/notifications/queries/admin-notification-detail.query.js +13 -0
  22. package/build/v1/notifications/queries/admin-notification-detail.query.js.map +1 -0
  23. package/build/v1/notifications/queries/admin-notifications-dashboard.query.d.ts +53 -0
  24. package/build/v1/notifications/queries/admin-notifications-dashboard.query.js +14 -0
  25. package/build/v1/notifications/queries/admin-notifications-dashboard.query.js.map +1 -0
  26. package/build/v1/notifications/queries/admin-notifications-list.query.d.ts +51 -0
  27. package/build/v1/notifications/queries/admin-notifications-list.query.js +14 -0
  28. package/build/v1/notifications/queries/admin-notifications-list.query.js.map +1 -0
  29. package/build/v1/notifications/queries/admin-user-notifications.query.d.ts +57 -0
  30. package/build/v1/notifications/queries/admin-user-notifications.query.js +14 -0
  31. package/build/v1/notifications/queries/admin-user-notifications.query.js.map +1 -0
  32. package/build/v1/notifications/queries/index.d.ts +4 -0
  33. package/build/v1/notifications/queries/index.js +4 -0
  34. package/build/v1/notifications/queries/index.js.map +1 -1
  35. package/build/v1/notifications/schemas/admin-notification-detail.schema.d.ts +143 -0
  36. package/build/v1/notifications/schemas/admin-notification-detail.schema.js +85 -0
  37. package/build/v1/notifications/schemas/admin-notification-detail.schema.js.map +1 -0
  38. package/build/v1/notifications/schemas/admin-notification-shared.schema.d.ts +44 -0
  39. package/build/v1/notifications/schemas/admin-notification-shared.schema.js +43 -0
  40. package/build/v1/notifications/schemas/admin-notification-shared.schema.js.map +1 -0
  41. package/build/v1/notifications/schemas/admin-notification-sort.enum.d.ts +4 -0
  42. package/build/v1/notifications/schemas/admin-notification-sort.enum.js +9 -0
  43. package/build/v1/notifications/schemas/admin-notification-sort.enum.js.map +1 -0
  44. package/build/v1/notifications/schemas/admin-notifications-dashboard.schema.d.ts +64 -0
  45. package/build/v1/notifications/schemas/admin-notifications-dashboard.schema.js +47 -0
  46. package/build/v1/notifications/schemas/admin-notifications-dashboard.schema.js.map +1 -0
  47. package/build/v1/notifications/schemas/admin-notifications-list.schema.d.ts +48 -0
  48. package/build/v1/notifications/schemas/admin-notifications-list.schema.js +35 -0
  49. package/build/v1/notifications/schemas/admin-notifications-list.schema.js.map +1 -0
  50. package/build/v1/notifications/schemas/admin-user-notifications.schema.d.ts +50 -0
  51. package/build/v1/notifications/schemas/admin-user-notifications.schema.js +22 -0
  52. package/build/v1/notifications/schemas/admin-user-notifications.schema.js.map +1 -0
  53. package/build/v1/notifications/schemas/index.d.ts +6 -0
  54. package/build/v1/notifications/schemas/index.js +6 -0
  55. package/build/v1/notifications/schemas/index.js.map +1 -1
  56. package/build/v1/tasks/schemas/index.d.ts +1 -0
  57. package/build/v1/tasks/schemas/index.js +1 -0
  58. package/build/v1/tasks/schemas/index.js.map +1 -1
  59. package/build/v1/tasks/schemas/task-code.constants.d.ts +2 -0
  60. package/build/v1/tasks/schemas/task-code.constants.js +12 -0
  61. package/build/v1/tasks/schemas/task-code.constants.js.map +1 -0
  62. package/package.json +1 -1
@@ -8,6 +8,7 @@ export declare enum FileErrorCode {
8
8
  UNAUTHORIZED = "UNAUTHORIZED",
9
9
  FORBIDDEN = "FORBIDDEN",
10
10
  FILE_NOT_FOUND = "FILE_NOT_FOUND",
11
+ UPLOAD_TARGET_GONE = "UPLOAD_TARGET_GONE",
11
12
  UPLOAD_IN_PROGRESS = "UPLOAD_IN_PROGRESS",
12
13
  QUOTA_EXCEEDED = "QUOTA_EXCEEDED",
13
14
  QUOTA_EXCEEDED_REGISTERED = "QUOTA_EXCEEDED_REGISTERED",
@@ -11,6 +11,7 @@ var FileErrorCode;
11
11
  FileErrorCode["UNAUTHORIZED"] = "UNAUTHORIZED";
12
12
  FileErrorCode["FORBIDDEN"] = "FORBIDDEN";
13
13
  FileErrorCode["FILE_NOT_FOUND"] = "FILE_NOT_FOUND";
14
+ FileErrorCode["UPLOAD_TARGET_GONE"] = "UPLOAD_TARGET_GONE";
14
15
  FileErrorCode["UPLOAD_IN_PROGRESS"] = "UPLOAD_IN_PROGRESS";
15
16
  FileErrorCode["QUOTA_EXCEEDED"] = "QUOTA_EXCEEDED";
16
17
  FileErrorCode["QUOTA_EXCEEDED_REGISTERED"] = "QUOTA_EXCEEDED_REGISTERED";
@@ -52,6 +53,10 @@ exports.FILE_ERRORS = {
52
53
  code: FileErrorCode.FILE_NOT_FOUND,
53
54
  statusCode: 404,
54
55
  },
56
+ [FileErrorCode.UPLOAD_TARGET_GONE]: {
57
+ code: FileErrorCode.UPLOAD_TARGET_GONE,
58
+ statusCode: 410,
59
+ },
55
60
  [FileErrorCode.UPLOAD_IN_PROGRESS]: {
56
61
  code: FileErrorCode.UPLOAD_IN_PROGRESS,
57
62
  statusCode: 409,
@@ -1 +1 @@
1
- {"version":3,"file":"file.errors.js","sourceRoot":"","sources":["../../../v1/file/file.errors.ts"],"names":[],"mappings":";;;AAEA,IAAY,aA4CX;AA5CD,WAAY,aAAa;IAErB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AAG;KAClB;IAGD,CAAC,aAAa,CAAC,cAAc,CAAC,EAAE;QAC5B,IAAI,EAAE,aAAa,CAAC,cAAc;QAClC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,aAAa,CAAC,yBAAyB,CAAC,EAAE;QACvC,IAAI,EAAE,aAAa,CAAC,yBAAyB;QAC7C,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,aAAa,CAAC,2BAA2B,CAAC,EAAE;QACzC,IAAI,EAAE,aAAa,CAAC,2BAA2B;QAC/C,UAAU,EAAE,GAAG;KAClB;IAGD,CAAC,aAAa,CAAC,aAAa,CAAC,EAAE;QAC3B,IAAI,EAAE,aAAa,CAAC,aAAa;QACjC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,aAAa,CAAC,iBAAiB,CAAC,EAAE;QAC/B,IAAI,EAAE,aAAa,CAAC,iBAAiB;QACrC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,aAAa,CAAC,cAAc,CAAC,EAAE;QAC5B,IAAI,EAAE,aAAa,CAAC,cAAc;QAClC,UAAU,EAAE,GAAG;KAClB;CACK,CAAC"}
@@ -0,0 +1,78 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method.enum';
3
+ export declare namespace AdminNotificationDetailQuery {
4
+ const Response: z.ZodObject<{
5
+ message: z.ZodObject<{
6
+ id: z.ZodString;
7
+ userId: z.ZodString;
8
+ groupKey: z.ZodString;
9
+ templateKey: z.ZodString;
10
+ templateVersion: z.ZodNumber;
11
+ payload: z.ZodUnknown;
12
+ campaignId: z.ZodNullable<z.ZodString>;
13
+ dedupeKey: z.ZodNullable<z.ZodString>;
14
+ priority: z.ZodNumber;
15
+ scheduledAt: z.ZodNullable<z.ZodString>;
16
+ createdAt: z.ZodString;
17
+ }, z.core.$strip>;
18
+ jobs: z.ZodArray<z.ZodObject<{
19
+ id: z.ZodString;
20
+ channel: z.ZodEnum<typeof import("../schemas").NotificationChannel>;
21
+ status: z.ZodEnum<typeof import("../schemas").NotificationJobStatus>;
22
+ recipientAddress: z.ZodNullable<z.ZodString>;
23
+ provider: z.ZodNullable<z.ZodString>;
24
+ attempts: z.ZodNumber;
25
+ maxAttempts: z.ZodNumber;
26
+ scheduledAt: z.ZodString;
27
+ nextRetryAt: z.ZodNullable<z.ZodString>;
28
+ providerMessageId: z.ZodNullable<z.ZodString>;
29
+ sentAt: z.ZodNullable<z.ZodString>;
30
+ errorCode: z.ZodNullable<z.ZodString>;
31
+ errorMessage: z.ZodNullable<z.ZodString>;
32
+ deadLetteredAt: z.ZodNullable<z.ZodString>;
33
+ createdAt: z.ZodString;
34
+ updatedAt: z.ZodString;
35
+ }, z.core.$strip>>;
36
+ webNotifications: z.ZodArray<z.ZodObject<{
37
+ id: z.ZodString;
38
+ title: z.ZodString;
39
+ ctaLabel: z.ZodNullable<z.ZodString>;
40
+ ctaUrl: z.ZodNullable<z.ZodString>;
41
+ imageUrl: z.ZodNullable<z.ZodString>;
42
+ sequence: z.ZodString;
43
+ readAt: z.ZodNullable<z.ZodString>;
44
+ createdAt: z.ZodString;
45
+ }, z.core.$strip>>;
46
+ links: z.ZodArray<z.ZodObject<{
47
+ id: z.ZodString;
48
+ channel: z.ZodString;
49
+ linkKey: z.ZodString;
50
+ originalUrl: z.ZodString;
51
+ conversionType: z.ZodNullable<z.ZodString>;
52
+ clickCount: z.ZodNumber;
53
+ firstClickedAt: z.ZodNullable<z.ZodString>;
54
+ lastClickedAt: z.ZodNullable<z.ZodString>;
55
+ expiresAt: z.ZodString;
56
+ createdAt: z.ZodString;
57
+ }, z.core.$strip>>;
58
+ conversions: z.ZodArray<z.ZodObject<{
59
+ id: z.ZodString;
60
+ conversionType: z.ZodString;
61
+ attributedBy: z.ZodString;
62
+ attributionLinkId: z.ZodNullable<z.ZodString>;
63
+ convertedAt: z.ZodString;
64
+ }, z.core.$strip>>;
65
+ events: z.ZodArray<z.ZodObject<{
66
+ id: z.ZodString;
67
+ channel: z.ZodNullable<z.ZodString>;
68
+ eventType: z.ZodString;
69
+ conversionType: z.ZodNullable<z.ZodString>;
70
+ providerEventId: z.ZodNullable<z.ZodString>;
71
+ meta: z.ZodNullable<z.ZodUnknown>;
72
+ eventAt: z.ZodString;
73
+ }, z.core.$strip>>;
74
+ }, z.core.$strip>;
75
+ const URL: (id: string) => string;
76
+ const METHOD = HttpMethod.GET;
77
+ type ResponseType = z.infer<typeof Response>;
78
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminNotificationDetailQuery = void 0;
4
+ const schemas_1 = require("../schemas");
5
+ const rest_api_1 = require("../../../rest-api");
6
+ const http_method_enum_1 = require("../../../shared/http-method.enum");
7
+ var AdminNotificationDetailQuery;
8
+ (function (AdminNotificationDetailQuery) {
9
+ AdminNotificationDetailQuery.Response = schemas_1.AdminNotificationDetailResponseSchema;
10
+ AdminNotificationDetailQuery.URL = rest_api_1.REST_API.V1.NOTIFICATIONS.ADMIN.DETAIL;
11
+ AdminNotificationDetailQuery.METHOD = http_method_enum_1.HttpMethod.GET;
12
+ })(AdminNotificationDetailQuery || (exports.AdminNotificationDetailQuery = AdminNotificationDetailQuery = {}));
13
+ //# sourceMappingURL=admin-notification-detail.query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-notification-detail.query.js","sourceRoot":"","sources":["../../../../v1/notifications/queries/admin-notification-detail.query.ts"],"names":[],"mappings":";;;AACA,wCAAmE;AACnE,gDAA6C;AAC7C,uEAA8D;AAE9D,IAAiB,4BAA4B,CAO5C;AAPD,WAAiB,4BAA4B;IAC5B,qCAAQ,GAAG,+CAAqC,CAAC;IAEjD,gCAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC;IAC7C,mCAAM,GAAG,6BAAU,CAAC,GAAG,CAAC;AAGzC,CAAC,EAPgB,4BAA4B,4CAA5B,4BAA4B,QAO5C"}
@@ -0,0 +1,53 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method.enum';
3
+ export declare namespace AdminNotificationsDashboardQuery {
4
+ const Request: z.ZodObject<{
5
+ from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
6
+ to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
7
+ channel: z.ZodOptional<z.ZodEnum<typeof import("../schemas").NotificationChannel>>;
8
+ groupKey: z.ZodOptional<z.ZodString>;
9
+ templateKey: z.ZodOptional<z.ZodString>;
10
+ campaignId: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>;
12
+ const Response: z.ZodObject<{
13
+ range: z.ZodObject<{
14
+ from: z.ZodString;
15
+ to: z.ZodString;
16
+ }, z.core.$strip>;
17
+ totals: z.ZodObject<{
18
+ messages: z.ZodNumber;
19
+ jobs: z.ZodNumber;
20
+ }, z.core.$strip>;
21
+ funnel: z.ZodObject<{
22
+ messages: z.ZodNumber;
23
+ delivered: z.ZodNumber;
24
+ read: z.ZodNumber;
25
+ clicked: z.ZodNumber;
26
+ converted: z.ZodNumber;
27
+ deliveredRate: z.ZodNumber;
28
+ readRate: z.ZodNumber;
29
+ clickedRate: z.ZodNumber;
30
+ convertedRate: z.ZodNumber;
31
+ }, z.core.$strip>;
32
+ byStatus: z.ZodArray<z.ZodObject<{
33
+ status: z.ZodEnum<typeof import("../schemas").NotificationJobStatus>;
34
+ count: z.ZodNumber;
35
+ }, z.core.$strip>>;
36
+ byChannel: z.ZodArray<z.ZodObject<{
37
+ channel: z.ZodEnum<typeof import("../schemas").NotificationChannel>;
38
+ jobs: z.ZodNumber;
39
+ sent: z.ZodNumber;
40
+ clicked: z.ZodNumber;
41
+ }, z.core.$strip>>;
42
+ topTemplates: z.ZodArray<z.ZodObject<{
43
+ templateKey: z.ZodString;
44
+ messages: z.ZodNumber;
45
+ converted: z.ZodNumber;
46
+ conversionRate: z.ZodNumber;
47
+ }, z.core.$strip>>;
48
+ }, z.core.$strip>;
49
+ const URL: "/api/v1/admin/notifications/dashboard";
50
+ const METHOD = HttpMethod.GET;
51
+ type RequestType = z.infer<typeof Request>;
52
+ type ResponseType = z.infer<typeof Response>;
53
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminNotificationsDashboardQuery = void 0;
4
+ const schemas_1 = require("../schemas");
5
+ const rest_api_1 = require("../../../rest-api");
6
+ const http_method_enum_1 = require("../../../shared/http-method.enum");
7
+ var AdminNotificationsDashboardQuery;
8
+ (function (AdminNotificationsDashboardQuery) {
9
+ AdminNotificationsDashboardQuery.Request = schemas_1.AdminNotificationsDashboardRequestSchema;
10
+ AdminNotificationsDashboardQuery.Response = schemas_1.AdminNotificationsDashboardResponseSchema;
11
+ AdminNotificationsDashboardQuery.URL = rest_api_1.REST_API.V1.NOTIFICATIONS.ADMIN.DASHBOARD;
12
+ AdminNotificationsDashboardQuery.METHOD = http_method_enum_1.HttpMethod.GET;
13
+ })(AdminNotificationsDashboardQuery || (exports.AdminNotificationsDashboardQuery = AdminNotificationsDashboardQuery = {}));
14
+ //# sourceMappingURL=admin-notifications-dashboard.query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-notifications-dashboard.query.js","sourceRoot":"","sources":["../../../../v1/notifications/queries/admin-notifications-dashboard.query.ts"],"names":[],"mappings":";;;AACA,wCAGoB;AACpB,gDAA6C;AAC7C,uEAA8D;AAE9D,IAAiB,gCAAgC,CAShD;AATD,WAAiB,gCAAgC;IAChC,wCAAO,GAAG,kDAAwC,CAAC;IACnD,yCAAQ,GAAG,mDAAyC,CAAC;IAErD,oCAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC;IAChD,uCAAM,GAAG,6BAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EATgB,gCAAgC,gDAAhC,gCAAgC,QAShD"}
@@ -0,0 +1,51 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method.enum';
3
+ export declare namespace AdminNotificationsListQuery {
4
+ const Request: z.ZodObject<{
5
+ userId: z.ZodOptional<z.ZodString>;
6
+ channel: z.ZodOptional<z.ZodEnum<typeof import("../schemas").NotificationChannel>>;
7
+ status: z.ZodOptional<z.ZodEnum<typeof import("../schemas").NotificationJobStatus>>;
8
+ groupKey: z.ZodOptional<z.ZodString>;
9
+ templateKey: z.ZodOptional<z.ZodString>;
10
+ campaignId: z.ZodOptional<z.ZodString>;
11
+ q: z.ZodOptional<z.ZodString>;
12
+ converted: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>>;
13
+ createdFrom: z.ZodOptional<z.ZodCoercedDate<unknown>>;
14
+ createdTo: z.ZodOptional<z.ZodCoercedDate<unknown>>;
15
+ sortBy: z.ZodDefault<z.ZodEnum<typeof import("../schemas").AdminNotificationSortField>>;
16
+ sortOrder: z.ZodDefault<z.ZodEnum<typeof import("../..").SortOrder>>;
17
+ page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
18
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
19
+ }, z.core.$strip>;
20
+ const Response: z.ZodObject<{
21
+ items: z.ZodArray<z.ZodObject<{
22
+ id: z.ZodString;
23
+ userId: z.ZodString;
24
+ groupKey: z.ZodString;
25
+ templateKey: z.ZodString;
26
+ templateVersion: z.ZodNumber;
27
+ campaignId: z.ZodNullable<z.ZodString>;
28
+ priority: z.ZodNumber;
29
+ scheduledAt: z.ZodNullable<z.ZodString>;
30
+ createdAt: z.ZodString;
31
+ channels: z.ZodArray<z.ZodEnum<typeof import("../schemas").NotificationChannel>>;
32
+ jobs: z.ZodObject<{
33
+ total: z.ZodNumber;
34
+ pending: z.ZodNumber;
35
+ processing: z.ZodNumber;
36
+ sent: z.ZodNumber;
37
+ dlq: z.ZodNumber;
38
+ }, z.core.$strip>;
39
+ sentAt: z.ZodNullable<z.ZodString>;
40
+ readAt: z.ZodNullable<z.ZodString>;
41
+ clickCount: z.ZodNumber;
42
+ converted: z.ZodBoolean;
43
+ conversionCount: z.ZodNumber;
44
+ }, z.core.$strip>>;
45
+ total: z.ZodNumber;
46
+ }, z.core.$strip>;
47
+ const URL: "/api/v1/admin/notifications";
48
+ const METHOD = HttpMethod.GET;
49
+ type RequestType = z.infer<typeof Request>;
50
+ type ResponseType = z.infer<typeof Response>;
51
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminNotificationsListQuery = void 0;
4
+ const schemas_1 = require("../schemas");
5
+ const rest_api_1 = require("../../../rest-api");
6
+ const http_method_enum_1 = require("../../../shared/http-method.enum");
7
+ var AdminNotificationsListQuery;
8
+ (function (AdminNotificationsListQuery) {
9
+ AdminNotificationsListQuery.Request = schemas_1.AdminNotificationsListRequestSchema;
10
+ AdminNotificationsListQuery.Response = schemas_1.AdminNotificationsListResponseSchema;
11
+ AdminNotificationsListQuery.URL = rest_api_1.REST_API.V1.NOTIFICATIONS.ADMIN.LIST;
12
+ AdminNotificationsListQuery.METHOD = http_method_enum_1.HttpMethod.GET;
13
+ })(AdminNotificationsListQuery || (exports.AdminNotificationsListQuery = AdminNotificationsListQuery = {}));
14
+ //# sourceMappingURL=admin-notifications-list.query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-notifications-list.query.js","sourceRoot":"","sources":["../../../../v1/notifications/queries/admin-notifications-list.query.ts"],"names":[],"mappings":";;;AACA,wCAGoB;AACpB,gDAA6C;AAC7C,uEAA8D;AAE9D,IAAiB,2BAA2B,CAS3C;AATD,WAAiB,2BAA2B;IAC3B,mCAAO,GAAG,6CAAmC,CAAC;IAC9C,oCAAQ,GAAG,8CAAoC,CAAC;IAEhD,+BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC;IAC3C,kCAAM,GAAG,6BAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EATgB,2BAA2B,2CAA3B,2BAA2B,QAS3C"}
@@ -0,0 +1,57 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method.enum';
3
+ export declare namespace AdminUserNotificationsQuery {
4
+ const Request: z.ZodObject<{
5
+ from: z.ZodOptional<z.ZodCoercedDate<unknown>>;
6
+ to: z.ZodOptional<z.ZodCoercedDate<unknown>>;
7
+ page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
8
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
9
+ }, z.core.$strip>;
10
+ const Response: z.ZodObject<{
11
+ userId: z.ZodString;
12
+ range: z.ZodObject<{
13
+ from: z.ZodString;
14
+ to: z.ZodString;
15
+ }, z.core.$strip>;
16
+ summary: z.ZodObject<{
17
+ messages: z.ZodNumber;
18
+ delivered: z.ZodNumber;
19
+ read: z.ZodNumber;
20
+ clicked: z.ZodNumber;
21
+ converted: z.ZodNumber;
22
+ deliveredRate: z.ZodNumber;
23
+ readRate: z.ZodNumber;
24
+ clickedRate: z.ZodNumber;
25
+ convertedRate: z.ZodNumber;
26
+ }, z.core.$strip>;
27
+ items: z.ZodArray<z.ZodObject<{
28
+ id: z.ZodString;
29
+ userId: z.ZodString;
30
+ groupKey: z.ZodString;
31
+ templateKey: z.ZodString;
32
+ templateVersion: z.ZodNumber;
33
+ campaignId: z.ZodNullable<z.ZodString>;
34
+ priority: z.ZodNumber;
35
+ scheduledAt: z.ZodNullable<z.ZodString>;
36
+ createdAt: z.ZodString;
37
+ channels: z.ZodArray<z.ZodEnum<typeof import("../schemas").NotificationChannel>>;
38
+ jobs: z.ZodObject<{
39
+ total: z.ZodNumber;
40
+ pending: z.ZodNumber;
41
+ processing: z.ZodNumber;
42
+ sent: z.ZodNumber;
43
+ dlq: z.ZodNumber;
44
+ }, z.core.$strip>;
45
+ sentAt: z.ZodNullable<z.ZodString>;
46
+ readAt: z.ZodNullable<z.ZodString>;
47
+ clickCount: z.ZodNumber;
48
+ converted: z.ZodBoolean;
49
+ conversionCount: z.ZodNumber;
50
+ }, z.core.$strip>>;
51
+ total: z.ZodNumber;
52
+ }, z.core.$strip>;
53
+ const URL: (userId: string) => string;
54
+ const METHOD = HttpMethod.GET;
55
+ type RequestType = z.infer<typeof Request>;
56
+ type ResponseType = z.infer<typeof Response>;
57
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminUserNotificationsQuery = void 0;
4
+ const schemas_1 = require("../schemas");
5
+ const rest_api_1 = require("../../../rest-api");
6
+ const http_method_enum_1 = require("../../../shared/http-method.enum");
7
+ var AdminUserNotificationsQuery;
8
+ (function (AdminUserNotificationsQuery) {
9
+ AdminUserNotificationsQuery.Request = schemas_1.AdminUserNotificationsRequestSchema;
10
+ AdminUserNotificationsQuery.Response = schemas_1.AdminUserNotificationsResponseSchema;
11
+ AdminUserNotificationsQuery.URL = rest_api_1.REST_API.V1.NOTIFICATIONS.ADMIN.USER;
12
+ AdminUserNotificationsQuery.METHOD = http_method_enum_1.HttpMethod.GET;
13
+ })(AdminUserNotificationsQuery || (exports.AdminUserNotificationsQuery = AdminUserNotificationsQuery = {}));
14
+ //# sourceMappingURL=admin-user-notifications.query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-user-notifications.query.js","sourceRoot":"","sources":["../../../../v1/notifications/queries/admin-user-notifications.query.ts"],"names":[],"mappings":";;;AACA,wCAGoB;AACpB,gDAA6C;AAC7C,uEAA8D;AAE9D,IAAiB,2BAA2B,CAS3C;AATD,WAAiB,2BAA2B;IAC3B,mCAAO,GAAG,6CAAmC,CAAC;IAC9C,oCAAQ,GAAG,8CAAoC,CAAC;IAEhD,+BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC;IAC3C,kCAAM,GAAG,6BAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EATgB,2BAA2B,2CAA3B,2BAA2B,QAS3C"}
@@ -1 +1,5 @@
1
1
  export * from './get-notification-settings.query';
2
+ export * from './admin-notifications-dashboard.query';
3
+ export * from './admin-notifications-list.query';
4
+ export * from './admin-notification-detail.query';
5
+ export * from './admin-user-notifications.query';
@@ -15,4 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./get-notification-settings.query"), exports);
18
+ __exportStar(require("./admin-notifications-dashboard.query"), exports);
19
+ __exportStar(require("./admin-notifications-list.query"), exports);
20
+ __exportStar(require("./admin-notification-detail.query"), exports);
21
+ __exportStar(require("./admin-user-notifications.query"), exports);
18
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/notifications/queries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oEAAkD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/notifications/queries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oEAAkD;AAClD,wEAAsD;AACtD,mEAAiD;AACjD,oEAAkD;AAClD,mEAAiD"}
@@ -0,0 +1,143 @@
1
+ import { z } from 'zod';
2
+ import { NotificationChannel } from './notification-channel.enum';
3
+ import { NotificationJobStatus } from './notification-job-status.enum';
4
+ export declare const AdminNotificationMessageSchema: z.ZodObject<{
5
+ id: z.ZodString;
6
+ userId: z.ZodString;
7
+ groupKey: z.ZodString;
8
+ templateKey: z.ZodString;
9
+ templateVersion: z.ZodNumber;
10
+ payload: z.ZodUnknown;
11
+ campaignId: z.ZodNullable<z.ZodString>;
12
+ dedupeKey: z.ZodNullable<z.ZodString>;
13
+ priority: z.ZodNumber;
14
+ scheduledAt: z.ZodNullable<z.ZodString>;
15
+ createdAt: z.ZodString;
16
+ }, z.core.$strip>;
17
+ export declare const AdminNotificationJobSchema: z.ZodObject<{
18
+ id: z.ZodString;
19
+ channel: z.ZodEnum<typeof NotificationChannel>;
20
+ status: z.ZodEnum<typeof NotificationJobStatus>;
21
+ recipientAddress: z.ZodNullable<z.ZodString>;
22
+ provider: z.ZodNullable<z.ZodString>;
23
+ attempts: z.ZodNumber;
24
+ maxAttempts: z.ZodNumber;
25
+ scheduledAt: z.ZodString;
26
+ nextRetryAt: z.ZodNullable<z.ZodString>;
27
+ providerMessageId: z.ZodNullable<z.ZodString>;
28
+ sentAt: z.ZodNullable<z.ZodString>;
29
+ errorCode: z.ZodNullable<z.ZodString>;
30
+ errorMessage: z.ZodNullable<z.ZodString>;
31
+ deadLetteredAt: z.ZodNullable<z.ZodString>;
32
+ createdAt: z.ZodString;
33
+ updatedAt: z.ZodString;
34
+ }, z.core.$strip>;
35
+ export declare const AdminNotificationWebSchema: z.ZodObject<{
36
+ id: z.ZodString;
37
+ title: z.ZodString;
38
+ ctaLabel: z.ZodNullable<z.ZodString>;
39
+ ctaUrl: z.ZodNullable<z.ZodString>;
40
+ imageUrl: z.ZodNullable<z.ZodString>;
41
+ sequence: z.ZodString;
42
+ readAt: z.ZodNullable<z.ZodString>;
43
+ createdAt: z.ZodString;
44
+ }, z.core.$strip>;
45
+ export declare const AdminNotificationLinkSchema: z.ZodObject<{
46
+ id: z.ZodString;
47
+ channel: z.ZodString;
48
+ linkKey: z.ZodString;
49
+ originalUrl: z.ZodString;
50
+ conversionType: z.ZodNullable<z.ZodString>;
51
+ clickCount: z.ZodNumber;
52
+ firstClickedAt: z.ZodNullable<z.ZodString>;
53
+ lastClickedAt: z.ZodNullable<z.ZodString>;
54
+ expiresAt: z.ZodString;
55
+ createdAt: z.ZodString;
56
+ }, z.core.$strip>;
57
+ export declare const AdminNotificationConversionSchema: z.ZodObject<{
58
+ id: z.ZodString;
59
+ conversionType: z.ZodString;
60
+ attributedBy: z.ZodString;
61
+ attributionLinkId: z.ZodNullable<z.ZodString>;
62
+ convertedAt: z.ZodString;
63
+ }, z.core.$strip>;
64
+ export declare const AdminNotificationEventSchema: z.ZodObject<{
65
+ id: z.ZodString;
66
+ channel: z.ZodNullable<z.ZodString>;
67
+ eventType: z.ZodString;
68
+ conversionType: z.ZodNullable<z.ZodString>;
69
+ providerEventId: z.ZodNullable<z.ZodString>;
70
+ meta: z.ZodNullable<z.ZodUnknown>;
71
+ eventAt: z.ZodString;
72
+ }, z.core.$strip>;
73
+ export declare const AdminNotificationDetailResponseSchema: z.ZodObject<{
74
+ message: z.ZodObject<{
75
+ id: z.ZodString;
76
+ userId: z.ZodString;
77
+ groupKey: z.ZodString;
78
+ templateKey: z.ZodString;
79
+ templateVersion: z.ZodNumber;
80
+ payload: z.ZodUnknown;
81
+ campaignId: z.ZodNullable<z.ZodString>;
82
+ dedupeKey: z.ZodNullable<z.ZodString>;
83
+ priority: z.ZodNumber;
84
+ scheduledAt: z.ZodNullable<z.ZodString>;
85
+ createdAt: z.ZodString;
86
+ }, z.core.$strip>;
87
+ jobs: z.ZodArray<z.ZodObject<{
88
+ id: z.ZodString;
89
+ channel: z.ZodEnum<typeof NotificationChannel>;
90
+ status: z.ZodEnum<typeof NotificationJobStatus>;
91
+ recipientAddress: z.ZodNullable<z.ZodString>;
92
+ provider: z.ZodNullable<z.ZodString>;
93
+ attempts: z.ZodNumber;
94
+ maxAttempts: z.ZodNumber;
95
+ scheduledAt: z.ZodString;
96
+ nextRetryAt: z.ZodNullable<z.ZodString>;
97
+ providerMessageId: z.ZodNullable<z.ZodString>;
98
+ sentAt: z.ZodNullable<z.ZodString>;
99
+ errorCode: z.ZodNullable<z.ZodString>;
100
+ errorMessage: z.ZodNullable<z.ZodString>;
101
+ deadLetteredAt: z.ZodNullable<z.ZodString>;
102
+ createdAt: z.ZodString;
103
+ updatedAt: z.ZodString;
104
+ }, z.core.$strip>>;
105
+ webNotifications: z.ZodArray<z.ZodObject<{
106
+ id: z.ZodString;
107
+ title: z.ZodString;
108
+ ctaLabel: z.ZodNullable<z.ZodString>;
109
+ ctaUrl: z.ZodNullable<z.ZodString>;
110
+ imageUrl: z.ZodNullable<z.ZodString>;
111
+ sequence: z.ZodString;
112
+ readAt: z.ZodNullable<z.ZodString>;
113
+ createdAt: z.ZodString;
114
+ }, z.core.$strip>>;
115
+ links: z.ZodArray<z.ZodObject<{
116
+ id: z.ZodString;
117
+ channel: z.ZodString;
118
+ linkKey: z.ZodString;
119
+ originalUrl: z.ZodString;
120
+ conversionType: z.ZodNullable<z.ZodString>;
121
+ clickCount: z.ZodNumber;
122
+ firstClickedAt: z.ZodNullable<z.ZodString>;
123
+ lastClickedAt: z.ZodNullable<z.ZodString>;
124
+ expiresAt: z.ZodString;
125
+ createdAt: z.ZodString;
126
+ }, z.core.$strip>>;
127
+ conversions: z.ZodArray<z.ZodObject<{
128
+ id: z.ZodString;
129
+ conversionType: z.ZodString;
130
+ attributedBy: z.ZodString;
131
+ attributionLinkId: z.ZodNullable<z.ZodString>;
132
+ convertedAt: z.ZodString;
133
+ }, z.core.$strip>>;
134
+ events: z.ZodArray<z.ZodObject<{
135
+ id: z.ZodString;
136
+ channel: z.ZodNullable<z.ZodString>;
137
+ eventType: z.ZodString;
138
+ conversionType: z.ZodNullable<z.ZodString>;
139
+ providerEventId: z.ZodNullable<z.ZodString>;
140
+ meta: z.ZodNullable<z.ZodUnknown>;
141
+ eventAt: z.ZodString;
142
+ }, z.core.$strip>>;
143
+ }, z.core.$strip>;
@@ -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,6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