@novu/api 0.0.1-alpha.140 → 0.0.1-alpha.141
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/index.d.ts +4 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -0
- package/models/components/index.js.map +1 -1
- package/models/components/notificationtriggerresponse.d.ts +55 -0
- package/models/components/notificationtriggerresponse.d.ts.map +1 -0
- package/models/components/notificationtriggerresponse.js +72 -0
- package/models/components/notificationtriggerresponse.js.map +1 -0
- package/models/components/notificationtriggervariableresponse.d.ts +101 -0
- package/models/components/notificationtriggervariableresponse.d.ts.map +1 -0
- package/models/components/notificationtriggervariableresponse.js +111 -0
- package/models/components/notificationtriggervariableresponse.js.map +1 -0
- package/models/components/templateresponse.d.ts +3 -2
- package/models/components/templateresponse.d.ts.map +1 -1
- package/models/components/templateresponse.js +3 -2
- package/models/components/templateresponse.js.map +1 -1
- package/models/components/triggerreservedvariableresponse.d.ts +69 -0
- package/models/components/triggerreservedvariableresponse.d.ts.map +1 -0
- package/models/components/triggerreservedvariableresponse.js +83 -0
- package/models/components/triggerreservedvariableresponse.js.map +1 -0
- package/models/components/triggertypeenum.d.ts +31 -0
- package/models/components/triggertypeenum.d.ts.map +1 -0
- package/models/components/triggertypeenum.js +52 -0
- package/models/components/triggertypeenum.js.map +1 -0
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +4 -0
- package/src/models/components/notificationtriggerresponse.ts +126 -0
- package/src/models/components/notificationtriggervariableresponse.ts +173 -0
- package/src/models/components/templateresponse.ts +10 -4
- package/src/models/components/triggerreservedvariableresponse.ts +116 -0
- package/src/models/components/triggertypeenum.ts +38 -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.141";
|
|
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.141 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.141",
|
|
34
34
|
genVersion: "2.481.0",
|
|
35
|
-
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
35
|
+
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.141 2.481.0 1.0 @novu/api",
|
|
36
36
|
};
|
|
37
37
|
//# sourceMappingURL=config.js.map
|
|
@@ -58,7 +58,9 @@ export * from "./notificationgroup.js";
|
|
|
58
58
|
export * from "./notificationstep.js";
|
|
59
59
|
export * from "./notificationstepvariant.js";
|
|
60
60
|
export * from "./notificationtrigger.js";
|
|
61
|
+
export * from "./notificationtriggerresponse.js";
|
|
61
62
|
export * from "./notificationtriggervariable.js";
|
|
63
|
+
export * from "./notificationtriggervariableresponse.js";
|
|
62
64
|
export * from "./preference.js";
|
|
63
65
|
export * from "./preferencechannels.js";
|
|
64
66
|
export * from "./providersidenum.js";
|
|
@@ -82,6 +84,8 @@ export * from "./triggereventrequestdto.js";
|
|
|
82
84
|
export * from "./triggereventresponsedto.js";
|
|
83
85
|
export * from "./triggereventtoallrequestdto.js";
|
|
84
86
|
export * from "./triggerrecipientstypeenum.js";
|
|
87
|
+
export * from "./triggerreservedvariableresponse.js";
|
|
88
|
+
export * from "./triggertypeenum.js";
|
|
85
89
|
export * from "./unseencountresponse.js";
|
|
86
90
|
export * from "./updatedsubscriberdto.js";
|
|
87
91
|
export * from "./updateintegrationrequestdto.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;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AACh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C;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,sCAAsC,CAAC;AACrD,cAAc,sBAAsB,CAAC;AACrC,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"}
|
|
@@ -77,7 +77,9 @@ __exportStar(require("./notificationgroup.js"), exports);
|
|
|
77
77
|
__exportStar(require("./notificationstep.js"), exports);
|
|
78
78
|
__exportStar(require("./notificationstepvariant.js"), exports);
|
|
79
79
|
__exportStar(require("./notificationtrigger.js"), exports);
|
|
80
|
+
__exportStar(require("./notificationtriggerresponse.js"), exports);
|
|
80
81
|
__exportStar(require("./notificationtriggervariable.js"), exports);
|
|
82
|
+
__exportStar(require("./notificationtriggervariableresponse.js"), exports);
|
|
81
83
|
__exportStar(require("./preference.js"), exports);
|
|
82
84
|
__exportStar(require("./preferencechannels.js"), exports);
|
|
83
85
|
__exportStar(require("./providersidenum.js"), exports);
|
|
@@ -101,6 +103,8 @@ __exportStar(require("./triggereventrequestdto.js"), exports);
|
|
|
101
103
|
__exportStar(require("./triggereventresponsedto.js"), exports);
|
|
102
104
|
__exportStar(require("./triggereventtoallrequestdto.js"), exports);
|
|
103
105
|
__exportStar(require("./triggerrecipientstypeenum.js"), exports);
|
|
106
|
+
__exportStar(require("./triggerreservedvariableresponse.js"), exports);
|
|
107
|
+
__exportStar(require("./triggertypeenum.js"), exports);
|
|
104
108
|
__exportStar(require("./unseencountresponse.js"), exports);
|
|
105
109
|
__exportStar(require("./updatedsubscriberdto.js"), exports);
|
|
106
110
|
__exportStar(require("./updateintegrationrequestdto.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;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,uDAAqC;AACrC,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"}
|
|
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,mEAAiD;AACjD,2EAAyD;AACzD,kDAAgC;AAChC,0DAAwC;AACxC,uDAAqC;AACrC,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,uEAAqD;AACrD,uDAAqC;AACrC,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 { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { NotificationTriggerVariableResponse, NotificationTriggerVariableResponse$Outbound } from "./notificationtriggervariableresponse.js";
|
|
5
|
+
import { TriggerReservedVariableResponse, TriggerReservedVariableResponse$Outbound } from "./triggerreservedvariableresponse.js";
|
|
6
|
+
import { TriggerTypeEnum } from "./triggertypeenum.js";
|
|
7
|
+
export type NotificationTriggerResponse = {
|
|
8
|
+
/**
|
|
9
|
+
* The type of the trigger
|
|
10
|
+
*/
|
|
11
|
+
type: TriggerTypeEnum;
|
|
12
|
+
/**
|
|
13
|
+
* The identifier of the trigger
|
|
14
|
+
*/
|
|
15
|
+
identifier: string;
|
|
16
|
+
/**
|
|
17
|
+
* The variables of the trigger
|
|
18
|
+
*/
|
|
19
|
+
variables: Array<NotificationTriggerVariableResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* The subscriber variables of the trigger
|
|
22
|
+
*/
|
|
23
|
+
subscriberVariables?: Array<NotificationTriggerVariableResponse> | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* The reserved variables of the trigger
|
|
26
|
+
*/
|
|
27
|
+
reservedVariables?: Array<TriggerReservedVariableResponse> | undefined;
|
|
28
|
+
};
|
|
29
|
+
/** @internal */
|
|
30
|
+
export declare const NotificationTriggerResponse$inboundSchema: z.ZodType<NotificationTriggerResponse, z.ZodTypeDef, unknown>;
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type NotificationTriggerResponse$Outbound = {
|
|
33
|
+
type: string;
|
|
34
|
+
identifier: string;
|
|
35
|
+
variables: Array<NotificationTriggerVariableResponse$Outbound>;
|
|
36
|
+
subscriberVariables?: Array<NotificationTriggerVariableResponse$Outbound> | undefined;
|
|
37
|
+
reservedVariables?: Array<TriggerReservedVariableResponse$Outbound> | undefined;
|
|
38
|
+
};
|
|
39
|
+
/** @internal */
|
|
40
|
+
export declare const NotificationTriggerResponse$outboundSchema: z.ZodType<NotificationTriggerResponse$Outbound, z.ZodTypeDef, NotificationTriggerResponse>;
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
+
*/
|
|
45
|
+
export declare namespace NotificationTriggerResponse$ {
|
|
46
|
+
/** @deprecated use `NotificationTriggerResponse$inboundSchema` instead. */
|
|
47
|
+
const inboundSchema: z.ZodType<NotificationTriggerResponse, z.ZodTypeDef, unknown>;
|
|
48
|
+
/** @deprecated use `NotificationTriggerResponse$outboundSchema` instead. */
|
|
49
|
+
const outboundSchema: z.ZodType<NotificationTriggerResponse$Outbound, z.ZodTypeDef, NotificationTriggerResponse>;
|
|
50
|
+
/** @deprecated use `NotificationTriggerResponse$Outbound` instead. */
|
|
51
|
+
type Outbound = NotificationTriggerResponse$Outbound;
|
|
52
|
+
}
|
|
53
|
+
export declare function notificationTriggerResponseToJSON(notificationTriggerResponse: NotificationTriggerResponse): string;
|
|
54
|
+
export declare function notificationTriggerResponseFromJSON(jsonString: string): SafeParseResult<NotificationTriggerResponse, SDKValidationError>;
|
|
55
|
+
//# sourceMappingURL=notificationtriggerresponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notificationtriggerresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/notificationtriggerresponse.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,mCAAmC,EAEnC,4CAA4C,EAE7C,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,+BAA+B,EAE/B,wCAAwC,EAEzC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,eAAe,EAGhB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,IAAI,EAAE,eAAe,CAAC;IACtB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,mCAAmC,CAAC,CAAC;IACtD;;OAEG;IACH,mBAAmB,CAAC,EAAE,KAAK,CAAC,mCAAmC,CAAC,GAAG,SAAS,CAAC;IAC7E;;OAEG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,+BAA+B,CAAC,GAAG,SAAS,CAAC;CACxE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,KAAK,CAAC,4CAA4C,CAAC,CAAC;IAC/D,mBAAmB,CAAC,EAChB,KAAK,CAAC,4CAA4C,CAAC,GACnD,SAAS,CAAC;IACd,iBAAiB,CAAC,EACd,KAAK,CAAC,wCAAwC,CAAC,GAC/C,SAAS,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAU3B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,4BAA4B,CAAC;IAC5C,2EAA2E;IACpE,MAAM,aAAa,+DAA4C,CAAC;IACvE,4EAA4E;IACrE,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"}
|
|
@@ -0,0 +1,72 @@
|
|
|
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.notificationTriggerResponseFromJSON = exports.notificationTriggerResponseToJSON = exports.NotificationTriggerResponse$ = exports.NotificationTriggerResponse$outboundSchema = exports.NotificationTriggerResponse$inboundSchema = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
32
|
+
const notificationtriggervariableresponse_js_1 = require("./notificationtriggervariableresponse.js");
|
|
33
|
+
const triggerreservedvariableresponse_js_1 = require("./triggerreservedvariableresponse.js");
|
|
34
|
+
const triggertypeenum_js_1 = require("./triggertypeenum.js");
|
|
35
|
+
/** @internal */
|
|
36
|
+
exports.NotificationTriggerResponse$inboundSchema = z.object({
|
|
37
|
+
type: triggertypeenum_js_1.TriggerTypeEnum$inboundSchema,
|
|
38
|
+
identifier: z.string(),
|
|
39
|
+
variables: z.array(notificationtriggervariableresponse_js_1.NotificationTriggerVariableResponse$inboundSchema),
|
|
40
|
+
subscriberVariables: z.array(notificationtriggervariableresponse_js_1.NotificationTriggerVariableResponse$inboundSchema).optional(),
|
|
41
|
+
reservedVariables: z.array(triggerreservedvariableresponse_js_1.TriggerReservedVariableResponse$inboundSchema)
|
|
42
|
+
.optional(),
|
|
43
|
+
});
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.NotificationTriggerResponse$outboundSchema = z.object({
|
|
46
|
+
type: triggertypeenum_js_1.TriggerTypeEnum$outboundSchema,
|
|
47
|
+
identifier: z.string(),
|
|
48
|
+
variables: z.array(notificationtriggervariableresponse_js_1.NotificationTriggerVariableResponse$outboundSchema),
|
|
49
|
+
subscriberVariables: z.array(notificationtriggervariableresponse_js_1.NotificationTriggerVariableResponse$outboundSchema).optional(),
|
|
50
|
+
reservedVariables: z.array(triggerreservedvariableresponse_js_1.TriggerReservedVariableResponse$outboundSchema)
|
|
51
|
+
.optional(),
|
|
52
|
+
});
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
+
*/
|
|
57
|
+
var NotificationTriggerResponse$;
|
|
58
|
+
(function (NotificationTriggerResponse$) {
|
|
59
|
+
/** @deprecated use `NotificationTriggerResponse$inboundSchema` instead. */
|
|
60
|
+
NotificationTriggerResponse$.inboundSchema = exports.NotificationTriggerResponse$inboundSchema;
|
|
61
|
+
/** @deprecated use `NotificationTriggerResponse$outboundSchema` instead. */
|
|
62
|
+
NotificationTriggerResponse$.outboundSchema = exports.NotificationTriggerResponse$outboundSchema;
|
|
63
|
+
})(NotificationTriggerResponse$ || (exports.NotificationTriggerResponse$ = NotificationTriggerResponse$ = {}));
|
|
64
|
+
function notificationTriggerResponseToJSON(notificationTriggerResponse) {
|
|
65
|
+
return JSON.stringify(exports.NotificationTriggerResponse$outboundSchema.parse(notificationTriggerResponse));
|
|
66
|
+
}
|
|
67
|
+
exports.notificationTriggerResponseToJSON = notificationTriggerResponseToJSON;
|
|
68
|
+
function notificationTriggerResponseFromJSON(jsonString) {
|
|
69
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.NotificationTriggerResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NotificationTriggerResponse' from JSON`);
|
|
70
|
+
}
|
|
71
|
+
exports.notificationTriggerResponseFromJSON = notificationTriggerResponseFromJSON;
|
|
72
|
+
//# sourceMappingURL=notificationtriggerresponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notificationtriggerresponse.js","sourceRoot":"","sources":["../../src/models/components/notificationtriggerresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAGjD,qGAKkD;AAClD,6FAK8C;AAC9C,6DAI8B;AAyB9B,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,kDAA6B;IACnC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,0FAAiD,CAAC;IACrE,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAC1B,0FAAiD,CAClD,CAAC,QAAQ,EAAE;IACZ,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,kFAA6C,CAAC;SACtE,QAAQ,EAAE;CACd,CAAC,CAAC;AAeH,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,mDAA8B;IACpC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,2FAAkD,CAAC;IACtE,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAC1B,2FAAkD,CACnD,CAAC,QAAQ,EAAE;IACZ,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,mFAA8C,CAAC;SACvE,QAAQ,EAAE;CACd,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"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
/**
|
|
6
|
+
* The value of the variable
|
|
7
|
+
*/
|
|
8
|
+
export type Value = {};
|
|
9
|
+
/**
|
|
10
|
+
* The type of the variable
|
|
11
|
+
*/
|
|
12
|
+
export declare const NotificationTriggerVariableResponseType: {
|
|
13
|
+
readonly String: "String";
|
|
14
|
+
readonly Array: "Array";
|
|
15
|
+
readonly Boolean: "Boolean";
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* The type of the variable
|
|
19
|
+
*/
|
|
20
|
+
export type NotificationTriggerVariableResponseType = ClosedEnum<typeof NotificationTriggerVariableResponseType>;
|
|
21
|
+
export type NotificationTriggerVariableResponse = {
|
|
22
|
+
/**
|
|
23
|
+
* The name of the variable
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
/**
|
|
27
|
+
* The value of the variable
|
|
28
|
+
*/
|
|
29
|
+
value?: Value | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* The type of the variable
|
|
32
|
+
*/
|
|
33
|
+
type?: NotificationTriggerVariableResponseType | undefined;
|
|
34
|
+
};
|
|
35
|
+
/** @internal */
|
|
36
|
+
export declare const Value$inboundSchema: z.ZodType<Value, z.ZodTypeDef, unknown>;
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type Value$Outbound = {};
|
|
39
|
+
/** @internal */
|
|
40
|
+
export declare const Value$outboundSchema: z.ZodType<Value$Outbound, z.ZodTypeDef, Value>;
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
+
*/
|
|
45
|
+
export declare namespace Value$ {
|
|
46
|
+
/** @deprecated use `Value$inboundSchema` instead. */
|
|
47
|
+
const inboundSchema: z.ZodType<Value, z.ZodTypeDef, unknown>;
|
|
48
|
+
/** @deprecated use `Value$outboundSchema` instead. */
|
|
49
|
+
const outboundSchema: z.ZodType<Value$Outbound, z.ZodTypeDef, Value>;
|
|
50
|
+
/** @deprecated use `Value$Outbound` instead. */
|
|
51
|
+
type Outbound = Value$Outbound;
|
|
52
|
+
}
|
|
53
|
+
export declare function valueToJSON(value: Value): string;
|
|
54
|
+
export declare function valueFromJSON(jsonString: string): SafeParseResult<Value, SDKValidationError>;
|
|
55
|
+
/** @internal */
|
|
56
|
+
export declare const NotificationTriggerVariableResponseType$inboundSchema: z.ZodNativeEnum<typeof NotificationTriggerVariableResponseType>;
|
|
57
|
+
/** @internal */
|
|
58
|
+
export declare const NotificationTriggerVariableResponseType$outboundSchema: z.ZodNativeEnum<typeof NotificationTriggerVariableResponseType>;
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
62
|
+
*/
|
|
63
|
+
export declare namespace NotificationTriggerVariableResponseType$ {
|
|
64
|
+
/** @deprecated use `NotificationTriggerVariableResponseType$inboundSchema` instead. */
|
|
65
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
66
|
+
readonly String: "String";
|
|
67
|
+
readonly Array: "Array";
|
|
68
|
+
readonly Boolean: "Boolean";
|
|
69
|
+
}>;
|
|
70
|
+
/** @deprecated use `NotificationTriggerVariableResponseType$outboundSchema` instead. */
|
|
71
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
72
|
+
readonly String: "String";
|
|
73
|
+
readonly Array: "Array";
|
|
74
|
+
readonly Boolean: "Boolean";
|
|
75
|
+
}>;
|
|
76
|
+
}
|
|
77
|
+
/** @internal */
|
|
78
|
+
export declare const NotificationTriggerVariableResponse$inboundSchema: z.ZodType<NotificationTriggerVariableResponse, z.ZodTypeDef, unknown>;
|
|
79
|
+
/** @internal */
|
|
80
|
+
export type NotificationTriggerVariableResponse$Outbound = {
|
|
81
|
+
name: string;
|
|
82
|
+
value?: Value$Outbound | undefined;
|
|
83
|
+
type?: string | undefined;
|
|
84
|
+
};
|
|
85
|
+
/** @internal */
|
|
86
|
+
export declare const NotificationTriggerVariableResponse$outboundSchema: z.ZodType<NotificationTriggerVariableResponse$Outbound, z.ZodTypeDef, NotificationTriggerVariableResponse>;
|
|
87
|
+
/**
|
|
88
|
+
* @internal
|
|
89
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
90
|
+
*/
|
|
91
|
+
export declare namespace NotificationTriggerVariableResponse$ {
|
|
92
|
+
/** @deprecated use `NotificationTriggerVariableResponse$inboundSchema` instead. */
|
|
93
|
+
const inboundSchema: z.ZodType<NotificationTriggerVariableResponse, z.ZodTypeDef, unknown>;
|
|
94
|
+
/** @deprecated use `NotificationTriggerVariableResponse$outboundSchema` instead. */
|
|
95
|
+
const outboundSchema: z.ZodType<NotificationTriggerVariableResponse$Outbound, z.ZodTypeDef, NotificationTriggerVariableResponse>;
|
|
96
|
+
/** @deprecated use `NotificationTriggerVariableResponse$Outbound` instead. */
|
|
97
|
+
type Outbound = NotificationTriggerVariableResponse$Outbound;
|
|
98
|
+
}
|
|
99
|
+
export declare function notificationTriggerVariableResponseToJSON(notificationTriggerVariableResponse: NotificationTriggerVariableResponse): string;
|
|
100
|
+
export declare function notificationTriggerVariableResponseFromJSON(jsonString: string): SafeParseResult<NotificationTriggerVariableResponse, SDKValidationError>;
|
|
101
|
+
//# sourceMappingURL=notificationtriggervariableresponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notificationtriggervariableresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/notificationtriggervariableresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG,EAAE,CAAC;AAEvB;;GAEG;AACH,eAAO,MAAM,uCAAuC;;;;CAI1C,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,uCAAuC,GAAG,UAAU,CAC9D,OAAO,uCAAuC,CAC/C,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG;IAChD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,uCAAuC,GAAG,SAAS,CAAC;CAC5D,CAAC;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Ac,GAAG,SAAS,CAAC;IACnC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kDAAkD,EAAE,CAAC,CAAC,OAAO,CACxE,4CAA4C,EAC5C,CAAC,CAAC,UAAU,EACZ,mCAAmC,CAKnC,CAAC;AAEH;;;GAGG;AACH,yBAAiB,oCAAoC,CAAC;IACpD,mFAAmF;IAC5E,MAAM,aAAa,uEACyB,CAAC;IACpD,oFAAoF;IAC7E,MAAM,cAAc,4GACyB,CAAC;IACrD,8EAA8E;IAC9E,KAAY,QAAQ,GAAG,4CAA4C,CAAC;CACrE;AAED,wBAAgB,yCAAyC,CACvD,mCAAmC,EAAE,mCAAmC,GACvE,MAAM,CAMR;AAED,wBAAgB,2CAA2C,CACzD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mCAAmC,EAAE,kBAAkB,CAAC,CAO1E"}
|
|
@@ -0,0 +1,111 @@
|
|
|
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.notificationTriggerVariableResponseFromJSON = exports.notificationTriggerVariableResponseToJSON = exports.NotificationTriggerVariableResponse$ = exports.NotificationTriggerVariableResponse$outboundSchema = exports.NotificationTriggerVariableResponse$inboundSchema = exports.NotificationTriggerVariableResponseType$ = exports.NotificationTriggerVariableResponseType$outboundSchema = exports.NotificationTriggerVariableResponseType$inboundSchema = exports.valueFromJSON = exports.valueToJSON = exports.Value$ = exports.Value$outboundSchema = exports.Value$inboundSchema = exports.NotificationTriggerVariableResponseType = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
32
|
+
/**
|
|
33
|
+
* The type of the variable
|
|
34
|
+
*/
|
|
35
|
+
exports.NotificationTriggerVariableResponseType = {
|
|
36
|
+
String: "String",
|
|
37
|
+
Array: "Array",
|
|
38
|
+
Boolean: "Boolean",
|
|
39
|
+
};
|
|
40
|
+
/** @internal */
|
|
41
|
+
exports.Value$inboundSchema = z
|
|
42
|
+
.object({});
|
|
43
|
+
/** @internal */
|
|
44
|
+
exports.Value$outboundSchema = z.object({});
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
48
|
+
*/
|
|
49
|
+
var Value$;
|
|
50
|
+
(function (Value$) {
|
|
51
|
+
/** @deprecated use `Value$inboundSchema` instead. */
|
|
52
|
+
Value$.inboundSchema = exports.Value$inboundSchema;
|
|
53
|
+
/** @deprecated use `Value$outboundSchema` instead. */
|
|
54
|
+
Value$.outboundSchema = exports.Value$outboundSchema;
|
|
55
|
+
})(Value$ || (exports.Value$ = Value$ = {}));
|
|
56
|
+
function valueToJSON(value) {
|
|
57
|
+
return JSON.stringify(exports.Value$outboundSchema.parse(value));
|
|
58
|
+
}
|
|
59
|
+
exports.valueToJSON = valueToJSON;
|
|
60
|
+
function valueFromJSON(jsonString) {
|
|
61
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Value$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Value' from JSON`);
|
|
62
|
+
}
|
|
63
|
+
exports.valueFromJSON = valueFromJSON;
|
|
64
|
+
/** @internal */
|
|
65
|
+
exports.NotificationTriggerVariableResponseType$inboundSchema = z
|
|
66
|
+
.nativeEnum(exports.NotificationTriggerVariableResponseType);
|
|
67
|
+
/** @internal */
|
|
68
|
+
exports.NotificationTriggerVariableResponseType$outboundSchema = exports.NotificationTriggerVariableResponseType$inboundSchema;
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
72
|
+
*/
|
|
73
|
+
var NotificationTriggerVariableResponseType$;
|
|
74
|
+
(function (NotificationTriggerVariableResponseType$) {
|
|
75
|
+
/** @deprecated use `NotificationTriggerVariableResponseType$inboundSchema` instead. */
|
|
76
|
+
NotificationTriggerVariableResponseType$.inboundSchema = exports.NotificationTriggerVariableResponseType$inboundSchema;
|
|
77
|
+
/** @deprecated use `NotificationTriggerVariableResponseType$outboundSchema` instead. */
|
|
78
|
+
NotificationTriggerVariableResponseType$.outboundSchema = exports.NotificationTriggerVariableResponseType$outboundSchema;
|
|
79
|
+
})(NotificationTriggerVariableResponseType$ || (exports.NotificationTriggerVariableResponseType$ = NotificationTriggerVariableResponseType$ = {}));
|
|
80
|
+
/** @internal */
|
|
81
|
+
exports.NotificationTriggerVariableResponse$inboundSchema = z.object({
|
|
82
|
+
name: z.string(),
|
|
83
|
+
value: z.lazy(() => exports.Value$inboundSchema).optional(),
|
|
84
|
+
type: exports.NotificationTriggerVariableResponseType$inboundSchema.optional(),
|
|
85
|
+
});
|
|
86
|
+
/** @internal */
|
|
87
|
+
exports.NotificationTriggerVariableResponse$outboundSchema = z.object({
|
|
88
|
+
name: z.string(),
|
|
89
|
+
value: z.lazy(() => exports.Value$outboundSchema).optional(),
|
|
90
|
+
type: exports.NotificationTriggerVariableResponseType$outboundSchema.optional(),
|
|
91
|
+
});
|
|
92
|
+
/**
|
|
93
|
+
* @internal
|
|
94
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
95
|
+
*/
|
|
96
|
+
var NotificationTriggerVariableResponse$;
|
|
97
|
+
(function (NotificationTriggerVariableResponse$) {
|
|
98
|
+
/** @deprecated use `NotificationTriggerVariableResponse$inboundSchema` instead. */
|
|
99
|
+
NotificationTriggerVariableResponse$.inboundSchema = exports.NotificationTriggerVariableResponse$inboundSchema;
|
|
100
|
+
/** @deprecated use `NotificationTriggerVariableResponse$outboundSchema` instead. */
|
|
101
|
+
NotificationTriggerVariableResponse$.outboundSchema = exports.NotificationTriggerVariableResponse$outboundSchema;
|
|
102
|
+
})(NotificationTriggerVariableResponse$ || (exports.NotificationTriggerVariableResponse$ = NotificationTriggerVariableResponse$ = {}));
|
|
103
|
+
function notificationTriggerVariableResponseToJSON(notificationTriggerVariableResponse) {
|
|
104
|
+
return JSON.stringify(exports.NotificationTriggerVariableResponse$outboundSchema.parse(notificationTriggerVariableResponse));
|
|
105
|
+
}
|
|
106
|
+
exports.notificationTriggerVariableResponseToJSON = notificationTriggerVariableResponseToJSON;
|
|
107
|
+
function notificationTriggerVariableResponseFromJSON(jsonString) {
|
|
108
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.NotificationTriggerVariableResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NotificationTriggerVariableResponse' from JSON`);
|
|
109
|
+
}
|
|
110
|
+
exports.notificationTriggerVariableResponseFromJSON = notificationTriggerVariableResponseFromJSON;
|
|
111
|
+
//# sourceMappingURL=notificationtriggervariableresponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notificationtriggervariableresponse.js","sourceRoot":"","sources":["../../src/models/components/notificationtriggervariableresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAUjD;;GAEG;AACU,QAAA,uCAAuC,GAAG;IACrD,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;CACV,CAAC;AAuBX,gBAAgB;AACH,QAAA,mBAAmB,GAA4C,CAAC;KAC1E,MAAM,CAAC,EAAE,CAAC,CAAC;AAKd,gBAAgB;AACH,QAAA,oBAAoB,GAI7B,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEjB;;;GAGG;AACH,IAAiB,MAAM,CAOtB;AAPD,WAAiB,MAAM;IACrB,qDAAqD;IACxC,oBAAa,GAAG,2BAAmB,CAAC;IACjD,sDAAsD;IACzC,qBAAc,GAAG,4BAAoB,CAAC;AAGrD,CAAC,EAPgB,MAAM,sBAAN,MAAM,QAOtB;AAED,SAAgB,WAAW,CAAC,KAAY;IACtC,OAAO,IAAI,CAAC,SAAS,CAAC,4BAAoB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AAC3D,CAAC;AAFD,kCAEC;AAED,SAAgB,aAAa,CAC3B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2BAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/C,mCAAmC,CACpC,CAAC;AACJ,CAAC;AARD,sCAQC;AAED,gBAAgB;AACH,QAAA,qDAAqD,GACE,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ElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,yDAAiD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxE,iEAAiE,CAClE,CAAC;AACJ,CAAC;AATD,kGASC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { NotificationTriggerResponse, NotificationTriggerResponse$Outbound } from "./notificationtriggerresponse.js";
|
|
4
5
|
export type TemplateResponse = {
|
|
5
6
|
/**
|
|
6
7
|
* Unique identifier of the workflow
|
|
@@ -17,7 +18,7 @@ export type TemplateResponse = {
|
|
|
17
18
|
/**
|
|
18
19
|
* Triggers are the events that will trigger the workflow.
|
|
19
20
|
*/
|
|
20
|
-
triggers: Array<
|
|
21
|
+
triggers: Array<NotificationTriggerResponse>;
|
|
21
22
|
};
|
|
22
23
|
/** @internal */
|
|
23
24
|
export declare const TemplateResponse$inboundSchema: z.ZodType<TemplateResponse, z.ZodTypeDef, unknown>;
|
|
@@ -26,7 +27,7 @@ export type TemplateResponse$Outbound = {
|
|
|
26
27
|
_id: string;
|
|
27
28
|
name: string;
|
|
28
29
|
critical: boolean;
|
|
29
|
-
triggers: Array<
|
|
30
|
+
triggers: Array<NotificationTriggerResponse$Outbound>;
|
|
30
31
|
};
|
|
31
32
|
/** @internal */
|
|
32
33
|
export declare const TemplateResponse$outboundSchema: z.ZodType<TemplateResponse$Outbound, z.ZodTypeDef, TemplateResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templateresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/templateresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM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A2D;IAC3D,KAAY,QAAQ,GAAG,yBAAyB,CAAC;CAClD;AAED,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,GACjC,MAAM,CAIR;AAED,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
|
|
@@ -30,12 +30,13 @@ exports.templateResponseFromJSON = exports.templateResponseToJSON = exports.Temp
|
|
|
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
|
+
const notificationtriggerresponse_js_1 = require("./notificationtriggerresponse.js");
|
|
33
34
|
/** @internal */
|
|
34
35
|
exports.TemplateResponse$inboundSchema = z.object({
|
|
35
36
|
_id: z.string(),
|
|
36
37
|
name: z.string(),
|
|
37
38
|
critical: z.boolean(),
|
|
38
|
-
triggers: z.array(
|
|
39
|
+
triggers: z.array(notificationtriggerresponse_js_1.NotificationTriggerResponse$inboundSchema),
|
|
39
40
|
}).transform((v) => {
|
|
40
41
|
return (0, primitives_js_1.remap)(v, {
|
|
41
42
|
"_id": "id",
|
|
@@ -46,7 +47,7 @@ exports.TemplateResponse$outboundSchema = z.object({
|
|
|
46
47
|
id: z.string(),
|
|
47
48
|
name: z.string(),
|
|
48
49
|
critical: z.boolean(),
|
|
49
|
-
triggers: z.array(
|
|
50
|
+
triggers: z.array(notificationtriggerresponse_js_1.NotificationTriggerResponse$outboundSchema),
|
|
50
51
|
}).transform((v) => {
|
|
51
52
|
return (0, primitives_js_1.remap)(v, {
|
|
52
53
|
id: "_id",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templateresponse.js","sourceRoot":"","sources":["../../src/models/components/templateresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDA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ED,SAAgB,sBAAsB,CACpC,gBAAkC;IAElC,OAAO,IAAI,CAAC,SAAS,CACnB,uCAA+B,CAAC,KAAK,CAAC,gBAAgB,CAAC,CACxD,CAAC;AACJ,CAAC;AAND,wDAMC;AAED,SAAgB,wBAAwB,CACtC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AACJ,CAAC;AARD,4DAQC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
/**
|
|
6
|
+
* The type of the reserved variable
|
|
7
|
+
*/
|
|
8
|
+
export declare const TriggerReservedVariableResponseType: {
|
|
9
|
+
readonly Tenant: "tenant";
|
|
10
|
+
readonly Actor: "actor";
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The type of the reserved variable
|
|
14
|
+
*/
|
|
15
|
+
export type TriggerReservedVariableResponseType = ClosedEnum<typeof TriggerReservedVariableResponseType>;
|
|
16
|
+
export type TriggerReservedVariableResponse = {
|
|
17
|
+
/**
|
|
18
|
+
* The type of the reserved variable
|
|
19
|
+
*/
|
|
20
|
+
type: TriggerReservedVariableResponseType;
|
|
21
|
+
/**
|
|
22
|
+
* The reserved variables of the trigger
|
|
23
|
+
*/
|
|
24
|
+
variables: Array<string>;
|
|
25
|
+
};
|
|
26
|
+
/** @internal */
|
|
27
|
+
export declare const TriggerReservedVariableResponseType$inboundSchema: z.ZodNativeEnum<typeof TriggerReservedVariableResponseType>;
|
|
28
|
+
/** @internal */
|
|
29
|
+
export declare const TriggerReservedVariableResponseType$outboundSchema: z.ZodNativeEnum<typeof TriggerReservedVariableResponseType>;
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
33
|
+
*/
|
|
34
|
+
export declare namespace TriggerReservedVariableResponseType$ {
|
|
35
|
+
/** @deprecated use `TriggerReservedVariableResponseType$inboundSchema` instead. */
|
|
36
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
37
|
+
readonly Tenant: "tenant";
|
|
38
|
+
readonly Actor: "actor";
|
|
39
|
+
}>;
|
|
40
|
+
/** @deprecated use `TriggerReservedVariableResponseType$outboundSchema` instead. */
|
|
41
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
42
|
+
readonly Tenant: "tenant";
|
|
43
|
+
readonly Actor: "actor";
|
|
44
|
+
}>;
|
|
45
|
+
}
|
|
46
|
+
/** @internal */
|
|
47
|
+
export declare const TriggerReservedVariableResponse$inboundSchema: z.ZodType<TriggerReservedVariableResponse, z.ZodTypeDef, unknown>;
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type TriggerReservedVariableResponse$Outbound = {
|
|
50
|
+
type: string;
|
|
51
|
+
variables: Array<string>;
|
|
52
|
+
};
|
|
53
|
+
/** @internal */
|
|
54
|
+
export declare const TriggerReservedVariableResponse$outboundSchema: z.ZodType<TriggerReservedVariableResponse$Outbound, z.ZodTypeDef, TriggerReservedVariableResponse>;
|
|
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
|
+
export declare namespace TriggerReservedVariableResponse$ {
|
|
60
|
+
/** @deprecated use `TriggerReservedVariableResponse$inboundSchema` instead. */
|
|
61
|
+
const inboundSchema: z.ZodType<TriggerReservedVariableResponse, z.ZodTypeDef, unknown>;
|
|
62
|
+
/** @deprecated use `TriggerReservedVariableResponse$outboundSchema` instead. */
|
|
63
|
+
const outboundSchema: z.ZodType<TriggerReservedVariableResponse$Outbound, z.ZodTypeDef, TriggerReservedVariableResponse>;
|
|
64
|
+
/** @deprecated use `TriggerReservedVariableResponse$Outbound` instead. */
|
|
65
|
+
type Outbound = TriggerReservedVariableResponse$Outbound;
|
|
66
|
+
}
|
|
67
|
+
export declare function triggerReservedVariableResponseToJSON(triggerReservedVariableResponse: TriggerReservedVariableResponse): string;
|
|
68
|
+
export declare function triggerReservedVariableResponseFromJSON(jsonString: string): SafeParseResult<TriggerReservedVariableResponse, SDKValidationError>;
|
|
69
|
+
//# sourceMappingURL=triggerreservedvariableresponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"triggerreservedvariableresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/triggerreservedvariableresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,mCAAmC;;;CAGtC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG,UAAU,CAC1D,OAAO,mCAAmC,CAC3C,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;OAEG;IACH,IAAI,EAAE,mCAAmC,CAAC;IAC1C;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iDAAiD,EAAE,CAAC,CAAC,aAAa,CAC7E,OAAO,mCAAmC,CACS,CAAC;AAEtD,gBAAgB;AAChB,eAAO,MAAM,kDAAkD,EAC7D,CAAC,CAAC,aAAa,CAAC,OAAO,mCAAmC,CACP,CAAC;AAEtD;;;GAGG;AACH,yBAAiB,oCAAoC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