@novu/api 0.0.1-alpha.192 → 0.0.1-alpha.193
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 +3 -3
- package/lib/config.js +3 -3
- package/models/components/activitynotificationexecutiondetailresponsedto.d.ts +4 -83
- package/models/components/activitynotificationexecutiondetailresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationexecutiondetailresponsedto.js +7 -56
- package/models/components/activitynotificationexecutiondetailresponsedto.js.map +1 -1
- package/models/components/activitynotificationjobresponsedto.d.ts +3 -3
- package/models/components/activitynotificationjobresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationjobresponsedto.js +3 -3
- package/models/components/activitynotificationjobresponsedto.js.map +1 -1
- package/models/components/activitynotificationresponsedto.d.ts +112 -0
- package/models/components/activitynotificationresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationresponsedto.js +94 -1
- package/models/components/activitynotificationresponsedto.js.map +1 -1
- package/models/components/activitynotificationstepresponsedto.d.ts +139 -3
- package/models/components/activitynotificationstepresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationstepresponsedto.js +117 -4
- package/models/components/activitynotificationstepresponsedto.js.map +1 -1
- package/models/components/activitynotificationtemplateresponsedto.d.ts +3 -3
- package/models/components/activitynotificationtemplateresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationtemplateresponsedto.js +3 -3
- package/models/components/activitynotificationtemplateresponsedto.js.map +1 -1
- package/models/components/{builderfieldtype.d.ts → builderfieldtypeenum.d.ts} +8 -8
- package/models/components/builderfieldtypeenum.d.ts.map +1 -0
- package/models/components/{builderfieldtype.js → builderfieldtypeenum.js} +12 -12
- package/models/components/builderfieldtypeenum.js.map +1 -0
- package/models/components/{digestwitheventsdto.d.ts → digestmetadatadto.d.ts} +47 -14
- package/models/components/digestmetadatadto.d.ts.map +1 -0
- package/models/components/{digestwitheventsdto.js → digestmetadatadto.js} +32 -17
- package/models/components/digestmetadatadto.js.map +1 -0
- package/models/components/digesttimedconfigdto.d.ts +106 -0
- package/models/components/digesttimedconfigdto.d.ts.map +1 -0
- package/models/components/digesttimedconfigdto.js +99 -0
- package/models/components/digesttimedconfigdto.js.map +1 -0
- package/models/components/digesttypeenum.d.ts +37 -0
- package/models/components/digesttypeenum.d.ts.map +1 -0
- package/models/components/digesttypeenum.js +54 -0
- package/models/components/digesttypeenum.js.map +1 -0
- package/models/components/digestunitenum.d.ts +46 -0
- package/models/components/digestunitenum.d.ts.map +1 -0
- package/models/components/digestunitenum.js +57 -0
- package/models/components/digestunitenum.js.map +1 -0
- package/models/components/executiondetailssourceenum.d.ts +40 -0
- package/models/components/executiondetailssourceenum.d.ts.map +1 -0
- package/models/components/executiondetailssourceenum.js +55 -0
- package/models/components/executiondetailssourceenum.js.map +1 -0
- package/models/components/executiondetailsstatusenum.d.ts +46 -0
- package/models/components/executiondetailsstatusenum.d.ts.map +1 -0
- package/models/components/executiondetailsstatusenum.js +57 -0
- package/models/components/executiondetailsstatusenum.js.map +1 -0
- package/models/components/index.d.ts +14 -5
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +14 -5
- package/models/components/index.js.map +1 -1
- package/models/components/monthlytypeenum.d.ts +34 -0
- package/models/components/monthlytypeenum.d.ts.map +1 -0
- package/models/components/monthlytypeenum.js +53 -0
- package/models/components/monthlytypeenum.js.map +1 -0
- package/models/components/notificationstepdata.d.ts +113 -0
- package/models/components/notificationstepdata.d.ts.map +1 -0
- package/models/components/notificationstepdata.js +142 -0
- package/models/components/notificationstepdata.js.map +1 -0
- package/models/components/notificationstepdto.d.ts +116 -0
- package/models/components/notificationstepdto.d.ts.map +1 -0
- package/models/components/notificationstepdto.js +145 -0
- package/models/components/notificationstepdto.js.map +1 -0
- package/models/components/notificationtrigger.d.ts +8 -26
- package/models/components/notificationtrigger.d.ts.map +1 -1
- package/models/components/notificationtrigger.js +13 -16
- package/models/components/notificationtrigger.js.map +1 -1
- package/models/components/notificationtriggerdto.d.ts +77 -0
- package/models/components/notificationtriggerdto.d.ts.map +1 -0
- package/models/components/notificationtriggerdto.js +89 -0
- package/models/components/notificationtriggerdto.js.map +1 -0
- package/models/components/ordinalenum.d.ts +46 -0
- package/models/components/ordinalenum.d.ts.map +1 -0
- package/models/components/{stepfilter.js → ordinalenum.js} +23 -20
- package/models/components/ordinalenum.js.map +1 -0
- package/models/components/ordinalvalueenum.d.ts +58 -0
- package/models/components/ordinalvalueenum.d.ts.map +1 -0
- package/models/components/ordinalvalueenum.js +61 -0
- package/models/components/ordinalvalueenum.js.map +1 -0
- package/models/components/replycallback.d.ts +37 -0
- package/models/components/replycallback.d.ts.map +1 -0
- package/models/components/replycallback.js +61 -0
- package/models/components/replycallback.js.map +1 -0
- package/models/components/stepfilterdto.d.ts +2 -2
- package/models/components/stepfilterdto.d.ts.map +1 -1
- package/models/components/stepfilterdto.js +3 -3
- package/models/components/stepfilterdto.js.map +1 -1
- package/models/components/timedconfig.d.ts +8 -8
- package/models/components/timedconfig.d.ts.map +1 -1
- package/models/components/timedconfig.js +13 -14
- package/models/components/timedconfig.js.map +1 -1
- package/models/components/workflowresponse.d.ts +3 -3
- package/models/components/workflowresponse.d.ts.map +1 -1
- package/models/components/workflowresponse.js +3 -3
- package/models/components/workflowresponse.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/activitynotificationexecutiondetailresponsedto.ts +16 -81
- package/src/models/components/activitynotificationjobresponsedto.ts +9 -9
- package/src/models/components/activitynotificationresponsedto.ts +228 -0
- package/src/models/components/activitynotificationstepresponsedto.ts +294 -9
- package/src/models/components/activitynotificationtemplateresponsedto.ts +9 -9
- package/src/models/components/builderfieldtypeenum.ts +39 -0
- package/src/models/components/digestmetadatadto.ts +185 -0
- package/src/models/components/digesttimedconfigdto.ts +157 -0
- package/src/models/components/digesttypeenum.ts +40 -0
- package/src/models/components/digestunitenum.ts +43 -0
- package/src/models/components/executiondetailssourceenum.ts +43 -0
- package/src/models/components/executiondetailsstatusenum.ts +45 -0
- package/src/models/components/index.ts +14 -5
- package/src/models/components/monthlytypeenum.ts +39 -0
- package/src/models/components/notificationstepdata.ts +287 -0
- package/src/models/components/notificationstepdto.ts +297 -0
- package/src/models/components/notificationtrigger.ts +18 -33
- package/src/models/components/notificationtriggerdto.ts +130 -0
- package/src/models/components/ordinalenum.ts +41 -0
- package/src/models/components/ordinalvalueenum.ts +47 -0
- package/src/models/components/replycallback.ts +72 -0
- package/src/models/components/stepfilterdto.ts +7 -7
- package/src/models/components/timedconfig.ts +16 -14
- package/src/models/components/workflowresponse.ts +9 -9
- package/models/components/builderfieldtype.d.ts.map +0 -1
- package/models/components/builderfieldtype.js.map +0 -1
- package/models/components/digestwitheventsdto.d.ts.map +0 -1
- package/models/components/digestwitheventsdto.js.map +0 -1
- package/models/components/notificationstep.d.ts +0 -121
- package/models/components/notificationstep.d.ts.map +0 -1
- package/models/components/notificationstep.js +0 -190
- package/models/components/notificationstep.js.map +0 -1
- package/models/components/notificationstepvariant.d.ts +0 -118
- package/models/components/notificationstepvariant.d.ts.map +0 -1
- package/models/components/notificationstepvariant.js +0 -189
- package/models/components/notificationstepvariant.js.map +0 -1
- package/models/components/stepfilter.d.ts +0 -25
- package/models/components/stepfilter.d.ts.map +0 -1
- package/models/components/stepfilter.js.map +0 -1
- package/src/models/components/builderfieldtype.ts +0 -39
- package/src/models/components/digestwitheventsdto.ts +0 -127
- package/src/models/components/notificationstep.ts +0 -341
- package/src/models/components/notificationstepvariant.ts +0 -358
- package/src/models/components/stepfilter.ts +0 -54
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
NotificationTriggerVariable,
|
|
12
|
+
NotificationTriggerVariable$inboundSchema,
|
|
13
|
+
NotificationTriggerVariable$Outbound,
|
|
14
|
+
NotificationTriggerVariable$outboundSchema,
|
|
15
|
+
} from "./notificationtriggervariable.js";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Type of the trigger
|
|
19
|
+
*/
|
|
20
|
+
export const Type = {
|
|
21
|
+
Event: "event",
|
|
22
|
+
} as const;
|
|
23
|
+
/**
|
|
24
|
+
* Type of the trigger
|
|
25
|
+
*/
|
|
26
|
+
export type Type = ClosedEnum<typeof Type>;
|
|
27
|
+
|
|
28
|
+
export type NotificationTriggerDto = {
|
|
29
|
+
/**
|
|
30
|
+
* Type of the trigger
|
|
31
|
+
*/
|
|
32
|
+
type: Type;
|
|
33
|
+
/**
|
|
34
|
+
* Identifier of the trigger
|
|
35
|
+
*/
|
|
36
|
+
identifier: string;
|
|
37
|
+
/**
|
|
38
|
+
* Variables of the trigger
|
|
39
|
+
*/
|
|
40
|
+
variables: Array<NotificationTriggerVariable>;
|
|
41
|
+
/**
|
|
42
|
+
* Subscriber variables of the trigger
|
|
43
|
+
*/
|
|
44
|
+
subscriberVariables?: Array<NotificationTriggerVariable> | undefined;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
|
|
49
|
+
Type,
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
|
|
54
|
+
Type$inboundSchema;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
+
*/
|
|
60
|
+
export namespace Type$ {
|
|
61
|
+
/** @deprecated use `Type$inboundSchema` instead. */
|
|
62
|
+
export const inboundSchema = Type$inboundSchema;
|
|
63
|
+
/** @deprecated use `Type$outboundSchema` instead. */
|
|
64
|
+
export const outboundSchema = Type$outboundSchema;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/** @internal */
|
|
68
|
+
export const NotificationTriggerDto$inboundSchema: z.ZodType<
|
|
69
|
+
NotificationTriggerDto,
|
|
70
|
+
z.ZodTypeDef,
|
|
71
|
+
unknown
|
|
72
|
+
> = z.object({
|
|
73
|
+
type: Type$inboundSchema,
|
|
74
|
+
identifier: z.string(),
|
|
75
|
+
variables: z.array(NotificationTriggerVariable$inboundSchema),
|
|
76
|
+
subscriberVariables: z.array(NotificationTriggerVariable$inboundSchema)
|
|
77
|
+
.optional(),
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export type NotificationTriggerDto$Outbound = {
|
|
82
|
+
type: string;
|
|
83
|
+
identifier: string;
|
|
84
|
+
variables: Array<NotificationTriggerVariable$Outbound>;
|
|
85
|
+
subscriberVariables?: Array<NotificationTriggerVariable$Outbound> | undefined;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const NotificationTriggerDto$outboundSchema: z.ZodType<
|
|
90
|
+
NotificationTriggerDto$Outbound,
|
|
91
|
+
z.ZodTypeDef,
|
|
92
|
+
NotificationTriggerDto
|
|
93
|
+
> = z.object({
|
|
94
|
+
type: Type$outboundSchema,
|
|
95
|
+
identifier: z.string(),
|
|
96
|
+
variables: z.array(NotificationTriggerVariable$outboundSchema),
|
|
97
|
+
subscriberVariables: z.array(NotificationTriggerVariable$outboundSchema)
|
|
98
|
+
.optional(),
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @internal
|
|
103
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
104
|
+
*/
|
|
105
|
+
export namespace NotificationTriggerDto$ {
|
|
106
|
+
/** @deprecated use `NotificationTriggerDto$inboundSchema` instead. */
|
|
107
|
+
export const inboundSchema = NotificationTriggerDto$inboundSchema;
|
|
108
|
+
/** @deprecated use `NotificationTriggerDto$outboundSchema` instead. */
|
|
109
|
+
export const outboundSchema = NotificationTriggerDto$outboundSchema;
|
|
110
|
+
/** @deprecated use `NotificationTriggerDto$Outbound` instead. */
|
|
111
|
+
export type Outbound = NotificationTriggerDto$Outbound;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function notificationTriggerDtoToJSON(
|
|
115
|
+
notificationTriggerDto: NotificationTriggerDto,
|
|
116
|
+
): string {
|
|
117
|
+
return JSON.stringify(
|
|
118
|
+
NotificationTriggerDto$outboundSchema.parse(notificationTriggerDto),
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function notificationTriggerDtoFromJSON(
|
|
123
|
+
jsonString: string,
|
|
124
|
+
): SafeParseResult<NotificationTriggerDto, SDKValidationError> {
|
|
125
|
+
return safeParse(
|
|
126
|
+
jsonString,
|
|
127
|
+
(x) => NotificationTriggerDto$inboundSchema.parse(JSON.parse(x)),
|
|
128
|
+
`Failed to parse 'NotificationTriggerDto' from JSON`,
|
|
129
|
+
);
|
|
130
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
* Ordinal position for the digest
|
|
10
|
+
*/
|
|
11
|
+
export const OrdinalEnum = {
|
|
12
|
+
One: "1",
|
|
13
|
+
Two: "2",
|
|
14
|
+
Three: "3",
|
|
15
|
+
Four: "4",
|
|
16
|
+
Five: "5",
|
|
17
|
+
Last: "last",
|
|
18
|
+
} as const;
|
|
19
|
+
/**
|
|
20
|
+
* Ordinal position for the digest
|
|
21
|
+
*/
|
|
22
|
+
export type OrdinalEnum = ClosedEnum<typeof OrdinalEnum>;
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const OrdinalEnum$inboundSchema: z.ZodNativeEnum<typeof OrdinalEnum> = z
|
|
26
|
+
.nativeEnum(OrdinalEnum);
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const OrdinalEnum$outboundSchema: z.ZodNativeEnum<typeof OrdinalEnum> =
|
|
30
|
+
OrdinalEnum$inboundSchema;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
35
|
+
*/
|
|
36
|
+
export namespace OrdinalEnum$ {
|
|
37
|
+
/** @deprecated use `OrdinalEnum$inboundSchema` instead. */
|
|
38
|
+
export const inboundSchema = OrdinalEnum$inboundSchema;
|
|
39
|
+
/** @deprecated use `OrdinalEnum$outboundSchema` instead. */
|
|
40
|
+
export const outboundSchema = OrdinalEnum$outboundSchema;
|
|
41
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
* Value of the ordinal
|
|
10
|
+
*/
|
|
11
|
+
export const OrdinalValueEnum = {
|
|
12
|
+
Day: "day",
|
|
13
|
+
Weekday: "weekday",
|
|
14
|
+
Weekend: "weekend",
|
|
15
|
+
Sunday: "sunday",
|
|
16
|
+
Monday: "monday",
|
|
17
|
+
Tuesday: "tuesday",
|
|
18
|
+
Wednesday: "wednesday",
|
|
19
|
+
Thursday: "thursday",
|
|
20
|
+
Friday: "friday",
|
|
21
|
+
Saturday: "saturday",
|
|
22
|
+
} as const;
|
|
23
|
+
/**
|
|
24
|
+
* Value of the ordinal
|
|
25
|
+
*/
|
|
26
|
+
export type OrdinalValueEnum = ClosedEnum<typeof OrdinalValueEnum>;
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const OrdinalValueEnum$inboundSchema: z.ZodNativeEnum<
|
|
30
|
+
typeof OrdinalValueEnum
|
|
31
|
+
> = z.nativeEnum(OrdinalValueEnum);
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const OrdinalValueEnum$outboundSchema: z.ZodNativeEnum<
|
|
35
|
+
typeof OrdinalValueEnum
|
|
36
|
+
> = OrdinalValueEnum$inboundSchema;
|
|
37
|
+
|
|
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 namespace OrdinalValueEnum$ {
|
|
43
|
+
/** @deprecated use `OrdinalValueEnum$inboundSchema` instead. */
|
|
44
|
+
export const inboundSchema = OrdinalValueEnum$inboundSchema;
|
|
45
|
+
/** @deprecated use `OrdinalValueEnum$outboundSchema` instead. */
|
|
46
|
+
export const outboundSchema = OrdinalValueEnum$outboundSchema;
|
|
47
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type ReplyCallback = {
|
|
11
|
+
/**
|
|
12
|
+
* Indicates whether the reply callback is active.
|
|
13
|
+
*/
|
|
14
|
+
active?: boolean | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* The URL to which replies should be sent.
|
|
17
|
+
*/
|
|
18
|
+
url?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const ReplyCallback$inboundSchema: z.ZodType<
|
|
23
|
+
ReplyCallback,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
active: z.boolean().optional(),
|
|
28
|
+
url: z.string().optional(),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type ReplyCallback$Outbound = {
|
|
33
|
+
active?: boolean | undefined;
|
|
34
|
+
url?: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const ReplyCallback$outboundSchema: z.ZodType<
|
|
39
|
+
ReplyCallback$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
ReplyCallback
|
|
42
|
+
> = z.object({
|
|
43
|
+
active: z.boolean().optional(),
|
|
44
|
+
url: z.string().optional(),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @internal
|
|
49
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
+
*/
|
|
51
|
+
export namespace ReplyCallback$ {
|
|
52
|
+
/** @deprecated use `ReplyCallback$inboundSchema` instead. */
|
|
53
|
+
export const inboundSchema = ReplyCallback$inboundSchema;
|
|
54
|
+
/** @deprecated use `ReplyCallback$outboundSchema` instead. */
|
|
55
|
+
export const outboundSchema = ReplyCallback$outboundSchema;
|
|
56
|
+
/** @deprecated use `ReplyCallback$Outbound` instead. */
|
|
57
|
+
export type Outbound = ReplyCallback$Outbound;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function replyCallbackToJSON(replyCallback: ReplyCallback): string {
|
|
61
|
+
return JSON.stringify(ReplyCallback$outboundSchema.parse(replyCallback));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function replyCallbackFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<ReplyCallback, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => ReplyCallback$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'ReplyCallback' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -8,10 +8,10 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
11
|
+
BuilderFieldTypeEnum,
|
|
12
|
+
BuilderFieldTypeEnum$inboundSchema,
|
|
13
|
+
BuilderFieldTypeEnum$outboundSchema,
|
|
14
|
+
} from "./builderfieldtypeenum.js";
|
|
15
15
|
import {
|
|
16
16
|
FieldFilterPartDto,
|
|
17
17
|
FieldFilterPartDto$inboundSchema,
|
|
@@ -27,7 +27,7 @@ export type Value = ClosedEnum<typeof Value>;
|
|
|
27
27
|
|
|
28
28
|
export type StepFilterDto = {
|
|
29
29
|
isNegated: boolean;
|
|
30
|
-
type:
|
|
30
|
+
type: BuilderFieldTypeEnum;
|
|
31
31
|
value: Value;
|
|
32
32
|
children: Array<FieldFilterPartDto>;
|
|
33
33
|
};
|
|
@@ -59,7 +59,7 @@ export const StepFilterDto$inboundSchema: z.ZodType<
|
|
|
59
59
|
unknown
|
|
60
60
|
> = z.object({
|
|
61
61
|
isNegated: z.boolean(),
|
|
62
|
-
type:
|
|
62
|
+
type: BuilderFieldTypeEnum$inboundSchema,
|
|
63
63
|
value: Value$inboundSchema,
|
|
64
64
|
children: z.array(FieldFilterPartDto$inboundSchema),
|
|
65
65
|
});
|
|
@@ -79,7 +79,7 @@ export const StepFilterDto$outboundSchema: z.ZodType<
|
|
|
79
79
|
StepFilterDto
|
|
80
80
|
> = z.object({
|
|
81
81
|
isNegated: z.boolean(),
|
|
82
|
-
type:
|
|
82
|
+
type: BuilderFieldTypeEnum$outboundSchema,
|
|
83
83
|
value: Value$outboundSchema,
|
|
84
84
|
children: z.array(FieldFilterPartDto$outboundSchema),
|
|
85
85
|
});
|
|
@@ -8,7 +8,7 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
-
export const
|
|
11
|
+
export const TimedConfigWeekDays = {
|
|
12
12
|
Monday: "monday",
|
|
13
13
|
Tuesday: "tuesday",
|
|
14
14
|
Wednesday: "wednesday",
|
|
@@ -17,7 +17,7 @@ export const WeekDays = {
|
|
|
17
17
|
Saturday: "saturday",
|
|
18
18
|
Sunday: "sunday",
|
|
19
19
|
} as const;
|
|
20
|
-
export type
|
|
20
|
+
export type TimedConfigWeekDays = ClosedEnum<typeof TimedConfigWeekDays>;
|
|
21
21
|
|
|
22
22
|
export const Ordinal = {
|
|
23
23
|
One: "1",
|
|
@@ -51,7 +51,7 @@ export type MonthlyType = ClosedEnum<typeof MonthlyType>;
|
|
|
51
51
|
|
|
52
52
|
export type TimedConfig = {
|
|
53
53
|
atTime?: string | undefined;
|
|
54
|
-
weekDays?: Array<
|
|
54
|
+
weekDays?: Array<TimedConfigWeekDays> | undefined;
|
|
55
55
|
monthDays?: Array<string> | undefined;
|
|
56
56
|
ordinal?: Ordinal | undefined;
|
|
57
57
|
ordinalValue?: OrdinalValue | undefined;
|
|
@@ -59,22 +59,24 @@ export type TimedConfig = {
|
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
/** @internal */
|
|
62
|
-
export const
|
|
63
|
-
|
|
62
|
+
export const TimedConfigWeekDays$inboundSchema: z.ZodNativeEnum<
|
|
63
|
+
typeof TimedConfigWeekDays
|
|
64
|
+
> = z.nativeEnum(TimedConfigWeekDays);
|
|
64
65
|
|
|
65
66
|
/** @internal */
|
|
66
|
-
export const
|
|
67
|
-
|
|
67
|
+
export const TimedConfigWeekDays$outboundSchema: z.ZodNativeEnum<
|
|
68
|
+
typeof TimedConfigWeekDays
|
|
69
|
+
> = TimedConfigWeekDays$inboundSchema;
|
|
68
70
|
|
|
69
71
|
/**
|
|
70
72
|
* @internal
|
|
71
73
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
72
74
|
*/
|
|
73
|
-
export namespace
|
|
74
|
-
/** @deprecated use `
|
|
75
|
-
export const inboundSchema =
|
|
76
|
-
/** @deprecated use `
|
|
77
|
-
export const outboundSchema =
|
|
75
|
+
export namespace TimedConfigWeekDays$ {
|
|
76
|
+
/** @deprecated use `TimedConfigWeekDays$inboundSchema` instead. */
|
|
77
|
+
export const inboundSchema = TimedConfigWeekDays$inboundSchema;
|
|
78
|
+
/** @deprecated use `TimedConfigWeekDays$outboundSchema` instead. */
|
|
79
|
+
export const outboundSchema = TimedConfigWeekDays$outboundSchema;
|
|
78
80
|
}
|
|
79
81
|
|
|
80
82
|
/** @internal */
|
|
@@ -141,7 +143,7 @@ export const TimedConfig$inboundSchema: z.ZodType<
|
|
|
141
143
|
unknown
|
|
142
144
|
> = z.object({
|
|
143
145
|
atTime: z.string().optional(),
|
|
144
|
-
weekDays: z.array(
|
|
146
|
+
weekDays: z.array(TimedConfigWeekDays$inboundSchema).optional(),
|
|
145
147
|
monthDays: z.array(z.string()).optional(),
|
|
146
148
|
ordinal: Ordinal$inboundSchema.optional(),
|
|
147
149
|
ordinalValue: OrdinalValue$inboundSchema.optional(),
|
|
@@ -165,7 +167,7 @@ export const TimedConfig$outboundSchema: z.ZodType<
|
|
|
165
167
|
TimedConfig
|
|
166
168
|
> = z.object({
|
|
167
169
|
atTime: z.string().optional(),
|
|
168
|
-
weekDays: z.array(
|
|
170
|
+
weekDays: z.array(TimedConfigWeekDays$outboundSchema).optional(),
|
|
169
171
|
monthDays: z.array(z.string()).optional(),
|
|
170
172
|
ordinal: Ordinal$outboundSchema.optional(),
|
|
171
173
|
ordinalValue: OrdinalValue$outboundSchema.optional(),
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
NotificationGroup$outboundSchema,
|
|
15
15
|
} from "./notificationgroup.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
17
|
+
NotificationStepDto,
|
|
18
|
+
NotificationStepDto$inboundSchema,
|
|
19
|
+
NotificationStepDto$Outbound,
|
|
20
|
+
NotificationStepDto$outboundSchema,
|
|
21
|
+
} from "./notificationstepdto.js";
|
|
22
22
|
import {
|
|
23
23
|
NotificationTrigger,
|
|
24
24
|
NotificationTrigger$inboundSchema,
|
|
@@ -45,7 +45,7 @@ export type WorkflowResponse = {
|
|
|
45
45
|
preferenceSettings: PreferenceChannels;
|
|
46
46
|
critical: boolean;
|
|
47
47
|
tags: Array<string>;
|
|
48
|
-
steps: Array<
|
|
48
|
+
steps: Array<NotificationStepDto>;
|
|
49
49
|
organizationId: string;
|
|
50
50
|
creatorId: string;
|
|
51
51
|
environmentId: string;
|
|
@@ -170,7 +170,7 @@ export const WorkflowResponse$inboundSchema: z.ZodType<
|
|
|
170
170
|
preferenceSettings: PreferenceChannels$inboundSchema,
|
|
171
171
|
critical: z.boolean(),
|
|
172
172
|
tags: z.array(z.string()),
|
|
173
|
-
steps: z.array(
|
|
173
|
+
steps: z.array(NotificationStepDto$inboundSchema),
|
|
174
174
|
_organizationId: z.string(),
|
|
175
175
|
_creatorId: z.string(),
|
|
176
176
|
_environmentId: z.string(),
|
|
@@ -206,7 +206,7 @@ export type WorkflowResponse$Outbound = {
|
|
|
206
206
|
preferenceSettings: PreferenceChannels$Outbound;
|
|
207
207
|
critical: boolean;
|
|
208
208
|
tags: Array<string>;
|
|
209
|
-
steps: Array<
|
|
209
|
+
steps: Array<NotificationStepDto$Outbound>;
|
|
210
210
|
_organizationId: string;
|
|
211
211
|
_creatorId: string;
|
|
212
212
|
_environmentId: string;
|
|
@@ -235,7 +235,7 @@ export const WorkflowResponse$outboundSchema: z.ZodType<
|
|
|
235
235
|
preferenceSettings: PreferenceChannels$outboundSchema,
|
|
236
236
|
critical: z.boolean(),
|
|
237
237
|
tags: z.array(z.string()),
|
|
238
|
-
steps: z.array(
|
|
238
|
+
steps: z.array(NotificationStepDto$outboundSchema),
|
|
239
239
|
organizationId: z.string(),
|
|
240
240
|
creatorId: z.string(),
|
|
241
241
|
environmentId: z.string(),
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"builderfieldtype.d.ts","sourceRoot":"","sources":["../../src/models/components/builderfieldtype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,gBAAgB;;;;;;;;;CASnB,CAAC;AACX,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,aAAa,CAC1D,OAAO,gBAAgB,CACS,CAAC;AAEnC,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,aAAa,CAC3D,OAAO,gBAAgB,CACS,CAAC;AAEnC;;;GAGG;AACH,yBAAiB,iBAAiB,CAAC;IACjC,gEAAgE;IACzD,MAAM,aAAa;;;;;;;;;MAAiC,CAAC;IAC5D,iEAAiE;IAC1D,MAAM,cAAc;;;;;;;;;MAAkC,CAAC;CAC/D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"builderfieldtype.js","sourceRoot":"","sources":["../../src/models/components/builderfieldtype.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ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AC;IACjE,8DAA8D;IAC9D,KAAY,QAAQ,GAAG,4BAA4B,CAAC;CACrD;AAED,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"digestwitheventsdto.js","sourceRoot":"","sources":["../../src/models/components/digestwitheventsdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAKjD;;GAEG;AACU,QAAA,IAAI,GAAG;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;CACR,CAAC;AAyBX,gBAAgB;AACH,QAAA,kBAAkB,GAAiC,CAAC,CAAC,UAAU,CAC1E,YAAI,CACL,CAAC;AAEF,gBAAgB;AACH,QAAA,mBAAmB,GAC9B,0BAAkB,CAAC;AAErB;;;GAGG;AACH,IAAiB,KAAK,CAKrB;AALD,WAAiB,KAAK;IACpB,oDAAoD;IACvC,mBAAa,GAAG,0BAAkB,CAAC;IAChD,qDAAqD;IACxC,oBAAc,GAAG,2BAAmB,CAAC;AACpD,CAAC,EALgB,KAAK,qBAAL,KAAK,QAKrB;AAED,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,IAAI,EAAE,0BAAkB,CAAC,QAAQ,EAAE;IACnC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,IAAI,EAAE,2BAAmB,CAAC,QAAQ,EAAE;IACpC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,oBAAoB,CAOpC;AAPD,WAAiB,oBAAoB;IACnC,mEAAmE;IACtD,kCAAa,GAAG,yCAAiC,CAAC;IAC/D,oEAAoE;IACvD,mCAAc,GAAG,0CAAkC,CAAC;AAGnE,CAAC,EAPgB,oBAAoB,oCAApB,oBAAoB,QAOpC;AAED,SAAgB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC;AAND,8DAMC;AAED,SAAgB,2BAA2B,CACzC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC;AARD,kEAQC"}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { DelayRegularMetadata, DelayRegularMetadata$Outbound } from "./delayregularmetadata.js";
|
|
5
|
-
import { DelayScheduledMetadata, DelayScheduledMetadata$Outbound } from "./delayscheduledmetadata.js";
|
|
6
|
-
import { DigestRegularMetadata, DigestRegularMetadata$Outbound } from "./digestregularmetadata.js";
|
|
7
|
-
import { DigestTimedMetadata, DigestTimedMetadata$Outbound } from "./digesttimedmetadata.js";
|
|
8
|
-
import { MessageTemplate, MessageTemplate$Outbound } from "./messagetemplate.js";
|
|
9
|
-
import { NotificationStepVariant, NotificationStepVariant$Outbound } from "./notificationstepvariant.js";
|
|
10
|
-
import { StepFilterDto, StepFilterDto$Outbound } from "./stepfilterdto.js";
|
|
11
|
-
export type ParentId = {};
|
|
12
|
-
export type Metadata = DelayScheduledMetadata | DelayRegularMetadata | DigestTimedMetadata | DigestRegularMetadata;
|
|
13
|
-
export type ReplyCallback = {};
|
|
14
|
-
export type NotificationStep = {
|
|
15
|
-
id?: string | undefined;
|
|
16
|
-
uuid?: string | undefined;
|
|
17
|
-
name?: string | undefined;
|
|
18
|
-
templateId?: string | undefined;
|
|
19
|
-
active?: boolean | undefined;
|
|
20
|
-
shouldStopOnFail?: boolean | undefined;
|
|
21
|
-
template?: MessageTemplate | undefined;
|
|
22
|
-
filters?: Array<StepFilterDto> | undefined;
|
|
23
|
-
parentId?: ParentId | undefined;
|
|
24
|
-
metadata?: DelayScheduledMetadata | DelayRegularMetadata | DigestTimedMetadata | DigestRegularMetadata | undefined;
|
|
25
|
-
replyCallback?: ReplyCallback | undefined;
|
|
26
|
-
variants?: NotificationStepVariant | undefined;
|
|
27
|
-
};
|
|
28
|
-
/** @internal */
|
|
29
|
-
export declare const ParentId$inboundSchema: z.ZodType<ParentId, z.ZodTypeDef, unknown>;
|
|
30
|
-
/** @internal */
|
|
31
|
-
export type ParentId$Outbound = {};
|
|
32
|
-
/** @internal */
|
|
33
|
-
export declare const ParentId$outboundSchema: z.ZodType<ParentId$Outbound, z.ZodTypeDef, ParentId>;
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
37
|
-
*/
|
|
38
|
-
export declare namespace ParentId$ {
|
|
39
|
-
/** @deprecated use `ParentId$inboundSchema` instead. */
|
|
40
|
-
const inboundSchema: z.ZodType<ParentId, z.ZodTypeDef, unknown>;
|
|
41
|
-
/** @deprecated use `ParentId$outboundSchema` instead. */
|
|
42
|
-
const outboundSchema: z.ZodType<ParentId$Outbound, z.ZodTypeDef, ParentId>;
|
|
43
|
-
/** @deprecated use `ParentId$Outbound` instead. */
|
|
44
|
-
type Outbound = ParentId$Outbound;
|
|
45
|
-
}
|
|
46
|
-
export declare function parentIdToJSON(parentId: ParentId): string;
|
|
47
|
-
export declare function parentIdFromJSON(jsonString: string): SafeParseResult<ParentId, SDKValidationError>;
|
|
48
|
-
/** @internal */
|
|
49
|
-
export declare const Metadata$inboundSchema: z.ZodType<Metadata, z.ZodTypeDef, unknown>;
|
|
50
|
-
/** @internal */
|
|
51
|
-
export type Metadata$Outbound = DelayScheduledMetadata$Outbound | DelayRegularMetadata$Outbound | DigestTimedMetadata$Outbound | DigestRegularMetadata$Outbound;
|
|
52
|
-
/** @internal */
|
|
53
|
-
export declare const Metadata$outboundSchema: z.ZodType<Metadata$Outbound, z.ZodTypeDef, Metadata>;
|
|
54
|
-
/**
|
|
55
|
-
* @internal
|
|
56
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
|
-
*/
|
|
58
|
-
export declare namespace Metadata$ {
|
|
59
|
-
/** @deprecated use `Metadata$inboundSchema` instead. */
|
|
60
|
-
const inboundSchema: z.ZodType<Metadata, z.ZodTypeDef, unknown>;
|
|
61
|
-
/** @deprecated use `Metadata$outboundSchema` instead. */
|
|
62
|
-
const outboundSchema: z.ZodType<Metadata$Outbound, z.ZodTypeDef, Metadata>;
|
|
63
|
-
/** @deprecated use `Metadata$Outbound` instead. */
|
|
64
|
-
type Outbound = Metadata$Outbound;
|
|
65
|
-
}
|
|
66
|
-
export declare function metadataToJSON(metadata: Metadata): string;
|
|
67
|
-
export declare function metadataFromJSON(jsonString: string): SafeParseResult<Metadata, SDKValidationError>;
|
|
68
|
-
/** @internal */
|
|
69
|
-
export declare const ReplyCallback$inboundSchema: z.ZodType<ReplyCallback, z.ZodTypeDef, unknown>;
|
|
70
|
-
/** @internal */
|
|
71
|
-
export type ReplyCallback$Outbound = {};
|
|
72
|
-
/** @internal */
|
|
73
|
-
export declare const ReplyCallback$outboundSchema: z.ZodType<ReplyCallback$Outbound, z.ZodTypeDef, ReplyCallback>;
|
|
74
|
-
/**
|
|
75
|
-
* @internal
|
|
76
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
77
|
-
*/
|
|
78
|
-
export declare namespace ReplyCallback$ {
|
|
79
|
-
/** @deprecated use `ReplyCallback$inboundSchema` instead. */
|
|
80
|
-
const inboundSchema: z.ZodType<ReplyCallback, z.ZodTypeDef, unknown>;
|
|
81
|
-
/** @deprecated use `ReplyCallback$outboundSchema` instead. */
|
|
82
|
-
const outboundSchema: z.ZodType<ReplyCallback$Outbound, z.ZodTypeDef, ReplyCallback>;
|
|
83
|
-
/** @deprecated use `ReplyCallback$Outbound` instead. */
|
|
84
|
-
type Outbound = ReplyCallback$Outbound;
|
|
85
|
-
}
|
|
86
|
-
export declare function replyCallbackToJSON(replyCallback: ReplyCallback): string;
|
|
87
|
-
export declare function replyCallbackFromJSON(jsonString: string): SafeParseResult<ReplyCallback, SDKValidationError>;
|
|
88
|
-
/** @internal */
|
|
89
|
-
export declare const NotificationStep$inboundSchema: z.ZodType<NotificationStep, z.ZodTypeDef, unknown>;
|
|
90
|
-
/** @internal */
|
|
91
|
-
export type NotificationStep$Outbound = {
|
|
92
|
-
_id?: string | undefined;
|
|
93
|
-
uuid?: string | undefined;
|
|
94
|
-
name?: string | undefined;
|
|
95
|
-
_templateId?: string | undefined;
|
|
96
|
-
active?: boolean | undefined;
|
|
97
|
-
shouldStopOnFail?: boolean | undefined;
|
|
98
|
-
template?: MessageTemplate$Outbound | undefined;
|
|
99
|
-
filters?: Array<StepFilterDto$Outbound> | undefined;
|
|
100
|
-
_parentId?: ParentId$Outbound | undefined;
|
|
101
|
-
metadata?: DelayScheduledMetadata$Outbound | DelayRegularMetadata$Outbound | DigestTimedMetadata$Outbound | DigestRegularMetadata$Outbound | undefined;
|
|
102
|
-
replyCallback?: ReplyCallback$Outbound | undefined;
|
|
103
|
-
variants?: NotificationStepVariant$Outbound | undefined;
|
|
104
|
-
};
|
|
105
|
-
/** @internal */
|
|
106
|
-
export declare const NotificationStep$outboundSchema: z.ZodType<NotificationStep$Outbound, z.ZodTypeDef, NotificationStep>;
|
|
107
|
-
/**
|
|
108
|
-
* @internal
|
|
109
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
110
|
-
*/
|
|
111
|
-
export declare namespace NotificationStep$ {
|
|
112
|
-
/** @deprecated use `NotificationStep$inboundSchema` instead. */
|
|
113
|
-
const inboundSchema: z.ZodType<NotificationStep, z.ZodTypeDef, unknown>;
|
|
114
|
-
/** @deprecated use `NotificationStep$outboundSchema` instead. */
|
|
115
|
-
const outboundSchema: z.ZodType<NotificationStep$Outbound, z.ZodTypeDef, NotificationStep>;
|
|
116
|
-
/** @deprecated use `NotificationStep$Outbound` instead. */
|
|
117
|
-
type Outbound = NotificationStep$Outbound;
|
|
118
|
-
}
|
|
119
|
-
export declare function notificationStepToJSON(notificationStep: NotificationStep): string;
|
|
120
|
-
export declare function notificationStepFromJSON(jsonString: string): SafeParseResult<NotificationStep, SDKValidationError>;
|
|
121
|
-
//# sourceMappingURL=notificationstep.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notificationstep.d.ts","sourceRoot":"","sources":["../../src/models/components/notificationstep.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO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