@financeable/aggregation 0.6.0 → 0.6.12
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 +4 -0
- package/README.md +14 -2
- package/docs/sdks/applications/README.md +19 -254
- package/docs/sdks/oauthtoken/README.md +5 -5
- package/docs/sdks/supportingdocuments/README.md +9 -1
- package/funcs/applicationsCreate.d.ts +1 -1
- package/funcs/applicationsCreate.d.ts.map +1 -1
- package/funcs/applicationsCreate.js +2 -2
- package/funcs/applicationsCreate.js.map +1 -1
- package/funcs/{oauthTokenOauthToken.d.ts → oauthTokenGet.d.ts} +2 -2
- package/funcs/oauthTokenGet.d.ts.map +1 -0
- package/funcs/{oauthTokenOauthToken.js → oauthTokenGet.js} +3 -3
- package/funcs/oauthTokenGet.js.map +1 -0
- package/funcs/supportingDocumentsCreate.d.ts +1 -2
- package/funcs/supportingDocumentsCreate.d.ts.map +1 -1
- package/funcs/supportingDocumentsCreate.js +1 -2
- package/funcs/supportingDocumentsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/models/components/addressattributes.d.ts +2 -0
- package/models/components/addressattributes.d.ts.map +1 -1
- package/models/components/addressattributes.js +2 -0
- package/models/components/addressattributes.js.map +1 -1
- package/models/components/applicationresource.d.ts +4 -4
- package/models/components/applicationresource.d.ts.map +1 -1
- package/models/components/applicationresource.js +6 -6
- package/models/components/applicationresource.js.map +1 -1
- package/models/components/{commercialsecuredloanapplicationsubmissionpayload.d.ts → commercialsecuredapplicationpayload.d.ts} +64 -24
- package/models/components/commercialsecuredapplicationpayload.d.ts.map +1 -0
- package/models/components/{commercialsecuredloanapplicationsubmissionpayload.js → commercialsecuredapplicationpayload.js} +47 -33
- package/models/components/commercialsecuredapplicationpayload.js.map +1 -0
- package/models/components/commercialsecuredapplicationresource.d.ts +171 -0
- package/models/components/commercialsecuredapplicationresource.d.ts.map +1 -0
- package/models/components/commercialsecuredapplicationresource.js +161 -0
- package/models/components/commercialsecuredapplicationresource.js.map +1 -0
- package/models/components/commercialsecuredloanassetattributes.d.ts +2 -0
- package/models/components/commercialsecuredloanassetattributes.d.ts.map +1 -1
- package/models/components/commercialsecuredloanassetattributes.js +2 -0
- package/models/components/commercialsecuredloanassetattributes.js.map +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +99 -17
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js +67 -23
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
- package/models/components/consumersecuredapplicationpayload.d.ts +164 -0
- package/models/components/consumersecuredapplicationpayload.d.ts.map +1 -0
- package/models/components/consumersecuredapplicationpayload.js +158 -0
- package/models/components/consumersecuredapplicationpayload.js.map +1 -0
- package/models/components/consumersecuredapplicationresource.d.ts +171 -0
- package/models/components/consumersecuredapplicationresource.d.ts.map +1 -0
- package/models/components/consumersecuredapplicationresource.js +161 -0
- package/models/components/consumersecuredapplicationresource.js.map +1 -0
- package/models/components/consumersecuredloanassetattributes.d.ts +2 -0
- package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -1
- package/models/components/consumersecuredloanassetattributes.js +2 -0
- package/models/components/consumersecuredloanassetattributes.js.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +51 -2
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js +19 -2
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -1
- package/models/components/createsupportingdocumentsresponse.d.ts +49 -46
- package/models/components/createsupportingdocumentsresponse.d.ts.map +1 -1
- package/models/components/createsupportingdocumentsresponse.js +36 -47
- package/models/components/createsupportingdocumentsresponse.js.map +1 -1
- package/models/components/customerattributes.d.ts +2 -0
- package/models/components/customerattributes.d.ts.map +1 -1
- package/models/components/customerattributes.js +2 -0
- package/models/components/customerattributes.js.map +1 -1
- package/models/components/entityattributes.d.ts +2 -0
- package/models/components/entityattributes.d.ts.map +1 -1
- package/models/components/entityattributes.js +2 -0
- package/models/components/entityattributes.js.map +1 -1
- package/models/components/index.d.ts +4 -5
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -5
- package/models/components/index.js.map +1 -1
- package/models/components/loandetailsattributes.d.ts +2 -0
- package/models/components/loandetailsattributes.d.ts.map +1 -1
- package/models/components/loandetailsattributes.js +2 -0
- package/models/components/loandetailsattributes.js.map +1 -1
- package/models/components/supportingdocumentresource.d.ts +5 -25
- package/models/components/supportingdocumentresource.d.ts.map +1 -1
- package/models/components/supportingdocumentresource.js +6 -29
- package/models/components/supportingdocumentresource.js.map +1 -1
- package/models/errors/createapplication.d.ts +35 -0
- package/models/errors/createapplication.d.ts.map +1 -1
- package/models/errors/createapplication.js +40 -1
- package/models/errors/createapplication.js.map +1 -1
- package/models/operations/createapplication.d.ts +6 -112
- package/models/operations/createapplication.d.ts.map +1 -1
- package/models/operations/createapplication.js +11 -118
- package/models/operations/createapplication.js.map +1 -1
- package/models/operations/supportingdocumentscreate.d.ts +34 -0
- package/models/operations/supportingdocumentscreate.d.ts.map +1 -1
- package/models/operations/supportingdocumentscreate.js +28 -1
- package/models/operations/supportingdocumentscreate.js.map +1 -1
- package/package.json +1 -1
- package/sdk/oauthtoken.d.ts +1 -1
- package/sdk/oauthtoken.d.ts.map +1 -1
- package/sdk/oauthtoken.js +3 -3
- package/sdk/oauthtoken.js.map +1 -1
- package/sdk/supportingdocuments.d.ts +1 -2
- package/sdk/supportingdocuments.d.ts.map +1 -1
- package/sdk/supportingdocuments.js.map +1 -1
- package/src/funcs/applicationsCreate.ts +8 -1
- package/src/funcs/{oauthTokenOauthToken.ts → oauthTokenGet.ts} +1 -1
- package/src/funcs/supportingDocumentsCreate.ts +4 -5
- package/src/lib/config.ts +2 -2
- package/src/models/components/addressattributes.ts +4 -0
- package/src/models/components/applicationresource.ts +18 -18
- package/src/models/components/{commercialsecuredloanapplicationsubmissionpayload.ts → commercialsecuredapplicationpayload.ts} +82 -71
- package/src/models/components/commercialsecuredapplicationresource.ts +310 -0
- package/src/models/components/commercialsecuredloanassetattributes.ts +4 -0
- package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +159 -69
- package/src/models/components/consumersecuredapplicationpayload.ts +273 -0
- package/src/models/components/consumersecuredapplicationresource.ts +309 -0
- package/src/models/components/consumersecuredloanassetattributes.ts +4 -0
- package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +44 -8
- package/src/models/components/createsupportingdocumentsresponse.ts +57 -103
- package/src/models/components/customerattributes.ts +4 -0
- package/src/models/components/entityattributes.ts +4 -0
- package/src/models/components/index.ts +4 -5
- package/src/models/components/loandetailsattributes.ts +4 -0
- package/src/models/components/supportingdocumentresource.ts +14 -51
- package/src/models/errors/createapplication.ts +73 -0
- package/src/models/operations/createapplication.ts +20 -229
- package/src/models/operations/supportingdocumentscreate.ts +72 -0
- package/src/sdk/oauthtoken.ts +3 -3
- package/src/sdk/supportingdocuments.ts +1 -2
- package/funcs/oauthTokenOauthToken.d.ts.map +0 -1
- package/funcs/oauthTokenOauthToken.js.map +0 -1
- package/models/components/commercialapplicationresource.d.ts +0 -191
- package/models/components/commercialapplicationresource.d.ts.map +0 -1
- package/models/components/commercialapplicationresource.js +0 -183
- package/models/components/commercialapplicationresource.js.map +0 -1
- package/models/components/commercialsecuredloanapplicationsubmissionpayload.d.ts.map +0 -1
- package/models/components/commercialsecuredloanapplicationsubmissionpayload.js.map +0 -1
- package/models/components/consumerapplicationresource.d.ts +0 -191
- package/models/components/consumerapplicationresource.d.ts.map +0 -1
- package/models/components/consumerapplicationresource.js +0 -187
- package/models/components/consumerapplicationresource.js.map +0 -1
- package/models/components/consumersecuredloanapplicationsubmissionpayload.d.ts +0 -124
- package/models/components/consumersecuredloanapplicationsubmissionpayload.d.ts.map +0 -1
- package/models/components/consumersecuredloanapplicationsubmissionpayload.js +0 -146
- package/models/components/consumersecuredloanapplicationsubmissionpayload.js.map +0 -1
- package/models/components/resourcetypes.d.ts +0 -46
- package/models/components/resourcetypes.d.ts.map +0 -1
- package/models/components/resourcetypes.js +0 -66
- package/models/components/resourcetypes.js.map +0 -1
- package/src/models/components/commercialapplicationresource.ts +0 -355
- package/src/models/components/consumerapplicationresource.ts +0 -342
- package/src/models/components/consumersecuredloanapplicationsubmissionpayload.ts +0 -270
- package/src/models/components/resourcetypes.ts +0 -39
|
@@ -31,6 +31,12 @@ import {
|
|
|
31
31
|
EntityAttributes$Outbound,
|
|
32
32
|
EntityAttributes$outboundSchema,
|
|
33
33
|
} from "./entityattributes.js";
|
|
34
|
+
import {
|
|
35
|
+
LinkObject,
|
|
36
|
+
LinkObject$inboundSchema,
|
|
37
|
+
LinkObject$Outbound,
|
|
38
|
+
LinkObject$outboundSchema,
|
|
39
|
+
} from "./linkobject.js";
|
|
34
40
|
import {
|
|
35
41
|
LoanDetailsAttributes,
|
|
36
42
|
LoanDetailsAttributes$inboundSchema,
|
|
@@ -53,6 +59,8 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsData = {
|
|
|
53
59
|
*/
|
|
54
60
|
attributes: LoanDetailsAttributes;
|
|
55
61
|
relationships?: any | null | undefined;
|
|
62
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
63
|
+
meta?: { [k: string]: any } | undefined;
|
|
56
64
|
};
|
|
57
65
|
|
|
58
66
|
export type LoanDetails = {
|
|
@@ -77,12 +85,18 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
|
|
|
77
85
|
typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType
|
|
78
86
|
>;
|
|
79
87
|
|
|
88
|
+
export type CommercialSecuredLoanCommercialApplicationRelationshipsRelationships =
|
|
89
|
+
{};
|
|
90
|
+
|
|
80
91
|
export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData =
|
|
81
92
|
{
|
|
82
93
|
type:
|
|
83
94
|
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType;
|
|
84
95
|
attributes: AddressAttributes;
|
|
85
|
-
relationships
|
|
96
|
+
relationships:
|
|
97
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships;
|
|
98
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
99
|
+
meta?: { [k: string]: any } | undefined;
|
|
86
100
|
};
|
|
87
101
|
|
|
88
102
|
export type Addresses = {
|
|
@@ -91,10 +105,9 @@ export type Addresses = {
|
|
|
91
105
|
>;
|
|
92
106
|
};
|
|
93
107
|
|
|
94
|
-
export type
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
};
|
|
108
|
+
export type Relationships = {
|
|
109
|
+
addresses?: Addresses | undefined;
|
|
110
|
+
};
|
|
98
111
|
|
|
99
112
|
export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData =
|
|
100
113
|
{
|
|
@@ -103,9 +116,9 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
|
|
|
103
116
|
* A customer of the proposed financing
|
|
104
117
|
*/
|
|
105
118
|
attributes: CustomerAttributes;
|
|
106
|
-
relationships
|
|
107
|
-
|
|
108
|
-
|
|
119
|
+
relationships: Relationships;
|
|
120
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
121
|
+
meta?: { [k: string]: any } | undefined;
|
|
109
122
|
};
|
|
110
123
|
|
|
111
124
|
export type Customers = {
|
|
@@ -130,6 +143,8 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsAssetData = {
|
|
|
130
143
|
*/
|
|
131
144
|
attributes: CommercialSecuredLoanAssetAttributes;
|
|
132
145
|
relationships?: any | null | undefined;
|
|
146
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
147
|
+
meta?: { [k: string]: any } | undefined;
|
|
133
148
|
};
|
|
134
149
|
|
|
135
150
|
export type CommercialSecuredLoanCommercialApplicationRelationshipsAsset = {
|
|
@@ -150,6 +165,8 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData
|
|
|
150
165
|
type: CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType;
|
|
151
166
|
attributes: EntityAttributes;
|
|
152
167
|
relationships?: any | null | undefined;
|
|
168
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
169
|
+
meta?: { [k: string]: any } | undefined;
|
|
153
170
|
};
|
|
154
171
|
|
|
155
172
|
export type Entities = {
|
|
@@ -203,6 +220,8 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsData$inbound
|
|
|
203
220
|
CommercialSecuredLoanCommercialApplicationRelationshipsType$inboundSchema,
|
|
204
221
|
attributes: LoanDetailsAttributes$inboundSchema,
|
|
205
222
|
relationships: z.nullable(z.any()).optional(),
|
|
223
|
+
links: z.record(LinkObject$inboundSchema).optional(),
|
|
224
|
+
meta: z.record(z.any()).optional(),
|
|
206
225
|
});
|
|
207
226
|
|
|
208
227
|
/** @internal */
|
|
@@ -211,6 +230,8 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsData$Outbound
|
|
|
211
230
|
type: string;
|
|
212
231
|
attributes: LoanDetailsAttributes$Outbound;
|
|
213
232
|
relationships?: any | null | undefined;
|
|
233
|
+
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
234
|
+
meta?: { [k: string]: any } | undefined;
|
|
214
235
|
};
|
|
215
236
|
|
|
216
237
|
/** @internal */
|
|
@@ -224,6 +245,8 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsData$outboun
|
|
|
224
245
|
CommercialSecuredLoanCommercialApplicationRelationshipsType$outboundSchema,
|
|
225
246
|
attributes: LoanDetailsAttributes$outboundSchema,
|
|
226
247
|
relationships: z.nullable(z.any()).optional(),
|
|
248
|
+
links: z.record(LinkObject$outboundSchema).optional(),
|
|
249
|
+
meta: z.record(z.any()).optional(),
|
|
227
250
|
});
|
|
228
251
|
|
|
229
252
|
/**
|
|
@@ -377,6 +400,69 @@ export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomer
|
|
|
377
400
|
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$outboundSchema;
|
|
378
401
|
}
|
|
379
402
|
|
|
403
|
+
/** @internal */
|
|
404
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$inboundSchema:
|
|
405
|
+
z.ZodType<
|
|
406
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships,
|
|
407
|
+
z.ZodTypeDef,
|
|
408
|
+
unknown
|
|
409
|
+
> = z.object({});
|
|
410
|
+
|
|
411
|
+
/** @internal */
|
|
412
|
+
export type CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$Outbound =
|
|
413
|
+
{};
|
|
414
|
+
|
|
415
|
+
/** @internal */
|
|
416
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$outboundSchema:
|
|
417
|
+
z.ZodType<
|
|
418
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$Outbound,
|
|
419
|
+
z.ZodTypeDef,
|
|
420
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships
|
|
421
|
+
> = z.object({});
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* @internal
|
|
425
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
426
|
+
*/
|
|
427
|
+
export namespace CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$ {
|
|
428
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$inboundSchema` instead. */
|
|
429
|
+
export const inboundSchema =
|
|
430
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$inboundSchema;
|
|
431
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$outboundSchema` instead. */
|
|
432
|
+
export const outboundSchema =
|
|
433
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$outboundSchema;
|
|
434
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$Outbound` instead. */
|
|
435
|
+
export type Outbound =
|
|
436
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$Outbound;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
export function commercialSecuredLoanCommercialApplicationRelationshipsRelationshipsToJSON(
|
|
440
|
+
commercialSecuredLoanCommercialApplicationRelationshipsRelationships:
|
|
441
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships,
|
|
442
|
+
): string {
|
|
443
|
+
return JSON.stringify(
|
|
444
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$outboundSchema
|
|
445
|
+
.parse(
|
|
446
|
+
commercialSecuredLoanCommercialApplicationRelationshipsRelationships,
|
|
447
|
+
),
|
|
448
|
+
);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
export function commercialSecuredLoanCommercialApplicationRelationshipsRelationshipsFromJSON(
|
|
452
|
+
jsonString: string,
|
|
453
|
+
): SafeParseResult<
|
|
454
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships,
|
|
455
|
+
SDKValidationError
|
|
456
|
+
> {
|
|
457
|
+
return safeParse(
|
|
458
|
+
jsonString,
|
|
459
|
+
(x) =>
|
|
460
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$inboundSchema
|
|
461
|
+
.parse(JSON.parse(x)),
|
|
462
|
+
`Failed to parse 'CommercialSecuredLoanCommercialApplicationRelationshipsRelationships' from JSON`,
|
|
463
|
+
);
|
|
464
|
+
}
|
|
465
|
+
|
|
380
466
|
/** @internal */
|
|
381
467
|
export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$inboundSchema:
|
|
382
468
|
z.ZodType<
|
|
@@ -387,7 +473,11 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDat
|
|
|
387
473
|
type:
|
|
388
474
|
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$inboundSchema,
|
|
389
475
|
attributes: AddressAttributes$inboundSchema,
|
|
390
|
-
relationships: z.
|
|
476
|
+
relationships: z.lazy(() =>
|
|
477
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$inboundSchema
|
|
478
|
+
),
|
|
479
|
+
links: z.record(LinkObject$inboundSchema).optional(),
|
|
480
|
+
meta: z.record(z.any()).optional(),
|
|
391
481
|
});
|
|
392
482
|
|
|
393
483
|
/** @internal */
|
|
@@ -395,7 +485,10 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
|
|
|
395
485
|
{
|
|
396
486
|
type: string;
|
|
397
487
|
attributes: AddressAttributes$Outbound;
|
|
398
|
-
relationships
|
|
488
|
+
relationships:
|
|
489
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$Outbound;
|
|
490
|
+
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
491
|
+
meta?: { [k: string]: any } | undefined;
|
|
399
492
|
};
|
|
400
493
|
|
|
401
494
|
/** @internal */
|
|
@@ -408,7 +501,11 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDat
|
|
|
408
501
|
type:
|
|
409
502
|
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$outboundSchema,
|
|
410
503
|
attributes: AddressAttributes$outboundSchema,
|
|
411
|
-
relationships: z.
|
|
504
|
+
relationships: z.lazy(() =>
|
|
505
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$outboundSchema
|
|
506
|
+
),
|
|
507
|
+
links: z.record(LinkObject$outboundSchema).optional(),
|
|
508
|
+
meta: z.record(z.any()).optional(),
|
|
412
509
|
});
|
|
413
510
|
|
|
414
511
|
/**
|
|
@@ -515,71 +612,52 @@ export function addressesFromJSON(
|
|
|
515
612
|
}
|
|
516
613
|
|
|
517
614
|
/** @internal */
|
|
518
|
-
export const
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
});
|
|
615
|
+
export const Relationships$inboundSchema: z.ZodType<
|
|
616
|
+
Relationships,
|
|
617
|
+
z.ZodTypeDef,
|
|
618
|
+
unknown
|
|
619
|
+
> = z.object({
|
|
620
|
+
addresses: z.lazy(() => Addresses$inboundSchema).optional(),
|
|
621
|
+
});
|
|
526
622
|
|
|
527
623
|
/** @internal */
|
|
528
|
-
export type
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
};
|
|
624
|
+
export type Relationships$Outbound = {
|
|
625
|
+
addresses?: Addresses$Outbound | undefined;
|
|
626
|
+
};
|
|
532
627
|
|
|
533
628
|
/** @internal */
|
|
534
|
-
export const
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
});
|
|
629
|
+
export const Relationships$outboundSchema: z.ZodType<
|
|
630
|
+
Relationships$Outbound,
|
|
631
|
+
z.ZodTypeDef,
|
|
632
|
+
Relationships
|
|
633
|
+
> = z.object({
|
|
634
|
+
addresses: z.lazy(() => Addresses$outboundSchema).optional(),
|
|
635
|
+
});
|
|
542
636
|
|
|
543
637
|
/**
|
|
544
638
|
* @internal
|
|
545
639
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
546
640
|
*/
|
|
547
|
-
export namespace
|
|
548
|
-
/** @deprecated use `
|
|
549
|
-
export const inboundSchema =
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$Outbound` instead. */
|
|
555
|
-
export type Outbound =
|
|
556
|
-
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$Outbound;
|
|
641
|
+
export namespace Relationships$ {
|
|
642
|
+
/** @deprecated use `Relationships$inboundSchema` instead. */
|
|
643
|
+
export const inboundSchema = Relationships$inboundSchema;
|
|
644
|
+
/** @deprecated use `Relationships$outboundSchema` instead. */
|
|
645
|
+
export const outboundSchema = Relationships$outboundSchema;
|
|
646
|
+
/** @deprecated use `Relationships$Outbound` instead. */
|
|
647
|
+
export type Outbound = Relationships$Outbound;
|
|
557
648
|
}
|
|
558
649
|
|
|
559
|
-
export function
|
|
560
|
-
|
|
561
|
-
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships,
|
|
562
|
-
): string {
|
|
563
|
-
return JSON.stringify(
|
|
564
|
-
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$outboundSchema
|
|
565
|
-
.parse(
|
|
566
|
-
commercialSecuredLoanCommercialApplicationRelationshipsRelationships,
|
|
567
|
-
),
|
|
568
|
-
);
|
|
650
|
+
export function relationshipsToJSON(relationships: Relationships): string {
|
|
651
|
+
return JSON.stringify(Relationships$outboundSchema.parse(relationships));
|
|
569
652
|
}
|
|
570
653
|
|
|
571
|
-
export function
|
|
654
|
+
export function relationshipsFromJSON(
|
|
572
655
|
jsonString: string,
|
|
573
|
-
): SafeParseResult<
|
|
574
|
-
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships,
|
|
575
|
-
SDKValidationError
|
|
576
|
-
> {
|
|
656
|
+
): SafeParseResult<Relationships, SDKValidationError> {
|
|
577
657
|
return safeParse(
|
|
578
658
|
jsonString,
|
|
579
|
-
(x) =>
|
|
580
|
-
|
|
581
|
-
.parse(JSON.parse(x)),
|
|
582
|
-
`Failed to parse 'CommercialSecuredLoanCommercialApplicationRelationshipsRelationships' from JSON`,
|
|
659
|
+
(x) => Relationships$inboundSchema.parse(JSON.parse(x)),
|
|
660
|
+
`Failed to parse 'Relationships' from JSON`,
|
|
583
661
|
);
|
|
584
662
|
}
|
|
585
663
|
|
|
@@ -593,9 +671,9 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDat
|
|
|
593
671
|
type:
|
|
594
672
|
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$inboundSchema,
|
|
595
673
|
attributes: CustomerAttributes$inboundSchema,
|
|
596
|
-
relationships: z.lazy(() =>
|
|
597
|
-
|
|
598
|
-
).optional(),
|
|
674
|
+
relationships: z.lazy(() => Relationships$inboundSchema),
|
|
675
|
+
links: z.record(LinkObject$inboundSchema).optional(),
|
|
676
|
+
meta: z.record(z.any()).optional(),
|
|
599
677
|
});
|
|
600
678
|
|
|
601
679
|
/** @internal */
|
|
@@ -603,9 +681,9 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
|
|
|
603
681
|
{
|
|
604
682
|
type: string;
|
|
605
683
|
attributes: CustomerAttributes$Outbound;
|
|
606
|
-
relationships
|
|
607
|
-
|
|
608
|
-
|
|
684
|
+
relationships: Relationships$Outbound;
|
|
685
|
+
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
686
|
+
meta?: { [k: string]: any } | undefined;
|
|
609
687
|
};
|
|
610
688
|
|
|
611
689
|
/** @internal */
|
|
@@ -618,9 +696,9 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDat
|
|
|
618
696
|
type:
|
|
619
697
|
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$outboundSchema,
|
|
620
698
|
attributes: CustomerAttributes$outboundSchema,
|
|
621
|
-
relationships: z.lazy(() =>
|
|
622
|
-
|
|
623
|
-
).optional(),
|
|
699
|
+
relationships: z.lazy(() => Relationships$outboundSchema),
|
|
700
|
+
links: z.record(LinkObject$outboundSchema).optional(),
|
|
701
|
+
meta: z.record(z.any()).optional(),
|
|
624
702
|
});
|
|
625
703
|
|
|
626
704
|
/**
|
|
@@ -765,6 +843,8 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$in
|
|
|
765
843
|
CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$inboundSchema,
|
|
766
844
|
attributes: CommercialSecuredLoanAssetAttributes$inboundSchema,
|
|
767
845
|
relationships: z.nullable(z.any()).optional(),
|
|
846
|
+
links: z.record(LinkObject$inboundSchema).optional(),
|
|
847
|
+
meta: z.record(z.any()).optional(),
|
|
768
848
|
});
|
|
769
849
|
|
|
770
850
|
/** @internal */
|
|
@@ -773,6 +853,8 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$Out
|
|
|
773
853
|
type: string;
|
|
774
854
|
attributes: CommercialSecuredLoanAssetAttributes$Outbound;
|
|
775
855
|
relationships?: any | null | undefined;
|
|
856
|
+
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
857
|
+
meta?: { [k: string]: any } | undefined;
|
|
776
858
|
};
|
|
777
859
|
|
|
778
860
|
/** @internal */
|
|
@@ -786,6 +868,8 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$ou
|
|
|
786
868
|
CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$outboundSchema,
|
|
787
869
|
attributes: CommercialSecuredLoanAssetAttributes$outboundSchema,
|
|
788
870
|
relationships: z.nullable(z.any()).optional(),
|
|
871
|
+
links: z.record(LinkObject$outboundSchema).optional(),
|
|
872
|
+
meta: z.record(z.any()).optional(),
|
|
789
873
|
});
|
|
790
874
|
|
|
791
875
|
/**
|
|
@@ -940,6 +1024,8 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData
|
|
|
940
1024
|
CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$inboundSchema,
|
|
941
1025
|
attributes: EntityAttributes$inboundSchema,
|
|
942
1026
|
relationships: z.nullable(z.any()).optional(),
|
|
1027
|
+
links: z.record(LinkObject$inboundSchema).optional(),
|
|
1028
|
+
meta: z.record(z.any()).optional(),
|
|
943
1029
|
});
|
|
944
1030
|
|
|
945
1031
|
/** @internal */
|
|
@@ -948,6 +1034,8 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData$
|
|
|
948
1034
|
type: string;
|
|
949
1035
|
attributes: EntityAttributes$Outbound;
|
|
950
1036
|
relationships?: any | null | undefined;
|
|
1037
|
+
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
1038
|
+
meta?: { [k: string]: any } | undefined;
|
|
951
1039
|
};
|
|
952
1040
|
|
|
953
1041
|
/** @internal */
|
|
@@ -961,6 +1049,8 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData
|
|
|
961
1049
|
CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$outboundSchema,
|
|
962
1050
|
attributes: EntityAttributes$outboundSchema,
|
|
963
1051
|
relationships: z.nullable(z.any()).optional(),
|
|
1052
|
+
links: z.record(LinkObject$outboundSchema).optional(),
|
|
1053
|
+
meta: z.record(z.any()).optional(),
|
|
964
1054
|
});
|
|
965
1055
|
|
|
966
1056
|
/**
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
ConsumerSecuredLoanConsumerApplicationRelationships,
|
|
12
|
+
ConsumerSecuredLoanConsumerApplicationRelationships$inboundSchema,
|
|
13
|
+
ConsumerSecuredLoanConsumerApplicationRelationships$Outbound,
|
|
14
|
+
ConsumerSecuredLoanConsumerApplicationRelationships$outboundSchema,
|
|
15
|
+
} from "./consumersecuredloanconsumerapplicationrelationships.js";
|
|
16
|
+
import {
|
|
17
|
+
LinkObject,
|
|
18
|
+
LinkObject$inboundSchema,
|
|
19
|
+
LinkObject$Outbound,
|
|
20
|
+
LinkObject$outboundSchema,
|
|
21
|
+
} from "./linkobject.js";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Resource types used in the API
|
|
25
|
+
*/
|
|
26
|
+
export const ConsumerSecuredApplicationPayloadType = {
|
|
27
|
+
ConsumerSecuredApplications: "consumer-secured-applications",
|
|
28
|
+
CommercialSecuredApplications: "commercial-secured-applications",
|
|
29
|
+
SupportingDocuments: "supporting-documents",
|
|
30
|
+
Customers: "customers",
|
|
31
|
+
Assets: "assets",
|
|
32
|
+
Entities: "entities",
|
|
33
|
+
LoanDetails: "loan-details",
|
|
34
|
+
Addresses: "addresses",
|
|
35
|
+
} as const;
|
|
36
|
+
/**
|
|
37
|
+
* Resource types used in the API
|
|
38
|
+
*/
|
|
39
|
+
export type ConsumerSecuredApplicationPayloadType = ClosedEnum<
|
|
40
|
+
typeof ConsumerSecuredApplicationPayloadType
|
|
41
|
+
>;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Type of the loan application
|
|
45
|
+
*/
|
|
46
|
+
export const ConsumerSecuredApplicationPayloadApplicationType = {
|
|
47
|
+
ConsumerSecured: "consumerSecured",
|
|
48
|
+
} as const;
|
|
49
|
+
/**
|
|
50
|
+
* Type of the loan application
|
|
51
|
+
*/
|
|
52
|
+
export type ConsumerSecuredApplicationPayloadApplicationType = ClosedEnum<
|
|
53
|
+
typeof ConsumerSecuredApplicationPayloadApplicationType
|
|
54
|
+
>;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Application resource attributes
|
|
58
|
+
*/
|
|
59
|
+
export type ConsumerSecuredApplicationPayloadAttributes = {
|
|
60
|
+
/**
|
|
61
|
+
* Type of the loan application
|
|
62
|
+
*/
|
|
63
|
+
applicationType: ConsumerSecuredApplicationPayloadApplicationType;
|
|
64
|
+
/**
|
|
65
|
+
* Email address of the broker to be associated with this application.
|
|
66
|
+
*/
|
|
67
|
+
associatedBrokerEmail?: string | undefined;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export type ConsumerSecuredApplicationPayload = {
|
|
71
|
+
type: ConsumerSecuredApplicationPayloadType;
|
|
72
|
+
/**
|
|
73
|
+
* Application resource attributes
|
|
74
|
+
*/
|
|
75
|
+
attributes: ConsumerSecuredApplicationPayloadAttributes;
|
|
76
|
+
relationships: ConsumerSecuredLoanConsumerApplicationRelationships;
|
|
77
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
78
|
+
meta?: { [k: string]: any } | undefined;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
/** @internal */
|
|
82
|
+
export const ConsumerSecuredApplicationPayloadType$inboundSchema:
|
|
83
|
+
z.ZodNativeEnum<typeof ConsumerSecuredApplicationPayloadType> = z.nativeEnum(
|
|
84
|
+
ConsumerSecuredApplicationPayloadType,
|
|
85
|
+
);
|
|
86
|
+
|
|
87
|
+
/** @internal */
|
|
88
|
+
export const ConsumerSecuredApplicationPayloadType$outboundSchema:
|
|
89
|
+
z.ZodNativeEnum<typeof ConsumerSecuredApplicationPayloadType> =
|
|
90
|
+
ConsumerSecuredApplicationPayloadType$inboundSchema;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @internal
|
|
94
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
95
|
+
*/
|
|
96
|
+
export namespace ConsumerSecuredApplicationPayloadType$ {
|
|
97
|
+
/** @deprecated use `ConsumerSecuredApplicationPayloadType$inboundSchema` instead. */
|
|
98
|
+
export const inboundSchema =
|
|
99
|
+
ConsumerSecuredApplicationPayloadType$inboundSchema;
|
|
100
|
+
/** @deprecated use `ConsumerSecuredApplicationPayloadType$outboundSchema` instead. */
|
|
101
|
+
export const outboundSchema =
|
|
102
|
+
ConsumerSecuredApplicationPayloadType$outboundSchema;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/** @internal */
|
|
106
|
+
export const ConsumerSecuredApplicationPayloadApplicationType$inboundSchema:
|
|
107
|
+
z.ZodNativeEnum<typeof ConsumerSecuredApplicationPayloadApplicationType> = z
|
|
108
|
+
.nativeEnum(ConsumerSecuredApplicationPayloadApplicationType);
|
|
109
|
+
|
|
110
|
+
/** @internal */
|
|
111
|
+
export const ConsumerSecuredApplicationPayloadApplicationType$outboundSchema:
|
|
112
|
+
z.ZodNativeEnum<typeof ConsumerSecuredApplicationPayloadApplicationType> =
|
|
113
|
+
ConsumerSecuredApplicationPayloadApplicationType$inboundSchema;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @internal
|
|
117
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
118
|
+
*/
|
|
119
|
+
export namespace ConsumerSecuredApplicationPayloadApplicationType$ {
|
|
120
|
+
/** @deprecated use `ConsumerSecuredApplicationPayloadApplicationType$inboundSchema` instead. */
|
|
121
|
+
export const inboundSchema =
|
|
122
|
+
ConsumerSecuredApplicationPayloadApplicationType$inboundSchema;
|
|
123
|
+
/** @deprecated use `ConsumerSecuredApplicationPayloadApplicationType$outboundSchema` instead. */
|
|
124
|
+
export const outboundSchema =
|
|
125
|
+
ConsumerSecuredApplicationPayloadApplicationType$outboundSchema;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/** @internal */
|
|
129
|
+
export const ConsumerSecuredApplicationPayloadAttributes$inboundSchema:
|
|
130
|
+
z.ZodType<
|
|
131
|
+
ConsumerSecuredApplicationPayloadAttributes,
|
|
132
|
+
z.ZodTypeDef,
|
|
133
|
+
unknown
|
|
134
|
+
> = z.object({
|
|
135
|
+
applicationType:
|
|
136
|
+
ConsumerSecuredApplicationPayloadApplicationType$inboundSchema,
|
|
137
|
+
associatedBrokerEmail: z.string().optional(),
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
/** @internal */
|
|
141
|
+
export type ConsumerSecuredApplicationPayloadAttributes$Outbound = {
|
|
142
|
+
applicationType: string;
|
|
143
|
+
associatedBrokerEmail?: string | undefined;
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
/** @internal */
|
|
147
|
+
export const ConsumerSecuredApplicationPayloadAttributes$outboundSchema:
|
|
148
|
+
z.ZodType<
|
|
149
|
+
ConsumerSecuredApplicationPayloadAttributes$Outbound,
|
|
150
|
+
z.ZodTypeDef,
|
|
151
|
+
ConsumerSecuredApplicationPayloadAttributes
|
|
152
|
+
> = z.object({
|
|
153
|
+
applicationType:
|
|
154
|
+
ConsumerSecuredApplicationPayloadApplicationType$outboundSchema,
|
|
155
|
+
associatedBrokerEmail: z.string().optional(),
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @internal
|
|
160
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
161
|
+
*/
|
|
162
|
+
export namespace ConsumerSecuredApplicationPayloadAttributes$ {
|
|
163
|
+
/** @deprecated use `ConsumerSecuredApplicationPayloadAttributes$inboundSchema` instead. */
|
|
164
|
+
export const inboundSchema =
|
|
165
|
+
ConsumerSecuredApplicationPayloadAttributes$inboundSchema;
|
|
166
|
+
/** @deprecated use `ConsumerSecuredApplicationPayloadAttributes$outboundSchema` instead. */
|
|
167
|
+
export const outboundSchema =
|
|
168
|
+
ConsumerSecuredApplicationPayloadAttributes$outboundSchema;
|
|
169
|
+
/** @deprecated use `ConsumerSecuredApplicationPayloadAttributes$Outbound` instead. */
|
|
170
|
+
export type Outbound = ConsumerSecuredApplicationPayloadAttributes$Outbound;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export function consumerSecuredApplicationPayloadAttributesToJSON(
|
|
174
|
+
consumerSecuredApplicationPayloadAttributes:
|
|
175
|
+
ConsumerSecuredApplicationPayloadAttributes,
|
|
176
|
+
): string {
|
|
177
|
+
return JSON.stringify(
|
|
178
|
+
ConsumerSecuredApplicationPayloadAttributes$outboundSchema.parse(
|
|
179
|
+
consumerSecuredApplicationPayloadAttributes,
|
|
180
|
+
),
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export function consumerSecuredApplicationPayloadAttributesFromJSON(
|
|
185
|
+
jsonString: string,
|
|
186
|
+
): SafeParseResult<
|
|
187
|
+
ConsumerSecuredApplicationPayloadAttributes,
|
|
188
|
+
SDKValidationError
|
|
189
|
+
> {
|
|
190
|
+
return safeParse(
|
|
191
|
+
jsonString,
|
|
192
|
+
(x) =>
|
|
193
|
+
ConsumerSecuredApplicationPayloadAttributes$inboundSchema.parse(
|
|
194
|
+
JSON.parse(x),
|
|
195
|
+
),
|
|
196
|
+
`Failed to parse 'ConsumerSecuredApplicationPayloadAttributes' from JSON`,
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/** @internal */
|
|
201
|
+
export const ConsumerSecuredApplicationPayload$inboundSchema: z.ZodType<
|
|
202
|
+
ConsumerSecuredApplicationPayload,
|
|
203
|
+
z.ZodTypeDef,
|
|
204
|
+
unknown
|
|
205
|
+
> = z.object({
|
|
206
|
+
type: ConsumerSecuredApplicationPayloadType$inboundSchema,
|
|
207
|
+
attributes: z.lazy(() =>
|
|
208
|
+
ConsumerSecuredApplicationPayloadAttributes$inboundSchema
|
|
209
|
+
),
|
|
210
|
+
relationships:
|
|
211
|
+
ConsumerSecuredLoanConsumerApplicationRelationships$inboundSchema,
|
|
212
|
+
links: z.record(LinkObject$inboundSchema).optional(),
|
|
213
|
+
meta: z.record(z.any()).optional(),
|
|
214
|
+
});
|
|
215
|
+
|
|
216
|
+
/** @internal */
|
|
217
|
+
export type ConsumerSecuredApplicationPayload$Outbound = {
|
|
218
|
+
type: string;
|
|
219
|
+
attributes: ConsumerSecuredApplicationPayloadAttributes$Outbound;
|
|
220
|
+
relationships: ConsumerSecuredLoanConsumerApplicationRelationships$Outbound;
|
|
221
|
+
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
222
|
+
meta?: { [k: string]: any } | undefined;
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
/** @internal */
|
|
226
|
+
export const ConsumerSecuredApplicationPayload$outboundSchema: z.ZodType<
|
|
227
|
+
ConsumerSecuredApplicationPayload$Outbound,
|
|
228
|
+
z.ZodTypeDef,
|
|
229
|
+
ConsumerSecuredApplicationPayload
|
|
230
|
+
> = z.object({
|
|
231
|
+
type: ConsumerSecuredApplicationPayloadType$outboundSchema,
|
|
232
|
+
attributes: z.lazy(() =>
|
|
233
|
+
ConsumerSecuredApplicationPayloadAttributes$outboundSchema
|
|
234
|
+
),
|
|
235
|
+
relationships:
|
|
236
|
+
ConsumerSecuredLoanConsumerApplicationRelationships$outboundSchema,
|
|
237
|
+
links: z.record(LinkObject$outboundSchema).optional(),
|
|
238
|
+
meta: z.record(z.any()).optional(),
|
|
239
|
+
});
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* @internal
|
|
243
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
244
|
+
*/
|
|
245
|
+
export namespace ConsumerSecuredApplicationPayload$ {
|
|
246
|
+
/** @deprecated use `ConsumerSecuredApplicationPayload$inboundSchema` instead. */
|
|
247
|
+
export const inboundSchema = ConsumerSecuredApplicationPayload$inboundSchema;
|
|
248
|
+
/** @deprecated use `ConsumerSecuredApplicationPayload$outboundSchema` instead. */
|
|
249
|
+
export const outboundSchema =
|
|
250
|
+
ConsumerSecuredApplicationPayload$outboundSchema;
|
|
251
|
+
/** @deprecated use `ConsumerSecuredApplicationPayload$Outbound` instead. */
|
|
252
|
+
export type Outbound = ConsumerSecuredApplicationPayload$Outbound;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export function consumerSecuredApplicationPayloadToJSON(
|
|
256
|
+
consumerSecuredApplicationPayload: ConsumerSecuredApplicationPayload,
|
|
257
|
+
): string {
|
|
258
|
+
return JSON.stringify(
|
|
259
|
+
ConsumerSecuredApplicationPayload$outboundSchema.parse(
|
|
260
|
+
consumerSecuredApplicationPayload,
|
|
261
|
+
),
|
|
262
|
+
);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export function consumerSecuredApplicationPayloadFromJSON(
|
|
266
|
+
jsonString: string,
|
|
267
|
+
): SafeParseResult<ConsumerSecuredApplicationPayload, SDKValidationError> {
|
|
268
|
+
return safeParse(
|
|
269
|
+
jsonString,
|
|
270
|
+
(x) => ConsumerSecuredApplicationPayload$inboundSchema.parse(JSON.parse(x)),
|
|
271
|
+
`Failed to parse 'ConsumerSecuredApplicationPayload' from JSON`,
|
|
272
|
+
);
|
|
273
|
+
}
|