@novu/api 0.6.1 → 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 +145 -30
- package/bin/mcp-server.js +966 -518
- package/bin/mcp-server.js.map +60 -51
- package/docs/sdks/novu/README.md +142 -24
- package/docs/sdks/subscribers/README.md +113 -0
- package/funcs/subscribersSearch.js +1 -0
- package/funcs/subscribersSearch.js.map +1 -1
- package/funcs/subscribersUpsert.d.ts +18 -0
- package/funcs/subscribersUpsert.d.ts.map +1 -0
- package/funcs/subscribersUpsert.js +148 -0
- package/funcs/subscribersUpsert.js.map +1 -0
- package/hooks/types.d.ts +1 -1
- package/hooks/types.d.ts.map +1 -1
- 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 +4 -3
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/subscribersUpsert.d.ts +11 -0
- package/mcp-server/tools/subscribersUpsert.d.ts.map +1 -0
- package/mcp-server/tools/subscribersUpsert.js +57 -0
- package/mcp-server/tools/subscribersUpsert.js.map +1 -0
- 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 +11 -5
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +11 -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 -23
- 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/updatesubscriberrequestdto.d.ts +72 -0
- package/models/components/updatesubscriberrequestdto.d.ts.map +1 -0
- package/models/components/updatesubscriberrequestdto.js +74 -0
- package/models/components/updatesubscriberrequestdto.js.map +1 -0
- 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/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.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/models/operations/subscriberscontrollersearchsubscribers.d.ts +26 -6
- package/models/operations/subscriberscontrollersearchsubscribers.d.ts.map +1 -1
- package/models/operations/subscriberscontrollersearchsubscribers.js +11 -6
- package/models/operations/subscriberscontrollersearchsubscribers.js.map +1 -1
- package/models/operations/subscribersv1controllerupdatesubscriber.d.ts +68 -0
- package/models/operations/subscribersv1controllerupdatesubscriber.d.ts.map +1 -0
- package/models/operations/subscribersv1controllerupdatesubscriber.js +114 -0
- package/models/operations/subscribersv1controllerupdatesubscriber.js.map +1 -0
- package/package.json +3 -3
- package/sdk/subscribers.d.ts +7 -0
- package/sdk/subscribers.d.ts.map +1 -1
- package/sdk/subscribers.js +10 -0
- package/sdk/subscribers.js.map +1 -1
- package/sources/json-development.json +5818 -3516
- package/src/funcs/subscribersSearch.ts +1 -0
- package/src/funcs/subscribersUpsert.ts +240 -0
- package/src/hooks/types.ts +1 -1
- 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 +5 -3
- package/src/mcp-server/tools/subscribersUpsert.ts +43 -0
- 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 +11 -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/updatesubscriberrequestdto.ts +124 -0
- 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/index.ts +1 -0
- package/src/models/operations/messagescontrollergetmessages.ts +4 -4
- package/src/models/operations/subscriberscontrollersearchsubscribers.ts +34 -12
- package/src/models/operations/subscribersv1controllerupdatesubscriber.ts +191 -0
- package/src/sdk/subscribers.ts +22 -0
- 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 -42
- 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 -81
- package/src/models/components/workflowpreferencedto.ts +0 -108
|
@@ -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.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;AAErE,MAAM,MAAM,oCAAoC,GAAG;IACjD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kDAAkD,EAAE,CAAC,CAAC,OAAO,CACxE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,6CAA6C,GAAG;IAC1D,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mDAAmD,EAAE,CAAC,CAAC,OAAO,CACzE,6CAA6C,EAC7C,CAAC,CAAC,UAAU,EACZ,oCAAoC,CAMpC,CAAC;AAEH;;;GAGG;AACH,yBAAiB,qCAAqC,CAAC;IACrD,oFAAoF;IAC7E,MAAM,aAAa,wEAC0B,CAAC;IACrD,qFAAqF;IAC9E,MAAM,cAAc,8GAC0B,CAAC;IACtD,+EAA+E;IAC/E,KAAY,QAAQ,GAAG,6CAA6C,CAAC;CACtE;AAED,wBAAgB,0CAA0C,CACxD,oCAAoC,EAAE,oCAAoC,GACzE,MAAM,CAMR;AAED,wBAAgB,4CAA4C,CAC1D,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oCAAoC,EAAE,kBAAkB,CAAC,CAO3E"}
|
|
@@ -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,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AAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,IAAI,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,YAAY,EAAE,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,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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,qCAAq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AkB,CAAC,CAMtE"}
|
|
@@ -0,0 +1,68 @@
|
|
|
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.subscriberWorkflowPreferenceDtoFromJSON = exports.subscriberWorkflowPreferenceDtoToJSON = exports.SubscriberWorkflowPreferenceDto$ = exports.SubscriberWorkflowPreferenceDto$outboundSchema = exports.SubscriberWorkflowPreferenceDto$inboundSchema = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
32
|
+
const subscriberpreferencechannels_js_1 = require("./subscriberpreferencechannels.js");
|
|
33
|
+
const subscriberpreferenceoverridedto_js_1 = require("./subscriberpreferenceoverridedto.js");
|
|
34
|
+
const subscriberpreferencesworkflowinfodto_js_1 = require("./subscriberpreferencesworkflowinfodto.js");
|
|
35
|
+
/** @internal */
|
|
36
|
+
exports.SubscriberWorkflowPreferenceDto$inboundSchema = z.object({
|
|
37
|
+
enabled: z.boolean(),
|
|
38
|
+
channels: subscriberpreferencechannels_js_1.SubscriberPreferenceChannels$inboundSchema,
|
|
39
|
+
overrides: z.array(subscriberpreferenceoverridedto_js_1.SubscriberPreferenceOverrideDto$inboundSchema),
|
|
40
|
+
workflow: subscriberpreferencesworkflowinfodto_js_1.SubscriberPreferencesWorkflowInfoDto$inboundSchema,
|
|
41
|
+
});
|
|
42
|
+
/** @internal */
|
|
43
|
+
exports.SubscriberWorkflowPreferenceDto$outboundSchema = z.object({
|
|
44
|
+
enabled: z.boolean(),
|
|
45
|
+
channels: subscriberpreferencechannels_js_1.SubscriberPreferenceChannels$outboundSchema,
|
|
46
|
+
overrides: z.array(subscriberpreferenceoverridedto_js_1.SubscriberPreferenceOverrideDto$outboundSchema),
|
|
47
|
+
workflow: subscriberpreferencesworkflowinfodto_js_1.SubscriberPreferencesWorkflowInfoDto$outboundSchema,
|
|
48
|
+
});
|
|
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 SubscriberWorkflowPreferenceDto$;
|
|
54
|
+
(function (SubscriberWorkflowPreferenceDto$) {
|
|
55
|
+
/** @deprecated use `SubscriberWorkflowPreferenceDto$inboundSchema` instead. */
|
|
56
|
+
SubscriberWorkflowPreferenceDto$.inboundSchema = exports.SubscriberWorkflowPreferenceDto$inboundSchema;
|
|
57
|
+
/** @deprecated use `SubscriberWorkflowPreferenceDto$outboundSchema` instead. */
|
|
58
|
+
SubscriberWorkflowPreferenceDto$.outboundSchema = exports.SubscriberWorkflowPreferenceDto$outboundSchema;
|
|
59
|
+
})(SubscriberWorkflowPreferenceDto$ || (exports.SubscriberWorkflowPreferenceDto$ = SubscriberWorkflowPreferenceDto$ = {}));
|
|
60
|
+
function subscriberWorkflowPreferenceDtoToJSON(subscriberWorkflowPreferenceDto) {
|
|
61
|
+
return JSON.stringify(exports.SubscriberWorkflowPreferenceDto$outboundSchema.parse(subscriberWorkflowPreferenceDto));
|
|
62
|
+
}
|
|
63
|
+
exports.subscriberWorkflowPreferenceDtoToJSON = subscriberWorkflowPreferenceDtoToJSON;
|
|
64
|
+
function subscriberWorkflowPreferenceDtoFromJSON(jsonString) {
|
|
65
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SubscriberWorkflowPreferenceDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SubscriberWorkflowPreferenceDto' from JSON`);
|
|
66
|
+
}
|
|
67
|
+
exports.subscriberWorkflowPreferenceDtoFromJSON = subscriberWorkflowPreferenceDtoFromJSON;
|
|
68
|
+
//# sourceMappingURL=subscriberworkflowpreferencedto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriberworkflowpreferencedto.js","sourceRoot":"","sources":["../../src/models/components/subscriberworkflowpreferencedto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAGjD,uFAK2C;AAC3C,6FAK8C;AAC9C,uGAKmD;AAqBnD,gBAAgB;AACH,QAAA,6CAA6C,GAItD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,QAAQ,EAAE,4EAA0C;IACpD,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,kFAA6C,CAAC;IACjE,QAAQ,EAAE,4FAAkD;CAC7D,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,QAAQ,EAAE,6EAA2C;IACrD,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,mFAA8C,CAAC;IAClE,QAAQ,EAAE,6FAAmD;CAC9D,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"}
|
|
@@ -2,7 +2,7 @@ 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 declare const
|
|
5
|
+
export declare const WeekDays: {
|
|
6
6
|
readonly Monday: "monday";
|
|
7
7
|
readonly Tuesday: "tuesday";
|
|
8
8
|
readonly Wednesday: "wednesday";
|
|
@@ -11,7 +11,7 @@ export declare const TimedConfigWeekDays: {
|
|
|
11
11
|
readonly Saturday: "saturday";
|
|
12
12
|
readonly Sunday: "sunday";
|
|
13
13
|
};
|
|
14
|
-
export type
|
|
14
|
+
export type WeekDays = ClosedEnum<typeof WeekDays>;
|
|
15
15
|
export declare const Ordinal: {
|
|
16
16
|
readonly One: "1";
|
|
17
17
|
readonly Two: "2";
|
|
@@ -41,22 +41,22 @@ export declare const MonthlyType: {
|
|
|
41
41
|
export type MonthlyType = ClosedEnum<typeof MonthlyType>;
|
|
42
42
|
export type TimedConfig = {
|
|
43
43
|
atTime?: string | undefined;
|
|
44
|
-
weekDays?: Array<
|
|
44
|
+
weekDays?: Array<WeekDays> | undefined;
|
|
45
45
|
monthDays?: Array<string> | undefined;
|
|
46
46
|
ordinal?: Ordinal | undefined;
|
|
47
47
|
ordinalValue?: OrdinalValue | undefined;
|
|
48
48
|
monthlyType?: MonthlyType | undefined;
|
|
49
49
|
};
|
|
50
50
|
/** @internal */
|
|
51
|
-
export declare const
|
|
51
|
+
export declare const WeekDays$inboundSchema: z.ZodNativeEnum<typeof WeekDays>;
|
|
52
52
|
/** @internal */
|
|
53
|
-
export declare const
|
|
53
|
+
export declare const WeekDays$outboundSchema: z.ZodNativeEnum<typeof WeekDays>;
|
|
54
54
|
/**
|
|
55
55
|
* @internal
|
|
56
56
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
57
|
*/
|
|
58
|
-
export declare namespace
|
|
59
|
-
/** @deprecated use `
|
|
58
|
+
export declare namespace WeekDays$ {
|
|
59
|
+
/** @deprecated use `WeekDays$inboundSchema` instead. */
|
|
60
60
|
const inboundSchema: z.ZodNativeEnum<{
|
|
61
61
|
readonly Monday: "monday";
|
|
62
62
|
readonly Tuesday: "tuesday";
|
|
@@ -66,7 +66,7 @@ export declare namespace TimedConfigWeekDays$ {
|
|
|
66
66
|
readonly Saturday: "saturday";
|
|
67
67
|
readonly Sunday: "sunday";
|
|
68
68
|
}>;
|
|
69
|
-
/** @deprecated use `
|
|
69
|
+
/** @deprecated use `WeekDays$outboundSchema` instead. */
|
|
70
70
|
const outboundSchema: z.ZodNativeEnum<{
|
|
71
71
|
readonly Monday: "monday";
|
|
72
72
|
readonly Tuesday: "tuesday";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timedconfig.d.ts","sourceRoot":"","sources":["../../src/models/components/timedconfig.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,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"timedconfig.d.ts","sourceRoot":"","sources":["../../src/models/components/timedconfig.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,eAAO,MAAM,QAAQ;;;;;;;;CAQX,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEnD,eAAO,MAAM,OAAO;;;;;;;CAOV,CAAC;AACX,MAAM,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAEjD,eAAO,MAAM,YAAY;;;;;;;;;;;CAWf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3D,eAAO,MAAM,WAAW;;;CAGd,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAEzD,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,QAAQ,CAAC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