@novu/api 0.0.1-alpha.148 → 0.0.1-alpha.150
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/RUNTIMES.md +27 -1
- package/funcs/cancel.js +4 -4
- package/funcs/cancel.js.map +1 -1
- package/funcs/integrationsCreate.js +4 -4
- package/funcs/integrationsCreate.js.map +1 -1
- package/funcs/integrationsDelete.js +4 -4
- package/funcs/integrationsDelete.js.map +1 -1
- package/funcs/integrationsList.js +4 -4
- package/funcs/integrationsList.js.map +1 -1
- package/funcs/integrationsListActive.js +4 -4
- package/funcs/integrationsListActive.js.map +1 -1
- package/funcs/integrationsSetAsPrimary.js +4 -4
- package/funcs/integrationsSetAsPrimary.js.map +1 -1
- package/funcs/integrationsUpdate.js +4 -4
- package/funcs/integrationsUpdate.js.map +1 -1
- package/funcs/integrationsWebhooksRetrieve.js +4 -4
- package/funcs/integrationsWebhooksRetrieve.js.map +1 -1
- package/funcs/messagesDelete.js +4 -4
- package/funcs/messagesDelete.js.map +1 -1
- package/funcs/messagesDeleteByTransactionId.js +4 -4
- package/funcs/messagesDeleteByTransactionId.js.map +1 -1
- package/funcs/messagesRetrieve.js +4 -4
- package/funcs/messagesRetrieve.js.map +1 -1
- package/funcs/notificationsList.js +4 -4
- package/funcs/notificationsList.js.map +1 -1
- package/funcs/notificationsRetrieve.js +4 -4
- package/funcs/notificationsRetrieve.js.map +1 -1
- package/funcs/notificationsStatsGraph.js +4 -4
- package/funcs/notificationsStatsGraph.js.map +1 -1
- package/funcs/notificationsStatsRetrieve.js +4 -4
- package/funcs/notificationsStatsRetrieve.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.js +4 -4
- package/funcs/subscribersAuthenticationChatAccessOauth.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js +5 -5
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js.map +1 -1
- package/funcs/subscribersCreate.js +4 -4
- package/funcs/subscribersCreate.js.map +1 -1
- package/funcs/subscribersCreateBulk.js +4 -4
- package/funcs/subscribersCreateBulk.js.map +1 -1
- package/funcs/subscribersCredentialsAppend.js +4 -4
- package/funcs/subscribersCredentialsAppend.js.map +1 -1
- package/funcs/subscribersCredentialsDelete.js +4 -4
- package/funcs/subscribersCredentialsDelete.js.map +1 -1
- package/funcs/subscribersCredentialsUpdate.js +4 -4
- package/funcs/subscribersCredentialsUpdate.js.map +1 -1
- package/funcs/subscribersDelete.js +4 -4
- package/funcs/subscribersDelete.js.map +1 -1
- package/funcs/subscribersList.js +6 -6
- package/funcs/subscribersList.js.map +1 -1
- package/funcs/subscribersMessagesMarkAll.js +4 -4
- package/funcs/subscribersMessagesMarkAll.js.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.js +4 -4
- package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.js +4 -4
- package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
- package/funcs/subscribersNotificationsFeed.js +4 -4
- package/funcs/subscribersNotificationsFeed.js.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.js +4 -4
- package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
- package/funcs/subscribersPreferencesList.js +4 -4
- package/funcs/subscribersPreferencesList.js.map +1 -1
- package/funcs/subscribersPreferencesRetrieveByLevel.js +4 -4
- package/funcs/subscribersPreferencesRetrieveByLevel.js.map +1 -1
- package/funcs/subscribersPreferencesUpdate.js +4 -4
- package/funcs/subscribersPreferencesUpdate.js.map +1 -1
- package/funcs/subscribersPreferencesUpdateGlobal.js +4 -4
- package/funcs/subscribersPreferencesUpdateGlobal.js.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js +4 -4
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js.map +1 -1
- package/funcs/subscribersRetrieve.js +4 -4
- package/funcs/subscribersRetrieve.js.map +1 -1
- package/funcs/subscribersUpdate.js +4 -4
- package/funcs/subscribersUpdate.js.map +1 -1
- package/funcs/topicsCreate.js +4 -4
- package/funcs/topicsCreate.js.map +1 -1
- package/funcs/topicsDelete.js +4 -4
- package/funcs/topicsDelete.js.map +1 -1
- package/funcs/topicsList.js +4 -4
- package/funcs/topicsList.js.map +1 -1
- package/funcs/topicsRename.js +4 -4
- package/funcs/topicsRename.js.map +1 -1
- package/funcs/topicsRetrieve.js +4 -4
- package/funcs/topicsRetrieve.js.map +1 -1
- package/funcs/topicsSubscribersAssign.js +4 -4
- package/funcs/topicsSubscribersAssign.js.map +1 -1
- package/funcs/topicsSubscribersRemove.js +4 -4
- package/funcs/topicsSubscribersRemove.js.map +1 -1
- package/funcs/topicsSubscribersRetrieve.js +4 -4
- package/funcs/topicsSubscribersRetrieve.js.map +1 -1
- package/funcs/trigger.js +4 -4
- package/funcs/trigger.js.map +1 -1
- package/funcs/triggerBroadcast.js +4 -4
- package/funcs/triggerBroadcast.js.map +1 -1
- package/funcs/triggerBulk.js +4 -4
- package/funcs/triggerBulk.js.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +4 -5
- package/lib/config.js.map +1 -1
- package/lib/encodings.js +18 -19
- package/lib/encodings.js.map +1 -1
- package/lib/http.js +1 -2
- package/lib/http.js.map +1 -1
- package/lib/matchers.js +5 -6
- package/lib/matchers.js.map +1 -1
- package/lib/primitives.js +1 -1
- package/lib/primitives.js.map +1 -1
- package/lib/retries.js +3 -4
- package/lib/retries.js.map +1 -1
- package/lib/sdks.js +15 -16
- package/lib/sdks.js.map +1 -1
- package/lib/security.js +1 -1
- package/lib/security.js.map +1 -1
- package/lib/url.js +1 -1
- package/lib/url.js.map +1 -1
- package/models/components/activitynotificationexecutiondetailresponsedto.d.ts +0 -5
- package/models/components/activitynotificationexecutiondetailresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationexecutiondetailresponsedto.js +0 -4
- package/models/components/activitynotificationexecutiondetailresponsedto.js.map +1 -1
- package/models/components/activitynotificationjobresponsedto.d.ts +49 -19
- package/models/components/activitynotificationjobresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationjobresponsedto.js +29 -23
- package/models/components/activitynotificationjobresponsedto.js.map +1 -1
- package/models/components/builderfieldtype.d.ts +46 -0
- package/models/components/builderfieldtype.d.ts.map +1 -0
- package/models/components/builderfieldtype.js +56 -0
- package/models/components/builderfieldtype.js.map +1 -0
- package/models/components/createintegrationrequestdto.d.ts +3 -3
- package/models/components/createintegrationrequestdto.d.ts.map +1 -1
- package/models/components/createintegrationrequestdto.js +3 -3
- package/models/components/createintegrationrequestdto.js.map +1 -1
- package/models/components/digestregularmetadata.d.ts +8 -8
- package/models/components/digestregularmetadata.d.ts.map +1 -1
- package/models/components/digestregularmetadata.js +13 -13
- package/models/components/digestregularmetadata.js.map +1 -1
- package/models/components/digestwitheventsdto.d.ts +95 -0
- package/models/components/digestwitheventsdto.d.ts.map +1 -0
- package/models/components/digestwitheventsdto.js +91 -0
- package/models/components/digestwitheventsdto.js.map +1 -0
- package/models/components/fieldfilterpartdto.d.ts +122 -0
- package/models/components/fieldfilterpartdto.d.ts.map +1 -0
- package/models/components/fieldfilterpartdto.js +116 -0
- package/models/components/fieldfilterpartdto.js.map +1 -0
- 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/integrationresponsedto.d.ts +3 -3
- package/models/components/integrationresponsedto.d.ts.map +1 -1
- package/models/components/integrationresponsedto.js +3 -3
- package/models/components/integrationresponsedto.js.map +1 -1
- package/models/components/notificationstep.d.ts +3 -3
- package/models/components/notificationstep.d.ts.map +1 -1
- package/models/components/notificationstep.js +3 -3
- package/models/components/notificationstep.js.map +1 -1
- package/models/components/notificationstepvariant.d.ts +3 -3
- package/models/components/notificationstepvariant.d.ts.map +1 -1
- package/models/components/notificationstepvariant.js +3 -3
- package/models/components/notificationstepvariant.js.map +1 -1
- package/models/components/notificationtriggervariableresponse.d.ts +15 -15
- package/models/components/notificationtriggervariableresponse.d.ts.map +1 -1
- package/models/components/notificationtriggervariableresponse.js +20 -19
- package/models/components/notificationtriggervariableresponse.js.map +1 -1
- package/models/components/stepfilterdto.d.ts +63 -0
- package/models/components/stepfilterdto.d.ts.map +1 -0
- package/models/components/stepfilterdto.js +86 -0
- package/models/components/stepfilterdto.js.map +1 -0
- package/models/components/subscriberresponsedto.d.ts +2 -2
- package/models/components/subscriberresponsedto.d.ts.map +1 -1
- package/models/components/subscriberresponsedto.js +2 -2
- package/models/components/subscriberresponsedto.js.map +1 -1
- package/models/components/updateintegrationrequestdto.d.ts +3 -3
- package/models/components/updateintegrationrequestdto.d.ts.map +1 -1
- package/models/components/updateintegrationrequestdto.js +3 -3
- package/models/components/updateintegrationrequestdto.js.map +1 -1
- package/models/errors/httpclienterrors.js +2 -2
- package/models/errors/httpclienterrors.js.map +1 -1
- package/package.json +1 -1
- package/sdk/integrations.js +1 -2
- package/sdk/integrations.js.map +1 -1
- package/sdk/notifications.js +1 -2
- package/sdk/notifications.js.map +1 -1
- package/sdk/sdk.js +5 -10
- package/sdk/sdk.js.map +1 -1
- package/sdk/subscribers.js +6 -12
- package/sdk/subscribers.js.map +1 -1
- package/sdk/topics.js +1 -2
- package/sdk/topics.js.map +1 -1
- package/src/funcs/subscribersList.ts +2 -2
- package/src/lib/config.ts +3 -3
- package/src/models/components/activitynotificationexecutiondetailresponsedto.ts +0 -9
- package/src/models/components/activitynotificationjobresponsedto.ts +47 -41
- package/src/models/components/builderfieldtype.ts +39 -0
- package/src/models/components/createintegrationrequestdto.ts +9 -9
- package/src/models/components/digestregularmetadata.ts +18 -15
- package/src/models/components/digestwitheventsdto.ts +127 -0
- package/src/models/components/fieldfilterpartdto.ts +139 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/integrationresponsedto.ts +9 -9
- package/src/models/components/notificationstep.ts +9 -9
- package/src/models/components/notificationstepvariant.ts +9 -9
- package/src/models/components/notificationtriggervariableresponse.ts +44 -24
- package/src/models/components/stepfilterdto.ts +112 -0
- package/src/models/components/subscriberresponsedto.ts +4 -4
- package/src/models/components/updateintegrationrequestdto.ts +9 -9
|
@@ -11,7 +11,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
/**
|
|
12
12
|
* The value of the variable
|
|
13
13
|
*/
|
|
14
|
-
export type
|
|
14
|
+
export type NotificationTriggerVariableResponseValue = {};
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* The type of the variable
|
|
@@ -36,7 +36,7 @@ export type NotificationTriggerVariableResponse = {
|
|
|
36
36
|
/**
|
|
37
37
|
* The value of the variable
|
|
38
38
|
*/
|
|
39
|
-
value?:
|
|
39
|
+
value?: NotificationTriggerVariableResponseValue | undefined;
|
|
40
40
|
/**
|
|
41
41
|
* The type of the variable
|
|
42
42
|
*/
|
|
@@ -44,43 +44,61 @@ export type NotificationTriggerVariableResponse = {
|
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
/** @internal */
|
|
47
|
-
export const
|
|
48
|
-
|
|
47
|
+
export const NotificationTriggerVariableResponseValue$inboundSchema: z.ZodType<
|
|
48
|
+
NotificationTriggerVariableResponseValue,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
unknown
|
|
51
|
+
> = z.object({});
|
|
49
52
|
|
|
50
53
|
/** @internal */
|
|
51
|
-
export type
|
|
54
|
+
export type NotificationTriggerVariableResponseValue$Outbound = {};
|
|
52
55
|
|
|
53
56
|
/** @internal */
|
|
54
|
-
export const
|
|
55
|
-
|
|
57
|
+
export const NotificationTriggerVariableResponseValue$outboundSchema: z.ZodType<
|
|
58
|
+
NotificationTriggerVariableResponseValue$Outbound,
|
|
56
59
|
z.ZodTypeDef,
|
|
57
|
-
|
|
60
|
+
NotificationTriggerVariableResponseValue
|
|
58
61
|
> = z.object({});
|
|
59
62
|
|
|
60
63
|
/**
|
|
61
64
|
* @internal
|
|
62
65
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
66
|
*/
|
|
64
|
-
export namespace
|
|
65
|
-
/** @deprecated use `
|
|
66
|
-
export const inboundSchema =
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
export namespace NotificationTriggerVariableResponseValue$ {
|
|
68
|
+
/** @deprecated use `NotificationTriggerVariableResponseValue$inboundSchema` instead. */
|
|
69
|
+
export const inboundSchema =
|
|
70
|
+
NotificationTriggerVariableResponseValue$inboundSchema;
|
|
71
|
+
/** @deprecated use `NotificationTriggerVariableResponseValue$outboundSchema` instead. */
|
|
72
|
+
export const outboundSchema =
|
|
73
|
+
NotificationTriggerVariableResponseValue$outboundSchema;
|
|
74
|
+
/** @deprecated use `NotificationTriggerVariableResponseValue$Outbound` instead. */
|
|
75
|
+
export type Outbound = NotificationTriggerVariableResponseValue$Outbound;
|
|
71
76
|
}
|
|
72
77
|
|
|
73
|
-
export function
|
|
74
|
-
|
|
78
|
+
export function notificationTriggerVariableResponseValueToJSON(
|
|
79
|
+
notificationTriggerVariableResponseValue:
|
|
80
|
+
NotificationTriggerVariableResponseValue,
|
|
81
|
+
): string {
|
|
82
|
+
return JSON.stringify(
|
|
83
|
+
NotificationTriggerVariableResponseValue$outboundSchema.parse(
|
|
84
|
+
notificationTriggerVariableResponseValue,
|
|
85
|
+
),
|
|
86
|
+
);
|
|
75
87
|
}
|
|
76
88
|
|
|
77
|
-
export function
|
|
89
|
+
export function notificationTriggerVariableResponseValueFromJSON(
|
|
78
90
|
jsonString: string,
|
|
79
|
-
): SafeParseResult<
|
|
91
|
+
): SafeParseResult<
|
|
92
|
+
NotificationTriggerVariableResponseValue,
|
|
93
|
+
SDKValidationError
|
|
94
|
+
> {
|
|
80
95
|
return safeParse(
|
|
81
96
|
jsonString,
|
|
82
|
-
(x) =>
|
|
83
|
-
|
|
97
|
+
(x) =>
|
|
98
|
+
NotificationTriggerVariableResponseValue$inboundSchema.parse(
|
|
99
|
+
JSON.parse(x),
|
|
100
|
+
),
|
|
101
|
+
`Failed to parse 'NotificationTriggerVariableResponseValue' from JSON`,
|
|
84
102
|
);
|
|
85
103
|
}
|
|
86
104
|
|
|
@@ -114,14 +132,15 @@ export const NotificationTriggerVariableResponse$inboundSchema: z.ZodType<
|
|
|
114
132
|
unknown
|
|
115
133
|
> = z.object({
|
|
116
134
|
name: z.string(),
|
|
117
|
-
value: z.lazy(() =>
|
|
135
|
+
value: z.lazy(() => NotificationTriggerVariableResponseValue$inboundSchema)
|
|
136
|
+
.optional(),
|
|
118
137
|
type: NotificationTriggerVariableResponseType$inboundSchema.optional(),
|
|
119
138
|
});
|
|
120
139
|
|
|
121
140
|
/** @internal */
|
|
122
141
|
export type NotificationTriggerVariableResponse$Outbound = {
|
|
123
142
|
name: string;
|
|
124
|
-
value?:
|
|
143
|
+
value?: NotificationTriggerVariableResponseValue$Outbound | undefined;
|
|
125
144
|
type?: string | undefined;
|
|
126
145
|
};
|
|
127
146
|
|
|
@@ -132,7 +151,8 @@ export const NotificationTriggerVariableResponse$outboundSchema: z.ZodType<
|
|
|
132
151
|
NotificationTriggerVariableResponse
|
|
133
152
|
> = z.object({
|
|
134
153
|
name: z.string(),
|
|
135
|
-
value: z.lazy(() =>
|
|
154
|
+
value: z.lazy(() => NotificationTriggerVariableResponseValue$outboundSchema)
|
|
155
|
+
.optional(),
|
|
136
156
|
type: NotificationTriggerVariableResponseType$outboundSchema.optional(),
|
|
137
157
|
});
|
|
138
158
|
|
|
@@ -0,0 +1,112 @@
|
|
|
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
|
+
BuilderFieldType,
|
|
12
|
+
BuilderFieldType$inboundSchema,
|
|
13
|
+
BuilderFieldType$outboundSchema,
|
|
14
|
+
} from "./builderfieldtype.js";
|
|
15
|
+
import {
|
|
16
|
+
FieldFilterPartDto,
|
|
17
|
+
FieldFilterPartDto$inboundSchema,
|
|
18
|
+
FieldFilterPartDto$Outbound,
|
|
19
|
+
FieldFilterPartDto$outboundSchema,
|
|
20
|
+
} from "./fieldfilterpartdto.js";
|
|
21
|
+
|
|
22
|
+
export const Value = {
|
|
23
|
+
And: "AND",
|
|
24
|
+
Or: "OR",
|
|
25
|
+
} as const;
|
|
26
|
+
export type Value = ClosedEnum<typeof Value>;
|
|
27
|
+
|
|
28
|
+
export type StepFilterDto = {
|
|
29
|
+
isNegated: boolean;
|
|
30
|
+
type: BuilderFieldType;
|
|
31
|
+
value: Value;
|
|
32
|
+
children: Array<FieldFilterPartDto>;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const Value$inboundSchema: z.ZodNativeEnum<typeof Value> = z.nativeEnum(
|
|
37
|
+
Value,
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const Value$outboundSchema: z.ZodNativeEnum<typeof Value> =
|
|
42
|
+
Value$inboundSchema;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
47
|
+
*/
|
|
48
|
+
export namespace Value$ {
|
|
49
|
+
/** @deprecated use `Value$inboundSchema` instead. */
|
|
50
|
+
export const inboundSchema = Value$inboundSchema;
|
|
51
|
+
/** @deprecated use `Value$outboundSchema` instead. */
|
|
52
|
+
export const outboundSchema = Value$outboundSchema;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const StepFilterDto$inboundSchema: z.ZodType<
|
|
57
|
+
StepFilterDto,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
unknown
|
|
60
|
+
> = z.object({
|
|
61
|
+
isNegated: z.boolean(),
|
|
62
|
+
type: BuilderFieldType$inboundSchema,
|
|
63
|
+
value: Value$inboundSchema,
|
|
64
|
+
children: z.array(FieldFilterPartDto$inboundSchema),
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
/** @internal */
|
|
68
|
+
export type StepFilterDto$Outbound = {
|
|
69
|
+
isNegated: boolean;
|
|
70
|
+
type: string;
|
|
71
|
+
value: string;
|
|
72
|
+
children: Array<FieldFilterPartDto$Outbound>;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const StepFilterDto$outboundSchema: z.ZodType<
|
|
77
|
+
StepFilterDto$Outbound,
|
|
78
|
+
z.ZodTypeDef,
|
|
79
|
+
StepFilterDto
|
|
80
|
+
> = z.object({
|
|
81
|
+
isNegated: z.boolean(),
|
|
82
|
+
type: BuilderFieldType$outboundSchema,
|
|
83
|
+
value: Value$outboundSchema,
|
|
84
|
+
children: z.array(FieldFilterPartDto$outboundSchema),
|
|
85
|
+
});
|
|
86
|
+
|
|
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 namespace StepFilterDto$ {
|
|
92
|
+
/** @deprecated use `StepFilterDto$inboundSchema` instead. */
|
|
93
|
+
export const inboundSchema = StepFilterDto$inboundSchema;
|
|
94
|
+
/** @deprecated use `StepFilterDto$outboundSchema` instead. */
|
|
95
|
+
export const outboundSchema = StepFilterDto$outboundSchema;
|
|
96
|
+
/** @deprecated use `StepFilterDto$Outbound` instead. */
|
|
97
|
+
export type Outbound = StepFilterDto$Outbound;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function stepFilterDtoToJSON(stepFilterDto: StepFilterDto): string {
|
|
101
|
+
return JSON.stringify(StepFilterDto$outboundSchema.parse(stepFilterDto));
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function stepFilterDtoFromJSON(
|
|
105
|
+
jsonString: string,
|
|
106
|
+
): SafeParseResult<StepFilterDto, SDKValidationError> {
|
|
107
|
+
return safeParse(
|
|
108
|
+
jsonString,
|
|
109
|
+
(x) => StepFilterDto$inboundSchema.parse(JSON.parse(x)),
|
|
110
|
+
`Failed to parse 'StepFilterDto' from JSON`,
|
|
111
|
+
);
|
|
112
|
+
}
|
|
@@ -30,7 +30,7 @@ export type SubscriberResponseDto = {
|
|
|
30
30
|
/**
|
|
31
31
|
* The email address of the subscriber.
|
|
32
32
|
*/
|
|
33
|
-
email?: string | undefined;
|
|
33
|
+
email?: string | null | undefined;
|
|
34
34
|
/**
|
|
35
35
|
* The phone number of the subscriber.
|
|
36
36
|
*/
|
|
@@ -98,7 +98,7 @@ export const SubscriberResponseDto$inboundSchema: z.ZodType<
|
|
|
98
98
|
_id: z.string().optional(),
|
|
99
99
|
firstName: z.string().optional(),
|
|
100
100
|
lastName: z.string().optional(),
|
|
101
|
-
email: z.string().optional(),
|
|
101
|
+
email: z.nullable(z.string()).optional(),
|
|
102
102
|
phone: z.string().optional(),
|
|
103
103
|
avatar: z.string().optional(),
|
|
104
104
|
locale: z.string().optional(),
|
|
@@ -127,7 +127,7 @@ export type SubscriberResponseDto$Outbound = {
|
|
|
127
127
|
_id?: string | undefined;
|
|
128
128
|
firstName?: string | undefined;
|
|
129
129
|
lastName?: string | undefined;
|
|
130
|
-
email?: string | undefined;
|
|
130
|
+
email?: string | null | undefined;
|
|
131
131
|
phone?: string | undefined;
|
|
132
132
|
avatar?: string | undefined;
|
|
133
133
|
locale?: string | undefined;
|
|
@@ -153,7 +153,7 @@ export const SubscriberResponseDto$outboundSchema: z.ZodType<
|
|
|
153
153
|
id: z.string().optional(),
|
|
154
154
|
firstName: z.string().optional(),
|
|
155
155
|
lastName: z.string().optional(),
|
|
156
|
-
email: z.string().optional(),
|
|
156
|
+
email: z.nullable(z.string()).optional(),
|
|
157
157
|
phone: z.string().optional(),
|
|
158
158
|
avatar: z.string().optional(),
|
|
159
159
|
locale: z.string().optional(),
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
CredentialsDto$outboundSchema,
|
|
15
15
|
} from "./credentialsdto.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
17
|
+
StepFilterDto,
|
|
18
|
+
StepFilterDto$inboundSchema,
|
|
19
|
+
StepFilterDto$Outbound,
|
|
20
|
+
StepFilterDto$outboundSchema,
|
|
21
|
+
} from "./stepfilterdto.js";
|
|
22
22
|
|
|
23
23
|
export type UpdateIntegrationRequestDto = {
|
|
24
24
|
name?: string | undefined;
|
|
@@ -34,7 +34,7 @@ export type UpdateIntegrationRequestDto = {
|
|
|
34
34
|
*/
|
|
35
35
|
removeNovuBranding?: boolean | undefined;
|
|
36
36
|
check?: boolean | undefined;
|
|
37
|
-
conditions?: Array<
|
|
37
|
+
conditions?: Array<StepFilterDto> | undefined;
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
/** @internal */
|
|
@@ -50,7 +50,7 @@ export const UpdateIntegrationRequestDto$inboundSchema: z.ZodType<
|
|
|
50
50
|
credentials: CredentialsDto$inboundSchema.optional(),
|
|
51
51
|
removeNovuBranding: z.boolean().optional(),
|
|
52
52
|
check: z.boolean().optional(),
|
|
53
|
-
conditions: z.array(
|
|
53
|
+
conditions: z.array(StepFilterDto$inboundSchema).optional(),
|
|
54
54
|
}).transform((v) => {
|
|
55
55
|
return remap$(v, {
|
|
56
56
|
"_environmentId": "environmentId",
|
|
@@ -66,7 +66,7 @@ export type UpdateIntegrationRequestDto$Outbound = {
|
|
|
66
66
|
credentials?: CredentialsDto$Outbound | undefined;
|
|
67
67
|
removeNovuBranding?: boolean | undefined;
|
|
68
68
|
check?: boolean | undefined;
|
|
69
|
-
conditions?: Array<
|
|
69
|
+
conditions?: Array<StepFilterDto$Outbound> | undefined;
|
|
70
70
|
};
|
|
71
71
|
|
|
72
72
|
/** @internal */
|
|
@@ -82,7 +82,7 @@ export const UpdateIntegrationRequestDto$outboundSchema: z.ZodType<
|
|
|
82
82
|
credentials: CredentialsDto$outboundSchema.optional(),
|
|
83
83
|
removeNovuBranding: z.boolean().optional(),
|
|
84
84
|
check: z.boolean().optional(),
|
|
85
|
-
conditions: z.array(
|
|
85
|
+
conditions: z.array(StepFilterDto$outboundSchema).optional(),
|
|
86
86
|
}).transform((v) => {
|
|
87
87
|
return remap$(v, {
|
|
88
88
|
environmentId: "_environmentId",
|