Skip to content

Commit 8be8cbe

Browse files
committed
fix: any record
1 parent 050322f commit 8be8cbe

File tree

3 files changed

+36
-48
lines changed

3 files changed

+36
-48
lines changed

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

+4-16
Original file line numberDiff line numberDiff line change
@@ -103,43 +103,31 @@ 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-
},
106+
additionalProperties: true,
110107
})
111108
email?: Record<string, any>;
112109

113110
@ApiPropertyOptional({
114111
description: 'Override the push provider specific configurations for the entire workflow',
115112
deprecated: true,
116113
type: 'object',
117-
additionalProperties: {
118-
type: 'object',
119-
additionalProperties: true,
120-
},
114+
additionalProperties: true,
121115
})
122116
push?: Record<string, any>;
123117

124118
@ApiPropertyOptional({
125119
description: 'Override the sms provider specific configurations for the entire workflow',
126120
deprecated: true,
127121
type: 'object',
128-
additionalProperties: {
129-
type: 'object',
130-
additionalProperties: true,
131-
},
122+
additionalProperties: true,
132123
})
133124
sms?: Record<string, any>;
134125

135126
@ApiPropertyOptional({
136127
description: 'Override the chat provider specific configurations for the entire workflow',
137128
deprecated: true,
138129
type: 'object',
139-
additionalProperties: {
140-
type: 'object',
141-
additionalProperties: true,
142-
},
130+
additionalProperties: true,
143131
})
144132
chat?: Record<string, any>;
145133

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

+16-16
Original file line numberDiff line numberDiff line change
@@ -49,25 +49,25 @@ export type Overrides = {
4949
*
5050
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
5151
*/
52-
email?: { [k: string]: { [k: string]: any } } | undefined;
52+
email?: { [k: string]: any } | undefined;
5353
/**
5454
* Override the push provider specific configurations for the entire workflow
5555
*
5656
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
5757
*/
58-
push?: { [k: string]: { [k: string]: any } } | undefined;
58+
push?: { [k: string]: any } | undefined;
5959
/**
6060
* Override the sms provider specific configurations for the entire workflow
6161
*
6262
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
6363
*/
64-
sms?: { [k: string]: { [k: string]: any } } | undefined;
64+
sms?: { [k: string]: any } | undefined;
6565
/**
6666
* Override the chat provider specific configurations for the entire workflow
6767
*
6868
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
6969
*/
70-
chat?: { [k: string]: { [k: string]: any } } | undefined;
70+
chat?: { [k: string]: any } | undefined;
7171
/**
7272
* Override the layout identifier for the entire workflow
7373
*
@@ -156,21 +156,21 @@ export const Overrides$inboundSchema: z.ZodType<
156156
> = z.object({
157157
steps: z.record(StepsOverrides$inboundSchema).optional(),
158158
providers: z.record(z.record(z.any())).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(),
159+
email: z.record(z.any()).optional(),
160+
push: z.record(z.any()).optional(),
161+
sms: z.record(z.any()).optional(),
162+
chat: z.record(z.any()).optional(),
163163
layoutIdentifier: z.string().optional(),
164164
});
165165

166166
/** @internal */
167167
export type Overrides$Outbound = {
168168
steps?: { [k: string]: StepsOverrides$Outbound } | undefined;
169169
providers?: { [k: string]: { [k: string]: any } } | 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;
170+
email?: { [k: string]: any } | undefined;
171+
push?: { [k: string]: any } | undefined;
172+
sms?: { [k: string]: any } | undefined;
173+
chat?: { [k: string]: any } | undefined;
174174
layoutIdentifier?: string | undefined;
175175
};
176176

@@ -182,10 +182,10 @@ export const Overrides$outboundSchema: z.ZodType<
182182
> = z.object({
183183
steps: z.record(StepsOverrides$outboundSchema).optional(),
184184
providers: z.record(z.record(z.any())).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(),
185+
email: z.record(z.any()).optional(),
186+
push: z.record(z.any()).optional(),
187+
sms: z.record(z.any()).optional(),
188+
chat: z.record(z.any()).optional(),
189189
layoutIdentifier: z.string().optional(),
190190
});
191191

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

+16-16
Original file line numberDiff line numberDiff line change
@@ -46,25 +46,25 @@ export type TriggerEventToAllRequestDtoOverrides = {
4646
*
4747
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
4848
*/
49-
email?: { [k: string]: { [k: string]: any } } | undefined;
49+
email?: { [k: string]: any } | undefined;
5050
/**
5151
* Override the push provider specific configurations for the entire workflow
5252
*
5353
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
5454
*/
55-
push?: { [k: string]: { [k: string]: any } } | undefined;
55+
push?: { [k: string]: any } | undefined;
5656
/**
5757
* Override the sms provider specific configurations for the entire workflow
5858
*
5959
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
6060
*/
61-
sms?: { [k: string]: { [k: string]: any } } | undefined;
61+
sms?: { [k: string]: any } | undefined;
6262
/**
6363
* Override the chat provider specific configurations for the entire workflow
6464
*
6565
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
6666
*/
67-
chat?: { [k: string]: { [k: string]: any } } | undefined;
67+
chat?: { [k: string]: any } | undefined;
6868
/**
6969
* Override the layout identifier for the entire workflow
7070
*
@@ -136,10 +136,10 @@ export const TriggerEventToAllRequestDtoOverrides$inboundSchema: z.ZodType<
136136
z.object({
137137
steps: z.record(StepsOverrides$inboundSchema).optional(),
138138
providers: z.record(z.record(z.any())).optional(),
139-
email: z.record(z.record(z.any())).optional(),
140-
push: z.record(z.record(z.any())).optional(),
141-
sms: z.record(z.record(z.any())).optional(),
142-
chat: z.record(z.record(z.any())).optional(),
139+
email: z.record(z.any()).optional(),
140+
push: z.record(z.any()).optional(),
141+
sms: z.record(z.any()).optional(),
142+
chat: z.record(z.any()).optional(),
143143
layoutIdentifier: z.string().optional(),
144144
}).catchall(z.record(z.any())),
145145
"additionalProperties",
@@ -150,10 +150,10 @@ export const TriggerEventToAllRequestDtoOverrides$inboundSchema: z.ZodType<
150150
export type TriggerEventToAllRequestDtoOverrides$Outbound = {
151151
steps?: { [k: string]: StepsOverrides$Outbound } | undefined;
152152
providers?: { [k: string]: { [k: string]: any } } | undefined;
153-
email?: { [k: string]: { [k: string]: any } } | undefined;
154-
push?: { [k: string]: { [k: string]: any } } | undefined;
155-
sms?: { [k: string]: { [k: string]: any } } | undefined;
156-
chat?: { [k: string]: { [k: string]: any } } | undefined;
153+
email?: { [k: string]: any } | undefined;
154+
push?: { [k: string]: any } | undefined;
155+
sms?: { [k: string]: any } | undefined;
156+
chat?: { [k: string]: any } | undefined;
157157
layoutIdentifier?: string | undefined;
158158
[additionalProperties: string]: unknown;
159159
};
@@ -166,10 +166,10 @@ export const TriggerEventToAllRequestDtoOverrides$outboundSchema: z.ZodType<
166166
> = z.object({
167167
steps: z.record(StepsOverrides$outboundSchema).optional(),
168168
providers: z.record(z.record(z.any())).optional(),
169-
email: z.record(z.record(z.any())).optional(),
170-
push: z.record(z.record(z.any())).optional(),
171-
sms: z.record(z.record(z.any())).optional(),
172-
chat: z.record(z.record(z.any())).optional(),
169+
email: z.record(z.any()).optional(),
170+
push: z.record(z.any()).optional(),
171+
sms: z.record(z.any()).optional(),
172+
chat: z.record(z.any()).optional(),
173173
layoutIdentifier: z.string().optional(),
174174
additionalProperties: z.record(z.record(z.any())),
175175
}).transform((v) => {

0 commit comments

Comments
 (0)