@financeable/aggregation 0.5.0 → 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/.devcontainer/README.md +1 -1
- 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 +3 -3
- 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 -533
- 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 -1178
- 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,1148 @@
|
|
|
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
|
+
CommercialSecuredLoanAssetAttributes,
|
|
18
|
+
CommercialSecuredLoanAssetAttributes$inboundSchema,
|
|
19
|
+
CommercialSecuredLoanAssetAttributes$Outbound,
|
|
20
|
+
CommercialSecuredLoanAssetAttributes$outboundSchema,
|
|
21
|
+
} from "./commercialsecuredloanassetattributes.js";
|
|
22
|
+
import {
|
|
23
|
+
CustomerAttributes,
|
|
24
|
+
CustomerAttributes$inboundSchema,
|
|
25
|
+
CustomerAttributes$Outbound,
|
|
26
|
+
CustomerAttributes$outboundSchema,
|
|
27
|
+
} from "./customerattributes.js";
|
|
28
|
+
import {
|
|
29
|
+
EntityAttributes,
|
|
30
|
+
EntityAttributes$inboundSchema,
|
|
31
|
+
EntityAttributes$Outbound,
|
|
32
|
+
EntityAttributes$outboundSchema,
|
|
33
|
+
} from "./entityattributes.js";
|
|
34
|
+
import {
|
|
35
|
+
LoanDetailsAttributes,
|
|
36
|
+
LoanDetailsAttributes$inboundSchema,
|
|
37
|
+
LoanDetailsAttributes$Outbound,
|
|
38
|
+
LoanDetailsAttributes$outboundSchema,
|
|
39
|
+
} from "./loandetailsattributes.js";
|
|
40
|
+
|
|
41
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsType = {
|
|
42
|
+
LoanDetails: "loan-details",
|
|
43
|
+
} as const;
|
|
44
|
+
export type CommercialSecuredLoanCommercialApplicationRelationshipsType =
|
|
45
|
+
ClosedEnum<
|
|
46
|
+
typeof CommercialSecuredLoanCommercialApplicationRelationshipsType
|
|
47
|
+
>;
|
|
48
|
+
|
|
49
|
+
export type CommercialSecuredLoanCommercialApplicationRelationshipsData = {
|
|
50
|
+
type: CommercialSecuredLoanCommercialApplicationRelationshipsType;
|
|
51
|
+
/**
|
|
52
|
+
* Loan details model
|
|
53
|
+
*/
|
|
54
|
+
attributes: LoanDetailsAttributes;
|
|
55
|
+
relationships?: any | null | undefined;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export type LoanDetails = {
|
|
59
|
+
data: CommercialSecuredLoanCommercialApplicationRelationshipsData;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType =
|
|
63
|
+
{
|
|
64
|
+
Customers: "customers",
|
|
65
|
+
} as const;
|
|
66
|
+
export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType =
|
|
67
|
+
ClosedEnum<
|
|
68
|
+
typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType
|
|
69
|
+
>;
|
|
70
|
+
|
|
71
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType =
|
|
72
|
+
{
|
|
73
|
+
Addresses: "addresses",
|
|
74
|
+
} as const;
|
|
75
|
+
export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType =
|
|
76
|
+
ClosedEnum<
|
|
77
|
+
typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType
|
|
78
|
+
>;
|
|
79
|
+
|
|
80
|
+
export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData =
|
|
81
|
+
{
|
|
82
|
+
type:
|
|
83
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType;
|
|
84
|
+
attributes: AddressAttributes;
|
|
85
|
+
relationships?: any | null | undefined;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export type Addresses = {
|
|
89
|
+
data: Array<
|
|
90
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData
|
|
91
|
+
>;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export type CommercialSecuredLoanCommercialApplicationRelationshipsRelationships =
|
|
95
|
+
{
|
|
96
|
+
addresses?: Addresses | undefined;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData =
|
|
100
|
+
{
|
|
101
|
+
type: CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType;
|
|
102
|
+
/**
|
|
103
|
+
* A customer of the proposed financing
|
|
104
|
+
*/
|
|
105
|
+
attributes: CustomerAttributes;
|
|
106
|
+
relationships?:
|
|
107
|
+
| CommercialSecuredLoanCommercialApplicationRelationshipsRelationships
|
|
108
|
+
| undefined;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
export type Customers = {
|
|
112
|
+
data: Array<
|
|
113
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
|
|
114
|
+
>;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsAssetType =
|
|
118
|
+
{
|
|
119
|
+
Assets: "assets",
|
|
120
|
+
} as const;
|
|
121
|
+
export type CommercialSecuredLoanCommercialApplicationRelationshipsAssetType =
|
|
122
|
+
ClosedEnum<
|
|
123
|
+
typeof CommercialSecuredLoanCommercialApplicationRelationshipsAssetType
|
|
124
|
+
>;
|
|
125
|
+
|
|
126
|
+
export type CommercialSecuredLoanCommercialApplicationRelationshipsAssetData = {
|
|
127
|
+
type: CommercialSecuredLoanCommercialApplicationRelationshipsAssetType;
|
|
128
|
+
/**
|
|
129
|
+
* Type of asset for secured commercial loans
|
|
130
|
+
*/
|
|
131
|
+
attributes: CommercialSecuredLoanAssetAttributes;
|
|
132
|
+
relationships?: any | null | undefined;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
export type CommercialSecuredLoanCommercialApplicationRelationshipsAsset = {
|
|
136
|
+
data: CommercialSecuredLoanCommercialApplicationRelationshipsAssetData;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType =
|
|
140
|
+
{
|
|
141
|
+
Entities: "entities",
|
|
142
|
+
} as const;
|
|
143
|
+
export type CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType =
|
|
144
|
+
ClosedEnum<
|
|
145
|
+
typeof CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType
|
|
146
|
+
>;
|
|
147
|
+
|
|
148
|
+
export type CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData =
|
|
149
|
+
{
|
|
150
|
+
type: CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType;
|
|
151
|
+
attributes: EntityAttributes;
|
|
152
|
+
relationships?: any | null | undefined;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
export type Entities = {
|
|
156
|
+
data: Array<
|
|
157
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData
|
|
158
|
+
>;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
export type CommercialSecuredLoanCommercialApplicationRelationships = {
|
|
162
|
+
loanDetails?: LoanDetails | undefined;
|
|
163
|
+
customers?: Customers | undefined;
|
|
164
|
+
asset?:
|
|
165
|
+
| CommercialSecuredLoanCommercialApplicationRelationshipsAsset
|
|
166
|
+
| undefined;
|
|
167
|
+
entities?: Entities | undefined;
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
/** @internal */
|
|
171
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsType$inboundSchema:
|
|
172
|
+
z.ZodNativeEnum<
|
|
173
|
+
typeof CommercialSecuredLoanCommercialApplicationRelationshipsType
|
|
174
|
+
> = z.nativeEnum(CommercialSecuredLoanCommercialApplicationRelationshipsType);
|
|
175
|
+
|
|
176
|
+
/** @internal */
|
|
177
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsType$outboundSchema:
|
|
178
|
+
z.ZodNativeEnum<
|
|
179
|
+
typeof CommercialSecuredLoanCommercialApplicationRelationshipsType
|
|
180
|
+
> = CommercialSecuredLoanCommercialApplicationRelationshipsType$inboundSchema;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* @internal
|
|
184
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
185
|
+
*/
|
|
186
|
+
export namespace CommercialSecuredLoanCommercialApplicationRelationshipsType$ {
|
|
187
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsType$inboundSchema` instead. */
|
|
188
|
+
export const inboundSchema =
|
|
189
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsType$inboundSchema;
|
|
190
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsType$outboundSchema` instead. */
|
|
191
|
+
export const outboundSchema =
|
|
192
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsType$outboundSchema;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/** @internal */
|
|
196
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsData$inboundSchema:
|
|
197
|
+
z.ZodType<
|
|
198
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsData,
|
|
199
|
+
z.ZodTypeDef,
|
|
200
|
+
unknown
|
|
201
|
+
> = z.object({
|
|
202
|
+
type:
|
|
203
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsType$inboundSchema,
|
|
204
|
+
attributes: LoanDetailsAttributes$inboundSchema,
|
|
205
|
+
relationships: z.nullable(z.any()).optional(),
|
|
206
|
+
});
|
|
207
|
+
|
|
208
|
+
/** @internal */
|
|
209
|
+
export type CommercialSecuredLoanCommercialApplicationRelationshipsData$Outbound =
|
|
210
|
+
{
|
|
211
|
+
type: string;
|
|
212
|
+
attributes: LoanDetailsAttributes$Outbound;
|
|
213
|
+
relationships?: any | null | undefined;
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
/** @internal */
|
|
217
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsData$outboundSchema:
|
|
218
|
+
z.ZodType<
|
|
219
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsData$Outbound,
|
|
220
|
+
z.ZodTypeDef,
|
|
221
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsData
|
|
222
|
+
> = z.object({
|
|
223
|
+
type:
|
|
224
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsType$outboundSchema,
|
|
225
|
+
attributes: LoanDetailsAttributes$outboundSchema,
|
|
226
|
+
relationships: z.nullable(z.any()).optional(),
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* @internal
|
|
231
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
232
|
+
*/
|
|
233
|
+
export namespace CommercialSecuredLoanCommercialApplicationRelationshipsData$ {
|
|
234
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsData$inboundSchema` instead. */
|
|
235
|
+
export const inboundSchema =
|
|
236
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsData$inboundSchema;
|
|
237
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsData$outboundSchema` instead. */
|
|
238
|
+
export const outboundSchema =
|
|
239
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsData$outboundSchema;
|
|
240
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsData$Outbound` instead. */
|
|
241
|
+
export type Outbound =
|
|
242
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsData$Outbound;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export function commercialSecuredLoanCommercialApplicationRelationshipsDataToJSON(
|
|
246
|
+
commercialSecuredLoanCommercialApplicationRelationshipsData:
|
|
247
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsData,
|
|
248
|
+
): string {
|
|
249
|
+
return JSON.stringify(
|
|
250
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsData$outboundSchema
|
|
251
|
+
.parse(commercialSecuredLoanCommercialApplicationRelationshipsData),
|
|
252
|
+
);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export function commercialSecuredLoanCommercialApplicationRelationshipsDataFromJSON(
|
|
256
|
+
jsonString: string,
|
|
257
|
+
): SafeParseResult<
|
|
258
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsData,
|
|
259
|
+
SDKValidationError
|
|
260
|
+
> {
|
|
261
|
+
return safeParse(
|
|
262
|
+
jsonString,
|
|
263
|
+
(x) =>
|
|
264
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsData$inboundSchema
|
|
265
|
+
.parse(JSON.parse(x)),
|
|
266
|
+
`Failed to parse 'CommercialSecuredLoanCommercialApplicationRelationshipsData' from JSON`,
|
|
267
|
+
);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/** @internal */
|
|
271
|
+
export const LoanDetails$inboundSchema: z.ZodType<
|
|
272
|
+
LoanDetails,
|
|
273
|
+
z.ZodTypeDef,
|
|
274
|
+
unknown
|
|
275
|
+
> = z.object({
|
|
276
|
+
data: z.lazy(() =>
|
|
277
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsData$inboundSchema
|
|
278
|
+
),
|
|
279
|
+
});
|
|
280
|
+
|
|
281
|
+
/** @internal */
|
|
282
|
+
export type LoanDetails$Outbound = {
|
|
283
|
+
data: CommercialSecuredLoanCommercialApplicationRelationshipsData$Outbound;
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
/** @internal */
|
|
287
|
+
export const LoanDetails$outboundSchema: z.ZodType<
|
|
288
|
+
LoanDetails$Outbound,
|
|
289
|
+
z.ZodTypeDef,
|
|
290
|
+
LoanDetails
|
|
291
|
+
> = z.object({
|
|
292
|
+
data: z.lazy(() =>
|
|
293
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsData$outboundSchema
|
|
294
|
+
),
|
|
295
|
+
});
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* @internal
|
|
299
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
300
|
+
*/
|
|
301
|
+
export namespace LoanDetails$ {
|
|
302
|
+
/** @deprecated use `LoanDetails$inboundSchema` instead. */
|
|
303
|
+
export const inboundSchema = LoanDetails$inboundSchema;
|
|
304
|
+
/** @deprecated use `LoanDetails$outboundSchema` instead. */
|
|
305
|
+
export const outboundSchema = LoanDetails$outboundSchema;
|
|
306
|
+
/** @deprecated use `LoanDetails$Outbound` instead. */
|
|
307
|
+
export type Outbound = LoanDetails$Outbound;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
export function loanDetailsToJSON(loanDetails: LoanDetails): string {
|
|
311
|
+
return JSON.stringify(LoanDetails$outboundSchema.parse(loanDetails));
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export function loanDetailsFromJSON(
|
|
315
|
+
jsonString: string,
|
|
316
|
+
): SafeParseResult<LoanDetails, SDKValidationError> {
|
|
317
|
+
return safeParse(
|
|
318
|
+
jsonString,
|
|
319
|
+
(x) => LoanDetails$inboundSchema.parse(JSON.parse(x)),
|
|
320
|
+
`Failed to parse 'LoanDetails' from JSON`,
|
|
321
|
+
);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/** @internal */
|
|
325
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$inboundSchema:
|
|
326
|
+
z.ZodNativeEnum<
|
|
327
|
+
typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType
|
|
328
|
+
> = z.nativeEnum(
|
|
329
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType,
|
|
330
|
+
);
|
|
331
|
+
|
|
332
|
+
/** @internal */
|
|
333
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$outboundSchema:
|
|
334
|
+
z.ZodNativeEnum<
|
|
335
|
+
typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType
|
|
336
|
+
> =
|
|
337
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$inboundSchema;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* @internal
|
|
341
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
342
|
+
*/
|
|
343
|
+
export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$ {
|
|
344
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$inboundSchema` instead. */
|
|
345
|
+
export const inboundSchema =
|
|
346
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$inboundSchema;
|
|
347
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$outboundSchema` instead. */
|
|
348
|
+
export const outboundSchema =
|
|
349
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$outboundSchema;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/** @internal */
|
|
353
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$inboundSchema:
|
|
354
|
+
z.ZodNativeEnum<
|
|
355
|
+
typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType
|
|
356
|
+
> = z.nativeEnum(
|
|
357
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType,
|
|
358
|
+
);
|
|
359
|
+
|
|
360
|
+
/** @internal */
|
|
361
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$outboundSchema:
|
|
362
|
+
z.ZodNativeEnum<
|
|
363
|
+
typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType
|
|
364
|
+
> =
|
|
365
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$inboundSchema;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* @internal
|
|
369
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
370
|
+
*/
|
|
371
|
+
export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$ {
|
|
372
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$inboundSchema` instead. */
|
|
373
|
+
export const inboundSchema =
|
|
374
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$inboundSchema;
|
|
375
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$outboundSchema` instead. */
|
|
376
|
+
export const outboundSchema =
|
|
377
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$outboundSchema;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/** @internal */
|
|
381
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$inboundSchema:
|
|
382
|
+
z.ZodType<
|
|
383
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData,
|
|
384
|
+
z.ZodTypeDef,
|
|
385
|
+
unknown
|
|
386
|
+
> = z.object({
|
|
387
|
+
type:
|
|
388
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$inboundSchema,
|
|
389
|
+
attributes: AddressAttributes$inboundSchema,
|
|
390
|
+
relationships: z.nullable(z.any()).optional(),
|
|
391
|
+
});
|
|
392
|
+
|
|
393
|
+
/** @internal */
|
|
394
|
+
export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$Outbound =
|
|
395
|
+
{
|
|
396
|
+
type: string;
|
|
397
|
+
attributes: AddressAttributes$Outbound;
|
|
398
|
+
relationships?: any | null | undefined;
|
|
399
|
+
};
|
|
400
|
+
|
|
401
|
+
/** @internal */
|
|
402
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$outboundSchema:
|
|
403
|
+
z.ZodType<
|
|
404
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$Outbound,
|
|
405
|
+
z.ZodTypeDef,
|
|
406
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData
|
|
407
|
+
> = z.object({
|
|
408
|
+
type:
|
|
409
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$outboundSchema,
|
|
410
|
+
attributes: AddressAttributes$outboundSchema,
|
|
411
|
+
relationships: z.nullable(z.any()).optional(),
|
|
412
|
+
});
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* @internal
|
|
416
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
417
|
+
*/
|
|
418
|
+
export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$ {
|
|
419
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$inboundSchema` instead. */
|
|
420
|
+
export const inboundSchema =
|
|
421
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$inboundSchema;
|
|
422
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$outboundSchema` instead. */
|
|
423
|
+
export const outboundSchema =
|
|
424
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$outboundSchema;
|
|
425
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$Outbound` instead. */
|
|
426
|
+
export type Outbound =
|
|
427
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$Outbound;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export function commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataDataToJSON(
|
|
431
|
+
commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData:
|
|
432
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData,
|
|
433
|
+
): string {
|
|
434
|
+
return JSON.stringify(
|
|
435
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$outboundSchema
|
|
436
|
+
.parse(
|
|
437
|
+
commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData,
|
|
438
|
+
),
|
|
439
|
+
);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
export function commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataDataFromJSON(
|
|
443
|
+
jsonString: string,
|
|
444
|
+
): SafeParseResult<
|
|
445
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData,
|
|
446
|
+
SDKValidationError
|
|
447
|
+
> {
|
|
448
|
+
return safeParse(
|
|
449
|
+
jsonString,
|
|
450
|
+
(x) =>
|
|
451
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$inboundSchema
|
|
452
|
+
.parse(JSON.parse(x)),
|
|
453
|
+
`Failed to parse 'CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData' from JSON`,
|
|
454
|
+
);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
/** @internal */
|
|
458
|
+
export const Addresses$inboundSchema: z.ZodType<
|
|
459
|
+
Addresses,
|
|
460
|
+
z.ZodTypeDef,
|
|
461
|
+
unknown
|
|
462
|
+
> = z.object({
|
|
463
|
+
data: z.array(
|
|
464
|
+
z.lazy(() =>
|
|
465
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$inboundSchema
|
|
466
|
+
),
|
|
467
|
+
),
|
|
468
|
+
});
|
|
469
|
+
|
|
470
|
+
/** @internal */
|
|
471
|
+
export type Addresses$Outbound = {
|
|
472
|
+
data: Array<
|
|
473
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$Outbound
|
|
474
|
+
>;
|
|
475
|
+
};
|
|
476
|
+
|
|
477
|
+
/** @internal */
|
|
478
|
+
export const Addresses$outboundSchema: z.ZodType<
|
|
479
|
+
Addresses$Outbound,
|
|
480
|
+
z.ZodTypeDef,
|
|
481
|
+
Addresses
|
|
482
|
+
> = z.object({
|
|
483
|
+
data: z.array(
|
|
484
|
+
z.lazy(() =>
|
|
485
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$outboundSchema
|
|
486
|
+
),
|
|
487
|
+
),
|
|
488
|
+
});
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* @internal
|
|
492
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
493
|
+
*/
|
|
494
|
+
export namespace Addresses$ {
|
|
495
|
+
/** @deprecated use `Addresses$inboundSchema` instead. */
|
|
496
|
+
export const inboundSchema = Addresses$inboundSchema;
|
|
497
|
+
/** @deprecated use `Addresses$outboundSchema` instead. */
|
|
498
|
+
export const outboundSchema = Addresses$outboundSchema;
|
|
499
|
+
/** @deprecated use `Addresses$Outbound` instead. */
|
|
500
|
+
export type Outbound = Addresses$Outbound;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
export function addressesToJSON(addresses: Addresses): string {
|
|
504
|
+
return JSON.stringify(Addresses$outboundSchema.parse(addresses));
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
export function addressesFromJSON(
|
|
508
|
+
jsonString: string,
|
|
509
|
+
): SafeParseResult<Addresses, SDKValidationError> {
|
|
510
|
+
return safeParse(
|
|
511
|
+
jsonString,
|
|
512
|
+
(x) => Addresses$inboundSchema.parse(JSON.parse(x)),
|
|
513
|
+
`Failed to parse 'Addresses' from JSON`,
|
|
514
|
+
);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
/** @internal */
|
|
518
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$inboundSchema:
|
|
519
|
+
z.ZodType<
|
|
520
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships,
|
|
521
|
+
z.ZodTypeDef,
|
|
522
|
+
unknown
|
|
523
|
+
> = z.object({
|
|
524
|
+
addresses: z.lazy(() => Addresses$inboundSchema).optional(),
|
|
525
|
+
});
|
|
526
|
+
|
|
527
|
+
/** @internal */
|
|
528
|
+
export type CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$Outbound =
|
|
529
|
+
{
|
|
530
|
+
addresses?: Addresses$Outbound | undefined;
|
|
531
|
+
};
|
|
532
|
+
|
|
533
|
+
/** @internal */
|
|
534
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$outboundSchema:
|
|
535
|
+
z.ZodType<
|
|
536
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$Outbound,
|
|
537
|
+
z.ZodTypeDef,
|
|
538
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships
|
|
539
|
+
> = z.object({
|
|
540
|
+
addresses: z.lazy(() => Addresses$outboundSchema).optional(),
|
|
541
|
+
});
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* @internal
|
|
545
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
546
|
+
*/
|
|
547
|
+
export namespace CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$ {
|
|
548
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$inboundSchema` instead. */
|
|
549
|
+
export const inboundSchema =
|
|
550
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$inboundSchema;
|
|
551
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$outboundSchema` instead. */
|
|
552
|
+
export const outboundSchema =
|
|
553
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$outboundSchema;
|
|
554
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$Outbound` instead. */
|
|
555
|
+
export type Outbound =
|
|
556
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$Outbound;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
export function commercialSecuredLoanCommercialApplicationRelationshipsRelationshipsToJSON(
|
|
560
|
+
commercialSecuredLoanCommercialApplicationRelationshipsRelationships:
|
|
561
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships,
|
|
562
|
+
): string {
|
|
563
|
+
return JSON.stringify(
|
|
564
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$outboundSchema
|
|
565
|
+
.parse(
|
|
566
|
+
commercialSecuredLoanCommercialApplicationRelationshipsRelationships,
|
|
567
|
+
),
|
|
568
|
+
);
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
export function commercialSecuredLoanCommercialApplicationRelationshipsRelationshipsFromJSON(
|
|
572
|
+
jsonString: string,
|
|
573
|
+
): SafeParseResult<
|
|
574
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships,
|
|
575
|
+
SDKValidationError
|
|
576
|
+
> {
|
|
577
|
+
return safeParse(
|
|
578
|
+
jsonString,
|
|
579
|
+
(x) =>
|
|
580
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$inboundSchema
|
|
581
|
+
.parse(JSON.parse(x)),
|
|
582
|
+
`Failed to parse 'CommercialSecuredLoanCommercialApplicationRelationshipsRelationships' from JSON`,
|
|
583
|
+
);
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
/** @internal */
|
|
587
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$inboundSchema:
|
|
588
|
+
z.ZodType<
|
|
589
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData,
|
|
590
|
+
z.ZodTypeDef,
|
|
591
|
+
unknown
|
|
592
|
+
> = z.object({
|
|
593
|
+
type:
|
|
594
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$inboundSchema,
|
|
595
|
+
attributes: CustomerAttributes$inboundSchema,
|
|
596
|
+
relationships: z.lazy(() =>
|
|
597
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$inboundSchema
|
|
598
|
+
).optional(),
|
|
599
|
+
});
|
|
600
|
+
|
|
601
|
+
/** @internal */
|
|
602
|
+
export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$Outbound =
|
|
603
|
+
{
|
|
604
|
+
type: string;
|
|
605
|
+
attributes: CustomerAttributes$Outbound;
|
|
606
|
+
relationships?:
|
|
607
|
+
| CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$Outbound
|
|
608
|
+
| undefined;
|
|
609
|
+
};
|
|
610
|
+
|
|
611
|
+
/** @internal */
|
|
612
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$outboundSchema:
|
|
613
|
+
z.ZodType<
|
|
614
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$Outbound,
|
|
615
|
+
z.ZodTypeDef,
|
|
616
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
|
|
617
|
+
> = z.object({
|
|
618
|
+
type:
|
|
619
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$outboundSchema,
|
|
620
|
+
attributes: CustomerAttributes$outboundSchema,
|
|
621
|
+
relationships: z.lazy(() =>
|
|
622
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$outboundSchema
|
|
623
|
+
).optional(),
|
|
624
|
+
});
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* @internal
|
|
628
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
629
|
+
*/
|
|
630
|
+
export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$ {
|
|
631
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$inboundSchema` instead. */
|
|
632
|
+
export const inboundSchema =
|
|
633
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$inboundSchema;
|
|
634
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$outboundSchema` instead. */
|
|
635
|
+
export const outboundSchema =
|
|
636
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$outboundSchema;
|
|
637
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$Outbound` instead. */
|
|
638
|
+
export type Outbound =
|
|
639
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$Outbound;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
export function commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataToJSON(
|
|
643
|
+
commercialSecuredLoanCommercialApplicationRelationshipsCustomersData:
|
|
644
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData,
|
|
645
|
+
): string {
|
|
646
|
+
return JSON.stringify(
|
|
647
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$outboundSchema
|
|
648
|
+
.parse(
|
|
649
|
+
commercialSecuredLoanCommercialApplicationRelationshipsCustomersData,
|
|
650
|
+
),
|
|
651
|
+
);
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
export function commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataFromJSON(
|
|
655
|
+
jsonString: string,
|
|
656
|
+
): SafeParseResult<
|
|
657
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData,
|
|
658
|
+
SDKValidationError
|
|
659
|
+
> {
|
|
660
|
+
return safeParse(
|
|
661
|
+
jsonString,
|
|
662
|
+
(x) =>
|
|
663
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$inboundSchema
|
|
664
|
+
.parse(JSON.parse(x)),
|
|
665
|
+
`Failed to parse 'CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData' from JSON`,
|
|
666
|
+
);
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
/** @internal */
|
|
670
|
+
export const Customers$inboundSchema: z.ZodType<
|
|
671
|
+
Customers,
|
|
672
|
+
z.ZodTypeDef,
|
|
673
|
+
unknown
|
|
674
|
+
> = z.object({
|
|
675
|
+
data: z.array(
|
|
676
|
+
z.lazy(() =>
|
|
677
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$inboundSchema
|
|
678
|
+
),
|
|
679
|
+
),
|
|
680
|
+
});
|
|
681
|
+
|
|
682
|
+
/** @internal */
|
|
683
|
+
export type Customers$Outbound = {
|
|
684
|
+
data: Array<
|
|
685
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$Outbound
|
|
686
|
+
>;
|
|
687
|
+
};
|
|
688
|
+
|
|
689
|
+
/** @internal */
|
|
690
|
+
export const Customers$outboundSchema: z.ZodType<
|
|
691
|
+
Customers$Outbound,
|
|
692
|
+
z.ZodTypeDef,
|
|
693
|
+
Customers
|
|
694
|
+
> = z.object({
|
|
695
|
+
data: z.array(
|
|
696
|
+
z.lazy(() =>
|
|
697
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$outboundSchema
|
|
698
|
+
),
|
|
699
|
+
),
|
|
700
|
+
});
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* @internal
|
|
704
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
705
|
+
*/
|
|
706
|
+
export namespace Customers$ {
|
|
707
|
+
/** @deprecated use `Customers$inboundSchema` instead. */
|
|
708
|
+
export const inboundSchema = Customers$inboundSchema;
|
|
709
|
+
/** @deprecated use `Customers$outboundSchema` instead. */
|
|
710
|
+
export const outboundSchema = Customers$outboundSchema;
|
|
711
|
+
/** @deprecated use `Customers$Outbound` instead. */
|
|
712
|
+
export type Outbound = Customers$Outbound;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
export function customersToJSON(customers: Customers): string {
|
|
716
|
+
return JSON.stringify(Customers$outboundSchema.parse(customers));
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
export function customersFromJSON(
|
|
720
|
+
jsonString: string,
|
|
721
|
+
): SafeParseResult<Customers, SDKValidationError> {
|
|
722
|
+
return safeParse(
|
|
723
|
+
jsonString,
|
|
724
|
+
(x) => Customers$inboundSchema.parse(JSON.parse(x)),
|
|
725
|
+
`Failed to parse 'Customers' from JSON`,
|
|
726
|
+
);
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
/** @internal */
|
|
730
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$inboundSchema:
|
|
731
|
+
z.ZodNativeEnum<
|
|
732
|
+
typeof CommercialSecuredLoanCommercialApplicationRelationshipsAssetType
|
|
733
|
+
> = z.nativeEnum(
|
|
734
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAssetType,
|
|
735
|
+
);
|
|
736
|
+
|
|
737
|
+
/** @internal */
|
|
738
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$outboundSchema:
|
|
739
|
+
z.ZodNativeEnum<
|
|
740
|
+
typeof CommercialSecuredLoanCommercialApplicationRelationshipsAssetType
|
|
741
|
+
> =
|
|
742
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$inboundSchema;
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* @internal
|
|
746
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
747
|
+
*/
|
|
748
|
+
export namespace CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$ {
|
|
749
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$inboundSchema` instead. */
|
|
750
|
+
export const inboundSchema =
|
|
751
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$inboundSchema;
|
|
752
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$outboundSchema` instead. */
|
|
753
|
+
export const outboundSchema =
|
|
754
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$outboundSchema;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
/** @internal */
|
|
758
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$inboundSchema:
|
|
759
|
+
z.ZodType<
|
|
760
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAssetData,
|
|
761
|
+
z.ZodTypeDef,
|
|
762
|
+
unknown
|
|
763
|
+
> = z.object({
|
|
764
|
+
type:
|
|
765
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$inboundSchema,
|
|
766
|
+
attributes: CommercialSecuredLoanAssetAttributes$inboundSchema,
|
|
767
|
+
relationships: z.nullable(z.any()).optional(),
|
|
768
|
+
});
|
|
769
|
+
|
|
770
|
+
/** @internal */
|
|
771
|
+
export type CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$Outbound =
|
|
772
|
+
{
|
|
773
|
+
type: string;
|
|
774
|
+
attributes: CommercialSecuredLoanAssetAttributes$Outbound;
|
|
775
|
+
relationships?: any | null | undefined;
|
|
776
|
+
};
|
|
777
|
+
|
|
778
|
+
/** @internal */
|
|
779
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$outboundSchema:
|
|
780
|
+
z.ZodType<
|
|
781
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$Outbound,
|
|
782
|
+
z.ZodTypeDef,
|
|
783
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAssetData
|
|
784
|
+
> = z.object({
|
|
785
|
+
type:
|
|
786
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$outboundSchema,
|
|
787
|
+
attributes: CommercialSecuredLoanAssetAttributes$outboundSchema,
|
|
788
|
+
relationships: z.nullable(z.any()).optional(),
|
|
789
|
+
});
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* @internal
|
|
793
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
794
|
+
*/
|
|
795
|
+
export namespace CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$ {
|
|
796
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$inboundSchema` instead. */
|
|
797
|
+
export const inboundSchema =
|
|
798
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$inboundSchema;
|
|
799
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$outboundSchema` instead. */
|
|
800
|
+
export const outboundSchema =
|
|
801
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$outboundSchema;
|
|
802
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$Outbound` instead. */
|
|
803
|
+
export type Outbound =
|
|
804
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$Outbound;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
export function commercialSecuredLoanCommercialApplicationRelationshipsAssetDataToJSON(
|
|
808
|
+
commercialSecuredLoanCommercialApplicationRelationshipsAssetData:
|
|
809
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAssetData,
|
|
810
|
+
): string {
|
|
811
|
+
return JSON.stringify(
|
|
812
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$outboundSchema
|
|
813
|
+
.parse(commercialSecuredLoanCommercialApplicationRelationshipsAssetData),
|
|
814
|
+
);
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
export function commercialSecuredLoanCommercialApplicationRelationshipsAssetDataFromJSON(
|
|
818
|
+
jsonString: string,
|
|
819
|
+
): SafeParseResult<
|
|
820
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAssetData,
|
|
821
|
+
SDKValidationError
|
|
822
|
+
> {
|
|
823
|
+
return safeParse(
|
|
824
|
+
jsonString,
|
|
825
|
+
(x) =>
|
|
826
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$inboundSchema
|
|
827
|
+
.parse(JSON.parse(x)),
|
|
828
|
+
`Failed to parse 'CommercialSecuredLoanCommercialApplicationRelationshipsAssetData' from JSON`,
|
|
829
|
+
);
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
/** @internal */
|
|
833
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsAsset$inboundSchema:
|
|
834
|
+
z.ZodType<
|
|
835
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAsset,
|
|
836
|
+
z.ZodTypeDef,
|
|
837
|
+
unknown
|
|
838
|
+
> = z.object({
|
|
839
|
+
data: z.lazy(() =>
|
|
840
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$inboundSchema
|
|
841
|
+
),
|
|
842
|
+
});
|
|
843
|
+
|
|
844
|
+
/** @internal */
|
|
845
|
+
export type CommercialSecuredLoanCommercialApplicationRelationshipsAsset$Outbound =
|
|
846
|
+
{
|
|
847
|
+
data:
|
|
848
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$Outbound;
|
|
849
|
+
};
|
|
850
|
+
|
|
851
|
+
/** @internal */
|
|
852
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsAsset$outboundSchema:
|
|
853
|
+
z.ZodType<
|
|
854
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAsset$Outbound,
|
|
855
|
+
z.ZodTypeDef,
|
|
856
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAsset
|
|
857
|
+
> = z.object({
|
|
858
|
+
data: z.lazy(() =>
|
|
859
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$outboundSchema
|
|
860
|
+
),
|
|
861
|
+
});
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* @internal
|
|
865
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
866
|
+
*/
|
|
867
|
+
export namespace CommercialSecuredLoanCommercialApplicationRelationshipsAsset$ {
|
|
868
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsAsset$inboundSchema` instead. */
|
|
869
|
+
export const inboundSchema =
|
|
870
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAsset$inboundSchema;
|
|
871
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsAsset$outboundSchema` instead. */
|
|
872
|
+
export const outboundSchema =
|
|
873
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAsset$outboundSchema;
|
|
874
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsAsset$Outbound` instead. */
|
|
875
|
+
export type Outbound =
|
|
876
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAsset$Outbound;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
export function commercialSecuredLoanCommercialApplicationRelationshipsAssetToJSON(
|
|
880
|
+
commercialSecuredLoanCommercialApplicationRelationshipsAsset:
|
|
881
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAsset,
|
|
882
|
+
): string {
|
|
883
|
+
return JSON.stringify(
|
|
884
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAsset$outboundSchema
|
|
885
|
+
.parse(commercialSecuredLoanCommercialApplicationRelationshipsAsset),
|
|
886
|
+
);
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
export function commercialSecuredLoanCommercialApplicationRelationshipsAssetFromJSON(
|
|
890
|
+
jsonString: string,
|
|
891
|
+
): SafeParseResult<
|
|
892
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAsset,
|
|
893
|
+
SDKValidationError
|
|
894
|
+
> {
|
|
895
|
+
return safeParse(
|
|
896
|
+
jsonString,
|
|
897
|
+
(x) =>
|
|
898
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAsset$inboundSchema
|
|
899
|
+
.parse(JSON.parse(x)),
|
|
900
|
+
`Failed to parse 'CommercialSecuredLoanCommercialApplicationRelationshipsAsset' from JSON`,
|
|
901
|
+
);
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
/** @internal */
|
|
905
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$inboundSchema:
|
|
906
|
+
z.ZodNativeEnum<
|
|
907
|
+
typeof CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType
|
|
908
|
+
> = z.nativeEnum(
|
|
909
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType,
|
|
910
|
+
);
|
|
911
|
+
|
|
912
|
+
/** @internal */
|
|
913
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$outboundSchema:
|
|
914
|
+
z.ZodNativeEnum<
|
|
915
|
+
typeof CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType
|
|
916
|
+
> =
|
|
917
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$inboundSchema;
|
|
918
|
+
|
|
919
|
+
/**
|
|
920
|
+
* @internal
|
|
921
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
922
|
+
*/
|
|
923
|
+
export namespace CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$ {
|
|
924
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$inboundSchema` instead. */
|
|
925
|
+
export const inboundSchema =
|
|
926
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$inboundSchema;
|
|
927
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$outboundSchema` instead. */
|
|
928
|
+
export const outboundSchema =
|
|
929
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$outboundSchema;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
/** @internal */
|
|
933
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData$inboundSchema:
|
|
934
|
+
z.ZodType<
|
|
935
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData,
|
|
936
|
+
z.ZodTypeDef,
|
|
937
|
+
unknown
|
|
938
|
+
> = z.object({
|
|
939
|
+
type:
|
|
940
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$inboundSchema,
|
|
941
|
+
attributes: EntityAttributes$inboundSchema,
|
|
942
|
+
relationships: z.nullable(z.any()).optional(),
|
|
943
|
+
});
|
|
944
|
+
|
|
945
|
+
/** @internal */
|
|
946
|
+
export type CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData$Outbound =
|
|
947
|
+
{
|
|
948
|
+
type: string;
|
|
949
|
+
attributes: EntityAttributes$Outbound;
|
|
950
|
+
relationships?: any | null | undefined;
|
|
951
|
+
};
|
|
952
|
+
|
|
953
|
+
/** @internal */
|
|
954
|
+
export const CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData$outboundSchema:
|
|
955
|
+
z.ZodType<
|
|
956
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData$Outbound,
|
|
957
|
+
z.ZodTypeDef,
|
|
958
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData
|
|
959
|
+
> = z.object({
|
|
960
|
+
type:
|
|
961
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$outboundSchema,
|
|
962
|
+
attributes: EntityAttributes$outboundSchema,
|
|
963
|
+
relationships: z.nullable(z.any()).optional(),
|
|
964
|
+
});
|
|
965
|
+
|
|
966
|
+
/**
|
|
967
|
+
* @internal
|
|
968
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
969
|
+
*/
|
|
970
|
+
export namespace CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData$ {
|
|
971
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData$inboundSchema` instead. */
|
|
972
|
+
export const inboundSchema =
|
|
973
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData$inboundSchema;
|
|
974
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData$outboundSchema` instead. */
|
|
975
|
+
export const outboundSchema =
|
|
976
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData$outboundSchema;
|
|
977
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData$Outbound` instead. */
|
|
978
|
+
export type Outbound =
|
|
979
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData$Outbound;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
export function commercialSecuredLoanCommercialApplicationRelationshipsEntitiesDataToJSON(
|
|
983
|
+
commercialSecuredLoanCommercialApplicationRelationshipsEntitiesData:
|
|
984
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData,
|
|
985
|
+
): string {
|
|
986
|
+
return JSON.stringify(
|
|
987
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData$outboundSchema
|
|
988
|
+
.parse(
|
|
989
|
+
commercialSecuredLoanCommercialApplicationRelationshipsEntitiesData,
|
|
990
|
+
),
|
|
991
|
+
);
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
export function commercialSecuredLoanCommercialApplicationRelationshipsEntitiesDataFromJSON(
|
|
995
|
+
jsonString: string,
|
|
996
|
+
): SafeParseResult<
|
|
997
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData,
|
|
998
|
+
SDKValidationError
|
|
999
|
+
> {
|
|
1000
|
+
return safeParse(
|
|
1001
|
+
jsonString,
|
|
1002
|
+
(x) =>
|
|
1003
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData$inboundSchema
|
|
1004
|
+
.parse(JSON.parse(x)),
|
|
1005
|
+
`Failed to parse 'CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData' from JSON`,
|
|
1006
|
+
);
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
/** @internal */
|
|
1010
|
+
export const Entities$inboundSchema: z.ZodType<
|
|
1011
|
+
Entities,
|
|
1012
|
+
z.ZodTypeDef,
|
|
1013
|
+
unknown
|
|
1014
|
+
> = z.object({
|
|
1015
|
+
data: z.array(
|
|
1016
|
+
z.lazy(() =>
|
|
1017
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData$inboundSchema
|
|
1018
|
+
),
|
|
1019
|
+
),
|
|
1020
|
+
});
|
|
1021
|
+
|
|
1022
|
+
/** @internal */
|
|
1023
|
+
export type Entities$Outbound = {
|
|
1024
|
+
data: Array<
|
|
1025
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData$Outbound
|
|
1026
|
+
>;
|
|
1027
|
+
};
|
|
1028
|
+
|
|
1029
|
+
/** @internal */
|
|
1030
|
+
export const Entities$outboundSchema: z.ZodType<
|
|
1031
|
+
Entities$Outbound,
|
|
1032
|
+
z.ZodTypeDef,
|
|
1033
|
+
Entities
|
|
1034
|
+
> = z.object({
|
|
1035
|
+
data: z.array(
|
|
1036
|
+
z.lazy(() =>
|
|
1037
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData$outboundSchema
|
|
1038
|
+
),
|
|
1039
|
+
),
|
|
1040
|
+
});
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* @internal
|
|
1044
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1045
|
+
*/
|
|
1046
|
+
export namespace Entities$ {
|
|
1047
|
+
/** @deprecated use `Entities$inboundSchema` instead. */
|
|
1048
|
+
export const inboundSchema = Entities$inboundSchema;
|
|
1049
|
+
/** @deprecated use `Entities$outboundSchema` instead. */
|
|
1050
|
+
export const outboundSchema = Entities$outboundSchema;
|
|
1051
|
+
/** @deprecated use `Entities$Outbound` instead. */
|
|
1052
|
+
export type Outbound = Entities$Outbound;
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
export function entitiesToJSON(entities: Entities): string {
|
|
1056
|
+
return JSON.stringify(Entities$outboundSchema.parse(entities));
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
export function entitiesFromJSON(
|
|
1060
|
+
jsonString: string,
|
|
1061
|
+
): SafeParseResult<Entities, SDKValidationError> {
|
|
1062
|
+
return safeParse(
|
|
1063
|
+
jsonString,
|
|
1064
|
+
(x) => Entities$inboundSchema.parse(JSON.parse(x)),
|
|
1065
|
+
`Failed to parse 'Entities' from JSON`,
|
|
1066
|
+
);
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
/** @internal */
|
|
1070
|
+
export const CommercialSecuredLoanCommercialApplicationRelationships$inboundSchema:
|
|
1071
|
+
z.ZodType<
|
|
1072
|
+
CommercialSecuredLoanCommercialApplicationRelationships,
|
|
1073
|
+
z.ZodTypeDef,
|
|
1074
|
+
unknown
|
|
1075
|
+
> = z.object({
|
|
1076
|
+
loanDetails: z.lazy(() => LoanDetails$inboundSchema).optional(),
|
|
1077
|
+
customers: z.lazy(() => Customers$inboundSchema).optional(),
|
|
1078
|
+
asset: z.lazy(() =>
|
|
1079
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAsset$inboundSchema
|
|
1080
|
+
).optional(),
|
|
1081
|
+
entities: z.lazy(() => Entities$inboundSchema).optional(),
|
|
1082
|
+
});
|
|
1083
|
+
|
|
1084
|
+
/** @internal */
|
|
1085
|
+
export type CommercialSecuredLoanCommercialApplicationRelationships$Outbound = {
|
|
1086
|
+
loanDetails?: LoanDetails$Outbound | undefined;
|
|
1087
|
+
customers?: Customers$Outbound | undefined;
|
|
1088
|
+
asset?:
|
|
1089
|
+
| CommercialSecuredLoanCommercialApplicationRelationshipsAsset$Outbound
|
|
1090
|
+
| undefined;
|
|
1091
|
+
entities?: Entities$Outbound | undefined;
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1094
|
+
/** @internal */
|
|
1095
|
+
export const CommercialSecuredLoanCommercialApplicationRelationships$outboundSchema:
|
|
1096
|
+
z.ZodType<
|
|
1097
|
+
CommercialSecuredLoanCommercialApplicationRelationships$Outbound,
|
|
1098
|
+
z.ZodTypeDef,
|
|
1099
|
+
CommercialSecuredLoanCommercialApplicationRelationships
|
|
1100
|
+
> = z.object({
|
|
1101
|
+
loanDetails: z.lazy(() => LoanDetails$outboundSchema).optional(),
|
|
1102
|
+
customers: z.lazy(() => Customers$outboundSchema).optional(),
|
|
1103
|
+
asset: z.lazy(() =>
|
|
1104
|
+
CommercialSecuredLoanCommercialApplicationRelationshipsAsset$outboundSchema
|
|
1105
|
+
).optional(),
|
|
1106
|
+
entities: z.lazy(() => Entities$outboundSchema).optional(),
|
|
1107
|
+
});
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
* @internal
|
|
1111
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1112
|
+
*/
|
|
1113
|
+
export namespace CommercialSecuredLoanCommercialApplicationRelationships$ {
|
|
1114
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationships$inboundSchema` instead. */
|
|
1115
|
+
export const inboundSchema =
|
|
1116
|
+
CommercialSecuredLoanCommercialApplicationRelationships$inboundSchema;
|
|
1117
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationships$outboundSchema` instead. */
|
|
1118
|
+
export const outboundSchema =
|
|
1119
|
+
CommercialSecuredLoanCommercialApplicationRelationships$outboundSchema;
|
|
1120
|
+
/** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationships$Outbound` instead. */
|
|
1121
|
+
export type Outbound =
|
|
1122
|
+
CommercialSecuredLoanCommercialApplicationRelationships$Outbound;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
export function commercialSecuredLoanCommercialApplicationRelationshipsToJSON(
|
|
1126
|
+
commercialSecuredLoanCommercialApplicationRelationships:
|
|
1127
|
+
CommercialSecuredLoanCommercialApplicationRelationships,
|
|
1128
|
+
): string {
|
|
1129
|
+
return JSON.stringify(
|
|
1130
|
+
CommercialSecuredLoanCommercialApplicationRelationships$outboundSchema
|
|
1131
|
+
.parse(commercialSecuredLoanCommercialApplicationRelationships),
|
|
1132
|
+
);
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
export function commercialSecuredLoanCommercialApplicationRelationshipsFromJSON(
|
|
1136
|
+
jsonString: string,
|
|
1137
|
+
): SafeParseResult<
|
|
1138
|
+
CommercialSecuredLoanCommercialApplicationRelationships,
|
|
1139
|
+
SDKValidationError
|
|
1140
|
+
> {
|
|
1141
|
+
return safeParse(
|
|
1142
|
+
jsonString,
|
|
1143
|
+
(x) =>
|
|
1144
|
+
CommercialSecuredLoanCommercialApplicationRelationships$inboundSchema
|
|
1145
|
+
.parse(JSON.parse(x)),
|
|
1146
|
+
`Failed to parse 'CommercialSecuredLoanCommercialApplicationRelationships' from JSON`,
|
|
1147
|
+
);
|
|
1148
|
+
}
|