@novu/api 0.6.2 → 0.7.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.
- package/FUNCTIONS.md +12 -3
- package/README.md +143 -30
- package/bin/mcp-server.js +644 -433
- package/bin/mcp-server.js.map +53 -48
- package/docs/sdks/novu/README.md +142 -24
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/config.js.map +1 -1
- package/lib/matchers.d.ts +3 -1
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +13 -1
- package/lib/matchers.js.map +1 -1
- package/lib/sdks.d.ts +3 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +13 -13
- package/lib/sdks.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/prompts.d.ts.map +1 -1
- package/mcp-server/prompts.js +5 -1
- package/mcp-server/prompts.js.map +1 -1
- package/mcp-server/resources.d.ts.map +1 -1
- package/mcp-server/resources.js +10 -2
- package/mcp-server/resources.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +2 -3
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools.d.ts.map +1 -1
- package/mcp-server/tools.js +4 -3
- package/mcp-server/tools.js.map +1 -1
- package/models/components/activitynotificationjobresponsedto.d.ts +15 -15
- package/models/components/activitynotificationjobresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationjobresponsedto.js +19 -18
- package/models/components/activitynotificationjobresponsedto.js.map +1 -1
- package/models/components/activitynotificationstepresponsedto.d.ts +15 -15
- package/models/components/activitynotificationstepresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationstepresponsedto.js +18 -18
- package/models/components/activitynotificationstepresponsedto.js.map +1 -1
- package/models/components/channelsettingsdto.d.ts +2 -78
- package/models/components/channelsettingsdto.d.ts.map +1 -1
- package/models/components/channelsettingsdto.js +4 -41
- package/models/components/channelsettingsdto.js.map +1 -1
- package/models/components/chatorpushproviderenum.d.ts +79 -0
- package/models/components/chatorpushproviderenum.d.ts.map +1 -0
- package/models/components/chatorpushproviderenum.js +68 -0
- package/models/components/chatorpushproviderenum.js.map +1 -0
- package/models/components/constraintvalidation.d.ts +115 -0
- package/models/components/constraintvalidation.d.ts.map +1 -0
- package/models/components/constraintvalidation.js +157 -0
- package/models/components/constraintvalidation.js.map +1 -0
- package/models/components/digestmetadatadto.d.ts +8 -8
- package/models/components/digestmetadatadto.d.ts.map +1 -1
- package/models/components/digestmetadatadto.js +13 -13
- package/models/components/digestmetadatadto.js.map +1 -1
- package/models/components/digestregularmetadata.d.ts +16 -16
- package/models/components/digestregularmetadata.d.ts.map +1 -1
- package/models/components/digestregularmetadata.js +25 -25
- package/models/components/digestregularmetadata.js.map +1 -1
- package/models/components/digesttimedconfigdto.d.ts +8 -8
- package/models/components/digesttimedconfigdto.d.ts.map +1 -1
- package/models/components/digesttimedconfigdto.js +13 -14
- package/models/components/digesttimedconfigdto.js.map +1 -1
- package/models/components/getsubscriberpreferencesdto.d.ts +6 -6
- package/models/components/getsubscriberpreferencesdto.d.ts.map +1 -1
- package/models/components/getsubscriberpreferencesdto.js +6 -6
- package/models/components/getsubscriberpreferencesdto.js.map +1 -1
- package/models/components/index.d.ts +10 -5
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +10 -5
- package/models/components/index.js.map +1 -1
- package/models/components/integrationresponsedto.d.ts +8 -8
- package/models/components/integrationresponsedto.d.ts.map +1 -1
- package/models/components/integrationresponsedto.js +14 -13
- package/models/components/integrationresponsedto.js.map +1 -1
- package/models/components/messageactionresult.d.ts +15 -15
- package/models/components/messageactionresult.d.ts.map +1 -1
- package/models/components/messageactionresult.js +18 -18
- package/models/components/messageactionresult.js.map +1 -1
- package/models/components/messagecta.d.ts +2 -2
- package/models/components/messagecta.d.ts.map +1 -1
- package/models/components/messagecta.js +2 -2
- package/models/components/messagecta.js.map +1 -1
- package/models/components/messageresponsedto.d.ts +14 -4
- package/models/components/messageresponsedto.d.ts.map +1 -1
- package/models/components/messageresponsedto.js +8 -4
- package/models/components/messageresponsedto.js.map +1 -1
- package/models/components/messagesresponsedto.d.ts +53 -0
- package/models/components/messagesresponsedto.d.ts.map +1 -0
- package/models/components/messagesresponsedto.js +68 -0
- package/models/components/messagesresponsedto.js.map +1 -0
- package/models/components/notificationfeeditemdto.d.ts +0 -5
- package/models/components/notificationfeeditemdto.d.ts.map +1 -1
- package/models/components/notificationfeeditemdto.js +0 -2
- package/models/components/notificationfeeditemdto.js.map +1 -1
- package/models/components/notificationstepdto.d.ts +13 -13
- package/models/components/notificationstepdto.d.ts.map +1 -1
- package/models/components/notificationstepdto.js +16 -16
- package/models/components/notificationstepdto.js.map +1 -1
- package/models/components/notificationtriggerdto.d.ts +8 -8
- package/models/components/notificationtriggerdto.d.ts.map +1 -1
- package/models/components/notificationtriggerdto.js +13 -13
- package/models/components/notificationtriggerdto.js.map +1 -1
- package/models/components/patchsubscriberpreferencesdto.d.ts +1 -1
- package/models/components/preferenceoverridesourceenum.d.ts +37 -0
- package/models/components/preferenceoverridesourceenum.d.ts.map +1 -0
- package/models/components/preferenceoverridesourceenum.js +54 -0
- package/models/components/preferenceoverridesourceenum.js.map +1 -0
- package/models/components/providersidenum.d.ts +3 -0
- package/models/components/providersidenum.d.ts.map +1 -1
- package/models/components/providersidenum.js +1 -0
- package/models/components/providersidenum.js.map +1 -1
- package/models/components/stepfilterdto.d.ts +8 -8
- package/models/components/stepfilterdto.d.ts.map +1 -1
- package/models/components/stepfilterdto.js +13 -13
- package/models/components/stepfilterdto.js.map +1 -1
- package/models/components/stepsoverrides.d.ts +40 -0
- package/models/components/stepsoverrides.d.ts.map +1 -0
- package/models/components/{workflowinfodto.js → stepsoverrides.js} +19 -25
- package/models/components/stepsoverrides.js.map +1 -0
- package/models/components/steptypeenum.d.ts +2 -2
- package/models/components/steptypeenum.js +1 -1
- package/models/components/subscriberchanneldto.d.ts +8 -8
- package/models/components/subscriberchanneldto.d.ts.map +1 -1
- package/models/components/subscriberchanneldto.js +14 -13
- package/models/components/subscriberchanneldto.js.map +1 -1
- package/models/components/subscriberglobalpreferencedto.d.ts +38 -0
- package/models/components/subscriberglobalpreferencedto.d.ts.map +1 -0
- package/models/components/subscriberglobalpreferencedto.js +62 -0
- package/models/components/subscriberglobalpreferencedto.js.map +1 -0
- package/models/components/subscriberpreferencechannels.d.ts +52 -0
- package/models/components/subscriberpreferencechannels.d.ts.map +1 -0
- package/models/components/{preferencechannels.js → subscriberpreferencechannels.js} +17 -17
- package/models/components/subscriberpreferencechannels.js.map +1 -0
- package/models/components/subscriberpreferenceoverridedto.d.ts +39 -0
- package/models/components/subscriberpreferenceoverridedto.d.ts.map +1 -0
- package/models/components/subscriberpreferenceoverridedto.js +63 -0
- package/models/components/subscriberpreferenceoverridedto.js.map +1 -0
- package/models/components/subscriberpreferencesworkflowinfodto.d.ts +47 -0
- package/models/components/subscriberpreferencesworkflowinfodto.d.ts.map +1 -0
- package/models/components/subscriberpreferencesworkflowinfodto.js +65 -0
- package/models/components/subscriberpreferencesworkflowinfodto.js.map +1 -0
- package/models/components/subscriberresponsedto.d.ts +26 -26
- package/models/components/subscriberresponsedto.d.ts.map +1 -1
- package/models/components/subscriberresponsedto.js +12 -12
- package/models/components/subscriberresponsedto.js.map +1 -1
- package/models/components/subscriberworkflowpreferencedto.d.ts +50 -0
- package/models/components/subscriberworkflowpreferencedto.d.ts.map +1 -0
- package/models/components/subscriberworkflowpreferencedto.js +68 -0
- package/models/components/subscriberworkflowpreferencedto.js.map +1 -0
- package/models/components/timedconfig.d.ts +8 -8
- package/models/components/timedconfig.d.ts.map +1 -1
- package/models/components/timedconfig.js +14 -13
- package/models/components/timedconfig.js.map +1 -1
- package/models/components/triggereventrequestdto.d.ts +102 -10
- package/models/components/triggereventrequestdto.d.ts.map +1 -1
- package/models/components/triggereventrequestdto.js +43 -3
- package/models/components/triggereventrequestdto.js.map +1 -1
- package/models/components/triggereventtoallrequestdto.d.ts +84 -2
- package/models/components/triggereventtoallrequestdto.d.ts.map +1 -1
- package/models/components/triggereventtoallrequestdto.js +28 -2
- package/models/components/triggereventtoallrequestdto.js.map +1 -1
- package/models/components/updatesubscriberchannelrequestdto.d.ts +2 -78
- package/models/components/updatesubscriberchannelrequestdto.d.ts.map +1 -1
- package/models/components/updatesubscriberchannelrequestdto.js +4 -41
- package/models/components/updatesubscriberchannelrequestdto.js.map +1 -1
- package/models/components/workflowresponse.d.ts +3 -3
- package/models/components/workflowresponse.d.ts.map +1 -1
- package/models/components/workflowresponse.js +3 -3
- package/models/components/workflowresponse.js.map +1 -1
- package/models/errors/errordto.d.ts +83 -3
- package/models/errors/errordto.d.ts.map +1 -1
- package/models/errors/errordto.js +99 -3
- package/models/errors/errordto.js.map +1 -1
- package/models/errors/validationerrordto.d.ts +66 -51
- package/models/errors/validationerrordto.d.ts.map +1 -1
- package/models/errors/validationerrordto.js +83 -67
- package/models/errors/validationerrordto.js.map +1 -1
- package/models/operations/messagescontrollergetmessages.d.ts +2 -2
- package/models/operations/messagescontrollergetmessages.d.ts.map +1 -1
- package/models/operations/messagescontrollergetmessages.js +2 -2
- package/models/operations/messagescontrollergetmessages.js.map +1 -1
- package/package.json +3 -3
- package/sources/json-development.json +2037 -305
- package/src/lib/config.ts +4 -4
- package/src/lib/matchers.ts +20 -0
- package/src/lib/sdks.ts +19 -13
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/prompts.ts +8 -1
- package/src/mcp-server/resources.ts +16 -2
- package/src/mcp-server/server.ts +3 -3
- package/src/mcp-server/tools.ts +6 -3
- package/src/models/components/activitynotificationjobresponsedto.ts +48 -26
- package/src/models/components/activitynotificationstepresponsedto.ts +50 -29
- package/src/models/components/channelsettingsdto.ts +8 -50
- package/src/models/components/chatorpushproviderenum.ts +54 -0
- package/src/models/components/constraintvalidation.ts +270 -0
- package/src/models/components/digestmetadatadto.ts +16 -15
- package/src/models/components/digestregularmetadata.ts +30 -36
- package/src/models/components/digesttimedconfigdto.ts +18 -14
- package/src/models/components/getsubscriberpreferencesdto.ts +18 -18
- package/src/models/components/index.ts +10 -5
- package/src/models/components/integrationresponsedto.ts +14 -18
- package/src/models/components/messageactionresult.ts +24 -31
- package/src/models/components/messagecta.ts +4 -4
- package/src/models/components/messageresponsedto.ts +22 -8
- package/src/models/components/messagesresponsedto.ts +103 -0
- package/src/models/components/notificationfeeditemdto.ts +0 -7
- package/src/models/components/notificationstepdto.ts +20 -26
- package/src/models/components/notificationtriggerdto.ts +18 -15
- package/src/models/components/patchsubscriberpreferencesdto.ts +1 -1
- package/src/models/components/preferenceoverridesourceenum.ts +42 -0
- package/src/models/components/providersidenum.ts +1 -0
- package/src/models/components/stepfilterdto.ts +16 -15
- package/src/models/components/stepsoverrides.ts +65 -0
- package/src/models/components/steptypeenum.ts +2 -2
- package/src/models/components/subscriberchanneldto.ts +14 -18
- package/src/models/components/subscriberglobalpreferencedto.ts +84 -0
- package/src/models/components/subscriberpreferencechannels.ts +108 -0
- package/src/models/components/subscriberpreferenceoverridedto.ts +88 -0
- package/src/models/components/subscriberpreferencesworkflowinfodto.ts +95 -0
- package/src/models/components/subscriberresponsedto.ts +34 -34
- package/src/models/components/subscriberworkflowpreferencedto.ts +110 -0
- package/src/models/components/timedconfig.ts +14 -16
- package/src/models/components/triggereventrequestdto.ts +122 -4
- package/src/models/components/triggereventtoallrequestdto.ts +92 -5
- package/src/models/components/updatesubscriberchannelrequestdto.ts +8 -56
- package/src/models/components/workflowresponse.ts +9 -9
- package/src/models/errors/errordto.ts +202 -5
- package/src/models/errors/validationerrordto.ts +178 -110
- package/src/models/operations/messagescontrollergetmessages.ts +4 -4
- package/models/components/globalpreferencedto.d.ts +0 -38
- package/models/components/globalpreferencedto.d.ts.map +0 -1
- package/models/components/globalpreferencedto.js +0 -62
- package/models/components/globalpreferencedto.js.map +0 -1
- package/models/components/overrides.d.ts +0 -112
- package/models/components/overrides.d.ts.map +0 -1
- package/models/components/overrides.js +0 -111
- package/models/components/overrides.js.map +0 -1
- package/models/components/preferencechannels.d.ts +0 -37
- package/models/components/preferencechannels.d.ts.map +0 -1
- package/models/components/preferencechannels.js.map +0 -1
- package/models/components/workflowinfodto.d.ts +0 -47
- package/models/components/workflowinfodto.d.ts.map +0 -1
- package/models/components/workflowinfodto.js.map +0 -1
- package/models/components/workflowpreferencedto.d.ts +0 -50
- package/models/components/workflowpreferencedto.d.ts.map +0 -1
- package/models/components/workflowpreferencedto.js +0 -68
- package/models/components/workflowpreferencedto.js.map +0 -1
- package/src/models/components/globalpreferencedto.ts +0 -82
- package/src/models/components/overrides.ts +0 -139
- package/src/models/components/preferencechannels.ts +0 -91
- package/src/models/components/workflowinfodto.ts +0 -88
- package/src/models/components/workflowpreferencedto.ts +0 -108
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriberpreferencechannels.d.ts","sourceRoot":"","sources":["../../src/models/components/subscriberpreferencechannels.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,4BAA4B,GAAG;IACzC;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,OAAO,CAWP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,qCAAqC,GAAG;IAClD,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,GAAG,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,4BAA4B,CAW5B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,6BAA6B,CAAC;IAC7C,4EAA4E;IACrE,MAAM,aAAa,gEAA6C,CAAC;IACxE,6EAA6E;IACtE,MAAM,cAAc,8FAA8C,CAAC;IAC1E,uEAAuE;IACvE,KAAY,QAAQ,GAAG,qCAAqC,CAAC;CAC9D;AAED,wBAAgB,kCAAkC,CAChD,4BAA4B,EAAE,4BAA4B,GACzD,MAAM,CAMR;AAED,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE"}
|
|
@@ -26,12 +26,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.subscriberPreferenceChannelsFromJSON = exports.subscriberPreferenceChannelsToJSON = exports.SubscriberPreferenceChannels$ = exports.SubscriberPreferenceChannels$outboundSchema = exports.SubscriberPreferenceChannels$inboundSchema = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
32
32
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
33
33
|
/** @internal */
|
|
34
|
-
exports.
|
|
34
|
+
exports.SubscriberPreferenceChannels$inboundSchema = z.object({
|
|
35
35
|
email: z.boolean().optional(),
|
|
36
36
|
sms: z.boolean().optional(),
|
|
37
37
|
in_app: z.boolean().optional(),
|
|
@@ -43,7 +43,7 @@ exports.PreferenceChannels$inboundSchema = z.object({
|
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
45
|
/** @internal */
|
|
46
|
-
exports.
|
|
46
|
+
exports.SubscriberPreferenceChannels$outboundSchema = z.object({
|
|
47
47
|
email: z.boolean().optional(),
|
|
48
48
|
sms: z.boolean().optional(),
|
|
49
49
|
inApp: z.boolean().optional(),
|
|
@@ -58,19 +58,19 @@ exports.PreferenceChannels$outboundSchema = z.object({
|
|
|
58
58
|
* @internal
|
|
59
59
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
60
60
|
*/
|
|
61
|
-
var
|
|
62
|
-
(function (
|
|
63
|
-
/** @deprecated use `
|
|
64
|
-
|
|
65
|
-
/** @deprecated use `
|
|
66
|
-
|
|
67
|
-
})(
|
|
68
|
-
function
|
|
69
|
-
return JSON.stringify(exports.
|
|
61
|
+
var SubscriberPreferenceChannels$;
|
|
62
|
+
(function (SubscriberPreferenceChannels$) {
|
|
63
|
+
/** @deprecated use `SubscriberPreferenceChannels$inboundSchema` instead. */
|
|
64
|
+
SubscriberPreferenceChannels$.inboundSchema = exports.SubscriberPreferenceChannels$inboundSchema;
|
|
65
|
+
/** @deprecated use `SubscriberPreferenceChannels$outboundSchema` instead. */
|
|
66
|
+
SubscriberPreferenceChannels$.outboundSchema = exports.SubscriberPreferenceChannels$outboundSchema;
|
|
67
|
+
})(SubscriberPreferenceChannels$ || (exports.SubscriberPreferenceChannels$ = SubscriberPreferenceChannels$ = {}));
|
|
68
|
+
function subscriberPreferenceChannelsToJSON(subscriberPreferenceChannels) {
|
|
69
|
+
return JSON.stringify(exports.SubscriberPreferenceChannels$outboundSchema.parse(subscriberPreferenceChannels));
|
|
70
70
|
}
|
|
71
|
-
exports.
|
|
72
|
-
function
|
|
73
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
71
|
+
exports.subscriberPreferenceChannelsToJSON = subscriberPreferenceChannelsToJSON;
|
|
72
|
+
function subscriberPreferenceChannelsFromJSON(jsonString) {
|
|
73
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SubscriberPreferenceChannels$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SubscriberPreferenceChannels' from JSON`);
|
|
74
74
|
}
|
|
75
|
-
exports.
|
|
76
|
-
//# sourceMappingURL=
|
|
75
|
+
exports.subscriberPreferenceChannelsFromJSON = subscriberPreferenceChannelsFromJSON;
|
|
76
|
+
//# sourceMappingURL=subscriberpreferencechannels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriberpreferencechannels.js","sourceRoot":"","sources":["../../src/models/components/subscriberpreferencechannels.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AA2BjD,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC7B,GAAG,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC3B,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC9B,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC5B,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,OAAO;KAClB,CAAC,CA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seResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { ChannelTypeEnum } from "./channeltypeenum.js";
|
|
5
|
+
import { PreferenceOverrideSourceEnum } from "./preferenceoverridesourceenum.js";
|
|
6
|
+
export type SubscriberPreferenceOverrideDto = {
|
|
7
|
+
/**
|
|
8
|
+
* Channel type through which the message is sent
|
|
9
|
+
*/
|
|
10
|
+
channel: ChannelTypeEnum;
|
|
11
|
+
/**
|
|
12
|
+
* The source of overrides
|
|
13
|
+
*/
|
|
14
|
+
source: PreferenceOverrideSourceEnum;
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const SubscriberPreferenceOverrideDto$inboundSchema: z.ZodType<SubscriberPreferenceOverrideDto, z.ZodTypeDef, unknown>;
|
|
18
|
+
/** @internal */
|
|
19
|
+
export type SubscriberPreferenceOverrideDto$Outbound = {
|
|
20
|
+
channel: string;
|
|
21
|
+
source: string;
|
|
22
|
+
};
|
|
23
|
+
/** @internal */
|
|
24
|
+
export declare const SubscriberPreferenceOverrideDto$outboundSchema: z.ZodType<SubscriberPreferenceOverrideDto$Outbound, z.ZodTypeDef, SubscriberPreferenceOverrideDto>;
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
28
|
+
*/
|
|
29
|
+
export declare namespace SubscriberPreferenceOverrideDto$ {
|
|
30
|
+
/** @deprecated use `SubscriberPreferenceOverrideDto$inboundSchema` instead. */
|
|
31
|
+
const inboundSchema: z.ZodType<SubscriberPreferenceOverrideDto, z.ZodTypeDef, unknown>;
|
|
32
|
+
/** @deprecated use `SubscriberPreferenceOverrideDto$outboundSchema` instead. */
|
|
33
|
+
const outboundSchema: z.ZodType<SubscriberPreferenceOverrideDto$Outbound, z.ZodTypeDef, SubscriberPreferenceOverrideDto>;
|
|
34
|
+
/** @deprecated use `SubscriberPreferenceOverrideDto$Outbound` instead. */
|
|
35
|
+
type Outbound = SubscriberPreferenceOverrideDto$Outbound;
|
|
36
|
+
}
|
|
37
|
+
export declare function subscriberPreferenceOverrideDtoToJSON(subscriberPreferenceOverrideDto: SubscriberPreferenceOverrideDto): string;
|
|
38
|
+
export declare function subscriberPreferenceOverrideDtoFromJSON(jsonString: string): SafeParseResult<SubscriberPreferenceOverrideDto, SDKValidationError>;
|
|
39
|
+
//# sourceMappingURL=subscriberpreferenceoverridedto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriberpreferenceoverridedto.d.ts","sourceRoot":"","sources":["../../src/models/components/subscriberpreferenceoverridedto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,eAAe,EAGhB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,4BAA4B,EAG7B,MAAM,mCAAmC,CAAC;AAE3C,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;OAEG;IACH,OAAO,EAAE,eAAe,CAAC;IACzB;;OAEG;IACH,MAAM,EAAE,4BAA4B,CAAC;CACtC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,OAAO,CACnE,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,wCAAwC,GAAG;IACrD,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,wCAAwC,EACxC,CAAC,CAAC,UAAU,EACZ,+BAA+B,CAI/B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,gCAAgC,CAAC;IAChD,+EAA+E;IACxE,MAAM,aAAa,mEAAgD,CAAC;IAC3E,gFAAgF;IACzE,MAAM,cAAc,oGAAiD,CAAC;IAC7E,0EAA0E;IAC1E,KAAY,QAAQ,GAAG,wCAAwC,CAAC;CACjE;AAED,wBAAgB,qCAAqC,CACnD,+BAA+B,EAAE,+BAA+B,GAC/D,MAAM,CAMR;AAED,wBAAgB,uCAAuC,CACrD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,+BAA+B,EAAE,kBAAkB,CAAC,CAMtE"}
|
|
@@ -0,0 +1,63 @@
|
|
|
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.subscriberPreferenceOverrideDtoFromJSON = exports.subscriberPreferenceOverrideDtoToJSON = exports.SubscriberPreferenceOverrideDto$ = exports.SubscriberPreferenceOverrideDto$outboundSchema = exports.SubscriberPreferenceOverrideDto$inboundSchema = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
32
|
+
const channeltypeenum_js_1 = require("./channeltypeenum.js");
|
|
33
|
+
const preferenceoverridesourceenum_js_1 = require("./preferenceoverridesourceenum.js");
|
|
34
|
+
/** @internal */
|
|
35
|
+
exports.SubscriberPreferenceOverrideDto$inboundSchema = z.object({
|
|
36
|
+
channel: channeltypeenum_js_1.ChannelTypeEnum$inboundSchema,
|
|
37
|
+
source: preferenceoverridesourceenum_js_1.PreferenceOverrideSourceEnum$inboundSchema,
|
|
38
|
+
});
|
|
39
|
+
/** @internal */
|
|
40
|
+
exports.SubscriberPreferenceOverrideDto$outboundSchema = z.object({
|
|
41
|
+
channel: channeltypeenum_js_1.ChannelTypeEnum$outboundSchema,
|
|
42
|
+
source: preferenceoverridesourceenum_js_1.PreferenceOverrideSourceEnum$outboundSchema,
|
|
43
|
+
});
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
47
|
+
*/
|
|
48
|
+
var SubscriberPreferenceOverrideDto$;
|
|
49
|
+
(function (SubscriberPreferenceOverrideDto$) {
|
|
50
|
+
/** @deprecated use `SubscriberPreferenceOverrideDto$inboundSchema` instead. */
|
|
51
|
+
SubscriberPreferenceOverrideDto$.inboundSchema = exports.SubscriberPreferenceOverrideDto$inboundSchema;
|
|
52
|
+
/** @deprecated use `SubscriberPreferenceOverrideDto$outboundSchema` instead. */
|
|
53
|
+
SubscriberPreferenceOverrideDto$.outboundSchema = exports.SubscriberPreferenceOverrideDto$outboundSchema;
|
|
54
|
+
})(SubscriberPreferenceOverrideDto$ || (exports.SubscriberPreferenceOverrideDto$ = SubscriberPreferenceOverrideDto$ = {}));
|
|
55
|
+
function subscriberPreferenceOverrideDtoToJSON(subscriberPreferenceOverrideDto) {
|
|
56
|
+
return JSON.stringify(exports.SubscriberPreferenceOverrideDto$outboundSchema.parse(subscriberPreferenceOverrideDto));
|
|
57
|
+
}
|
|
58
|
+
exports.subscriberPreferenceOverrideDtoToJSON = subscriberPreferenceOverrideDtoToJSON;
|
|
59
|
+
function subscriberPreferenceOverrideDtoFromJSON(jsonString) {
|
|
60
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SubscriberPreferenceOverrideDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SubscriberPreferenceOverrideDto' from JSON`);
|
|
61
|
+
}
|
|
62
|
+
exports.subscriberPreferenceOverrideDtoFromJSON = subscriberPreferenceOverrideDtoFromJSON;
|
|
63
|
+
//# sourceMappingURL=subscriberpreferenceoverridedto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriberpreferenceoverridedto.js","sourceRoot":"","sources":["../../src/models/components/subscriberpreferenceoverridedto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAGjD,6DAI8B;AAC9B,uFAI2C;AAa3C,gBAAgB;AACH,QAAA,6CAA6C,GAItD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,kDAA6B;IACtC,MAAM,EAAE,4EAA0C;CACnD,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,mDAA8B;IACvC,MAAM,EAAE,6EAA2C;CACpD,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,gCAAgC,CAOhD;AAPD,WAAiB,gCAAgC;IAC/C,+EAA+E;IAClE,8CAAa,GAAG,qDAA6C,CAAC;IAC3E,gFAAgF;IACnE,+CAAc,GAAG,sDAA8C,CAAC;AAG/E,CAAC,EAPgB,gCAAgC,gDAAhC,gCAAgC,QAOhD;AAED,SAAgB,qCAAqC,CACnD,+BAAgE;IAEhE,OAAO,IAAI,CAAC,SAAS,CACnB,sDAA8C,CAAC,KAAK,CAClD,+BAA+B,CAChC,CACF,CAAC;AACJ,CAAC;AARD,sFAQC;AAED,SAAgB,uCAAuC,CACrD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qDAA6C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,6DAA6D,CAC9D,CAAC;AACJ,CAAC;AARD,0FAQC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 SubscriberPreferencesWorkflowInfoDto = {
|
|
5
|
+
/**
|
|
6
|
+
* Workflow slug
|
|
7
|
+
*/
|
|
8
|
+
slug: string;
|
|
9
|
+
/**
|
|
10
|
+
* Unique identifier of the workflow
|
|
11
|
+
*/
|
|
12
|
+
identifier: string;
|
|
13
|
+
/**
|
|
14
|
+
* Display name of the workflow
|
|
15
|
+
*/
|
|
16
|
+
name: string;
|
|
17
|
+
/**
|
|
18
|
+
* last updated date
|
|
19
|
+
*/
|
|
20
|
+
updatedAt?: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const SubscriberPreferencesWorkflowInfoDto$inboundSchema: z.ZodType<SubscriberPreferencesWorkflowInfoDto, z.ZodTypeDef, unknown>;
|
|
24
|
+
/** @internal */
|
|
25
|
+
export type SubscriberPreferencesWorkflowInfoDto$Outbound = {
|
|
26
|
+
slug: string;
|
|
27
|
+
identifier: string;
|
|
28
|
+
name: string;
|
|
29
|
+
updatedAt?: string | undefined;
|
|
30
|
+
};
|
|
31
|
+
/** @internal */
|
|
32
|
+
export declare const SubscriberPreferencesWorkflowInfoDto$outboundSchema: z.ZodType<SubscriberPreferencesWorkflowInfoDto$Outbound, z.ZodTypeDef, SubscriberPreferencesWorkflowInfoDto>;
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
36
|
+
*/
|
|
37
|
+
export declare namespace SubscriberPreferencesWorkflowInfoDto$ {
|
|
38
|
+
/** @deprecated use `SubscriberPreferencesWorkflowInfoDto$inboundSchema` instead. */
|
|
39
|
+
const inboundSchema: z.ZodType<SubscriberPreferencesWorkflowInfoDto, z.ZodTypeDef, unknown>;
|
|
40
|
+
/** @deprecated use `SubscriberPreferencesWorkflowInfoDto$outboundSchema` instead. */
|
|
41
|
+
const outboundSchema: z.ZodType<SubscriberPreferencesWorkflowInfoDto$Outbound, z.ZodTypeDef, SubscriberPreferencesWorkflowInfoDto>;
|
|
42
|
+
/** @deprecated use `SubscriberPreferencesWorkflowInfoDto$Outbound` instead. */
|
|
43
|
+
type Outbound = SubscriberPreferencesWorkflowInfoDto$Outbound;
|
|
44
|
+
}
|
|
45
|
+
export declare function subscriberPreferencesWorkflowInfoDtoToJSON(subscriberPreferencesWorkflowInfoDto: SubscriberPreferencesWorkflowInfoDto): string;
|
|
46
|
+
export declare function subscriberPreferencesWorkflowInfoDtoFromJSON(jsonString: string): SafeParseResult<SubscriberPreferencesWorkflowInfoDto, SDKValidationError>;
|
|
47
|
+
//# sourceMappingURL=subscriberpreferencesworkflowinfodto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriberpreferencesworkflowinfodto.d.ts","sourceRoot":"","sources":["../../src/models/components/subscriberpreferencesworkflowinfodto.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
|
|
@@ -0,0 +1,65 @@
|
|
|
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.subscriberPreferencesWorkflowInfoDtoFromJSON = exports.subscriberPreferencesWorkflowInfoDtoToJSON = exports.SubscriberPreferencesWorkflowInfoDto$ = exports.SubscriberPreferencesWorkflowInfoDto$outboundSchema = exports.SubscriberPreferencesWorkflowInfoDto$inboundSchema = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
32
|
+
/** @internal */
|
|
33
|
+
exports.SubscriberPreferencesWorkflowInfoDto$inboundSchema = z.object({
|
|
34
|
+
slug: z.string(),
|
|
35
|
+
identifier: z.string(),
|
|
36
|
+
name: z.string(),
|
|
37
|
+
updatedAt: z.string().optional(),
|
|
38
|
+
});
|
|
39
|
+
/** @internal */
|
|
40
|
+
exports.SubscriberPreferencesWorkflowInfoDto$outboundSchema = z.object({
|
|
41
|
+
slug: z.string(),
|
|
42
|
+
identifier: z.string(),
|
|
43
|
+
name: z.string(),
|
|
44
|
+
updatedAt: z.string().optional(),
|
|
45
|
+
});
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
+
*/
|
|
50
|
+
var SubscriberPreferencesWorkflowInfoDto$;
|
|
51
|
+
(function (SubscriberPreferencesWorkflowInfoDto$) {
|
|
52
|
+
/** @deprecated use `SubscriberPreferencesWorkflowInfoDto$inboundSchema` instead. */
|
|
53
|
+
SubscriberPreferencesWorkflowInfoDto$.inboundSchema = exports.SubscriberPreferencesWorkflowInfoDto$inboundSchema;
|
|
54
|
+
/** @deprecated use `SubscriberPreferencesWorkflowInfoDto$outboundSchema` instead. */
|
|
55
|
+
SubscriberPreferencesWorkflowInfoDto$.outboundSchema = exports.SubscriberPreferencesWorkflowInfoDto$outboundSchema;
|
|
56
|
+
})(SubscriberPreferencesWorkflowInfoDto$ || (exports.SubscriberPreferencesWorkflowInfoDto$ = SubscriberPreferencesWorkflowInfoDto$ = {}));
|
|
57
|
+
function subscriberPreferencesWorkflowInfoDtoToJSON(subscriberPreferencesWorkflowInfoDto) {
|
|
58
|
+
return JSON.stringify(exports.SubscriberPreferencesWorkflowInfoDto$outboundSchema.parse(subscriberPreferencesWorkflowInfoDto));
|
|
59
|
+
}
|
|
60
|
+
exports.subscriberPreferencesWorkflowInfoDtoToJSON = subscriberPreferencesWorkflowInfoDtoToJSON;
|
|
61
|
+
function subscriberPreferencesWorkflowInfoDtoFromJSON(jsonString) {
|
|
62
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SubscriberPreferencesWorkflowInfoDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SubscriberPreferencesWorkflowInfoDto' from JSON`);
|
|
63
|
+
}
|
|
64
|
+
exports.subscriberPreferencesWorkflowInfoDtoFromJSON = subscriberPreferencesWorkflowInfoDtoFromJSON;
|
|
65
|
+
//# sourceMappingURL=subscriberpreferencesworkflowinfodto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriberpreferencesworkflowinfodto.js","sourceRoot":"","sources":["../../src/models/components/subscriberpreferencesworkflowinfodto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAuBjD,gBAAgB;AACH,QAAA,kDAAkD,GAI3D,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,mDAAmD,GAI5D,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,qCAAqC,CASrD;AATD,WAAiB,qCAAqC;IACpD,oFAAoF;IACvE,mDAAa,GACxB,0DAAkD,CAAC;IACrD,qFAAqF;IACxE,oDAAc,GACzB,2DAAmD,CAAC;AAGxD,CAAC,EATgB,qCAAqC,qDAArC,qCAAqC,QASrD;AAED,SAAgB,0CAA0C,CACxD,oCAA0E;IAE1E,OAAO,IAAI,CAAC,SAAS,CACnB,2DAAmD,CAAC,KAAK,CACvD,oCAAoC,CACrC,CACF,CAAC;AACJ,CAAC;AARD,gGAQC;AAED,SAAgB,4CAA4C,CAC1D,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,0DAAkD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,kEAAkE,CACnE,CAAC;AACJ,CAAC;AATD,oGASC"}
|
|
@@ -18,7 +18,7 @@ export type SubscriberResponseDto = {
|
|
|
18
18
|
/**
|
|
19
19
|
* The email address of the subscriber.
|
|
20
20
|
*/
|
|
21
|
-
email?: string |
|
|
21
|
+
email?: string | undefined;
|
|
22
22
|
/**
|
|
23
23
|
* The phone number of the subscriber.
|
|
24
24
|
*/
|
|
@@ -31,10 +31,6 @@ export type SubscriberResponseDto = {
|
|
|
31
31
|
* The locale setting of the subscriber, indicating their preferred language or region.
|
|
32
32
|
*/
|
|
33
33
|
locale?: string | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* The identifier used to create this subscriber, which typically corresponds to the user ID in your system.
|
|
36
|
-
*/
|
|
37
|
-
subscriberId: string;
|
|
38
34
|
/**
|
|
39
35
|
* An array of channel settings associated with the subscriber.
|
|
40
36
|
*/
|
|
@@ -53,6 +49,24 @@ export type SubscriberResponseDto = {
|
|
|
53
49
|
* The timestamp indicating when the subscriber was last online, in ISO 8601 format.
|
|
54
50
|
*/
|
|
55
51
|
lastOnlineAt?: string | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* The version of the subscriber document.
|
|
54
|
+
*/
|
|
55
|
+
v?: number | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Additional custom data for the subscriber
|
|
58
|
+
*/
|
|
59
|
+
data?: {
|
|
60
|
+
[k: string]: any;
|
|
61
|
+
} | null | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Timezone of the subscriber
|
|
64
|
+
*/
|
|
65
|
+
timezone?: string | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* The identifier used to create this subscriber, which typically corresponds to the user ID in your system.
|
|
68
|
+
*/
|
|
69
|
+
subscriberId: string;
|
|
56
70
|
/**
|
|
57
71
|
* The unique identifier of the organization to which the subscriber belongs.
|
|
58
72
|
*/
|
|
@@ -73,20 +87,6 @@ export type SubscriberResponseDto = {
|
|
|
73
87
|
* The timestamp indicating when the subscriber was last updated, in ISO 8601 format.
|
|
74
88
|
*/
|
|
75
89
|
updatedAt: string;
|
|
76
|
-
/**
|
|
77
|
-
* The version of the subscriber document.
|
|
78
|
-
*/
|
|
79
|
-
v?: number | undefined;
|
|
80
|
-
/**
|
|
81
|
-
* Additional custom data for the subscriber
|
|
82
|
-
*/
|
|
83
|
-
data?: {
|
|
84
|
-
[k: string]: any;
|
|
85
|
-
} | null | undefined;
|
|
86
|
-
/**
|
|
87
|
-
* Timezone of the subscriber
|
|
88
|
-
*/
|
|
89
|
-
timezone?: string | undefined;
|
|
90
90
|
};
|
|
91
91
|
/** @internal */
|
|
92
92
|
export declare const SubscriberResponseDto$inboundSchema: z.ZodType<SubscriberResponseDto, z.ZodTypeDef, unknown>;
|
|
@@ -95,25 +95,25 @@ export type SubscriberResponseDto$Outbound = {
|
|
|
95
95
|
_id?: string | undefined;
|
|
96
96
|
firstName?: string | undefined;
|
|
97
97
|
lastName?: string | undefined;
|
|
98
|
-
email?: string |
|
|
98
|
+
email?: string | undefined;
|
|
99
99
|
phone?: string | undefined;
|
|
100
100
|
avatar?: string | undefined;
|
|
101
101
|
locale?: string | undefined;
|
|
102
|
-
subscriberId: string;
|
|
103
102
|
channels?: Array<ChannelSettingsDto$Outbound> | undefined;
|
|
104
103
|
topics?: Array<string> | undefined;
|
|
105
104
|
isOnline?: boolean | undefined;
|
|
106
105
|
lastOnlineAt?: string | undefined;
|
|
107
|
-
_organizationId: string;
|
|
108
|
-
_environmentId: string;
|
|
109
|
-
deleted: boolean;
|
|
110
|
-
createdAt: string;
|
|
111
|
-
updatedAt: string;
|
|
112
106
|
__v?: number | undefined;
|
|
113
107
|
data?: {
|
|
114
108
|
[k: string]: any;
|
|
115
109
|
} | null | undefined;
|
|
116
110
|
timezone?: string | undefined;
|
|
111
|
+
subscriberId: string;
|
|
112
|
+
_organizationId: string;
|
|
113
|
+
_environmentId: string;
|
|
114
|
+
deleted: boolean;
|
|
115
|
+
createdAt: string;
|
|
116
|
+
updatedAt: string;
|
|
117
117
|
};
|
|
118
118
|
/** @internal */
|
|
119
119
|
export declare const SubscriberResponseDto$outboundSchema: z.ZodType<SubscriberResponseDto$Outbound, z.ZodTypeDef, SubscriberResponseDto>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriberresponsedto.d.ts","sourceRoot":"","sources":["../../src/models/components/subscriberresponsedto.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;AACrE,OAAO,EACL,kBAAkB,EAElB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"subscriberresponsedto.d.ts","sourceRoot":"","sources":["../../src/models/components/subscriberresponsedto.ts"],"names":[],"mappings":"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AAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CA6BrB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,sBAAsB,CAAC;IACtC,qEAAqE;IAC9D,MAAM,aAAa,yDAAsC,CAAC;IACjE,sEAAsE;IAC/D,MAAM,cAAc,gFAAuC,CAAC;IACnE,gEAAgE;IAChE,KAAY,QAAQ,GAAG,8BAA8B,CAAC;CACvD;AAED,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR;AAED,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
|
|
@@ -36,29 +36,29 @@ exports.SubscriberResponseDto$inboundSchema = z.object({
|
|
|
36
36
|
_id: z.string().optional(),
|
|
37
37
|
firstName: z.string().optional(),
|
|
38
38
|
lastName: z.string().optional(),
|
|
39
|
-
email: z.
|
|
39
|
+
email: z.string().optional(),
|
|
40
40
|
phone: z.string().optional(),
|
|
41
41
|
avatar: z.string().optional(),
|
|
42
42
|
locale: z.string().optional(),
|
|
43
|
-
subscriberId: z.string(),
|
|
44
43
|
channels: z.array(channelsettingsdto_js_1.ChannelSettingsDto$inboundSchema).optional(),
|
|
45
44
|
topics: z.array(z.string()).optional(),
|
|
46
45
|
isOnline: z.boolean().optional(),
|
|
47
46
|
lastOnlineAt: z.string().optional(),
|
|
47
|
+
__v: z.number().optional(),
|
|
48
|
+
data: z.nullable(z.record(z.any())).optional(),
|
|
49
|
+
timezone: z.string().optional(),
|
|
50
|
+
subscriberId: z.string(),
|
|
48
51
|
_organizationId: z.string(),
|
|
49
52
|
_environmentId: z.string(),
|
|
50
53
|
deleted: z.boolean(),
|
|
51
54
|
createdAt: z.string(),
|
|
52
55
|
updatedAt: z.string(),
|
|
53
|
-
__v: z.number().optional(),
|
|
54
|
-
data: z.nullable(z.record(z.any())).optional(),
|
|
55
|
-
timezone: z.string().optional(),
|
|
56
56
|
}).transform((v) => {
|
|
57
57
|
return (0, primitives_js_1.remap)(v, {
|
|
58
58
|
"_id": "id",
|
|
59
|
+
"__v": "v",
|
|
59
60
|
"_organizationId": "organizationId",
|
|
60
61
|
"_environmentId": "environmentId",
|
|
61
|
-
"__v": "v",
|
|
62
62
|
});
|
|
63
63
|
});
|
|
64
64
|
/** @internal */
|
|
@@ -66,29 +66,29 @@ exports.SubscriberResponseDto$outboundSchema = z.object({
|
|
|
66
66
|
id: z.string().optional(),
|
|
67
67
|
firstName: z.string().optional(),
|
|
68
68
|
lastName: z.string().optional(),
|
|
69
|
-
email: z.
|
|
69
|
+
email: z.string().optional(),
|
|
70
70
|
phone: z.string().optional(),
|
|
71
71
|
avatar: z.string().optional(),
|
|
72
72
|
locale: z.string().optional(),
|
|
73
|
-
subscriberId: z.string(),
|
|
74
73
|
channels: z.array(channelsettingsdto_js_1.ChannelSettingsDto$outboundSchema).optional(),
|
|
75
74
|
topics: z.array(z.string()).optional(),
|
|
76
75
|
isOnline: z.boolean().optional(),
|
|
77
76
|
lastOnlineAt: z.string().optional(),
|
|
77
|
+
v: z.number().optional(),
|
|
78
|
+
data: z.nullable(z.record(z.any())).optional(),
|
|
79
|
+
timezone: z.string().optional(),
|
|
80
|
+
subscriberId: z.string(),
|
|
78
81
|
organizationId: z.string(),
|
|
79
82
|
environmentId: z.string(),
|
|
80
83
|
deleted: z.boolean(),
|
|
81
84
|
createdAt: z.string(),
|
|
82
85
|
updatedAt: z.string(),
|
|
83
|
-
v: z.number().optional(),
|
|
84
|
-
data: z.nullable(z.record(z.any())).optional(),
|
|
85
|
-
timezone: z.string().optional(),
|
|
86
86
|
}).transform((v) => {
|
|
87
87
|
return (0, primitives_js_1.remap)(v, {
|
|
88
88
|
id: "_id",
|
|
89
|
+
v: "__v",
|
|
89
90
|
organizationId: "_organizationId",
|
|
90
91
|
environmentId: "_environmentId",
|
|
91
|
-
v: "__v",
|
|
92
92
|
});
|
|
93
93
|
});
|
|
94
94
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriberresponsedto.js","sourceRoot":"","sources":["../../src/models/components/subscriberresponsedto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,mEAKiC;AAuFjC,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,KAAK,EAAE,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"subscriberresponsedto.js","sourceRoot":"","sources":["../../src/models/components/subscriberresponsedto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,mEAKiC;AAuFjC,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,KAAK,EAAE,C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CAAC,OAAO,EAAE;IACpB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,EAAE,EAAE,KAAK;QACT,CAAC,EAAE,KAAK;QACR,cAAc,EAAE,iBAAiB;QACjC,aAAa,EAAE,gBAAgB;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACrC,qEAAqE;IACxD,oCAAa,GAAG,2CAAmC,CAAC;IACjE,sEAAsE;IACzD,qCAAc,GAAG,4CAAoC,CAAC;AAGrE,CAAC,EAPgB,sBAAsB,sCAAtB,sBAAsB,QAOtC;AAED,SAAgB,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,4CAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AAND,kEAMC;AAED,SAAgB,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC;AARD,sEAQC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { SubscriberPreferenceChannels, SubscriberPreferenceChannels$Outbound } from "./subscriberpreferencechannels.js";
|
|
5
|
+
import { SubscriberPreferenceOverrideDto, SubscriberPreferenceOverrideDto$Outbound } from "./subscriberpreferenceoverridedto.js";
|
|
6
|
+
import { SubscriberPreferencesWorkflowInfoDto, SubscriberPreferencesWorkflowInfoDto$Outbound } from "./subscriberpreferencesworkflowinfodto.js";
|
|
7
|
+
export type SubscriberWorkflowPreferenceDto = {
|
|
8
|
+
/**
|
|
9
|
+
* Whether notifications are enabled for this workflow
|
|
10
|
+
*/
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Channel-specific preference settings for this workflow
|
|
14
|
+
*/
|
|
15
|
+
channels: SubscriberPreferenceChannels;
|
|
16
|
+
/**
|
|
17
|
+
* List of preference overrides
|
|
18
|
+
*/
|
|
19
|
+
overrides: Array<SubscriberPreferenceOverrideDto>;
|
|
20
|
+
/**
|
|
21
|
+
* Workflow information
|
|
22
|
+
*/
|
|
23
|
+
workflow: SubscriberPreferencesWorkflowInfoDto;
|
|
24
|
+
};
|
|
25
|
+
/** @internal */
|
|
26
|
+
export declare const SubscriberWorkflowPreferenceDto$inboundSchema: z.ZodType<SubscriberWorkflowPreferenceDto, z.ZodTypeDef, unknown>;
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type SubscriberWorkflowPreferenceDto$Outbound = {
|
|
29
|
+
enabled: boolean;
|
|
30
|
+
channels: SubscriberPreferenceChannels$Outbound;
|
|
31
|
+
overrides: Array<SubscriberPreferenceOverrideDto$Outbound>;
|
|
32
|
+
workflow: SubscriberPreferencesWorkflowInfoDto$Outbound;
|
|
33
|
+
};
|
|
34
|
+
/** @internal */
|
|
35
|
+
export declare const SubscriberWorkflowPreferenceDto$outboundSchema: z.ZodType<SubscriberWorkflowPreferenceDto$Outbound, z.ZodTypeDef, SubscriberWorkflowPreferenceDto>;
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
39
|
+
*/
|
|
40
|
+
export declare namespace SubscriberWorkflowPreferenceDto$ {
|
|
41
|
+
/** @deprecated use `SubscriberWorkflowPreferenceDto$inboundSchema` instead. */
|
|
42
|
+
const inboundSchema: z.ZodType<SubscriberWorkflowPreferenceDto, z.ZodTypeDef, unknown>;
|
|
43
|
+
/** @deprecated use `SubscriberWorkflowPreferenceDto$outboundSchema` instead. */
|
|
44
|
+
const outboundSchema: z.ZodType<SubscriberWorkflowPreferenceDto$Outbound, z.ZodTypeDef, SubscriberWorkflowPreferenceDto>;
|
|
45
|
+
/** @deprecated use `SubscriberWorkflowPreferenceDto$Outbound` instead. */
|
|
46
|
+
type Outbound = SubscriberWorkflowPreferenceDto$Outbound;
|
|
47
|
+
}
|
|
48
|
+
export declare function subscriberWorkflowPreferenceDtoToJSON(subscriberWorkflowPreferenceDto: SubscriberWorkflowPreferenceDto): string;
|
|
49
|
+
export declare function subscriberWorkflowPreferenceDtoFromJSON(jsonString: string): SafeParseResult<SubscriberWorkflowPreferenceDto, SDKValidationError>;
|
|
50
|
+
//# sourceMappingURL=subscriberworkflowpreferencedto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriberworkflowpreferencedto.d.ts","sourceRoot":"","sources":["../../src/models/components/subscriberworkflowpreferencedto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,4BAA4B,EAE5B,qCAAqC,EAEtC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,+BAA+B,EAE/B,wCAAwC,EAEzC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,oCAAoC,EAEpC,6CAA6C,EAE9C,MAAM,2CAA2C,CAAC;AAEnD,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,4BAA4B,CAAC;IACvC;;OAEG;IACH,SA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