Skip to content

Commit 050322f

Browse files
committed
fix: unknown
1 parent 2eda1a0 commit 050322f

File tree

3 files changed

+49
-448
lines changed

3 files changed

+49
-448
lines changed

apps/api/src/app/events/dtos/trigger-event-request.dto.ts

+17-1
Original file line numberDiff line numberDiff line change
@@ -103,27 +103,43 @@ export class TriggerOverrides {
103103
description: 'Override the email provider specific configurations for the entire workflow',
104104
deprecated: true,
105105
type: 'object',
106+
additionalProperties: {
107+
type: 'object',
108+
additionalProperties: true,
109+
},
106110
})
107-
email?: Record<string, unknown>;
111+
email?: Record<string, any>;
108112

109113
@ApiPropertyOptional({
110114
description: 'Override the push provider specific configurations for the entire workflow',
111115
deprecated: true,
112116
type: 'object',
117+
additionalProperties: {
118+
type: 'object',
119+
additionalProperties: true,
120+
},
113121
})
114122
push?: Record<string, any>;
115123

116124
@ApiPropertyOptional({
117125
description: 'Override the sms provider specific configurations for the entire workflow',
118126
deprecated: true,
119127
type: 'object',
128+
additionalProperties: {
129+
type: 'object',
130+
additionalProperties: true,
131+
},
120132
})
121133
sms?: Record<string, any>;
122134

123135
@ApiPropertyOptional({
124136
description: 'Override the chat provider specific configurations for the entire workflow',
125137
deprecated: true,
126138
type: 'object',
139+
additionalProperties: {
140+
type: 'object',
141+
additionalProperties: true,
142+
},
127143
})
128144
chat?: Record<string, any>;
129145

libs/internal-sdk/src/models/components/triggereventrequestdto.ts

+16-199
Original file line numberDiff line numberDiff line change
@@ -32,34 +32,6 @@ import {
3232
TopicPayloadDto$outboundSchema,
3333
} from "./topicpayloaddto.js";
3434

35-
/**
36-
* Override the email provider specific configurations for the entire workflow
37-
*
38-
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
39-
*/
40-
export type Email = {};
41-
42-
/**
43-
* Override the push provider specific configurations for the entire workflow
44-
*
45-
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
46-
*/
47-
export type Push = {};
48-
49-
/**
50-
* Override the sms provider specific configurations for the entire workflow
51-
*
52-
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
53-
*/
54-
export type Sms = {};
55-
56-
/**
57-
* Override the chat provider specific configurations for the entire workflow
58-
*
59-
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
60-
*/
61-
export type Chat = {};
62-
6335
/**
6436
* This could be used to override provider specific configurations
6537
*/
@@ -77,25 +49,25 @@ export type Overrides = {
7749
*
7850
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
7951
*/
80-
email?: Email | undefined;
52+
email?: { [k: string]: { [k: string]: any } } | undefined;
8153
/**
8254
* Override the push provider specific configurations for the entire workflow
8355
*
8456
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
8557
*/
86-
push?: Push | undefined;
58+
push?: { [k: string]: { [k: string]: any } } | undefined;
8759
/**
8860
* Override the sms provider specific configurations for the entire workflow
8961
*
9062
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
9163
*/
92-
sms?: Sms | undefined;
64+
sms?: { [k: string]: { [k: string]: any } } | undefined;
9365
/**
9466
* Override the chat provider specific configurations for the entire workflow
9567
*
9668
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
9769
*/
98-
chat?: Chat | undefined;
70+
chat?: { [k: string]: { [k: string]: any } } | undefined;
9971
/**
10072
* Override the layout identifier for the entire workflow
10173
*
@@ -176,161 +148,6 @@ export type TriggerEventRequestDto = {
176148
tenant?: TenantPayloadDto | string | undefined;
177149
};
178150

179-
/** @internal */
180-
export const Email$inboundSchema: z.ZodType<Email, z.ZodTypeDef, unknown> = z
181-
.object({});
182-
183-
/** @internal */
184-
export type Email$Outbound = {};
185-
186-
/** @internal */
187-
export const Email$outboundSchema: z.ZodType<
188-
Email$Outbound,
189-
z.ZodTypeDef,
190-
Email
191-
> = z.object({});
192-
193-
/**
194-
* @internal
195-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
196-
*/
197-
export namespace Email$ {
198-
/** @deprecated use `Email$inboundSchema` instead. */
199-
export const inboundSchema = Email$inboundSchema;
200-
/** @deprecated use `Email$outboundSchema` instead. */
201-
export const outboundSchema = Email$outboundSchema;
202-
/** @deprecated use `Email$Outbound` instead. */
203-
export type Outbound = Email$Outbound;
204-
}
205-
206-
export function emailToJSON(email: Email): string {
207-
return JSON.stringify(Email$outboundSchema.parse(email));
208-
}
209-
210-
export function emailFromJSON(
211-
jsonString: string,
212-
): SafeParseResult<Email, SDKValidationError> {
213-
return safeParse(
214-
jsonString,
215-
(x) => Email$inboundSchema.parse(JSON.parse(x)),
216-
`Failed to parse 'Email' from JSON`,
217-
);
218-
}
219-
220-
/** @internal */
221-
export const Push$inboundSchema: z.ZodType<Push, z.ZodTypeDef, unknown> = z
222-
.object({});
223-
224-
/** @internal */
225-
export type Push$Outbound = {};
226-
227-
/** @internal */
228-
export const Push$outboundSchema: z.ZodType<Push$Outbound, z.ZodTypeDef, Push> =
229-
z.object({});
230-
231-
/**
232-
* @internal
233-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
234-
*/
235-
export namespace Push$ {
236-
/** @deprecated use `Push$inboundSchema` instead. */
237-
export const inboundSchema = Push$inboundSchema;
238-
/** @deprecated use `Push$outboundSchema` instead. */
239-
export const outboundSchema = Push$outboundSchema;
240-
/** @deprecated use `Push$Outbound` instead. */
241-
export type Outbound = Push$Outbound;
242-
}
243-
244-
export function pushToJSON(push: Push): string {
245-
return JSON.stringify(Push$outboundSchema.parse(push));
246-
}
247-
248-
export function pushFromJSON(
249-
jsonString: string,
250-
): SafeParseResult<Push, SDKValidationError> {
251-
return safeParse(
252-
jsonString,
253-
(x) => Push$inboundSchema.parse(JSON.parse(x)),
254-
`Failed to parse 'Push' from JSON`,
255-
);
256-
}
257-
258-
/** @internal */
259-
export const Sms$inboundSchema: z.ZodType<Sms, z.ZodTypeDef, unknown> = z
260-
.object({});
261-
262-
/** @internal */
263-
export type Sms$Outbound = {};
264-
265-
/** @internal */
266-
export const Sms$outboundSchema: z.ZodType<Sms$Outbound, z.ZodTypeDef, Sms> = z
267-
.object({});
268-
269-
/**
270-
* @internal
271-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
272-
*/
273-
export namespace Sms$ {
274-
/** @deprecated use `Sms$inboundSchema` instead. */
275-
export const inboundSchema = Sms$inboundSchema;
276-
/** @deprecated use `Sms$outboundSchema` instead. */
277-
export const outboundSchema = Sms$outboundSchema;
278-
/** @deprecated use `Sms$Outbound` instead. */
279-
export type Outbound = Sms$Outbound;
280-
}
281-
282-
export function smsToJSON(sms: Sms): string {
283-
return JSON.stringify(Sms$outboundSchema.parse(sms));
284-
}
285-
286-
export function smsFromJSON(
287-
jsonString: string,
288-
): SafeParseResult<Sms, SDKValidationError> {
289-
return safeParse(
290-
jsonString,
291-
(x) => Sms$inboundSchema.parse(JSON.parse(x)),
292-
`Failed to parse 'Sms' from JSON`,
293-
);
294-
}
295-
296-
/** @internal */
297-
export const Chat$inboundSchema: z.ZodType<Chat, z.ZodTypeDef, unknown> = z
298-
.object({});
299-
300-
/** @internal */
301-
export type Chat$Outbound = {};
302-
303-
/** @internal */
304-
export const Chat$outboundSchema: z.ZodType<Chat$Outbound, z.ZodTypeDef, Chat> =
305-
z.object({});
306-
307-
/**
308-
* @internal
309-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
310-
*/
311-
export namespace Chat$ {
312-
/** @deprecated use `Chat$inboundSchema` instead. */
313-
export const inboundSchema = Chat$inboundSchema;
314-
/** @deprecated use `Chat$outboundSchema` instead. */
315-
export const outboundSchema = Chat$outboundSchema;
316-
/** @deprecated use `Chat$Outbound` instead. */
317-
export type Outbound = Chat$Outbound;
318-
}
319-
320-
export function chatToJSON(chat: Chat): string {
321-
return JSON.stringify(Chat$outboundSchema.parse(chat));
322-
}
323-
324-
export function chatFromJSON(
325-
jsonString: string,
326-
): SafeParseResult<Chat, SDKValidationError> {
327-
return safeParse(
328-
jsonString,
329-
(x) => Chat$inboundSchema.parse(JSON.parse(x)),
330-
`Failed to parse 'Chat' from JSON`,
331-
);
332-
}
333-
334151
/** @internal */
335152
export const Overrides$inboundSchema: z.ZodType<
336153
Overrides,
@@ -339,21 +156,21 @@ export const Overrides$inboundSchema: z.ZodType<
339156
> = z.object({
340157
steps: z.record(StepsOverrides$inboundSchema).optional(),
341158
providers: z.record(z.record(z.any())).optional(),
342-
email: z.lazy(() => Email$inboundSchema).optional(),
343-
push: z.lazy(() => Push$inboundSchema).optional(),
344-
sms: z.lazy(() => Sms$inboundSchema).optional(),
345-
chat: z.lazy(() => Chat$inboundSchema).optional(),
159+
email: z.record(z.record(z.any())).optional(),
160+
push: z.record(z.record(z.any())).optional(),
161+
sms: z.record(z.record(z.any())).optional(),
162+
chat: z.record(z.record(z.any())).optional(),
346163
layoutIdentifier: z.string().optional(),
347164
});
348165

349166
/** @internal */
350167
export type Overrides$Outbound = {
351168
steps?: { [k: string]: StepsOverrides$Outbound } | undefined;
352169
providers?: { [k: string]: { [k: string]: any } } | undefined;
353-
email?: Email$Outbound | undefined;
354-
push?: Push$Outbound | undefined;
355-
sms?: Sms$Outbound | undefined;
356-
chat?: Chat$Outbound | undefined;
170+
email?: { [k: string]: { [k: string]: any } } | undefined;
171+
push?: { [k: string]: { [k: string]: any } } | undefined;
172+
sms?: { [k: string]: { [k: string]: any } } | undefined;
173+
chat?: { [k: string]: { [k: string]: any } } | undefined;
357174
layoutIdentifier?: string | undefined;
358175
};
359176

@@ -365,10 +182,10 @@ export const Overrides$outboundSchema: z.ZodType<
365182
> = z.object({
366183
steps: z.record(StepsOverrides$outboundSchema).optional(),
367184
providers: z.record(z.record(z.any())).optional(),
368-
email: z.lazy(() => Email$outboundSchema).optional(),
369-
push: z.lazy(() => Push$outboundSchema).optional(),
370-
sms: z.lazy(() => Sms$outboundSchema).optional(),
371-
chat: z.lazy(() => Chat$outboundSchema).optional(),
185+
email: z.record(z.record(z.any())).optional(),
186+
push: z.record(z.record(z.any())).optional(),
187+
sms: z.record(z.record(z.any())).optional(),
188+
chat: z.record(z.record(z.any())).optional(),
372189
layoutIdentifier: z.string().optional(),
373190
});
374191

0 commit comments

Comments
 (0)