@novu/api 0.0.1-alpha.70 → 0.0.1-alpha.76

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 (58) hide show
  1. package/README.md +2 -2
  2. package/docs/sdks/novunotifications/README.md +5 -5
  3. package/funcs/{subscribersNotificationsRetrieve.d.ts → subscribersNotificationsFeed.d.ts} +2 -2
  4. package/funcs/subscribersNotificationsFeed.d.ts.map +1 -0
  5. package/funcs/{subscribersNotificationsRetrieve.js → subscribersNotificationsFeed.js} +4 -4
  6. package/funcs/subscribersNotificationsFeed.js.map +1 -0
  7. package/lib/config.d.ts +2 -2
  8. package/lib/config.js +2 -2
  9. package/models/components/actor.d.ts +62 -0
  10. package/models/components/actor.d.ts.map +1 -0
  11. package/models/components/actor.js +86 -0
  12. package/models/components/actor.js.map +1 -0
  13. package/models/components/actortypeenum.d.ts +40 -0
  14. package/models/components/actortypeenum.d.ts.map +1 -0
  15. package/models/components/actortypeenum.js +55 -0
  16. package/models/components/actortypeenum.js.map +1 -0
  17. package/models/components/feedresponsedto.d.ts +20 -4
  18. package/models/components/feedresponsedto.d.ts.map +1 -1
  19. package/models/components/feedresponsedto.js +5 -4
  20. package/models/components/feedresponsedto.js.map +1 -1
  21. package/models/components/index.d.ts +3 -0
  22. package/models/components/index.d.ts.map +1 -1
  23. package/models/components/index.js +3 -0
  24. package/models/components/index.js.map +1 -1
  25. package/models/components/markmessageactionasseendto.d.ts +15 -15
  26. package/models/components/markmessageactionasseendto.d.ts.map +1 -1
  27. package/models/components/markmessageactionasseendto.js +20 -18
  28. package/models/components/markmessageactionasseendto.js.map +1 -1
  29. package/models/components/messageactionresult.d.ts +15 -15
  30. package/models/components/messageactionresult.d.ts.map +1 -1
  31. package/models/components/messageactionresult.js +18 -18
  32. package/models/components/messageactionresult.js.map +1 -1
  33. package/models/components/notificationdto.d.ts +248 -0
  34. package/models/components/notificationdto.d.ts.map +1 -0
  35. package/models/components/notificationdto.js +187 -0
  36. package/models/components/notificationdto.js.map +1 -0
  37. package/models/components/triggereventrequestdto.d.ts +13 -13
  38. package/models/components/triggereventrequestdto.d.ts.map +1 -1
  39. package/models/components/triggereventrequestdto.js +16 -17
  40. package/models/components/triggereventrequestdto.js.map +1 -1
  41. package/package.json +1 -1
  42. package/sdk/novunotifications.d.ts +1 -1
  43. package/sdk/novunotifications.d.ts.map +1 -1
  44. package/sdk/novunotifications.js +3 -3
  45. package/sdk/novunotifications.js.map +1 -1
  46. package/src/funcs/{subscribersNotificationsRetrieve.ts → subscribersNotificationsFeed.ts} +1 -1
  47. package/src/lib/config.ts +2 -2
  48. package/src/models/components/actor.ts +123 -0
  49. package/src/models/components/actortypeenum.ts +41 -0
  50. package/src/models/components/feedresponsedto.ts +29 -8
  51. package/src/models/components/index.ts +3 -0
  52. package/src/models/components/markmessageactionasseendto.ts +36 -24
  53. package/src/models/components/messageactionresult.ts +24 -31
  54. package/src/models/components/notificationdto.ts +367 -0
  55. package/src/models/components/triggereventrequestdto.ts +31 -20
  56. package/src/sdk/novunotifications.ts +3 -3
  57. package/funcs/subscribersNotificationsRetrieve.d.ts.map +0 -1
  58. package/funcs/subscribersNotificationsRetrieve.js.map +0 -1
@@ -26,7 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.markMessageActionAsSeenDtoFromJSON = exports.markMessageActionAsSeenDtoToJSON = exports.MarkMessageActionAsSeenDto$ = exports.MarkMessageActionAsSeenDto$outboundSchema = exports.MarkMessageActionAsSeenDto$inboundSchema = exports.payloadFromJSON = exports.payloadToJSON = exports.Payload$ = exports.Payload$outboundSchema = exports.Payload$inboundSchema = exports.MarkMessageActionAsSeenDtoStatus$ = exports.MarkMessageActionAsSeenDtoStatus$outboundSchema = exports.MarkMessageActionAsSeenDtoStatus$inboundSchema = exports.MarkMessageActionAsSeenDtoStatus = void 0;
29
+ exports.markMessageActionAsSeenDtoFromJSON = exports.markMessageActionAsSeenDtoToJSON = exports.MarkMessageActionAsSeenDto$ = exports.MarkMessageActionAsSeenDto$outboundSchema = exports.MarkMessageActionAsSeenDto$inboundSchema = exports.markMessageActionAsSeenDtoPayloadFromJSON = exports.markMessageActionAsSeenDtoPayloadToJSON = exports.MarkMessageActionAsSeenDtoPayload$ = exports.MarkMessageActionAsSeenDtoPayload$outboundSchema = exports.MarkMessageActionAsSeenDtoPayload$inboundSchema = exports.MarkMessageActionAsSeenDtoStatus$ = exports.MarkMessageActionAsSeenDtoStatus$outboundSchema = exports.MarkMessageActionAsSeenDtoStatus$inboundSchema = exports.MarkMessageActionAsSeenDtoStatus = void 0;
30
30
  const z = __importStar(require("zod"));
31
31
  const schemas_js_1 = require("../../lib/schemas.js");
32
32
  /**
@@ -52,37 +52,39 @@ var MarkMessageActionAsSeenDtoStatus$;
52
52
  MarkMessageActionAsSeenDtoStatus$.outboundSchema = exports.MarkMessageActionAsSeenDtoStatus$outboundSchema;
53
53
  })(MarkMessageActionAsSeenDtoStatus$ || (exports.MarkMessageActionAsSeenDtoStatus$ = MarkMessageActionAsSeenDtoStatus$ = {}));
54
54
  /** @internal */
55
- exports.Payload$inboundSchema = z.object({});
55
+ exports.MarkMessageActionAsSeenDtoPayload$inboundSchema = z.object({});
56
56
  /** @internal */
57
- exports.Payload$outboundSchema = z.object({});
57
+ exports.MarkMessageActionAsSeenDtoPayload$outboundSchema = z.object({});
58
58
  /**
59
59
  * @internal
60
60
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
61
61
  */
62
- var Payload$;
63
- (function (Payload$) {
64
- /** @deprecated use `Payload$inboundSchema` instead. */
65
- Payload$.inboundSchema = exports.Payload$inboundSchema;
66
- /** @deprecated use `Payload$outboundSchema` instead. */
67
- Payload$.outboundSchema = exports.Payload$outboundSchema;
68
- })(Payload$ || (exports.Payload$ = Payload$ = {}));
69
- function payloadToJSON(payload) {
70
- return JSON.stringify(exports.Payload$outboundSchema.parse(payload));
62
+ var MarkMessageActionAsSeenDtoPayload$;
63
+ (function (MarkMessageActionAsSeenDtoPayload$) {
64
+ /** @deprecated use `MarkMessageActionAsSeenDtoPayload$inboundSchema` instead. */
65
+ MarkMessageActionAsSeenDtoPayload$.inboundSchema = exports.MarkMessageActionAsSeenDtoPayload$inboundSchema;
66
+ /** @deprecated use `MarkMessageActionAsSeenDtoPayload$outboundSchema` instead. */
67
+ MarkMessageActionAsSeenDtoPayload$.outboundSchema = exports.MarkMessageActionAsSeenDtoPayload$outboundSchema;
68
+ })(MarkMessageActionAsSeenDtoPayload$ || (exports.MarkMessageActionAsSeenDtoPayload$ = MarkMessageActionAsSeenDtoPayload$ = {}));
69
+ function markMessageActionAsSeenDtoPayloadToJSON(markMessageActionAsSeenDtoPayload) {
70
+ return JSON.stringify(exports.MarkMessageActionAsSeenDtoPayload$outboundSchema.parse(markMessageActionAsSeenDtoPayload));
71
71
  }
72
- exports.payloadToJSON = payloadToJSON;
73
- function payloadFromJSON(jsonString) {
74
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Payload$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Payload' from JSON`);
72
+ exports.markMessageActionAsSeenDtoPayloadToJSON = markMessageActionAsSeenDtoPayloadToJSON;
73
+ function markMessageActionAsSeenDtoPayloadFromJSON(jsonString) {
74
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.MarkMessageActionAsSeenDtoPayload$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MarkMessageActionAsSeenDtoPayload' from JSON`);
75
75
  }
76
- exports.payloadFromJSON = payloadFromJSON;
76
+ exports.markMessageActionAsSeenDtoPayloadFromJSON = markMessageActionAsSeenDtoPayloadFromJSON;
77
77
  /** @internal */
78
78
  exports.MarkMessageActionAsSeenDto$inboundSchema = z.object({
79
79
  status: exports.MarkMessageActionAsSeenDtoStatus$inboundSchema,
80
- payload: z.lazy(() => exports.Payload$inboundSchema).optional(),
80
+ payload: z.lazy(() => exports.MarkMessageActionAsSeenDtoPayload$inboundSchema)
81
+ .optional(),
81
82
  });
82
83
  /** @internal */
83
84
  exports.MarkMessageActionAsSeenDto$outboundSchema = z.object({
84
85
  status: exports.MarkMessageActionAsSeenDtoStatus$outboundSchema,
85
- payload: z.lazy(() => exports.Payload$outboundSchema).optional(),
86
+ payload: z.lazy(() => exports.MarkMessageActionAsSeenDtoPayload$outboundSchema)
87
+ .optional(),
86
88
  });
87
89
  /**
88
90
  * @internal
@@ -1 +1 @@
1
- {"version":3,"file":"markmessageactionasseendto.js","sourceRoot":"","sources":["../../src/models/components/markmessageactionasseendto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAKjD;;GAEG;AACU,QAAA,gCAAgC,GAAG;IAC9C,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;CACJ,CAAC;AAwBX,gBAAgB;AACH,QAAA,8CAA8C,GAEvD,CAAC,CAAC,UAAU,CAAC,wCAAgC,CAAC,CAAC;AAEnD,gBAAgB;AACH,QAAA,+CAA+C,GAExD,sDAA8C,CAAC;AAEnD;;;GAGG;AACH,IAAiB,iCAAiC,CAKjD;AALD,WAAiB,iCAAiC;IAChD,gFAAgF;IACnE,+CAAa,GAAG,sDAA8C,CAAC;IAC5E,iFAAiF;IACpE,gDAAc,GAAG,uDAA+C,CAAC;AAChF,CAAC,EALgB,iCAAiC,iDAAjC,iCAAiC,QAKjD;AAED,gBAAgB;AACH,QAAA,qBAAqB,GAChC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAKf,gBAAgB;AACH,QAAA,sBAAsB,GAI/B,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEjB;;;GAGG;AACH,IAAiB,QAAQ,CAOxB;AAPD,WAAiB,QAAQ;IACvB,uDAAuD;IAC1C,sBAAa,GAAG,6BAAqB,CAAC;IACnD,wDAAwD;IAC3C,uBAAc,GA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,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gDAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC;AARD,gFAQC"}
1
+ {"version":3,"file":"markmessageactionasseendto.js","sourceRoot":"","sources":["../../src/models/components/markmessageactionasseendto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAKjD;;GAEG;AACU,QAAA,gCAAgC,GAAG;IAC9C,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;CACJ,CAAC;AAwBX,gBAAgB;AACH,QAAA,8CAA8C,GAEvD,CAAC,CAAC,UAAU,CAAC,wCAAgC,CAAC,CAAC;AAEnD,gBAAgB;AACH,QAAA,+CAA+C,GAExD,sDAA8C,CAAC;AAEnD;;;GAGG;AACH,IAAiB,iCAAiC,CAKjD;AALD,WAAiB,iCAAiC;IAChD,gFAAgF;IACnE,+CAAa,GAAG,sDAA8C,CAAC;IAC5E,iFAAiF;IACpE,gDAAc,GAAG,uDAA+C,CAAC;AAChF,CAAC,EALgB,iCAAiC,iDAAjC,iCAAiC,QAKjD;AAED,gBAAgB;AACH,QAAA,+CAA+C,GAIxD,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAKjB,gBAAgB;AACH,QAAA,gDAAgD,GAIzD,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEjB;;;GAGG;AACH,IAAiB,kCAAkC,CAQlD;AARD,WAAiB,kCAAkC;IACjD,iFAAiF;IACpE,gDAAa,GAAG,uDAA+C,CAAC;IAC7E,kFAAkF;IACrE,iDAAc,GACzB,wDAAgD,CAAC;AAGrD,CAAC,EARgB,kCAAkC,kDAAlC,kCAAkC,QAQlD;AAED,SAAgB,uCAAuC,CACrD,iCAAoE;I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AAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC;AARD,gFAQC"}
@@ -2,36 +2,36 @@ import * as z from "zod";
2
2
  import { ClosedEnum } from "../../types/enums.js";
3
3
  import { Result as SafeParseResult } from "../../types/fp.js";
4
4
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
- export type MessageActionResultPayload = {};
5
+ export type Payload = {};
6
6
  export declare const MessageActionResultType: {
7
7
  readonly Primary: "primary";
8
8
  readonly Secondary: "secondary";
9
9
  };
10
10
  export type MessageActionResultType = ClosedEnum<typeof MessageActionResultType>;
11
11
  export type MessageActionResult = {
12
- payload?: MessageActionResultPayload | undefined;
12
+ payload?: Payload | undefined;
13
13
  type?: MessageActionResultType | undefined;
14
14
  };
15
15
  /** @internal */
16
- export declare const MessageActionResultPayload$inboundSchema: z.ZodType<MessageActionResultPayload, z.ZodTypeDef, unknown>;
16
+ export declare const Payload$inboundSchema: z.ZodType<Payload, z.ZodTypeDef, unknown>;
17
17
  /** @internal */
18
- export type MessageActionResultPayload$Outbound = {};
18
+ export type Payload$Outbound = {};
19
19
  /** @internal */
20
- export declare const MessageActionResultPayload$outboundSchema: z.ZodType<MessageActionResultPayload$Outbound, z.ZodTypeDef, MessageActionResultPayload>;
20
+ export declare const Payload$outboundSchema: z.ZodType<Payload$Outbound, z.ZodTypeDef, Payload>;
21
21
  /**
22
22
  * @internal
23
23
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
24
24
  */
25
- export declare namespace MessageActionResultPayload$ {
26
- /** @deprecated use `MessageActionResultPayload$inboundSchema` instead. */
27
- const inboundSchema: z.ZodType<MessageActionResultPayload, z.ZodTypeDef, unknown>;
28
- /** @deprecated use `MessageActionResultPayload$outboundSchema` instead. */
29
- const outboundSchema: z.ZodType<MessageActionResultPayload$Outbound, z.ZodTypeDef, MessageActionResultPayload>;
30
- /** @deprecated use `MessageActionResultPayload$Outbound` instead. */
31
- type Outbound = MessageActionResultPayload$Outbound;
25
+ export declare namespace Payload$ {
26
+ /** @deprecated use `Payload$inboundSchema` instead. */
27
+ const inboundSchema: z.ZodType<Payload, z.ZodTypeDef, unknown>;
28
+ /** @deprecated use `Payload$outboundSchema` instead. */
29
+ const outboundSchema: z.ZodType<Payload$Outbound, z.ZodTypeDef, Payload>;
30
+ /** @deprecated use `Payload$Outbound` instead. */
31
+ type Outbound = Payload$Outbound;
32
32
  }
33
- export declare function messageActionResultPayloadToJSON(messageActionResultPayload: MessageActionResultPayload): string;
34
- export declare function messageActionResultPayloadFromJSON(jsonString: string): SafeParseResult<MessageActionResultPayload, SDKValidationError>;
33
+ export declare function payloadToJSON(payload: Payload): string;
34
+ export declare function payloadFromJSON(jsonString: string): SafeParseResult<Payload, SDKValidationError>;
35
35
  /** @internal */
36
36
  export declare const MessageActionResultType$inboundSchema: z.ZodNativeEnum<typeof MessageActionResultType>;
37
37
  /** @internal */
@@ -56,7 +56,7 @@ export declare namespace MessageActionResultType$ {
56
56
  export declare const MessageActionResult$inboundSchema: z.ZodType<MessageActionResult, z.ZodTypeDef, unknown>;
57
57
  /** @internal */
58
58
  export type MessageActionResult$Outbound = {
59
- payload?: MessageActionResultPayload$Outbound | undefined;
59
+ payload?: Payload$Outbound | undefined;
60
60
  type?: string | undefined;
61
61
  };
62
62
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"messageactionresult.d.ts","sourceRoot":"","sources":["../../src/models/components/messageactionresult.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,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;AAErE,MAAM,MAAM,0BAA0B,GAAG,EAAE,CAAC;AAE5C,eAAO,MAAM,uBAAuB;;;CAG1B,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;MAAyC,CAAC;CACtE;AAED,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,OAAO,CAAC,EAAE,mCAAmC,GAAG,SAAS,CAAC;IAC1D,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAInB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,oBAAoB,CAAC;IACpC,mEAAmE;IAC5D,MAAM,aAAa,uDAAoC,CAAC;IAC/D,oEAAoE;IAC7D,MAAM,cAAc,4EAAqC,CAAC;IACjE,8DAA8D;IAC9D,KAAY,QAAQ,GAAG,4BAA4B,CAAC;CACrD;AAED,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
1
+ {"version":3,"file":"messageactionresult.d.ts","sourceRoot":"","sources":["../../src/models/components/messageactionresult.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,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;AAErE,MAAM,MAAM,OAAO,GAAG,EAAE,CAAC;AAEzB,eAAO,MAAM,uBAAuB;;;CAG1B,CAAC;AACX,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAC9C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CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,OAAO,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACvC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAInB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,oBAAoB,CAAC;IACpC,mEAAmE;IAC5D,MAAM,aAAa,uDAAoC,CAAC;IAC/D,oEAAoE;IAC7D,MAAM,cAAc,4EAAqC,CAAC;IACjE,8DAA8D;IAC9D,KAAY,QAAQ,GAAG,4BAA4B,CAAC;CACrD;AAED,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
@@ -26,7 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.messageActionResultFromJSON = exports.messageActionResultToJSON = exports.MessageActionResult$ = exports.MessageActionResult$outboundSchema = exports.MessageActionResult$inboundSchema = exports.MessageActionResultType$ = exports.MessageActionResultType$outboundSchema = exports.MessageActionResultType$inboundSchema = exports.messageActionResultPayloadFromJSON = exports.messageActionResultPayloadToJSON = exports.MessageActionResultPayload$ = exports.MessageActionResultPayload$outboundSchema = exports.MessageActionResultPayload$inboundSchema = exports.MessageActionResultType = void 0;
29
+ exports.messageActionResultFromJSON = exports.messageActionResultToJSON = exports.MessageActionResult$ = exports.MessageActionResult$outboundSchema = exports.MessageActionResult$inboundSchema = exports.MessageActionResultType$ = exports.MessageActionResultType$outboundSchema = exports.MessageActionResultType$inboundSchema = exports.payloadFromJSON = exports.payloadToJSON = exports.Payload$ = exports.Payload$outboundSchema = exports.Payload$inboundSchema = exports.MessageActionResultType = void 0;
30
30
  const z = __importStar(require("zod"));
31
31
  const schemas_js_1 = require("../../lib/schemas.js");
32
32
  exports.MessageActionResultType = {
@@ -34,28 +34,28 @@ exports.MessageActionResultType = {
34
34
  Secondary: "secondary",
35
35
  };
36
36
  /** @internal */
37
- exports.MessageActionResultPayload$inboundSchema = z.object({});
37
+ exports.Payload$inboundSchema = z.object({});
38
38
  /** @internal */
39
- exports.MessageActionResultPayload$outboundSchema = z.object({});
39
+ exports.Payload$outboundSchema = z.object({});
40
40
  /**
41
41
  * @internal
42
42
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
43
43
  */
44
- var MessageActionResultPayload$;
45
- (function (MessageActionResultPayload$) {
46
- /** @deprecated use `MessageActionResultPayload$inboundSchema` instead. */
47
- MessageActionResultPayload$.inboundSchema = exports.MessageActionResultPayload$inboundSchema;
48
- /** @deprecated use `MessageActionResultPayload$outboundSchema` instead. */
49
- MessageActionResultPayload$.outboundSchema = exports.MessageActionResultPayload$outboundSchema;
50
- })(MessageActionResultPayload$ || (exports.MessageActionResultPayload$ = MessageActionResultPayload$ = {}));
51
- function messageActionResultPayloadToJSON(messageActionResultPayload) {
52
- return JSON.stringify(exports.MessageActionResultPayload$outboundSchema.parse(messageActionResultPayload));
44
+ var Payload$;
45
+ (function (Payload$) {
46
+ /** @deprecated use `Payload$inboundSchema` instead. */
47
+ Payload$.inboundSchema = exports.Payload$inboundSchema;
48
+ /** @deprecated use `Payload$outboundSchema` instead. */
49
+ Payload$.outboundSchema = exports.Payload$outboundSchema;
50
+ })(Payload$ || (exports.Payload$ = Payload$ = {}));
51
+ function payloadToJSON(payload) {
52
+ return JSON.stringify(exports.Payload$outboundSchema.parse(payload));
53
53
  }
54
- exports.messageActionResultPayloadToJSON = messageActionResultPayloadToJSON;
55
- function messageActionResultPayloadFromJSON(jsonString) {
56
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.MessageActionResultPayload$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MessageActionResultPayload' from JSON`);
54
+ exports.payloadToJSON = payloadToJSON;
55
+ function payloadFromJSON(jsonString) {
56
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Payload$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Payload' from JSON`);
57
57
  }
58
- exports.messageActionResultPayloadFromJSON = messageActionResultPayloadFromJSON;
58
+ exports.payloadFromJSON = payloadFromJSON;
59
59
  /** @internal */
60
60
  exports.MessageActionResultType$inboundSchema = z.nativeEnum(exports.MessageActionResultType);
61
61
  /** @internal */
@@ -73,12 +73,12 @@ var MessageActionResultType$;
73
73
  })(MessageActionResultType$ || (exports.MessageActionResultType$ = MessageActionResultType$ = {}));
74
74
  /** @internal */
75
75
  exports.MessageActionResult$inboundSchema = z.object({
76
- payload: z.lazy(() => exports.MessageActionResultPayload$inboundSchema).optional(),
76
+ payload: z.lazy(() => exports.Payload$inboundSchema).optional(),
77
77
  type: exports.MessageActionResultType$inboundSchema.optional(),
78
78
  });
79
79
  /** @internal */
80
80
  exports.MessageActionResult$outboundSchema = z.object({
81
- payload: z.lazy(() => exports.MessageActionResultPayload$outboundSchema).optional(),
81
+ payload: z.lazy(() => exports.Payload$outboundSchema).optional(),
82
82
  type: exports.MessageActionResultType$outboundSchema.optional(),
83
83
  });
84
84
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"messageactionresult.js","sourceRoot":"","sources":["../../src/models/components/messageactionresult.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAOpC,QAAA,uBAAuB,GAAG;IACrC,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;CACd,CAAC;AAUX,gBAAgB;AACH,QAAA,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QAAQ,EAAE;IAC1E,IAAI,EAAE,6CAAqC,CAAC,QAAQ,EAAE;CACvD,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,iDAAyC,CAAC,CAAC,QAAQ,EAAE;IAC3E,IAAI,EAAE,8CAAsC,CAAC,QAAQ,EAAE;CACxD,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,oBAAoB,CAOpC;AAPD,WAAiB,oBAAoB;IACnC,mEAAmE;IACtD,kCAAa,GAAG,yCAAiC,CAAC;IAC/D,oEAAoE;IACvD,mCAAc,GAAG,0CAAkC,CAAC;AAGnE,CAAC,EAPgB,oBAAoB,oCAApB,oBAAoB,QAOpC;AAED,SAAgB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC;AAND,8DAMC;AAED,SAAgB,2BAA2B,CACzC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC;AARD,kEAQC"}
1
+ {"version":3,"file":"messageactionresult.js","sourceRoot":"","sources":["../../src/models/components/messageactionresult.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAOpC,QAAA,uBAAuB,GAAG;IACrC,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;CACd,CAAC;AAUX,gBAAgB;AACH,QAAA,qBAAqB,GAChC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAKf,gBAAgB;AACH,QA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,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,8BAAsB,CAAC,CAAC,QAAQ,EAAE;IACxD,IAAI,EAAE,8CAAsC,CAAC,QAAQ,EAAE;CACxD,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,oBAAoB,CAOpC;AAPD,WAAiB,oBAAoB;IACnC,mEAAmE;IACtD,kCAAa,GAAG,yCAAiC,CAAC;IAC/D,oEAAoE;IACvD,mCAAc,GAAG,0CAAkC,CAAC;AAGnE,CAAC,EAPgB,oBAAoB,oCAApB,oBAAoB,QAOpC;AAED,SAAgB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC;AAND,8DAMC;AAED,SAAgB,2BAA2B,CACzC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC;AARD,kEAQC"}
@@ -0,0 +1,248 @@
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 { Actor, Actor$Outbound } from "./actor.js";
6
+ import { MessageCTA, MessageCTA$Outbound } from "./messagecta.js";
7
+ import { SubscriberResponseDto, SubscriberResponseDto$Outbound } from "./subscriberresponsedto.js";
8
+ /**
9
+ * The channel through which the notification is sent.
10
+ */
11
+ export declare const NotificationDtoChannel: {
12
+ readonly InApp: "in_app";
13
+ readonly Email: "email";
14
+ readonly Sms: "sms";
15
+ readonly Chat: "chat";
16
+ readonly Push: "push";
17
+ };
18
+ /**
19
+ * The channel through which the notification is sent.
20
+ */
21
+ export type NotificationDtoChannel = ClosedEnum<typeof NotificationDtoChannel>;
22
+ /**
23
+ * Current status of the notification.
24
+ */
25
+ export declare const NotificationDtoStatus: {
26
+ readonly Sent: "sent";
27
+ readonly Error: "error";
28
+ readonly Warning: "warning";
29
+ };
30
+ /**
31
+ * Current status of the notification.
32
+ */
33
+ export type NotificationDtoStatus = ClosedEnum<typeof NotificationDtoStatus>;
34
+ export type NotificationDto = {
35
+ /**
36
+ * Unique identifier for the notification.
37
+ */
38
+ id: string;
39
+ /**
40
+ * Identifier for the template used to generate the notification.
41
+ */
42
+ templateId: string;
43
+ /**
44
+ * Identifier for the environment where the notification is sent.
45
+ */
46
+ environmentId: string;
47
+ /**
48
+ * Identifier for the message template used.
49
+ */
50
+ messageTemplateId: string;
51
+ /**
52
+ * Identifier for the organization sending the notification.
53
+ */
54
+ organizationId: string;
55
+ /**
56
+ * Unique identifier for the notification instance.
57
+ */
58
+ notificationId: string;
59
+ /**
60
+ * Unique identifier for the subscriber receiving the notification.
61
+ */
62
+ subscriberId: string;
63
+ /**
64
+ * Identifier for the feed associated with the notification.
65
+ */
66
+ feedId: string;
67
+ /**
68
+ * Identifier for the job that triggered the notification.
69
+ */
70
+ jobId: string;
71
+ /**
72
+ * Timestamp indicating when the notification was created.
73
+ */
74
+ createdAt?: Date | null | undefined;
75
+ /**
76
+ * Timestamp indicating when the notification was last updated.
77
+ */
78
+ updatedAt?: Date | null | undefined;
79
+ /**
80
+ * Actor details related to the notification, if applicable.
81
+ */
82
+ actor?: Actor | undefined;
83
+ /**
84
+ * Subscriber details associated with this notification.
85
+ */
86
+ subscriber?: SubscriberResponseDto | undefined;
87
+ /**
88
+ * Unique identifier for the transaction associated with the notification.
89
+ */
90
+ transactionId: string;
91
+ /**
92
+ * Identifier for the template used, if applicable.
93
+ */
94
+ templateIdentifier?: string | null | undefined;
95
+ /**
96
+ * Identifier for the provider that sends the notification.
97
+ */
98
+ providerId?: string | null | undefined;
99
+ /**
100
+ * The main content of the notification.
101
+ */
102
+ content: string;
103
+ /**
104
+ * The subject line for email notifications, if applicable.
105
+ */
106
+ subject?: string | null | undefined;
107
+ /**
108
+ * The channel through which the notification is sent.
109
+ */
110
+ channel: NotificationDtoChannel;
111
+ /**
112
+ * Indicates whether the notification has been read by the subscriber.
113
+ */
114
+ read: boolean;
115
+ /**
116
+ * Indicates whether the notification has been seen by the subscriber.
117
+ */
118
+ seen: boolean;
119
+ /**
120
+ * Indicates whether the notification has been deleted.
121
+ */
122
+ deleted: boolean;
123
+ /**
124
+ * Device tokens for push notifications, if applicable.
125
+ */
126
+ deviceTokens?: Array<string> | null | undefined;
127
+ /**
128
+ * Call-to-action information associated with the notification.
129
+ */
130
+ cta: MessageCTA;
131
+ /**
132
+ * Current status of the notification.
133
+ */
134
+ status: NotificationDtoStatus;
135
+ /**
136
+ * The payload that was used to send the notification trigger.
137
+ */
138
+ payload?: {
139
+ [k: string]: any;
140
+ } | undefined;
141
+ /**
142
+ * Provider-specific overrides used when triggering the notification.
143
+ */
144
+ overrides?: {
145
+ [k: string]: any;
146
+ } | undefined;
147
+ };
148
+ /** @internal */
149
+ export declare const NotificationDtoChannel$inboundSchema: z.ZodNativeEnum<typeof NotificationDtoChannel>;
150
+ /** @internal */
151
+ export declare const NotificationDtoChannel$outboundSchema: z.ZodNativeEnum<typeof NotificationDtoChannel>;
152
+ /**
153
+ * @internal
154
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
155
+ */
156
+ export declare namespace NotificationDtoChannel$ {
157
+ /** @deprecated use `NotificationDtoChannel$inboundSchema` instead. */
158
+ const inboundSchema: z.ZodNativeEnum<{
159
+ readonly InApp: "in_app";
160
+ readonly Email: "email";
161
+ readonly Sms: "sms";
162
+ readonly Chat: "chat";
163
+ readonly Push: "push";
164
+ }>;
165
+ /** @deprecated use `NotificationDtoChannel$outboundSchema` instead. */
166
+ const outboundSchema: z.ZodNativeEnum<{
167
+ readonly InApp: "in_app";
168
+ readonly Email: "email";
169
+ readonly Sms: "sms";
170
+ readonly Chat: "chat";
171
+ readonly Push: "push";
172
+ }>;
173
+ }
174
+ /** @internal */
175
+ export declare const NotificationDtoStatus$inboundSchema: z.ZodNativeEnum<typeof NotificationDtoStatus>;
176
+ /** @internal */
177
+ export declare const NotificationDtoStatus$outboundSchema: z.ZodNativeEnum<typeof NotificationDtoStatus>;
178
+ /**
179
+ * @internal
180
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
181
+ */
182
+ export declare namespace NotificationDtoStatus$ {
183
+ /** @deprecated use `NotificationDtoStatus$inboundSchema` instead. */
184
+ const inboundSchema: z.ZodNativeEnum<{
185
+ readonly Sent: "sent";
186
+ readonly Error: "error";
187
+ readonly Warning: "warning";
188
+ }>;
189
+ /** @deprecated use `NotificationDtoStatus$outboundSchema` instead. */
190
+ const outboundSchema: z.ZodNativeEnum<{
191
+ readonly Sent: "sent";
192
+ readonly Error: "error";
193
+ readonly Warning: "warning";
194
+ }>;
195
+ }
196
+ /** @internal */
197
+ export declare const NotificationDto$inboundSchema: z.ZodType<NotificationDto, z.ZodTypeDef, unknown>;
198
+ /** @internal */
199
+ export type NotificationDto$Outbound = {
200
+ _id: string;
201
+ _templateId: string;
202
+ _environmentId: string;
203
+ _messageTemplateId: string;
204
+ _organizationId: string;
205
+ _notificationId: string;
206
+ _subscriberId: string;
207
+ _feedId: string;
208
+ _jobId: string;
209
+ createdAt?: string | null | undefined;
210
+ updatedAt?: string | null | undefined;
211
+ actor?: Actor$Outbound | undefined;
212
+ subscriber?: SubscriberResponseDto$Outbound | undefined;
213
+ transactionId: string;
214
+ templateIdentifier?: string | null | undefined;
215
+ providerId?: string | null | undefined;
216
+ content: string;
217
+ subject?: string | null | undefined;
218
+ channel: string;
219
+ read: boolean;
220
+ seen: boolean;
221
+ deleted: boolean;
222
+ deviceTokens?: Array<string> | null | undefined;
223
+ cta: MessageCTA$Outbound;
224
+ status: string;
225
+ payload?: {
226
+ [k: string]: any;
227
+ } | undefined;
228
+ overrides?: {
229
+ [k: string]: any;
230
+ } | undefined;
231
+ };
232
+ /** @internal */
233
+ export declare const NotificationDto$outboundSchema: z.ZodType<NotificationDto$Outbound, z.ZodTypeDef, NotificationDto>;
234
+ /**
235
+ * @internal
236
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
237
+ */
238
+ export declare namespace NotificationDto$ {
239
+ /** @deprecated use `NotificationDto$inboundSchema` instead. */
240
+ const inboundSchema: z.ZodType<NotificationDto, z.ZodTypeDef, unknown>;
241
+ /** @deprecated use `NotificationDto$outboundSchema` instead. */
242
+ const outboundSchema: z.ZodType<NotificationDto$Outbound, z.ZodTypeDef, NotificationDto>;
243
+ /** @deprecated use `NotificationDto$Outbound` instead. */
244
+ type Outbound = NotificationDto$Outbound;
245
+ }
246
+ export declare function notificationDtoToJSON(notificationDto: NotificationDto): string;
247
+ export declare function notificationDtoFromJSON(jsonString: string): SafeParseResult<NotificationDto, SDKValidationError>;
248
+ //# sourceMappingURL=notificationdto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notificationdto.d.ts","sourceRoot":"","sources":["../../src/models/components/notificationdto.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,KAAK,EAEL,cAAc,EAEf,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,UAAU,EAEV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,qBAAqB,EAErB,8BAA8B,EAE/B,MAAM,4BAA4B,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;CAMzB,CAA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