@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
|
@@ -26,42 +26,42 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.stepFilterDtoFromJSON = exports.stepFilterDtoToJSON = exports.StepFilterDto$ = exports.StepFilterDto$outboundSchema = exports.StepFilterDto$inboundSchema = exports.
|
|
29
|
+
exports.stepFilterDtoFromJSON = exports.stepFilterDtoToJSON = exports.StepFilterDto$ = exports.StepFilterDto$outboundSchema = exports.StepFilterDto$inboundSchema = exports.StepFilterDtoValue$ = exports.StepFilterDtoValue$outboundSchema = exports.StepFilterDtoValue$inboundSchema = exports.StepFilterDtoValue = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
32
32
|
const builderfieldtypeenum_js_1 = require("./builderfieldtypeenum.js");
|
|
33
33
|
const fieldfilterpartdto_js_1 = require("./fieldfilterpartdto.js");
|
|
34
|
-
exports.
|
|
34
|
+
exports.StepFilterDtoValue = {
|
|
35
35
|
And: "AND",
|
|
36
36
|
Or: "OR",
|
|
37
37
|
};
|
|
38
38
|
/** @internal */
|
|
39
|
-
exports.
|
|
39
|
+
exports.StepFilterDtoValue$inboundSchema = z.nativeEnum(exports.StepFilterDtoValue);
|
|
40
40
|
/** @internal */
|
|
41
|
-
exports.
|
|
41
|
+
exports.StepFilterDtoValue$outboundSchema = exports.StepFilterDtoValue$inboundSchema;
|
|
42
42
|
/**
|
|
43
43
|
* @internal
|
|
44
44
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
45
45
|
*/
|
|
46
|
-
var
|
|
47
|
-
(function (
|
|
48
|
-
/** @deprecated use `
|
|
49
|
-
|
|
50
|
-
/** @deprecated use `
|
|
51
|
-
|
|
52
|
-
})(
|
|
46
|
+
var StepFilterDtoValue$;
|
|
47
|
+
(function (StepFilterDtoValue$) {
|
|
48
|
+
/** @deprecated use `StepFilterDtoValue$inboundSchema` instead. */
|
|
49
|
+
StepFilterDtoValue$.inboundSchema = exports.StepFilterDtoValue$inboundSchema;
|
|
50
|
+
/** @deprecated use `StepFilterDtoValue$outboundSchema` instead. */
|
|
51
|
+
StepFilterDtoValue$.outboundSchema = exports.StepFilterDtoValue$outboundSchema;
|
|
52
|
+
})(StepFilterDtoValue$ || (exports.StepFilterDtoValue$ = StepFilterDtoValue$ = {}));
|
|
53
53
|
/** @internal */
|
|
54
54
|
exports.StepFilterDto$inboundSchema = z.object({
|
|
55
55
|
isNegated: z.boolean(),
|
|
56
56
|
type: builderfieldtypeenum_js_1.BuilderFieldTypeEnum$inboundSchema,
|
|
57
|
-
value: exports.
|
|
57
|
+
value: exports.StepFilterDtoValue$inboundSchema,
|
|
58
58
|
children: z.array(fieldfilterpartdto_js_1.FieldFilterPartDto$inboundSchema),
|
|
59
59
|
});
|
|
60
60
|
/** @internal */
|
|
61
61
|
exports.StepFilterDto$outboundSchema = z.object({
|
|
62
62
|
isNegated: z.boolean(),
|
|
63
63
|
type: builderfieldtypeenum_js_1.BuilderFieldTypeEnum$outboundSchema,
|
|
64
|
-
value: exports.
|
|
64
|
+
value: exports.StepFilterDtoValue$outboundSchema,
|
|
65
65
|
children: z.array(fieldfilterpartdto_js_1.FieldFilterPartDto$outboundSchema),
|
|
66
66
|
});
|
|
67
67
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stepfilterdto.js","sourceRoot":"","sources":["../../src/models/components/stepfilterdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAIjD,uEAImC;AACnC,mEAKiC;AAEpB,QAAA,
|
|
1
|
+
{"version":3,"file":"stepfilterdto.js","sourceRoot":"","sources":["../../src/models/components/stepfilterdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAIjD,uEAImC;AACnC,mEAKiC;AAEpB,QAAA,kBAAkB,GAAG;IAChC,GAAG,EAAE,KAAK;IACV,EAAE,EAAE,IAAI;CACA,CAAC;AAUX,gBAAgB;AACH,QAAA,gCAAgC,GAEzC,CAAC,CAAC,UAAU,CAAC,0BAAkB,CAAC,CAAC;AAErC,gBAAgB;AACH,QAAA,iCAAiC,GAE1C,wCAAgC,CAAC;AAErC;;;GAGG;AACH,IAAiB,mBAAmB,CAKnC;AALD,WAAiB,mBAAmB;IAClC,kEAAkE;IACrD,iCAAa,GAAG,wCAAgC,CAAC;IAC9D,mEAAmE;IACtD,kCAAc,GAAG,yCAAiC,CAAC;AAClE,CAAC,EALgB,mBAAmB,mCAAnB,mBAAmB,QAKnC;AAED,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,IAAI,EAAE,4DAAkC;IACxC,KAAK,EAAE,wCAAgC;IACvC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,wDAAgC,CAAC;CACpD,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,IAAI,EAAE,6DAAmC;IACzC,KAAK,EAAE,yCAAiC;IACxC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,yDAAiC,CAAC;CACrD,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,cAAc,CAO9B;AAPD,WAAiB,cAAc;IAC7B,6DAA6D;IAChD,4BAAa,GAAG,mCAA2B,CAAC;IACzD,8DAA8D;IACjD,6BAAc,GAAG,oCAA4B,CAAC;AAG7D,CAAC,EAPgB,cAAc,8BAAd,cAAc,QAO9B;AAED,SAAgB,mBAAmB,CAAC,aAA4B;IAC9D,OAAO,IAAI,CAAC,SAAS,CAAC,oCAA4B,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;AAC3E,CAAC;AAFD,kDAEC;AAED,SAAgB,qBAAqB,CACnC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAA2B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvD,2CAA2C,CAC5C,CAAC;AACJ,CAAC;AARD,sDAQC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 StepsOverrides = {
|
|
5
|
+
/**
|
|
6
|
+
* Passing the provider id and the provider specific configurations
|
|
7
|
+
*/
|
|
8
|
+
providers: {
|
|
9
|
+
[k: string]: {
|
|
10
|
+
[k: string]: any;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const StepsOverrides$inboundSchema: z.ZodType<StepsOverrides, z.ZodTypeDef, unknown>;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type StepsOverrides$Outbound = {
|
|
18
|
+
providers: {
|
|
19
|
+
[k: string]: {
|
|
20
|
+
[k: string]: any;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
/** @internal */
|
|
25
|
+
export declare const StepsOverrides$outboundSchema: z.ZodType<StepsOverrides$Outbound, z.ZodTypeDef, StepsOverrides>;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
29
|
+
*/
|
|
30
|
+
export declare namespace StepsOverrides$ {
|
|
31
|
+
/** @deprecated use `StepsOverrides$inboundSchema` instead. */
|
|
32
|
+
const inboundSchema: z.ZodType<StepsOverrides, z.ZodTypeDef, unknown>;
|
|
33
|
+
/** @deprecated use `StepsOverrides$outboundSchema` instead. */
|
|
34
|
+
const outboundSchema: z.ZodType<StepsOverrides$Outbound, z.ZodTypeDef, StepsOverrides>;
|
|
35
|
+
/** @deprecated use `StepsOverrides$Outbound` instead. */
|
|
36
|
+
type Outbound = StepsOverrides$Outbound;
|
|
37
|
+
}
|
|
38
|
+
export declare function stepsOverridesToJSON(stepsOverrides: StepsOverrides): string;
|
|
39
|
+
export declare function stepsOverridesFromJSON(jsonString: string): SafeParseResult<StepsOverrides, SDKValidationError>;
|
|
40
|
+
//# sourceMappingURL=stepsoverrides.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stepsoverrides.d.ts","sourceRoot":"","sources":["../../src/models/components/stepsoverrides.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,cAAc,GAAG;IAC3B;;OAEG;IACH,SAAS,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG;YAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;SAAE,CAAA;KAAE,CAAC;CAClD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,cAAc,EACd,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,uBAAuB,GAAG;IACpC,SAAS,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG;YAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;SAAE,CAAA;KAAE,CAAC;CAClD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,cAAc,CAGd,CAAC;AAEH;;;GAGG;AACH,yBAAiB,eAAe,CAAC;IAC/B,8DAA8D;IACvD,MAAM,aAAa,kDAA+B,CAAC;IAC1D,+DAA+D;IACxD,MAAM,cAAc,kEAAgC,CAAC;IAC5D,yDAAyD;IACzD,KAAY,QAAQ,GAAG,uBAAuB,CAAC;CAChD;AAED,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAE3E;AAED,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
|
|
@@ -26,38 +26,34 @@ 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.stepsOverridesFromJSON = exports.stepsOverridesToJSON = exports.StepsOverrides$ = exports.StepsOverrides$outboundSchema = exports.StepsOverrides$inboundSchema = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
32
32
|
/** @internal */
|
|
33
|
-
exports.
|
|
34
|
-
|
|
35
|
-
identifier: z.string(),
|
|
36
|
-
name: z.string(),
|
|
33
|
+
exports.StepsOverrides$inboundSchema = z.object({
|
|
34
|
+
providers: z.record(z.record(z.any())),
|
|
37
35
|
});
|
|
38
36
|
/** @internal */
|
|
39
|
-
exports.
|
|
40
|
-
|
|
41
|
-
identifier: z.string(),
|
|
42
|
-
name: z.string(),
|
|
37
|
+
exports.StepsOverrides$outboundSchema = z.object({
|
|
38
|
+
providers: z.record(z.record(z.any())),
|
|
43
39
|
});
|
|
44
40
|
/**
|
|
45
41
|
* @internal
|
|
46
42
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
47
43
|
*/
|
|
48
|
-
var
|
|
49
|
-
(function (
|
|
50
|
-
/** @deprecated use `
|
|
51
|
-
|
|
52
|
-
/** @deprecated use `
|
|
53
|
-
|
|
54
|
-
})(
|
|
55
|
-
function
|
|
56
|
-
return JSON.stringify(exports.
|
|
44
|
+
var StepsOverrides$;
|
|
45
|
+
(function (StepsOverrides$) {
|
|
46
|
+
/** @deprecated use `StepsOverrides$inboundSchema` instead. */
|
|
47
|
+
StepsOverrides$.inboundSchema = exports.StepsOverrides$inboundSchema;
|
|
48
|
+
/** @deprecated use `StepsOverrides$outboundSchema` instead. */
|
|
49
|
+
StepsOverrides$.outboundSchema = exports.StepsOverrides$outboundSchema;
|
|
50
|
+
})(StepsOverrides$ || (exports.StepsOverrides$ = StepsOverrides$ = {}));
|
|
51
|
+
function stepsOverridesToJSON(stepsOverrides) {
|
|
52
|
+
return JSON.stringify(exports.StepsOverrides$outboundSchema.parse(stepsOverrides));
|
|
57
53
|
}
|
|
58
|
-
exports.
|
|
59
|
-
function
|
|
60
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
54
|
+
exports.stepsOverridesToJSON = stepsOverridesToJSON;
|
|
55
|
+
function stepsOverridesFromJSON(jsonString) {
|
|
56
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.StepsOverrides$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StepsOverrides' from JSON`);
|
|
61
57
|
}
|
|
62
|
-
exports.
|
|
63
|
-
//# sourceMappingURL=
|
|
58
|
+
exports.stepsOverridesFromJSON = stepsOverridesFromJSON;
|
|
59
|
+
//# sourceMappingURL=stepsoverrides.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stepsoverrides.js","sourceRoot":"","sources":["../../src/models/components/stepsoverrides.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAWjD,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;CACvC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;CACvC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,eAAe,CAO/B;AAPD,WAAiB,eAAe;IAC9B,8DAA8D;IACjD,6BAAa,GAAG,oCAA4B,CAAC;IAC1D,+DAA+D;IAClD,8BAAc,GAAG,qCAA6B,CAAC;AAG9D,CAAC,EAPgB,eAAe,+BAAf,eAAe,QAO/B;AAED,SAAgB,oBAAoB,CAAC,cAA8B;IACjE,OAAO,IAAI,CAAC,SAAS,CAAC,qCAA6B,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;AAC7E,CAAC;AAFD,oDAEC;AAED,SAAgB,sBAAsB,CACpC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC;AARD,wDAQC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { ClosedEnum } from "../../types/enums.js";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Type of the step
|
|
5
5
|
*/
|
|
6
6
|
export declare const StepTypeEnum: {
|
|
7
7
|
readonly InApp: "in_app";
|
|
@@ -15,7 +15,7 @@ export declare const StepTypeEnum: {
|
|
|
15
15
|
readonly Custom: "custom";
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Type of the step
|
|
19
19
|
*/
|
|
20
20
|
export type StepTypeEnum = ClosedEnum<typeof StepTypeEnum>;
|
|
21
21
|
/** @internal */
|
|
@@ -29,7 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.StepTypeEnum$ = exports.StepTypeEnum$outboundSchema = exports.StepTypeEnum$inboundSchema = exports.StepTypeEnum = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Type of the step
|
|
33
33
|
*/
|
|
34
34
|
exports.StepTypeEnum = {
|
|
35
35
|
InApp: "in_app",
|
|
@@ -6,7 +6,7 @@ import { ChannelCredentialsDto, ChannelCredentialsDto$Outbound } from "./channel
|
|
|
6
6
|
/**
|
|
7
7
|
* The ID of the chat or push provider.
|
|
8
8
|
*/
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const ProviderId: {
|
|
10
10
|
readonly Slack: "slack";
|
|
11
11
|
readonly Discord: "discord";
|
|
12
12
|
readonly Msteams: "msteams";
|
|
@@ -28,12 +28,12 @@ export declare const SubscriberChannelDtoProviderId: {
|
|
|
28
28
|
/**
|
|
29
29
|
* The ID of the chat or push provider.
|
|
30
30
|
*/
|
|
31
|
-
export type
|
|
31
|
+
export type ProviderId = ClosedEnum<typeof ProviderId>;
|
|
32
32
|
export type SubscriberChannelDto = {
|
|
33
33
|
/**
|
|
34
34
|
* The ID of the chat or push provider.
|
|
35
35
|
*/
|
|
36
|
-
providerId:
|
|
36
|
+
providerId: ProviderId;
|
|
37
37
|
/**
|
|
38
38
|
* An optional identifier for the integration.
|
|
39
39
|
*/
|
|
@@ -44,15 +44,15 @@ export type SubscriberChannelDto = {
|
|
|
44
44
|
credentials: ChannelCredentialsDto;
|
|
45
45
|
};
|
|
46
46
|
/** @internal */
|
|
47
|
-
export declare const
|
|
47
|
+
export declare const ProviderId$inboundSchema: z.ZodNativeEnum<typeof ProviderId>;
|
|
48
48
|
/** @internal */
|
|
49
|
-
export declare const
|
|
49
|
+
export declare const ProviderId$outboundSchema: z.ZodNativeEnum<typeof ProviderId>;
|
|
50
50
|
/**
|
|
51
51
|
* @internal
|
|
52
52
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
53
|
*/
|
|
54
|
-
export declare namespace
|
|
55
|
-
/** @deprecated use `
|
|
54
|
+
export declare namespace ProviderId$ {
|
|
55
|
+
/** @deprecated use `ProviderId$inboundSchema` instead. */
|
|
56
56
|
const inboundSchema: z.ZodNativeEnum<{
|
|
57
57
|
readonly Slack: "slack";
|
|
58
58
|
readonly Discord: "discord";
|
|
@@ -72,7 +72,7 @@ export declare namespace SubscriberChannelDtoProviderId$ {
|
|
|
72
72
|
readonly PushWebhook: "push-webhook";
|
|
73
73
|
readonly PusherBeams: "pusher-beams";
|
|
74
74
|
}>;
|
|
75
|
-
/** @deprecated use `
|
|
75
|
+
/** @deprecated use `ProviderId$outboundSchema` instead. */
|
|
76
76
|
const outboundSchema: z.ZodNativeEnum<{
|
|
77
77
|
readonly Slack: "slack";
|
|
78
78
|
readonly Discord: "discord";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriberchanneldto.d.ts","sourceRoot":"","sources":["../../src/models/components/subscriberchanneldto.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;AACrE,OAAO,EACL,qBAAqB,EAErB,8BAA8B,EAE/B,MAAM,4BAA4B,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"subscriberchanneldto.d.ts","sourceRoot":"","sources":["../../src/models/components/subscriberchanneldto.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;AACrE,OAAO,EACL,qBAAqB,EAErB,8BAA8B,EAE/B,MAAM,4BAA4B,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;CAkBb,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAEvD,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,WAAW,EAAE,qBAAqB,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,UAAU,CAC/C,CAAC;AAE1B,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,UAAU,CAC/C,CAAC;AAE3B;;;GAGG;AACH,yBAAiB,WAAW,CAAC;IAC3B,0DAA0D;IACnD,MAAM,aAAa;;;;;;;;;;;;;;;;;;MAA2B,CAAC;IACtD,2DAA2D;IACpD,MAAM,cAAc;;;;;;;;;;;;;;;;;;MAA4B,CAAC;CACzD;AAED,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,qBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,WAAW,EAAE,8BAA8B,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAKpB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,qBAAqB,CAAC;IACrC,oEAAoE;IAC7D,MAAM,aAAa,wDAAqC,CAAC;IAChE,qEAAqE;IAC9D,MAAM,cAAc,8EAAsC,CAAC;IAClE,+DAA+D;IAC/D,KAAY,QAAQ,GAAG,6BAA6B,CAAC;CACtD;AAED,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR;AAED,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
|
|
@@ -26,14 +26,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.subscriberChannelDtoFromJSON = exports.subscriberChannelDtoToJSON = exports.SubscriberChannelDto$ = exports.SubscriberChannelDto$outboundSchema = exports.SubscriberChannelDto$inboundSchema = exports.
|
|
29
|
+
exports.subscriberChannelDtoFromJSON = exports.subscriberChannelDtoToJSON = exports.SubscriberChannelDto$ = exports.SubscriberChannelDto$outboundSchema = exports.SubscriberChannelDto$inboundSchema = exports.ProviderId$ = exports.ProviderId$outboundSchema = exports.ProviderId$inboundSchema = exports.ProviderId = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
32
32
|
const channelcredentialsdto_js_1 = require("./channelcredentialsdto.js");
|
|
33
33
|
/**
|
|
34
34
|
* The ID of the chat or push provider.
|
|
35
35
|
*/
|
|
36
|
-
exports.
|
|
36
|
+
exports.ProviderId = {
|
|
37
37
|
Slack: "slack",
|
|
38
38
|
Discord: "discord",
|
|
39
39
|
Msteams: "msteams",
|
|
@@ -53,29 +53,30 @@ exports.SubscriberChannelDtoProviderId = {
|
|
|
53
53
|
PusherBeams: "pusher-beams",
|
|
54
54
|
};
|
|
55
55
|
/** @internal */
|
|
56
|
-
exports.
|
|
56
|
+
exports.ProviderId$inboundSchema = z
|
|
57
|
+
.nativeEnum(exports.ProviderId);
|
|
57
58
|
/** @internal */
|
|
58
|
-
exports.
|
|
59
|
+
exports.ProviderId$outboundSchema = exports.ProviderId$inboundSchema;
|
|
59
60
|
/**
|
|
60
61
|
* @internal
|
|
61
62
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
62
63
|
*/
|
|
63
|
-
var
|
|
64
|
-
(function (
|
|
65
|
-
/** @deprecated use `
|
|
66
|
-
|
|
67
|
-
/** @deprecated use `
|
|
68
|
-
|
|
69
|
-
})(
|
|
64
|
+
var ProviderId$;
|
|
65
|
+
(function (ProviderId$) {
|
|
66
|
+
/** @deprecated use `ProviderId$inboundSchema` instead. */
|
|
67
|
+
ProviderId$.inboundSchema = exports.ProviderId$inboundSchema;
|
|
68
|
+
/** @deprecated use `ProviderId$outboundSchema` instead. */
|
|
69
|
+
ProviderId$.outboundSchema = exports.ProviderId$outboundSchema;
|
|
70
|
+
})(ProviderId$ || (exports.ProviderId$ = ProviderId$ = {}));
|
|
70
71
|
/** @internal */
|
|
71
72
|
exports.SubscriberChannelDto$inboundSchema = z.object({
|
|
72
|
-
providerId: exports.
|
|
73
|
+
providerId: exports.ProviderId$inboundSchema,
|
|
73
74
|
integrationIdentifier: z.string().optional(),
|
|
74
75
|
credentials: channelcredentialsdto_js_1.ChannelCredentialsDto$inboundSchema,
|
|
75
76
|
});
|
|
76
77
|
/** @internal */
|
|
77
78
|
exports.SubscriberChannelDto$outboundSchema = z.object({
|
|
78
|
-
providerId: exports.
|
|
79
|
+
providerId: exports.ProviderId$outboundSchema,
|
|
79
80
|
integrationIdentifier: z.string().optional(),
|
|
80
81
|
credentials: channelcredentialsdto_js_1.ChannelCredentialsDto$outboundSchema,
|
|
81
82
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriberchanneldto.js","sourceRoot":"","sources":["../../src/models/components/subscriberchanneldto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAIjD,yEAKoC;AAEpC;;GAEG;AACU,QAAA,
|
|
1
|
+
{"version":3,"file":"subscriberchanneldto.js","sourceRoot":"","sources":["../../src/models/components/subscriberchanneldto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAIjD,yEAKoC;AAEpC;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,YAAY;IACxB,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,aAAa,EAAE,iBAAiB;IAChC,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,aAAa;IACzB,gBAAgB,EAAE,mBAAmB;IACrC,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,YAAY;IACvB,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,cAAc;CACnB,CAAC;AAqBX,gBAAgB;AACH,QAAA,wBAAwB,GAAuC,CAAC;KAC1E,UAAU,CAAC,kBAAU,CAAC,CAAC;AAE1B,gBAAgB;AACH,QAAA,yBAAyB,GACpC,gCAAwB,CAAC;AAE3B;;;GAGG;AACH,IAAiB,WAAW,CAK3B;AALD,WAAiB,WAAW;IAC1B,0DAA0D;IAC7C,yBAAa,GAAG,gCAAwB,CAAC;IACtD,2DAA2D;IAC9C,0BAAc,GAAG,iCAAyB,CAAC;AAC1D,CAAC,EALgB,WAAW,2BAAX,WAAW,QAK3B;AAED,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,gCAAwB;IACpC,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5C,WAAW,EAAE,8DAAmC;CACjD,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,iCAAyB;IACrC,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5C,WAAW,EAAE,+DAAoC;CAClD,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,qBAAqB,CAOrC;AAPD,WAAiB,qBAAqB;IACpC,oEAAoE;IACvD,mCAAa,GAAG,0CAAkC,CAAC;IAChE,qEAAqE;IACxD,oCAAc,GAAG,2CAAmC,CAAC;AAGpE,CAAC,EAPgB,qBAAqB,qCAArB,qBAAqB,QAOrC;AAED,SAAgB,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,2CAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC;AAND,gEAMC;AAED,SAAgB,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC;AARD,oEAQC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
export type SubscriberGlobalPreferenceDto = {
|
|
6
|
+
/**
|
|
7
|
+
* Whether notifications are enabled globally
|
|
8
|
+
*/
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Channel-specific preference settings
|
|
12
|
+
*/
|
|
13
|
+
channels: SubscriberPreferenceChannels;
|
|
14
|
+
};
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const SubscriberGlobalPreferenceDto$inboundSchema: z.ZodType<SubscriberGlobalPreferenceDto, z.ZodTypeDef, unknown>;
|
|
17
|
+
/** @internal */
|
|
18
|
+
export type SubscriberGlobalPreferenceDto$Outbound = {
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
channels: SubscriberPreferenceChannels$Outbound;
|
|
21
|
+
};
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const SubscriberGlobalPreferenceDto$outboundSchema: z.ZodType<SubscriberGlobalPreferenceDto$Outbound, z.ZodTypeDef, SubscriberGlobalPreferenceDto>;
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27
|
+
*/
|
|
28
|
+
export declare namespace SubscriberGlobalPreferenceDto$ {
|
|
29
|
+
/** @deprecated use `SubscriberGlobalPreferenceDto$inboundSchema` instead. */
|
|
30
|
+
const inboundSchema: z.ZodType<SubscriberGlobalPreferenceDto, z.ZodTypeDef, unknown>;
|
|
31
|
+
/** @deprecated use `SubscriberGlobalPreferenceDto$outboundSchema` instead. */
|
|
32
|
+
const outboundSchema: z.ZodType<SubscriberGlobalPreferenceDto$Outbound, z.ZodTypeDef, SubscriberGlobalPreferenceDto>;
|
|
33
|
+
/** @deprecated use `SubscriberGlobalPreferenceDto$Outbound` instead. */
|
|
34
|
+
type Outbound = SubscriberGlobalPreferenceDto$Outbound;
|
|
35
|
+
}
|
|
36
|
+
export declare function subscriberGlobalPreferenceDtoToJSON(subscriberGlobalPreferenceDto: SubscriberGlobalPreferenceDto): string;
|
|
37
|
+
export declare function subscriberGlobalPreferenceDtoFromJSON(jsonString: string): SafeParseResult<SubscriberGlobalPreferenceDto, SDKValidationError>;
|
|
38
|
+
//# sourceMappingURL=subscriberglobalpreferencedto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriberglobalpreferencedto.d.ts","sourceRoot":"","sources":["../../src/models/components/subscriberglobalpreferencedto.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;AAE3C,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,4BAA4B,CAAC;CACxC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,sCAAsC,GAAG;IACnD,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,qCAAqC,CAAC;CACjD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,OAAO,CAClE,sCAAsC,EACtC,CAAC,CAAC,UAAU,EACZ,6BAA6B,CAI7B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,8BAA8B,CAAC;IAC9C,6EAA6E;IACtE,MAAM,aAAa,iEAA8C,CAAC;IACzE,8EAA8E;IACvE,MAAM,cAAc,gGAA+C,CAAC;IAC3E,wEAAwE;IACxE,KAAY,QAAQ,GAAG,sCAAsC,CAAC;CAC/D;AAED,wBAAgB,mCAAmC,CACjD,6BAA6B,EAAE,6BAA6B,GAC3D,MAAM,CAMR;AAED,wBAAgB,qCAAqC,CACnD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,6BAA6B,EAAE,kBAAkB,CAAC,CAMpE"}
|
|
@@ -0,0 +1,62 @@
|
|
|
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.subscriberGlobalPreferenceDtoFromJSON = exports.subscriberGlobalPreferenceDtoToJSON = exports.SubscriberGlobalPreferenceDto$ = exports.SubscriberGlobalPreferenceDto$outboundSchema = exports.SubscriberGlobalPreferenceDto$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
|
+
/** @internal */
|
|
34
|
+
exports.SubscriberGlobalPreferenceDto$inboundSchema = z.object({
|
|
35
|
+
enabled: z.boolean(),
|
|
36
|
+
channels: subscriberpreferencechannels_js_1.SubscriberPreferenceChannels$inboundSchema,
|
|
37
|
+
});
|
|
38
|
+
/** @internal */
|
|
39
|
+
exports.SubscriberGlobalPreferenceDto$outboundSchema = z.object({
|
|
40
|
+
enabled: z.boolean(),
|
|
41
|
+
channels: subscriberpreferencechannels_js_1.SubscriberPreferenceChannels$outboundSchema,
|
|
42
|
+
});
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
+
*/
|
|
47
|
+
var SubscriberGlobalPreferenceDto$;
|
|
48
|
+
(function (SubscriberGlobalPreferenceDto$) {
|
|
49
|
+
/** @deprecated use `SubscriberGlobalPreferenceDto$inboundSchema` instead. */
|
|
50
|
+
SubscriberGlobalPreferenceDto$.inboundSchema = exports.SubscriberGlobalPreferenceDto$inboundSchema;
|
|
51
|
+
/** @deprecated use `SubscriberGlobalPreferenceDto$outboundSchema` instead. */
|
|
52
|
+
SubscriberGlobalPreferenceDto$.outboundSchema = exports.SubscriberGlobalPreferenceDto$outboundSchema;
|
|
53
|
+
})(SubscriberGlobalPreferenceDto$ || (exports.SubscriberGlobalPreferenceDto$ = SubscriberGlobalPreferenceDto$ = {}));
|
|
54
|
+
function subscriberGlobalPreferenceDtoToJSON(subscriberGlobalPreferenceDto) {
|
|
55
|
+
return JSON.stringify(exports.SubscriberGlobalPreferenceDto$outboundSchema.parse(subscriberGlobalPreferenceDto));
|
|
56
|
+
}
|
|
57
|
+
exports.subscriberGlobalPreferenceDtoToJSON = subscriberGlobalPreferenceDtoToJSON;
|
|
58
|
+
function subscriberGlobalPreferenceDtoFromJSON(jsonString) {
|
|
59
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SubscriberGlobalPreferenceDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SubscriberGlobalPreferenceDto' from JSON`);
|
|
60
|
+
}
|
|
61
|
+
exports.subscriberGlobalPreferenceDtoFromJSON = subscriberGlobalPreferenceDtoFromJSON;
|
|
62
|
+
//# sourceMappingURL=subscriberglobalpreferencedto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriberglobalpreferencedto.js","sourceRoot":"","sources":["../../src/models/components/subscriberglobalpreferencedto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAGjD,uFAK2C;AAa3C,gBAAgB;AACH,QAAA,2CAA2C,GAIpD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,QAAQ,EAAE,4EAA0C;CACrD,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,4CAA4C,GAIrD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,QAAQ,EAAE,6EAA2C;CACtD,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,8BAA8B,CAO9C;AAPD,WAAiB,8BAA8B;IAC7C,6EAA6E;IAChE,4CAAa,GAAG,mDAA2C,CAAC;IACzE,8EAA8E;IACjE,6CAAc,GAAG,oDAA4C,CAAC;AAG7E,CAAC,EAPgB,8BAA8B,8CAA9B,8BAA8B,QAO9C;AAED,SAAgB,mCAAmC,CACjD,6BAA4D;IAE5D,OAAO,IAAI,CAAC,SAAS,CACnB,oDAA4C,CAAC,KAAK,CAChD,6BAA6B,CAC9B,CACF,CAAC;AACJ,CAAC;AARD,kFAQC;AAED,SAAgB,qCAAqC,CACnD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mDAA2C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvE,2DAA2D,CAC5D,CAAC;AACJ,CAAC;AARD,sFAQC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type SubscriberPreferenceChannels = {
|
|
5
|
+
/**
|
|
6
|
+
* Email channel preference
|
|
7
|
+
*/
|
|
8
|
+
email?: boolean | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* SMS channel preference
|
|
11
|
+
*/
|
|
12
|
+
sms?: boolean | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* In-app channel preference
|
|
15
|
+
*/
|
|
16
|
+
inApp?: boolean | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Chat channel preference
|
|
19
|
+
*/
|
|
20
|
+
chat?: boolean | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Push notification channel preference
|
|
23
|
+
*/
|
|
24
|
+
push?: boolean | undefined;
|
|
25
|
+
};
|
|
26
|
+
/** @internal */
|
|
27
|
+
export declare const SubscriberPreferenceChannels$inboundSchema: z.ZodType<SubscriberPreferenceChannels, z.ZodTypeDef, unknown>;
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type SubscriberPreferenceChannels$Outbound = {
|
|
30
|
+
email?: boolean | undefined;
|
|
31
|
+
sms?: boolean | undefined;
|
|
32
|
+
in_app?: boolean | undefined;
|
|
33
|
+
chat?: boolean | undefined;
|
|
34
|
+
push?: boolean | undefined;
|
|
35
|
+
};
|
|
36
|
+
/** @internal */
|
|
37
|
+
export declare const SubscriberPreferenceChannels$outboundSchema: z.ZodType<SubscriberPreferenceChannels$Outbound, z.ZodTypeDef, SubscriberPreferenceChannels>;
|
|
38
|
+
/**
|
|
39
|
+
* @internal
|
|
40
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
41
|
+
*/
|
|
42
|
+
export declare namespace SubscriberPreferenceChannels$ {
|
|
43
|
+
/** @deprecated use `SubscriberPreferenceChannels$inboundSchema` instead. */
|
|
44
|
+
const inboundSchema: z.ZodType<SubscriberPreferenceChannels, z.ZodTypeDef, unknown>;
|
|
45
|
+
/** @deprecated use `SubscriberPreferenceChannels$outboundSchema` instead. */
|
|
46
|
+
const outboundSchema: z.ZodType<SubscriberPreferenceChannels$Outbound, z.ZodTypeDef, SubscriberPreferenceChannels>;
|
|
47
|
+
/** @deprecated use `SubscriberPreferenceChannels$Outbound` instead. */
|
|
48
|
+
type Outbound = SubscriberPreferenceChannels$Outbound;
|
|
49
|
+
}
|
|
50
|
+
export declare function subscriberPreferenceChannelsToJSON(subscriberPreferenceChannels: SubscriberPreferenceChannels): string;
|
|
51
|
+
export declare function subscriberPreferenceChannelsFromJSON(jsonString: string): SafeParseResult<SubscriberPreferenceChannels, SDKValidationError>;
|
|
52
|
+
//# sourceMappingURL=subscriberpreferencechannels.d.ts.map
|
|
@@ -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,CAAC;AACL,CAAC,CAAC,CAAC;AAWH,gBAAgB;AACH,QAAA,2CAA2C,GAIpD,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,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC7B,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,KAAK,EAAE,QAAQ;KAChB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,6BAA6B,CAO7C;AAPD,WAAiB,6BAA6B;IAC5C,4EAA4E;IAC/D,2CAAa,GAAG,kDAA0C,CAAC;IACxE,6EAA6E;IAChE,4CAAc,GAAG,mDAA2C,CAAC;AAG5E,CAAC,EAPgB,6BAA6B,6CAA7B,6BAA6B,QAO7C;AAED,SAAgB,kCAAkC,CAChD,4BAA0D;IAE1D,OAAO,IAAI,CAAC,SAAS,CACnB,mDAA2C,CAAC,KAAK,CAC/C,4BAA4B,CAC7B,CACF,CAAC;AACJ,CAAC;AARD,gFAQC;AAED,SAAgB,oCAAoC,CAClD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kDAA0C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtE,0DAA0D,CAC3D,CAAC;AACJ,CAAC;AARD,oFAQC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } 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
|