@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,683 @@
|
|
|
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
|
+
LinkObject,
|
|
12
|
+
LinkObject$inboundSchema,
|
|
13
|
+
LinkObject$Outbound,
|
|
14
|
+
LinkObject$outboundSchema,
|
|
15
|
+
} from "./linkobject.js";
|
|
16
|
+
|
|
17
|
+
export const ConsumerApplicationJsonApiRelationshipsType = {
|
|
18
|
+
LoanDetails: "loan-details",
|
|
19
|
+
} as const;
|
|
20
|
+
export type ConsumerApplicationJsonApiRelationshipsType = ClosedEnum<
|
|
21
|
+
typeof ConsumerApplicationJsonApiRelationshipsType
|
|
22
|
+
>;
|
|
23
|
+
|
|
24
|
+
export type ConsumerApplicationJsonApiRelationshipsData = {
|
|
25
|
+
type: ConsumerApplicationJsonApiRelationshipsType;
|
|
26
|
+
id: string;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type ConsumerApplicationJsonApiRelationshipsLoanDetails = {
|
|
30
|
+
data: ConsumerApplicationJsonApiRelationshipsData;
|
|
31
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
32
|
+
meta?: { [k: string]: any } | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export const ConsumerApplicationJsonApiRelationshipsCustomersType = {
|
|
36
|
+
Customers: "customers",
|
|
37
|
+
} as const;
|
|
38
|
+
export type ConsumerApplicationJsonApiRelationshipsCustomersType = ClosedEnum<
|
|
39
|
+
typeof ConsumerApplicationJsonApiRelationshipsCustomersType
|
|
40
|
+
>;
|
|
41
|
+
|
|
42
|
+
export type ConsumerApplicationJsonApiRelationshipsCustomersData = {
|
|
43
|
+
type: ConsumerApplicationJsonApiRelationshipsCustomersType;
|
|
44
|
+
id: string;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export type ConsumerApplicationJsonApiRelationshipsCustomers = {
|
|
48
|
+
data: Array<ConsumerApplicationJsonApiRelationshipsCustomersData>;
|
|
49
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
50
|
+
meta?: { [k: string]: any } | undefined;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export const ConsumerApplicationJsonApiRelationshipsAssetType = {
|
|
54
|
+
Assets: "assets",
|
|
55
|
+
} as const;
|
|
56
|
+
export type ConsumerApplicationJsonApiRelationshipsAssetType = ClosedEnum<
|
|
57
|
+
typeof ConsumerApplicationJsonApiRelationshipsAssetType
|
|
58
|
+
>;
|
|
59
|
+
|
|
60
|
+
export type ConsumerApplicationJsonApiRelationshipsAssetData = {
|
|
61
|
+
type: ConsumerApplicationJsonApiRelationshipsAssetType;
|
|
62
|
+
id: string;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export type ConsumerApplicationJsonApiRelationshipsAsset = {
|
|
66
|
+
data: ConsumerApplicationJsonApiRelationshipsAssetData;
|
|
67
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
68
|
+
meta?: { [k: string]: any } | undefined;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Relationships for a Consumer Application Resource
|
|
73
|
+
*/
|
|
74
|
+
export type ConsumerApplicationJsonApiRelationships = {
|
|
75
|
+
loanDetails?: ConsumerApplicationJsonApiRelationshipsLoanDetails | undefined;
|
|
76
|
+
customers?: ConsumerApplicationJsonApiRelationshipsCustomers | undefined;
|
|
77
|
+
asset?: ConsumerApplicationJsonApiRelationshipsAsset | undefined;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const ConsumerApplicationJsonApiRelationshipsType$inboundSchema:
|
|
82
|
+
z.ZodNativeEnum<typeof ConsumerApplicationJsonApiRelationshipsType> = z
|
|
83
|
+
.nativeEnum(ConsumerApplicationJsonApiRelationshipsType);
|
|
84
|
+
|
|
85
|
+
/** @internal */
|
|
86
|
+
export const ConsumerApplicationJsonApiRelationshipsType$outboundSchema:
|
|
87
|
+
z.ZodNativeEnum<typeof ConsumerApplicationJsonApiRelationshipsType> =
|
|
88
|
+
ConsumerApplicationJsonApiRelationshipsType$inboundSchema;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @internal
|
|
92
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
93
|
+
*/
|
|
94
|
+
export namespace ConsumerApplicationJsonApiRelationshipsType$ {
|
|
95
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsType$inboundSchema` instead. */
|
|
96
|
+
export const inboundSchema =
|
|
97
|
+
ConsumerApplicationJsonApiRelationshipsType$inboundSchema;
|
|
98
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsType$outboundSchema` instead. */
|
|
99
|
+
export const outboundSchema =
|
|
100
|
+
ConsumerApplicationJsonApiRelationshipsType$outboundSchema;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/** @internal */
|
|
104
|
+
export const ConsumerApplicationJsonApiRelationshipsData$inboundSchema:
|
|
105
|
+
z.ZodType<
|
|
106
|
+
ConsumerApplicationJsonApiRelationshipsData,
|
|
107
|
+
z.ZodTypeDef,
|
|
108
|
+
unknown
|
|
109
|
+
> = z.object({
|
|
110
|
+
type: ConsumerApplicationJsonApiRelationshipsType$inboundSchema,
|
|
111
|
+
id: z.string(),
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
/** @internal */
|
|
115
|
+
export type ConsumerApplicationJsonApiRelationshipsData$Outbound = {
|
|
116
|
+
type: string;
|
|
117
|
+
id: string;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
/** @internal */
|
|
121
|
+
export const ConsumerApplicationJsonApiRelationshipsData$outboundSchema:
|
|
122
|
+
z.ZodType<
|
|
123
|
+
ConsumerApplicationJsonApiRelationshipsData$Outbound,
|
|
124
|
+
z.ZodTypeDef,
|
|
125
|
+
ConsumerApplicationJsonApiRelationshipsData
|
|
126
|
+
> = z.object({
|
|
127
|
+
type: ConsumerApplicationJsonApiRelationshipsType$outboundSchema,
|
|
128
|
+
id: z.string(),
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* @internal
|
|
133
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
134
|
+
*/
|
|
135
|
+
export namespace ConsumerApplicationJsonApiRelationshipsData$ {
|
|
136
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsData$inboundSchema` instead. */
|
|
137
|
+
export const inboundSchema =
|
|
138
|
+
ConsumerApplicationJsonApiRelationshipsData$inboundSchema;
|
|
139
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsData$outboundSchema` instead. */
|
|
140
|
+
export const outboundSchema =
|
|
141
|
+
ConsumerApplicationJsonApiRelationshipsData$outboundSchema;
|
|
142
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsData$Outbound` instead. */
|
|
143
|
+
export type Outbound = ConsumerApplicationJsonApiRelationshipsData$Outbound;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function consumerApplicationJsonApiRelationshipsDataToJSON(
|
|
147
|
+
consumerApplicationJsonApiRelationshipsData:
|
|
148
|
+
ConsumerApplicationJsonApiRelationshipsData,
|
|
149
|
+
): string {
|
|
150
|
+
return JSON.stringify(
|
|
151
|
+
ConsumerApplicationJsonApiRelationshipsData$outboundSchema.parse(
|
|
152
|
+
consumerApplicationJsonApiRelationshipsData,
|
|
153
|
+
),
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export function consumerApplicationJsonApiRelationshipsDataFromJSON(
|
|
158
|
+
jsonString: string,
|
|
159
|
+
): SafeParseResult<
|
|
160
|
+
ConsumerApplicationJsonApiRelationshipsData,
|
|
161
|
+
SDKValidationError
|
|
162
|
+
> {
|
|
163
|
+
return safeParse(
|
|
164
|
+
jsonString,
|
|
165
|
+
(x) =>
|
|
166
|
+
ConsumerApplicationJsonApiRelationshipsData$inboundSchema.parse(
|
|
167
|
+
JSON.parse(x),
|
|
168
|
+
),
|
|
169
|
+
`Failed to parse 'ConsumerApplicationJsonApiRelationshipsData' from JSON`,
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/** @internal */
|
|
174
|
+
export const ConsumerApplicationJsonApiRelationshipsLoanDetails$inboundSchema:
|
|
175
|
+
z.ZodType<
|
|
176
|
+
ConsumerApplicationJsonApiRelationshipsLoanDetails,
|
|
177
|
+
z.ZodTypeDef,
|
|
178
|
+
unknown
|
|
179
|
+
> = z.object({
|
|
180
|
+
data: z.lazy(() =>
|
|
181
|
+
ConsumerApplicationJsonApiRelationshipsData$inboundSchema
|
|
182
|
+
),
|
|
183
|
+
links: z.record(LinkObject$inboundSchema).optional(),
|
|
184
|
+
meta: z.record(z.any()).optional(),
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
/** @internal */
|
|
188
|
+
export type ConsumerApplicationJsonApiRelationshipsLoanDetails$Outbound = {
|
|
189
|
+
data: ConsumerApplicationJsonApiRelationshipsData$Outbound;
|
|
190
|
+
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
191
|
+
meta?: { [k: string]: any } | undefined;
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
/** @internal */
|
|
195
|
+
export const ConsumerApplicationJsonApiRelationshipsLoanDetails$outboundSchema:
|
|
196
|
+
z.ZodType<
|
|
197
|
+
ConsumerApplicationJsonApiRelationshipsLoanDetails$Outbound,
|
|
198
|
+
z.ZodTypeDef,
|
|
199
|
+
ConsumerApplicationJsonApiRelationshipsLoanDetails
|
|
200
|
+
> = z.object({
|
|
201
|
+
data: z.lazy(() =>
|
|
202
|
+
ConsumerApplicationJsonApiRelationshipsData$outboundSchema
|
|
203
|
+
),
|
|
204
|
+
links: z.record(LinkObject$outboundSchema).optional(),
|
|
205
|
+
meta: z.record(z.any()).optional(),
|
|
206
|
+
});
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @internal
|
|
210
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
211
|
+
*/
|
|
212
|
+
export namespace ConsumerApplicationJsonApiRelationshipsLoanDetails$ {
|
|
213
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsLoanDetails$inboundSchema` instead. */
|
|
214
|
+
export const inboundSchema =
|
|
215
|
+
ConsumerApplicationJsonApiRelationshipsLoanDetails$inboundSchema;
|
|
216
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsLoanDetails$outboundSchema` instead. */
|
|
217
|
+
export const outboundSchema =
|
|
218
|
+
ConsumerApplicationJsonApiRelationshipsLoanDetails$outboundSchema;
|
|
219
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsLoanDetails$Outbound` instead. */
|
|
220
|
+
export type Outbound =
|
|
221
|
+
ConsumerApplicationJsonApiRelationshipsLoanDetails$Outbound;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export function consumerApplicationJsonApiRelationshipsLoanDetailsToJSON(
|
|
225
|
+
consumerApplicationJsonApiRelationshipsLoanDetails:
|
|
226
|
+
ConsumerApplicationJsonApiRelationshipsLoanDetails,
|
|
227
|
+
): string {
|
|
228
|
+
return JSON.stringify(
|
|
229
|
+
ConsumerApplicationJsonApiRelationshipsLoanDetails$outboundSchema.parse(
|
|
230
|
+
consumerApplicationJsonApiRelationshipsLoanDetails,
|
|
231
|
+
),
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export function consumerApplicationJsonApiRelationshipsLoanDetailsFromJSON(
|
|
236
|
+
jsonString: string,
|
|
237
|
+
): SafeParseResult<
|
|
238
|
+
ConsumerApplicationJsonApiRelationshipsLoanDetails,
|
|
239
|
+
SDKValidationError
|
|
240
|
+
> {
|
|
241
|
+
return safeParse(
|
|
242
|
+
jsonString,
|
|
243
|
+
(x) =>
|
|
244
|
+
ConsumerApplicationJsonApiRelationshipsLoanDetails$inboundSchema.parse(
|
|
245
|
+
JSON.parse(x),
|
|
246
|
+
),
|
|
247
|
+
`Failed to parse 'ConsumerApplicationJsonApiRelationshipsLoanDetails' from JSON`,
|
|
248
|
+
);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/** @internal */
|
|
252
|
+
export const ConsumerApplicationJsonApiRelationshipsCustomersType$inboundSchema:
|
|
253
|
+
z.ZodNativeEnum<typeof ConsumerApplicationJsonApiRelationshipsCustomersType> =
|
|
254
|
+
z.nativeEnum(ConsumerApplicationJsonApiRelationshipsCustomersType);
|
|
255
|
+
|
|
256
|
+
/** @internal */
|
|
257
|
+
export const ConsumerApplicationJsonApiRelationshipsCustomersType$outboundSchema:
|
|
258
|
+
z.ZodNativeEnum<typeof ConsumerApplicationJsonApiRelationshipsCustomersType> =
|
|
259
|
+
ConsumerApplicationJsonApiRelationshipsCustomersType$inboundSchema;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* @internal
|
|
263
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
264
|
+
*/
|
|
265
|
+
export namespace ConsumerApplicationJsonApiRelationshipsCustomersType$ {
|
|
266
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsCustomersType$inboundSchema` instead. */
|
|
267
|
+
export const inboundSchema =
|
|
268
|
+
ConsumerApplicationJsonApiRelationshipsCustomersType$inboundSchema;
|
|
269
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsCustomersType$outboundSchema` instead. */
|
|
270
|
+
export const outboundSchema =
|
|
271
|
+
ConsumerApplicationJsonApiRelationshipsCustomersType$outboundSchema;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/** @internal */
|
|
275
|
+
export const ConsumerApplicationJsonApiRelationshipsCustomersData$inboundSchema:
|
|
276
|
+
z.ZodType<
|
|
277
|
+
ConsumerApplicationJsonApiRelationshipsCustomersData,
|
|
278
|
+
z.ZodTypeDef,
|
|
279
|
+
unknown
|
|
280
|
+
> = z.object({
|
|
281
|
+
type: ConsumerApplicationJsonApiRelationshipsCustomersType$inboundSchema,
|
|
282
|
+
id: z.string(),
|
|
283
|
+
});
|
|
284
|
+
|
|
285
|
+
/** @internal */
|
|
286
|
+
export type ConsumerApplicationJsonApiRelationshipsCustomersData$Outbound = {
|
|
287
|
+
type: string;
|
|
288
|
+
id: string;
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
/** @internal */
|
|
292
|
+
export const ConsumerApplicationJsonApiRelationshipsCustomersData$outboundSchema:
|
|
293
|
+
z.ZodType<
|
|
294
|
+
ConsumerApplicationJsonApiRelationshipsCustomersData$Outbound,
|
|
295
|
+
z.ZodTypeDef,
|
|
296
|
+
ConsumerApplicationJsonApiRelationshipsCustomersData
|
|
297
|
+
> = z.object({
|
|
298
|
+
type: ConsumerApplicationJsonApiRelationshipsCustomersType$outboundSchema,
|
|
299
|
+
id: z.string(),
|
|
300
|
+
});
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* @internal
|
|
304
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
305
|
+
*/
|
|
306
|
+
export namespace ConsumerApplicationJsonApiRelationshipsCustomersData$ {
|
|
307
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsCustomersData$inboundSchema` instead. */
|
|
308
|
+
export const inboundSchema =
|
|
309
|
+
ConsumerApplicationJsonApiRelationshipsCustomersData$inboundSchema;
|
|
310
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsCustomersData$outboundSchema` instead. */
|
|
311
|
+
export const outboundSchema =
|
|
312
|
+
ConsumerApplicationJsonApiRelationshipsCustomersData$outboundSchema;
|
|
313
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsCustomersData$Outbound` instead. */
|
|
314
|
+
export type Outbound =
|
|
315
|
+
ConsumerApplicationJsonApiRelationshipsCustomersData$Outbound;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
export function consumerApplicationJsonApiRelationshipsCustomersDataToJSON(
|
|
319
|
+
consumerApplicationJsonApiRelationshipsCustomersData:
|
|
320
|
+
ConsumerApplicationJsonApiRelationshipsCustomersData,
|
|
321
|
+
): string {
|
|
322
|
+
return JSON.stringify(
|
|
323
|
+
ConsumerApplicationJsonApiRelationshipsCustomersData$outboundSchema.parse(
|
|
324
|
+
consumerApplicationJsonApiRelationshipsCustomersData,
|
|
325
|
+
),
|
|
326
|
+
);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export function consumerApplicationJsonApiRelationshipsCustomersDataFromJSON(
|
|
330
|
+
jsonString: string,
|
|
331
|
+
): SafeParseResult<
|
|
332
|
+
ConsumerApplicationJsonApiRelationshipsCustomersData,
|
|
333
|
+
SDKValidationError
|
|
334
|
+
> {
|
|
335
|
+
return safeParse(
|
|
336
|
+
jsonString,
|
|
337
|
+
(x) =>
|
|
338
|
+
ConsumerApplicationJsonApiRelationshipsCustomersData$inboundSchema.parse(
|
|
339
|
+
JSON.parse(x),
|
|
340
|
+
),
|
|
341
|
+
`Failed to parse 'ConsumerApplicationJsonApiRelationshipsCustomersData' from JSON`,
|
|
342
|
+
);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/** @internal */
|
|
346
|
+
export const ConsumerApplicationJsonApiRelationshipsCustomers$inboundSchema:
|
|
347
|
+
z.ZodType<
|
|
348
|
+
ConsumerApplicationJsonApiRelationshipsCustomers,
|
|
349
|
+
z.ZodTypeDef,
|
|
350
|
+
unknown
|
|
351
|
+
> = z.object({
|
|
352
|
+
data: z.array(
|
|
353
|
+
z.lazy(() =>
|
|
354
|
+
ConsumerApplicationJsonApiRelationshipsCustomersData$inboundSchema
|
|
355
|
+
),
|
|
356
|
+
),
|
|
357
|
+
links: z.record(LinkObject$inboundSchema).optional(),
|
|
358
|
+
meta: z.record(z.any()).optional(),
|
|
359
|
+
});
|
|
360
|
+
|
|
361
|
+
/** @internal */
|
|
362
|
+
export type ConsumerApplicationJsonApiRelationshipsCustomers$Outbound = {
|
|
363
|
+
data: Array<ConsumerApplicationJsonApiRelationshipsCustomersData$Outbound>;
|
|
364
|
+
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
365
|
+
meta?: { [k: string]: any } | undefined;
|
|
366
|
+
};
|
|
367
|
+
|
|
368
|
+
/** @internal */
|
|
369
|
+
export const ConsumerApplicationJsonApiRelationshipsCustomers$outboundSchema:
|
|
370
|
+
z.ZodType<
|
|
371
|
+
ConsumerApplicationJsonApiRelationshipsCustomers$Outbound,
|
|
372
|
+
z.ZodTypeDef,
|
|
373
|
+
ConsumerApplicationJsonApiRelationshipsCustomers
|
|
374
|
+
> = z.object({
|
|
375
|
+
data: z.array(
|
|
376
|
+
z.lazy(() =>
|
|
377
|
+
ConsumerApplicationJsonApiRelationshipsCustomersData$outboundSchema
|
|
378
|
+
),
|
|
379
|
+
),
|
|
380
|
+
links: z.record(LinkObject$outboundSchema).optional(),
|
|
381
|
+
meta: z.record(z.any()).optional(),
|
|
382
|
+
});
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* @internal
|
|
386
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
387
|
+
*/
|
|
388
|
+
export namespace ConsumerApplicationJsonApiRelationshipsCustomers$ {
|
|
389
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsCustomers$inboundSchema` instead. */
|
|
390
|
+
export const inboundSchema =
|
|
391
|
+
ConsumerApplicationJsonApiRelationshipsCustomers$inboundSchema;
|
|
392
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsCustomers$outboundSchema` instead. */
|
|
393
|
+
export const outboundSchema =
|
|
394
|
+
ConsumerApplicationJsonApiRelationshipsCustomers$outboundSchema;
|
|
395
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsCustomers$Outbound` instead. */
|
|
396
|
+
export type Outbound =
|
|
397
|
+
ConsumerApplicationJsonApiRelationshipsCustomers$Outbound;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
export function consumerApplicationJsonApiRelationshipsCustomersToJSON(
|
|
401
|
+
consumerApplicationJsonApiRelationshipsCustomers:
|
|
402
|
+
ConsumerApplicationJsonApiRelationshipsCustomers,
|
|
403
|
+
): string {
|
|
404
|
+
return JSON.stringify(
|
|
405
|
+
ConsumerApplicationJsonApiRelationshipsCustomers$outboundSchema.parse(
|
|
406
|
+
consumerApplicationJsonApiRelationshipsCustomers,
|
|
407
|
+
),
|
|
408
|
+
);
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
export function consumerApplicationJsonApiRelationshipsCustomersFromJSON(
|
|
412
|
+
jsonString: string,
|
|
413
|
+
): SafeParseResult<
|
|
414
|
+
ConsumerApplicationJsonApiRelationshipsCustomers,
|
|
415
|
+
SDKValidationError
|
|
416
|
+
> {
|
|
417
|
+
return safeParse(
|
|
418
|
+
jsonString,
|
|
419
|
+
(x) =>
|
|
420
|
+
ConsumerApplicationJsonApiRelationshipsCustomers$inboundSchema.parse(
|
|
421
|
+
JSON.parse(x),
|
|
422
|
+
),
|
|
423
|
+
`Failed to parse 'ConsumerApplicationJsonApiRelationshipsCustomers' from JSON`,
|
|
424
|
+
);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/** @internal */
|
|
428
|
+
export const ConsumerApplicationJsonApiRelationshipsAssetType$inboundSchema:
|
|
429
|
+
z.ZodNativeEnum<typeof ConsumerApplicationJsonApiRelationshipsAssetType> = z
|
|
430
|
+
.nativeEnum(ConsumerApplicationJsonApiRelationshipsAssetType);
|
|
431
|
+
|
|
432
|
+
/** @internal */
|
|
433
|
+
export const ConsumerApplicationJsonApiRelationshipsAssetType$outboundSchema:
|
|
434
|
+
z.ZodNativeEnum<typeof ConsumerApplicationJsonApiRelationshipsAssetType> =
|
|
435
|
+
ConsumerApplicationJsonApiRelationshipsAssetType$inboundSchema;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* @internal
|
|
439
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
440
|
+
*/
|
|
441
|
+
export namespace ConsumerApplicationJsonApiRelationshipsAssetType$ {
|
|
442
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsAssetType$inboundSchema` instead. */
|
|
443
|
+
export const inboundSchema =
|
|
444
|
+
ConsumerApplicationJsonApiRelationshipsAssetType$inboundSchema;
|
|
445
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsAssetType$outboundSchema` instead. */
|
|
446
|
+
export const outboundSchema =
|
|
447
|
+
ConsumerApplicationJsonApiRelationshipsAssetType$outboundSchema;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/** @internal */
|
|
451
|
+
export const ConsumerApplicationJsonApiRelationshipsAssetData$inboundSchema:
|
|
452
|
+
z.ZodType<
|
|
453
|
+
ConsumerApplicationJsonApiRelationshipsAssetData,
|
|
454
|
+
z.ZodTypeDef,
|
|
455
|
+
unknown
|
|
456
|
+
> = z.object({
|
|
457
|
+
type: ConsumerApplicationJsonApiRelationshipsAssetType$inboundSchema,
|
|
458
|
+
id: z.string(),
|
|
459
|
+
});
|
|
460
|
+
|
|
461
|
+
/** @internal */
|
|
462
|
+
export type ConsumerApplicationJsonApiRelationshipsAssetData$Outbound = {
|
|
463
|
+
type: string;
|
|
464
|
+
id: string;
|
|
465
|
+
};
|
|
466
|
+
|
|
467
|
+
/** @internal */
|
|
468
|
+
export const ConsumerApplicationJsonApiRelationshipsAssetData$outboundSchema:
|
|
469
|
+
z.ZodType<
|
|
470
|
+
ConsumerApplicationJsonApiRelationshipsAssetData$Outbound,
|
|
471
|
+
z.ZodTypeDef,
|
|
472
|
+
ConsumerApplicationJsonApiRelationshipsAssetData
|
|
473
|
+
> = z.object({
|
|
474
|
+
type: ConsumerApplicationJsonApiRelationshipsAssetType$outboundSchema,
|
|
475
|
+
id: z.string(),
|
|
476
|
+
});
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* @internal
|
|
480
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
481
|
+
*/
|
|
482
|
+
export namespace ConsumerApplicationJsonApiRelationshipsAssetData$ {
|
|
483
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsAssetData$inboundSchema` instead. */
|
|
484
|
+
export const inboundSchema =
|
|
485
|
+
ConsumerApplicationJsonApiRelationshipsAssetData$inboundSchema;
|
|
486
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsAssetData$outboundSchema` instead. */
|
|
487
|
+
export const outboundSchema =
|
|
488
|
+
ConsumerApplicationJsonApiRelationshipsAssetData$outboundSchema;
|
|
489
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsAssetData$Outbound` instead. */
|
|
490
|
+
export type Outbound =
|
|
491
|
+
ConsumerApplicationJsonApiRelationshipsAssetData$Outbound;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
export function consumerApplicationJsonApiRelationshipsAssetDataToJSON(
|
|
495
|
+
consumerApplicationJsonApiRelationshipsAssetData:
|
|
496
|
+
ConsumerApplicationJsonApiRelationshipsAssetData,
|
|
497
|
+
): string {
|
|
498
|
+
return JSON.stringify(
|
|
499
|
+
ConsumerApplicationJsonApiRelationshipsAssetData$outboundSchema.parse(
|
|
500
|
+
consumerApplicationJsonApiRelationshipsAssetData,
|
|
501
|
+
),
|
|
502
|
+
);
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
export function consumerApplicationJsonApiRelationshipsAssetDataFromJSON(
|
|
506
|
+
jsonString: string,
|
|
507
|
+
): SafeParseResult<
|
|
508
|
+
ConsumerApplicationJsonApiRelationshipsAssetData,
|
|
509
|
+
SDKValidationError
|
|
510
|
+
> {
|
|
511
|
+
return safeParse(
|
|
512
|
+
jsonString,
|
|
513
|
+
(x) =>
|
|
514
|
+
ConsumerApplicationJsonApiRelationshipsAssetData$inboundSchema.parse(
|
|
515
|
+
JSON.parse(x),
|
|
516
|
+
),
|
|
517
|
+
`Failed to parse 'ConsumerApplicationJsonApiRelationshipsAssetData' from JSON`,
|
|
518
|
+
);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
/** @internal */
|
|
522
|
+
export const ConsumerApplicationJsonApiRelationshipsAsset$inboundSchema:
|
|
523
|
+
z.ZodType<
|
|
524
|
+
ConsumerApplicationJsonApiRelationshipsAsset,
|
|
525
|
+
z.ZodTypeDef,
|
|
526
|
+
unknown
|
|
527
|
+
> = z.object({
|
|
528
|
+
data: z.lazy(() =>
|
|
529
|
+
ConsumerApplicationJsonApiRelationshipsAssetData$inboundSchema
|
|
530
|
+
),
|
|
531
|
+
links: z.record(LinkObject$inboundSchema).optional(),
|
|
532
|
+
meta: z.record(z.any()).optional(),
|
|
533
|
+
});
|
|
534
|
+
|
|
535
|
+
/** @internal */
|
|
536
|
+
export type ConsumerApplicationJsonApiRelationshipsAsset$Outbound = {
|
|
537
|
+
data: ConsumerApplicationJsonApiRelationshipsAssetData$Outbound;
|
|
538
|
+
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
539
|
+
meta?: { [k: string]: any } | undefined;
|
|
540
|
+
};
|
|
541
|
+
|
|
542
|
+
/** @internal */
|
|
543
|
+
export const ConsumerApplicationJsonApiRelationshipsAsset$outboundSchema:
|
|
544
|
+
z.ZodType<
|
|
545
|
+
ConsumerApplicationJsonApiRelationshipsAsset$Outbound,
|
|
546
|
+
z.ZodTypeDef,
|
|
547
|
+
ConsumerApplicationJsonApiRelationshipsAsset
|
|
548
|
+
> = z.object({
|
|
549
|
+
data: z.lazy(() =>
|
|
550
|
+
ConsumerApplicationJsonApiRelationshipsAssetData$outboundSchema
|
|
551
|
+
),
|
|
552
|
+
links: z.record(LinkObject$outboundSchema).optional(),
|
|
553
|
+
meta: z.record(z.any()).optional(),
|
|
554
|
+
});
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* @internal
|
|
558
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
559
|
+
*/
|
|
560
|
+
export namespace ConsumerApplicationJsonApiRelationshipsAsset$ {
|
|
561
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsAsset$inboundSchema` instead. */
|
|
562
|
+
export const inboundSchema =
|
|
563
|
+
ConsumerApplicationJsonApiRelationshipsAsset$inboundSchema;
|
|
564
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsAsset$outboundSchema` instead. */
|
|
565
|
+
export const outboundSchema =
|
|
566
|
+
ConsumerApplicationJsonApiRelationshipsAsset$outboundSchema;
|
|
567
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationshipsAsset$Outbound` instead. */
|
|
568
|
+
export type Outbound = ConsumerApplicationJsonApiRelationshipsAsset$Outbound;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
export function consumerApplicationJsonApiRelationshipsAssetToJSON(
|
|
572
|
+
consumerApplicationJsonApiRelationshipsAsset:
|
|
573
|
+
ConsumerApplicationJsonApiRelationshipsAsset,
|
|
574
|
+
): string {
|
|
575
|
+
return JSON.stringify(
|
|
576
|
+
ConsumerApplicationJsonApiRelationshipsAsset$outboundSchema.parse(
|
|
577
|
+
consumerApplicationJsonApiRelationshipsAsset,
|
|
578
|
+
),
|
|
579
|
+
);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
export function consumerApplicationJsonApiRelationshipsAssetFromJSON(
|
|
583
|
+
jsonString: string,
|
|
584
|
+
): SafeParseResult<
|
|
585
|
+
ConsumerApplicationJsonApiRelationshipsAsset,
|
|
586
|
+
SDKValidationError
|
|
587
|
+
> {
|
|
588
|
+
return safeParse(
|
|
589
|
+
jsonString,
|
|
590
|
+
(x) =>
|
|
591
|
+
ConsumerApplicationJsonApiRelationshipsAsset$inboundSchema.parse(
|
|
592
|
+
JSON.parse(x),
|
|
593
|
+
),
|
|
594
|
+
`Failed to parse 'ConsumerApplicationJsonApiRelationshipsAsset' from JSON`,
|
|
595
|
+
);
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
/** @internal */
|
|
599
|
+
export const ConsumerApplicationJsonApiRelationships$inboundSchema: z.ZodType<
|
|
600
|
+
ConsumerApplicationJsonApiRelationships,
|
|
601
|
+
z.ZodTypeDef,
|
|
602
|
+
unknown
|
|
603
|
+
> = z.object({
|
|
604
|
+
loanDetails: z.lazy(() =>
|
|
605
|
+
ConsumerApplicationJsonApiRelationshipsLoanDetails$inboundSchema
|
|
606
|
+
).optional(),
|
|
607
|
+
customers: z.lazy(() =>
|
|
608
|
+
ConsumerApplicationJsonApiRelationshipsCustomers$inboundSchema
|
|
609
|
+
).optional(),
|
|
610
|
+
asset: z.lazy(() =>
|
|
611
|
+
ConsumerApplicationJsonApiRelationshipsAsset$inboundSchema
|
|
612
|
+
).optional(),
|
|
613
|
+
});
|
|
614
|
+
|
|
615
|
+
/** @internal */
|
|
616
|
+
export type ConsumerApplicationJsonApiRelationships$Outbound = {
|
|
617
|
+
loanDetails?:
|
|
618
|
+
| ConsumerApplicationJsonApiRelationshipsLoanDetails$Outbound
|
|
619
|
+
| undefined;
|
|
620
|
+
customers?:
|
|
621
|
+
| ConsumerApplicationJsonApiRelationshipsCustomers$Outbound
|
|
622
|
+
| undefined;
|
|
623
|
+
asset?: ConsumerApplicationJsonApiRelationshipsAsset$Outbound | undefined;
|
|
624
|
+
};
|
|
625
|
+
|
|
626
|
+
/** @internal */
|
|
627
|
+
export const ConsumerApplicationJsonApiRelationships$outboundSchema: z.ZodType<
|
|
628
|
+
ConsumerApplicationJsonApiRelationships$Outbound,
|
|
629
|
+
z.ZodTypeDef,
|
|
630
|
+
ConsumerApplicationJsonApiRelationships
|
|
631
|
+
> = z.object({
|
|
632
|
+
loanDetails: z.lazy(() =>
|
|
633
|
+
ConsumerApplicationJsonApiRelationshipsLoanDetails$outboundSchema
|
|
634
|
+
).optional(),
|
|
635
|
+
customers: z.lazy(() =>
|
|
636
|
+
ConsumerApplicationJsonApiRelationshipsCustomers$outboundSchema
|
|
637
|
+
).optional(),
|
|
638
|
+
asset: z.lazy(() =>
|
|
639
|
+
ConsumerApplicationJsonApiRelationshipsAsset$outboundSchema
|
|
640
|
+
).optional(),
|
|
641
|
+
});
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* @internal
|
|
645
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
646
|
+
*/
|
|
647
|
+
export namespace ConsumerApplicationJsonApiRelationships$ {
|
|
648
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationships$inboundSchema` instead. */
|
|
649
|
+
export const inboundSchema =
|
|
650
|
+
ConsumerApplicationJsonApiRelationships$inboundSchema;
|
|
651
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationships$outboundSchema` instead. */
|
|
652
|
+
export const outboundSchema =
|
|
653
|
+
ConsumerApplicationJsonApiRelationships$outboundSchema;
|
|
654
|
+
/** @deprecated use `ConsumerApplicationJsonApiRelationships$Outbound` instead. */
|
|
655
|
+
export type Outbound = ConsumerApplicationJsonApiRelationships$Outbound;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
export function consumerApplicationJsonApiRelationshipsToJSON(
|
|
659
|
+
consumerApplicationJsonApiRelationships:
|
|
660
|
+
ConsumerApplicationJsonApiRelationships,
|
|
661
|
+
): string {
|
|
662
|
+
return JSON.stringify(
|
|
663
|
+
ConsumerApplicationJsonApiRelationships$outboundSchema.parse(
|
|
664
|
+
consumerApplicationJsonApiRelationships,
|
|
665
|
+
),
|
|
666
|
+
);
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
export function consumerApplicationJsonApiRelationshipsFromJSON(
|
|
670
|
+
jsonString: string,
|
|
671
|
+
): SafeParseResult<
|
|
672
|
+
ConsumerApplicationJsonApiRelationships,
|
|
673
|
+
SDKValidationError
|
|
674
|
+
> {
|
|
675
|
+
return safeParse(
|
|
676
|
+
jsonString,
|
|
677
|
+
(x) =>
|
|
678
|
+
ConsumerApplicationJsonApiRelationships$inboundSchema.parse(
|
|
679
|
+
JSON.parse(x),
|
|
680
|
+
),
|
|
681
|
+
`Failed to parse 'ConsumerApplicationJsonApiRelationships' from JSON`,
|
|
682
|
+
);
|
|
683
|
+
}
|