@unified-api/typescript-sdk 2.62.0 → 2.64.0
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/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/package.json +1 -1
- package/sdk/models/shared/atsmetadata.d.ts +386 -8
- package/sdk/models/shared/atsmetadata.d.ts.map +1 -1
- package/sdk/models/shared/atsmetadata.js +586 -9
- package/sdk/models/shared/atsmetadata.js.map +1 -1
- package/sdk/models/shared/commercemetadata.d.ts +386 -8
- package/sdk/models/shared/commercemetadata.d.ts.map +1 -1
- package/sdk/models/shared/commercemetadata.js +616 -9
- package/sdk/models/shared/commercemetadata.js.map +1 -1
- package/sdk/models/shared/crmmetadata.d.ts +386 -8
- package/sdk/models/shared/crmmetadata.d.ts.map +1 -1
- package/sdk/models/shared/crmmetadata.js +595 -9
- package/sdk/models/shared/crmmetadata.js.map +1 -1
- package/sdk/models/shared/hrismetadata.d.ts +386 -8
- package/sdk/models/shared/hrismetadata.d.ts.map +1 -1
- package/sdk/models/shared/hrismetadata.js +607 -9
- package/sdk/models/shared/hrismetadata.js.map +1 -1
- package/src/lib/config.ts +2 -2
- package/src/sdk/models/shared/atsmetadata.ts +1092 -16
- package/src/sdk/models/shared/commercemetadata.ts +1225 -16
- package/src/sdk/models/shared/crmmetadata.ts +1167 -16
- package/src/sdk/models/shared/hrismetadata.ts +1179 -16
|
@@ -8,36 +8,607 @@ import { safeParse } from "../../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
-
export type
|
|
11
|
+
export type CrmMetadataSchemasExtraData52 = {};
|
|
12
12
|
|
|
13
|
-
export type
|
|
13
|
+
export type CrmMetadata5 = CrmMetadataSchemasExtraData52 | Array<any>;
|
|
14
|
+
|
|
15
|
+
export type CrmMetadataSchemasExtraData2 = {};
|
|
16
|
+
|
|
17
|
+
export type CrmMetadata4 = CrmMetadataSchemasExtraData2 | boolean;
|
|
18
|
+
|
|
19
|
+
export type CrmMetadataSchemasExtraData32 = {};
|
|
20
|
+
|
|
21
|
+
export type CrmMetadata3 = CrmMetadataSchemasExtraData32 | number;
|
|
22
|
+
|
|
23
|
+
export type CrmMetadataSchemasExtraData22 = {};
|
|
24
|
+
|
|
25
|
+
export type CrmMetadata2 = CrmMetadataSchemasExtraData22 | string;
|
|
26
|
+
|
|
27
|
+
export type CrmMetadata1 = {};
|
|
28
|
+
|
|
29
|
+
export type CrmMetadataExtraData =
|
|
30
|
+
| CrmMetadata1
|
|
31
|
+
| CrmMetadataSchemasExtraData22
|
|
32
|
+
| string
|
|
33
|
+
| CrmMetadataSchemasExtraData32
|
|
34
|
+
| number
|
|
35
|
+
| CrmMetadataSchemasExtraData2
|
|
36
|
+
| boolean
|
|
37
|
+
| CrmMetadataSchemasExtraData52
|
|
38
|
+
| Array<any>;
|
|
39
|
+
|
|
40
|
+
export type CrmMetadataSchemasValue52 = {};
|
|
41
|
+
|
|
42
|
+
export type CrmMetadataSchemas5 = CrmMetadataSchemasValue52 | Array<any>;
|
|
43
|
+
|
|
44
|
+
export type CrmMetadataSchemasValue42 = {};
|
|
45
|
+
|
|
46
|
+
export type CrmMetadataSchemas4 = CrmMetadataSchemasValue42 | boolean;
|
|
47
|
+
|
|
48
|
+
export type CrmMetadataSchemasValue32 = {};
|
|
49
|
+
|
|
50
|
+
export type CrmMetadataSchemas3 = CrmMetadataSchemasValue32 | number;
|
|
51
|
+
|
|
52
|
+
export type CrmMetadataSchemasValue2 = {};
|
|
53
|
+
|
|
54
|
+
export type CrmMetadataSchemas2 = CrmMetadataSchemasValue2 | string;
|
|
55
|
+
|
|
56
|
+
export type CrmMetadataSchemas1 = {};
|
|
57
|
+
|
|
58
|
+
export type CrmMetadataValue =
|
|
59
|
+
| CrmMetadataSchemas1
|
|
60
|
+
| CrmMetadataSchemasValue2
|
|
61
|
+
| string
|
|
62
|
+
| CrmMetadataSchemasValue32
|
|
63
|
+
| number
|
|
64
|
+
| CrmMetadataSchemasValue42
|
|
65
|
+
| boolean
|
|
66
|
+
| CrmMetadataSchemasValue52
|
|
67
|
+
| Array<any>;
|
|
14
68
|
|
|
15
69
|
export type CrmMetadata = {
|
|
16
|
-
extraData?:
|
|
70
|
+
extraData?:
|
|
71
|
+
| CrmMetadata1
|
|
72
|
+
| CrmMetadataSchemasExtraData22
|
|
73
|
+
| string
|
|
74
|
+
| CrmMetadataSchemasExtraData32
|
|
75
|
+
| number
|
|
76
|
+
| CrmMetadataSchemasExtraData2
|
|
77
|
+
| boolean
|
|
78
|
+
| CrmMetadataSchemasExtraData52
|
|
79
|
+
| Array<any>
|
|
80
|
+
| undefined;
|
|
17
81
|
id?: string | undefined;
|
|
18
82
|
key?: string | undefined;
|
|
19
83
|
namespace?: string | undefined;
|
|
20
84
|
slug?: string | undefined;
|
|
21
85
|
type?: string | undefined;
|
|
22
|
-
value?:
|
|
86
|
+
value?:
|
|
87
|
+
| CrmMetadataSchemas1
|
|
88
|
+
| CrmMetadataSchemasValue2
|
|
89
|
+
| string
|
|
90
|
+
| CrmMetadataSchemasValue32
|
|
91
|
+
| number
|
|
92
|
+
| CrmMetadataSchemasValue42
|
|
93
|
+
| boolean
|
|
94
|
+
| CrmMetadataSchemasValue52
|
|
95
|
+
| Array<any>
|
|
96
|
+
| undefined;
|
|
23
97
|
};
|
|
24
98
|
|
|
99
|
+
/** @internal */
|
|
100
|
+
export const CrmMetadataSchemasExtraData52$inboundSchema: z.ZodType<
|
|
101
|
+
CrmMetadataSchemasExtraData52,
|
|
102
|
+
z.ZodTypeDef,
|
|
103
|
+
unknown
|
|
104
|
+
> = z.object({});
|
|
105
|
+
|
|
106
|
+
/** @internal */
|
|
107
|
+
export type CrmMetadataSchemasExtraData52$Outbound = {};
|
|
108
|
+
|
|
109
|
+
/** @internal */
|
|
110
|
+
export const CrmMetadataSchemasExtraData52$outboundSchema: z.ZodType<
|
|
111
|
+
CrmMetadataSchemasExtraData52$Outbound,
|
|
112
|
+
z.ZodTypeDef,
|
|
113
|
+
CrmMetadataSchemasExtraData52
|
|
114
|
+
> = z.object({});
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* @internal
|
|
118
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
119
|
+
*/
|
|
120
|
+
export namespace CrmMetadataSchemasExtraData52$ {
|
|
121
|
+
/** @deprecated use `CrmMetadataSchemasExtraData52$inboundSchema` instead. */
|
|
122
|
+
export const inboundSchema = CrmMetadataSchemasExtraData52$inboundSchema;
|
|
123
|
+
/** @deprecated use `CrmMetadataSchemasExtraData52$outboundSchema` instead. */
|
|
124
|
+
export const outboundSchema = CrmMetadataSchemasExtraData52$outboundSchema;
|
|
125
|
+
/** @deprecated use `CrmMetadataSchemasExtraData52$Outbound` instead. */
|
|
126
|
+
export type Outbound = CrmMetadataSchemasExtraData52$Outbound;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function crmMetadataSchemasExtraData52ToJSON(
|
|
130
|
+
crmMetadataSchemasExtraData52: CrmMetadataSchemasExtraData52,
|
|
131
|
+
): string {
|
|
132
|
+
return JSON.stringify(
|
|
133
|
+
CrmMetadataSchemasExtraData52$outboundSchema.parse(
|
|
134
|
+
crmMetadataSchemasExtraData52,
|
|
135
|
+
),
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function crmMetadataSchemasExtraData52FromJSON(
|
|
140
|
+
jsonString: string,
|
|
141
|
+
): SafeParseResult<CrmMetadataSchemasExtraData52, SDKValidationError> {
|
|
142
|
+
return safeParse(
|
|
143
|
+
jsonString,
|
|
144
|
+
(x) => CrmMetadataSchemasExtraData52$inboundSchema.parse(JSON.parse(x)),
|
|
145
|
+
`Failed to parse 'CrmMetadataSchemasExtraData52' from JSON`,
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/** @internal */
|
|
150
|
+
export const CrmMetadata5$inboundSchema: z.ZodType<
|
|
151
|
+
CrmMetadata5,
|
|
152
|
+
z.ZodTypeDef,
|
|
153
|
+
unknown
|
|
154
|
+
> = z.union([
|
|
155
|
+
z.lazy(() => CrmMetadataSchemasExtraData52$inboundSchema),
|
|
156
|
+
z.array(z.any()),
|
|
157
|
+
]);
|
|
158
|
+
|
|
159
|
+
/** @internal */
|
|
160
|
+
export type CrmMetadata5$Outbound =
|
|
161
|
+
| CrmMetadataSchemasExtraData52$Outbound
|
|
162
|
+
| Array<any>;
|
|
163
|
+
|
|
164
|
+
/** @internal */
|
|
165
|
+
export const CrmMetadata5$outboundSchema: z.ZodType<
|
|
166
|
+
CrmMetadata5$Outbound,
|
|
167
|
+
z.ZodTypeDef,
|
|
168
|
+
CrmMetadata5
|
|
169
|
+
> = z.union([
|
|
170
|
+
z.lazy(() => CrmMetadataSchemasExtraData52$outboundSchema),
|
|
171
|
+
z.array(z.any()),
|
|
172
|
+
]);
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @internal
|
|
176
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
177
|
+
*/
|
|
178
|
+
export namespace CrmMetadata5$ {
|
|
179
|
+
/** @deprecated use `CrmMetadata5$inboundSchema` instead. */
|
|
180
|
+
export const inboundSchema = CrmMetadata5$inboundSchema;
|
|
181
|
+
/** @deprecated use `CrmMetadata5$outboundSchema` instead. */
|
|
182
|
+
export const outboundSchema = CrmMetadata5$outboundSchema;
|
|
183
|
+
/** @deprecated use `CrmMetadata5$Outbound` instead. */
|
|
184
|
+
export type Outbound = CrmMetadata5$Outbound;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export function crmMetadata5ToJSON(crmMetadata5: CrmMetadata5): string {
|
|
188
|
+
return JSON.stringify(CrmMetadata5$outboundSchema.parse(crmMetadata5));
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export function crmMetadata5FromJSON(
|
|
192
|
+
jsonString: string,
|
|
193
|
+
): SafeParseResult<CrmMetadata5, SDKValidationError> {
|
|
194
|
+
return safeParse(
|
|
195
|
+
jsonString,
|
|
196
|
+
(x) => CrmMetadata5$inboundSchema.parse(JSON.parse(x)),
|
|
197
|
+
`Failed to parse 'CrmMetadata5' from JSON`,
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/** @internal */
|
|
202
|
+
export const CrmMetadataSchemasExtraData2$inboundSchema: z.ZodType<
|
|
203
|
+
CrmMetadataSchemasExtraData2,
|
|
204
|
+
z.ZodTypeDef,
|
|
205
|
+
unknown
|
|
206
|
+
> = z.object({});
|
|
207
|
+
|
|
208
|
+
/** @internal */
|
|
209
|
+
export type CrmMetadataSchemasExtraData2$Outbound = {};
|
|
210
|
+
|
|
211
|
+
/** @internal */
|
|
212
|
+
export const CrmMetadataSchemasExtraData2$outboundSchema: z.ZodType<
|
|
213
|
+
CrmMetadataSchemasExtraData2$Outbound,
|
|
214
|
+
z.ZodTypeDef,
|
|
215
|
+
CrmMetadataSchemasExtraData2
|
|
216
|
+
> = z.object({});
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @internal
|
|
220
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
221
|
+
*/
|
|
222
|
+
export namespace CrmMetadataSchemasExtraData2$ {
|
|
223
|
+
/** @deprecated use `CrmMetadataSchemasExtraData2$inboundSchema` instead. */
|
|
224
|
+
export const inboundSchema = CrmMetadataSchemasExtraData2$inboundSchema;
|
|
225
|
+
/** @deprecated use `CrmMetadataSchemasExtraData2$outboundSchema` instead. */
|
|
226
|
+
export const outboundSchema = CrmMetadataSchemasExtraData2$outboundSchema;
|
|
227
|
+
/** @deprecated use `CrmMetadataSchemasExtraData2$Outbound` instead. */
|
|
228
|
+
export type Outbound = CrmMetadataSchemasExtraData2$Outbound;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export function crmMetadataSchemasExtraData2ToJSON(
|
|
232
|
+
crmMetadataSchemasExtraData2: CrmMetadataSchemasExtraData2,
|
|
233
|
+
): string {
|
|
234
|
+
return JSON.stringify(
|
|
235
|
+
CrmMetadataSchemasExtraData2$outboundSchema.parse(
|
|
236
|
+
crmMetadataSchemasExtraData2,
|
|
237
|
+
),
|
|
238
|
+
);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export function crmMetadataSchemasExtraData2FromJSON(
|
|
242
|
+
jsonString: string,
|
|
243
|
+
): SafeParseResult<CrmMetadataSchemasExtraData2, SDKValidationError> {
|
|
244
|
+
return safeParse(
|
|
245
|
+
jsonString,
|
|
246
|
+
(x) => CrmMetadataSchemasExtraData2$inboundSchema.parse(JSON.parse(x)),
|
|
247
|
+
`Failed to parse 'CrmMetadataSchemasExtraData2' from JSON`,
|
|
248
|
+
);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/** @internal */
|
|
252
|
+
export const CrmMetadata4$inboundSchema: z.ZodType<
|
|
253
|
+
CrmMetadata4,
|
|
254
|
+
z.ZodTypeDef,
|
|
255
|
+
unknown
|
|
256
|
+
> = z.union([
|
|
257
|
+
z.lazy(() => CrmMetadataSchemasExtraData2$inboundSchema),
|
|
258
|
+
z.boolean(),
|
|
259
|
+
]);
|
|
260
|
+
|
|
261
|
+
/** @internal */
|
|
262
|
+
export type CrmMetadata4$Outbound =
|
|
263
|
+
| CrmMetadataSchemasExtraData2$Outbound
|
|
264
|
+
| boolean;
|
|
265
|
+
|
|
266
|
+
/** @internal */
|
|
267
|
+
export const CrmMetadata4$outboundSchema: z.ZodType<
|
|
268
|
+
CrmMetadata4$Outbound,
|
|
269
|
+
z.ZodTypeDef,
|
|
270
|
+
CrmMetadata4
|
|
271
|
+
> = z.union([
|
|
272
|
+
z.lazy(() => CrmMetadataSchemasExtraData2$outboundSchema),
|
|
273
|
+
z.boolean(),
|
|
274
|
+
]);
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* @internal
|
|
278
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
279
|
+
*/
|
|
280
|
+
export namespace CrmMetadata4$ {
|
|
281
|
+
/** @deprecated use `CrmMetadata4$inboundSchema` instead. */
|
|
282
|
+
export const inboundSchema = CrmMetadata4$inboundSchema;
|
|
283
|
+
/** @deprecated use `CrmMetadata4$outboundSchema` instead. */
|
|
284
|
+
export const outboundSchema = CrmMetadata4$outboundSchema;
|
|
285
|
+
/** @deprecated use `CrmMetadata4$Outbound` instead. */
|
|
286
|
+
export type Outbound = CrmMetadata4$Outbound;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export function crmMetadata4ToJSON(crmMetadata4: CrmMetadata4): string {
|
|
290
|
+
return JSON.stringify(CrmMetadata4$outboundSchema.parse(crmMetadata4));
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export function crmMetadata4FromJSON(
|
|
294
|
+
jsonString: string,
|
|
295
|
+
): SafeParseResult<CrmMetadata4, SDKValidationError> {
|
|
296
|
+
return safeParse(
|
|
297
|
+
jsonString,
|
|
298
|
+
(x) => CrmMetadata4$inboundSchema.parse(JSON.parse(x)),
|
|
299
|
+
`Failed to parse 'CrmMetadata4' from JSON`,
|
|
300
|
+
);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/** @internal */
|
|
304
|
+
export const CrmMetadataSchemasExtraData32$inboundSchema: z.ZodType<
|
|
305
|
+
CrmMetadataSchemasExtraData32,
|
|
306
|
+
z.ZodTypeDef,
|
|
307
|
+
unknown
|
|
308
|
+
> = z.object({});
|
|
309
|
+
|
|
310
|
+
/** @internal */
|
|
311
|
+
export type CrmMetadataSchemasExtraData32$Outbound = {};
|
|
312
|
+
|
|
313
|
+
/** @internal */
|
|
314
|
+
export const CrmMetadataSchemasExtraData32$outboundSchema: z.ZodType<
|
|
315
|
+
CrmMetadataSchemasExtraData32$Outbound,
|
|
316
|
+
z.ZodTypeDef,
|
|
317
|
+
CrmMetadataSchemasExtraData32
|
|
318
|
+
> = z.object({});
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* @internal
|
|
322
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
323
|
+
*/
|
|
324
|
+
export namespace CrmMetadataSchemasExtraData32$ {
|
|
325
|
+
/** @deprecated use `CrmMetadataSchemasExtraData32$inboundSchema` instead. */
|
|
326
|
+
export const inboundSchema = CrmMetadataSchemasExtraData32$inboundSchema;
|
|
327
|
+
/** @deprecated use `CrmMetadataSchemasExtraData32$outboundSchema` instead. */
|
|
328
|
+
export const outboundSchema = CrmMetadataSchemasExtraData32$outboundSchema;
|
|
329
|
+
/** @deprecated use `CrmMetadataSchemasExtraData32$Outbound` instead. */
|
|
330
|
+
export type Outbound = CrmMetadataSchemasExtraData32$Outbound;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
export function crmMetadataSchemasExtraData32ToJSON(
|
|
334
|
+
crmMetadataSchemasExtraData32: CrmMetadataSchemasExtraData32,
|
|
335
|
+
): string {
|
|
336
|
+
return JSON.stringify(
|
|
337
|
+
CrmMetadataSchemasExtraData32$outboundSchema.parse(
|
|
338
|
+
crmMetadataSchemasExtraData32,
|
|
339
|
+
),
|
|
340
|
+
);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
export function crmMetadataSchemasExtraData32FromJSON(
|
|
344
|
+
jsonString: string,
|
|
345
|
+
): SafeParseResult<CrmMetadataSchemasExtraData32, SDKValidationError> {
|
|
346
|
+
return safeParse(
|
|
347
|
+
jsonString,
|
|
348
|
+
(x) => CrmMetadataSchemasExtraData32$inboundSchema.parse(JSON.parse(x)),
|
|
349
|
+
`Failed to parse 'CrmMetadataSchemasExtraData32' from JSON`,
|
|
350
|
+
);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/** @internal */
|
|
354
|
+
export const CrmMetadata3$inboundSchema: z.ZodType<
|
|
355
|
+
CrmMetadata3,
|
|
356
|
+
z.ZodTypeDef,
|
|
357
|
+
unknown
|
|
358
|
+
> = z.union([
|
|
359
|
+
z.lazy(() => CrmMetadataSchemasExtraData32$inboundSchema),
|
|
360
|
+
z.number(),
|
|
361
|
+
]);
|
|
362
|
+
|
|
363
|
+
/** @internal */
|
|
364
|
+
export type CrmMetadata3$Outbound =
|
|
365
|
+
| CrmMetadataSchemasExtraData32$Outbound
|
|
366
|
+
| number;
|
|
367
|
+
|
|
368
|
+
/** @internal */
|
|
369
|
+
export const CrmMetadata3$outboundSchema: z.ZodType<
|
|
370
|
+
CrmMetadata3$Outbound,
|
|
371
|
+
z.ZodTypeDef,
|
|
372
|
+
CrmMetadata3
|
|
373
|
+
> = z.union([
|
|
374
|
+
z.lazy(() => CrmMetadataSchemasExtraData32$outboundSchema),
|
|
375
|
+
z.number(),
|
|
376
|
+
]);
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* @internal
|
|
380
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
381
|
+
*/
|
|
382
|
+
export namespace CrmMetadata3$ {
|
|
383
|
+
/** @deprecated use `CrmMetadata3$inboundSchema` instead. */
|
|
384
|
+
export const inboundSchema = CrmMetadata3$inboundSchema;
|
|
385
|
+
/** @deprecated use `CrmMetadata3$outboundSchema` instead. */
|
|
386
|
+
export const outboundSchema = CrmMetadata3$outboundSchema;
|
|
387
|
+
/** @deprecated use `CrmMetadata3$Outbound` instead. */
|
|
388
|
+
export type Outbound = CrmMetadata3$Outbound;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
export function crmMetadata3ToJSON(crmMetadata3: CrmMetadata3): string {
|
|
392
|
+
return JSON.stringify(CrmMetadata3$outboundSchema.parse(crmMetadata3));
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
export function crmMetadata3FromJSON(
|
|
396
|
+
jsonString: string,
|
|
397
|
+
): SafeParseResult<CrmMetadata3, SDKValidationError> {
|
|
398
|
+
return safeParse(
|
|
399
|
+
jsonString,
|
|
400
|
+
(x) => CrmMetadata3$inboundSchema.parse(JSON.parse(x)),
|
|
401
|
+
`Failed to parse 'CrmMetadata3' from JSON`,
|
|
402
|
+
);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/** @internal */
|
|
406
|
+
export const CrmMetadataSchemasExtraData22$inboundSchema: z.ZodType<
|
|
407
|
+
CrmMetadataSchemasExtraData22,
|
|
408
|
+
z.ZodTypeDef,
|
|
409
|
+
unknown
|
|
410
|
+
> = z.object({});
|
|
411
|
+
|
|
412
|
+
/** @internal */
|
|
413
|
+
export type CrmMetadataSchemasExtraData22$Outbound = {};
|
|
414
|
+
|
|
415
|
+
/** @internal */
|
|
416
|
+
export const CrmMetadataSchemasExtraData22$outboundSchema: z.ZodType<
|
|
417
|
+
CrmMetadataSchemasExtraData22$Outbound,
|
|
418
|
+
z.ZodTypeDef,
|
|
419
|
+
CrmMetadataSchemasExtraData22
|
|
420
|
+
> = z.object({});
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* @internal
|
|
424
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
425
|
+
*/
|
|
426
|
+
export namespace CrmMetadataSchemasExtraData22$ {
|
|
427
|
+
/** @deprecated use `CrmMetadataSchemasExtraData22$inboundSchema` instead. */
|
|
428
|
+
export const inboundSchema = CrmMetadataSchemasExtraData22$inboundSchema;
|
|
429
|
+
/** @deprecated use `CrmMetadataSchemasExtraData22$outboundSchema` instead. */
|
|
430
|
+
export const outboundSchema = CrmMetadataSchemasExtraData22$outboundSchema;
|
|
431
|
+
/** @deprecated use `CrmMetadataSchemasExtraData22$Outbound` instead. */
|
|
432
|
+
export type Outbound = CrmMetadataSchemasExtraData22$Outbound;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
export function crmMetadataSchemasExtraData22ToJSON(
|
|
436
|
+
crmMetadataSchemasExtraData22: CrmMetadataSchemasExtraData22,
|
|
437
|
+
): string {
|
|
438
|
+
return JSON.stringify(
|
|
439
|
+
CrmMetadataSchemasExtraData22$outboundSchema.parse(
|
|
440
|
+
crmMetadataSchemasExtraData22,
|
|
441
|
+
),
|
|
442
|
+
);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
export function crmMetadataSchemasExtraData22FromJSON(
|
|
446
|
+
jsonString: string,
|
|
447
|
+
): SafeParseResult<CrmMetadataSchemasExtraData22, SDKValidationError> {
|
|
448
|
+
return safeParse(
|
|
449
|
+
jsonString,
|
|
450
|
+
(x) => CrmMetadataSchemasExtraData22$inboundSchema.parse(JSON.parse(x)),
|
|
451
|
+
`Failed to parse 'CrmMetadataSchemasExtraData22' from JSON`,
|
|
452
|
+
);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
/** @internal */
|
|
456
|
+
export const CrmMetadata2$inboundSchema: z.ZodType<
|
|
457
|
+
CrmMetadata2,
|
|
458
|
+
z.ZodTypeDef,
|
|
459
|
+
unknown
|
|
460
|
+
> = z.union([
|
|
461
|
+
z.lazy(() => CrmMetadataSchemasExtraData22$inboundSchema),
|
|
462
|
+
z.string(),
|
|
463
|
+
]);
|
|
464
|
+
|
|
465
|
+
/** @internal */
|
|
466
|
+
export type CrmMetadata2$Outbound =
|
|
467
|
+
| CrmMetadataSchemasExtraData22$Outbound
|
|
468
|
+
| string;
|
|
469
|
+
|
|
470
|
+
/** @internal */
|
|
471
|
+
export const CrmMetadata2$outboundSchema: z.ZodType<
|
|
472
|
+
CrmMetadata2$Outbound,
|
|
473
|
+
z.ZodTypeDef,
|
|
474
|
+
CrmMetadata2
|
|
475
|
+
> = z.union([
|
|
476
|
+
z.lazy(() => CrmMetadataSchemasExtraData22$outboundSchema),
|
|
477
|
+
z.string(),
|
|
478
|
+
]);
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* @internal
|
|
482
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
483
|
+
*/
|
|
484
|
+
export namespace CrmMetadata2$ {
|
|
485
|
+
/** @deprecated use `CrmMetadata2$inboundSchema` instead. */
|
|
486
|
+
export const inboundSchema = CrmMetadata2$inboundSchema;
|
|
487
|
+
/** @deprecated use `CrmMetadata2$outboundSchema` instead. */
|
|
488
|
+
export const outboundSchema = CrmMetadata2$outboundSchema;
|
|
489
|
+
/** @deprecated use `CrmMetadata2$Outbound` instead. */
|
|
490
|
+
export type Outbound = CrmMetadata2$Outbound;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
export function crmMetadata2ToJSON(crmMetadata2: CrmMetadata2): string {
|
|
494
|
+
return JSON.stringify(CrmMetadata2$outboundSchema.parse(crmMetadata2));
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
export function crmMetadata2FromJSON(
|
|
498
|
+
jsonString: string,
|
|
499
|
+
): SafeParseResult<CrmMetadata2, SDKValidationError> {
|
|
500
|
+
return safeParse(
|
|
501
|
+
jsonString,
|
|
502
|
+
(x) => CrmMetadata2$inboundSchema.parse(JSON.parse(x)),
|
|
503
|
+
`Failed to parse 'CrmMetadata2' from JSON`,
|
|
504
|
+
);
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
/** @internal */
|
|
508
|
+
export const CrmMetadata1$inboundSchema: z.ZodType<
|
|
509
|
+
CrmMetadata1,
|
|
510
|
+
z.ZodTypeDef,
|
|
511
|
+
unknown
|
|
512
|
+
> = z.object({});
|
|
513
|
+
|
|
514
|
+
/** @internal */
|
|
515
|
+
export type CrmMetadata1$Outbound = {};
|
|
516
|
+
|
|
517
|
+
/** @internal */
|
|
518
|
+
export const CrmMetadata1$outboundSchema: z.ZodType<
|
|
519
|
+
CrmMetadata1$Outbound,
|
|
520
|
+
z.ZodTypeDef,
|
|
521
|
+
CrmMetadata1
|
|
522
|
+
> = z.object({});
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* @internal
|
|
526
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
527
|
+
*/
|
|
528
|
+
export namespace CrmMetadata1$ {
|
|
529
|
+
/** @deprecated use `CrmMetadata1$inboundSchema` instead. */
|
|
530
|
+
export const inboundSchema = CrmMetadata1$inboundSchema;
|
|
531
|
+
/** @deprecated use `CrmMetadata1$outboundSchema` instead. */
|
|
532
|
+
export const outboundSchema = CrmMetadata1$outboundSchema;
|
|
533
|
+
/** @deprecated use `CrmMetadata1$Outbound` instead. */
|
|
534
|
+
export type Outbound = CrmMetadata1$Outbound;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
export function crmMetadata1ToJSON(crmMetadata1: CrmMetadata1): string {
|
|
538
|
+
return JSON.stringify(CrmMetadata1$outboundSchema.parse(crmMetadata1));
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
export function crmMetadata1FromJSON(
|
|
542
|
+
jsonString: string,
|
|
543
|
+
): SafeParseResult<CrmMetadata1, SDKValidationError> {
|
|
544
|
+
return safeParse(
|
|
545
|
+
jsonString,
|
|
546
|
+
(x) => CrmMetadata1$inboundSchema.parse(JSON.parse(x)),
|
|
547
|
+
`Failed to parse 'CrmMetadata1' from JSON`,
|
|
548
|
+
);
|
|
549
|
+
}
|
|
550
|
+
|
|
25
551
|
/** @internal */
|
|
26
552
|
export const CrmMetadataExtraData$inboundSchema: z.ZodType<
|
|
27
553
|
CrmMetadataExtraData,
|
|
28
554
|
z.ZodTypeDef,
|
|
29
555
|
unknown
|
|
30
|
-
> = z.
|
|
556
|
+
> = z.union([
|
|
557
|
+
z.lazy(() => CrmMetadata1$inboundSchema),
|
|
558
|
+
z.union([
|
|
559
|
+
z.lazy(() => CrmMetadataSchemasExtraData22$inboundSchema),
|
|
560
|
+
z.string(),
|
|
561
|
+
]),
|
|
562
|
+
z.union([
|
|
563
|
+
z.lazy(() => CrmMetadataSchemasExtraData32$inboundSchema),
|
|
564
|
+
z.number(),
|
|
565
|
+
]),
|
|
566
|
+
z.union([
|
|
567
|
+
z.lazy(() => CrmMetadataSchemasExtraData2$inboundSchema),
|
|
568
|
+
z.boolean(),
|
|
569
|
+
]),
|
|
570
|
+
z.union([
|
|
571
|
+
z.lazy(() => CrmMetadataSchemasExtraData52$inboundSchema),
|
|
572
|
+
z.array(z.any()),
|
|
573
|
+
]),
|
|
574
|
+
]);
|
|
31
575
|
|
|
32
576
|
/** @internal */
|
|
33
|
-
export type CrmMetadataExtraData$Outbound =
|
|
577
|
+
export type CrmMetadataExtraData$Outbound =
|
|
578
|
+
| CrmMetadata1$Outbound
|
|
579
|
+
| CrmMetadataSchemasExtraData22$Outbound
|
|
580
|
+
| string
|
|
581
|
+
| CrmMetadataSchemasExtraData32$Outbound
|
|
582
|
+
| number
|
|
583
|
+
| CrmMetadataSchemasExtraData2$Outbound
|
|
584
|
+
| boolean
|
|
585
|
+
| CrmMetadataSchemasExtraData52$Outbound
|
|
586
|
+
| Array<any>;
|
|
34
587
|
|
|
35
588
|
/** @internal */
|
|
36
589
|
export const CrmMetadataExtraData$outboundSchema: z.ZodType<
|
|
37
590
|
CrmMetadataExtraData$Outbound,
|
|
38
591
|
z.ZodTypeDef,
|
|
39
592
|
CrmMetadataExtraData
|
|
40
|
-
> = z.
|
|
593
|
+
> = z.union([
|
|
594
|
+
z.lazy(() => CrmMetadata1$outboundSchema),
|
|
595
|
+
z.union([
|
|
596
|
+
z.lazy(() => CrmMetadataSchemasExtraData22$outboundSchema),
|
|
597
|
+
z.string(),
|
|
598
|
+
]),
|
|
599
|
+
z.union([
|
|
600
|
+
z.lazy(() => CrmMetadataSchemasExtraData32$outboundSchema),
|
|
601
|
+
z.number(),
|
|
602
|
+
]),
|
|
603
|
+
z.union([
|
|
604
|
+
z.lazy(() => CrmMetadataSchemasExtraData2$outboundSchema),
|
|
605
|
+
z.boolean(),
|
|
606
|
+
]),
|
|
607
|
+
z.union([
|
|
608
|
+
z.lazy(() => CrmMetadataSchemasExtraData52$outboundSchema),
|
|
609
|
+
z.array(z.any()),
|
|
610
|
+
]),
|
|
611
|
+
]);
|
|
41
612
|
|
|
42
613
|
/**
|
|
43
614
|
* @internal
|
|
@@ -70,22 +641,513 @@ export function crmMetadataExtraDataFromJSON(
|
|
|
70
641
|
);
|
|
71
642
|
}
|
|
72
643
|
|
|
644
|
+
/** @internal */
|
|
645
|
+
export const CrmMetadataSchemasValue52$inboundSchema: z.ZodType<
|
|
646
|
+
CrmMetadataSchemasValue52,
|
|
647
|
+
z.ZodTypeDef,
|
|
648
|
+
unknown
|
|
649
|
+
> = z.object({});
|
|
650
|
+
|
|
651
|
+
/** @internal */
|
|
652
|
+
export type CrmMetadataSchemasValue52$Outbound = {};
|
|
653
|
+
|
|
654
|
+
/** @internal */
|
|
655
|
+
export const CrmMetadataSchemasValue52$outboundSchema: z.ZodType<
|
|
656
|
+
CrmMetadataSchemasValue52$Outbound,
|
|
657
|
+
z.ZodTypeDef,
|
|
658
|
+
CrmMetadataSchemasValue52
|
|
659
|
+
> = z.object({});
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* @internal
|
|
663
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
664
|
+
*/
|
|
665
|
+
export namespace CrmMetadataSchemasValue52$ {
|
|
666
|
+
/** @deprecated use `CrmMetadataSchemasValue52$inboundSchema` instead. */
|
|
667
|
+
export const inboundSchema = CrmMetadataSchemasValue52$inboundSchema;
|
|
668
|
+
/** @deprecated use `CrmMetadataSchemasValue52$outboundSchema` instead. */
|
|
669
|
+
export const outboundSchema = CrmMetadataSchemasValue52$outboundSchema;
|
|
670
|
+
/** @deprecated use `CrmMetadataSchemasValue52$Outbound` instead. */
|
|
671
|
+
export type Outbound = CrmMetadataSchemasValue52$Outbound;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
export function crmMetadataSchemasValue52ToJSON(
|
|
675
|
+
crmMetadataSchemasValue52: CrmMetadataSchemasValue52,
|
|
676
|
+
): string {
|
|
677
|
+
return JSON.stringify(
|
|
678
|
+
CrmMetadataSchemasValue52$outboundSchema.parse(crmMetadataSchemasValue52),
|
|
679
|
+
);
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
export function crmMetadataSchemasValue52FromJSON(
|
|
683
|
+
jsonString: string,
|
|
684
|
+
): SafeParseResult<CrmMetadataSchemasValue52, SDKValidationError> {
|
|
685
|
+
return safeParse(
|
|
686
|
+
jsonString,
|
|
687
|
+
(x) => CrmMetadataSchemasValue52$inboundSchema.parse(JSON.parse(x)),
|
|
688
|
+
`Failed to parse 'CrmMetadataSchemasValue52' from JSON`,
|
|
689
|
+
);
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
/** @internal */
|
|
693
|
+
export const CrmMetadataSchemas5$inboundSchema: z.ZodType<
|
|
694
|
+
CrmMetadataSchemas5,
|
|
695
|
+
z.ZodTypeDef,
|
|
696
|
+
unknown
|
|
697
|
+
> = z.union([
|
|
698
|
+
z.lazy(() => CrmMetadataSchemasValue52$inboundSchema),
|
|
699
|
+
z.array(z.any()),
|
|
700
|
+
]);
|
|
701
|
+
|
|
702
|
+
/** @internal */
|
|
703
|
+
export type CrmMetadataSchemas5$Outbound =
|
|
704
|
+
| CrmMetadataSchemasValue52$Outbound
|
|
705
|
+
| Array<any>;
|
|
706
|
+
|
|
707
|
+
/** @internal */
|
|
708
|
+
export const CrmMetadataSchemas5$outboundSchema: z.ZodType<
|
|
709
|
+
CrmMetadataSchemas5$Outbound,
|
|
710
|
+
z.ZodTypeDef,
|
|
711
|
+
CrmMetadataSchemas5
|
|
712
|
+
> = z.union([
|
|
713
|
+
z.lazy(() => CrmMetadataSchemasValue52$outboundSchema),
|
|
714
|
+
z.array(z.any()),
|
|
715
|
+
]);
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* @internal
|
|
719
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
720
|
+
*/
|
|
721
|
+
export namespace CrmMetadataSchemas5$ {
|
|
722
|
+
/** @deprecated use `CrmMetadataSchemas5$inboundSchema` instead. */
|
|
723
|
+
export const inboundSchema = CrmMetadataSchemas5$inboundSchema;
|
|
724
|
+
/** @deprecated use `CrmMetadataSchemas5$outboundSchema` instead. */
|
|
725
|
+
export const outboundSchema = CrmMetadataSchemas5$outboundSchema;
|
|
726
|
+
/** @deprecated use `CrmMetadataSchemas5$Outbound` instead. */
|
|
727
|
+
export type Outbound = CrmMetadataSchemas5$Outbound;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
export function crmMetadataSchemas5ToJSON(
|
|
731
|
+
crmMetadataSchemas5: CrmMetadataSchemas5,
|
|
732
|
+
): string {
|
|
733
|
+
return JSON.stringify(
|
|
734
|
+
CrmMetadataSchemas5$outboundSchema.parse(crmMetadataSchemas5),
|
|
735
|
+
);
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
export function crmMetadataSchemas5FromJSON(
|
|
739
|
+
jsonString: string,
|
|
740
|
+
): SafeParseResult<CrmMetadataSchemas5, SDKValidationError> {
|
|
741
|
+
return safeParse(
|
|
742
|
+
jsonString,
|
|
743
|
+
(x) => CrmMetadataSchemas5$inboundSchema.parse(JSON.parse(x)),
|
|
744
|
+
`Failed to parse 'CrmMetadataSchemas5' from JSON`,
|
|
745
|
+
);
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
/** @internal */
|
|
749
|
+
export const CrmMetadataSchemasValue42$inboundSchema: z.ZodType<
|
|
750
|
+
CrmMetadataSchemasValue42,
|
|
751
|
+
z.ZodTypeDef,
|
|
752
|
+
unknown
|
|
753
|
+
> = z.object({});
|
|
754
|
+
|
|
755
|
+
/** @internal */
|
|
756
|
+
export type CrmMetadataSchemasValue42$Outbound = {};
|
|
757
|
+
|
|
758
|
+
/** @internal */
|
|
759
|
+
export const CrmMetadataSchemasValue42$outboundSchema: z.ZodType<
|
|
760
|
+
CrmMetadataSchemasValue42$Outbound,
|
|
761
|
+
z.ZodTypeDef,
|
|
762
|
+
CrmMetadataSchemasValue42
|
|
763
|
+
> = z.object({});
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* @internal
|
|
767
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
768
|
+
*/
|
|
769
|
+
export namespace CrmMetadataSchemasValue42$ {
|
|
770
|
+
/** @deprecated use `CrmMetadataSchemasValue42$inboundSchema` instead. */
|
|
771
|
+
export const inboundSchema = CrmMetadataSchemasValue42$inboundSchema;
|
|
772
|
+
/** @deprecated use `CrmMetadataSchemasValue42$outboundSchema` instead. */
|
|
773
|
+
export const outboundSchema = CrmMetadataSchemasValue42$outboundSchema;
|
|
774
|
+
/** @deprecated use `CrmMetadataSchemasValue42$Outbound` instead. */
|
|
775
|
+
export type Outbound = CrmMetadataSchemasValue42$Outbound;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
export function crmMetadataSchemasValue42ToJSON(
|
|
779
|
+
crmMetadataSchemasValue42: CrmMetadataSchemasValue42,
|
|
780
|
+
): string {
|
|
781
|
+
return JSON.stringify(
|
|
782
|
+
CrmMetadataSchemasValue42$outboundSchema.parse(crmMetadataSchemasValue42),
|
|
783
|
+
);
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
export function crmMetadataSchemasValue42FromJSON(
|
|
787
|
+
jsonString: string,
|
|
788
|
+
): SafeParseResult<CrmMetadataSchemasValue42, SDKValidationError> {
|
|
789
|
+
return safeParse(
|
|
790
|
+
jsonString,
|
|
791
|
+
(x) => CrmMetadataSchemasValue42$inboundSchema.parse(JSON.parse(x)),
|
|
792
|
+
`Failed to parse 'CrmMetadataSchemasValue42' from JSON`,
|
|
793
|
+
);
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
/** @internal */
|
|
797
|
+
export const CrmMetadataSchemas4$inboundSchema: z.ZodType<
|
|
798
|
+
CrmMetadataSchemas4,
|
|
799
|
+
z.ZodTypeDef,
|
|
800
|
+
unknown
|
|
801
|
+
> = z.union([
|
|
802
|
+
z.lazy(() => CrmMetadataSchemasValue42$inboundSchema),
|
|
803
|
+
z.boolean(),
|
|
804
|
+
]);
|
|
805
|
+
|
|
806
|
+
/** @internal */
|
|
807
|
+
export type CrmMetadataSchemas4$Outbound =
|
|
808
|
+
| CrmMetadataSchemasValue42$Outbound
|
|
809
|
+
| boolean;
|
|
810
|
+
|
|
811
|
+
/** @internal */
|
|
812
|
+
export const CrmMetadataSchemas4$outboundSchema: z.ZodType<
|
|
813
|
+
CrmMetadataSchemas4$Outbound,
|
|
814
|
+
z.ZodTypeDef,
|
|
815
|
+
CrmMetadataSchemas4
|
|
816
|
+
> = z.union([
|
|
817
|
+
z.lazy(() => CrmMetadataSchemasValue42$outboundSchema),
|
|
818
|
+
z.boolean(),
|
|
819
|
+
]);
|
|
820
|
+
|
|
821
|
+
/**
|
|
822
|
+
* @internal
|
|
823
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
824
|
+
*/
|
|
825
|
+
export namespace CrmMetadataSchemas4$ {
|
|
826
|
+
/** @deprecated use `CrmMetadataSchemas4$inboundSchema` instead. */
|
|
827
|
+
export const inboundSchema = CrmMetadataSchemas4$inboundSchema;
|
|
828
|
+
/** @deprecated use `CrmMetadataSchemas4$outboundSchema` instead. */
|
|
829
|
+
export const outboundSchema = CrmMetadataSchemas4$outboundSchema;
|
|
830
|
+
/** @deprecated use `CrmMetadataSchemas4$Outbound` instead. */
|
|
831
|
+
export type Outbound = CrmMetadataSchemas4$Outbound;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
export function crmMetadataSchemas4ToJSON(
|
|
835
|
+
crmMetadataSchemas4: CrmMetadataSchemas4,
|
|
836
|
+
): string {
|
|
837
|
+
return JSON.stringify(
|
|
838
|
+
CrmMetadataSchemas4$outboundSchema.parse(crmMetadataSchemas4),
|
|
839
|
+
);
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
export function crmMetadataSchemas4FromJSON(
|
|
843
|
+
jsonString: string,
|
|
844
|
+
): SafeParseResult<CrmMetadataSchemas4, SDKValidationError> {
|
|
845
|
+
return safeParse(
|
|
846
|
+
jsonString,
|
|
847
|
+
(x) => CrmMetadataSchemas4$inboundSchema.parse(JSON.parse(x)),
|
|
848
|
+
`Failed to parse 'CrmMetadataSchemas4' from JSON`,
|
|
849
|
+
);
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
/** @internal */
|
|
853
|
+
export const CrmMetadataSchemasValue32$inboundSchema: z.ZodType<
|
|
854
|
+
CrmMetadataSchemasValue32,
|
|
855
|
+
z.ZodTypeDef,
|
|
856
|
+
unknown
|
|
857
|
+
> = z.object({});
|
|
858
|
+
|
|
859
|
+
/** @internal */
|
|
860
|
+
export type CrmMetadataSchemasValue32$Outbound = {};
|
|
861
|
+
|
|
862
|
+
/** @internal */
|
|
863
|
+
export const CrmMetadataSchemasValue32$outboundSchema: z.ZodType<
|
|
864
|
+
CrmMetadataSchemasValue32$Outbound,
|
|
865
|
+
z.ZodTypeDef,
|
|
866
|
+
CrmMetadataSchemasValue32
|
|
867
|
+
> = z.object({});
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* @internal
|
|
871
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
872
|
+
*/
|
|
873
|
+
export namespace CrmMetadataSchemasValue32$ {
|
|
874
|
+
/** @deprecated use `CrmMetadataSchemasValue32$inboundSchema` instead. */
|
|
875
|
+
export const inboundSchema = CrmMetadataSchemasValue32$inboundSchema;
|
|
876
|
+
/** @deprecated use `CrmMetadataSchemasValue32$outboundSchema` instead. */
|
|
877
|
+
export const outboundSchema = CrmMetadataSchemasValue32$outboundSchema;
|
|
878
|
+
/** @deprecated use `CrmMetadataSchemasValue32$Outbound` instead. */
|
|
879
|
+
export type Outbound = CrmMetadataSchemasValue32$Outbound;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
export function crmMetadataSchemasValue32ToJSON(
|
|
883
|
+
crmMetadataSchemasValue32: CrmMetadataSchemasValue32,
|
|
884
|
+
): string {
|
|
885
|
+
return JSON.stringify(
|
|
886
|
+
CrmMetadataSchemasValue32$outboundSchema.parse(crmMetadataSchemasValue32),
|
|
887
|
+
);
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
export function crmMetadataSchemasValue32FromJSON(
|
|
891
|
+
jsonString: string,
|
|
892
|
+
): SafeParseResult<CrmMetadataSchemasValue32, SDKValidationError> {
|
|
893
|
+
return safeParse(
|
|
894
|
+
jsonString,
|
|
895
|
+
(x) => CrmMetadataSchemasValue32$inboundSchema.parse(JSON.parse(x)),
|
|
896
|
+
`Failed to parse 'CrmMetadataSchemasValue32' from JSON`,
|
|
897
|
+
);
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
/** @internal */
|
|
901
|
+
export const CrmMetadataSchemas3$inboundSchema: z.ZodType<
|
|
902
|
+
CrmMetadataSchemas3,
|
|
903
|
+
z.ZodTypeDef,
|
|
904
|
+
unknown
|
|
905
|
+
> = z.union([
|
|
906
|
+
z.lazy(() => CrmMetadataSchemasValue32$inboundSchema),
|
|
907
|
+
z.number(),
|
|
908
|
+
]);
|
|
909
|
+
|
|
910
|
+
/** @internal */
|
|
911
|
+
export type CrmMetadataSchemas3$Outbound =
|
|
912
|
+
| CrmMetadataSchemasValue32$Outbound
|
|
913
|
+
| number;
|
|
914
|
+
|
|
915
|
+
/** @internal */
|
|
916
|
+
export const CrmMetadataSchemas3$outboundSchema: z.ZodType<
|
|
917
|
+
CrmMetadataSchemas3$Outbound,
|
|
918
|
+
z.ZodTypeDef,
|
|
919
|
+
CrmMetadataSchemas3
|
|
920
|
+
> = z.union([
|
|
921
|
+
z.lazy(() => CrmMetadataSchemasValue32$outboundSchema),
|
|
922
|
+
z.number(),
|
|
923
|
+
]);
|
|
924
|
+
|
|
925
|
+
/**
|
|
926
|
+
* @internal
|
|
927
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
928
|
+
*/
|
|
929
|
+
export namespace CrmMetadataSchemas3$ {
|
|
930
|
+
/** @deprecated use `CrmMetadataSchemas3$inboundSchema` instead. */
|
|
931
|
+
export const inboundSchema = CrmMetadataSchemas3$inboundSchema;
|
|
932
|
+
/** @deprecated use `CrmMetadataSchemas3$outboundSchema` instead. */
|
|
933
|
+
export const outboundSchema = CrmMetadataSchemas3$outboundSchema;
|
|
934
|
+
/** @deprecated use `CrmMetadataSchemas3$Outbound` instead. */
|
|
935
|
+
export type Outbound = CrmMetadataSchemas3$Outbound;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
export function crmMetadataSchemas3ToJSON(
|
|
939
|
+
crmMetadataSchemas3: CrmMetadataSchemas3,
|
|
940
|
+
): string {
|
|
941
|
+
return JSON.stringify(
|
|
942
|
+
CrmMetadataSchemas3$outboundSchema.parse(crmMetadataSchemas3),
|
|
943
|
+
);
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
export function crmMetadataSchemas3FromJSON(
|
|
947
|
+
jsonString: string,
|
|
948
|
+
): SafeParseResult<CrmMetadataSchemas3, SDKValidationError> {
|
|
949
|
+
return safeParse(
|
|
950
|
+
jsonString,
|
|
951
|
+
(x) => CrmMetadataSchemas3$inboundSchema.parse(JSON.parse(x)),
|
|
952
|
+
`Failed to parse 'CrmMetadataSchemas3' from JSON`,
|
|
953
|
+
);
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
/** @internal */
|
|
957
|
+
export const CrmMetadataSchemasValue2$inboundSchema: z.ZodType<
|
|
958
|
+
CrmMetadataSchemasValue2,
|
|
959
|
+
z.ZodTypeDef,
|
|
960
|
+
unknown
|
|
961
|
+
> = z.object({});
|
|
962
|
+
|
|
963
|
+
/** @internal */
|
|
964
|
+
export type CrmMetadataSchemasValue2$Outbound = {};
|
|
965
|
+
|
|
966
|
+
/** @internal */
|
|
967
|
+
export const CrmMetadataSchemasValue2$outboundSchema: z.ZodType<
|
|
968
|
+
CrmMetadataSchemasValue2$Outbound,
|
|
969
|
+
z.ZodTypeDef,
|
|
970
|
+
CrmMetadataSchemasValue2
|
|
971
|
+
> = z.object({});
|
|
972
|
+
|
|
973
|
+
/**
|
|
974
|
+
* @internal
|
|
975
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
976
|
+
*/
|
|
977
|
+
export namespace CrmMetadataSchemasValue2$ {
|
|
978
|
+
/** @deprecated use `CrmMetadataSchemasValue2$inboundSchema` instead. */
|
|
979
|
+
export const inboundSchema = CrmMetadataSchemasValue2$inboundSchema;
|
|
980
|
+
/** @deprecated use `CrmMetadataSchemasValue2$outboundSchema` instead. */
|
|
981
|
+
export const outboundSchema = CrmMetadataSchemasValue2$outboundSchema;
|
|
982
|
+
/** @deprecated use `CrmMetadataSchemasValue2$Outbound` instead. */
|
|
983
|
+
export type Outbound = CrmMetadataSchemasValue2$Outbound;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
export function crmMetadataSchemasValue2ToJSON(
|
|
987
|
+
crmMetadataSchemasValue2: CrmMetadataSchemasValue2,
|
|
988
|
+
): string {
|
|
989
|
+
return JSON.stringify(
|
|
990
|
+
CrmMetadataSchemasValue2$outboundSchema.parse(crmMetadataSchemasValue2),
|
|
991
|
+
);
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
export function crmMetadataSchemasValue2FromJSON(
|
|
995
|
+
jsonString: string,
|
|
996
|
+
): SafeParseResult<CrmMetadataSchemasValue2, SDKValidationError> {
|
|
997
|
+
return safeParse(
|
|
998
|
+
jsonString,
|
|
999
|
+
(x) => CrmMetadataSchemasValue2$inboundSchema.parse(JSON.parse(x)),
|
|
1000
|
+
`Failed to parse 'CrmMetadataSchemasValue2' from JSON`,
|
|
1001
|
+
);
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
/** @internal */
|
|
1005
|
+
export const CrmMetadataSchemas2$inboundSchema: z.ZodType<
|
|
1006
|
+
CrmMetadataSchemas2,
|
|
1007
|
+
z.ZodTypeDef,
|
|
1008
|
+
unknown
|
|
1009
|
+
> = z.union([z.lazy(() => CrmMetadataSchemasValue2$inboundSchema), z.string()]);
|
|
1010
|
+
|
|
1011
|
+
/** @internal */
|
|
1012
|
+
export type CrmMetadataSchemas2$Outbound =
|
|
1013
|
+
| CrmMetadataSchemasValue2$Outbound
|
|
1014
|
+
| string;
|
|
1015
|
+
|
|
1016
|
+
/** @internal */
|
|
1017
|
+
export const CrmMetadataSchemas2$outboundSchema: z.ZodType<
|
|
1018
|
+
CrmMetadataSchemas2$Outbound,
|
|
1019
|
+
z.ZodTypeDef,
|
|
1020
|
+
CrmMetadataSchemas2
|
|
1021
|
+
> = z.union([
|
|
1022
|
+
z.lazy(() => CrmMetadataSchemasValue2$outboundSchema),
|
|
1023
|
+
z.string(),
|
|
1024
|
+
]);
|
|
1025
|
+
|
|
1026
|
+
/**
|
|
1027
|
+
* @internal
|
|
1028
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1029
|
+
*/
|
|
1030
|
+
export namespace CrmMetadataSchemas2$ {
|
|
1031
|
+
/** @deprecated use `CrmMetadataSchemas2$inboundSchema` instead. */
|
|
1032
|
+
export const inboundSchema = CrmMetadataSchemas2$inboundSchema;
|
|
1033
|
+
/** @deprecated use `CrmMetadataSchemas2$outboundSchema` instead. */
|
|
1034
|
+
export const outboundSchema = CrmMetadataSchemas2$outboundSchema;
|
|
1035
|
+
/** @deprecated use `CrmMetadataSchemas2$Outbound` instead. */
|
|
1036
|
+
export type Outbound = CrmMetadataSchemas2$Outbound;
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
export function crmMetadataSchemas2ToJSON(
|
|
1040
|
+
crmMetadataSchemas2: CrmMetadataSchemas2,
|
|
1041
|
+
): string {
|
|
1042
|
+
return JSON.stringify(
|
|
1043
|
+
CrmMetadataSchemas2$outboundSchema.parse(crmMetadataSchemas2),
|
|
1044
|
+
);
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
export function crmMetadataSchemas2FromJSON(
|
|
1048
|
+
jsonString: string,
|
|
1049
|
+
): SafeParseResult<CrmMetadataSchemas2, SDKValidationError> {
|
|
1050
|
+
return safeParse(
|
|
1051
|
+
jsonString,
|
|
1052
|
+
(x) => CrmMetadataSchemas2$inboundSchema.parse(JSON.parse(x)),
|
|
1053
|
+
`Failed to parse 'CrmMetadataSchemas2' from JSON`,
|
|
1054
|
+
);
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
/** @internal */
|
|
1058
|
+
export const CrmMetadataSchemas1$inboundSchema: z.ZodType<
|
|
1059
|
+
CrmMetadataSchemas1,
|
|
1060
|
+
z.ZodTypeDef,
|
|
1061
|
+
unknown
|
|
1062
|
+
> = z.object({});
|
|
1063
|
+
|
|
1064
|
+
/** @internal */
|
|
1065
|
+
export type CrmMetadataSchemas1$Outbound = {};
|
|
1066
|
+
|
|
1067
|
+
/** @internal */
|
|
1068
|
+
export const CrmMetadataSchemas1$outboundSchema: z.ZodType<
|
|
1069
|
+
CrmMetadataSchemas1$Outbound,
|
|
1070
|
+
z.ZodTypeDef,
|
|
1071
|
+
CrmMetadataSchemas1
|
|
1072
|
+
> = z.object({});
|
|
1073
|
+
|
|
1074
|
+
/**
|
|
1075
|
+
* @internal
|
|
1076
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1077
|
+
*/
|
|
1078
|
+
export namespace CrmMetadataSchemas1$ {
|
|
1079
|
+
/** @deprecated use `CrmMetadataSchemas1$inboundSchema` instead. */
|
|
1080
|
+
export const inboundSchema = CrmMetadataSchemas1$inboundSchema;
|
|
1081
|
+
/** @deprecated use `CrmMetadataSchemas1$outboundSchema` instead. */
|
|
1082
|
+
export const outboundSchema = CrmMetadataSchemas1$outboundSchema;
|
|
1083
|
+
/** @deprecated use `CrmMetadataSchemas1$Outbound` instead. */
|
|
1084
|
+
export type Outbound = CrmMetadataSchemas1$Outbound;
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
export function crmMetadataSchemas1ToJSON(
|
|
1088
|
+
crmMetadataSchemas1: CrmMetadataSchemas1,
|
|
1089
|
+
): string {
|
|
1090
|
+
return JSON.stringify(
|
|
1091
|
+
CrmMetadataSchemas1$outboundSchema.parse(crmMetadataSchemas1),
|
|
1092
|
+
);
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
export function crmMetadataSchemas1FromJSON(
|
|
1096
|
+
jsonString: string,
|
|
1097
|
+
): SafeParseResult<CrmMetadataSchemas1, SDKValidationError> {
|
|
1098
|
+
return safeParse(
|
|
1099
|
+
jsonString,
|
|
1100
|
+
(x) => CrmMetadataSchemas1$inboundSchema.parse(JSON.parse(x)),
|
|
1101
|
+
`Failed to parse 'CrmMetadataSchemas1' from JSON`,
|
|
1102
|
+
);
|
|
1103
|
+
}
|
|
1104
|
+
|
|
73
1105
|
/** @internal */
|
|
74
1106
|
export const CrmMetadataValue$inboundSchema: z.ZodType<
|
|
75
1107
|
CrmMetadataValue,
|
|
76
1108
|
z.ZodTypeDef,
|
|
77
1109
|
unknown
|
|
78
|
-
> = z.
|
|
1110
|
+
> = z.union([
|
|
1111
|
+
z.lazy(() => CrmMetadataSchemas1$inboundSchema),
|
|
1112
|
+
z.union([z.lazy(() => CrmMetadataSchemasValue2$inboundSchema), z.string()]),
|
|
1113
|
+
z.union([z.lazy(() => CrmMetadataSchemasValue32$inboundSchema), z.number()]),
|
|
1114
|
+
z.union([z.lazy(() => CrmMetadataSchemasValue42$inboundSchema), z.boolean()]),
|
|
1115
|
+
z.union([
|
|
1116
|
+
z.lazy(() => CrmMetadataSchemasValue52$inboundSchema),
|
|
1117
|
+
z.array(z.any()),
|
|
1118
|
+
]),
|
|
1119
|
+
]);
|
|
79
1120
|
|
|
80
1121
|
/** @internal */
|
|
81
|
-
export type CrmMetadataValue$Outbound =
|
|
1122
|
+
export type CrmMetadataValue$Outbound =
|
|
1123
|
+
| CrmMetadataSchemas1$Outbound
|
|
1124
|
+
| CrmMetadataSchemasValue2$Outbound
|
|
1125
|
+
| string
|
|
1126
|
+
| CrmMetadataSchemasValue32$Outbound
|
|
1127
|
+
| number
|
|
1128
|
+
| CrmMetadataSchemasValue42$Outbound
|
|
1129
|
+
| boolean
|
|
1130
|
+
| CrmMetadataSchemasValue52$Outbound
|
|
1131
|
+
| Array<any>;
|
|
82
1132
|
|
|
83
1133
|
/** @internal */
|
|
84
1134
|
export const CrmMetadataValue$outboundSchema: z.ZodType<
|
|
85
1135
|
CrmMetadataValue$Outbound,
|
|
86
1136
|
z.ZodTypeDef,
|
|
87
1137
|
CrmMetadataValue
|
|
88
|
-
> = z.
|
|
1138
|
+
> = z.union([
|
|
1139
|
+
z.lazy(() => CrmMetadataSchemas1$outboundSchema),
|
|
1140
|
+
z.union([z.lazy(() => CrmMetadataSchemasValue2$outboundSchema), z.string()]),
|
|
1141
|
+
z.union([z.lazy(() => CrmMetadataSchemasValue32$outboundSchema), z.number()]),
|
|
1142
|
+
z.union([
|
|
1143
|
+
z.lazy(() => CrmMetadataSchemasValue42$outboundSchema),
|
|
1144
|
+
z.boolean(),
|
|
1145
|
+
]),
|
|
1146
|
+
z.union([
|
|
1147
|
+
z.lazy(() => CrmMetadataSchemasValue52$outboundSchema),
|
|
1148
|
+
z.array(z.any()),
|
|
1149
|
+
]),
|
|
1150
|
+
]);
|
|
89
1151
|
|
|
90
1152
|
/**
|
|
91
1153
|
* @internal
|
|
@@ -124,13 +1186,46 @@ export const CrmMetadata$inboundSchema: z.ZodType<
|
|
|
124
1186
|
z.ZodTypeDef,
|
|
125
1187
|
unknown
|
|
126
1188
|
> = z.object({
|
|
127
|
-
extra_data: z.
|
|
1189
|
+
extra_data: z.union([
|
|
1190
|
+
z.lazy(() => CrmMetadata1$inboundSchema),
|
|
1191
|
+
z.union([
|
|
1192
|
+
z.lazy(() => CrmMetadataSchemasExtraData22$inboundSchema),
|
|
1193
|
+
z.string(),
|
|
1194
|
+
]),
|
|
1195
|
+
z.union([
|
|
1196
|
+
z.lazy(() => CrmMetadataSchemasExtraData32$inboundSchema),
|
|
1197
|
+
z.number(),
|
|
1198
|
+
]),
|
|
1199
|
+
z.union([
|
|
1200
|
+
z.lazy(() => CrmMetadataSchemasExtraData2$inboundSchema),
|
|
1201
|
+
z.boolean(),
|
|
1202
|
+
]),
|
|
1203
|
+
z.union([
|
|
1204
|
+
z.lazy(() => CrmMetadataSchemasExtraData52$inboundSchema),
|
|
1205
|
+
z.array(z.any()),
|
|
1206
|
+
]),
|
|
1207
|
+
]).optional(),
|
|
128
1208
|
id: z.string().optional(),
|
|
129
1209
|
key: z.string().optional(),
|
|
130
1210
|
namespace: z.string().optional(),
|
|
131
1211
|
slug: z.string().optional(),
|
|
132
1212
|
type: z.string().optional(),
|
|
133
|
-
value: z.
|
|
1213
|
+
value: z.union([
|
|
1214
|
+
z.lazy(() => CrmMetadataSchemas1$inboundSchema),
|
|
1215
|
+
z.union([z.lazy(() => CrmMetadataSchemasValue2$inboundSchema), z.string()]),
|
|
1216
|
+
z.union([
|
|
1217
|
+
z.lazy(() => CrmMetadataSchemasValue32$inboundSchema),
|
|
1218
|
+
z.number(),
|
|
1219
|
+
]),
|
|
1220
|
+
z.union([
|
|
1221
|
+
z.lazy(() => CrmMetadataSchemasValue42$inboundSchema),
|
|
1222
|
+
z.boolean(),
|
|
1223
|
+
]),
|
|
1224
|
+
z.union([
|
|
1225
|
+
z.lazy(() => CrmMetadataSchemasValue52$inboundSchema),
|
|
1226
|
+
z.array(z.any()),
|
|
1227
|
+
]),
|
|
1228
|
+
]).optional(),
|
|
134
1229
|
}).transform((v) => {
|
|
135
1230
|
return remap$(v, {
|
|
136
1231
|
"extra_data": "extraData",
|
|
@@ -139,13 +1234,33 @@ export const CrmMetadata$inboundSchema: z.ZodType<
|
|
|
139
1234
|
|
|
140
1235
|
/** @internal */
|
|
141
1236
|
export type CrmMetadata$Outbound = {
|
|
142
|
-
extra_data?:
|
|
1237
|
+
extra_data?:
|
|
1238
|
+
| CrmMetadata1$Outbound
|
|
1239
|
+
| CrmMetadataSchemasExtraData22$Outbound
|
|
1240
|
+
| string
|
|
1241
|
+
| CrmMetadataSchemasExtraData32$Outbound
|
|
1242
|
+
| number
|
|
1243
|
+
| CrmMetadataSchemasExtraData2$Outbound
|
|
1244
|
+
| boolean
|
|
1245
|
+
| CrmMetadataSchemasExtraData52$Outbound
|
|
1246
|
+
| Array<any>
|
|
1247
|
+
| undefined;
|
|
143
1248
|
id?: string | undefined;
|
|
144
1249
|
key?: string | undefined;
|
|
145
1250
|
namespace?: string | undefined;
|
|
146
1251
|
slug?: string | undefined;
|
|
147
1252
|
type?: string | undefined;
|
|
148
|
-
value?:
|
|
1253
|
+
value?:
|
|
1254
|
+
| CrmMetadataSchemas1$Outbound
|
|
1255
|
+
| CrmMetadataSchemasValue2$Outbound
|
|
1256
|
+
| string
|
|
1257
|
+
| CrmMetadataSchemasValue32$Outbound
|
|
1258
|
+
| number
|
|
1259
|
+
| CrmMetadataSchemasValue42$Outbound
|
|
1260
|
+
| boolean
|
|
1261
|
+
| CrmMetadataSchemasValue52$Outbound
|
|
1262
|
+
| Array<any>
|
|
1263
|
+
| undefined;
|
|
149
1264
|
};
|
|
150
1265
|
|
|
151
1266
|
/** @internal */
|
|
@@ -154,13 +1269,49 @@ export const CrmMetadata$outboundSchema: z.ZodType<
|
|
|
154
1269
|
z.ZodTypeDef,
|
|
155
1270
|
CrmMetadata
|
|
156
1271
|
> = z.object({
|
|
157
|
-
extraData: z.
|
|
1272
|
+
extraData: z.union([
|
|
1273
|
+
z.lazy(() => CrmMetadata1$outboundSchema),
|
|
1274
|
+
z.union([
|
|
1275
|
+
z.lazy(() => CrmMetadataSchemasExtraData22$outboundSchema),
|
|
1276
|
+
z.string(),
|
|
1277
|
+
]),
|
|
1278
|
+
z.union([
|
|
1279
|
+
z.lazy(() => CrmMetadataSchemasExtraData32$outboundSchema),
|
|
1280
|
+
z.number(),
|
|
1281
|
+
]),
|
|
1282
|
+
z.union([
|
|
1283
|
+
z.lazy(() => CrmMetadataSchemasExtraData2$outboundSchema),
|
|
1284
|
+
z.boolean(),
|
|
1285
|
+
]),
|
|
1286
|
+
z.union([
|
|
1287
|
+
z.lazy(() => CrmMetadataSchemasExtraData52$outboundSchema),
|
|
1288
|
+
z.array(z.any()),
|
|
1289
|
+
]),
|
|
1290
|
+
]).optional(),
|
|
158
1291
|
id: z.string().optional(),
|
|
159
1292
|
key: z.string().optional(),
|
|
160
1293
|
namespace: z.string().optional(),
|
|
161
1294
|
slug: z.string().optional(),
|
|
162
1295
|
type: z.string().optional(),
|
|
163
|
-
value: z.
|
|
1296
|
+
value: z.union([
|
|
1297
|
+
z.lazy(() => CrmMetadataSchemas1$outboundSchema),
|
|
1298
|
+
z.union([
|
|
1299
|
+
z.lazy(() => CrmMetadataSchemasValue2$outboundSchema),
|
|
1300
|
+
z.string(),
|
|
1301
|
+
]),
|
|
1302
|
+
z.union([
|
|
1303
|
+
z.lazy(() => CrmMetadataSchemasValue32$outboundSchema),
|
|
1304
|
+
z.number(),
|
|
1305
|
+
]),
|
|
1306
|
+
z.union([
|
|
1307
|
+
z.lazy(() => CrmMetadataSchemasValue42$outboundSchema),
|
|
1308
|
+
z.boolean(),
|
|
1309
|
+
]),
|
|
1310
|
+
z.union([
|
|
1311
|
+
z.lazy(() => CrmMetadataSchemasValue52$outboundSchema),
|
|
1312
|
+
z.array(z.any()),
|
|
1313
|
+
]),
|
|
1314
|
+
]).optional(),
|
|
164
1315
|
}).transform((v) => {
|
|
165
1316
|
return remap$(v, {
|
|
166
1317
|
extraData: "extra_data",
|