@financeable/aggregation 0.5.1 → 0.6.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 +11 -132
- package/README.md +262 -1515
- package/docs/sdks/applications/README.md +171 -295
- package/docs/sdks/oauthtoken/README.md +5 -5
- package/docs/sdks/supportingdocuments/README.md +113 -0
- package/funcs/applicationsCreate.d.ts +1 -2
- package/funcs/applicationsCreate.d.ts.map +1 -1
- package/funcs/applicationsCreate.js +2 -3
- package/funcs/applicationsCreate.js.map +1 -1
- package/funcs/{oauthTokenGet.d.ts → oauthTokenOauthToken.d.ts} +2 -2
- package/funcs/oauthTokenOauthToken.d.ts.map +1 -0
- package/funcs/{oauthTokenGet.js → oauthTokenOauthToken.js} +3 -3
- package/funcs/oauthTokenOauthToken.js.map +1 -0
- package/funcs/supportingDocumentsCreate.d.ts +15 -0
- package/funcs/supportingDocumentsCreate.d.ts.map +1 -0
- package/funcs/{applicationsList.js → supportingDocumentsCreate.js} +15 -12
- package/funcs/supportingDocumentsCreate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +4 -7
- package/lib/config.js.map +1 -1
- package/lib/matchers.d.ts +3 -1
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +12 -0
- package/lib/matchers.js.map +1 -1
- package/lib/sdks.d.ts +3 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +13 -13
- package/lib/sdks.js.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 +13 -14
- package/models/components/addressattributes.js.map +1 -1
- package/models/components/applicationresource.d.ts +30 -0
- package/models/components/applicationresource.d.ts.map +1 -0
- package/models/components/applicationresource.js +73 -0
- package/models/components/applicationresource.js.map +1 -0
- package/models/components/badrequesterror.d.ts +119 -0
- package/models/components/badrequesterror.d.ts.map +1 -0
- package/models/components/badrequesterror.js +140 -0
- package/models/components/badrequesterror.js.map +1 -0
- package/models/components/commercialapplicationjsonapirelationships.d.ts +384 -0
- package/models/components/commercialapplicationjsonapirelationships.d.ts.map +1 -0
- package/models/components/commercialapplicationjsonapirelationships.js +391 -0
- package/models/components/commercialapplicationjsonapirelationships.js.map +1 -0
- package/models/components/commercialapplicationresource.d.ts +191 -0
- package/models/components/commercialapplicationresource.d.ts.map +1 -0
- package/models/components/commercialapplicationresource.js +183 -0
- package/models/components/commercialapplicationresource.js.map +1 -0
- package/models/components/commercialsecuredloanapplicationsubmissionpayload.d.ts +124 -0
- package/models/components/commercialsecuredloanapplicationsubmissionpayload.d.ts.map +1 -0
- package/models/components/commercialsecuredloanapplicationsubmissionpayload.js +144 -0
- package/models/components/commercialsecuredloanapplicationsubmissionpayload.js.map +1 -0
- package/models/components/commercialsecuredloanassetattributes.d.ts +235 -0
- package/models/components/commercialsecuredloanassetattributes.d.ts.map +1 -0
- package/models/components/commercialsecuredloanassetattributes.js +168 -0
- package/models/components/commercialsecuredloanassetattributes.js.map +1 -0
- package/models/components/commercialsecuredloanassettype.d.ts +100 -0
- package/models/components/commercialsecuredloanassettype.d.ts.map +1 -0
- package/models/components/commercialsecuredloanassettype.js +84 -0
- package/models/components/commercialsecuredloanassettype.js.map +1 -0
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +455 -0
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -0
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js +504 -0
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -0
- package/models/components/consumerapplicationjsonapirelationships.d.ts +296 -0
- package/models/components/consumerapplicationjsonapirelationships.d.ts.map +1 -0
- package/models/components/consumerapplicationjsonapirelationships.js +310 -0
- package/models/components/consumerapplicationjsonapirelationships.js.map +1 -0
- package/models/components/consumerapplicationresource.d.ts +191 -0
- package/models/components/consumerapplicationresource.d.ts.map +1 -0
- package/models/components/consumerapplicationresource.js +187 -0
- package/models/components/consumerapplicationresource.js.map +1 -0
- package/models/components/consumersecuredloanapplicationsubmissionpayload.d.ts +124 -0
- package/models/components/consumersecuredloanapplicationsubmissionpayload.d.ts.map +1 -0
- package/models/components/consumersecuredloanapplicationsubmissionpayload.js +146 -0
- package/models/components/consumersecuredloanapplicationsubmissionpayload.js.map +1 -0
- package/models/components/consumersecuredloanassetattributes.d.ts +235 -0
- package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -0
- package/models/components/consumersecuredloanassetattributes.js +170 -0
- package/models/components/consumersecuredloanassetattributes.js.map +1 -0
- package/models/components/consumersecuredloanassettype.d.ts +64 -0
- package/models/components/consumersecuredloanassettype.d.ts.map +1 -0
- package/models/components/{consumerassettype.js → consumersecuredloanassettype.js} +27 -28
- package/models/components/consumersecuredloanassettype.js.map +1 -0
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +376 -0
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -0
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js +426 -0
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -0
- package/models/components/createsupportingdocumentsresponse.d.ts +121 -0
- package/models/components/createsupportingdocumentsresponse.d.ts.map +1 -0
- package/models/components/createsupportingdocumentsresponse.js +149 -0
- package/models/components/createsupportingdocumentsresponse.js.map +1 -0
- package/models/components/documenttype.d.ts +70 -0
- package/models/components/documenttype.d.ts.map +1 -0
- package/models/components/documenttype.js +75 -0
- package/models/components/documenttype.js.map +1 -0
- package/models/components/entityattributes.d.ts +0 -22
- package/models/components/entityattributes.d.ts.map +1 -1
- package/models/components/entityattributes.js +0 -19
- package/models/components/entityattributes.js.map +1 -1
- package/models/components/forbiddenerror.d.ts +17 -39
- package/models/components/forbiddenerror.d.ts.map +1 -1
- package/models/components/forbiddenerror.js +27 -46
- package/models/components/forbiddenerror.js.map +1 -1
- package/models/components/index.d.ts +25 -8
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +25 -8
- package/models/components/index.js.map +1 -1
- package/models/components/linkobject.d.ts +47 -0
- package/models/components/linkobject.d.ts.map +1 -0
- package/models/components/linkobject.js +77 -0
- package/models/components/linkobject.js.map +1 -0
- package/models/components/relationshipresourcenotfound.d.ts +116 -0
- package/models/components/relationshipresourcenotfound.d.ts.map +1 -0
- package/models/components/relationshipresourcenotfound.js +139 -0
- package/models/components/relationshipresourcenotfound.js.map +1 -0
- package/models/components/resourcenotfound.d.ts +119 -0
- package/models/components/resourcenotfound.d.ts.map +1 -0
- package/models/components/resourcenotfound.js +139 -0
- package/models/components/resourcenotfound.js.map +1 -0
- package/models/components/resourcetypes.d.ts +46 -0
- package/models/components/resourcetypes.d.ts.map +1 -0
- package/models/components/{links.js → resourcetypes.js} +21 -27
- package/models/components/resourcetypes.js.map +1 -0
- package/models/components/supportingdocumentattributes.d.ts +40 -0
- package/models/components/supportingdocumentattributes.d.ts.map +1 -0
- package/models/components/{applicationattributescreate.js → supportingdocumentattributes.js} +24 -24
- package/models/components/supportingdocumentattributes.js.map +1 -0
- package/models/components/supportingdocumentattributesinput.d.ts +38 -0
- package/models/components/supportingdocumentattributesinput.d.ts.map +1 -0
- package/models/components/supportingdocumentattributesinput.js +72 -0
- package/models/components/supportingdocumentattributesinput.js.map +1 -0
- package/models/components/supportingdocumentrelationships.d.ts +448 -0
- package/models/components/supportingdocumentrelationships.d.ts.map +1 -0
- package/models/components/supportingdocumentrelationships.js +434 -0
- package/models/components/supportingdocumentrelationships.js.map +1 -0
- package/models/components/supportingdocumentresource.d.ts +91 -0
- package/models/components/supportingdocumentresource.d.ts.map +1 -0
- package/models/components/supportingdocumentresource.js +121 -0
- package/models/components/supportingdocumentresource.js.map +1 -0
- package/models/components/uploadmimetype.d.ts +49 -0
- package/models/components/uploadmimetype.d.ts.map +1 -0
- package/models/components/{applicationtype.js → uploadmimetype.js} +22 -14
- package/models/components/uploadmimetype.js.map +1 -0
- package/models/errors/createapplication.d.ts +38 -0
- package/models/errors/createapplication.d.ts.map +1 -0
- package/models/errors/{responsebody.js → createapplication.js} +15 -15
- package/models/errors/createapplication.js.map +1 -0
- package/models/errors/index.d.ts +2 -1
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +2 -1
- package/models/errors/index.js.map +1 -1
- package/models/errors/supportingdocumentscreate.d.ts +143 -0
- package/models/errors/supportingdocumentscreate.d.ts.map +1 -0
- package/models/errors/supportingdocumentscreate.js +225 -0
- package/models/errors/supportingdocumentscreate.js.map +1 -0
- package/models/operations/createapplication.d.ts +66 -808
- package/models/operations/createapplication.d.ts.map +1 -1
- package/models/operations/createapplication.js +82 -837
- package/models/operations/createapplication.js.map +1 -1
- package/models/operations/index.d.ts +1 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -2
- package/models/operations/index.js.map +1 -1
- package/models/operations/supportingdocumentscreate.d.ts +60 -0
- package/models/operations/supportingdocumentscreate.d.ts.map +1 -0
- package/models/operations/supportingdocumentscreate.js +108 -0
- package/models/operations/supportingdocumentscreate.js.map +1 -0
- package/package.json +2 -2
- package/sdk/applications.d.ts +1 -10
- package/sdk/applications.d.ts.map +1 -1
- package/sdk/applications.js +0 -14
- package/sdk/applications.js.map +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/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/supportingdocuments.d.ts +10 -0
- package/sdk/supportingdocuments.d.ts.map +1 -0
- package/sdk/supportingdocuments.js +19 -0
- package/sdk/supportingdocuments.js.map +1 -0
- package/src/funcs/applicationsCreate.ts +7 -8
- package/src/funcs/{oauthTokenGet.ts → oauthTokenOauthToken.ts} +1 -1
- package/src/funcs/{applicationsList.ts → supportingDocumentsCreate.ts} +31 -20
- package/src/lib/config.ts +4 -7
- package/src/lib/matchers.ts +20 -0
- package/src/lib/sdks.ts +19 -13
- package/src/models/components/addressattributes.ts +18 -14
- package/src/models/components/applicationresource.ts +83 -0
- package/src/models/components/badrequesterror.ts +182 -0
- package/src/models/components/commercialapplicationjsonapirelationships.ts +894 -0
- package/src/models/components/commercialapplicationresource.ts +355 -0
- package/src/models/components/commercialsecuredloanapplicationsubmissionpayload.ts +237 -0
- package/src/models/components/commercialsecuredloanassetattributes.ts +315 -0
- package/src/models/components/commercialsecuredloanassettype.ts +64 -0
- package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +1148 -0
- package/src/models/components/consumerapplicationjsonapirelationships.ts +683 -0
- package/src/models/components/consumerapplicationresource.ts +342 -0
- package/src/models/components/consumersecuredloanapplicationsubmissionpayload.ts +270 -0
- package/src/models/components/consumersecuredloanassetattributes.ts +330 -0
- package/src/models/components/consumersecuredloanassettype.ts +47 -0
- package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +1011 -0
- package/src/models/components/createsupportingdocumentsresponse.ts +252 -0
- package/src/models/components/documenttype.ts +49 -0
- package/src/models/components/entityattributes.ts +0 -44
- package/src/models/components/forbiddenerror.ts +35 -58
- package/src/models/components/index.ts +25 -8
- package/src/models/components/linkobject.ts +84 -0
- package/src/models/components/relationshipresourcenotfound.ts +195 -0
- package/src/models/components/resourcenotfound.ts +188 -0
- package/src/models/components/resourcetypes.ts +39 -0
- package/src/models/components/supportingdocumentattributes.ts +87 -0
- package/src/models/components/supportingdocumentattributesinput.ts +84 -0
- package/src/models/components/supportingdocumentrelationships.ts +828 -0
- package/src/models/components/supportingdocumentresource.ts +163 -0
- package/src/models/components/uploadmimetype.ts +44 -0
- package/src/models/errors/createapplication.ts +76 -0
- package/src/models/errors/index.ts +2 -1
- package/src/models/errors/supportingdocumentscreate.ts +342 -0
- package/src/models/operations/createapplication.ts +143 -1778
- package/src/models/operations/index.ts +1 -2
- package/src/models/operations/supportingdocumentscreate.ts +150 -0
- package/src/sdk/applications.ts +1 -32
- package/src/sdk/oauthtoken.ts +3 -3
- package/src/sdk/sdk.ts +8 -0
- package/src/sdk/supportingdocuments.ts +25 -0
- package/funcs/applicationsGet.d.ts +0 -14
- package/funcs/applicationsGet.d.ts.map +0 -1
- package/funcs/applicationsGet.js +0 -120
- package/funcs/applicationsGet.js.map +0 -1
- package/funcs/applicationsList.d.ts +0 -14
- package/funcs/applicationsList.d.ts.map +0 -1
- package/funcs/applicationsList.js.map +0 -1
- package/funcs/oauthTokenGet.d.ts.map +0 -1
- package/funcs/oauthTokenGet.js.map +0 -1
- package/models/components/applicationattributes.d.ts +0 -69
- package/models/components/applicationattributes.d.ts.map +0 -1
- package/models/components/applicationattributes.js +0 -85
- package/models/components/applicationattributes.js.map +0 -1
- package/models/components/applicationattributescreate.d.ts +0 -43
- package/models/components/applicationattributescreate.d.ts.map +0 -1
- package/models/components/applicationattributescreate.js.map +0 -1
- package/models/components/applicationresourcebulksubmission.d.ts +0 -527
- package/models/components/applicationresourcebulksubmission.d.ts.map +0 -1
- package/models/components/applicationresourcebulksubmission.js +0 -565
- package/models/components/applicationresourcebulksubmission.js.map +0 -1
- package/models/components/applicationtype.d.ts +0 -28
- package/models/components/applicationtype.d.ts.map +0 -1
- package/models/components/applicationtype.js.map +0 -1
- package/models/components/assetattributes.d.ts +0 -311
- package/models/components/assetattributes.d.ts.map +0 -1
- package/models/components/assetattributes.js +0 -234
- package/models/components/assetattributes.js.map +0 -1
- package/models/components/commercialassettype.d.ts +0 -44
- package/models/components/commercialassettype.d.ts.map +0 -1
- package/models/components/commercialassettype.js +0 -85
- package/models/components/commercialassettype.js.map +0 -1
- package/models/components/consumerassettype.d.ts +0 -32
- package/models/components/consumerassettype.d.ts.map +0 -1
- package/models/components/consumerassettype.js.map +0 -1
- package/models/components/links.d.ts +0 -40
- package/models/components/links.d.ts.map +0 -1
- package/models/components/links.js.map +0 -1
- package/models/errors/responsebody.d.ts +0 -38
- package/models/errors/responsebody.d.ts.map +0 -1
- package/models/errors/responsebody.js.map +0 -1
- package/models/operations/getapplication.d.ts +0 -962
- package/models/operations/getapplication.d.ts.map +0 -1
- package/models/operations/getapplication.js +0 -1030
- package/models/operations/getapplication.js.map +0 -1
- package/models/operations/getapplications.d.ts +0 -962
- package/models/operations/getapplications.d.ts.map +0 -1
- package/models/operations/getapplications.js +0 -1029
- package/models/operations/getapplications.js.map +0 -1
- package/src/funcs/applicationsGet.ts +0 -168
- package/src/models/components/applicationattributes.ts +0 -128
- package/src/models/components/applicationattributescreate.ts +0 -90
- package/src/models/components/applicationresourcebulksubmission.ts +0 -1172
- package/src/models/components/applicationtype.ts +0 -33
- package/src/models/components/assetattributes.ts +0 -411
- package/src/models/components/commercialassettype.ts +0 -61
- package/src/models/components/consumerassettype.ts +0 -43
- package/src/models/components/links.ts +0 -72
- package/src/models/errors/responsebody.ts +0 -76
- package/src/models/operations/getapplication.ts +0 -2246
- package/src/models/operations/getapplications.ts +0 -2191
|
@@ -0,0 +1,1011 @@
|
|
|
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
|
+
AddressAttributes,
|
|
12
|
+
AddressAttributes$inboundSchema,
|
|
13
|
+
AddressAttributes$Outbound,
|
|
14
|
+
AddressAttributes$outboundSchema,
|
|
15
|
+
} from "./addressattributes.js";
|
|
16
|
+
import {
|
|
17
|
+
ConsumerSecuredLoanAssetAttributes,
|
|
18
|
+
ConsumerSecuredLoanAssetAttributes$inboundSchema,
|
|
19
|
+
ConsumerSecuredLoanAssetAttributes$Outbound,
|
|
20
|
+
ConsumerSecuredLoanAssetAttributes$outboundSchema,
|
|
21
|
+
} from "./consumersecuredloanassetattributes.js";
|
|
22
|
+
import {
|
|
23
|
+
CustomerAttributes,
|
|
24
|
+
CustomerAttributes$inboundSchema,
|
|
25
|
+
CustomerAttributes$Outbound,
|
|
26
|
+
CustomerAttributes$outboundSchema,
|
|
27
|
+
} from "./customerattributes.js";
|
|
28
|
+
import {
|
|
29
|
+
LoanDetailsAttributes,
|
|
30
|
+
LoanDetailsAttributes$inboundSchema,
|
|
31
|
+
LoanDetailsAttributes$Outbound,
|
|
32
|
+
LoanDetailsAttributes$outboundSchema,
|
|
33
|
+
} from "./loandetailsattributes.js";
|
|
34
|
+
|
|
35
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsType = {
|
|
36
|
+
LoanDetails: "loan-details",
|
|
37
|
+
} as const;
|
|
38
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsType =
|
|
39
|
+
ClosedEnum<typeof ConsumerSecuredLoanConsumerApplicationRelationshipsType>;
|
|
40
|
+
|
|
41
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsData = {
|
|
42
|
+
type: ConsumerSecuredLoanConsumerApplicationRelationshipsType;
|
|
43
|
+
/**
|
|
44
|
+
* Loan details model
|
|
45
|
+
*/
|
|
46
|
+
attributes: LoanDetailsAttributes;
|
|
47
|
+
relationships?: any | null | undefined;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails = {
|
|
51
|
+
data: ConsumerSecuredLoanConsumerApplicationRelationshipsData;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType =
|
|
55
|
+
{
|
|
56
|
+
Customers: "customers",
|
|
57
|
+
} as const;
|
|
58
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType =
|
|
59
|
+
ClosedEnum<
|
|
60
|
+
typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType
|
|
61
|
+
>;
|
|
62
|
+
|
|
63
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType =
|
|
64
|
+
{
|
|
65
|
+
Addresses: "addresses",
|
|
66
|
+
} as const;
|
|
67
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType =
|
|
68
|
+
ClosedEnum<
|
|
69
|
+
typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType
|
|
70
|
+
>;
|
|
71
|
+
|
|
72
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData =
|
|
73
|
+
{
|
|
74
|
+
type: ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType;
|
|
75
|
+
attributes: AddressAttributes;
|
|
76
|
+
relationships?: any | null | undefined;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses = {
|
|
80
|
+
data: Array<
|
|
81
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData
|
|
82
|
+
>;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships = {
|
|
86
|
+
addresses?:
|
|
87
|
+
| ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses
|
|
88
|
+
| undefined;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData = {
|
|
92
|
+
type: ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType;
|
|
93
|
+
/**
|
|
94
|
+
* A customer of the proposed financing
|
|
95
|
+
*/
|
|
96
|
+
attributes: CustomerAttributes;
|
|
97
|
+
relationships?:
|
|
98
|
+
| ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships
|
|
99
|
+
| undefined;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers = {
|
|
103
|
+
data: Array<ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData>;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType = {
|
|
107
|
+
Assets: "assets",
|
|
108
|
+
} as const;
|
|
109
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType =
|
|
110
|
+
ClosedEnum<
|
|
111
|
+
typeof ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType
|
|
112
|
+
>;
|
|
113
|
+
|
|
114
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData = {
|
|
115
|
+
type: ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType;
|
|
116
|
+
/**
|
|
117
|
+
* The asset to be obtained by the customer, using the proposed loan financing.
|
|
118
|
+
*/
|
|
119
|
+
attributes: ConsumerSecuredLoanAssetAttributes;
|
|
120
|
+
relationships?: any | null | undefined;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsAsset = {
|
|
124
|
+
data: ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationships = {
|
|
128
|
+
loanDetails?:
|
|
129
|
+
| ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails
|
|
130
|
+
| undefined;
|
|
131
|
+
customers?:
|
|
132
|
+
| ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers
|
|
133
|
+
| undefined;
|
|
134
|
+
asset?: ConsumerSecuredLoanConsumerApplicationRelationshipsAsset | undefined;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
/** @internal */
|
|
138
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsType$inboundSchema:
|
|
139
|
+
z.ZodNativeEnum<
|
|
140
|
+
typeof ConsumerSecuredLoanConsumerApplicationRelationshipsType
|
|
141
|
+
> = z.nativeEnum(ConsumerSecuredLoanConsumerApplicationRelationshipsType);
|
|
142
|
+
|
|
143
|
+
/** @internal */
|
|
144
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsType$outboundSchema:
|
|
145
|
+
z.ZodNativeEnum<
|
|
146
|
+
typeof ConsumerSecuredLoanConsumerApplicationRelationshipsType
|
|
147
|
+
> = ConsumerSecuredLoanConsumerApplicationRelationshipsType$inboundSchema;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @internal
|
|
151
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
152
|
+
*/
|
|
153
|
+
export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsType$ {
|
|
154
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsType$inboundSchema` instead. */
|
|
155
|
+
export const inboundSchema =
|
|
156
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsType$inboundSchema;
|
|
157
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsType$outboundSchema` instead. */
|
|
158
|
+
export const outboundSchema =
|
|
159
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsType$outboundSchema;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/** @internal */
|
|
163
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsData$inboundSchema:
|
|
164
|
+
z.ZodType<
|
|
165
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsData,
|
|
166
|
+
z.ZodTypeDef,
|
|
167
|
+
unknown
|
|
168
|
+
> = z.object({
|
|
169
|
+
type: ConsumerSecuredLoanConsumerApplicationRelationshipsType$inboundSchema,
|
|
170
|
+
attributes: LoanDetailsAttributes$inboundSchema,
|
|
171
|
+
relationships: z.nullable(z.any()).optional(),
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
/** @internal */
|
|
175
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsData$Outbound = {
|
|
176
|
+
type: string;
|
|
177
|
+
attributes: LoanDetailsAttributes$Outbound;
|
|
178
|
+
relationships?: any | null | undefined;
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
/** @internal */
|
|
182
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsData$outboundSchema:
|
|
183
|
+
z.ZodType<
|
|
184
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsData$Outbound,
|
|
185
|
+
z.ZodTypeDef,
|
|
186
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsData
|
|
187
|
+
> = z.object({
|
|
188
|
+
type:
|
|
189
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsType$outboundSchema,
|
|
190
|
+
attributes: LoanDetailsAttributes$outboundSchema,
|
|
191
|
+
relationships: z.nullable(z.any()).optional(),
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @internal
|
|
196
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
197
|
+
*/
|
|
198
|
+
export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsData$ {
|
|
199
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsData$inboundSchema` instead. */
|
|
200
|
+
export const inboundSchema =
|
|
201
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsData$inboundSchema;
|
|
202
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsData$outboundSchema` instead. */
|
|
203
|
+
export const outboundSchema =
|
|
204
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsData$outboundSchema;
|
|
205
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsData$Outbound` instead. */
|
|
206
|
+
export type Outbound =
|
|
207
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsData$Outbound;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export function consumerSecuredLoanConsumerApplicationRelationshipsDataToJSON(
|
|
211
|
+
consumerSecuredLoanConsumerApplicationRelationshipsData:
|
|
212
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsData,
|
|
213
|
+
): string {
|
|
214
|
+
return JSON.stringify(
|
|
215
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsData$outboundSchema
|
|
216
|
+
.parse(consumerSecuredLoanConsumerApplicationRelationshipsData),
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export function consumerSecuredLoanConsumerApplicationRelationshipsDataFromJSON(
|
|
221
|
+
jsonString: string,
|
|
222
|
+
): SafeParseResult<
|
|
223
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsData,
|
|
224
|
+
SDKValidationError
|
|
225
|
+
> {
|
|
226
|
+
return safeParse(
|
|
227
|
+
jsonString,
|
|
228
|
+
(x) =>
|
|
229
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsData$inboundSchema
|
|
230
|
+
.parse(JSON.parse(x)),
|
|
231
|
+
`Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsData' from JSON`,
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/** @internal */
|
|
236
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$inboundSchema:
|
|
237
|
+
z.ZodType<
|
|
238
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails,
|
|
239
|
+
z.ZodTypeDef,
|
|
240
|
+
unknown
|
|
241
|
+
> = z.object({
|
|
242
|
+
data: z.lazy(() =>
|
|
243
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsData$inboundSchema
|
|
244
|
+
),
|
|
245
|
+
});
|
|
246
|
+
|
|
247
|
+
/** @internal */
|
|
248
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$Outbound =
|
|
249
|
+
{
|
|
250
|
+
data: ConsumerSecuredLoanConsumerApplicationRelationshipsData$Outbound;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
/** @internal */
|
|
254
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$outboundSchema:
|
|
255
|
+
z.ZodType<
|
|
256
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$Outbound,
|
|
257
|
+
z.ZodTypeDef,
|
|
258
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails
|
|
259
|
+
> = z.object({
|
|
260
|
+
data: z.lazy(() =>
|
|
261
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsData$outboundSchema
|
|
262
|
+
),
|
|
263
|
+
});
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* @internal
|
|
267
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
268
|
+
*/
|
|
269
|
+
export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$ {
|
|
270
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$inboundSchema` instead. */
|
|
271
|
+
export const inboundSchema =
|
|
272
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$inboundSchema;
|
|
273
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$outboundSchema` instead. */
|
|
274
|
+
export const outboundSchema =
|
|
275
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$outboundSchema;
|
|
276
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$Outbound` instead. */
|
|
277
|
+
export type Outbound =
|
|
278
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$Outbound;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export function consumerSecuredLoanConsumerApplicationRelationshipsLoanDetailsToJSON(
|
|
282
|
+
consumerSecuredLoanConsumerApplicationRelationshipsLoanDetails:
|
|
283
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails,
|
|
284
|
+
): string {
|
|
285
|
+
return JSON.stringify(
|
|
286
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$outboundSchema
|
|
287
|
+
.parse(consumerSecuredLoanConsumerApplicationRelationshipsLoanDetails),
|
|
288
|
+
);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export function consumerSecuredLoanConsumerApplicationRelationshipsLoanDetailsFromJSON(
|
|
292
|
+
jsonString: string,
|
|
293
|
+
): SafeParseResult<
|
|
294
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails,
|
|
295
|
+
SDKValidationError
|
|
296
|
+
> {
|
|
297
|
+
return safeParse(
|
|
298
|
+
jsonString,
|
|
299
|
+
(x) =>
|
|
300
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$inboundSchema
|
|
301
|
+
.parse(JSON.parse(x)),
|
|
302
|
+
`Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails' from JSON`,
|
|
303
|
+
);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/** @internal */
|
|
307
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType$inboundSchema:
|
|
308
|
+
z.ZodNativeEnum<
|
|
309
|
+
typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType
|
|
310
|
+
> = z.nativeEnum(
|
|
311
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType,
|
|
312
|
+
);
|
|
313
|
+
|
|
314
|
+
/** @internal */
|
|
315
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType$outboundSchema:
|
|
316
|
+
z.ZodNativeEnum<
|
|
317
|
+
typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType
|
|
318
|
+
> =
|
|
319
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType$inboundSchema;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* @internal
|
|
323
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
324
|
+
*/
|
|
325
|
+
export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType$ {
|
|
326
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType$inboundSchema` instead. */
|
|
327
|
+
export const inboundSchema =
|
|
328
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType$inboundSchema;
|
|
329
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType$outboundSchema` instead. */
|
|
330
|
+
export const outboundSchema =
|
|
331
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType$outboundSchema;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/** @internal */
|
|
335
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType$inboundSchema:
|
|
336
|
+
z.ZodNativeEnum<
|
|
337
|
+
typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType
|
|
338
|
+
> = z.nativeEnum(
|
|
339
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType,
|
|
340
|
+
);
|
|
341
|
+
|
|
342
|
+
/** @internal */
|
|
343
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType$outboundSchema:
|
|
344
|
+
z.ZodNativeEnum<
|
|
345
|
+
typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType
|
|
346
|
+
> =
|
|
347
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType$inboundSchema;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* @internal
|
|
351
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
352
|
+
*/
|
|
353
|
+
export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType$ {
|
|
354
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType$inboundSchema` instead. */
|
|
355
|
+
export const inboundSchema =
|
|
356
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType$inboundSchema;
|
|
357
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType$outboundSchema` instead. */
|
|
358
|
+
export const outboundSchema =
|
|
359
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType$outboundSchema;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/** @internal */
|
|
363
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema:
|
|
364
|
+
z.ZodType<
|
|
365
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData,
|
|
366
|
+
z.ZodTypeDef,
|
|
367
|
+
unknown
|
|
368
|
+
> = z.object({
|
|
369
|
+
type:
|
|
370
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType$inboundSchema,
|
|
371
|
+
attributes: AddressAttributes$inboundSchema,
|
|
372
|
+
relationships: z.nullable(z.any()).optional(),
|
|
373
|
+
});
|
|
374
|
+
|
|
375
|
+
/** @internal */
|
|
376
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound =
|
|
377
|
+
{
|
|
378
|
+
type: string;
|
|
379
|
+
attributes: AddressAttributes$Outbound;
|
|
380
|
+
relationships?: any | null | undefined;
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
/** @internal */
|
|
384
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema:
|
|
385
|
+
z.ZodType<
|
|
386
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound,
|
|
387
|
+
z.ZodTypeDef,
|
|
388
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData
|
|
389
|
+
> = z.object({
|
|
390
|
+
type:
|
|
391
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType$outboundSchema,
|
|
392
|
+
attributes: AddressAttributes$outboundSchema,
|
|
393
|
+
relationships: z.nullable(z.any()).optional(),
|
|
394
|
+
});
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* @internal
|
|
398
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
399
|
+
*/
|
|
400
|
+
export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$ {
|
|
401
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema` instead. */
|
|
402
|
+
export const inboundSchema =
|
|
403
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema;
|
|
404
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema` instead. */
|
|
405
|
+
export const outboundSchema =
|
|
406
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema;
|
|
407
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound` instead. */
|
|
408
|
+
export type Outbound =
|
|
409
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataDataToJSON(
|
|
413
|
+
consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData:
|
|
414
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData,
|
|
415
|
+
): string {
|
|
416
|
+
return JSON.stringify(
|
|
417
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema
|
|
418
|
+
.parse(
|
|
419
|
+
consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData,
|
|
420
|
+
),
|
|
421
|
+
);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataDataFromJSON(
|
|
425
|
+
jsonString: string,
|
|
426
|
+
): SafeParseResult<
|
|
427
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData,
|
|
428
|
+
SDKValidationError
|
|
429
|
+
> {
|
|
430
|
+
return safeParse(
|
|
431
|
+
jsonString,
|
|
432
|
+
(x) =>
|
|
433
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema
|
|
434
|
+
.parse(JSON.parse(x)),
|
|
435
|
+
`Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData' from JSON`,
|
|
436
|
+
);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
/** @internal */
|
|
440
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$inboundSchema:
|
|
441
|
+
z.ZodType<
|
|
442
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses,
|
|
443
|
+
z.ZodTypeDef,
|
|
444
|
+
unknown
|
|
445
|
+
> = z.object({
|
|
446
|
+
data: z.array(
|
|
447
|
+
z.lazy(() =>
|
|
448
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema
|
|
449
|
+
),
|
|
450
|
+
),
|
|
451
|
+
});
|
|
452
|
+
|
|
453
|
+
/** @internal */
|
|
454
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$Outbound =
|
|
455
|
+
{
|
|
456
|
+
data: Array<
|
|
457
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound
|
|
458
|
+
>;
|
|
459
|
+
};
|
|
460
|
+
|
|
461
|
+
/** @internal */
|
|
462
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$outboundSchema:
|
|
463
|
+
z.ZodType<
|
|
464
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$Outbound,
|
|
465
|
+
z.ZodTypeDef,
|
|
466
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses
|
|
467
|
+
> = z.object({
|
|
468
|
+
data: z.array(
|
|
469
|
+
z.lazy(() =>
|
|
470
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema
|
|
471
|
+
),
|
|
472
|
+
),
|
|
473
|
+
});
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* @internal
|
|
477
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
478
|
+
*/
|
|
479
|
+
export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$ {
|
|
480
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$inboundSchema` instead. */
|
|
481
|
+
export const inboundSchema =
|
|
482
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$inboundSchema;
|
|
483
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$outboundSchema` instead. */
|
|
484
|
+
export const outboundSchema =
|
|
485
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$outboundSchema;
|
|
486
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$Outbound` instead. */
|
|
487
|
+
export type Outbound =
|
|
488
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$Outbound;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
export function consumerSecuredLoanConsumerApplicationRelationshipsAddressesToJSON(
|
|
492
|
+
consumerSecuredLoanConsumerApplicationRelationshipsAddresses:
|
|
493
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses,
|
|
494
|
+
): string {
|
|
495
|
+
return JSON.stringify(
|
|
496
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$outboundSchema
|
|
497
|
+
.parse(consumerSecuredLoanConsumerApplicationRelationshipsAddresses),
|
|
498
|
+
);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
export function consumerSecuredLoanConsumerApplicationRelationshipsAddressesFromJSON(
|
|
502
|
+
jsonString: string,
|
|
503
|
+
): SafeParseResult<
|
|
504
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses,
|
|
505
|
+
SDKValidationError
|
|
506
|
+
> {
|
|
507
|
+
return safeParse(
|
|
508
|
+
jsonString,
|
|
509
|
+
(x) =>
|
|
510
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$inboundSchema
|
|
511
|
+
.parse(JSON.parse(x)),
|
|
512
|
+
`Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses' from JSON`,
|
|
513
|
+
);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/** @internal */
|
|
517
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$inboundSchema:
|
|
518
|
+
z.ZodType<
|
|
519
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships,
|
|
520
|
+
z.ZodTypeDef,
|
|
521
|
+
unknown
|
|
522
|
+
> = z.object({
|
|
523
|
+
addresses: z.lazy(() =>
|
|
524
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$inboundSchema
|
|
525
|
+
).optional(),
|
|
526
|
+
});
|
|
527
|
+
|
|
528
|
+
/** @internal */
|
|
529
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$Outbound =
|
|
530
|
+
{
|
|
531
|
+
addresses?:
|
|
532
|
+
| ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$Outbound
|
|
533
|
+
| undefined;
|
|
534
|
+
};
|
|
535
|
+
|
|
536
|
+
/** @internal */
|
|
537
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$outboundSchema:
|
|
538
|
+
z.ZodType<
|
|
539
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$Outbound,
|
|
540
|
+
z.ZodTypeDef,
|
|
541
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships
|
|
542
|
+
> = z.object({
|
|
543
|
+
addresses: z.lazy(() =>
|
|
544
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$outboundSchema
|
|
545
|
+
).optional(),
|
|
546
|
+
});
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* @internal
|
|
550
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
551
|
+
*/
|
|
552
|
+
export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$ {
|
|
553
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$inboundSchema` instead. */
|
|
554
|
+
export const inboundSchema =
|
|
555
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$inboundSchema;
|
|
556
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$outboundSchema` instead. */
|
|
557
|
+
export const outboundSchema =
|
|
558
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$outboundSchema;
|
|
559
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$Outbound` instead. */
|
|
560
|
+
export type Outbound =
|
|
561
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$Outbound;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
export function consumerSecuredLoanConsumerApplicationRelationshipsRelationshipsToJSON(
|
|
565
|
+
consumerSecuredLoanConsumerApplicationRelationshipsRelationships:
|
|
566
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships,
|
|
567
|
+
): string {
|
|
568
|
+
return JSON.stringify(
|
|
569
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$outboundSchema
|
|
570
|
+
.parse(consumerSecuredLoanConsumerApplicationRelationshipsRelationships),
|
|
571
|
+
);
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
export function consumerSecuredLoanConsumerApplicationRelationshipsRelationshipsFromJSON(
|
|
575
|
+
jsonString: string,
|
|
576
|
+
): SafeParseResult<
|
|
577
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships,
|
|
578
|
+
SDKValidationError
|
|
579
|
+
> {
|
|
580
|
+
return safeParse(
|
|
581
|
+
jsonString,
|
|
582
|
+
(x) =>
|
|
583
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$inboundSchema
|
|
584
|
+
.parse(JSON.parse(x)),
|
|
585
|
+
`Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships' from JSON`,
|
|
586
|
+
);
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
/** @internal */
|
|
590
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$inboundSchema:
|
|
591
|
+
z.ZodType<
|
|
592
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData,
|
|
593
|
+
z.ZodTypeDef,
|
|
594
|
+
unknown
|
|
595
|
+
> = z.object({
|
|
596
|
+
type:
|
|
597
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType$inboundSchema,
|
|
598
|
+
attributes: CustomerAttributes$inboundSchema,
|
|
599
|
+
relationships: z.lazy(() =>
|
|
600
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$inboundSchema
|
|
601
|
+
).optional(),
|
|
602
|
+
});
|
|
603
|
+
|
|
604
|
+
/** @internal */
|
|
605
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$Outbound =
|
|
606
|
+
{
|
|
607
|
+
type: string;
|
|
608
|
+
attributes: CustomerAttributes$Outbound;
|
|
609
|
+
relationships?:
|
|
610
|
+
| ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$Outbound
|
|
611
|
+
| undefined;
|
|
612
|
+
};
|
|
613
|
+
|
|
614
|
+
/** @internal */
|
|
615
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$outboundSchema:
|
|
616
|
+
z.ZodType<
|
|
617
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$Outbound,
|
|
618
|
+
z.ZodTypeDef,
|
|
619
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData
|
|
620
|
+
> = z.object({
|
|
621
|
+
type:
|
|
622
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersType$outboundSchema,
|
|
623
|
+
attributes: CustomerAttributes$outboundSchema,
|
|
624
|
+
relationships: z.lazy(() =>
|
|
625
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$outboundSchema
|
|
626
|
+
).optional(),
|
|
627
|
+
});
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* @internal
|
|
631
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
632
|
+
*/
|
|
633
|
+
export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$ {
|
|
634
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$inboundSchema` instead. */
|
|
635
|
+
export const inboundSchema =
|
|
636
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$inboundSchema;
|
|
637
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$outboundSchema` instead. */
|
|
638
|
+
export const outboundSchema =
|
|
639
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$outboundSchema;
|
|
640
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$Outbound` instead. */
|
|
641
|
+
export type Outbound =
|
|
642
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$Outbound;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataToJSON(
|
|
646
|
+
consumerSecuredLoanConsumerApplicationRelationshipsCustomersData:
|
|
647
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData,
|
|
648
|
+
): string {
|
|
649
|
+
return JSON.stringify(
|
|
650
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$outboundSchema
|
|
651
|
+
.parse(consumerSecuredLoanConsumerApplicationRelationshipsCustomersData),
|
|
652
|
+
);
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataFromJSON(
|
|
656
|
+
jsonString: string,
|
|
657
|
+
): SafeParseResult<
|
|
658
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData,
|
|
659
|
+
SDKValidationError
|
|
660
|
+
> {
|
|
661
|
+
return safeParse(
|
|
662
|
+
jsonString,
|
|
663
|
+
(x) =>
|
|
664
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$inboundSchema
|
|
665
|
+
.parse(JSON.parse(x)),
|
|
666
|
+
`Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData' from JSON`,
|
|
667
|
+
);
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
/** @internal */
|
|
671
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$inboundSchema:
|
|
672
|
+
z.ZodType<
|
|
673
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers,
|
|
674
|
+
z.ZodTypeDef,
|
|
675
|
+
unknown
|
|
676
|
+
> = z.object({
|
|
677
|
+
data: z.array(
|
|
678
|
+
z.lazy(() =>
|
|
679
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$inboundSchema
|
|
680
|
+
),
|
|
681
|
+
),
|
|
682
|
+
});
|
|
683
|
+
|
|
684
|
+
/** @internal */
|
|
685
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$Outbound =
|
|
686
|
+
{
|
|
687
|
+
data: Array<
|
|
688
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$Outbound
|
|
689
|
+
>;
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
/** @internal */
|
|
693
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$outboundSchema:
|
|
694
|
+
z.ZodType<
|
|
695
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$Outbound,
|
|
696
|
+
z.ZodTypeDef,
|
|
697
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers
|
|
698
|
+
> = z.object({
|
|
699
|
+
data: z.array(
|
|
700
|
+
z.lazy(() =>
|
|
701
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$outboundSchema
|
|
702
|
+
),
|
|
703
|
+
),
|
|
704
|
+
});
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* @internal
|
|
708
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
709
|
+
*/
|
|
710
|
+
export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$ {
|
|
711
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$inboundSchema` instead. */
|
|
712
|
+
export const inboundSchema =
|
|
713
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$inboundSchema;
|
|
714
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$outboundSchema` instead. */
|
|
715
|
+
export const outboundSchema =
|
|
716
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$outboundSchema;
|
|
717
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$Outbound` instead. */
|
|
718
|
+
export type Outbound =
|
|
719
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$Outbound;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersToJSON(
|
|
723
|
+
consumerSecuredLoanConsumerApplicationRelationshipsCustomers:
|
|
724
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers,
|
|
725
|
+
): string {
|
|
726
|
+
return JSON.stringify(
|
|
727
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$outboundSchema
|
|
728
|
+
.parse(consumerSecuredLoanConsumerApplicationRelationshipsCustomers),
|
|
729
|
+
);
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersFromJSON(
|
|
733
|
+
jsonString: string,
|
|
734
|
+
): SafeParseResult<
|
|
735
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers,
|
|
736
|
+
SDKValidationError
|
|
737
|
+
> {
|
|
738
|
+
return safeParse(
|
|
739
|
+
jsonString,
|
|
740
|
+
(x) =>
|
|
741
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$inboundSchema
|
|
742
|
+
.parse(JSON.parse(x)),
|
|
743
|
+
`Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers' from JSON`,
|
|
744
|
+
);
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
/** @internal */
|
|
748
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType$inboundSchema:
|
|
749
|
+
z.ZodNativeEnum<
|
|
750
|
+
typeof ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType
|
|
751
|
+
> = z.nativeEnum(
|
|
752
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType,
|
|
753
|
+
);
|
|
754
|
+
|
|
755
|
+
/** @internal */
|
|
756
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType$outboundSchema:
|
|
757
|
+
z.ZodNativeEnum<
|
|
758
|
+
typeof ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType
|
|
759
|
+
> =
|
|
760
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType$inboundSchema;
|
|
761
|
+
|
|
762
|
+
/**
|
|
763
|
+
* @internal
|
|
764
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
765
|
+
*/
|
|
766
|
+
export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType$ {
|
|
767
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType$inboundSchema` instead. */
|
|
768
|
+
export const inboundSchema =
|
|
769
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType$inboundSchema;
|
|
770
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType$outboundSchema` instead. */
|
|
771
|
+
export const outboundSchema =
|
|
772
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType$outboundSchema;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
/** @internal */
|
|
776
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$inboundSchema:
|
|
777
|
+
z.ZodType<
|
|
778
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData,
|
|
779
|
+
z.ZodTypeDef,
|
|
780
|
+
unknown
|
|
781
|
+
> = z.object({
|
|
782
|
+
type:
|
|
783
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType$inboundSchema,
|
|
784
|
+
attributes: ConsumerSecuredLoanAssetAttributes$inboundSchema,
|
|
785
|
+
relationships: z.nullable(z.any()).optional(),
|
|
786
|
+
});
|
|
787
|
+
|
|
788
|
+
/** @internal */
|
|
789
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$Outbound =
|
|
790
|
+
{
|
|
791
|
+
type: string;
|
|
792
|
+
attributes: ConsumerSecuredLoanAssetAttributes$Outbound;
|
|
793
|
+
relationships?: any | null | undefined;
|
|
794
|
+
};
|
|
795
|
+
|
|
796
|
+
/** @internal */
|
|
797
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$outboundSchema:
|
|
798
|
+
z.ZodType<
|
|
799
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$Outbound,
|
|
800
|
+
z.ZodTypeDef,
|
|
801
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData
|
|
802
|
+
> = z.object({
|
|
803
|
+
type:
|
|
804
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType$outboundSchema,
|
|
805
|
+
attributes: ConsumerSecuredLoanAssetAttributes$outboundSchema,
|
|
806
|
+
relationships: z.nullable(z.any()).optional(),
|
|
807
|
+
});
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* @internal
|
|
811
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
812
|
+
*/
|
|
813
|
+
export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$ {
|
|
814
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$inboundSchema` instead. */
|
|
815
|
+
export const inboundSchema =
|
|
816
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$inboundSchema;
|
|
817
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$outboundSchema` instead. */
|
|
818
|
+
export const outboundSchema =
|
|
819
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$outboundSchema;
|
|
820
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$Outbound` instead. */
|
|
821
|
+
export type Outbound =
|
|
822
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$Outbound;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
export function consumerSecuredLoanConsumerApplicationRelationshipsAssetDataToJSON(
|
|
826
|
+
consumerSecuredLoanConsumerApplicationRelationshipsAssetData:
|
|
827
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData,
|
|
828
|
+
): string {
|
|
829
|
+
return JSON.stringify(
|
|
830
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$outboundSchema
|
|
831
|
+
.parse(consumerSecuredLoanConsumerApplicationRelationshipsAssetData),
|
|
832
|
+
);
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
export function consumerSecuredLoanConsumerApplicationRelationshipsAssetDataFromJSON(
|
|
836
|
+
jsonString: string,
|
|
837
|
+
): SafeParseResult<
|
|
838
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData,
|
|
839
|
+
SDKValidationError
|
|
840
|
+
> {
|
|
841
|
+
return safeParse(
|
|
842
|
+
jsonString,
|
|
843
|
+
(x) =>
|
|
844
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$inboundSchema
|
|
845
|
+
.parse(JSON.parse(x)),
|
|
846
|
+
`Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData' from JSON`,
|
|
847
|
+
);
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
/** @internal */
|
|
851
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$inboundSchema:
|
|
852
|
+
z.ZodType<
|
|
853
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAsset,
|
|
854
|
+
z.ZodTypeDef,
|
|
855
|
+
unknown
|
|
856
|
+
> = z.object({
|
|
857
|
+
data: z.lazy(() =>
|
|
858
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$inboundSchema
|
|
859
|
+
),
|
|
860
|
+
});
|
|
861
|
+
|
|
862
|
+
/** @internal */
|
|
863
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$Outbound =
|
|
864
|
+
{
|
|
865
|
+
data: ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$Outbound;
|
|
866
|
+
};
|
|
867
|
+
|
|
868
|
+
/** @internal */
|
|
869
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$outboundSchema:
|
|
870
|
+
z.ZodType<
|
|
871
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$Outbound,
|
|
872
|
+
z.ZodTypeDef,
|
|
873
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAsset
|
|
874
|
+
> = z.object({
|
|
875
|
+
data: z.lazy(() =>
|
|
876
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$outboundSchema
|
|
877
|
+
),
|
|
878
|
+
});
|
|
879
|
+
|
|
880
|
+
/**
|
|
881
|
+
* @internal
|
|
882
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
883
|
+
*/
|
|
884
|
+
export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$ {
|
|
885
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$inboundSchema` instead. */
|
|
886
|
+
export const inboundSchema =
|
|
887
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$inboundSchema;
|
|
888
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$outboundSchema` instead. */
|
|
889
|
+
export const outboundSchema =
|
|
890
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$outboundSchema;
|
|
891
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$Outbound` instead. */
|
|
892
|
+
export type Outbound =
|
|
893
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$Outbound;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
export function consumerSecuredLoanConsumerApplicationRelationshipsAssetToJSON(
|
|
897
|
+
consumerSecuredLoanConsumerApplicationRelationshipsAsset:
|
|
898
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAsset,
|
|
899
|
+
): string {
|
|
900
|
+
return JSON.stringify(
|
|
901
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$outboundSchema
|
|
902
|
+
.parse(consumerSecuredLoanConsumerApplicationRelationshipsAsset),
|
|
903
|
+
);
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
export function consumerSecuredLoanConsumerApplicationRelationshipsAssetFromJSON(
|
|
907
|
+
jsonString: string,
|
|
908
|
+
): SafeParseResult<
|
|
909
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAsset,
|
|
910
|
+
SDKValidationError
|
|
911
|
+
> {
|
|
912
|
+
return safeParse(
|
|
913
|
+
jsonString,
|
|
914
|
+
(x) =>
|
|
915
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$inboundSchema
|
|
916
|
+
.parse(JSON.parse(x)),
|
|
917
|
+
`Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsAsset' from JSON`,
|
|
918
|
+
);
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
/** @internal */
|
|
922
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationships$inboundSchema:
|
|
923
|
+
z.ZodType<
|
|
924
|
+
ConsumerSecuredLoanConsumerApplicationRelationships,
|
|
925
|
+
z.ZodTypeDef,
|
|
926
|
+
unknown
|
|
927
|
+
> = z.object({
|
|
928
|
+
loanDetails: z.lazy(() =>
|
|
929
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$inboundSchema
|
|
930
|
+
).optional(),
|
|
931
|
+
customers: z.lazy(() =>
|
|
932
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$inboundSchema
|
|
933
|
+
).optional(),
|
|
934
|
+
asset: z.lazy(() =>
|
|
935
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$inboundSchema
|
|
936
|
+
).optional(),
|
|
937
|
+
});
|
|
938
|
+
|
|
939
|
+
/** @internal */
|
|
940
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationships$Outbound = {
|
|
941
|
+
loanDetails?:
|
|
942
|
+
| ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$Outbound
|
|
943
|
+
| undefined;
|
|
944
|
+
customers?:
|
|
945
|
+
| ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$Outbound
|
|
946
|
+
| undefined;
|
|
947
|
+
asset?:
|
|
948
|
+
| ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$Outbound
|
|
949
|
+
| undefined;
|
|
950
|
+
};
|
|
951
|
+
|
|
952
|
+
/** @internal */
|
|
953
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationships$outboundSchema:
|
|
954
|
+
z.ZodType<
|
|
955
|
+
ConsumerSecuredLoanConsumerApplicationRelationships$Outbound,
|
|
956
|
+
z.ZodTypeDef,
|
|
957
|
+
ConsumerSecuredLoanConsumerApplicationRelationships
|
|
958
|
+
> = z.object({
|
|
959
|
+
loanDetails: z.lazy(() =>
|
|
960
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails$outboundSchema
|
|
961
|
+
).optional(),
|
|
962
|
+
customers: z.lazy(() =>
|
|
963
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers$outboundSchema
|
|
964
|
+
).optional(),
|
|
965
|
+
asset: z.lazy(() =>
|
|
966
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAsset$outboundSchema
|
|
967
|
+
).optional(),
|
|
968
|
+
});
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* @internal
|
|
972
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
973
|
+
*/
|
|
974
|
+
export namespace ConsumerSecuredLoanConsumerApplicationRelationships$ {
|
|
975
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationships$inboundSchema` instead. */
|
|
976
|
+
export const inboundSchema =
|
|
977
|
+
ConsumerSecuredLoanConsumerApplicationRelationships$inboundSchema;
|
|
978
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationships$outboundSchema` instead. */
|
|
979
|
+
export const outboundSchema =
|
|
980
|
+
ConsumerSecuredLoanConsumerApplicationRelationships$outboundSchema;
|
|
981
|
+
/** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationships$Outbound` instead. */
|
|
982
|
+
export type Outbound =
|
|
983
|
+
ConsumerSecuredLoanConsumerApplicationRelationships$Outbound;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
export function consumerSecuredLoanConsumerApplicationRelationshipsToJSON(
|
|
987
|
+
consumerSecuredLoanConsumerApplicationRelationships:
|
|
988
|
+
ConsumerSecuredLoanConsumerApplicationRelationships,
|
|
989
|
+
): string {
|
|
990
|
+
return JSON.stringify(
|
|
991
|
+
ConsumerSecuredLoanConsumerApplicationRelationships$outboundSchema.parse(
|
|
992
|
+
consumerSecuredLoanConsumerApplicationRelationships,
|
|
993
|
+
),
|
|
994
|
+
);
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
export function consumerSecuredLoanConsumerApplicationRelationshipsFromJSON(
|
|
998
|
+
jsonString: string,
|
|
999
|
+
): SafeParseResult<
|
|
1000
|
+
ConsumerSecuredLoanConsumerApplicationRelationships,
|
|
1001
|
+
SDKValidationError
|
|
1002
|
+
> {
|
|
1003
|
+
return safeParse(
|
|
1004
|
+
jsonString,
|
|
1005
|
+
(x) =>
|
|
1006
|
+
ConsumerSecuredLoanConsumerApplicationRelationships$inboundSchema.parse(
|
|
1007
|
+
JSON.parse(x),
|
|
1008
|
+
),
|
|
1009
|
+
`Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationships' from JSON`,
|
|
1010
|
+
);
|
|
1011
|
+
}
|