@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
@@ -1,5 +1,6 @@
1
1
  export declare enum AntifraudEventType {
2
2
  UNREG_EVALUATED = "UNREG_EVALUATED",
3
3
  UNREG_PAUSED = "UNREG_PAUSED",
4
- UNREG_RESUMED = "UNREG_RESUMED"
4
+ UNREG_RESUMED = "UNREG_RESUMED",
5
+ UNREG_ADMIN_STATUS_CHANGED = "UNREG_ADMIN_STATUS_CHANGED"
5
6
  }
@@ -6,5 +6,6 @@ var AntifraudEventType;
6
6
  AntifraudEventType["UNREG_EVALUATED"] = "UNREG_EVALUATED";
7
7
  AntifraudEventType["UNREG_PAUSED"] = "UNREG_PAUSED";
8
8
  AntifraudEventType["UNREG_RESUMED"] = "UNREG_RESUMED";
9
+ AntifraudEventType["UNREG_ADMIN_STATUS_CHANGED"] = "UNREG_ADMIN_STATUS_CHANGED";
9
10
  })(AntifraudEventType || (exports.AntifraudEventType = AntifraudEventType = {}));
10
11
  //# sourceMappingURL=antifraud-event-type.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"antifraud-event-type.enum.js","sourceRoot":"","sources":["../../../../v1/antifraud/enums/antifraud-event-type.enum.ts"],"names":[],"mappings":";;;AAOA,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAE1B,yDAAmC,CAAA;IAEnC,mDAA6B,CAAA;IAE7B,qDAA+B,CAAA;AACnC,CAAC,EAPW,kBAAkB,kCAAlB,kBAAkB,QAO7B"}
1
+ {"version":3,"file":"antifraud-event-type.enum.js","sourceRoot":"","sources":["../../../../v1/antifraud/enums/antifraud-event-type.enum.ts"],"names":[],"mappings":";;;AAOA,IAAY,kBASX;AATD,WAAY,kBAAkB;IAE1B,yDAAmC,CAAA;IAEnC,mDAA6B,CAAA;IAE7B,qDAA+B,CAAA;IAE/B,+EAAyD,CAAA;AAC7D,CAAC,EATW,kBAAkB,kCAAlB,kBAAkB,QAS7B"}
@@ -6,6 +6,7 @@ export declare enum AntifraudTimelineKind {
6
6
  UNREG_EVALUATED = "UNREG_EVALUATED",
7
7
  UNREG_PAUSED = "UNREG_PAUSED",
8
8
  UNREG_RESUMED = "UNREG_RESUMED",
9
+ UNREG_ADMIN_STATUS_CHANGED = "UNREG_ADMIN_STATUS_CHANGED",
9
10
  SIGNUP_SCORED = "SIGNUP_SCORED",
10
11
  TRUST_TRANSITION = "TRUST_TRANSITION"
11
12
  }
@@ -11,6 +11,7 @@ var AntifraudTimelineKind;
11
11
  AntifraudTimelineKind["UNREG_EVALUATED"] = "UNREG_EVALUATED";
12
12
  AntifraudTimelineKind["UNREG_PAUSED"] = "UNREG_PAUSED";
13
13
  AntifraudTimelineKind["UNREG_RESUMED"] = "UNREG_RESUMED";
14
+ AntifraudTimelineKind["UNREG_ADMIN_STATUS_CHANGED"] = "UNREG_ADMIN_STATUS_CHANGED";
14
15
  AntifraudTimelineKind["SIGNUP_SCORED"] = "SIGNUP_SCORED";
15
16
  AntifraudTimelineKind["TRUST_TRANSITION"] = "TRUST_TRANSITION";
16
17
  })(AntifraudTimelineKind || (exports.AntifraudTimelineKind = AntifraudTimelineKind = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"antifraud-timeline.enum.js","sourceRoot":"","sources":["../../../../v1/antifraud/enums/antifraud-timeline.enum.ts"],"names":[],"mappings":";;;AAOA,IAAY,uBAKX;AALD,WAAY,uBAAuB;IAE/B,wCAAa,CAAA;IAEb,0CAAe,CAAA;AACnB,CAAC,EALW,uBAAuB,uCAAvB,uBAAuB,QAKlC;AAGD,IAAY,qBASX;AATD,WAAY,qBAAqB;IAE7B,4DAAmC,CAAA;IACnC,sDAA6B,CAAA;IAC7B,wDAA+B,CAAA;IAE/B,wDAA+B,CAAA;IAE/B,8DAAqC,CAAA;AACzC,CAAC,EATW,qBAAqB,qCAArB,qBAAqB,QAShC"}
1
+ {"version":3,"file":"antifraud-timeline.enum.js","sourceRoot":"","sources":["../../../../v1/antifraud/enums/antifraud-timeline.enum.ts"],"names":[],"mappings":";;;AAOA,IAAY,uBAKX;AALD,WAAY,uBAAuB;IAE/B,wCAAa,CAAA;IAEb,0CAAe,CAAA;AACnB,CAAC,EALW,uBAAuB,uCAAvB,uBAAuB,QAKlC;AAGD,IAAY,qBAUX;AAVD,WAAY,qBAAqB;IAE7B,4DAAmC,CAAA;IACnC,sDAA6B,CAAA;IAC7B,wDAA+B,CAAA;IAC/B,kFAAyD,CAAA;IAEzD,wDAA+B,CAAA;IAE/B,8DAAqC,CAAA;AACzC,CAAC,EAVW,qBAAqB,qCAArB,qBAAqB,QAUhC"}
@@ -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,oDAAmC,CAAA;IACnC,wDAAuC,CAAA;IAYvC,kDAAiC,CAAA;IACjC,wDAAuC,CAAA;IACvC,wDAAuC,CAAA;IAGvC,8CAA6B,CAAA;IAG7B,wCAAuB,CAAA;IAGvB,kDAAiC,CAAA;IAIjC,0DAAyC,CAAA;IAIzC,kDAAiC,CAAA;IAEjC,wEAAuD,CAAA;IAEvD,4EAA2D,CAAA;IAG3D,gDAA+B,CAAA;IAC/B,wDAAuC,CAAA;IACvC,kDAAiC,CAAA;AACrC,CAAC,EA5CW,aAAa,6BAAb,aAAa,QA4CxB;AAEY,QAAA,WAAW,GAAyC;IAE7D,CAAC,aAAa,CAAC,eAAe,CAAC,EAAE;QAC7B,IAAI,EAAE,aAAa,CAAC,eAAe;QACnC,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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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>;