@financeable/aggregation 0.8.3 → 0.9.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/FUNCTIONS.md +153 -36
- package/README.md +475 -94
- package/docs/sdks/applications/README.md +9 -15
- package/docs/sdks/oauthtoken/README.md +5 -9
- package/docs/sdks/supportingdocuments/README.md +9 -16
- package/funcs/applicationsCreate.d.ts +3 -3
- package/funcs/applicationsCreate.d.ts.map +1 -1
- package/funcs/applicationsCreate.js +4 -6
- package/funcs/applicationsCreate.js.map +1 -1
- package/funcs/oauthTokenGet.d.ts +3 -2
- package/funcs/oauthTokenGet.d.ts.map +1 -1
- package/funcs/oauthTokenGet.js +4 -2
- package/funcs/oauthTokenGet.js.map +1 -1
- package/funcs/supportingDocumentsCreate.d.ts +3 -3
- package/funcs/supportingDocumentsCreate.d.ts.map +1 -1
- package/funcs/supportingDocumentsCreate.js +5 -8
- package/funcs/supportingDocumentsCreate.js.map +1 -1
- package/hooks/types.d.ts +2 -0
- package/hooks/types.d.ts.map +1 -1
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +7 -3
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/files.d.ts +5 -0
- package/lib/files.d.ts.map +1 -1
- package/lib/files.js +41 -0
- package/lib/files.js.map +1 -1
- package/lib/matchers.d.ts +3 -10
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +33 -31
- package/lib/matchers.js.map +1 -1
- package/lib/sdks.d.ts +1 -0
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +3 -3
- package/lib/sdks.js.map +1 -1
- package/lib/security.d.ts +2 -2
- package/lib/security.d.ts.map +1 -1
- package/models/components/addressattributes.d.ts +8 -8
- package/models/components/addressattributes.d.ts.map +1 -1
- package/models/components/addressattributes.js +14 -13
- package/models/components/addressattributes.js.map +1 -1
- package/models/components/badrequesterror.d.ts +24 -24
- package/models/components/badrequesterror.d.ts.map +1 -1
- package/models/components/badrequesterror.js +37 -38
- package/models/components/badrequesterror.js.map +1 -1
- package/models/components/commercialsecuredapplicationpayload.d.ts +8 -8
- package/models/components/commercialsecuredapplicationpayload.d.ts.map +1 -1
- package/models/components/commercialsecuredapplicationpayload.js +13 -14
- package/models/components/commercialsecuredapplicationpayload.js.map +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +90 -90
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js +116 -118
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
- package/models/components/customerattributes.d.ts +6 -0
- package/models/components/customerattributes.d.ts.map +1 -1
- package/models/components/customerattributes.js +3 -0
- package/models/components/customerattributes.js.map +1 -1
- package/models/components/forbiddenerror.d.ts +16 -16
- package/models/components/forbiddenerror.d.ts.map +1 -1
- package/models/components/forbiddenerror.js +25 -25
- package/models/components/forbiddenerror.js.map +1 -1
- package/models/components/loandetailsattributes.d.ts +8 -8
- package/models/components/loandetailsattributes.d.ts.map +1 -1
- package/models/components/loandetailsattributes.js +8 -8
- package/models/components/loandetailsattributes.js.map +1 -1
- package/models/components/supportingdocumentrelationships.d.ts +45 -45
- package/models/components/supportingdocumentrelationships.d.ts.map +1 -1
- package/models/components/supportingdocumentrelationships.js +54 -54
- package/models/components/supportingdocumentrelationships.js.map +1 -1
- package/models/components/supportingdocumentresource.d.ts +8 -8
- package/models/components/supportingdocumentresource.d.ts.map +1 -1
- package/models/components/supportingdocumentresource.js +13 -13
- package/models/components/supportingdocumentresource.js.map +1 -1
- package/models/errors/apierror.d.ts +8 -6
- package/models/errors/apierror.d.ts.map +1 -1
- package/models/errors/apierror.js +23 -10
- package/models/errors/apierror.js.map +1 -1
- package/models/errors/financeableerror.d.ts +19 -0
- package/models/errors/financeableerror.d.ts.map +1 -0
- package/models/errors/financeableerror.js +20 -0
- package/models/errors/financeableerror.js.map +1 -0
- package/models/errors/index.d.ts +1 -2
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -2
- package/models/errors/index.js.map +1 -1
- package/models/errors/responsevalidationerror.d.ts +26 -0
- package/models/errors/responsevalidationerror.d.ts.map +1 -0
- package/models/errors/responsevalidationerror.js +66 -0
- package/models/errors/responsevalidationerror.js.map +1 -0
- package/models/errors/sdkvalidationerror.d.ts +1 -0
- package/models/errors/sdkvalidationerror.d.ts.map +1 -1
- package/models/errors/sdkvalidationerror.js +14 -0
- package/models/errors/sdkvalidationerror.js.map +1 -1
- package/models/operations/createapplication.d.ts +107 -30
- package/models/operations/createapplication.d.ts.map +1 -1
- package/models/operations/createapplication.js +125 -44
- package/models/operations/createapplication.js.map +1 -1
- package/models/operations/supportingdocumentscreate.d.ts +144 -0
- package/models/operations/supportingdocumentscreate.d.ts.map +1 -1
- package/models/operations/supportingdocumentscreate.js +186 -1
- package/models/operations/supportingdocumentscreate.js.map +1 -1
- package/package.json +1 -1
- package/sdk/applications.d.ts +1 -1
- package/sdk/applications.d.ts.map +1 -1
- package/sdk/sdk.d.ts +2 -2
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +3 -3
- package/sdk/sdk.js.map +1 -1
- package/sdk/supportingdocuments.d.ts +1 -1
- package/sdk/supportingdocuments.d.ts.map +1 -1
- package/src/funcs/applicationsCreate.ts +30 -40
- package/src/funcs/oauthTokenGet.ts +24 -20
- package/src/funcs/supportingDocumentsCreate.ts +31 -42
- package/src/hooks/types.ts +2 -0
- package/src/index.ts +2 -0
- package/src/lib/config.ts +7 -3
- package/src/lib/files.ts +42 -0
- package/src/lib/matchers.ts +44 -41
- package/src/lib/sdks.ts +10 -4
- package/src/lib/security.ts +2 -2
- package/src/models/components/addressattributes.ts +14 -18
- package/src/models/components/badrequesterror.ts +48 -44
- package/src/models/components/commercialsecuredapplicationpayload.ts +15 -20
- package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +178 -238
- package/src/models/components/customerattributes.ts +12 -0
- package/src/models/components/forbiddenerror.ts +30 -32
- package/src/models/components/loandetailsattributes.ts +16 -16
- package/src/models/components/supportingdocumentrelationships.ts +117 -82
- package/src/models/components/supportingdocumentresource.ts +18 -15
- package/src/models/errors/apierror.ts +29 -16
- package/src/models/errors/financeableerror.ts +35 -0
- package/src/models/errors/index.ts +1 -2
- package/src/models/errors/responsevalidationerror.ts +50 -0
- package/src/models/errors/sdkvalidationerror.ts +12 -0
- package/src/models/operations/createapplication.ts +299 -64
- package/src/models/operations/supportingdocumentscreate.ts +386 -0
- package/src/sdk/applications.ts +1 -1
- package/src/sdk/sdk.ts +7 -7
- package/src/sdk/supportingdocuments.ts +1 -1
- package/src/types/constdatetime.ts +1 -1
- package/types/constdatetime.js +1 -1
- package/models/errors/createapplication.d.ts +0 -73
- package/models/errors/createapplication.d.ts.map +0 -1
- package/models/errors/createapplication.js +0 -120
- package/models/errors/createapplication.js.map +0 -1
- package/models/errors/supportingdocumentscreate.d.ts +0 -143
- package/models/errors/supportingdocumentscreate.d.ts.map +0 -1
- package/models/errors/supportingdocumentscreate.js +0 -225
- package/models/errors/supportingdocumentscreate.js.map +0 -1
- package/src/models/errors/createapplication.ts +0 -149
- package/src/models/errors/supportingdocumentscreate.ts +0 -342
|
@@ -19,6 +19,20 @@ export type CreateApplicationRequestBody = {
|
|
|
19
19
|
| components.ConsumerSecuredApplicationPayload;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* The server cannot find the requested resource.
|
|
24
|
+
*/
|
|
25
|
+
export type CreateApplicationApplicationsResponseResponseBody = {
|
|
26
|
+
errors: Array<components.ResourceNotFound>;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Access is forbidden.
|
|
31
|
+
*/
|
|
32
|
+
export type CreateApplicationApplicationsResponseBody = {
|
|
33
|
+
errors: Array<components.ForbiddenError>;
|
|
34
|
+
};
|
|
35
|
+
|
|
22
36
|
export const CreateApplicationIncludedApplicationsResponse201ApplicationJSONType =
|
|
23
37
|
{
|
|
24
38
|
CustomerAssets: "customer-assets",
|
|
@@ -86,7 +100,7 @@ export const IncludedType = {
|
|
|
86
100
|
} as const;
|
|
87
101
|
export type IncludedType = ClosedEnum<typeof IncludedType>;
|
|
88
102
|
|
|
89
|
-
export type
|
|
103
|
+
export type Included2 = {
|
|
90
104
|
type: IncludedType;
|
|
91
105
|
id: string;
|
|
92
106
|
};
|
|
@@ -96,12 +110,19 @@ export const Type = {
|
|
|
96
110
|
} as const;
|
|
97
111
|
export type Type = ClosedEnum<typeof Type>;
|
|
98
112
|
|
|
99
|
-
export type
|
|
113
|
+
export type Included1 = {
|
|
100
114
|
type: Type;
|
|
101
115
|
id: string;
|
|
102
116
|
};
|
|
103
117
|
|
|
104
|
-
export type Included =
|
|
118
|
+
export type Included =
|
|
119
|
+
| Included1
|
|
120
|
+
| Included2
|
|
121
|
+
| Three
|
|
122
|
+
| Four
|
|
123
|
+
| Five
|
|
124
|
+
| Six
|
|
125
|
+
| Seven;
|
|
105
126
|
|
|
106
127
|
export type Links = {};
|
|
107
128
|
|
|
@@ -113,10 +134,17 @@ export type CreateApplicationResponseBody = {
|
|
|
113
134
|
* Represents either a Consumer or Commercial Application resource
|
|
114
135
|
*/
|
|
115
136
|
data: components.ApplicationResource;
|
|
116
|
-
included?:
|
|
137
|
+
included?:
|
|
138
|
+
| Array<Included1 | Included2 | Three | Four | Five | Six | Seven>
|
|
139
|
+
| undefined;
|
|
117
140
|
links?: Links | undefined;
|
|
118
141
|
};
|
|
119
142
|
|
|
143
|
+
export type CreateApplicationResponse =
|
|
144
|
+
| CreateApplicationResponseBody
|
|
145
|
+
| CreateApplicationApplicationsResponseBody
|
|
146
|
+
| CreateApplicationApplicationsResponseResponseBody;
|
|
147
|
+
|
|
120
148
|
/** @internal */
|
|
121
149
|
export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
|
|
122
150
|
.union([
|
|
@@ -227,6 +255,140 @@ export function createApplicationRequestBodyFromJSON(
|
|
|
227
255
|
);
|
|
228
256
|
}
|
|
229
257
|
|
|
258
|
+
/** @internal */
|
|
259
|
+
export const CreateApplicationApplicationsResponseResponseBody$inboundSchema:
|
|
260
|
+
z.ZodType<
|
|
261
|
+
CreateApplicationApplicationsResponseResponseBody,
|
|
262
|
+
z.ZodTypeDef,
|
|
263
|
+
unknown
|
|
264
|
+
> = z.object({
|
|
265
|
+
errors: z.array(components.ResourceNotFound$inboundSchema),
|
|
266
|
+
});
|
|
267
|
+
|
|
268
|
+
/** @internal */
|
|
269
|
+
export type CreateApplicationApplicationsResponseResponseBody$Outbound = {
|
|
270
|
+
errors: Array<components.ResourceNotFound$Outbound>;
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
/** @internal */
|
|
274
|
+
export const CreateApplicationApplicationsResponseResponseBody$outboundSchema:
|
|
275
|
+
z.ZodType<
|
|
276
|
+
CreateApplicationApplicationsResponseResponseBody$Outbound,
|
|
277
|
+
z.ZodTypeDef,
|
|
278
|
+
CreateApplicationApplicationsResponseResponseBody
|
|
279
|
+
> = z.object({
|
|
280
|
+
errors: z.array(components.ResourceNotFound$outboundSchema),
|
|
281
|
+
});
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* @internal
|
|
285
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
286
|
+
*/
|
|
287
|
+
export namespace CreateApplicationApplicationsResponseResponseBody$ {
|
|
288
|
+
/** @deprecated use `CreateApplicationApplicationsResponseResponseBody$inboundSchema` instead. */
|
|
289
|
+
export const inboundSchema =
|
|
290
|
+
CreateApplicationApplicationsResponseResponseBody$inboundSchema;
|
|
291
|
+
/** @deprecated use `CreateApplicationApplicationsResponseResponseBody$outboundSchema` instead. */
|
|
292
|
+
export const outboundSchema =
|
|
293
|
+
CreateApplicationApplicationsResponseResponseBody$outboundSchema;
|
|
294
|
+
/** @deprecated use `CreateApplicationApplicationsResponseResponseBody$Outbound` instead. */
|
|
295
|
+
export type Outbound =
|
|
296
|
+
CreateApplicationApplicationsResponseResponseBody$Outbound;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export function createApplicationApplicationsResponseResponseBodyToJSON(
|
|
300
|
+
createApplicationApplicationsResponseResponseBody:
|
|
301
|
+
CreateApplicationApplicationsResponseResponseBody,
|
|
302
|
+
): string {
|
|
303
|
+
return JSON.stringify(
|
|
304
|
+
CreateApplicationApplicationsResponseResponseBody$outboundSchema.parse(
|
|
305
|
+
createApplicationApplicationsResponseResponseBody,
|
|
306
|
+
),
|
|
307
|
+
);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
export function createApplicationApplicationsResponseResponseBodyFromJSON(
|
|
311
|
+
jsonString: string,
|
|
312
|
+
): SafeParseResult<
|
|
313
|
+
CreateApplicationApplicationsResponseResponseBody,
|
|
314
|
+
SDKValidationError
|
|
315
|
+
> {
|
|
316
|
+
return safeParse(
|
|
317
|
+
jsonString,
|
|
318
|
+
(x) =>
|
|
319
|
+
CreateApplicationApplicationsResponseResponseBody$inboundSchema.parse(
|
|
320
|
+
JSON.parse(x),
|
|
321
|
+
),
|
|
322
|
+
`Failed to parse 'CreateApplicationApplicationsResponseResponseBody' from JSON`,
|
|
323
|
+
);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/** @internal */
|
|
327
|
+
export const CreateApplicationApplicationsResponseBody$inboundSchema: z.ZodType<
|
|
328
|
+
CreateApplicationApplicationsResponseBody,
|
|
329
|
+
z.ZodTypeDef,
|
|
330
|
+
unknown
|
|
331
|
+
> = z.object({
|
|
332
|
+
errors: z.array(components.ForbiddenError$inboundSchema),
|
|
333
|
+
});
|
|
334
|
+
|
|
335
|
+
/** @internal */
|
|
336
|
+
export type CreateApplicationApplicationsResponseBody$Outbound = {
|
|
337
|
+
errors: Array<components.ForbiddenError$Outbound>;
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
/** @internal */
|
|
341
|
+
export const CreateApplicationApplicationsResponseBody$outboundSchema:
|
|
342
|
+
z.ZodType<
|
|
343
|
+
CreateApplicationApplicationsResponseBody$Outbound,
|
|
344
|
+
z.ZodTypeDef,
|
|
345
|
+
CreateApplicationApplicationsResponseBody
|
|
346
|
+
> = z.object({
|
|
347
|
+
errors: z.array(components.ForbiddenError$outboundSchema),
|
|
348
|
+
});
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* @internal
|
|
352
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
353
|
+
*/
|
|
354
|
+
export namespace CreateApplicationApplicationsResponseBody$ {
|
|
355
|
+
/** @deprecated use `CreateApplicationApplicationsResponseBody$inboundSchema` instead. */
|
|
356
|
+
export const inboundSchema =
|
|
357
|
+
CreateApplicationApplicationsResponseBody$inboundSchema;
|
|
358
|
+
/** @deprecated use `CreateApplicationApplicationsResponseBody$outboundSchema` instead. */
|
|
359
|
+
export const outboundSchema =
|
|
360
|
+
CreateApplicationApplicationsResponseBody$outboundSchema;
|
|
361
|
+
/** @deprecated use `CreateApplicationApplicationsResponseBody$Outbound` instead. */
|
|
362
|
+
export type Outbound = CreateApplicationApplicationsResponseBody$Outbound;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export function createApplicationApplicationsResponseBodyToJSON(
|
|
366
|
+
createApplicationApplicationsResponseBody:
|
|
367
|
+
CreateApplicationApplicationsResponseBody,
|
|
368
|
+
): string {
|
|
369
|
+
return JSON.stringify(
|
|
370
|
+
CreateApplicationApplicationsResponseBody$outboundSchema.parse(
|
|
371
|
+
createApplicationApplicationsResponseBody,
|
|
372
|
+
),
|
|
373
|
+
);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
export function createApplicationApplicationsResponseBodyFromJSON(
|
|
377
|
+
jsonString: string,
|
|
378
|
+
): SafeParseResult<
|
|
379
|
+
CreateApplicationApplicationsResponseBody,
|
|
380
|
+
SDKValidationError
|
|
381
|
+
> {
|
|
382
|
+
return safeParse(
|
|
383
|
+
jsonString,
|
|
384
|
+
(x) =>
|
|
385
|
+
CreateApplicationApplicationsResponseBody$inboundSchema.parse(
|
|
386
|
+
JSON.parse(x),
|
|
387
|
+
),
|
|
388
|
+
`Failed to parse 'CreateApplicationApplicationsResponseBody' from JSON`,
|
|
389
|
+
);
|
|
390
|
+
}
|
|
391
|
+
|
|
230
392
|
/** @internal */
|
|
231
393
|
export const CreateApplicationIncludedApplicationsResponse201ApplicationJSONType$inboundSchema:
|
|
232
394
|
z.ZodNativeEnum<
|
|
@@ -608,49 +770,55 @@ export namespace IncludedType$ {
|
|
|
608
770
|
}
|
|
609
771
|
|
|
610
772
|
/** @internal */
|
|
611
|
-
export const
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
773
|
+
export const Included2$inboundSchema: z.ZodType<
|
|
774
|
+
Included2,
|
|
775
|
+
z.ZodTypeDef,
|
|
776
|
+
unknown
|
|
777
|
+
> = z.object({
|
|
778
|
+
type: IncludedType$inboundSchema,
|
|
779
|
+
id: z.string(),
|
|
780
|
+
});
|
|
616
781
|
|
|
617
782
|
/** @internal */
|
|
618
|
-
export type
|
|
783
|
+
export type Included2$Outbound = {
|
|
619
784
|
type: string;
|
|
620
785
|
id: string;
|
|
621
786
|
};
|
|
622
787
|
|
|
623
788
|
/** @internal */
|
|
624
|
-
export const
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
789
|
+
export const Included2$outboundSchema: z.ZodType<
|
|
790
|
+
Included2$Outbound,
|
|
791
|
+
z.ZodTypeDef,
|
|
792
|
+
Included2
|
|
793
|
+
> = z.object({
|
|
794
|
+
type: IncludedType$outboundSchema,
|
|
795
|
+
id: z.string(),
|
|
796
|
+
});
|
|
629
797
|
|
|
630
798
|
/**
|
|
631
799
|
* @internal
|
|
632
800
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
633
801
|
*/
|
|
634
|
-
export namespace
|
|
635
|
-
/** @deprecated use `
|
|
636
|
-
export const inboundSchema =
|
|
637
|
-
/** @deprecated use `
|
|
638
|
-
export const outboundSchema =
|
|
639
|
-
/** @deprecated use `
|
|
640
|
-
export type Outbound =
|
|
802
|
+
export namespace Included2$ {
|
|
803
|
+
/** @deprecated use `Included2$inboundSchema` instead. */
|
|
804
|
+
export const inboundSchema = Included2$inboundSchema;
|
|
805
|
+
/** @deprecated use `Included2$outboundSchema` instead. */
|
|
806
|
+
export const outboundSchema = Included2$outboundSchema;
|
|
807
|
+
/** @deprecated use `Included2$Outbound` instead. */
|
|
808
|
+
export type Outbound = Included2$Outbound;
|
|
641
809
|
}
|
|
642
810
|
|
|
643
|
-
export function
|
|
644
|
-
return JSON.stringify(
|
|
811
|
+
export function included2ToJSON(included2: Included2): string {
|
|
812
|
+
return JSON.stringify(Included2$outboundSchema.parse(included2));
|
|
645
813
|
}
|
|
646
814
|
|
|
647
|
-
export function
|
|
815
|
+
export function included2FromJSON(
|
|
648
816
|
jsonString: string,
|
|
649
|
-
): SafeParseResult<
|
|
817
|
+
): SafeParseResult<Included2, SDKValidationError> {
|
|
650
818
|
return safeParse(
|
|
651
819
|
jsonString,
|
|
652
|
-
(x) =>
|
|
653
|
-
`Failed to parse '
|
|
820
|
+
(x) => Included2$inboundSchema.parse(JSON.parse(x)),
|
|
821
|
+
`Failed to parse 'Included2' from JSON`,
|
|
654
822
|
);
|
|
655
823
|
}
|
|
656
824
|
|
|
@@ -675,49 +843,55 @@ export namespace Type$ {
|
|
|
675
843
|
}
|
|
676
844
|
|
|
677
845
|
/** @internal */
|
|
678
|
-
export const
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
846
|
+
export const Included1$inboundSchema: z.ZodType<
|
|
847
|
+
Included1,
|
|
848
|
+
z.ZodTypeDef,
|
|
849
|
+
unknown
|
|
850
|
+
> = z.object({
|
|
851
|
+
type: Type$inboundSchema,
|
|
852
|
+
id: z.string(),
|
|
853
|
+
});
|
|
683
854
|
|
|
684
855
|
/** @internal */
|
|
685
|
-
export type
|
|
856
|
+
export type Included1$Outbound = {
|
|
686
857
|
type: string;
|
|
687
858
|
id: string;
|
|
688
859
|
};
|
|
689
860
|
|
|
690
861
|
/** @internal */
|
|
691
|
-
export const
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
862
|
+
export const Included1$outboundSchema: z.ZodType<
|
|
863
|
+
Included1$Outbound,
|
|
864
|
+
z.ZodTypeDef,
|
|
865
|
+
Included1
|
|
866
|
+
> = z.object({
|
|
867
|
+
type: Type$outboundSchema,
|
|
868
|
+
id: z.string(),
|
|
869
|
+
});
|
|
696
870
|
|
|
697
871
|
/**
|
|
698
872
|
* @internal
|
|
699
873
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
700
874
|
*/
|
|
701
|
-
export namespace
|
|
702
|
-
/** @deprecated use `
|
|
703
|
-
export const inboundSchema =
|
|
704
|
-
/** @deprecated use `
|
|
705
|
-
export const outboundSchema =
|
|
706
|
-
/** @deprecated use `
|
|
707
|
-
export type Outbound =
|
|
875
|
+
export namespace Included1$ {
|
|
876
|
+
/** @deprecated use `Included1$inboundSchema` instead. */
|
|
877
|
+
export const inboundSchema = Included1$inboundSchema;
|
|
878
|
+
/** @deprecated use `Included1$outboundSchema` instead. */
|
|
879
|
+
export const outboundSchema = Included1$outboundSchema;
|
|
880
|
+
/** @deprecated use `Included1$Outbound` instead. */
|
|
881
|
+
export type Outbound = Included1$Outbound;
|
|
708
882
|
}
|
|
709
883
|
|
|
710
|
-
export function
|
|
711
|
-
return JSON.stringify(
|
|
884
|
+
export function included1ToJSON(included1: Included1): string {
|
|
885
|
+
return JSON.stringify(Included1$outboundSchema.parse(included1));
|
|
712
886
|
}
|
|
713
887
|
|
|
714
|
-
export function
|
|
888
|
+
export function included1FromJSON(
|
|
715
889
|
jsonString: string,
|
|
716
|
-
): SafeParseResult<
|
|
890
|
+
): SafeParseResult<Included1, SDKValidationError> {
|
|
717
891
|
return safeParse(
|
|
718
892
|
jsonString,
|
|
719
|
-
(x) =>
|
|
720
|
-
`Failed to parse '
|
|
893
|
+
(x) => Included1$inboundSchema.parse(JSON.parse(x)),
|
|
894
|
+
`Failed to parse 'Included1' from JSON`,
|
|
721
895
|
);
|
|
722
896
|
}
|
|
723
897
|
|
|
@@ -727,8 +901,8 @@ export const Included$inboundSchema: z.ZodType<
|
|
|
727
901
|
z.ZodTypeDef,
|
|
728
902
|
unknown
|
|
729
903
|
> = z.union([
|
|
730
|
-
z.lazy(() =>
|
|
731
|
-
z.lazy(() =>
|
|
904
|
+
z.lazy(() => Included1$inboundSchema),
|
|
905
|
+
z.lazy(() => Included2$inboundSchema),
|
|
732
906
|
z.lazy(() => Three$inboundSchema),
|
|
733
907
|
z.lazy(() => Four$inboundSchema),
|
|
734
908
|
z.lazy(() => Five$inboundSchema),
|
|
@@ -738,8 +912,8 @@ export const Included$inboundSchema: z.ZodType<
|
|
|
738
912
|
|
|
739
913
|
/** @internal */
|
|
740
914
|
export type Included$Outbound =
|
|
741
|
-
|
|
|
742
|
-
|
|
|
915
|
+
| Included1$Outbound
|
|
916
|
+
| Included2$Outbound
|
|
743
917
|
| Three$Outbound
|
|
744
918
|
| Four$Outbound
|
|
745
919
|
| Five$Outbound
|
|
@@ -752,8 +926,8 @@ export const Included$outboundSchema: z.ZodType<
|
|
|
752
926
|
z.ZodTypeDef,
|
|
753
927
|
Included
|
|
754
928
|
> = z.union([
|
|
755
|
-
z.lazy(() =>
|
|
756
|
-
z.lazy(() =>
|
|
929
|
+
z.lazy(() => Included1$outboundSchema),
|
|
930
|
+
z.lazy(() => Included2$outboundSchema),
|
|
757
931
|
z.lazy(() => Three$outboundSchema),
|
|
758
932
|
z.lazy(() => Four$outboundSchema),
|
|
759
933
|
z.lazy(() => Five$outboundSchema),
|
|
@@ -838,8 +1012,8 @@ export const CreateApplicationResponseBody$inboundSchema: z.ZodType<
|
|
|
838
1012
|
data: components.ApplicationResource$inboundSchema,
|
|
839
1013
|
included: z.array(
|
|
840
1014
|
z.union([
|
|
841
|
-
z.lazy(() =>
|
|
842
|
-
z.lazy(() =>
|
|
1015
|
+
z.lazy(() => Included1$inboundSchema),
|
|
1016
|
+
z.lazy(() => Included2$inboundSchema),
|
|
843
1017
|
z.lazy(() => Three$inboundSchema),
|
|
844
1018
|
z.lazy(() => Four$inboundSchema),
|
|
845
1019
|
z.lazy(() => Five$inboundSchema),
|
|
@@ -855,8 +1029,8 @@ export type CreateApplicationResponseBody$Outbound = {
|
|
|
855
1029
|
data: components.ApplicationResource$Outbound;
|
|
856
1030
|
included?:
|
|
857
1031
|
| Array<
|
|
858
|
-
|
|
|
859
|
-
|
|
|
1032
|
+
| Included1$Outbound
|
|
1033
|
+
| Included2$Outbound
|
|
860
1034
|
| Three$Outbound
|
|
861
1035
|
| Four$Outbound
|
|
862
1036
|
| Five$Outbound
|
|
@@ -876,8 +1050,8 @@ export const CreateApplicationResponseBody$outboundSchema: z.ZodType<
|
|
|
876
1050
|
data: components.ApplicationResource$outboundSchema,
|
|
877
1051
|
included: z.array(
|
|
878
1052
|
z.union([
|
|
879
|
-
z.lazy(() =>
|
|
880
|
-
z.lazy(() =>
|
|
1053
|
+
z.lazy(() => Included1$outboundSchema),
|
|
1054
|
+
z.lazy(() => Included2$outboundSchema),
|
|
881
1055
|
z.lazy(() => Three$outboundSchema),
|
|
882
1056
|
z.lazy(() => Four$outboundSchema),
|
|
883
1057
|
z.lazy(() => Five$outboundSchema),
|
|
@@ -920,3 +1094,64 @@ export function createApplicationResponseBodyFromJSON(
|
|
|
920
1094
|
`Failed to parse 'CreateApplicationResponseBody' from JSON`,
|
|
921
1095
|
);
|
|
922
1096
|
}
|
|
1097
|
+
|
|
1098
|
+
/** @internal */
|
|
1099
|
+
export const CreateApplicationResponse$inboundSchema: z.ZodType<
|
|
1100
|
+
CreateApplicationResponse,
|
|
1101
|
+
z.ZodTypeDef,
|
|
1102
|
+
unknown
|
|
1103
|
+
> = z.union([
|
|
1104
|
+
z.lazy(() => CreateApplicationResponseBody$inboundSchema),
|
|
1105
|
+
z.lazy(() => CreateApplicationApplicationsResponseBody$inboundSchema),
|
|
1106
|
+
z.lazy(() => CreateApplicationApplicationsResponseResponseBody$inboundSchema),
|
|
1107
|
+
]);
|
|
1108
|
+
|
|
1109
|
+
/** @internal */
|
|
1110
|
+
export type CreateApplicationResponse$Outbound =
|
|
1111
|
+
| CreateApplicationResponseBody$Outbound
|
|
1112
|
+
| CreateApplicationApplicationsResponseBody$Outbound
|
|
1113
|
+
| CreateApplicationApplicationsResponseResponseBody$Outbound;
|
|
1114
|
+
|
|
1115
|
+
/** @internal */
|
|
1116
|
+
export const CreateApplicationResponse$outboundSchema: z.ZodType<
|
|
1117
|
+
CreateApplicationResponse$Outbound,
|
|
1118
|
+
z.ZodTypeDef,
|
|
1119
|
+
CreateApplicationResponse
|
|
1120
|
+
> = z.union([
|
|
1121
|
+
z.lazy(() => CreateApplicationResponseBody$outboundSchema),
|
|
1122
|
+
z.lazy(() => CreateApplicationApplicationsResponseBody$outboundSchema),
|
|
1123
|
+
z.lazy(() =>
|
|
1124
|
+
CreateApplicationApplicationsResponseResponseBody$outboundSchema
|
|
1125
|
+
),
|
|
1126
|
+
]);
|
|
1127
|
+
|
|
1128
|
+
/**
|
|
1129
|
+
* @internal
|
|
1130
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1131
|
+
*/
|
|
1132
|
+
export namespace CreateApplicationResponse$ {
|
|
1133
|
+
/** @deprecated use `CreateApplicationResponse$inboundSchema` instead. */
|
|
1134
|
+
export const inboundSchema = CreateApplicationResponse$inboundSchema;
|
|
1135
|
+
/** @deprecated use `CreateApplicationResponse$outboundSchema` instead. */
|
|
1136
|
+
export const outboundSchema = CreateApplicationResponse$outboundSchema;
|
|
1137
|
+
/** @deprecated use `CreateApplicationResponse$Outbound` instead. */
|
|
1138
|
+
export type Outbound = CreateApplicationResponse$Outbound;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
export function createApplicationResponseToJSON(
|
|
1142
|
+
createApplicationResponse: CreateApplicationResponse,
|
|
1143
|
+
): string {
|
|
1144
|
+
return JSON.stringify(
|
|
1145
|
+
CreateApplicationResponse$outboundSchema.parse(createApplicationResponse),
|
|
1146
|
+
);
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
export function createApplicationResponseFromJSON(
|
|
1150
|
+
jsonString: string,
|
|
1151
|
+
): SafeParseResult<CreateApplicationResponse, SDKValidationError> {
|
|
1152
|
+
return safeParse(
|
|
1153
|
+
jsonString,
|
|
1154
|
+
(x) => CreateApplicationResponse$inboundSchema.parse(JSON.parse(x)),
|
|
1155
|
+
`Failed to parse 'CreateApplicationResponse' from JSON`,
|
|
1156
|
+
);
|
|
1157
|
+
}
|