@financeable/aggregation 0.5.1 → 0.6.1
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 +14 -131
- package/README.md +271 -1512
- package/docs/sdks/applications/README.md +24 -383
- package/docs/sdks/oauthtoken/README.md +5 -5
- package/docs/sdks/supportingdocuments/README.md +121 -0
- package/funcs/applicationsCreate.d.ts +1 -2
- package/funcs/applicationsCreate.d.ts.map +1 -1
- package/funcs/applicationsCreate.js +3 -4
- 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 +14 -0
- package/funcs/supportingDocumentsCreate.d.ts.map +1 -0
- package/funcs/{applicationsList.js → supportingDocumentsCreate.js} +14 -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 +10 -8
- package/models/components/addressattributes.d.ts.map +1 -1
- package/models/components/addressattributes.js +15 -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/commercialsecuredapplicationpayload.d.ts +164 -0
- package/models/components/commercialsecuredapplicationpayload.d.ts.map +1 -0
- package/models/components/commercialsecuredapplicationpayload.js +158 -0
- package/models/components/commercialsecuredapplicationpayload.js.map +1 -0
- package/models/components/commercialsecuredapplicationresource.d.ts +171 -0
- package/models/components/commercialsecuredapplicationresource.d.ts.map +1 -0
- package/models/components/commercialsecuredapplicationresource.js +161 -0
- package/models/components/commercialsecuredapplicationresource.js.map +1 -0
- package/models/components/commercialsecuredloanassetattributes.d.ts +237 -0
- package/models/components/commercialsecuredloanassetattributes.d.ts.map +1 -0
- package/models/components/commercialsecuredloanassetattributes.js +170 -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 +537 -0
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -0
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js +548 -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/consumersecuredapplicationpayload.d.ts +164 -0
- package/models/components/consumersecuredapplicationpayload.d.ts.map +1 -0
- package/models/components/consumersecuredapplicationpayload.js +158 -0
- package/models/components/consumersecuredapplicationpayload.js.map +1 -0
- package/models/components/consumersecuredapplicationresource.d.ts +171 -0
- package/models/components/consumersecuredapplicationresource.d.ts.map +1 -0
- package/models/components/consumersecuredapplicationresource.js +161 -0
- package/models/components/consumersecuredapplicationresource.js.map +1 -0
- package/models/components/consumersecuredloanassetattributes.d.ts +237 -0
- package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -0
- package/models/components/consumersecuredloanassetattributes.js +172 -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 +425 -0
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -0
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js +443 -0
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -0
- package/models/components/createsupportingdocumentsresponse.d.ts +124 -0
- package/models/components/createsupportingdocumentsresponse.d.ts.map +1 -0
- package/models/components/createsupportingdocumentsresponse.js +138 -0
- package/models/components/createsupportingdocumentsresponse.js.map +1 -0
- package/models/components/customerattributes.d.ts +2 -0
- package/models/components/customerattributes.d.ts.map +1 -1
- package/models/components/customerattributes.js +2 -0
- package/models/components/customerattributes.js.map +1 -1
- package/models/components/documenttype.d.ts +70 -0
- package/models/components/documenttype.d.ts.map +1 -0
- package/models/{errors/responsebody.js → components/documenttype.js} +28 -34
- package/models/components/documenttype.js.map +1 -0
- package/models/components/entityattributes.d.ts +2 -22
- package/models/components/entityattributes.d.ts.map +1 -1
- package/models/components/entityattributes.js +2 -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 +24 -8
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +24 -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/{links.js → linkobject.js} +27 -22
- package/models/components/linkobject.js.map +1 -0
- package/models/components/loandetailsattributes.d.ts +2 -0
- package/models/components/loandetailsattributes.d.ts.map +1 -1
- package/models/components/loandetailsattributes.js +2 -0
- package/models/components/loandetailsattributes.js.map +1 -1
- package/models/components/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/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 +71 -0
- package/models/components/supportingdocumentresource.d.ts.map +1 -0
- package/models/components/supportingdocumentresource.js +98 -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 +73 -0
- package/models/errors/createapplication.d.ts.map +1 -0
- package/models/errors/createapplication.js +120 -0
- 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 +26 -874
- package/models/operations/createapplication.d.ts.map +1 -1
- package/models/operations/createapplication.js +37 -899
- 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 +94 -0
- package/models/operations/supportingdocumentscreate.d.ts.map +1 -0
- package/models/operations/supportingdocumentscreate.js +135 -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 +9 -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 +15 -9
- package/src/funcs/{oauthTokenGet.ts → oauthTokenOauthToken.ts} +1 -1
- package/src/funcs/{applicationsList.ts → supportingDocumentsCreate.ts} +30 -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 +22 -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/commercialsecuredapplicationpayload.ts +248 -0
- package/src/models/components/commercialsecuredapplicationresource.ts +310 -0
- package/src/models/components/commercialsecuredloanassetattributes.ts +319 -0
- package/src/models/components/commercialsecuredloanassettype.ts +64 -0
- package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +1238 -0
- package/src/models/components/consumerapplicationjsonapirelationships.ts +683 -0
- package/src/models/components/consumersecuredapplicationpayload.ts +273 -0
- package/src/models/components/consumersecuredapplicationresource.ts +309 -0
- package/src/models/components/consumersecuredloanassetattributes.ts +334 -0
- package/src/models/components/consumersecuredloanassettype.ts +47 -0
- package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +1047 -0
- package/src/models/components/createsupportingdocumentsresponse.ts +206 -0
- package/src/models/components/customerattributes.ts +4 -0
- package/src/models/components/documenttype.ts +49 -0
- package/src/models/components/entityattributes.ts +4 -44
- package/src/models/components/forbiddenerror.ts +35 -58
- package/src/models/components/index.ts +24 -8
- package/src/models/components/linkobject.ts +84 -0
- package/src/models/components/loandetailsattributes.ts +4 -0
- package/src/models/components/relationshipresourcenotfound.ts +195 -0
- package/src/models/components/resourcenotfound.ts +188 -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 +126 -0
- package/src/models/components/uploadmimetype.ts +44 -0
- package/src/models/errors/createapplication.ts +149 -0
- package/src/models/errors/index.ts +2 -1
- package/src/models/errors/supportingdocumentscreate.ts +342 -0
- package/src/models/operations/createapplication.ts +69 -1913
- package/src/models/operations/index.ts +1 -2
- package/src/models/operations/supportingdocumentscreate.ts +222 -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 +24 -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
|
@@ -4,1626 +4,53 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
8
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
8
|
import * as components from "../components/index.js";
|
|
10
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
10
|
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export type Type = ClosedEnum<typeof Type>;
|
|
11
|
+
export type Data =
|
|
12
|
+
| components.CommercialSecuredApplicationPayload
|
|
13
|
+
| components.ConsumerSecuredApplicationPayload;
|
|
16
14
|
|
|
17
|
-
export
|
|
18
|
-
LoanDetails: "loan-details",
|
|
19
|
-
} as const;
|
|
20
|
-
export type CreateApplicationDataType = ClosedEnum<
|
|
21
|
-
typeof CreateApplicationDataType
|
|
22
|
-
>;
|
|
23
|
-
|
|
24
|
-
export type CreateApplicationDataApplicationsResponse2 = {
|
|
25
|
-
type: CreateApplicationDataType;
|
|
26
|
-
id: string;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export const DataType = {
|
|
30
|
-
LoanDetails: "loan-details",
|
|
31
|
-
} as const;
|
|
32
|
-
export type DataType = ClosedEnum<typeof DataType>;
|
|
33
|
-
|
|
34
|
-
export type CreateApplicationDataApplicationsResponse1 = {
|
|
35
|
-
type: DataType;
|
|
36
|
-
id: string;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export type CreateApplicationApplicationsResponse201Data =
|
|
40
|
-
| CreateApplicationDataApplicationsResponse1
|
|
41
|
-
| Array<CreateApplicationDataApplicationsResponse2>;
|
|
42
|
-
|
|
43
|
-
export type LoanDetails = {
|
|
44
|
-
data:
|
|
45
|
-
| CreateApplicationDataApplicationsResponse1
|
|
46
|
-
| Array<CreateApplicationDataApplicationsResponse2>
|
|
47
|
-
| null;
|
|
48
|
-
/**
|
|
49
|
-
* Standard link object
|
|
50
|
-
*/
|
|
51
|
-
links?: components.Links | undefined;
|
|
52
|
-
meta?: { [k: string]: any } | undefined;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export const CreateApplicationDataApplicationsResponseType = {
|
|
56
|
-
Customers: "customers",
|
|
57
|
-
} as const;
|
|
58
|
-
export type CreateApplicationDataApplicationsResponseType = ClosedEnum<
|
|
59
|
-
typeof CreateApplicationDataApplicationsResponseType
|
|
60
|
-
>;
|
|
61
|
-
|
|
62
|
-
export type CreateApplicationDataApplicationsResponse2012 = {
|
|
63
|
-
type: CreateApplicationDataApplicationsResponseType;
|
|
64
|
-
id: string;
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
export const CreateApplicationDataApplicationsType = {
|
|
68
|
-
Customers: "customers",
|
|
69
|
-
} as const;
|
|
70
|
-
export type CreateApplicationDataApplicationsType = ClosedEnum<
|
|
71
|
-
typeof CreateApplicationDataApplicationsType
|
|
72
|
-
>;
|
|
73
|
-
|
|
74
|
-
export type CreateApplicationDataApplicationsResponse2011 = {
|
|
75
|
-
type: CreateApplicationDataApplicationsType;
|
|
76
|
-
id: string;
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
export type CreateApplicationApplicationsResponse201ApplicationJSONData =
|
|
80
|
-
| CreateApplicationDataApplicationsResponse2011
|
|
81
|
-
| Array<CreateApplicationDataApplicationsResponse2012>;
|
|
82
|
-
|
|
83
|
-
export type Customers = {
|
|
84
|
-
data:
|
|
85
|
-
| CreateApplicationDataApplicationsResponse2011
|
|
86
|
-
| Array<CreateApplicationDataApplicationsResponse2012>
|
|
87
|
-
| null;
|
|
88
|
-
/**
|
|
89
|
-
* Standard link object
|
|
90
|
-
*/
|
|
91
|
-
links?: components.Links | undefined;
|
|
92
|
-
meta?: { [k: string]: any } | undefined;
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
export const CreateApplicationDataApplicationsResponse201ApplicationJSONType = {
|
|
96
|
-
Assets: "assets",
|
|
97
|
-
} as const;
|
|
98
|
-
export type CreateApplicationDataApplicationsResponse201ApplicationJSONType =
|
|
99
|
-
ClosedEnum<
|
|
100
|
-
typeof CreateApplicationDataApplicationsResponse201ApplicationJSONType
|
|
101
|
-
>;
|
|
102
|
-
|
|
103
|
-
export type CreateApplicationData2 = {
|
|
104
|
-
type: CreateApplicationDataApplicationsResponse201ApplicationJSONType;
|
|
105
|
-
id: string;
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
export const CreateApplicationDataApplicationsResponse201Type = {
|
|
109
|
-
Assets: "assets",
|
|
110
|
-
} as const;
|
|
111
|
-
export type CreateApplicationDataApplicationsResponse201Type = ClosedEnum<
|
|
112
|
-
typeof CreateApplicationDataApplicationsResponse201Type
|
|
113
|
-
>;
|
|
114
|
-
|
|
115
|
-
export type CreateApplicationData1 = {
|
|
116
|
-
type: CreateApplicationDataApplicationsResponse201Type;
|
|
117
|
-
id: string;
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
export type CreateApplicationApplicationsData =
|
|
121
|
-
| CreateApplicationData1
|
|
122
|
-
| Array<CreateApplicationData2>;
|
|
123
|
-
|
|
124
|
-
export type Asset = {
|
|
125
|
-
data: CreateApplicationData1 | Array<CreateApplicationData2> | null;
|
|
126
|
-
/**
|
|
127
|
-
* Standard link object
|
|
128
|
-
*/
|
|
129
|
-
links?: components.Links | undefined;
|
|
130
|
-
meta?: { [k: string]: any } | undefined;
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
export const CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType =
|
|
134
|
-
{
|
|
135
|
-
Entities: "entities",
|
|
136
|
-
} as const;
|
|
137
|
-
export type CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType =
|
|
138
|
-
ClosedEnum<
|
|
139
|
-
typeof CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType
|
|
140
|
-
>;
|
|
141
|
-
|
|
142
|
-
export type CreateApplicationDataApplications2 = {
|
|
143
|
-
type:
|
|
144
|
-
CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType;
|
|
145
|
-
id: string;
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
export const CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType =
|
|
149
|
-
{
|
|
150
|
-
Entities: "entities",
|
|
151
|
-
} as const;
|
|
152
|
-
export type CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType =
|
|
153
|
-
ClosedEnum<
|
|
154
|
-
typeof CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType
|
|
155
|
-
>;
|
|
156
|
-
|
|
157
|
-
export type CreateApplicationDataApplications1 = {
|
|
158
|
-
type:
|
|
159
|
-
CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType;
|
|
160
|
-
id: string;
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
export type CreateApplicationApplicationsResponseData =
|
|
164
|
-
| CreateApplicationDataApplications1
|
|
165
|
-
| Array<CreateApplicationDataApplications2>;
|
|
166
|
-
|
|
167
|
-
export type Entities = {
|
|
168
|
-
data:
|
|
169
|
-
| CreateApplicationDataApplications1
|
|
170
|
-
| Array<CreateApplicationDataApplications2>
|
|
171
|
-
| null;
|
|
172
|
-
/**
|
|
173
|
-
* Standard link object
|
|
174
|
-
*/
|
|
175
|
-
links?: components.Links | undefined;
|
|
176
|
-
meta?: { [k: string]: any } | undefined;
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
export type Relationships = {
|
|
180
|
-
loanDetails?: LoanDetails | undefined;
|
|
181
|
-
customers?: Customers | undefined;
|
|
182
|
-
asset?: Asset | undefined;
|
|
183
|
-
entities?: Entities | undefined;
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
export type Data = {
|
|
187
|
-
type: Type;
|
|
188
|
-
id: string;
|
|
189
|
-
/**
|
|
190
|
-
* Application resource attributes
|
|
191
|
-
*/
|
|
192
|
-
attributes?: components.ApplicationAttributes | undefined;
|
|
193
|
-
relationships?: Relationships | undefined;
|
|
194
|
-
/**
|
|
195
|
-
* Standard link object
|
|
196
|
-
*/
|
|
197
|
-
links?: components.Links | undefined;
|
|
198
|
-
meta?: { [k: string]: any } | undefined;
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
export type Attributes = {};
|
|
202
|
-
|
|
203
|
-
export type Two = {
|
|
204
|
-
type: string;
|
|
205
|
-
id: string;
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
export type One = {
|
|
209
|
-
type: string;
|
|
210
|
-
id: string;
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
export type CreateApplicationData = One | Array<Two>;
|
|
214
|
-
|
|
215
|
-
export type CreateApplicationRelationships = {
|
|
216
|
-
data: One | Array<Two> | null;
|
|
217
|
-
/**
|
|
218
|
-
* Standard link object
|
|
219
|
-
*/
|
|
220
|
-
links?: components.Links | undefined;
|
|
221
|
-
meta?: { [k: string]: any } | undefined;
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
export type Included = {
|
|
225
|
-
type: string;
|
|
226
|
-
id: string;
|
|
227
|
-
attributes?: Attributes | undefined;
|
|
228
|
-
relationships?: { [k: string]: CreateApplicationRelationships } | undefined;
|
|
229
|
-
/**
|
|
230
|
-
* Standard link object
|
|
231
|
-
*/
|
|
232
|
-
links?: components.Links | undefined;
|
|
233
|
-
meta?: { [k: string]: any } | undefined;
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* The request has succeeded and a new resource has been created as a result.
|
|
238
|
-
*/
|
|
239
|
-
export type CreateApplicationResponseBody = {
|
|
240
|
-
data: Data;
|
|
241
|
-
included?: Array<Included> | undefined;
|
|
242
|
-
/**
|
|
243
|
-
* Standard link object
|
|
244
|
-
*/
|
|
245
|
-
links?: components.Links | undefined;
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
/** @internal */
|
|
249
|
-
export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
|
|
250
|
-
Type,
|
|
251
|
-
);
|
|
252
|
-
|
|
253
|
-
/** @internal */
|
|
254
|
-
export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
|
|
255
|
-
Type$inboundSchema;
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* @internal
|
|
259
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
260
|
-
*/
|
|
261
|
-
export namespace Type$ {
|
|
262
|
-
/** @deprecated use `Type$inboundSchema` instead. */
|
|
263
|
-
export const inboundSchema = Type$inboundSchema;
|
|
264
|
-
/** @deprecated use `Type$outboundSchema` instead. */
|
|
265
|
-
export const outboundSchema = Type$outboundSchema;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
/** @internal */
|
|
269
|
-
export const CreateApplicationDataType$inboundSchema: z.ZodNativeEnum<
|
|
270
|
-
typeof CreateApplicationDataType
|
|
271
|
-
> = z.nativeEnum(CreateApplicationDataType);
|
|
272
|
-
|
|
273
|
-
/** @internal */
|
|
274
|
-
export const CreateApplicationDataType$outboundSchema: z.ZodNativeEnum<
|
|
275
|
-
typeof CreateApplicationDataType
|
|
276
|
-
> = CreateApplicationDataType$inboundSchema;
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* @internal
|
|
280
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
281
|
-
*/
|
|
282
|
-
export namespace CreateApplicationDataType$ {
|
|
283
|
-
/** @deprecated use `CreateApplicationDataType$inboundSchema` instead. */
|
|
284
|
-
export const inboundSchema = CreateApplicationDataType$inboundSchema;
|
|
285
|
-
/** @deprecated use `CreateApplicationDataType$outboundSchema` instead. */
|
|
286
|
-
export const outboundSchema = CreateApplicationDataType$outboundSchema;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
/** @internal */
|
|
290
|
-
export const CreateApplicationDataApplicationsResponse2$inboundSchema:
|
|
291
|
-
z.ZodType<CreateApplicationDataApplicationsResponse2, z.ZodTypeDef, unknown> =
|
|
292
|
-
z.object({
|
|
293
|
-
type: CreateApplicationDataType$inboundSchema,
|
|
294
|
-
id: z.string(),
|
|
295
|
-
});
|
|
296
|
-
|
|
297
|
-
/** @internal */
|
|
298
|
-
export type CreateApplicationDataApplicationsResponse2$Outbound = {
|
|
299
|
-
type: string;
|
|
300
|
-
id: string;
|
|
301
|
-
};
|
|
302
|
-
|
|
303
|
-
/** @internal */
|
|
304
|
-
export const CreateApplicationDataApplicationsResponse2$outboundSchema:
|
|
305
|
-
z.ZodType<
|
|
306
|
-
CreateApplicationDataApplicationsResponse2$Outbound,
|
|
307
|
-
z.ZodTypeDef,
|
|
308
|
-
CreateApplicationDataApplicationsResponse2
|
|
309
|
-
> = z.object({
|
|
310
|
-
type: CreateApplicationDataType$outboundSchema,
|
|
311
|
-
id: z.string(),
|
|
312
|
-
});
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* @internal
|
|
316
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
317
|
-
*/
|
|
318
|
-
export namespace CreateApplicationDataApplicationsResponse2$ {
|
|
319
|
-
/** @deprecated use `CreateApplicationDataApplicationsResponse2$inboundSchema` instead. */
|
|
320
|
-
export const inboundSchema =
|
|
321
|
-
CreateApplicationDataApplicationsResponse2$inboundSchema;
|
|
322
|
-
/** @deprecated use `CreateApplicationDataApplicationsResponse2$outboundSchema` instead. */
|
|
323
|
-
export const outboundSchema =
|
|
324
|
-
CreateApplicationDataApplicationsResponse2$outboundSchema;
|
|
325
|
-
/** @deprecated use `CreateApplicationDataApplicationsResponse2$Outbound` instead. */
|
|
326
|
-
export type Outbound = CreateApplicationDataApplicationsResponse2$Outbound;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
export function createApplicationDataApplicationsResponse2ToJSON(
|
|
330
|
-
createApplicationDataApplicationsResponse2:
|
|
331
|
-
CreateApplicationDataApplicationsResponse2,
|
|
332
|
-
): string {
|
|
333
|
-
return JSON.stringify(
|
|
334
|
-
CreateApplicationDataApplicationsResponse2$outboundSchema.parse(
|
|
335
|
-
createApplicationDataApplicationsResponse2,
|
|
336
|
-
),
|
|
337
|
-
);
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
export function createApplicationDataApplicationsResponse2FromJSON(
|
|
341
|
-
jsonString: string,
|
|
342
|
-
): SafeParseResult<
|
|
343
|
-
CreateApplicationDataApplicationsResponse2,
|
|
344
|
-
SDKValidationError
|
|
345
|
-
> {
|
|
346
|
-
return safeParse(
|
|
347
|
-
jsonString,
|
|
348
|
-
(x) =>
|
|
349
|
-
CreateApplicationDataApplicationsResponse2$inboundSchema.parse(
|
|
350
|
-
JSON.parse(x),
|
|
351
|
-
),
|
|
352
|
-
`Failed to parse 'CreateApplicationDataApplicationsResponse2' from JSON`,
|
|
353
|
-
);
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
/** @internal */
|
|
357
|
-
export const DataType$inboundSchema: z.ZodNativeEnum<typeof DataType> = z
|
|
358
|
-
.nativeEnum(DataType);
|
|
359
|
-
|
|
360
|
-
/** @internal */
|
|
361
|
-
export const DataType$outboundSchema: z.ZodNativeEnum<typeof DataType> =
|
|
362
|
-
DataType$inboundSchema;
|
|
363
|
-
|
|
364
|
-
/**
|
|
365
|
-
* @internal
|
|
366
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
367
|
-
*/
|
|
368
|
-
export namespace DataType$ {
|
|
369
|
-
/** @deprecated use `DataType$inboundSchema` instead. */
|
|
370
|
-
export const inboundSchema = DataType$inboundSchema;
|
|
371
|
-
/** @deprecated use `DataType$outboundSchema` instead. */
|
|
372
|
-
export const outboundSchema = DataType$outboundSchema;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
/** @internal */
|
|
376
|
-
export const CreateApplicationDataApplicationsResponse1$inboundSchema:
|
|
377
|
-
z.ZodType<CreateApplicationDataApplicationsResponse1, z.ZodTypeDef, unknown> =
|
|
378
|
-
z.object({
|
|
379
|
-
type: DataType$inboundSchema,
|
|
380
|
-
id: z.string(),
|
|
381
|
-
});
|
|
382
|
-
|
|
383
|
-
/** @internal */
|
|
384
|
-
export type CreateApplicationDataApplicationsResponse1$Outbound = {
|
|
385
|
-
type: string;
|
|
386
|
-
id: string;
|
|
387
|
-
};
|
|
388
|
-
|
|
389
|
-
/** @internal */
|
|
390
|
-
export const CreateApplicationDataApplicationsResponse1$outboundSchema:
|
|
391
|
-
z.ZodType<
|
|
392
|
-
CreateApplicationDataApplicationsResponse1$Outbound,
|
|
393
|
-
z.ZodTypeDef,
|
|
394
|
-
CreateApplicationDataApplicationsResponse1
|
|
395
|
-
> = z.object({
|
|
396
|
-
type: DataType$outboundSchema,
|
|
397
|
-
id: z.string(),
|
|
398
|
-
});
|
|
399
|
-
|
|
400
|
-
/**
|
|
401
|
-
* @internal
|
|
402
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
403
|
-
*/
|
|
404
|
-
export namespace CreateApplicationDataApplicationsResponse1$ {
|
|
405
|
-
/** @deprecated use `CreateApplicationDataApplicationsResponse1$inboundSchema` instead. */
|
|
406
|
-
export const inboundSchema =
|
|
407
|
-
CreateApplicationDataApplicationsResponse1$inboundSchema;
|
|
408
|
-
/** @deprecated use `CreateApplicationDataApplicationsResponse1$outboundSchema` instead. */
|
|
409
|
-
export const outboundSchema =
|
|
410
|
-
CreateApplicationDataApplicationsResponse1$outboundSchema;
|
|
411
|
-
/** @deprecated use `CreateApplicationDataApplicationsResponse1$Outbound` instead. */
|
|
412
|
-
export type Outbound = CreateApplicationDataApplicationsResponse1$Outbound;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
export function createApplicationDataApplicationsResponse1ToJSON(
|
|
416
|
-
createApplicationDataApplicationsResponse1:
|
|
417
|
-
CreateApplicationDataApplicationsResponse1,
|
|
418
|
-
): string {
|
|
419
|
-
return JSON.stringify(
|
|
420
|
-
CreateApplicationDataApplicationsResponse1$outboundSchema.parse(
|
|
421
|
-
createApplicationDataApplicationsResponse1,
|
|
422
|
-
),
|
|
423
|
-
);
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
export function createApplicationDataApplicationsResponse1FromJSON(
|
|
427
|
-
jsonString: string,
|
|
428
|
-
): SafeParseResult<
|
|
429
|
-
CreateApplicationDataApplicationsResponse1,
|
|
430
|
-
SDKValidationError
|
|
431
|
-
> {
|
|
432
|
-
return safeParse(
|
|
433
|
-
jsonString,
|
|
434
|
-
(x) =>
|
|
435
|
-
CreateApplicationDataApplicationsResponse1$inboundSchema.parse(
|
|
436
|
-
JSON.parse(x),
|
|
437
|
-
),
|
|
438
|
-
`Failed to parse 'CreateApplicationDataApplicationsResponse1' from JSON`,
|
|
439
|
-
);
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
/** @internal */
|
|
443
|
-
export const CreateApplicationApplicationsResponse201Data$inboundSchema:
|
|
444
|
-
z.ZodType<
|
|
445
|
-
CreateApplicationApplicationsResponse201Data,
|
|
446
|
-
z.ZodTypeDef,
|
|
447
|
-
unknown
|
|
448
|
-
> = z.union([
|
|
449
|
-
z.lazy(() => CreateApplicationDataApplicationsResponse1$inboundSchema),
|
|
450
|
-
z.array(
|
|
451
|
-
z.lazy(() => CreateApplicationDataApplicationsResponse2$inboundSchema),
|
|
452
|
-
),
|
|
453
|
-
]);
|
|
454
|
-
|
|
455
|
-
/** @internal */
|
|
456
|
-
export type CreateApplicationApplicationsResponse201Data$Outbound =
|
|
457
|
-
| CreateApplicationDataApplicationsResponse1$Outbound
|
|
458
|
-
| Array<CreateApplicationDataApplicationsResponse2$Outbound>;
|
|
459
|
-
|
|
460
|
-
/** @internal */
|
|
461
|
-
export const CreateApplicationApplicationsResponse201Data$outboundSchema:
|
|
462
|
-
z.ZodType<
|
|
463
|
-
CreateApplicationApplicationsResponse201Data$Outbound,
|
|
464
|
-
z.ZodTypeDef,
|
|
465
|
-
CreateApplicationApplicationsResponse201Data
|
|
466
|
-
> = z.union([
|
|
467
|
-
z.lazy(() => CreateApplicationDataApplicationsResponse1$outboundSchema),
|
|
468
|
-
z.array(
|
|
469
|
-
z.lazy(() => CreateApplicationDataApplicationsResponse2$outboundSchema),
|
|
470
|
-
),
|
|
471
|
-
]);
|
|
472
|
-
|
|
473
|
-
/**
|
|
474
|
-
* @internal
|
|
475
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
476
|
-
*/
|
|
477
|
-
export namespace CreateApplicationApplicationsResponse201Data$ {
|
|
478
|
-
/** @deprecated use `CreateApplicationApplicationsResponse201Data$inboundSchema` instead. */
|
|
479
|
-
export const inboundSchema =
|
|
480
|
-
CreateApplicationApplicationsResponse201Data$inboundSchema;
|
|
481
|
-
/** @deprecated use `CreateApplicationApplicationsResponse201Data$outboundSchema` instead. */
|
|
482
|
-
export const outboundSchema =
|
|
483
|
-
CreateApplicationApplicationsResponse201Data$outboundSchema;
|
|
484
|
-
/** @deprecated use `CreateApplicationApplicationsResponse201Data$Outbound` instead. */
|
|
485
|
-
export type Outbound = CreateApplicationApplicationsResponse201Data$Outbound;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
export function createApplicationApplicationsResponse201DataToJSON(
|
|
489
|
-
createApplicationApplicationsResponse201Data:
|
|
490
|
-
CreateApplicationApplicationsResponse201Data,
|
|
491
|
-
): string {
|
|
492
|
-
return JSON.stringify(
|
|
493
|
-
CreateApplicationApplicationsResponse201Data$outboundSchema.parse(
|
|
494
|
-
createApplicationApplicationsResponse201Data,
|
|
495
|
-
),
|
|
496
|
-
);
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
export function createApplicationApplicationsResponse201DataFromJSON(
|
|
500
|
-
jsonString: string,
|
|
501
|
-
): SafeParseResult<
|
|
502
|
-
CreateApplicationApplicationsResponse201Data,
|
|
503
|
-
SDKValidationError
|
|
504
|
-
> {
|
|
505
|
-
return safeParse(
|
|
506
|
-
jsonString,
|
|
507
|
-
(x) =>
|
|
508
|
-
CreateApplicationApplicationsResponse201Data$inboundSchema.parse(
|
|
509
|
-
JSON.parse(x),
|
|
510
|
-
),
|
|
511
|
-
`Failed to parse 'CreateApplicationApplicationsResponse201Data' from JSON`,
|
|
512
|
-
);
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
/** @internal */
|
|
516
|
-
export const LoanDetails$inboundSchema: z.ZodType<
|
|
517
|
-
LoanDetails,
|
|
518
|
-
z.ZodTypeDef,
|
|
519
|
-
unknown
|
|
520
|
-
> = z.object({
|
|
521
|
-
data: z.nullable(
|
|
522
|
-
z.union([
|
|
523
|
-
z.lazy(() => CreateApplicationDataApplicationsResponse1$inboundSchema),
|
|
524
|
-
z.array(z.lazy(() =>
|
|
525
|
-
CreateApplicationDataApplicationsResponse2$inboundSchema
|
|
526
|
-
)),
|
|
527
|
-
]),
|
|
528
|
-
),
|
|
529
|
-
links: components.Links$inboundSchema.optional(),
|
|
530
|
-
meta: z.record(z.any()).optional(),
|
|
531
|
-
});
|
|
532
|
-
|
|
533
|
-
/** @internal */
|
|
534
|
-
export type LoanDetails$Outbound = {
|
|
535
|
-
data:
|
|
536
|
-
| CreateApplicationDataApplicationsResponse1$Outbound
|
|
537
|
-
| Array<CreateApplicationDataApplicationsResponse2$Outbound>
|
|
538
|
-
| null;
|
|
539
|
-
links?: components.Links$Outbound | undefined;
|
|
540
|
-
meta?: { [k: string]: any } | undefined;
|
|
541
|
-
};
|
|
542
|
-
|
|
543
|
-
/** @internal */
|
|
544
|
-
export const LoanDetails$outboundSchema: z.ZodType<
|
|
545
|
-
LoanDetails$Outbound,
|
|
546
|
-
z.ZodTypeDef,
|
|
547
|
-
LoanDetails
|
|
548
|
-
> = z.object({
|
|
549
|
-
data: z.nullable(
|
|
550
|
-
z.union([
|
|
551
|
-
z.lazy(() => CreateApplicationDataApplicationsResponse1$outboundSchema),
|
|
552
|
-
z.array(z.lazy(() =>
|
|
553
|
-
CreateApplicationDataApplicationsResponse2$outboundSchema
|
|
554
|
-
)),
|
|
555
|
-
]),
|
|
556
|
-
),
|
|
557
|
-
links: components.Links$outboundSchema.optional(),
|
|
558
|
-
meta: z.record(z.any()).optional(),
|
|
559
|
-
});
|
|
560
|
-
|
|
561
|
-
/**
|
|
562
|
-
* @internal
|
|
563
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
564
|
-
*/
|
|
565
|
-
export namespace LoanDetails$ {
|
|
566
|
-
/** @deprecated use `LoanDetails$inboundSchema` instead. */
|
|
567
|
-
export const inboundSchema = LoanDetails$inboundSchema;
|
|
568
|
-
/** @deprecated use `LoanDetails$outboundSchema` instead. */
|
|
569
|
-
export const outboundSchema = LoanDetails$outboundSchema;
|
|
570
|
-
/** @deprecated use `LoanDetails$Outbound` instead. */
|
|
571
|
-
export type Outbound = LoanDetails$Outbound;
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
export function loanDetailsToJSON(loanDetails: LoanDetails): string {
|
|
575
|
-
return JSON.stringify(LoanDetails$outboundSchema.parse(loanDetails));
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
export function loanDetailsFromJSON(
|
|
579
|
-
jsonString: string,
|
|
580
|
-
): SafeParseResult<LoanDetails, SDKValidationError> {
|
|
581
|
-
return safeParse(
|
|
582
|
-
jsonString,
|
|
583
|
-
(x) => LoanDetails$inboundSchema.parse(JSON.parse(x)),
|
|
584
|
-
`Failed to parse 'LoanDetails' from JSON`,
|
|
585
|
-
);
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
/** @internal */
|
|
589
|
-
export const CreateApplicationDataApplicationsResponseType$inboundSchema:
|
|
590
|
-
z.ZodNativeEnum<typeof CreateApplicationDataApplicationsResponseType> = z
|
|
591
|
-
.nativeEnum(CreateApplicationDataApplicationsResponseType);
|
|
592
|
-
|
|
593
|
-
/** @internal */
|
|
594
|
-
export const CreateApplicationDataApplicationsResponseType$outboundSchema:
|
|
595
|
-
z.ZodNativeEnum<typeof CreateApplicationDataApplicationsResponseType> =
|
|
596
|
-
CreateApplicationDataApplicationsResponseType$inboundSchema;
|
|
597
|
-
|
|
598
|
-
/**
|
|
599
|
-
* @internal
|
|
600
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
601
|
-
*/
|
|
602
|
-
export namespace CreateApplicationDataApplicationsResponseType$ {
|
|
603
|
-
/** @deprecated use `CreateApplicationDataApplicationsResponseType$inboundSchema` instead. */
|
|
604
|
-
export const inboundSchema =
|
|
605
|
-
CreateApplicationDataApplicationsResponseType$inboundSchema;
|
|
606
|
-
/** @deprecated use `CreateApplicationDataApplicationsResponseType$outboundSchema` instead. */
|
|
607
|
-
export const outboundSchema =
|
|
608
|
-
CreateApplicationDataApplicationsResponseType$outboundSchema;
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
/** @internal */
|
|
612
|
-
export const CreateApplicationDataApplicationsResponse2012$inboundSchema:
|
|
613
|
-
z.ZodType<
|
|
614
|
-
CreateApplicationDataApplicationsResponse2012,
|
|
615
|
-
z.ZodTypeDef,
|
|
616
|
-
unknown
|
|
617
|
-
> = z.object({
|
|
618
|
-
type: CreateApplicationDataApplicationsResponseType$inboundSchema,
|
|
619
|
-
id: z.string(),
|
|
620
|
-
});
|
|
621
|
-
|
|
622
|
-
/** @internal */
|
|
623
|
-
export type CreateApplicationDataApplicationsResponse2012$Outbound = {
|
|
624
|
-
type: string;
|
|
625
|
-
id: string;
|
|
626
|
-
};
|
|
627
|
-
|
|
628
|
-
/** @internal */
|
|
629
|
-
export const CreateApplicationDataApplicationsResponse2012$outboundSchema:
|
|
630
|
-
z.ZodType<
|
|
631
|
-
CreateApplicationDataApplicationsResponse2012$Outbound,
|
|
632
|
-
z.ZodTypeDef,
|
|
633
|
-
CreateApplicationDataApplicationsResponse2012
|
|
634
|
-
> = z.object({
|
|
635
|
-
type: CreateApplicationDataApplicationsResponseType$outboundSchema,
|
|
636
|
-
id: z.string(),
|
|
637
|
-
});
|
|
638
|
-
|
|
639
|
-
/**
|
|
640
|
-
* @internal
|
|
641
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
642
|
-
*/
|
|
643
|
-
export namespace CreateApplicationDataApplicationsResponse2012$ {
|
|
644
|
-
/** @deprecated use `CreateApplicationDataApplicationsResponse2012$inboundSchema` instead. */
|
|
645
|
-
export const inboundSchema =
|
|
646
|
-
CreateApplicationDataApplicationsResponse2012$inboundSchema;
|
|
647
|
-
/** @deprecated use `CreateApplicationDataApplicationsResponse2012$outboundSchema` instead. */
|
|
648
|
-
export const outboundSchema =
|
|
649
|
-
CreateApplicationDataApplicationsResponse2012$outboundSchema;
|
|
650
|
-
/** @deprecated use `CreateApplicationDataApplicationsResponse2012$Outbound` instead. */
|
|
651
|
-
export type Outbound = CreateApplicationDataApplicationsResponse2012$Outbound;
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
export function createApplicationDataApplicationsResponse2012ToJSON(
|
|
655
|
-
createApplicationDataApplicationsResponse2012:
|
|
656
|
-
CreateApplicationDataApplicationsResponse2012,
|
|
657
|
-
): string {
|
|
658
|
-
return JSON.stringify(
|
|
659
|
-
CreateApplicationDataApplicationsResponse2012$outboundSchema.parse(
|
|
660
|
-
createApplicationDataApplicationsResponse2012,
|
|
661
|
-
),
|
|
662
|
-
);
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
export function createApplicationDataApplicationsResponse2012FromJSON(
|
|
666
|
-
jsonString: string,
|
|
667
|
-
): SafeParseResult<
|
|
668
|
-
CreateApplicationDataApplicationsResponse2012,
|
|
669
|
-
SDKValidationError
|
|
670
|
-
> {
|
|
671
|
-
return safeParse(
|
|
672
|
-
jsonString,
|
|
673
|
-
(x) =>
|
|
674
|
-
CreateApplicationDataApplicationsResponse2012$inboundSchema.parse(
|
|
675
|
-
JSON.parse(x),
|
|
676
|
-
),
|
|
677
|
-
`Failed to parse 'CreateApplicationDataApplicationsResponse2012' from JSON`,
|
|
678
|
-
);
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
/** @internal */
|
|
682
|
-
export const CreateApplicationDataApplicationsType$inboundSchema:
|
|
683
|
-
z.ZodNativeEnum<typeof CreateApplicationDataApplicationsType> = z.nativeEnum(
|
|
684
|
-
CreateApplicationDataApplicationsType,
|
|
685
|
-
);
|
|
686
|
-
|
|
687
|
-
/** @internal */
|
|
688
|
-
export const CreateApplicationDataApplicationsType$outboundSchema:
|
|
689
|
-
z.ZodNativeEnum<typeof CreateApplicationDataApplicationsType> =
|
|
690
|
-
CreateApplicationDataApplicationsType$inboundSchema;
|
|
691
|
-
|
|
692
|
-
/**
|
|
693
|
-
* @internal
|
|
694
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
695
|
-
*/
|
|
696
|
-
export namespace CreateApplicationDataApplicationsType$ {
|
|
697
|
-
/** @deprecated use `CreateApplicationDataApplicationsType$inboundSchema` instead. */
|
|
698
|
-
export const inboundSchema =
|
|
699
|
-
CreateApplicationDataApplicationsType$inboundSchema;
|
|
700
|
-
/** @deprecated use `CreateApplicationDataApplicationsType$outboundSchema` instead. */
|
|
701
|
-
export const outboundSchema =
|
|
702
|
-
CreateApplicationDataApplicationsType$outboundSchema;
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
/** @internal */
|
|
706
|
-
export const CreateApplicationDataApplicationsResponse2011$inboundSchema:
|
|
707
|
-
z.ZodType<
|
|
708
|
-
CreateApplicationDataApplicationsResponse2011,
|
|
709
|
-
z.ZodTypeDef,
|
|
710
|
-
unknown
|
|
711
|
-
> = z.object({
|
|
712
|
-
type: CreateApplicationDataApplicationsType$inboundSchema,
|
|
713
|
-
id: z.string(),
|
|
714
|
-
});
|
|
715
|
-
|
|
716
|
-
/** @internal */
|
|
717
|
-
export type CreateApplicationDataApplicationsResponse2011$Outbound = {
|
|
718
|
-
type: string;
|
|
719
|
-
id: string;
|
|
720
|
-
};
|
|
721
|
-
|
|
722
|
-
/** @internal */
|
|
723
|
-
export const CreateApplicationDataApplicationsResponse2011$outboundSchema:
|
|
724
|
-
z.ZodType<
|
|
725
|
-
CreateApplicationDataApplicationsResponse2011$Outbound,
|
|
726
|
-
z.ZodTypeDef,
|
|
727
|
-
CreateApplicationDataApplicationsResponse2011
|
|
728
|
-
> = z.object({
|
|
729
|
-
type: CreateApplicationDataApplicationsType$outboundSchema,
|
|
730
|
-
id: z.string(),
|
|
731
|
-
});
|
|
732
|
-
|
|
733
|
-
/**
|
|
734
|
-
* @internal
|
|
735
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
736
|
-
*/
|
|
737
|
-
export namespace CreateApplicationDataApplicationsResponse2011$ {
|
|
738
|
-
/** @deprecated use `CreateApplicationDataApplicationsResponse2011$inboundSchema` instead. */
|
|
739
|
-
export const inboundSchema =
|
|
740
|
-
CreateApplicationDataApplicationsResponse2011$inboundSchema;
|
|
741
|
-
/** @deprecated use `CreateApplicationDataApplicationsResponse2011$outboundSchema` instead. */
|
|
742
|
-
export const outboundSchema =
|
|
743
|
-
CreateApplicationDataApplicationsResponse2011$outboundSchema;
|
|
744
|
-
/** @deprecated use `CreateApplicationDataApplicationsResponse2011$Outbound` instead. */
|
|
745
|
-
export type Outbound = CreateApplicationDataApplicationsResponse2011$Outbound;
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
export function createApplicationDataApplicationsResponse2011ToJSON(
|
|
749
|
-
createApplicationDataApplicationsResponse2011:
|
|
750
|
-
CreateApplicationDataApplicationsResponse2011,
|
|
751
|
-
): string {
|
|
752
|
-
return JSON.stringify(
|
|
753
|
-
CreateApplicationDataApplicationsResponse2011$outboundSchema.parse(
|
|
754
|
-
createApplicationDataApplicationsResponse2011,
|
|
755
|
-
),
|
|
756
|
-
);
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
export function createApplicationDataApplicationsResponse2011FromJSON(
|
|
760
|
-
jsonString: string,
|
|
761
|
-
): SafeParseResult<
|
|
762
|
-
CreateApplicationDataApplicationsResponse2011,
|
|
763
|
-
SDKValidationError
|
|
764
|
-
> {
|
|
765
|
-
return safeParse(
|
|
766
|
-
jsonString,
|
|
767
|
-
(x) =>
|
|
768
|
-
CreateApplicationDataApplicationsResponse2011$inboundSchema.parse(
|
|
769
|
-
JSON.parse(x),
|
|
770
|
-
),
|
|
771
|
-
`Failed to parse 'CreateApplicationDataApplicationsResponse2011' from JSON`,
|
|
772
|
-
);
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
/** @internal */
|
|
776
|
-
export const CreateApplicationApplicationsResponse201ApplicationJSONData$inboundSchema:
|
|
777
|
-
z.ZodType<
|
|
778
|
-
CreateApplicationApplicationsResponse201ApplicationJSONData,
|
|
779
|
-
z.ZodTypeDef,
|
|
780
|
-
unknown
|
|
781
|
-
> = z.union([
|
|
782
|
-
z.lazy(() => CreateApplicationDataApplicationsResponse2011$inboundSchema),
|
|
783
|
-
z.array(
|
|
784
|
-
z.lazy(() => CreateApplicationDataApplicationsResponse2012$inboundSchema),
|
|
785
|
-
),
|
|
786
|
-
]);
|
|
787
|
-
|
|
788
|
-
/** @internal */
|
|
789
|
-
export type CreateApplicationApplicationsResponse201ApplicationJSONData$Outbound =
|
|
790
|
-
| CreateApplicationDataApplicationsResponse2011$Outbound
|
|
791
|
-
| Array<CreateApplicationDataApplicationsResponse2012$Outbound>;
|
|
792
|
-
|
|
793
|
-
/** @internal */
|
|
794
|
-
export const CreateApplicationApplicationsResponse201ApplicationJSONData$outboundSchema:
|
|
795
|
-
z.ZodType<
|
|
796
|
-
CreateApplicationApplicationsResponse201ApplicationJSONData$Outbound,
|
|
797
|
-
z.ZodTypeDef,
|
|
798
|
-
CreateApplicationApplicationsResponse201ApplicationJSONData
|
|
799
|
-
> = z.union([
|
|
800
|
-
z.lazy(() => CreateApplicationDataApplicationsResponse2011$outboundSchema),
|
|
801
|
-
z.array(
|
|
802
|
-
z.lazy(() =>
|
|
803
|
-
CreateApplicationDataApplicationsResponse2012$outboundSchema
|
|
804
|
-
),
|
|
805
|
-
),
|
|
806
|
-
]);
|
|
807
|
-
|
|
808
|
-
/**
|
|
809
|
-
* @internal
|
|
810
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
811
|
-
*/
|
|
812
|
-
export namespace CreateApplicationApplicationsResponse201ApplicationJSONData$ {
|
|
813
|
-
/** @deprecated use `CreateApplicationApplicationsResponse201ApplicationJSONData$inboundSchema` instead. */
|
|
814
|
-
export const inboundSchema =
|
|
815
|
-
CreateApplicationApplicationsResponse201ApplicationJSONData$inboundSchema;
|
|
816
|
-
/** @deprecated use `CreateApplicationApplicationsResponse201ApplicationJSONData$outboundSchema` instead. */
|
|
817
|
-
export const outboundSchema =
|
|
818
|
-
CreateApplicationApplicationsResponse201ApplicationJSONData$outboundSchema;
|
|
819
|
-
/** @deprecated use `CreateApplicationApplicationsResponse201ApplicationJSONData$Outbound` instead. */
|
|
820
|
-
export type Outbound =
|
|
821
|
-
CreateApplicationApplicationsResponse201ApplicationJSONData$Outbound;
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
export function createApplicationApplicationsResponse201ApplicationJSONDataToJSON(
|
|
825
|
-
createApplicationApplicationsResponse201ApplicationJSONData:
|
|
826
|
-
CreateApplicationApplicationsResponse201ApplicationJSONData,
|
|
827
|
-
): string {
|
|
828
|
-
return JSON.stringify(
|
|
829
|
-
CreateApplicationApplicationsResponse201ApplicationJSONData$outboundSchema
|
|
830
|
-
.parse(createApplicationApplicationsResponse201ApplicationJSONData),
|
|
831
|
-
);
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
export function createApplicationApplicationsResponse201ApplicationJSONDataFromJSON(
|
|
835
|
-
jsonString: string,
|
|
836
|
-
): SafeParseResult<
|
|
837
|
-
CreateApplicationApplicationsResponse201ApplicationJSONData,
|
|
838
|
-
SDKValidationError
|
|
839
|
-
> {
|
|
840
|
-
return safeParse(
|
|
841
|
-
jsonString,
|
|
842
|
-
(x) =>
|
|
843
|
-
CreateApplicationApplicationsResponse201ApplicationJSONData$inboundSchema
|
|
844
|
-
.parse(JSON.parse(x)),
|
|
845
|
-
`Failed to parse 'CreateApplicationApplicationsResponse201ApplicationJSONData' from JSON`,
|
|
846
|
-
);
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
/** @internal */
|
|
850
|
-
export const Customers$inboundSchema: z.ZodType<
|
|
851
|
-
Customers,
|
|
852
|
-
z.ZodTypeDef,
|
|
853
|
-
unknown
|
|
854
|
-
> = z.object({
|
|
855
|
-
data: z.nullable(
|
|
856
|
-
z.union([
|
|
857
|
-
z.lazy(() => CreateApplicationDataApplicationsResponse2011$inboundSchema),
|
|
858
|
-
z.array(z.lazy(() =>
|
|
859
|
-
CreateApplicationDataApplicationsResponse2012$inboundSchema
|
|
860
|
-
)),
|
|
861
|
-
]),
|
|
862
|
-
),
|
|
863
|
-
links: components.Links$inboundSchema.optional(),
|
|
864
|
-
meta: z.record(z.any()).optional(),
|
|
865
|
-
});
|
|
866
|
-
|
|
867
|
-
/** @internal */
|
|
868
|
-
export type Customers$Outbound = {
|
|
869
|
-
data:
|
|
870
|
-
| CreateApplicationDataApplicationsResponse2011$Outbound
|
|
871
|
-
| Array<CreateApplicationDataApplicationsResponse2012$Outbound>
|
|
872
|
-
| null;
|
|
873
|
-
links?: components.Links$Outbound | undefined;
|
|
874
|
-
meta?: { [k: string]: any } | undefined;
|
|
875
|
-
};
|
|
876
|
-
|
|
877
|
-
/** @internal */
|
|
878
|
-
export const Customers$outboundSchema: z.ZodType<
|
|
879
|
-
Customers$Outbound,
|
|
880
|
-
z.ZodTypeDef,
|
|
881
|
-
Customers
|
|
882
|
-
> = z.object({
|
|
883
|
-
data: z.nullable(
|
|
884
|
-
z.union([
|
|
885
|
-
z.lazy(() =>
|
|
886
|
-
CreateApplicationDataApplicationsResponse2011$outboundSchema
|
|
887
|
-
),
|
|
888
|
-
z.array(
|
|
889
|
-
z.lazy(() =>
|
|
890
|
-
CreateApplicationDataApplicationsResponse2012$outboundSchema
|
|
891
|
-
),
|
|
892
|
-
),
|
|
893
|
-
]),
|
|
894
|
-
),
|
|
895
|
-
links: components.Links$outboundSchema.optional(),
|
|
896
|
-
meta: z.record(z.any()).optional(),
|
|
897
|
-
});
|
|
898
|
-
|
|
899
|
-
/**
|
|
900
|
-
* @internal
|
|
901
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
902
|
-
*/
|
|
903
|
-
export namespace Customers$ {
|
|
904
|
-
/** @deprecated use `Customers$inboundSchema` instead. */
|
|
905
|
-
export const inboundSchema = Customers$inboundSchema;
|
|
906
|
-
/** @deprecated use `Customers$outboundSchema` instead. */
|
|
907
|
-
export const outboundSchema = Customers$outboundSchema;
|
|
908
|
-
/** @deprecated use `Customers$Outbound` instead. */
|
|
909
|
-
export type Outbound = Customers$Outbound;
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
export function customersToJSON(customers: Customers): string {
|
|
913
|
-
return JSON.stringify(Customers$outboundSchema.parse(customers));
|
|
914
|
-
}
|
|
915
|
-
|
|
916
|
-
export function customersFromJSON(
|
|
917
|
-
jsonString: string,
|
|
918
|
-
): SafeParseResult<Customers, SDKValidationError> {
|
|
919
|
-
return safeParse(
|
|
920
|
-
jsonString,
|
|
921
|
-
(x) => Customers$inboundSchema.parse(JSON.parse(x)),
|
|
922
|
-
`Failed to parse 'Customers' from JSON`,
|
|
923
|
-
);
|
|
924
|
-
}
|
|
925
|
-
|
|
926
|
-
/** @internal */
|
|
927
|
-
export const CreateApplicationDataApplicationsResponse201ApplicationJSONType$inboundSchema:
|
|
928
|
-
z.ZodNativeEnum<
|
|
929
|
-
typeof CreateApplicationDataApplicationsResponse201ApplicationJSONType
|
|
930
|
-
> = z.nativeEnum(
|
|
931
|
-
CreateApplicationDataApplicationsResponse201ApplicationJSONType,
|
|
932
|
-
);
|
|
933
|
-
|
|
934
|
-
/** @internal */
|
|
935
|
-
export const CreateApplicationDataApplicationsResponse201ApplicationJSONType$outboundSchema:
|
|
936
|
-
z.ZodNativeEnum<
|
|
937
|
-
typeof CreateApplicationDataApplicationsResponse201ApplicationJSONType
|
|
938
|
-
> =
|
|
939
|
-
CreateApplicationDataApplicationsResponse201ApplicationJSONType$inboundSchema;
|
|
940
|
-
|
|
941
|
-
/**
|
|
942
|
-
* @internal
|
|
943
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
944
|
-
*/
|
|
945
|
-
export namespace CreateApplicationDataApplicationsResponse201ApplicationJSONType$ {
|
|
946
|
-
/** @deprecated use `CreateApplicationDataApplicationsResponse201ApplicationJSONType$inboundSchema` instead. */
|
|
947
|
-
export const inboundSchema =
|
|
948
|
-
CreateApplicationDataApplicationsResponse201ApplicationJSONType$inboundSchema;
|
|
949
|
-
/** @deprecated use `CreateApplicationDataApplicationsResponse201ApplicationJSONType$outboundSchema` instead. */
|
|
950
|
-
export const outboundSchema =
|
|
951
|
-
CreateApplicationDataApplicationsResponse201ApplicationJSONType$outboundSchema;
|
|
952
|
-
}
|
|
953
|
-
|
|
954
|
-
/** @internal */
|
|
955
|
-
export const CreateApplicationData2$inboundSchema: z.ZodType<
|
|
956
|
-
CreateApplicationData2,
|
|
957
|
-
z.ZodTypeDef,
|
|
958
|
-
unknown
|
|
959
|
-
> = z.object({
|
|
960
|
-
type:
|
|
961
|
-
CreateApplicationDataApplicationsResponse201ApplicationJSONType$inboundSchema,
|
|
962
|
-
id: z.string(),
|
|
963
|
-
});
|
|
964
|
-
|
|
965
|
-
/** @internal */
|
|
966
|
-
export type CreateApplicationData2$Outbound = {
|
|
967
|
-
type: string;
|
|
968
|
-
id: string;
|
|
969
|
-
};
|
|
970
|
-
|
|
971
|
-
/** @internal */
|
|
972
|
-
export const CreateApplicationData2$outboundSchema: z.ZodType<
|
|
973
|
-
CreateApplicationData2$Outbound,
|
|
974
|
-
z.ZodTypeDef,
|
|
975
|
-
CreateApplicationData2
|
|
976
|
-
> = z.object({
|
|
977
|
-
type:
|
|
978
|
-
CreateApplicationDataApplicationsResponse201ApplicationJSONType$outboundSchema,
|
|
979
|
-
id: z.string(),
|
|
980
|
-
});
|
|
981
|
-
|
|
982
|
-
/**
|
|
983
|
-
* @internal
|
|
984
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
985
|
-
*/
|
|
986
|
-
export namespace CreateApplicationData2$ {
|
|
987
|
-
/** @deprecated use `CreateApplicationData2$inboundSchema` instead. */
|
|
988
|
-
export const inboundSchema = CreateApplicationData2$inboundSchema;
|
|
989
|
-
/** @deprecated use `CreateApplicationData2$outboundSchema` instead. */
|
|
990
|
-
export const outboundSchema = CreateApplicationData2$outboundSchema;
|
|
991
|
-
/** @deprecated use `CreateApplicationData2$Outbound` instead. */
|
|
992
|
-
export type Outbound = CreateApplicationData2$Outbound;
|
|
993
|
-
}
|
|
994
|
-
|
|
995
|
-
export function createApplicationData2ToJSON(
|
|
996
|
-
createApplicationData2: CreateApplicationData2,
|
|
997
|
-
): string {
|
|
998
|
-
return JSON.stringify(
|
|
999
|
-
CreateApplicationData2$outboundSchema.parse(createApplicationData2),
|
|
1000
|
-
);
|
|
1001
|
-
}
|
|
1002
|
-
|
|
1003
|
-
export function createApplicationData2FromJSON(
|
|
1004
|
-
jsonString: string,
|
|
1005
|
-
): SafeParseResult<CreateApplicationData2, SDKValidationError> {
|
|
1006
|
-
return safeParse(
|
|
1007
|
-
jsonString,
|
|
1008
|
-
(x) => CreateApplicationData2$inboundSchema.parse(JSON.parse(x)),
|
|
1009
|
-
`Failed to parse 'CreateApplicationData2' from JSON`,
|
|
1010
|
-
);
|
|
1011
|
-
}
|
|
1012
|
-
|
|
1013
|
-
/** @internal */
|
|
1014
|
-
export const CreateApplicationDataApplicationsResponse201Type$inboundSchema:
|
|
1015
|
-
z.ZodNativeEnum<typeof CreateApplicationDataApplicationsResponse201Type> = z
|
|
1016
|
-
.nativeEnum(CreateApplicationDataApplicationsResponse201Type);
|
|
1017
|
-
|
|
1018
|
-
/** @internal */
|
|
1019
|
-
export const CreateApplicationDataApplicationsResponse201Type$outboundSchema:
|
|
1020
|
-
z.ZodNativeEnum<typeof CreateApplicationDataApplicationsResponse201Type> =
|
|
1021
|
-
CreateApplicationDataApplicationsResponse201Type$inboundSchema;
|
|
1022
|
-
|
|
1023
|
-
/**
|
|
1024
|
-
* @internal
|
|
1025
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1026
|
-
*/
|
|
1027
|
-
export namespace CreateApplicationDataApplicationsResponse201Type$ {
|
|
1028
|
-
/** @deprecated use `CreateApplicationDataApplicationsResponse201Type$inboundSchema` instead. */
|
|
1029
|
-
export const inboundSchema =
|
|
1030
|
-
CreateApplicationDataApplicationsResponse201Type$inboundSchema;
|
|
1031
|
-
/** @deprecated use `CreateApplicationDataApplicationsResponse201Type$outboundSchema` instead. */
|
|
1032
|
-
export const outboundSchema =
|
|
1033
|
-
CreateApplicationDataApplicationsResponse201Type$outboundSchema;
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
|
-
/** @internal */
|
|
1037
|
-
export const CreateApplicationData1$inboundSchema: z.ZodType<
|
|
1038
|
-
CreateApplicationData1,
|
|
1039
|
-
z.ZodTypeDef,
|
|
1040
|
-
unknown
|
|
1041
|
-
> = z.object({
|
|
1042
|
-
type: CreateApplicationDataApplicationsResponse201Type$inboundSchema,
|
|
1043
|
-
id: z.string(),
|
|
1044
|
-
});
|
|
1045
|
-
|
|
1046
|
-
/** @internal */
|
|
1047
|
-
export type CreateApplicationData1$Outbound = {
|
|
1048
|
-
type: string;
|
|
1049
|
-
id: string;
|
|
1050
|
-
};
|
|
1051
|
-
|
|
1052
|
-
/** @internal */
|
|
1053
|
-
export const CreateApplicationData1$outboundSchema: z.ZodType<
|
|
1054
|
-
CreateApplicationData1$Outbound,
|
|
1055
|
-
z.ZodTypeDef,
|
|
1056
|
-
CreateApplicationData1
|
|
1057
|
-
> = z.object({
|
|
1058
|
-
type: CreateApplicationDataApplicationsResponse201Type$outboundSchema,
|
|
1059
|
-
id: z.string(),
|
|
1060
|
-
});
|
|
1061
|
-
|
|
1062
|
-
/**
|
|
1063
|
-
* @internal
|
|
1064
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1065
|
-
*/
|
|
1066
|
-
export namespace CreateApplicationData1$ {
|
|
1067
|
-
/** @deprecated use `CreateApplicationData1$inboundSchema` instead. */
|
|
1068
|
-
export const inboundSchema = CreateApplicationData1$inboundSchema;
|
|
1069
|
-
/** @deprecated use `CreateApplicationData1$outboundSchema` instead. */
|
|
1070
|
-
export const outboundSchema = CreateApplicationData1$outboundSchema;
|
|
1071
|
-
/** @deprecated use `CreateApplicationData1$Outbound` instead. */
|
|
1072
|
-
export type Outbound = CreateApplicationData1$Outbound;
|
|
1073
|
-
}
|
|
1074
|
-
|
|
1075
|
-
export function createApplicationData1ToJSON(
|
|
1076
|
-
createApplicationData1: CreateApplicationData1,
|
|
1077
|
-
): string {
|
|
1078
|
-
return JSON.stringify(
|
|
1079
|
-
CreateApplicationData1$outboundSchema.parse(createApplicationData1),
|
|
1080
|
-
);
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
export function createApplicationData1FromJSON(
|
|
1084
|
-
jsonString: string,
|
|
1085
|
-
): SafeParseResult<CreateApplicationData1, SDKValidationError> {
|
|
1086
|
-
return safeParse(
|
|
1087
|
-
jsonString,
|
|
1088
|
-
(x) => CreateApplicationData1$inboundSchema.parse(JSON.parse(x)),
|
|
1089
|
-
`Failed to parse 'CreateApplicationData1' from JSON`,
|
|
1090
|
-
);
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
|
-
/** @internal */
|
|
1094
|
-
export const CreateApplicationApplicationsData$inboundSchema: z.ZodType<
|
|
1095
|
-
CreateApplicationApplicationsData,
|
|
1096
|
-
z.ZodTypeDef,
|
|
1097
|
-
unknown
|
|
1098
|
-
> = z.union([
|
|
1099
|
-
z.lazy(() => CreateApplicationData1$inboundSchema),
|
|
1100
|
-
z.array(z.lazy(() => CreateApplicationData2$inboundSchema)),
|
|
1101
|
-
]);
|
|
1102
|
-
|
|
1103
|
-
/** @internal */
|
|
1104
|
-
export type CreateApplicationApplicationsData$Outbound =
|
|
1105
|
-
| CreateApplicationData1$Outbound
|
|
1106
|
-
| Array<CreateApplicationData2$Outbound>;
|
|
1107
|
-
|
|
1108
|
-
/** @internal */
|
|
1109
|
-
export const CreateApplicationApplicationsData$outboundSchema: z.ZodType<
|
|
1110
|
-
CreateApplicationApplicationsData$Outbound,
|
|
1111
|
-
z.ZodTypeDef,
|
|
1112
|
-
CreateApplicationApplicationsData
|
|
1113
|
-
> = z.union([
|
|
1114
|
-
z.lazy(() => CreateApplicationData1$outboundSchema),
|
|
1115
|
-
z.array(z.lazy(() => CreateApplicationData2$outboundSchema)),
|
|
1116
|
-
]);
|
|
1117
|
-
|
|
1118
|
-
/**
|
|
1119
|
-
* @internal
|
|
1120
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1121
|
-
*/
|
|
1122
|
-
export namespace CreateApplicationApplicationsData$ {
|
|
1123
|
-
/** @deprecated use `CreateApplicationApplicationsData$inboundSchema` instead. */
|
|
1124
|
-
export const inboundSchema = CreateApplicationApplicationsData$inboundSchema;
|
|
1125
|
-
/** @deprecated use `CreateApplicationApplicationsData$outboundSchema` instead. */
|
|
1126
|
-
export const outboundSchema =
|
|
1127
|
-
CreateApplicationApplicationsData$outboundSchema;
|
|
1128
|
-
/** @deprecated use `CreateApplicationApplicationsData$Outbound` instead. */
|
|
1129
|
-
export type Outbound = CreateApplicationApplicationsData$Outbound;
|
|
1130
|
-
}
|
|
1131
|
-
|
|
1132
|
-
export function createApplicationApplicationsDataToJSON(
|
|
1133
|
-
createApplicationApplicationsData: CreateApplicationApplicationsData,
|
|
1134
|
-
): string {
|
|
1135
|
-
return JSON.stringify(
|
|
1136
|
-
CreateApplicationApplicationsData$outboundSchema.parse(
|
|
1137
|
-
createApplicationApplicationsData,
|
|
1138
|
-
),
|
|
1139
|
-
);
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
export function createApplicationApplicationsDataFromJSON(
|
|
1143
|
-
jsonString: string,
|
|
1144
|
-
): SafeParseResult<CreateApplicationApplicationsData, SDKValidationError> {
|
|
1145
|
-
return safeParse(
|
|
1146
|
-
jsonString,
|
|
1147
|
-
(x) => CreateApplicationApplicationsData$inboundSchema.parse(JSON.parse(x)),
|
|
1148
|
-
`Failed to parse 'CreateApplicationApplicationsData' from JSON`,
|
|
1149
|
-
);
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
|
-
/** @internal */
|
|
1153
|
-
export const Asset$inboundSchema: z.ZodType<Asset, z.ZodTypeDef, unknown> = z
|
|
1154
|
-
.object({
|
|
1155
|
-
data: z.nullable(
|
|
1156
|
-
z.union([
|
|
1157
|
-
z.lazy(() => CreateApplicationData1$inboundSchema),
|
|
1158
|
-
z.array(z.lazy(() => CreateApplicationData2$inboundSchema)),
|
|
1159
|
-
]),
|
|
1160
|
-
),
|
|
1161
|
-
links: components.Links$inboundSchema.optional(),
|
|
1162
|
-
meta: z.record(z.any()).optional(),
|
|
1163
|
-
});
|
|
1164
|
-
|
|
1165
|
-
/** @internal */
|
|
1166
|
-
export type Asset$Outbound = {
|
|
1167
|
-
data:
|
|
1168
|
-
| CreateApplicationData1$Outbound
|
|
1169
|
-
| Array<CreateApplicationData2$Outbound>
|
|
1170
|
-
| null;
|
|
1171
|
-
links?: components.Links$Outbound | undefined;
|
|
1172
|
-
meta?: { [k: string]: any } | undefined;
|
|
1173
|
-
};
|
|
1174
|
-
|
|
1175
|
-
/** @internal */
|
|
1176
|
-
export const Asset$outboundSchema: z.ZodType<
|
|
1177
|
-
Asset$Outbound,
|
|
1178
|
-
z.ZodTypeDef,
|
|
1179
|
-
Asset
|
|
1180
|
-
> = z.object({
|
|
1181
|
-
data: z.nullable(
|
|
1182
|
-
z.union([
|
|
1183
|
-
z.lazy(() => CreateApplicationData1$outboundSchema),
|
|
1184
|
-
z.array(z.lazy(() => CreateApplicationData2$outboundSchema)),
|
|
1185
|
-
]),
|
|
1186
|
-
),
|
|
1187
|
-
links: components.Links$outboundSchema.optional(),
|
|
1188
|
-
meta: z.record(z.any()).optional(),
|
|
1189
|
-
});
|
|
1190
|
-
|
|
1191
|
-
/**
|
|
1192
|
-
* @internal
|
|
1193
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1194
|
-
*/
|
|
1195
|
-
export namespace Asset$ {
|
|
1196
|
-
/** @deprecated use `Asset$inboundSchema` instead. */
|
|
1197
|
-
export const inboundSchema = Asset$inboundSchema;
|
|
1198
|
-
/** @deprecated use `Asset$outboundSchema` instead. */
|
|
1199
|
-
export const outboundSchema = Asset$outboundSchema;
|
|
1200
|
-
/** @deprecated use `Asset$Outbound` instead. */
|
|
1201
|
-
export type Outbound = Asset$Outbound;
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
export function assetToJSON(asset: Asset): string {
|
|
1205
|
-
return JSON.stringify(Asset$outboundSchema.parse(asset));
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
export function assetFromJSON(
|
|
1209
|
-
jsonString: string,
|
|
1210
|
-
): SafeParseResult<Asset, SDKValidationError> {
|
|
1211
|
-
return safeParse(
|
|
1212
|
-
jsonString,
|
|
1213
|
-
(x) => Asset$inboundSchema.parse(JSON.parse(x)),
|
|
1214
|
-
`Failed to parse 'Asset' from JSON`,
|
|
1215
|
-
);
|
|
1216
|
-
}
|
|
1217
|
-
|
|
1218
|
-
/** @internal */
|
|
1219
|
-
export const CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType$inboundSchema:
|
|
1220
|
-
z.ZodNativeEnum<
|
|
1221
|
-
typeof CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType
|
|
1222
|
-
> = z.nativeEnum(
|
|
1223
|
-
CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType,
|
|
1224
|
-
);
|
|
1225
|
-
|
|
1226
|
-
/** @internal */
|
|
1227
|
-
export const CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType$outboundSchema:
|
|
1228
|
-
z.ZodNativeEnum<
|
|
1229
|
-
typeof CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType
|
|
1230
|
-
> =
|
|
1231
|
-
CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType$inboundSchema;
|
|
1232
|
-
|
|
1233
|
-
/**
|
|
1234
|
-
* @internal
|
|
1235
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1236
|
-
*/
|
|
1237
|
-
export namespace CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType$ {
|
|
1238
|
-
/** @deprecated use `CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType$inboundSchema` instead. */
|
|
1239
|
-
export const inboundSchema =
|
|
1240
|
-
CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType$inboundSchema;
|
|
1241
|
-
/** @deprecated use `CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType$outboundSchema` instead. */
|
|
1242
|
-
export const outboundSchema =
|
|
1243
|
-
CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType$outboundSchema;
|
|
1244
|
-
}
|
|
1245
|
-
|
|
1246
|
-
/** @internal */
|
|
1247
|
-
export const CreateApplicationDataApplications2$inboundSchema: z.ZodType<
|
|
1248
|
-
CreateApplicationDataApplications2,
|
|
1249
|
-
z.ZodTypeDef,
|
|
1250
|
-
unknown
|
|
1251
|
-
> = z.object({
|
|
1252
|
-
type:
|
|
1253
|
-
CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType$inboundSchema,
|
|
1254
|
-
id: z.string(),
|
|
1255
|
-
});
|
|
1256
|
-
|
|
1257
|
-
/** @internal */
|
|
1258
|
-
export type CreateApplicationDataApplications2$Outbound = {
|
|
1259
|
-
type: string;
|
|
1260
|
-
id: string;
|
|
1261
|
-
};
|
|
1262
|
-
|
|
1263
|
-
/** @internal */
|
|
1264
|
-
export const CreateApplicationDataApplications2$outboundSchema: z.ZodType<
|
|
1265
|
-
CreateApplicationDataApplications2$Outbound,
|
|
1266
|
-
z.ZodTypeDef,
|
|
1267
|
-
CreateApplicationDataApplications2
|
|
1268
|
-
> = z.object({
|
|
1269
|
-
type:
|
|
1270
|
-
CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyDataType$outboundSchema,
|
|
1271
|
-
id: z.string(),
|
|
1272
|
-
});
|
|
1273
|
-
|
|
1274
|
-
/**
|
|
1275
|
-
* @internal
|
|
1276
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1277
|
-
*/
|
|
1278
|
-
export namespace CreateApplicationDataApplications2$ {
|
|
1279
|
-
/** @deprecated use `CreateApplicationDataApplications2$inboundSchema` instead. */
|
|
1280
|
-
export const inboundSchema = CreateApplicationDataApplications2$inboundSchema;
|
|
1281
|
-
/** @deprecated use `CreateApplicationDataApplications2$outboundSchema` instead. */
|
|
1282
|
-
export const outboundSchema =
|
|
1283
|
-
CreateApplicationDataApplications2$outboundSchema;
|
|
1284
|
-
/** @deprecated use `CreateApplicationDataApplications2$Outbound` instead. */
|
|
1285
|
-
export type Outbound = CreateApplicationDataApplications2$Outbound;
|
|
1286
|
-
}
|
|
1287
|
-
|
|
1288
|
-
export function createApplicationDataApplications2ToJSON(
|
|
1289
|
-
createApplicationDataApplications2: CreateApplicationDataApplications2,
|
|
1290
|
-
): string {
|
|
1291
|
-
return JSON.stringify(
|
|
1292
|
-
CreateApplicationDataApplications2$outboundSchema.parse(
|
|
1293
|
-
createApplicationDataApplications2,
|
|
1294
|
-
),
|
|
1295
|
-
);
|
|
1296
|
-
}
|
|
1297
|
-
|
|
1298
|
-
export function createApplicationDataApplications2FromJSON(
|
|
1299
|
-
jsonString: string,
|
|
1300
|
-
): SafeParseResult<CreateApplicationDataApplications2, SDKValidationError> {
|
|
1301
|
-
return safeParse(
|
|
1302
|
-
jsonString,
|
|
1303
|
-
(x) =>
|
|
1304
|
-
CreateApplicationDataApplications2$inboundSchema.parse(JSON.parse(x)),
|
|
1305
|
-
`Failed to parse 'CreateApplicationDataApplications2' from JSON`,
|
|
1306
|
-
);
|
|
1307
|
-
}
|
|
1308
|
-
|
|
1309
|
-
/** @internal */
|
|
1310
|
-
export const CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType$inboundSchema:
|
|
1311
|
-
z.ZodNativeEnum<
|
|
1312
|
-
typeof CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType
|
|
1313
|
-
> = z.nativeEnum(
|
|
1314
|
-
CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType,
|
|
1315
|
-
);
|
|
1316
|
-
|
|
1317
|
-
/** @internal */
|
|
1318
|
-
export const CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType$outboundSchema:
|
|
1319
|
-
z.ZodNativeEnum<
|
|
1320
|
-
typeof CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType
|
|
1321
|
-
> =
|
|
1322
|
-
CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType$inboundSchema;
|
|
1323
|
-
|
|
1324
|
-
/**
|
|
1325
|
-
* @internal
|
|
1326
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1327
|
-
*/
|
|
1328
|
-
export namespace CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType$ {
|
|
1329
|
-
/** @deprecated use `CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType$inboundSchema` instead. */
|
|
1330
|
-
export const inboundSchema =
|
|
1331
|
-
CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType$inboundSchema;
|
|
1332
|
-
/** @deprecated use `CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType$outboundSchema` instead. */
|
|
1333
|
-
export const outboundSchema =
|
|
1334
|
-
CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType$outboundSchema;
|
|
1335
|
-
}
|
|
1336
|
-
|
|
1337
|
-
/** @internal */
|
|
1338
|
-
export const CreateApplicationDataApplications1$inboundSchema: z.ZodType<
|
|
1339
|
-
CreateApplicationDataApplications1,
|
|
1340
|
-
z.ZodTypeDef,
|
|
1341
|
-
unknown
|
|
1342
|
-
> = z.object({
|
|
1343
|
-
type:
|
|
1344
|
-
CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType$inboundSchema,
|
|
1345
|
-
id: z.string(),
|
|
1346
|
-
});
|
|
1347
|
-
|
|
1348
|
-
/** @internal */
|
|
1349
|
-
export type CreateApplicationDataApplications1$Outbound = {
|
|
1350
|
-
type: string;
|
|
1351
|
-
id: string;
|
|
1352
|
-
};
|
|
1353
|
-
|
|
1354
|
-
/** @internal */
|
|
1355
|
-
export const CreateApplicationDataApplications1$outboundSchema: z.ZodType<
|
|
1356
|
-
CreateApplicationDataApplications1$Outbound,
|
|
1357
|
-
z.ZodTypeDef,
|
|
1358
|
-
CreateApplicationDataApplications1
|
|
1359
|
-
> = z.object({
|
|
1360
|
-
type:
|
|
1361
|
-
CreateApplicationDataApplicationsResponse201ApplicationJSONResponseBodyType$outboundSchema,
|
|
1362
|
-
id: z.string(),
|
|
1363
|
-
});
|
|
1364
|
-
|
|
1365
|
-
/**
|
|
1366
|
-
* @internal
|
|
1367
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1368
|
-
*/
|
|
1369
|
-
export namespace CreateApplicationDataApplications1$ {
|
|
1370
|
-
/** @deprecated use `CreateApplicationDataApplications1$inboundSchema` instead. */
|
|
1371
|
-
export const inboundSchema = CreateApplicationDataApplications1$inboundSchema;
|
|
1372
|
-
/** @deprecated use `CreateApplicationDataApplications1$outboundSchema` instead. */
|
|
1373
|
-
export const outboundSchema =
|
|
1374
|
-
CreateApplicationDataApplications1$outboundSchema;
|
|
1375
|
-
/** @deprecated use `CreateApplicationDataApplications1$Outbound` instead. */
|
|
1376
|
-
export type Outbound = CreateApplicationDataApplications1$Outbound;
|
|
1377
|
-
}
|
|
1378
|
-
|
|
1379
|
-
export function createApplicationDataApplications1ToJSON(
|
|
1380
|
-
createApplicationDataApplications1: CreateApplicationDataApplications1,
|
|
1381
|
-
): string {
|
|
1382
|
-
return JSON.stringify(
|
|
1383
|
-
CreateApplicationDataApplications1$outboundSchema.parse(
|
|
1384
|
-
createApplicationDataApplications1,
|
|
1385
|
-
),
|
|
1386
|
-
);
|
|
1387
|
-
}
|
|
1388
|
-
|
|
1389
|
-
export function createApplicationDataApplications1FromJSON(
|
|
1390
|
-
jsonString: string,
|
|
1391
|
-
): SafeParseResult<CreateApplicationDataApplications1, SDKValidationError> {
|
|
1392
|
-
return safeParse(
|
|
1393
|
-
jsonString,
|
|
1394
|
-
(x) =>
|
|
1395
|
-
CreateApplicationDataApplications1$inboundSchema.parse(JSON.parse(x)),
|
|
1396
|
-
`Failed to parse 'CreateApplicationDataApplications1' from JSON`,
|
|
1397
|
-
);
|
|
1398
|
-
}
|
|
1399
|
-
|
|
1400
|
-
/** @internal */
|
|
1401
|
-
export const CreateApplicationApplicationsResponseData$inboundSchema: z.ZodType<
|
|
1402
|
-
CreateApplicationApplicationsResponseData,
|
|
1403
|
-
z.ZodTypeDef,
|
|
1404
|
-
unknown
|
|
1405
|
-
> = z.union([
|
|
1406
|
-
z.lazy(() => CreateApplicationDataApplications1$inboundSchema),
|
|
1407
|
-
z.array(z.lazy(() => CreateApplicationDataApplications2$inboundSchema)),
|
|
1408
|
-
]);
|
|
1409
|
-
|
|
1410
|
-
/** @internal */
|
|
1411
|
-
export type CreateApplicationApplicationsResponseData$Outbound =
|
|
1412
|
-
| CreateApplicationDataApplications1$Outbound
|
|
1413
|
-
| Array<CreateApplicationDataApplications2$Outbound>;
|
|
1414
|
-
|
|
1415
|
-
/** @internal */
|
|
1416
|
-
export const CreateApplicationApplicationsResponseData$outboundSchema:
|
|
1417
|
-
z.ZodType<
|
|
1418
|
-
CreateApplicationApplicationsResponseData$Outbound,
|
|
1419
|
-
z.ZodTypeDef,
|
|
1420
|
-
CreateApplicationApplicationsResponseData
|
|
1421
|
-
> = z.union([
|
|
1422
|
-
z.lazy(() => CreateApplicationDataApplications1$outboundSchema),
|
|
1423
|
-
z.array(z.lazy(() => CreateApplicationDataApplications2$outboundSchema)),
|
|
1424
|
-
]);
|
|
1425
|
-
|
|
1426
|
-
/**
|
|
1427
|
-
* @internal
|
|
1428
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1429
|
-
*/
|
|
1430
|
-
export namespace CreateApplicationApplicationsResponseData$ {
|
|
1431
|
-
/** @deprecated use `CreateApplicationApplicationsResponseData$inboundSchema` instead. */
|
|
1432
|
-
export const inboundSchema =
|
|
1433
|
-
CreateApplicationApplicationsResponseData$inboundSchema;
|
|
1434
|
-
/** @deprecated use `CreateApplicationApplicationsResponseData$outboundSchema` instead. */
|
|
1435
|
-
export const outboundSchema =
|
|
1436
|
-
CreateApplicationApplicationsResponseData$outboundSchema;
|
|
1437
|
-
/** @deprecated use `CreateApplicationApplicationsResponseData$Outbound` instead. */
|
|
1438
|
-
export type Outbound = CreateApplicationApplicationsResponseData$Outbound;
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
|
-
export function createApplicationApplicationsResponseDataToJSON(
|
|
1442
|
-
createApplicationApplicationsResponseData:
|
|
1443
|
-
CreateApplicationApplicationsResponseData,
|
|
1444
|
-
): string {
|
|
1445
|
-
return JSON.stringify(
|
|
1446
|
-
CreateApplicationApplicationsResponseData$outboundSchema.parse(
|
|
1447
|
-
createApplicationApplicationsResponseData,
|
|
1448
|
-
),
|
|
1449
|
-
);
|
|
1450
|
-
}
|
|
1451
|
-
|
|
1452
|
-
export function createApplicationApplicationsResponseDataFromJSON(
|
|
1453
|
-
jsonString: string,
|
|
1454
|
-
): SafeParseResult<
|
|
1455
|
-
CreateApplicationApplicationsResponseData,
|
|
1456
|
-
SDKValidationError
|
|
1457
|
-
> {
|
|
1458
|
-
return safeParse(
|
|
1459
|
-
jsonString,
|
|
1460
|
-
(x) =>
|
|
1461
|
-
CreateApplicationApplicationsResponseData$inboundSchema.parse(
|
|
1462
|
-
JSON.parse(x),
|
|
1463
|
-
),
|
|
1464
|
-
`Failed to parse 'CreateApplicationApplicationsResponseData' from JSON`,
|
|
1465
|
-
);
|
|
1466
|
-
}
|
|
1467
|
-
|
|
1468
|
-
/** @internal */
|
|
1469
|
-
export const Entities$inboundSchema: z.ZodType<
|
|
1470
|
-
Entities,
|
|
1471
|
-
z.ZodTypeDef,
|
|
1472
|
-
unknown
|
|
1473
|
-
> = z.object({
|
|
1474
|
-
data: z.nullable(
|
|
1475
|
-
z.union([
|
|
1476
|
-
z.lazy(() => CreateApplicationDataApplications1$inboundSchema),
|
|
1477
|
-
z.array(z.lazy(() => CreateApplicationDataApplications2$inboundSchema)),
|
|
1478
|
-
]),
|
|
1479
|
-
),
|
|
1480
|
-
links: components.Links$inboundSchema.optional(),
|
|
1481
|
-
meta: z.record(z.any()).optional(),
|
|
1482
|
-
});
|
|
1483
|
-
|
|
1484
|
-
/** @internal */
|
|
1485
|
-
export type Entities$Outbound = {
|
|
15
|
+
export type CreateApplicationRequestBody = {
|
|
1486
16
|
data:
|
|
1487
|
-
|
|
|
1488
|
-
|
|
|
1489
|
-
| null;
|
|
1490
|
-
links?: components.Links$Outbound | undefined;
|
|
1491
|
-
meta?: { [k: string]: any } | undefined;
|
|
17
|
+
| components.CommercialSecuredApplicationPayload
|
|
18
|
+
| components.ConsumerSecuredApplicationPayload;
|
|
1492
19
|
};
|
|
1493
20
|
|
|
1494
|
-
/** @internal */
|
|
1495
|
-
export const Entities$outboundSchema: z.ZodType<
|
|
1496
|
-
Entities$Outbound,
|
|
1497
|
-
z.ZodTypeDef,
|
|
1498
|
-
Entities
|
|
1499
|
-
> = z.object({
|
|
1500
|
-
data: z.nullable(
|
|
1501
|
-
z.union([
|
|
1502
|
-
z.lazy(() => CreateApplicationDataApplications1$outboundSchema),
|
|
1503
|
-
z.array(z.lazy(() => CreateApplicationDataApplications2$outboundSchema)),
|
|
1504
|
-
]),
|
|
1505
|
-
),
|
|
1506
|
-
links: components.Links$outboundSchema.optional(),
|
|
1507
|
-
meta: z.record(z.any()).optional(),
|
|
1508
|
-
});
|
|
1509
|
-
|
|
1510
21
|
/**
|
|
1511
|
-
*
|
|
1512
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
22
|
+
* The request has succeeded and a new resource has been created as a result.
|
|
1513
23
|
*/
|
|
1514
|
-
export
|
|
1515
|
-
/**
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
return JSON.stringify(Entities$outboundSchema.parse(entities));
|
|
1525
|
-
}
|
|
1526
|
-
|
|
1527
|
-
export function entitiesFromJSON(
|
|
1528
|
-
jsonString: string,
|
|
1529
|
-
): SafeParseResult<Entities, SDKValidationError> {
|
|
1530
|
-
return safeParse(
|
|
1531
|
-
jsonString,
|
|
1532
|
-
(x) => Entities$inboundSchema.parse(JSON.parse(x)),
|
|
1533
|
-
`Failed to parse 'Entities' from JSON`,
|
|
1534
|
-
);
|
|
1535
|
-
}
|
|
1536
|
-
|
|
1537
|
-
/** @internal */
|
|
1538
|
-
export const Relationships$inboundSchema: z.ZodType<
|
|
1539
|
-
Relationships,
|
|
1540
|
-
z.ZodTypeDef,
|
|
1541
|
-
unknown
|
|
1542
|
-
> = z.object({
|
|
1543
|
-
loanDetails: z.lazy(() => LoanDetails$inboundSchema).optional(),
|
|
1544
|
-
customers: z.lazy(() => Customers$inboundSchema).optional(),
|
|
1545
|
-
asset: z.lazy(() => Asset$inboundSchema).optional(),
|
|
1546
|
-
entities: z.lazy(() => Entities$inboundSchema).optional(),
|
|
1547
|
-
});
|
|
1548
|
-
|
|
1549
|
-
/** @internal */
|
|
1550
|
-
export type Relationships$Outbound = {
|
|
1551
|
-
loanDetails?: LoanDetails$Outbound | undefined;
|
|
1552
|
-
customers?: Customers$Outbound | undefined;
|
|
1553
|
-
asset?: Asset$Outbound | undefined;
|
|
1554
|
-
entities?: Entities$Outbound | undefined;
|
|
24
|
+
export type CreateApplicationResponseBody = {
|
|
25
|
+
/**
|
|
26
|
+
* Represents either a Consumer or Commercial Application resource
|
|
27
|
+
*/
|
|
28
|
+
data: components.ApplicationResource;
|
|
29
|
+
included?: Array<components.ApplicationResource> | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Standard link object
|
|
32
|
+
*/
|
|
33
|
+
links?: components.LinkObject | undefined;
|
|
1555
34
|
};
|
|
1556
35
|
|
|
1557
|
-
/** @internal */
|
|
1558
|
-
export const Relationships$outboundSchema: z.ZodType<
|
|
1559
|
-
Relationships$Outbound,
|
|
1560
|
-
z.ZodTypeDef,
|
|
1561
|
-
Relationships
|
|
1562
|
-
> = z.object({
|
|
1563
|
-
loanDetails: z.lazy(() => LoanDetails$outboundSchema).optional(),
|
|
1564
|
-
customers: z.lazy(() => Customers$outboundSchema).optional(),
|
|
1565
|
-
asset: z.lazy(() => Asset$outboundSchema).optional(),
|
|
1566
|
-
entities: z.lazy(() => Entities$outboundSchema).optional(),
|
|
1567
|
-
});
|
|
1568
|
-
|
|
1569
|
-
/**
|
|
1570
|
-
* @internal
|
|
1571
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1572
|
-
*/
|
|
1573
|
-
export namespace Relationships$ {
|
|
1574
|
-
/** @deprecated use `Relationships$inboundSchema` instead. */
|
|
1575
|
-
export const inboundSchema = Relationships$inboundSchema;
|
|
1576
|
-
/** @deprecated use `Relationships$outboundSchema` instead. */
|
|
1577
|
-
export const outboundSchema = Relationships$outboundSchema;
|
|
1578
|
-
/** @deprecated use `Relationships$Outbound` instead. */
|
|
1579
|
-
export type Outbound = Relationships$Outbound;
|
|
1580
|
-
}
|
|
1581
|
-
|
|
1582
|
-
export function relationshipsToJSON(relationships: Relationships): string {
|
|
1583
|
-
return JSON.stringify(Relationships$outboundSchema.parse(relationships));
|
|
1584
|
-
}
|
|
1585
|
-
|
|
1586
|
-
export function relationshipsFromJSON(
|
|
1587
|
-
jsonString: string,
|
|
1588
|
-
): SafeParseResult<Relationships, SDKValidationError> {
|
|
1589
|
-
return safeParse(
|
|
1590
|
-
jsonString,
|
|
1591
|
-
(x) => Relationships$inboundSchema.parse(JSON.parse(x)),
|
|
1592
|
-
`Failed to parse 'Relationships' from JSON`,
|
|
1593
|
-
);
|
|
1594
|
-
}
|
|
1595
|
-
|
|
1596
36
|
/** @internal */
|
|
1597
37
|
export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
|
|
1598
|
-
.
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
relationships: z.lazy(() => Relationships$inboundSchema).optional(),
|
|
1603
|
-
links: components.Links$inboundSchema.optional(),
|
|
1604
|
-
meta: z.record(z.any()).optional(),
|
|
1605
|
-
});
|
|
38
|
+
.union([
|
|
39
|
+
components.CommercialSecuredApplicationPayload$inboundSchema,
|
|
40
|
+
components.ConsumerSecuredApplicationPayload$inboundSchema,
|
|
41
|
+
]);
|
|
1606
42
|
|
|
1607
43
|
/** @internal */
|
|
1608
|
-
export type Data$Outbound =
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
attributes?: components.ApplicationAttributes$Outbound | undefined;
|
|
1612
|
-
relationships?: Relationships$Outbound | undefined;
|
|
1613
|
-
links?: components.Links$Outbound | undefined;
|
|
1614
|
-
meta?: { [k: string]: any } | undefined;
|
|
1615
|
-
};
|
|
44
|
+
export type Data$Outbound =
|
|
45
|
+
| components.CommercialSecuredApplicationPayload$Outbound
|
|
46
|
+
| components.ConsumerSecuredApplicationPayload$Outbound;
|
|
1616
47
|
|
|
1617
48
|
/** @internal */
|
|
1618
49
|
export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
|
|
1619
|
-
z.
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
relationships: z.lazy(() => Relationships$outboundSchema).optional(),
|
|
1624
|
-
links: components.Links$outboundSchema.optional(),
|
|
1625
|
-
meta: z.record(z.any()).optional(),
|
|
1626
|
-
});
|
|
50
|
+
z.union([
|
|
51
|
+
components.CommercialSecuredApplicationPayload$outboundSchema,
|
|
52
|
+
components.ConsumerSecuredApplicationPayload$outboundSchema,
|
|
53
|
+
]);
|
|
1627
54
|
|
|
1628
55
|
/**
|
|
1629
56
|
* @internal
|
|
@@ -1653,337 +80,66 @@ export function dataFromJSON(
|
|
|
1653
80
|
}
|
|
1654
81
|
|
|
1655
82
|
/** @internal */
|
|
1656
|
-
export const
|
|
1657
|
-
|
|
1658
|
-
z.ZodTypeDef,
|
|
1659
|
-
unknown
|
|
1660
|
-
> = z.object({});
|
|
1661
|
-
|
|
1662
|
-
/** @internal */
|
|
1663
|
-
export type Attributes$Outbound = {};
|
|
1664
|
-
|
|
1665
|
-
/** @internal */
|
|
1666
|
-
export const Attributes$outboundSchema: z.ZodType<
|
|
1667
|
-
Attributes$Outbound,
|
|
1668
|
-
z.ZodTypeDef,
|
|
1669
|
-
Attributes
|
|
1670
|
-
> = z.object({});
|
|
1671
|
-
|
|
1672
|
-
/**
|
|
1673
|
-
* @internal
|
|
1674
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1675
|
-
*/
|
|
1676
|
-
export namespace Attributes$ {
|
|
1677
|
-
/** @deprecated use `Attributes$inboundSchema` instead. */
|
|
1678
|
-
export const inboundSchema = Attributes$inboundSchema;
|
|
1679
|
-
/** @deprecated use `Attributes$outboundSchema` instead. */
|
|
1680
|
-
export const outboundSchema = Attributes$outboundSchema;
|
|
1681
|
-
/** @deprecated use `Attributes$Outbound` instead. */
|
|
1682
|
-
export type Outbound = Attributes$Outbound;
|
|
1683
|
-
}
|
|
1684
|
-
|
|
1685
|
-
export function attributesToJSON(attributes: Attributes): string {
|
|
1686
|
-
return JSON.stringify(Attributes$outboundSchema.parse(attributes));
|
|
1687
|
-
}
|
|
1688
|
-
|
|
1689
|
-
export function attributesFromJSON(
|
|
1690
|
-
jsonString: string,
|
|
1691
|
-
): SafeParseResult<Attributes, SDKValidationError> {
|
|
1692
|
-
return safeParse(
|
|
1693
|
-
jsonString,
|
|
1694
|
-
(x) => Attributes$inboundSchema.parse(JSON.parse(x)),
|
|
1695
|
-
`Failed to parse 'Attributes' from JSON`,
|
|
1696
|
-
);
|
|
1697
|
-
}
|
|
1698
|
-
|
|
1699
|
-
/** @internal */
|
|
1700
|
-
export const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown> = z
|
|
1701
|
-
.object({
|
|
1702
|
-
type: z.string(),
|
|
1703
|
-
id: z.string(),
|
|
1704
|
-
});
|
|
1705
|
-
|
|
1706
|
-
/** @internal */
|
|
1707
|
-
export type Two$Outbound = {
|
|
1708
|
-
type: string;
|
|
1709
|
-
id: string;
|
|
1710
|
-
};
|
|
1711
|
-
|
|
1712
|
-
/** @internal */
|
|
1713
|
-
export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
|
|
1714
|
-
.object({
|
|
1715
|
-
type: z.string(),
|
|
1716
|
-
id: z.string(),
|
|
1717
|
-
});
|
|
1718
|
-
|
|
1719
|
-
/**
|
|
1720
|
-
* @internal
|
|
1721
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1722
|
-
*/
|
|
1723
|
-
export namespace Two$ {
|
|
1724
|
-
/** @deprecated use `Two$inboundSchema` instead. */
|
|
1725
|
-
export const inboundSchema = Two$inboundSchema;
|
|
1726
|
-
/** @deprecated use `Two$outboundSchema` instead. */
|
|
1727
|
-
export const outboundSchema = Two$outboundSchema;
|
|
1728
|
-
/** @deprecated use `Two$Outbound` instead. */
|
|
1729
|
-
export type Outbound = Two$Outbound;
|
|
1730
|
-
}
|
|
1731
|
-
|
|
1732
|
-
export function twoToJSON(two: Two): string {
|
|
1733
|
-
return JSON.stringify(Two$outboundSchema.parse(two));
|
|
1734
|
-
}
|
|
1735
|
-
|
|
1736
|
-
export function twoFromJSON(
|
|
1737
|
-
jsonString: string,
|
|
1738
|
-
): SafeParseResult<Two, SDKValidationError> {
|
|
1739
|
-
return safeParse(
|
|
1740
|
-
jsonString,
|
|
1741
|
-
(x) => Two$inboundSchema.parse(JSON.parse(x)),
|
|
1742
|
-
`Failed to parse 'Two' from JSON`,
|
|
1743
|
-
);
|
|
1744
|
-
}
|
|
1745
|
-
|
|
1746
|
-
/** @internal */
|
|
1747
|
-
export const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown> = z
|
|
1748
|
-
.object({
|
|
1749
|
-
type: z.string(),
|
|
1750
|
-
id: z.string(),
|
|
1751
|
-
});
|
|
1752
|
-
|
|
1753
|
-
/** @internal */
|
|
1754
|
-
export type One$Outbound = {
|
|
1755
|
-
type: string;
|
|
1756
|
-
id: string;
|
|
1757
|
-
};
|
|
1758
|
-
|
|
1759
|
-
/** @internal */
|
|
1760
|
-
export const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One> = z
|
|
1761
|
-
.object({
|
|
1762
|
-
type: z.string(),
|
|
1763
|
-
id: z.string(),
|
|
1764
|
-
});
|
|
1765
|
-
|
|
1766
|
-
/**
|
|
1767
|
-
* @internal
|
|
1768
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1769
|
-
*/
|
|
1770
|
-
export namespace One$ {
|
|
1771
|
-
/** @deprecated use `One$inboundSchema` instead. */
|
|
1772
|
-
export const inboundSchema = One$inboundSchema;
|
|
1773
|
-
/** @deprecated use `One$outboundSchema` instead. */
|
|
1774
|
-
export const outboundSchema = One$outboundSchema;
|
|
1775
|
-
/** @deprecated use `One$Outbound` instead. */
|
|
1776
|
-
export type Outbound = One$Outbound;
|
|
1777
|
-
}
|
|
1778
|
-
|
|
1779
|
-
export function oneToJSON(one: One): string {
|
|
1780
|
-
return JSON.stringify(One$outboundSchema.parse(one));
|
|
1781
|
-
}
|
|
1782
|
-
|
|
1783
|
-
export function oneFromJSON(
|
|
1784
|
-
jsonString: string,
|
|
1785
|
-
): SafeParseResult<One, SDKValidationError> {
|
|
1786
|
-
return safeParse(
|
|
1787
|
-
jsonString,
|
|
1788
|
-
(x) => One$inboundSchema.parse(JSON.parse(x)),
|
|
1789
|
-
`Failed to parse 'One' from JSON`,
|
|
1790
|
-
);
|
|
1791
|
-
}
|
|
1792
|
-
|
|
1793
|
-
/** @internal */
|
|
1794
|
-
export const CreateApplicationData$inboundSchema: z.ZodType<
|
|
1795
|
-
CreateApplicationData,
|
|
1796
|
-
z.ZodTypeDef,
|
|
1797
|
-
unknown
|
|
1798
|
-
> = z.union([
|
|
1799
|
-
z.lazy(() => One$inboundSchema),
|
|
1800
|
-
z.array(z.lazy(() => Two$inboundSchema)),
|
|
1801
|
-
]);
|
|
1802
|
-
|
|
1803
|
-
/** @internal */
|
|
1804
|
-
export type CreateApplicationData$Outbound = One$Outbound | Array<Two$Outbound>;
|
|
1805
|
-
|
|
1806
|
-
/** @internal */
|
|
1807
|
-
export const CreateApplicationData$outboundSchema: z.ZodType<
|
|
1808
|
-
CreateApplicationData$Outbound,
|
|
1809
|
-
z.ZodTypeDef,
|
|
1810
|
-
CreateApplicationData
|
|
1811
|
-
> = z.union([
|
|
1812
|
-
z.lazy(() => One$outboundSchema),
|
|
1813
|
-
z.array(z.lazy(() => Two$outboundSchema)),
|
|
1814
|
-
]);
|
|
1815
|
-
|
|
1816
|
-
/**
|
|
1817
|
-
* @internal
|
|
1818
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1819
|
-
*/
|
|
1820
|
-
export namespace CreateApplicationData$ {
|
|
1821
|
-
/** @deprecated use `CreateApplicationData$inboundSchema` instead. */
|
|
1822
|
-
export const inboundSchema = CreateApplicationData$inboundSchema;
|
|
1823
|
-
/** @deprecated use `CreateApplicationData$outboundSchema` instead. */
|
|
1824
|
-
export const outboundSchema = CreateApplicationData$outboundSchema;
|
|
1825
|
-
/** @deprecated use `CreateApplicationData$Outbound` instead. */
|
|
1826
|
-
export type Outbound = CreateApplicationData$Outbound;
|
|
1827
|
-
}
|
|
1828
|
-
|
|
1829
|
-
export function createApplicationDataToJSON(
|
|
1830
|
-
createApplicationData: CreateApplicationData,
|
|
1831
|
-
): string {
|
|
1832
|
-
return JSON.stringify(
|
|
1833
|
-
CreateApplicationData$outboundSchema.parse(createApplicationData),
|
|
1834
|
-
);
|
|
1835
|
-
}
|
|
1836
|
-
|
|
1837
|
-
export function createApplicationDataFromJSON(
|
|
1838
|
-
jsonString: string,
|
|
1839
|
-
): SafeParseResult<CreateApplicationData, SDKValidationError> {
|
|
1840
|
-
return safeParse(
|
|
1841
|
-
jsonString,
|
|
1842
|
-
(x) => CreateApplicationData$inboundSchema.parse(JSON.parse(x)),
|
|
1843
|
-
`Failed to parse 'CreateApplicationData' from JSON`,
|
|
1844
|
-
);
|
|
1845
|
-
}
|
|
1846
|
-
|
|
1847
|
-
/** @internal */
|
|
1848
|
-
export const CreateApplicationRelationships$inboundSchema: z.ZodType<
|
|
1849
|
-
CreateApplicationRelationships,
|
|
83
|
+
export const CreateApplicationRequestBody$inboundSchema: z.ZodType<
|
|
84
|
+
CreateApplicationRequestBody,
|
|
1850
85
|
z.ZodTypeDef,
|
|
1851
86
|
unknown
|
|
1852
87
|
> = z.object({
|
|
1853
|
-
data: z.
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
]),
|
|
1858
|
-
),
|
|
1859
|
-
links: components.Links$inboundSchema.optional(),
|
|
1860
|
-
meta: z.record(z.any()).optional(),
|
|
88
|
+
data: z.union([
|
|
89
|
+
components.CommercialSecuredApplicationPayload$inboundSchema,
|
|
90
|
+
components.ConsumerSecuredApplicationPayload$inboundSchema,
|
|
91
|
+
]),
|
|
1861
92
|
});
|
|
1862
93
|
|
|
1863
94
|
/** @internal */
|
|
1864
|
-
export type
|
|
1865
|
-
data:
|
|
1866
|
-
|
|
1867
|
-
|
|
95
|
+
export type CreateApplicationRequestBody$Outbound = {
|
|
96
|
+
data:
|
|
97
|
+
| components.CommercialSecuredApplicationPayload$Outbound
|
|
98
|
+
| components.ConsumerSecuredApplicationPayload$Outbound;
|
|
1868
99
|
};
|
|
1869
100
|
|
|
1870
101
|
/** @internal */
|
|
1871
|
-
export const
|
|
1872
|
-
|
|
102
|
+
export const CreateApplicationRequestBody$outboundSchema: z.ZodType<
|
|
103
|
+
CreateApplicationRequestBody$Outbound,
|
|
1873
104
|
z.ZodTypeDef,
|
|
1874
|
-
|
|
105
|
+
CreateApplicationRequestBody
|
|
1875
106
|
> = z.object({
|
|
1876
|
-
data: z.
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
]),
|
|
1881
|
-
),
|
|
1882
|
-
links: components.Links$outboundSchema.optional(),
|
|
1883
|
-
meta: z.record(z.any()).optional(),
|
|
107
|
+
data: z.union([
|
|
108
|
+
components.CommercialSecuredApplicationPayload$outboundSchema,
|
|
109
|
+
components.ConsumerSecuredApplicationPayload$outboundSchema,
|
|
110
|
+
]),
|
|
1884
111
|
});
|
|
1885
112
|
|
|
1886
113
|
/**
|
|
1887
114
|
* @internal
|
|
1888
115
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1889
116
|
*/
|
|
1890
|
-
export namespace
|
|
1891
|
-
/** @deprecated use `
|
|
1892
|
-
export const inboundSchema =
|
|
1893
|
-
/** @deprecated use `
|
|
1894
|
-
export const outboundSchema =
|
|
1895
|
-
/** @deprecated use `
|
|
1896
|
-
export type Outbound =
|
|
117
|
+
export namespace CreateApplicationRequestBody$ {
|
|
118
|
+
/** @deprecated use `CreateApplicationRequestBody$inboundSchema` instead. */
|
|
119
|
+
export const inboundSchema = CreateApplicationRequestBody$inboundSchema;
|
|
120
|
+
/** @deprecated use `CreateApplicationRequestBody$outboundSchema` instead. */
|
|
121
|
+
export const outboundSchema = CreateApplicationRequestBody$outboundSchema;
|
|
122
|
+
/** @deprecated use `CreateApplicationRequestBody$Outbound` instead. */
|
|
123
|
+
export type Outbound = CreateApplicationRequestBody$Outbound;
|
|
1897
124
|
}
|
|
1898
125
|
|
|
1899
|
-
export function
|
|
1900
|
-
|
|
126
|
+
export function createApplicationRequestBodyToJSON(
|
|
127
|
+
createApplicationRequestBody: CreateApplicationRequestBody,
|
|
1901
128
|
): string {
|
|
1902
129
|
return JSON.stringify(
|
|
1903
|
-
|
|
1904
|
-
|
|
130
|
+
CreateApplicationRequestBody$outboundSchema.parse(
|
|
131
|
+
createApplicationRequestBody,
|
|
1905
132
|
),
|
|
1906
133
|
);
|
|
1907
134
|
}
|
|
1908
135
|
|
|
1909
|
-
export function
|
|
1910
|
-
jsonString: string,
|
|
1911
|
-
): SafeParseResult<CreateApplicationRelationships, SDKValidationError> {
|
|
1912
|
-
return safeParse(
|
|
1913
|
-
jsonString,
|
|
1914
|
-
(x) => CreateApplicationRelationships$inboundSchema.parse(JSON.parse(x)),
|
|
1915
|
-
`Failed to parse 'CreateApplicationRelationships' from JSON`,
|
|
1916
|
-
);
|
|
1917
|
-
}
|
|
1918
|
-
|
|
1919
|
-
/** @internal */
|
|
1920
|
-
export const Included$inboundSchema: z.ZodType<
|
|
1921
|
-
Included,
|
|
1922
|
-
z.ZodTypeDef,
|
|
1923
|
-
unknown
|
|
1924
|
-
> = z.object({
|
|
1925
|
-
type: z.string(),
|
|
1926
|
-
id: z.string(),
|
|
1927
|
-
attributes: z.lazy(() => Attributes$inboundSchema).optional(),
|
|
1928
|
-
relationships: z.record(
|
|
1929
|
-
z.lazy(() => CreateApplicationRelationships$inboundSchema),
|
|
1930
|
-
).optional(),
|
|
1931
|
-
links: components.Links$inboundSchema.optional(),
|
|
1932
|
-
meta: z.record(z.any()).optional(),
|
|
1933
|
-
});
|
|
1934
|
-
|
|
1935
|
-
/** @internal */
|
|
1936
|
-
export type Included$Outbound = {
|
|
1937
|
-
type: string;
|
|
1938
|
-
id: string;
|
|
1939
|
-
attributes?: Attributes$Outbound | undefined;
|
|
1940
|
-
relationships?:
|
|
1941
|
-
| { [k: string]: CreateApplicationRelationships$Outbound }
|
|
1942
|
-
| undefined;
|
|
1943
|
-
links?: components.Links$Outbound | undefined;
|
|
1944
|
-
meta?: { [k: string]: any } | undefined;
|
|
1945
|
-
};
|
|
1946
|
-
|
|
1947
|
-
/** @internal */
|
|
1948
|
-
export const Included$outboundSchema: z.ZodType<
|
|
1949
|
-
Included$Outbound,
|
|
1950
|
-
z.ZodTypeDef,
|
|
1951
|
-
Included
|
|
1952
|
-
> = z.object({
|
|
1953
|
-
type: z.string(),
|
|
1954
|
-
id: z.string(),
|
|
1955
|
-
attributes: z.lazy(() => Attributes$outboundSchema).optional(),
|
|
1956
|
-
relationships: z.record(
|
|
1957
|
-
z.lazy(() => CreateApplicationRelationships$outboundSchema),
|
|
1958
|
-
).optional(),
|
|
1959
|
-
links: components.Links$outboundSchema.optional(),
|
|
1960
|
-
meta: z.record(z.any()).optional(),
|
|
1961
|
-
});
|
|
1962
|
-
|
|
1963
|
-
/**
|
|
1964
|
-
* @internal
|
|
1965
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1966
|
-
*/
|
|
1967
|
-
export namespace Included$ {
|
|
1968
|
-
/** @deprecated use `Included$inboundSchema` instead. */
|
|
1969
|
-
export const inboundSchema = Included$inboundSchema;
|
|
1970
|
-
/** @deprecated use `Included$outboundSchema` instead. */
|
|
1971
|
-
export const outboundSchema = Included$outboundSchema;
|
|
1972
|
-
/** @deprecated use `Included$Outbound` instead. */
|
|
1973
|
-
export type Outbound = Included$Outbound;
|
|
1974
|
-
}
|
|
1975
|
-
|
|
1976
|
-
export function includedToJSON(included: Included): string {
|
|
1977
|
-
return JSON.stringify(Included$outboundSchema.parse(included));
|
|
1978
|
-
}
|
|
1979
|
-
|
|
1980
|
-
export function includedFromJSON(
|
|
136
|
+
export function createApplicationRequestBodyFromJSON(
|
|
1981
137
|
jsonString: string,
|
|
1982
|
-
): SafeParseResult<
|
|
138
|
+
): SafeParseResult<CreateApplicationRequestBody, SDKValidationError> {
|
|
1983
139
|
return safeParse(
|
|
1984
140
|
jsonString,
|
|
1985
|
-
(x) =>
|
|
1986
|
-
`Failed to parse '
|
|
141
|
+
(x) => CreateApplicationRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
142
|
+
`Failed to parse 'CreateApplicationRequestBody' from JSON`,
|
|
1987
143
|
);
|
|
1988
144
|
}
|
|
1989
145
|
|
|
@@ -1993,16 +149,16 @@ export const CreateApplicationResponseBody$inboundSchema: z.ZodType<
|
|
|
1993
149
|
z.ZodTypeDef,
|
|
1994
150
|
unknown
|
|
1995
151
|
> = z.object({
|
|
1996
|
-
data:
|
|
1997
|
-
included: z.array(
|
|
1998
|
-
links: components.
|
|
152
|
+
data: components.ApplicationResource$inboundSchema,
|
|
153
|
+
included: z.array(components.ApplicationResource$inboundSchema).optional(),
|
|
154
|
+
links: components.LinkObject$inboundSchema.optional(),
|
|
1999
155
|
});
|
|
2000
156
|
|
|
2001
157
|
/** @internal */
|
|
2002
158
|
export type CreateApplicationResponseBody$Outbound = {
|
|
2003
|
-
data:
|
|
2004
|
-
included?: Array<
|
|
2005
|
-
links?: components.
|
|
159
|
+
data: components.ApplicationResource$Outbound;
|
|
160
|
+
included?: Array<components.ApplicationResource$Outbound> | undefined;
|
|
161
|
+
links?: components.LinkObject$Outbound | undefined;
|
|
2006
162
|
};
|
|
2007
163
|
|
|
2008
164
|
/** @internal */
|
|
@@ -2011,9 +167,9 @@ export const CreateApplicationResponseBody$outboundSchema: z.ZodType<
|
|
|
2011
167
|
z.ZodTypeDef,
|
|
2012
168
|
CreateApplicationResponseBody
|
|
2013
169
|
> = z.object({
|
|
2014
|
-
data:
|
|
2015
|
-
included: z.array(
|
|
2016
|
-
links: components.
|
|
170
|
+
data: components.ApplicationResource$outboundSchema,
|
|
171
|
+
included: z.array(components.ApplicationResource$outboundSchema).optional(),
|
|
172
|
+
links: components.LinkObject$outboundSchema.optional(),
|
|
2017
173
|
});
|
|
2018
174
|
|
|
2019
175
|
/**
|