@novu/api 0.0.1-alpha.77 → 0.0.1-alpha.78

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 (60) hide show
  1. package/lib/config.d.ts +3 -3
  2. package/lib/config.js +3 -3
  3. package/lib/config.js.map +1 -1
  4. package/models/components/actorfeeditemdto.d.ts +62 -0
  5. package/models/components/actorfeeditemdto.d.ts.map +1 -0
  6. package/models/components/actorfeeditemdto.js +85 -0
  7. package/models/components/actorfeeditemdto.js.map +1 -0
  8. package/models/components/channelsettings.d.ts +1 -1
  9. package/models/components/channeltypeenum.d.ts +6 -0
  10. package/models/components/channeltypeenum.d.ts.map +1 -1
  11. package/models/components/channeltypeenum.js +3 -0
  12. package/models/components/channeltypeenum.js.map +1 -1
  13. package/models/components/feedresponsedto.d.ts +3 -3
  14. package/models/components/feedresponsedto.d.ts.map +1 -1
  15. package/models/components/feedresponsedto.js +3 -3
  16. package/models/components/feedresponsedto.js.map +1 -1
  17. package/models/components/index.d.ts +3 -2
  18. package/models/components/index.d.ts.map +1 -1
  19. package/models/components/index.js +3 -2
  20. package/models/components/index.js.map +1 -1
  21. package/models/components/notificationfeeditemdto.d.ts +281 -0
  22. package/models/components/notificationfeeditemdto.d.ts.map +1 -0
  23. package/models/components/notificationfeeditemdto.js +233 -0
  24. package/models/components/notificationfeeditemdto.js.map +1 -0
  25. package/models/components/subscriberfeedresponsedto.d.ts +52 -0
  26. package/models/components/subscriberfeedresponsedto.d.ts.map +1 -0
  27. package/models/components/subscriberfeedresponsedto.js +76 -0
  28. package/models/components/subscriberfeedresponsedto.js.map +1 -0
  29. package/models/components/subscriberresponsedto.d.ts +46 -4
  30. package/models/components/subscriberresponsedto.d.ts.map +1 -1
  31. package/models/components/subscriberresponsedto.js.map +1 -1
  32. package/models/components/triggereventrequestdto.d.ts +13 -13
  33. package/models/components/triggereventrequestdto.d.ts.map +1 -1
  34. package/models/components/triggereventrequestdto.js +17 -16
  35. package/models/components/triggereventrequestdto.js.map +1 -1
  36. package/models/operations/messagescontrollergetmessages.d.ts +3 -0
  37. package/models/operations/messagescontrollergetmessages.d.ts.map +1 -1
  38. package/models/operations/messagescontrollergetmessages.js.map +1 -1
  39. package/package.json +1 -1
  40. package/src/lib/config.ts +3 -3
  41. package/src/models/components/actorfeeditemdto.ts +134 -0
  42. package/src/models/components/channelsettings.ts +1 -1
  43. package/src/models/components/channeltypeenum.ts +6 -0
  44. package/src/models/components/feedresponsedto.ts +9 -9
  45. package/src/models/components/index.ts +3 -2
  46. package/src/models/components/notificationfeeditemdto.ts +502 -0
  47. package/src/models/components/subscriberfeedresponsedto.ts +106 -0
  48. package/src/models/components/subscriberresponsedto.ts +46 -4
  49. package/src/models/components/triggereventrequestdto.ts +20 -31
  50. package/src/models/operations/messagescontrollergetmessages.ts +3 -0
  51. package/models/components/actor.d.ts +0 -62
  52. package/models/components/actor.d.ts.map +0 -1
  53. package/models/components/actor.js +0 -86
  54. package/models/components/actor.js.map +0 -1
  55. package/models/components/notificationdto.d.ts +0 -248
  56. package/models/components/notificationdto.d.ts.map +0 -1
  57. package/models/components/notificationdto.js +0 -187
  58. package/models/components/notificationdto.js.map +0 -1
  59. package/src/models/components/actor.ts +0 -123
  60. package/src/models/components/notificationdto.ts +0 -367
@@ -0,0 +1,281 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ import { ActorFeedItemDto, ActorFeedItemDto$Outbound } from "./actorfeeditemdto.js";
6
+ import { ChannelTypeEnum } from "./channeltypeenum.js";
7
+ import { MessageCTA, MessageCTA$Outbound } from "./messagecta.js";
8
+ import { SubscriberFeedResponseDto, SubscriberFeedResponseDto$Outbound } from "./subscriberfeedresponsedto.js";
9
+ /**
10
+ * Identifier for the template used, if applicable.
11
+ */
12
+ export type TemplateIdentifier = {};
13
+ /**
14
+ * Identifier for the provider that sends the notification.
15
+ */
16
+ export type NotificationFeedItemDtoProviderId = {};
17
+ /**
18
+ * The subject line for email notifications, if applicable.
19
+ */
20
+ export type Subject = {};
21
+ /**
22
+ * Current status of the notification.
23
+ */
24
+ export declare const NotificationFeedItemDtoStatus: {
25
+ readonly Sent: "sent";
26
+ readonly Error: "error";
27
+ readonly Warning: "warning";
28
+ };
29
+ /**
30
+ * Current status of the notification.
31
+ */
32
+ export type NotificationFeedItemDtoStatus = ClosedEnum<typeof NotificationFeedItemDtoStatus>;
33
+ export type NotificationFeedItemDto = {
34
+ /**
35
+ * Unique identifier for the notification.
36
+ */
37
+ id: string;
38
+ /**
39
+ * Identifier for the template used to generate the notification.
40
+ */
41
+ templateId: string;
42
+ /**
43
+ * Identifier for the environment where the notification is sent.
44
+ */
45
+ environmentId: string;
46
+ /**
47
+ * Identifier for the message template used.
48
+ */
49
+ messageTemplateId: string;
50
+ /**
51
+ * Identifier for the organization sending the notification.
52
+ */
53
+ organizationId: string;
54
+ /**
55
+ * Unique identifier for the notification instance.
56
+ */
57
+ notificationId: string;
58
+ /**
59
+ * Unique identifier for the subscriber receiving the notification.
60
+ */
61
+ subscriberId: string;
62
+ /**
63
+ * Identifier for the feed associated with the notification.
64
+ */
65
+ feedId: string;
66
+ /**
67
+ * Identifier for the job that triggered the notification.
68
+ */
69
+ jobId: string;
70
+ /**
71
+ * Timestamp indicating when the notification was created.
72
+ */
73
+ createdAt?: Date | null | undefined;
74
+ /**
75
+ * Timestamp indicating when the notification was last updated.
76
+ */
77
+ updatedAt?: Date | null | undefined;
78
+ /**
79
+ * Actor details related to the notification, if applicable.
80
+ */
81
+ actor?: ActorFeedItemDto | undefined;
82
+ /**
83
+ * Subscriber details associated with this notification.
84
+ */
85
+ subscriber?: SubscriberFeedResponseDto | undefined;
86
+ /**
87
+ * Unique identifier for the transaction associated with the notification.
88
+ */
89
+ transactionId: string;
90
+ /**
91
+ * Identifier for the template used, if applicable.
92
+ */
93
+ templateIdentifier?: TemplateIdentifier | null | undefined;
94
+ /**
95
+ * Identifier for the provider that sends the notification.
96
+ */
97
+ providerId?: NotificationFeedItemDtoProviderId | null | undefined;
98
+ /**
99
+ * The main content of the notification.
100
+ */
101
+ content: string;
102
+ /**
103
+ * The subject line for email notifications, if applicable.
104
+ */
105
+ subject?: Subject | null | undefined;
106
+ /**
107
+ * The channel through which the notification is sent.
108
+ */
109
+ channel: ChannelTypeEnum;
110
+ /**
111
+ * Indicates whether the notification has been read by the subscriber.
112
+ */
113
+ read: boolean;
114
+ /**
115
+ * Indicates whether the notification has been seen by the subscriber.
116
+ */
117
+ seen: boolean;
118
+ /**
119
+ * Indicates whether the notification has been deleted.
120
+ */
121
+ deleted: boolean;
122
+ /**
123
+ * Device tokens for push notifications, if applicable.
124
+ */
125
+ deviceTokens?: Array<string> | null | undefined;
126
+ /**
127
+ * Call-to-action information associated with the notification.
128
+ */
129
+ cta: MessageCTA;
130
+ /**
131
+ * Current status of the notification.
132
+ */
133
+ status: NotificationFeedItemDtoStatus;
134
+ /**
135
+ * The payload that was used to send the notification trigger.
136
+ */
137
+ payload?: {
138
+ [k: string]: any;
139
+ } | undefined;
140
+ /**
141
+ * Provider-specific overrides used when triggering the notification.
142
+ */
143
+ overrides?: {
144
+ [k: string]: any;
145
+ } | undefined;
146
+ };
147
+ /** @internal */
148
+ export declare const TemplateIdentifier$inboundSchema: z.ZodType<TemplateIdentifier, z.ZodTypeDef, unknown>;
149
+ /** @internal */
150
+ export type TemplateIdentifier$Outbound = {};
151
+ /** @internal */
152
+ export declare const TemplateIdentifier$outboundSchema: z.ZodType<TemplateIdentifier$Outbound, z.ZodTypeDef, TemplateIdentifier>;
153
+ /**
154
+ * @internal
155
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
156
+ */
157
+ export declare namespace TemplateIdentifier$ {
158
+ /** @deprecated use `TemplateIdentifier$inboundSchema` instead. */
159
+ const inboundSchema: z.ZodType<TemplateIdentifier, z.ZodTypeDef, unknown>;
160
+ /** @deprecated use `TemplateIdentifier$outboundSchema` instead. */
161
+ const outboundSchema: z.ZodType<TemplateIdentifier$Outbound, z.ZodTypeDef, TemplateIdentifier>;
162
+ /** @deprecated use `TemplateIdentifier$Outbound` instead. */
163
+ type Outbound = TemplateIdentifier$Outbound;
164
+ }
165
+ export declare function templateIdentifierToJSON(templateIdentifier: TemplateIdentifier): string;
166
+ export declare function templateIdentifierFromJSON(jsonString: string): SafeParseResult<TemplateIdentifier, SDKValidationError>;
167
+ /** @internal */
168
+ export declare const NotificationFeedItemDtoProviderId$inboundSchema: z.ZodType<NotificationFeedItemDtoProviderId, z.ZodTypeDef, unknown>;
169
+ /** @internal */
170
+ export type NotificationFeedItemDtoProviderId$Outbound = {};
171
+ /** @internal */
172
+ export declare const NotificationFeedItemDtoProviderId$outboundSchema: z.ZodType<NotificationFeedItemDtoProviderId$Outbound, z.ZodTypeDef, NotificationFeedItemDtoProviderId>;
173
+ /**
174
+ * @internal
175
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
176
+ */
177
+ export declare namespace NotificationFeedItemDtoProviderId$ {
178
+ /** @deprecated use `NotificationFeedItemDtoProviderId$inboundSchema` instead. */
179
+ const inboundSchema: z.ZodType<NotificationFeedItemDtoProviderId, z.ZodTypeDef, unknown>;
180
+ /** @deprecated use `NotificationFeedItemDtoProviderId$outboundSchema` instead. */
181
+ const outboundSchema: z.ZodType<NotificationFeedItemDtoProviderId$Outbound, z.ZodTypeDef, NotificationFeedItemDtoProviderId>;
182
+ /** @deprecated use `NotificationFeedItemDtoProviderId$Outbound` instead. */
183
+ type Outbound = NotificationFeedItemDtoProviderId$Outbound;
184
+ }
185
+ export declare function notificationFeedItemDtoProviderIdToJSON(notificationFeedItemDtoProviderId: NotificationFeedItemDtoProviderId): string;
186
+ export declare function notificationFeedItemDtoProviderIdFromJSON(jsonString: string): SafeParseResult<NotificationFeedItemDtoProviderId, SDKValidationError>;
187
+ /** @internal */
188
+ export declare const Subject$inboundSchema: z.ZodType<Subject, z.ZodTypeDef, unknown>;
189
+ /** @internal */
190
+ export type Subject$Outbound = {};
191
+ /** @internal */
192
+ export declare const Subject$outboundSchema: z.ZodType<Subject$Outbound, z.ZodTypeDef, Subject>;
193
+ /**
194
+ * @internal
195
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
196
+ */
197
+ export declare namespace Subject$ {
198
+ /** @deprecated use `Subject$inboundSchema` instead. */
199
+ const inboundSchema: z.ZodType<Subject, z.ZodTypeDef, unknown>;
200
+ /** @deprecated use `Subject$outboundSchema` instead. */
201
+ const outboundSchema: z.ZodType<Subject$Outbound, z.ZodTypeDef, Subject>;
202
+ /** @deprecated use `Subject$Outbound` instead. */
203
+ type Outbound = Subject$Outbound;
204
+ }
205
+ export declare function subjectToJSON(subject: Subject): string;
206
+ export declare function subjectFromJSON(jsonString: string): SafeParseResult<Subject, SDKValidationError>;
207
+ /** @internal */
208
+ export declare const NotificationFeedItemDtoStatus$inboundSchema: z.ZodNativeEnum<typeof NotificationFeedItemDtoStatus>;
209
+ /** @internal */
210
+ export declare const NotificationFeedItemDtoStatus$outboundSchema: z.ZodNativeEnum<typeof NotificationFeedItemDtoStatus>;
211
+ /**
212
+ * @internal
213
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
214
+ */
215
+ export declare namespace NotificationFeedItemDtoStatus$ {
216
+ /** @deprecated use `NotificationFeedItemDtoStatus$inboundSchema` instead. */
217
+ const inboundSchema: z.ZodNativeEnum<{
218
+ readonly Sent: "sent";
219
+ readonly Error: "error";
220
+ readonly Warning: "warning";
221
+ }>;
222
+ /** @deprecated use `NotificationFeedItemDtoStatus$outboundSchema` instead. */
223
+ const outboundSchema: z.ZodNativeEnum<{
224
+ readonly Sent: "sent";
225
+ readonly Error: "error";
226
+ readonly Warning: "warning";
227
+ }>;
228
+ }
229
+ /** @internal */
230
+ export declare const NotificationFeedItemDto$inboundSchema: z.ZodType<NotificationFeedItemDto, z.ZodTypeDef, unknown>;
231
+ /** @internal */
232
+ export type NotificationFeedItemDto$Outbound = {
233
+ _id: string;
234
+ _templateId: string;
235
+ _environmentId: string;
236
+ _messageTemplateId: string;
237
+ _organizationId: string;
238
+ _notificationId: string;
239
+ _subscriberId: string;
240
+ _feedId: string;
241
+ _jobId: string;
242
+ createdAt?: string | null | undefined;
243
+ updatedAt?: string | null | undefined;
244
+ actor?: ActorFeedItemDto$Outbound | undefined;
245
+ subscriber?: SubscriberFeedResponseDto$Outbound | undefined;
246
+ transactionId: string;
247
+ templateIdentifier?: TemplateIdentifier$Outbound | null | undefined;
248
+ providerId?: NotificationFeedItemDtoProviderId$Outbound | null | undefined;
249
+ content: string;
250
+ subject?: Subject$Outbound | null | undefined;
251
+ channel: string;
252
+ read: boolean;
253
+ seen: boolean;
254
+ deleted: boolean;
255
+ deviceTokens?: Array<string> | null | undefined;
256
+ cta: MessageCTA$Outbound;
257
+ status: string;
258
+ payload?: {
259
+ [k: string]: any;
260
+ } | undefined;
261
+ overrides?: {
262
+ [k: string]: any;
263
+ } | undefined;
264
+ };
265
+ /** @internal */
266
+ export declare const NotificationFeedItemDto$outboundSchema: z.ZodType<NotificationFeedItemDto$Outbound, z.ZodTypeDef, NotificationFeedItemDto>;
267
+ /**
268
+ * @internal
269
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
270
+ */
271
+ export declare namespace NotificationFeedItemDto$ {
272
+ /** @deprecated use `NotificationFeedItemDto$inboundSchema` instead. */
273
+ const inboundSchema: z.ZodType<NotificationFeedItemDto, z.ZodTypeDef, unknown>;
274
+ /** @deprecated use `NotificationFeedItemDto$outboundSchema` instead. */
275
+ const outboundSchema: z.ZodType<NotificationFeedItemDto$Outbound, z.ZodTypeDef, NotificationFeedItemDto>;
276
+ /** @deprecated use `NotificationFeedItemDto$Outbound` instead. */
277
+ type Outbound = NotificationFeedItemDto$Outbound;
278
+ }
279
+ export declare function notificationFeedItemDtoToJSON(notificationFeedItemDto: NotificationFeedItemDto): string;
280
+ export declare function notificationFeedItemDtoFromJSON(jsonString: string): SafeParseResult<NotificationFeedItemDto, SDKValidationError>;
281
+ //# sourceMappingURL=notificationfeeditemdto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notificationfeeditemdto.d.ts","sourceRoot":"","sources":["../../src/models/components/notificationfeeditemdto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,eAAe,EAGhB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,UAAU,EAEV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,yBAAyB,EAEzB,kCAAkC,EAEnC,MAAM,gCAAgC,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAEpC;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG,EAAE,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,EAAE,CAAC;AAEzB;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;CAIhC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,UAAU,CACpD,OAAO,6BAA6B,CACrC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAE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AO,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IAC3C,SAAS,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;CAC9C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,uBAAuB,CA6CvB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,wBAAwB,CAAC;IACxC,uEAAuE;IAChE,MAAM,aAAa,2DAAwC,CAAC;IACnE,wEAAwE;IACjE,MAAM,cAAc,oFAAyC,CAAC;IACrE,kEAAkE;IAClE,KAAY,QAAQ,GAAG,gCAAgC,CAAC;CACzD;AAED,wBAAgB,6BAA6B,CAC3C,uBAAuB,EAAE,uBAAuB,GAC/C,MAAM,CAIR;AAED,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D"}
@@ -0,0 +1,233 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.notificationFeedItemDtoFromJSON = exports.notificationFeedItemDtoToJSON = exports.NotificationFeedItemDto$ = exports.NotificationFeedItemDto$outboundSchema = exports.NotificationFeedItemDto$inboundSchema = exports.NotificationFeedItemDtoStatus$ = exports.NotificationFeedItemDtoStatus$outboundSchema = exports.NotificationFeedItemDtoStatus$inboundSchema = exports.subjectFromJSON = exports.subjectToJSON = exports.Subject$ = exports.Subject$outboundSchema = exports.Subject$inboundSchema = exports.notificationFeedItemDtoProviderIdFromJSON = exports.notificationFeedItemDtoProviderIdToJSON = exports.NotificationFeedItemDtoProviderId$ = exports.NotificationFeedItemDtoProviderId$outboundSchema = exports.NotificationFeedItemDtoProviderId$inboundSchema = exports.templateIdentifierFromJSON = exports.templateIdentifierToJSON = exports.TemplateIdentifier$ = exports.TemplateIdentifier$outboundSchema = exports.TemplateIdentifier$inboundSchema = exports.NotificationFeedItemDtoStatus = void 0;
30
+ const z = __importStar(require("zod"));
31
+ const primitives_js_1 = require("../../lib/primitives.js");
32
+ const schemas_js_1 = require("../../lib/schemas.js");
33
+ const actorfeeditemdto_js_1 = require("./actorfeeditemdto.js");
34
+ const channeltypeenum_js_1 = require("./channeltypeenum.js");
35
+ const messagecta_js_1 = require("./messagecta.js");
36
+ const subscriberfeedresponsedto_js_1 = require("./subscriberfeedresponsedto.js");
37
+ /**
38
+ * Current status of the notification.
39
+ */
40
+ exports.NotificationFeedItemDtoStatus = {
41
+ Sent: "sent",
42
+ Error: "error",
43
+ Warning: "warning",
44
+ };
45
+ /** @internal */
46
+ exports.TemplateIdentifier$inboundSchema = z.object({});
47
+ /** @internal */
48
+ exports.TemplateIdentifier$outboundSchema = z.object({});
49
+ /**
50
+ * @internal
51
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
52
+ */
53
+ var TemplateIdentifier$;
54
+ (function (TemplateIdentifier$) {
55
+ /** @deprecated use `TemplateIdentifier$inboundSchema` instead. */
56
+ TemplateIdentifier$.inboundSchema = exports.TemplateIdentifier$inboundSchema;
57
+ /** @deprecated use `TemplateIdentifier$outboundSchema` instead. */
58
+ TemplateIdentifier$.outboundSchema = exports.TemplateIdentifier$outboundSchema;
59
+ })(TemplateIdentifier$ || (exports.TemplateIdentifier$ = TemplateIdentifier$ = {}));
60
+ function templateIdentifierToJSON(templateIdentifier) {
61
+ return JSON.stringify(exports.TemplateIdentifier$outboundSchema.parse(templateIdentifier));
62
+ }
63
+ exports.templateIdentifierToJSON = templateIdentifierToJSON;
64
+ function templateIdentifierFromJSON(jsonString) {
65
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TemplateIdentifier$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TemplateIdentifier' from JSON`);
66
+ }
67
+ exports.templateIdentifierFromJSON = templateIdentifierFromJSON;
68
+ /** @internal */
69
+ exports.NotificationFeedItemDtoProviderId$inboundSchema = z.object({});
70
+ /** @internal */
71
+ exports.NotificationFeedItemDtoProviderId$outboundSchema = z.object({});
72
+ /**
73
+ * @internal
74
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
75
+ */
76
+ var NotificationFeedItemDtoProviderId$;
77
+ (function (NotificationFeedItemDtoProviderId$) {
78
+ /** @deprecated use `NotificationFeedItemDtoProviderId$inboundSchema` instead. */
79
+ NotificationFeedItemDtoProviderId$.inboundSchema = exports.NotificationFeedItemDtoProviderId$inboundSchema;
80
+ /** @deprecated use `NotificationFeedItemDtoProviderId$outboundSchema` instead. */
81
+ NotificationFeedItemDtoProviderId$.outboundSchema = exports.NotificationFeedItemDtoProviderId$outboundSchema;
82
+ })(NotificationFeedItemDtoProviderId$ || (exports.NotificationFeedItemDtoProviderId$ = NotificationFeedItemDtoProviderId$ = {}));
83
+ function notificationFeedItemDtoProviderIdToJSON(notificationFeedItemDtoProviderId) {
84
+ return JSON.stringify(exports.NotificationFeedItemDtoProviderId$outboundSchema.parse(notificationFeedItemDtoProviderId));
85
+ }
86
+ exports.notificationFeedItemDtoProviderIdToJSON = notificationFeedItemDtoProviderIdToJSON;
87
+ function notificationFeedItemDtoProviderIdFromJSON(jsonString) {
88
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.NotificationFeedItemDtoProviderId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NotificationFeedItemDtoProviderId' from JSON`);
89
+ }
90
+ exports.notificationFeedItemDtoProviderIdFromJSON = notificationFeedItemDtoProviderIdFromJSON;
91
+ /** @internal */
92
+ exports.Subject$inboundSchema = z.object({});
93
+ /** @internal */
94
+ exports.Subject$outboundSchema = z.object({});
95
+ /**
96
+ * @internal
97
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
98
+ */
99
+ var Subject$;
100
+ (function (Subject$) {
101
+ /** @deprecated use `Subject$inboundSchema` instead. */
102
+ Subject$.inboundSchema = exports.Subject$inboundSchema;
103
+ /** @deprecated use `Subject$outboundSchema` instead. */
104
+ Subject$.outboundSchema = exports.Subject$outboundSchema;
105
+ })(Subject$ || (exports.Subject$ = Subject$ = {}));
106
+ function subjectToJSON(subject) {
107
+ return JSON.stringify(exports.Subject$outboundSchema.parse(subject));
108
+ }
109
+ exports.subjectToJSON = subjectToJSON;
110
+ function subjectFromJSON(jsonString) {
111
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Subject$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Subject' from JSON`);
112
+ }
113
+ exports.subjectFromJSON = subjectFromJSON;
114
+ /** @internal */
115
+ exports.NotificationFeedItemDtoStatus$inboundSchema = z.nativeEnum(exports.NotificationFeedItemDtoStatus);
116
+ /** @internal */
117
+ exports.NotificationFeedItemDtoStatus$outboundSchema = exports.NotificationFeedItemDtoStatus$inboundSchema;
118
+ /**
119
+ * @internal
120
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
121
+ */
122
+ var NotificationFeedItemDtoStatus$;
123
+ (function (NotificationFeedItemDtoStatus$) {
124
+ /** @deprecated use `NotificationFeedItemDtoStatus$inboundSchema` instead. */
125
+ NotificationFeedItemDtoStatus$.inboundSchema = exports.NotificationFeedItemDtoStatus$inboundSchema;
126
+ /** @deprecated use `NotificationFeedItemDtoStatus$outboundSchema` instead. */
127
+ NotificationFeedItemDtoStatus$.outboundSchema = exports.NotificationFeedItemDtoStatus$outboundSchema;
128
+ })(NotificationFeedItemDtoStatus$ || (exports.NotificationFeedItemDtoStatus$ = NotificationFeedItemDtoStatus$ = {}));
129
+ /** @internal */
130
+ exports.NotificationFeedItemDto$inboundSchema = z.object({
131
+ _id: z.string(),
132
+ _templateId: z.string(),
133
+ _environmentId: z.string(),
134
+ _messageTemplateId: z.string(),
135
+ _organizationId: z.string(),
136
+ _notificationId: z.string(),
137
+ _subscriberId: z.string(),
138
+ _feedId: z.string(),
139
+ _jobId: z.string(),
140
+ createdAt: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
141
+ updatedAt: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
142
+ actor: actorfeeditemdto_js_1.ActorFeedItemDto$inboundSchema.optional(),
143
+ subscriber: subscriberfeedresponsedto_js_1.SubscriberFeedResponseDto$inboundSchema.optional(),
144
+ transactionId: z.string(),
145
+ templateIdentifier: z.nullable(z.lazy(() => exports.TemplateIdentifier$inboundSchema))
146
+ .optional(),
147
+ providerId: z.nullable(z.lazy(() => exports.NotificationFeedItemDtoProviderId$inboundSchema)).optional(),
148
+ content: z.string(),
149
+ subject: z.nullable(z.lazy(() => exports.Subject$inboundSchema)).optional(),
150
+ channel: channeltypeenum_js_1.ChannelTypeEnum$inboundSchema,
151
+ read: z.boolean(),
152
+ seen: z.boolean(),
153
+ deleted: z.boolean(),
154
+ deviceTokens: z.nullable(z.array(z.string())).optional(),
155
+ cta: messagecta_js_1.MessageCTA$inboundSchema,
156
+ status: exports.NotificationFeedItemDtoStatus$inboundSchema,
157
+ payload: z.record(z.any()).optional(),
158
+ overrides: z.record(z.any()).optional(),
159
+ }).transform((v) => {
160
+ return (0, primitives_js_1.remap)(v, {
161
+ "_id": "id",
162
+ "_templateId": "templateId",
163
+ "_environmentId": "environmentId",
164
+ "_messageTemplateId": "messageTemplateId",
165
+ "_organizationId": "organizationId",
166
+ "_notificationId": "notificationId",
167
+ "_subscriberId": "subscriberId",
168
+ "_feedId": "feedId",
169
+ "_jobId": "jobId",
170
+ });
171
+ });
172
+ /** @internal */
173
+ exports.NotificationFeedItemDto$outboundSchema = z.object({
174
+ id: z.string(),
175
+ templateId: z.string(),
176
+ environmentId: z.string(),
177
+ messageTemplateId: z.string(),
178
+ organizationId: z.string(),
179
+ notificationId: z.string(),
180
+ subscriberId: z.string(),
181
+ feedId: z.string(),
182
+ jobId: z.string(),
183
+ createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
184
+ updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
185
+ actor: actorfeeditemdto_js_1.ActorFeedItemDto$outboundSchema.optional(),
186
+ subscriber: subscriberfeedresponsedto_js_1.SubscriberFeedResponseDto$outboundSchema.optional(),
187
+ transactionId: z.string(),
188
+ templateIdentifier: z.nullable(z.lazy(() => exports.TemplateIdentifier$outboundSchema)).optional(),
189
+ providerId: z.nullable(z.lazy(() => exports.NotificationFeedItemDtoProviderId$outboundSchema)).optional(),
190
+ content: z.string(),
191
+ subject: z.nullable(z.lazy(() => exports.Subject$outboundSchema)).optional(),
192
+ channel: channeltypeenum_js_1.ChannelTypeEnum$outboundSchema,
193
+ read: z.boolean(),
194
+ seen: z.boolean(),
195
+ deleted: z.boolean(),
196
+ deviceTokens: z.nullable(z.array(z.string())).optional(),
197
+ cta: messagecta_js_1.MessageCTA$outboundSchema,
198
+ status: exports.NotificationFeedItemDtoStatus$outboundSchema,
199
+ payload: z.record(z.any()).optional(),
200
+ overrides: z.record(z.any()).optional(),
201
+ }).transform((v) => {
202
+ return (0, primitives_js_1.remap)(v, {
203
+ id: "_id",
204
+ templateId: "_templateId",
205
+ environmentId: "_environmentId",
206
+ messageTemplateId: "_messageTemplateId",
207
+ organizationId: "_organizationId",
208
+ notificationId: "_notificationId",
209
+ subscriberId: "_subscriberId",
210
+ feedId: "_feedId",
211
+ jobId: "_jobId",
212
+ });
213
+ });
214
+ /**
215
+ * @internal
216
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
217
+ */
218
+ var NotificationFeedItemDto$;
219
+ (function (NotificationFeedItemDto$) {
220
+ /** @deprecated use `NotificationFeedItemDto$inboundSchema` instead. */
221
+ NotificationFeedItemDto$.inboundSchema = exports.NotificationFeedItemDto$inboundSchema;
222
+ /** @deprecated use `NotificationFeedItemDto$outboundSchema` instead. */
223
+ NotificationFeedItemDto$.outboundSchema = exports.NotificationFeedItemDto$outboundSchema;
224
+ })(NotificationFeedItemDto$ || (exports.NotificationFeedItemDto$ = NotificationFeedItemDto$ = {}));
225
+ function notificationFeedItemDtoToJSON(notificationFeedItemDto) {
226
+ return JSON.stringify(exports.NotificationFeedItemDto$outboundSchema.parse(notificationFeedItemDto));
227
+ }
228
+ exports.notificationFeedItemDtoToJSON = notificationFeedItemDtoToJSON;
229
+ function notificationFeedItemDtoFromJSON(jsonString) {
230
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.NotificationFeedItemDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NotificationFeedItemDto' from JSON`);
231
+ }
232
+ exports.notificationFeedItemDtoFromJSON = notificationFeedItemDtoFromJSON;
233
+ //# sourceMappingURL=notificationfeeditemdto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notificationfeeditemdto.js","sourceRoot":"","sources":["../../src/models/components/notificationfee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SAAS;QACjB,KAAK,EAAE,QAAQ;KAChB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,wBAAwB,CAOxC;AAPD,WAAiB,wBAAwB;IACvC,uEAAuE;IAC1D,sCAAa,GAAG,6CAAqC,CAAC;IACnE,wEAAwE;IAC3D,uCAAc,GAAG,8CAAsC,CAAC;AAGvE,CAAC,EAPgB,wBAAwB,wCAAxB,wBAAwB,QAOxC;AAED,SAAgB,6BAA6B,CAC3C,uBAAgD;IAEhD,OAAO,IAAI,CAAC,SAAS,CACnB,8CAAsC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CACtE,CAAC;AACJ,CAAC;AAND,sEAMC;AAED,SAAgB,+BAA+B,CAC7C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6CAAqC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjE,qDAAqD,CACtD,CAAC;AACJ,CAAC;AARD,0EAQC"}
@@ -0,0 +1,52 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ export type SubscriberFeedResponseDto = {
5
+ /**
6
+ * The internal ID generated by Novu for your subscriber. This ID does not match the `subscriberId` used in your queries. Refer to `subscriberId` for that identifier.
7
+ */
8
+ id?: string | undefined;
9
+ /**
10
+ * The first name of the subscriber.
11
+ */
12
+ firstName?: string | undefined;
13
+ /**
14
+ * The last name of the subscriber.
15
+ */
16
+ lastName?: string | undefined;
17
+ /**
18
+ * The URL of the subscriber's avatar image.
19
+ */
20
+ avatar?: string | undefined;
21
+ /**
22
+ * The identifier used to create this subscriber, which typically corresponds to the user ID in your system.
23
+ */
24
+ subscriberId: string;
25
+ };
26
+ /** @internal */
27
+ export declare const SubscriberFeedResponseDto$inboundSchema: z.ZodType<SubscriberFeedResponseDto, z.ZodTypeDef, unknown>;
28
+ /** @internal */
29
+ export type SubscriberFeedResponseDto$Outbound = {
30
+ _id?: string | undefined;
31
+ firstName?: string | undefined;
32
+ lastName?: string | undefined;
33
+ avatar?: string | undefined;
34
+ subscriberId: string;
35
+ };
36
+ /** @internal */
37
+ export declare const SubscriberFeedResponseDto$outboundSchema: z.ZodType<SubscriberFeedResponseDto$Outbound, z.ZodTypeDef, SubscriberFeedResponseDto>;
38
+ /**
39
+ * @internal
40
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
41
+ */
42
+ export declare namespace SubscriberFeedResponseDto$ {
43
+ /** @deprecated use `SubscriberFeedResponseDto$inboundSchema` instead. */
44
+ const inboundSchema: z.ZodType<SubscriberFeedResponseDto, z.ZodTypeDef, unknown>;
45
+ /** @deprecated use `SubscriberFeedResponseDto$outboundSchema` instead. */
46
+ const outboundSchema: z.ZodType<SubscriberFeedResponseDto$Outbound, z.ZodTypeDef, SubscriberFeedResponseDto>;
47
+ /** @deprecated use `SubscriberFeedResponseDto$Outbound` instead. */
48
+ type Outbound = SubscriberFeedResponseDto$Outbound;
49
+ }
50
+ export declare function subscriberFeedResponseDtoToJSON(subscriberFeedResponseDto: SubscriberFeedResponseDto): string;
51
+ export declare function subscriberFeedResponseDtoFromJSON(jsonString: string): SafeParseResult<SubscriberFeedResponseDto, SDKValidationError>;
52
+ //# sourceMappingURL=subscriberfeedresponsedto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriberfeedresponsedto.d.ts","sourceRoot":"","sources":["../../src/models/components/subscriberfeedresponsedto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,EAAE,CAAC,EA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