@novu/api 0.0.1-alpha.128 → 0.0.1-alpha.129
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/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/activitygraphstatesresponse.d.ts +8 -8
- package/models/components/activitygraphstatesresponse.d.ts.map +1 -1
- package/models/components/activitygraphstatesresponse.js +14 -13
- package/models/components/activitygraphstatesresponse.js.map +1 -1
- package/models/components/activitynotificationresponsedto.d.ts +3 -58
- package/models/components/activitynotificationresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationresponsedto.js +4 -33
- package/models/components/activitynotificationresponsedto.js.map +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/steptypeenum.d.ts +55 -0
- package/models/components/steptypeenum.d.ts.map +1 -0
- package/models/components/steptypeenum.js +60 -0
- package/models/components/steptypeenum.js.map +1 -0
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/activitygraphstatesresponse.ts +14 -20
- package/src/models/components/activitynotificationresponsedto.ts +9 -46
- package/src/models/components/index.ts +1 -0
- package/src/models/components/steptypeenum.ts +44 -0
package/lib/config.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
27
27
|
export declare const SDK_METADATA: {
|
|
28
28
|
readonly language: "typescript";
|
|
29
29
|
readonly openapiDocVersion: "1.0";
|
|
30
|
-
readonly sdkVersion: "0.0.1-alpha.
|
|
30
|
+
readonly sdkVersion: "0.0.1-alpha.129";
|
|
31
31
|
readonly genVersion: "2.481.0";
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.129 2.481.0 1.0 @novu/api";
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -30,8 +30,8 @@ exports.serverURLFromOptions = serverURLFromOptions;
|
|
|
30
30
|
exports.SDK_METADATA = {
|
|
31
31
|
language: "typescript",
|
|
32
32
|
openapiDocVersion: "1.0",
|
|
33
|
-
sdkVersion: "0.0.1-alpha.
|
|
33
|
+
sdkVersion: "0.0.1-alpha.129",
|
|
34
34
|
genVersion: "2.481.0",
|
|
35
|
-
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
35
|
+
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.129 2.481.0 1.0 @novu/api",
|
|
36
36
|
};
|
|
37
37
|
//# sourceMappingURL=config.js.map
|
|
@@ -2,30 +2,30 @@ 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 Channels: {
|
|
6
6
|
readonly InApp: "in_app";
|
|
7
7
|
readonly Email: "email";
|
|
8
8
|
readonly Sms: "sms";
|
|
9
9
|
readonly Chat: "chat";
|
|
10
10
|
readonly Push: "push";
|
|
11
11
|
};
|
|
12
|
-
export type
|
|
12
|
+
export type Channels = ClosedEnum<typeof Channels>;
|
|
13
13
|
export type ActivityGraphStatesResponse = {
|
|
14
14
|
id: string;
|
|
15
15
|
count: number;
|
|
16
16
|
templates: Array<string>;
|
|
17
|
-
channels: Array<
|
|
17
|
+
channels: Array<Channels>;
|
|
18
18
|
};
|
|
19
19
|
/** @internal */
|
|
20
|
-
export declare const
|
|
20
|
+
export declare const Channels$inboundSchema: z.ZodNativeEnum<typeof Channels>;
|
|
21
21
|
/** @internal */
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const Channels$outboundSchema: z.ZodNativeEnum<typeof Channels>;
|
|
23
23
|
/**
|
|
24
24
|
* @internal
|
|
25
25
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
26
26
|
*/
|
|
27
|
-
export declare namespace
|
|
28
|
-
/** @deprecated use `
|
|
27
|
+
export declare namespace Channels$ {
|
|
28
|
+
/** @deprecated use `Channels$inboundSchema` instead. */
|
|
29
29
|
const inboundSchema: z.ZodNativeEnum<{
|
|
30
30
|
readonly InApp: "in_app";
|
|
31
31
|
readonly Email: "email";
|
|
@@ -33,7 +33,7 @@ export declare namespace ActivityGraphStatesResponseChannels$ {
|
|
|
33
33
|
readonly Chat: "chat";
|
|
34
34
|
readonly Push: "push";
|
|
35
35
|
}>;
|
|
36
|
-
/** @deprecated use `
|
|
36
|
+
/** @deprecated use `Channels$outboundSchema` instead. */
|
|
37
37
|
const outboundSchema: z.ZodNativeEnum<{
|
|
38
38
|
readonly InApp: "in_app";
|
|
39
39
|
readonly Email: "email";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activitygraphstatesresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/activitygraphstatesresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"activitygraphstatesresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/activitygraphstatesresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,M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MAAM,cAAc,4FAA6C,CAAC;IACzE,sEAAsE;IACtE,KAAY,QAAQ,GAAG,oCAAoC,CAAC;CAC7D;AAED,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR;AAED,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE"}
|
|
@@ -26,11 +26,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.activityGraphStatesResponseFromJSON = exports.activityGraphStatesResponseToJSON = exports.ActivityGraphStatesResponse$ = exports.ActivityGraphStatesResponse$outboundSchema = exports.ActivityGraphStatesResponse$inboundSchema = exports.
|
|
29
|
+
exports.activityGraphStatesResponseFromJSON = exports.activityGraphStatesResponseToJSON = exports.ActivityGraphStatesResponse$ = exports.ActivityGraphStatesResponse$outboundSchema = exports.ActivityGraphStatesResponse$inboundSchema = exports.Channels$ = exports.Channels$outboundSchema = exports.Channels$inboundSchema = exports.Channels = 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
|
-
exports.
|
|
33
|
+
exports.Channels = {
|
|
34
34
|
InApp: "in_app",
|
|
35
35
|
Email: "email",
|
|
36
36
|
Sms: "sms",
|
|
@@ -38,26 +38,27 @@ exports.ActivityGraphStatesResponseChannels = {
|
|
|
38
38
|
Push: "push",
|
|
39
39
|
};
|
|
40
40
|
/** @internal */
|
|
41
|
-
exports.
|
|
41
|
+
exports.Channels$inboundSchema = z
|
|
42
|
+
.nativeEnum(exports.Channels);
|
|
42
43
|
/** @internal */
|
|
43
|
-
exports.
|
|
44
|
+
exports.Channels$outboundSchema = exports.Channels$inboundSchema;
|
|
44
45
|
/**
|
|
45
46
|
* @internal
|
|
46
47
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
47
48
|
*/
|
|
48
|
-
var
|
|
49
|
-
(function (
|
|
50
|
-
/** @deprecated use `
|
|
51
|
-
|
|
52
|
-
/** @deprecated use `
|
|
53
|
-
|
|
54
|
-
})(
|
|
49
|
+
var Channels$;
|
|
50
|
+
(function (Channels$) {
|
|
51
|
+
/** @deprecated use `Channels$inboundSchema` instead. */
|
|
52
|
+
Channels$.inboundSchema = exports.Channels$inboundSchema;
|
|
53
|
+
/** @deprecated use `Channels$outboundSchema` instead. */
|
|
54
|
+
Channels$.outboundSchema = exports.Channels$outboundSchema;
|
|
55
|
+
})(Channels$ || (exports.Channels$ = Channels$ = {}));
|
|
55
56
|
/** @internal */
|
|
56
57
|
exports.ActivityGraphStatesResponse$inboundSchema = z.object({
|
|
57
58
|
_id: z.string(),
|
|
58
59
|
count: z.number(),
|
|
59
60
|
templates: z.array(z.string()),
|
|
60
|
-
channels: z.array(exports.
|
|
61
|
+
channels: z.array(exports.Channels$inboundSchema),
|
|
61
62
|
}).transform((v) => {
|
|
62
63
|
return (0, primitives_js_1.remap)(v, {
|
|
63
64
|
"_id": "id",
|
|
@@ -68,7 +69,7 @@ exports.ActivityGraphStatesResponse$outboundSchema = z.object({
|
|
|
68
69
|
id: z.string(),
|
|
69
70
|
count: z.number(),
|
|
70
71
|
templates: z.array(z.string()),
|
|
71
|
-
channels: z.array(exports.
|
|
72
|
+
channels: z.array(exports.Channels$outboundSchema),
|
|
72
73
|
}).transform((v) => {
|
|
73
74
|
return (0, primitives_js_1.remap)(v, {
|
|
74
75
|
id: "_id",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activitygraphstatesresponse.js","sourceRoot":"","sources":["../../src/models/components/activitygraphstatesresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAKpC,QAAA,
|
|
1
|
+
{"version":3,"file":"activitygraphstatesresponse.js","sourceRoot":"","sources":["../../src/models/components/activitygraphstatesresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAKpC,QAAA,QAAQ,GAAG;IACtB,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACJ,CAAC;AAUX,gBAAgB;AACH,QAAA,sBAAsB,GAAqC,CAAC;KACtE,UAAU,CAAC,gBAAQ,CAAC,CAAC;AAExB,gBAAgB;AACH,QAAA,uBAAuB,GAClC,8BAAsB,CAAC;AAEzB;;;GAGG;AACH,IAAiB,SAAS,CAKzB;AALD,WAAiB,SAAS;IACxB,wDAAwD;IAC3C,uBAAa,GAAG,8BAAsB,CAAC;IACpD,yDAAyD;IAC5C,wBAAc,GAAG,+BAAuB,CAAC;AACxD,CAAC,EALgB,SAAS,yBAAT,SAAS,QAKzB;AAED,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,8BAAsB,CAAC;CAC1C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,KAAK,EAAE,IAAI;KACZ,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,+BAAuB,CAAC;CAC3C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,EAAE,EAAE,KAAK;KACV,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,4BAA4B,CAO5C;AAPD,WAAiB,4BAA4B;IAC3C,2EAA2E;IAC9D,0CAAa,GAAG,iDAAyC,CAAC;IACvE,4EAA4E;IAC/D,2CAAc,GAAG,kDAA0C,CAAC;AAG3E,CAAC,EAPgB,4BAA4B,4CAA5B,4BAA4B,QAO5C;AAED,SAAgB,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,kDAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC;AARD,8EAQC;AAED,SAAgB,mCAAmC,CACjD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iDAAyC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrE,yDAAyD,CAC1D,CAAC;AACJ,CAAC;AARD,kFAQC"}
|
|
@@ -1,28 +1,10 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
4
|
import { ActivityNotificationJobResponseDto, ActivityNotificationJobResponseDto$Outbound } from "./activitynotificationjobresponsedto.js";
|
|
6
5
|
import { ActivityNotificationSubscriberResponseDto, ActivityNotificationSubscriberResponseDto$Outbound } from "./activitynotificationsubscriberresponsedto.js";
|
|
7
6
|
import { ActivityNotificationTemplateResponseDto, ActivityNotificationTemplateResponseDto$Outbound } from "./activitynotificationtemplateresponsedto.js";
|
|
8
|
-
|
|
9
|
-
* Channels of the notification
|
|
10
|
-
*/
|
|
11
|
-
export declare const Channels: {
|
|
12
|
-
readonly InApp: "in_app";
|
|
13
|
-
readonly Email: "email";
|
|
14
|
-
readonly Sms: "sms";
|
|
15
|
-
readonly Chat: "chat";
|
|
16
|
-
readonly Push: "push";
|
|
17
|
-
readonly Digest: "digest";
|
|
18
|
-
readonly Trigger: "trigger";
|
|
19
|
-
readonly Delay: "delay";
|
|
20
|
-
readonly Custom: "custom";
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Channels of the notification
|
|
24
|
-
*/
|
|
25
|
-
export type Channels = ClosedEnum<typeof Channels>;
|
|
7
|
+
import { StepTypeEnum } from "./steptypeenum.js";
|
|
26
8
|
export type ActivityNotificationResponseDto = {
|
|
27
9
|
/**
|
|
28
10
|
* Unique identifier of the notification
|
|
@@ -44,10 +26,7 @@ export type ActivityNotificationResponseDto = {
|
|
|
44
26
|
* Creation time of the notification
|
|
45
27
|
*/
|
|
46
28
|
createdAt?: string | undefined;
|
|
47
|
-
|
|
48
|
-
* Channels of the notification
|
|
49
|
-
*/
|
|
50
|
-
channels?: Channels | undefined;
|
|
29
|
+
channels?: Array<StepTypeEnum> | undefined;
|
|
51
30
|
/**
|
|
52
31
|
* Subscriber of the notification
|
|
53
32
|
*/
|
|
@@ -62,40 +41,6 @@ export type ActivityNotificationResponseDto = {
|
|
|
62
41
|
jobs?: Array<ActivityNotificationJobResponseDto> | undefined;
|
|
63
42
|
};
|
|
64
43
|
/** @internal */
|
|
65
|
-
export declare const Channels$inboundSchema: z.ZodNativeEnum<typeof Channels>;
|
|
66
|
-
/** @internal */
|
|
67
|
-
export declare const Channels$outboundSchema: z.ZodNativeEnum<typeof Channels>;
|
|
68
|
-
/**
|
|
69
|
-
* @internal
|
|
70
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
71
|
-
*/
|
|
72
|
-
export declare namespace Channels$ {
|
|
73
|
-
/** @deprecated use `Channels$inboundSchema` instead. */
|
|
74
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
75
|
-
readonly InApp: "in_app";
|
|
76
|
-
readonly Email: "email";
|
|
77
|
-
readonly Sms: "sms";
|
|
78
|
-
readonly Chat: "chat";
|
|
79
|
-
readonly Push: "push";
|
|
80
|
-
readonly Digest: "digest";
|
|
81
|
-
readonly Trigger: "trigger";
|
|
82
|
-
readonly Delay: "delay";
|
|
83
|
-
readonly Custom: "custom";
|
|
84
|
-
}>;
|
|
85
|
-
/** @deprecated use `Channels$outboundSchema` instead. */
|
|
86
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
87
|
-
readonly InApp: "in_app";
|
|
88
|
-
readonly Email: "email";
|
|
89
|
-
readonly Sms: "sms";
|
|
90
|
-
readonly Chat: "chat";
|
|
91
|
-
readonly Push: "push";
|
|
92
|
-
readonly Digest: "digest";
|
|
93
|
-
readonly Trigger: "trigger";
|
|
94
|
-
readonly Delay: "delay";
|
|
95
|
-
readonly Custom: "custom";
|
|
96
|
-
}>;
|
|
97
|
-
}
|
|
98
|
-
/** @internal */
|
|
99
44
|
export declare const ActivityNotificationResponseDto$inboundSchema: z.ZodType<ActivityNotificationResponseDto, z.ZodTypeDef, unknown>;
|
|
100
45
|
/** @internal */
|
|
101
46
|
export type ActivityNotificationResponseDto$Outbound = {
|
|
@@ -104,7 +49,7 @@ export type ActivityNotificationResponseDto$Outbound = {
|
|
|
104
49
|
_organizationId: string;
|
|
105
50
|
transactionId: string;
|
|
106
51
|
createdAt?: string | undefined;
|
|
107
|
-
channels?: string | undefined;
|
|
52
|
+
channels?: Array<string> | undefined;
|
|
108
53
|
subscriber?: ActivityNotificationSubscriberResponseDto$Outbound | undefined;
|
|
109
54
|
template?: ActivityNotificationTemplateResponseDto$Outbound | undefined;
|
|
110
55
|
jobs?: Array<ActivityNotificationJobResponseDto$Outbound> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activitynotificationresponsedto.d.ts","sourceRoot":"","sources":["../../src/models/components/activitynotificationresponsedto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"activitynotificationresponsedto.d.ts","sourceRoot":"","sources":["../../src/models/components/activitynotificationresponsedto.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,kCAAkC,EAElC,2CAA2C,EAE5C,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,yCAAyC,EAEzC,kDAAkD,EAEnD,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,uCAAuC,EAEvC,gDAAgD,EAEjD,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,YAAY,EAGb,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,UAAU,CAAC,EAAE,yCAAyC,GAAG,SAAS,CAAC;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e,CAAC,+BAA+B,EAAE,kBAAkB,CAAC,CAMtE"}
|
|
@@ -26,43 +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.activityNotificationResponseDtoFromJSON = exports.activityNotificationResponseDtoToJSON = exports.ActivityNotificationResponseDto$ = exports.ActivityNotificationResponseDto$outboundSchema = exports.ActivityNotificationResponseDto$inboundSchema =
|
|
29
|
+
exports.activityNotificationResponseDtoFromJSON = exports.activityNotificationResponseDtoToJSON = exports.ActivityNotificationResponseDto$ = exports.ActivityNotificationResponseDto$outboundSchema = exports.ActivityNotificationResponseDto$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
|
const activitynotificationjobresponsedto_js_1 = require("./activitynotificationjobresponsedto.js");
|
|
34
34
|
const activitynotificationsubscriberresponsedto_js_1 = require("./activitynotificationsubscriberresponsedto.js");
|
|
35
35
|
const activitynotificationtemplateresponsedto_js_1 = require("./activitynotificationtemplateresponsedto.js");
|
|
36
|
-
|
|
37
|
-
* Channels of the notification
|
|
38
|
-
*/
|
|
39
|
-
exports.Channels = {
|
|
40
|
-
InApp: "in_app",
|
|
41
|
-
Email: "email",
|
|
42
|
-
Sms: "sms",
|
|
43
|
-
Chat: "chat",
|
|
44
|
-
Push: "push",
|
|
45
|
-
Digest: "digest",
|
|
46
|
-
Trigger: "trigger",
|
|
47
|
-
Delay: "delay",
|
|
48
|
-
Custom: "custom",
|
|
49
|
-
};
|
|
50
|
-
/** @internal */
|
|
51
|
-
exports.Channels$inboundSchema = z
|
|
52
|
-
.nativeEnum(exports.Channels);
|
|
53
|
-
/** @internal */
|
|
54
|
-
exports.Channels$outboundSchema = exports.Channels$inboundSchema;
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
58
|
-
*/
|
|
59
|
-
var Channels$;
|
|
60
|
-
(function (Channels$) {
|
|
61
|
-
/** @deprecated use `Channels$inboundSchema` instead. */
|
|
62
|
-
Channels$.inboundSchema = exports.Channels$inboundSchema;
|
|
63
|
-
/** @deprecated use `Channels$outboundSchema` instead. */
|
|
64
|
-
Channels$.outboundSchema = exports.Channels$outboundSchema;
|
|
65
|
-
})(Channels$ || (exports.Channels$ = Channels$ = {}));
|
|
36
|
+
const steptypeenum_js_1 = require("./steptypeenum.js");
|
|
66
37
|
/** @internal */
|
|
67
38
|
exports.ActivityNotificationResponseDto$inboundSchema = z.object({
|
|
68
39
|
_id: z.string().optional(),
|
|
@@ -70,7 +41,7 @@ exports.ActivityNotificationResponseDto$inboundSchema = z.object({
|
|
|
70
41
|
_organizationId: z.string(),
|
|
71
42
|
transactionId: z.string(),
|
|
72
43
|
createdAt: z.string().optional(),
|
|
73
|
-
channels:
|
|
44
|
+
channels: z.array(steptypeenum_js_1.StepTypeEnum$inboundSchema).optional(),
|
|
74
45
|
subscriber: activitynotificationsubscriberresponsedto_js_1.ActivityNotificationSubscriberResponseDto$inboundSchema
|
|
75
46
|
.optional(),
|
|
76
47
|
template: activitynotificationtemplateresponsedto_js_1.ActivityNotificationTemplateResponseDto$inboundSchema.optional(),
|
|
@@ -89,7 +60,7 @@ exports.ActivityNotificationResponseDto$outboundSchema = z.object({
|
|
|
89
60
|
organizationId: z.string(),
|
|
90
61
|
transactionId: z.string(),
|
|
91
62
|
createdAt: z.string().optional(),
|
|
92
|
-
channels:
|
|
63
|
+
channels: z.array(steptypeenum_js_1.StepTypeEnum$outboundSchema).optional(),
|
|
93
64
|
subscriber: activitynotificationsubscriberresponsedto_js_1.ActivityNotificationSubscriberResponseDto$outboundSchema
|
|
94
65
|
.optional(),
|
|
95
66
|
template: activitynotificationtemplateresponsedto_js_1.ActivityNotificationTemplateResponseDto$outboundSchema.optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activitynotificationresponsedto.js","sourceRoot":"","sources":["../../src/models/components/activitynotificationresponsedto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;
|
|
1
|
+
{"version":3,"file":"activitynotificationresponsedto.js","sourceRoot":"","sources":["../../src/models/components/activitynotificationresponsedto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,mGAKiD;AACjD,iHAKwD;AACxD,6GAKsD;AACtD,uDAI2B;AAsC3B,gBAAgB;AACH,QAAA,6CAA6C,GAItD,CAAC,CAAC,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,4CAA0B,CAAC,CAAC,QAAQ,EAAE;IACxD,UAAU,EAAE,sGAAuD;SAChE,QAAQ,EAAE;IACb,QAAQ,EAAE,kGAAqD,CAAC,QAAQ,EAAE;IAC1E,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,wFAAgD,CAAC,CAAC,QAAQ,EAAE;CAC3E,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,KAAK,EAAE,IAAI;QACX,gBAAgB,EAAE,eAAe;QACjC,iBAAiB,EAAE,gBAAgB;KACpC,CAAC,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AAU,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"}
|
|
@@ -66,6 +66,7 @@ export * from "./renametopicrequestdto.js";
|
|
|
66
66
|
export * from "./renametopicresponsedto.js";
|
|
67
67
|
export * from "./security.js";
|
|
68
68
|
export * from "./stepfilter.js";
|
|
69
|
+
export * from "./steptypeenum.js";
|
|
69
70
|
export * from "./subscriberchanneldto.js";
|
|
70
71
|
export * from "./subscriberfeedresponsedto.js";
|
|
71
72
|
export * from "./subscriberpayloaddto.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,qDAAqD,CAAC;AACpE,cAAc,yCAAyC,CAAC;AACxD,cAAc,sCAAsC,CAAC;AACrD,cAAc,0CAA0C,CAAC;AACzD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;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iB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,kDAAkD,CAAC;AACjE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,qCAAqC,CAAC"}
|
|
@@ -85,6 +85,7 @@ __exportStar(require("./renametopicrequestdto.js"), exports);
|
|
|
85
85
|
__exportStar(require("./renametopicresponsedto.js"), exports);
|
|
86
86
|
__exportStar(require("./security.js"), exports);
|
|
87
87
|
__exportStar(require("./stepfilter.js"), exports);
|
|
88
|
+
__exportStar(require("./steptypeenum.js"), exports);
|
|
88
89
|
__exportStar(require("./subscriberchanneldto.js"), exports);
|
|
89
90
|
__exportStar(require("./subscriberfeedresponsedto.js"), exports);
|
|
90
91
|
__exportStar(require("./subscriberpayloaddto.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,6DAA2C;AAC3C,mEAAiD;AACjD,sFAAoE;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uD;AACvD,mFAAiE;AACjE,4EAA0D;AAC1D,4EAA0D;AAC1D,6EAA2D;AAC3D,kEAAgD;AAChD,wDAAsC;AACtC,sEAAoD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,6DAA2C;AAC3C,mEAAiD;AACjD,sFAAoE;AACpE,0EAAwD;AACxD,uEAAqD;AACrD,2EAAyD;AACzD,iFAA+D;AAC/D,+EAA6D;AAC7D,gEAA8C;AAC9C,wDAAsC;AACtC,qDAAmC;AACnC,gEAA8C;AAC9C,kEAAgD;AAChD,uEAAqD;AACrD,+DAA6C;AAC7C,2DAAyC;AACzC,0DAAwC;AACxC,6DAA2C;AAC3C,yDAAuC;AACvC,uDAAqC;AACrC,uDAAqC;AACrC,4DAA0C;AAC1C,mEAAiD;AACjD,kEAAgD;AAChD,6DAA2C;AAC3C,8DAA4C;AAC5C,sDAAoC;AACpC,sDAAoC;AACpC,4DAA0C;AAC1C,8DAA4C;AAC5C,gEAA8C;AAC9C,mEAAiD;AACjD,6DAA2C;AAC3C,2DAAyC;AACzC,kDAAgC;AAChC,wDAAsC;AACtC,4DAA0C;AAC1C,0DAAwC;AACxC,uDAAqC;AACrC,+DAA6C;AAC7C,2EAAyD;AACzD,2DAAyC;AACzC,8DAA4C;AAC5C,kEAAgD;AAChD,kEAAgD;AAChD,qDAAmC;AACnC,2DAAyC;AACzC,qDAAmC;AACnC,kDAAgC;AAChC,sDAAoC;AACpC,qDAAmC;AACnC,+DAA6C;AAC7C,0DAAwC;AACxC,uDAAqC;AACrC,0DAAwC;AACxC,+DAA6C;AAC7C,yDAAuC;AACvC,wDAAsC;AACtC,+DAA6C;AAC7C,2DAAyC;AACzC,mEAAiD;AACjD,kDAAgC;AAChC,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,8DAA4C;AAC5C,gDAA8B;AAC9B,kDAAgC;AAChC,oDAAkC;AAClC,4DAA0C;AAC1C,iEAA+C;AAC/C,4DAA0C;AAC1C,6DAA2C;AAC3C,wDAAsC;AACtC,wDAAsC;AACtC,mDAAiC;AACjC,gDAA8B;AAC9B,uDAAqC;AACrC,0DAAwC;AACxC,8DAA4C;AAC5C,+DAA6C;AAC7C,mEAAiD;AACjD,iEAA+C;AAC/C,2DAAyC;AACzC,4DAA0C;AAC1C,mEAAiD;AACjD,yEAAuD;AACvD,mFAAiE;AACjE,4EAA0D;AAC1D,4EAA0D;AAC1D,6EAA2D;AAC3D,kEAAgD;AAChD,wDAAsC;AACtC,sEAAoD"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* Channels of the notification
|
|
5
|
+
*/
|
|
6
|
+
export declare const StepTypeEnum: {
|
|
7
|
+
readonly InApp: "in_app";
|
|
8
|
+
readonly Email: "email";
|
|
9
|
+
readonly Sms: "sms";
|
|
10
|
+
readonly Chat: "chat";
|
|
11
|
+
readonly Push: "push";
|
|
12
|
+
readonly Digest: "digest";
|
|
13
|
+
readonly Trigger: "trigger";
|
|
14
|
+
readonly Delay: "delay";
|
|
15
|
+
readonly Custom: "custom";
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Channels of the notification
|
|
19
|
+
*/
|
|
20
|
+
export type StepTypeEnum = ClosedEnum<typeof StepTypeEnum>;
|
|
21
|
+
/** @internal */
|
|
22
|
+
export declare const StepTypeEnum$inboundSchema: z.ZodNativeEnum<typeof StepTypeEnum>;
|
|
23
|
+
/** @internal */
|
|
24
|
+
export declare const StepTypeEnum$outboundSchema: z.ZodNativeEnum<typeof StepTypeEnum>;
|
|
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 StepTypeEnum$ {
|
|
30
|
+
/** @deprecated use `StepTypeEnum$inboundSchema` instead. */
|
|
31
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
32
|
+
readonly InApp: "in_app";
|
|
33
|
+
readonly Email: "email";
|
|
34
|
+
readonly Sms: "sms";
|
|
35
|
+
readonly Chat: "chat";
|
|
36
|
+
readonly Push: "push";
|
|
37
|
+
readonly Digest: "digest";
|
|
38
|
+
readonly Trigger: "trigger";
|
|
39
|
+
readonly Delay: "delay";
|
|
40
|
+
readonly Custom: "custom";
|
|
41
|
+
}>;
|
|
42
|
+
/** @deprecated use `StepTypeEnum$outboundSchema` instead. */
|
|
43
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
44
|
+
readonly InApp: "in_app";
|
|
45
|
+
readonly Email: "email";
|
|
46
|
+
readonly Sms: "sms";
|
|
47
|
+
readonly Chat: "chat";
|
|
48
|
+
readonly Push: "push";
|
|
49
|
+
readonly Digest: "digest";
|
|
50
|
+
readonly Trigger: "trigger";
|
|
51
|
+
readonly Delay: "delay";
|
|
52
|
+
readonly Custom: "custom";
|
|
53
|
+
}>;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=steptypeenum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"steptypeenum.d.ts","sourceRoot":"","sources":["../../src/models/components/steptypeenum.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;CAUf,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3D,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,YAAY,CAChD,CAAC;AAE7B,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,YAAY,CACjD,CAAC;AAE7B;;;GAGG;AACH,yBAAiB,aAAa,CAAC;IAC7B,4DAA4D;IACrD,MAAM,aAAa;;;;;;;;;;MAA6B,CAAC;IACxD,6DAA6D;IACtD,MAAM,cAAc;;;;;;;;;;MAA8B,CAAC;CAC3D"}
|
|
@@ -0,0 +1,60 @@
|
|
|
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.StepTypeEnum$ = exports.StepTypeEnum$outboundSchema = exports.StepTypeEnum$inboundSchema = exports.StepTypeEnum = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
/**
|
|
32
|
+
* Channels of the notification
|
|
33
|
+
*/
|
|
34
|
+
exports.StepTypeEnum = {
|
|
35
|
+
InApp: "in_app",
|
|
36
|
+
Email: "email",
|
|
37
|
+
Sms: "sms",
|
|
38
|
+
Chat: "chat",
|
|
39
|
+
Push: "push",
|
|
40
|
+
Digest: "digest",
|
|
41
|
+
Trigger: "trigger",
|
|
42
|
+
Delay: "delay",
|
|
43
|
+
Custom: "custom",
|
|
44
|
+
};
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.StepTypeEnum$inboundSchema = z.nativeEnum(exports.StepTypeEnum);
|
|
47
|
+
/** @internal */
|
|
48
|
+
exports.StepTypeEnum$outboundSchema = exports.StepTypeEnum$inboundSchema;
|
|
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 StepTypeEnum$;
|
|
54
|
+
(function (StepTypeEnum$) {
|
|
55
|
+
/** @deprecated use `StepTypeEnum$inboundSchema` instead. */
|
|
56
|
+
StepTypeEnum$.inboundSchema = exports.StepTypeEnum$inboundSchema;
|
|
57
|
+
/** @deprecated use `StepTypeEnum$outboundSchema` instead. */
|
|
58
|
+
StepTypeEnum$.outboundSchema = exports.StepTypeEnum$outboundSchema;
|
|
59
|
+
})(StepTypeEnum$ || (exports.StepTypeEnum$ = StepTypeEnum$ = {}));
|
|
60
|
+
//# sourceMappingURL=steptypeenum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"steptypeenum.js","sourceRoot":"","sources":["../../src/models/components/steptypeenum.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGzB;;GAEG;AACU,QAAA,YAAY,GAAG;IAC1B,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;CACR,CAAC;AAMX,gBAAgB;AACH,QAAA,0BAA0B,GACrC,CAAC,CAAC,UAAU,CAAC,oBAAY,CAAC,CAAC;AAE7B,gBAAgB;AACH,QAAA,2BAA2B,GACtC,kCAA0B,CAAC;AAE7B;;;GAGG;AACH,IAAiB,aAAa,CAK7B;AALD,WAAiB,aAAa;IAC5B,4DAA4D;IAC/C,2BAAa,GAAG,kCAA0B,CAAC;IACxD,6DAA6D;IAChD,4BAAc,GAAG,mCAA2B,CAAC;AAC5D,CAAC,EALgB,aAAa,6BAAb,aAAa,QAK7B"}
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -55,7 +55,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
55
55
|
export const SDK_METADATA = {
|
|
56
56
|
language: "typescript",
|
|
57
57
|
openapiDocVersion: "1.0",
|
|
58
|
-
sdkVersion: "0.0.1-alpha.
|
|
58
|
+
sdkVersion: "0.0.1-alpha.129",
|
|
59
59
|
genVersion: "2.481.0",
|
|
60
|
-
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
60
|
+
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.129 2.481.0 1.0 @novu/api",
|
|
61
61
|
} as const;
|
|
@@ -9,45 +9,39 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export const
|
|
12
|
+
export const Channels = {
|
|
13
13
|
InApp: "in_app",
|
|
14
14
|
Email: "email",
|
|
15
15
|
Sms: "sms",
|
|
16
16
|
Chat: "chat",
|
|
17
17
|
Push: "push",
|
|
18
18
|
} as const;
|
|
19
|
-
export type
|
|
20
|
-
typeof ActivityGraphStatesResponseChannels
|
|
21
|
-
>;
|
|
19
|
+
export type Channels = ClosedEnum<typeof Channels>;
|
|
22
20
|
|
|
23
21
|
export type ActivityGraphStatesResponse = {
|
|
24
22
|
id: string;
|
|
25
23
|
count: number;
|
|
26
24
|
templates: Array<string>;
|
|
27
|
-
channels: Array<
|
|
25
|
+
channels: Array<Channels>;
|
|
28
26
|
};
|
|
29
27
|
|
|
30
28
|
/** @internal */
|
|
31
|
-
export const
|
|
32
|
-
|
|
33
|
-
> = z.nativeEnum(ActivityGraphStatesResponseChannels);
|
|
29
|
+
export const Channels$inboundSchema: z.ZodNativeEnum<typeof Channels> = z
|
|
30
|
+
.nativeEnum(Channels);
|
|
34
31
|
|
|
35
32
|
/** @internal */
|
|
36
|
-
export const
|
|
37
|
-
|
|
38
|
-
ActivityGraphStatesResponseChannels$inboundSchema;
|
|
33
|
+
export const Channels$outboundSchema: z.ZodNativeEnum<typeof Channels> =
|
|
34
|
+
Channels$inboundSchema;
|
|
39
35
|
|
|
40
36
|
/**
|
|
41
37
|
* @internal
|
|
42
38
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
39
|
*/
|
|
44
|
-
export namespace
|
|
45
|
-
/** @deprecated use `
|
|
46
|
-
export const inboundSchema =
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
export const outboundSchema =
|
|
50
|
-
ActivityGraphStatesResponseChannels$outboundSchema;
|
|
40
|
+
export namespace Channels$ {
|
|
41
|
+
/** @deprecated use `Channels$inboundSchema` instead. */
|
|
42
|
+
export const inboundSchema = Channels$inboundSchema;
|
|
43
|
+
/** @deprecated use `Channels$outboundSchema` instead. */
|
|
44
|
+
export const outboundSchema = Channels$outboundSchema;
|
|
51
45
|
}
|
|
52
46
|
|
|
53
47
|
/** @internal */
|
|
@@ -59,7 +53,7 @@ export const ActivityGraphStatesResponse$inboundSchema: z.ZodType<
|
|
|
59
53
|
_id: z.string(),
|
|
60
54
|
count: z.number(),
|
|
61
55
|
templates: z.array(z.string()),
|
|
62
|
-
channels: z.array(
|
|
56
|
+
channels: z.array(Channels$inboundSchema),
|
|
63
57
|
}).transform((v) => {
|
|
64
58
|
return remap$(v, {
|
|
65
59
|
"_id": "id",
|
|
@@ -83,7 +77,7 @@ export const ActivityGraphStatesResponse$outboundSchema: z.ZodType<
|
|
|
83
77
|
id: z.string(),
|
|
84
78
|
count: z.number(),
|
|
85
79
|
templates: z.array(z.string()),
|
|
86
|
-
channels: z.array(
|
|
80
|
+
channels: z.array(Channels$outboundSchema),
|
|
87
81
|
}).transform((v) => {
|
|
88
82
|
return remap$(v, {
|
|
89
83
|
id: "_id",
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
10
|
import {
|
|
@@ -26,25 +25,11 @@ import {
|
|
|
26
25
|
ActivityNotificationTemplateResponseDto$Outbound,
|
|
27
26
|
ActivityNotificationTemplateResponseDto$outboundSchema,
|
|
28
27
|
} from "./activitynotificationtemplateresponsedto.js";
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
InApp: "in_app",
|
|
35
|
-
Email: "email",
|
|
36
|
-
Sms: "sms",
|
|
37
|
-
Chat: "chat",
|
|
38
|
-
Push: "push",
|
|
39
|
-
Digest: "digest",
|
|
40
|
-
Trigger: "trigger",
|
|
41
|
-
Delay: "delay",
|
|
42
|
-
Custom: "custom",
|
|
43
|
-
} as const;
|
|
44
|
-
/**
|
|
45
|
-
* Channels of the notification
|
|
46
|
-
*/
|
|
47
|
-
export type Channels = ClosedEnum<typeof Channels>;
|
|
28
|
+
import {
|
|
29
|
+
StepTypeEnum,
|
|
30
|
+
StepTypeEnum$inboundSchema,
|
|
31
|
+
StepTypeEnum$outboundSchema,
|
|
32
|
+
} from "./steptypeenum.js";
|
|
48
33
|
|
|
49
34
|
export type ActivityNotificationResponseDto = {
|
|
50
35
|
/**
|
|
@@ -67,10 +52,7 @@ export type ActivityNotificationResponseDto = {
|
|
|
67
52
|
* Creation time of the notification
|
|
68
53
|
*/
|
|
69
54
|
createdAt?: string | undefined;
|
|
70
|
-
|
|
71
|
-
* Channels of the notification
|
|
72
|
-
*/
|
|
73
|
-
channels?: Channels | undefined;
|
|
55
|
+
channels?: Array<StepTypeEnum> | undefined;
|
|
74
56
|
/**
|
|
75
57
|
* Subscriber of the notification
|
|
76
58
|
*/
|
|
@@ -85,25 +67,6 @@ export type ActivityNotificationResponseDto = {
|
|
|
85
67
|
jobs?: Array<ActivityNotificationJobResponseDto> | undefined;
|
|
86
68
|
};
|
|
87
69
|
|
|
88
|
-
/** @internal */
|
|
89
|
-
export const Channels$inboundSchema: z.ZodNativeEnum<typeof Channels> = z
|
|
90
|
-
.nativeEnum(Channels);
|
|
91
|
-
|
|
92
|
-
/** @internal */
|
|
93
|
-
export const Channels$outboundSchema: z.ZodNativeEnum<typeof Channels> =
|
|
94
|
-
Channels$inboundSchema;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* @internal
|
|
98
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
99
|
-
*/
|
|
100
|
-
export namespace Channels$ {
|
|
101
|
-
/** @deprecated use `Channels$inboundSchema` instead. */
|
|
102
|
-
export const inboundSchema = Channels$inboundSchema;
|
|
103
|
-
/** @deprecated use `Channels$outboundSchema` instead. */
|
|
104
|
-
export const outboundSchema = Channels$outboundSchema;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
70
|
/** @internal */
|
|
108
71
|
export const ActivityNotificationResponseDto$inboundSchema: z.ZodType<
|
|
109
72
|
ActivityNotificationResponseDto,
|
|
@@ -115,7 +78,7 @@ export const ActivityNotificationResponseDto$inboundSchema: z.ZodType<
|
|
|
115
78
|
_organizationId: z.string(),
|
|
116
79
|
transactionId: z.string(),
|
|
117
80
|
createdAt: z.string().optional(),
|
|
118
|
-
channels:
|
|
81
|
+
channels: z.array(StepTypeEnum$inboundSchema).optional(),
|
|
119
82
|
subscriber: ActivityNotificationSubscriberResponseDto$inboundSchema
|
|
120
83
|
.optional(),
|
|
121
84
|
template: ActivityNotificationTemplateResponseDto$inboundSchema.optional(),
|
|
@@ -135,7 +98,7 @@ export type ActivityNotificationResponseDto$Outbound = {
|
|
|
135
98
|
_organizationId: string;
|
|
136
99
|
transactionId: string;
|
|
137
100
|
createdAt?: string | undefined;
|
|
138
|
-
channels?: string | undefined;
|
|
101
|
+
channels?: Array<string> | undefined;
|
|
139
102
|
subscriber?: ActivityNotificationSubscriberResponseDto$Outbound | undefined;
|
|
140
103
|
template?: ActivityNotificationTemplateResponseDto$Outbound | undefined;
|
|
141
104
|
jobs?: Array<ActivityNotificationJobResponseDto$Outbound> | undefined;
|
|
@@ -152,7 +115,7 @@ export const ActivityNotificationResponseDto$outboundSchema: z.ZodType<
|
|
|
152
115
|
organizationId: z.string(),
|
|
153
116
|
transactionId: z.string(),
|
|
154
117
|
createdAt: z.string().optional(),
|
|
155
|
-
channels:
|
|
118
|
+
channels: z.array(StepTypeEnum$outboundSchema).optional(),
|
|
156
119
|
subscriber: ActivityNotificationSubscriberResponseDto$outboundSchema
|
|
157
120
|
.optional(),
|
|
158
121
|
template: ActivityNotificationTemplateResponseDto$outboundSchema.optional(),
|
|
@@ -70,6 +70,7 @@ export * from "./renametopicrequestdto.js";
|
|
|
70
70
|
export * from "./renametopicresponsedto.js";
|
|
71
71
|
export * from "./security.js";
|
|
72
72
|
export * from "./stepfilter.js";
|
|
73
|
+
export * from "./steptypeenum.js";
|
|
73
74
|
export * from "./subscriberchanneldto.js";
|
|
74
75
|
export * from "./subscriberfeedresponsedto.js";
|
|
75
76
|
export * from "./subscriberpayloaddto.js";
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Channels of the notification
|
|
10
|
+
*/
|
|
11
|
+
export const StepTypeEnum = {
|
|
12
|
+
InApp: "in_app",
|
|
13
|
+
Email: "email",
|
|
14
|
+
Sms: "sms",
|
|
15
|
+
Chat: "chat",
|
|
16
|
+
Push: "push",
|
|
17
|
+
Digest: "digest",
|
|
18
|
+
Trigger: "trigger",
|
|
19
|
+
Delay: "delay",
|
|
20
|
+
Custom: "custom",
|
|
21
|
+
} as const;
|
|
22
|
+
/**
|
|
23
|
+
* Channels of the notification
|
|
24
|
+
*/
|
|
25
|
+
export type StepTypeEnum = ClosedEnum<typeof StepTypeEnum>;
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const StepTypeEnum$inboundSchema: z.ZodNativeEnum<typeof StepTypeEnum> =
|
|
29
|
+
z.nativeEnum(StepTypeEnum);
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const StepTypeEnum$outboundSchema: z.ZodNativeEnum<typeof StepTypeEnum> =
|
|
33
|
+
StepTypeEnum$inboundSchema;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @internal
|
|
37
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
38
|
+
*/
|
|
39
|
+
export namespace StepTypeEnum$ {
|
|
40
|
+
/** @deprecated use `StepTypeEnum$inboundSchema` instead. */
|
|
41
|
+
export const inboundSchema = StepTypeEnum$inboundSchema;
|
|
42
|
+
/** @deprecated use `StepTypeEnum$outboundSchema` instead. */
|
|
43
|
+
export const outboundSchema = StepTypeEnum$outboundSchema;
|
|
44
|
+
}
|