@financeable/aggregation 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.devcontainer/README.md +1 -1
- package/FUNCTIONS.md +11 -132
- package/README.md +262 -1515
- package/docs/sdks/applications/README.md +171 -295
- package/docs/sdks/oauthtoken/README.md +5 -5
- package/docs/sdks/supportingdocuments/README.md +113 -0
- package/funcs/applicationsCreate.d.ts +1 -2
- package/funcs/applicationsCreate.d.ts.map +1 -1
- package/funcs/applicationsCreate.js +2 -3
- package/funcs/applicationsCreate.js.map +1 -1
- package/funcs/{oauthTokenGet.d.ts → oauthTokenOauthToken.d.ts} +2 -2
- package/funcs/oauthTokenOauthToken.d.ts.map +1 -0
- package/funcs/{oauthTokenGet.js → oauthTokenOauthToken.js} +3 -3
- package/funcs/oauthTokenOauthToken.js.map +1 -0
- package/funcs/supportingDocumentsCreate.d.ts +15 -0
- package/funcs/supportingDocumentsCreate.d.ts.map +1 -0
- package/funcs/{applicationsList.js → supportingDocumentsCreate.js} +15 -12
- package/funcs/supportingDocumentsCreate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +4 -7
- package/lib/config.js.map +1 -1
- package/lib/matchers.d.ts +3 -1
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +12 -0
- package/lib/matchers.js.map +1 -1
- package/lib/sdks.d.ts +3 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +13 -13
- package/lib/sdks.js.map +1 -1
- package/models/components/addressattributes.d.ts +8 -8
- package/models/components/addressattributes.d.ts.map +1 -1
- package/models/components/addressattributes.js +13 -14
- package/models/components/addressattributes.js.map +1 -1
- package/models/components/applicationresource.d.ts +30 -0
- package/models/components/applicationresource.d.ts.map +1 -0
- package/models/components/applicationresource.js +73 -0
- package/models/components/applicationresource.js.map +1 -0
- package/models/components/badrequesterror.d.ts +119 -0
- package/models/components/badrequesterror.d.ts.map +1 -0
- package/models/components/badrequesterror.js +140 -0
- package/models/components/badrequesterror.js.map +1 -0
- package/models/components/commercialapplicationjsonapirelationships.d.ts +384 -0
- package/models/components/commercialapplicationjsonapirelationships.d.ts.map +1 -0
- package/models/components/commercialapplicationjsonapirelationships.js +391 -0
- package/models/components/commercialapplicationjsonapirelationships.js.map +1 -0
- package/models/components/commercialapplicationresource.d.ts +191 -0
- package/models/components/commercialapplicationresource.d.ts.map +1 -0
- package/models/components/commercialapplicationresource.js +183 -0
- package/models/components/commercialapplicationresource.js.map +1 -0
- package/models/components/commercialsecuredloanapplicationsubmissionpayload.d.ts +124 -0
- package/models/components/commercialsecuredloanapplicationsubmissionpayload.d.ts.map +1 -0
- package/models/components/commercialsecuredloanapplicationsubmissionpayload.js +144 -0
- package/models/components/commercialsecuredloanapplicationsubmissionpayload.js.map +1 -0
- package/models/components/commercialsecuredloanassetattributes.d.ts +235 -0
- package/models/components/commercialsecuredloanassetattributes.d.ts.map +1 -0
- package/models/components/commercialsecuredloanassetattributes.js +168 -0
- package/models/components/commercialsecuredloanassetattributes.js.map +1 -0
- package/models/components/commercialsecuredloanassettype.d.ts +100 -0
- package/models/components/commercialsecuredloanassettype.d.ts.map +1 -0
- package/models/components/commercialsecuredloanassettype.js +84 -0
- package/models/components/commercialsecuredloanassettype.js.map +1 -0
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +455 -0
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -0
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js +504 -0
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -0
- package/models/components/consumerapplicationjsonapirelationships.d.ts +296 -0
- package/models/components/consumerapplicationjsonapirelationships.d.ts.map +1 -0
- package/models/components/consumerapplicationjsonapirelationships.js +310 -0
- package/models/components/consumerapplicationjsonapirelationships.js.map +1 -0
- package/models/components/consumerapplicationresource.d.ts +191 -0
- package/models/components/consumerapplicationresource.d.ts.map +1 -0
- package/models/components/consumerapplicationresource.js +187 -0
- package/models/components/consumerapplicationresource.js.map +1 -0
- package/models/components/consumersecuredloanapplicationsubmissionpayload.d.ts +124 -0
- package/models/components/consumersecuredloanapplicationsubmissionpayload.d.ts.map +1 -0
- package/models/components/consumersecuredloanapplicationsubmissionpayload.js +146 -0
- package/models/components/consumersecuredloanapplicationsubmissionpayload.js.map +1 -0
- package/models/components/consumersecuredloanassetattributes.d.ts +235 -0
- package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -0
- package/models/components/consumersecuredloanassetattributes.js +170 -0
- package/models/components/consumersecuredloanassetattributes.js.map +1 -0
- package/models/components/consumersecuredloanassettype.d.ts +64 -0
- package/models/components/consumersecuredloanassettype.d.ts.map +1 -0
- package/models/components/{consumerassettype.js → consumersecuredloanassettype.js} +27 -28
- package/models/components/consumersecuredloanassettype.js.map +1 -0
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +376 -0
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -0
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js +426 -0
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -0
- package/models/components/createsupportingdocumentsresponse.d.ts +121 -0
- package/models/components/createsupportingdocumentsresponse.d.ts.map +1 -0
- package/models/components/createsupportingdocumentsresponse.js +149 -0
- package/models/components/createsupportingdocumentsresponse.js.map +1 -0
- package/models/components/documenttype.d.ts +70 -0
- package/models/components/documenttype.d.ts.map +1 -0
- package/models/components/documenttype.js +75 -0
- package/models/components/documenttype.js.map +1 -0
- package/models/components/entityattributes.d.ts +0 -22
- package/models/components/entityattributes.d.ts.map +1 -1
- package/models/components/entityattributes.js +0 -19
- package/models/components/entityattributes.js.map +1 -1
- package/models/components/forbiddenerror.d.ts +17 -39
- package/models/components/forbiddenerror.d.ts.map +1 -1
- package/models/components/forbiddenerror.js +27 -46
- package/models/components/forbiddenerror.js.map +1 -1
- package/models/components/index.d.ts +25 -8
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +25 -8
- package/models/components/index.js.map +1 -1
- package/models/components/linkobject.d.ts +47 -0
- package/models/components/linkobject.d.ts.map +1 -0
- package/models/components/linkobject.js +77 -0
- package/models/components/linkobject.js.map +1 -0
- package/models/components/relationshipresourcenotfound.d.ts +116 -0
- package/models/components/relationshipresourcenotfound.d.ts.map +1 -0
- package/models/components/relationshipresourcenotfound.js +139 -0
- package/models/components/relationshipresourcenotfound.js.map +1 -0
- package/models/components/resourcenotfound.d.ts +119 -0
- package/models/components/resourcenotfound.d.ts.map +1 -0
- package/models/components/resourcenotfound.js +139 -0
- package/models/components/resourcenotfound.js.map +1 -0
- package/models/components/resourcetypes.d.ts +46 -0
- package/models/components/resourcetypes.d.ts.map +1 -0
- package/models/components/{links.js → resourcetypes.js} +21 -27
- package/models/components/resourcetypes.js.map +1 -0
- package/models/components/supportingdocumentattributes.d.ts +40 -0
- package/models/components/supportingdocumentattributes.d.ts.map +1 -0
- package/models/components/{applicationattributescreate.js → supportingdocumentattributes.js} +24 -24
- package/models/components/supportingdocumentattributes.js.map +1 -0
- package/models/components/supportingdocumentattributesinput.d.ts +38 -0
- package/models/components/supportingdocumentattributesinput.d.ts.map +1 -0
- package/models/components/supportingdocumentattributesinput.js +72 -0
- package/models/components/supportingdocumentattributesinput.js.map +1 -0
- package/models/components/supportingdocumentrelationships.d.ts +448 -0
- package/models/components/supportingdocumentrelationships.d.ts.map +1 -0
- package/models/components/supportingdocumentrelationships.js +434 -0
- package/models/components/supportingdocumentrelationships.js.map +1 -0
- package/models/components/supportingdocumentresource.d.ts +91 -0
- package/models/components/supportingdocumentresource.d.ts.map +1 -0
- package/models/components/supportingdocumentresource.js +121 -0
- package/models/components/supportingdocumentresource.js.map +1 -0
- package/models/components/uploadmimetype.d.ts +49 -0
- package/models/components/uploadmimetype.d.ts.map +1 -0
- package/models/components/{applicationtype.js → uploadmimetype.js} +22 -14
- package/models/components/uploadmimetype.js.map +1 -0
- package/models/errors/createapplication.d.ts +38 -0
- package/models/errors/createapplication.d.ts.map +1 -0
- package/models/errors/{responsebody.js → createapplication.js} +15 -15
- package/models/errors/createapplication.js.map +1 -0
- package/models/errors/index.d.ts +2 -1
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +2 -1
- package/models/errors/index.js.map +1 -1
- package/models/errors/supportingdocumentscreate.d.ts +143 -0
- package/models/errors/supportingdocumentscreate.d.ts.map +1 -0
- package/models/errors/supportingdocumentscreate.js +225 -0
- package/models/errors/supportingdocumentscreate.js.map +1 -0
- package/models/operations/createapplication.d.ts +66 -808
- package/models/operations/createapplication.d.ts.map +1 -1
- package/models/operations/createapplication.js +82 -837
- package/models/operations/createapplication.js.map +1 -1
- package/models/operations/index.d.ts +1 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -2
- package/models/operations/index.js.map +1 -1
- package/models/operations/supportingdocumentscreate.d.ts +60 -0
- package/models/operations/supportingdocumentscreate.d.ts.map +1 -0
- package/models/operations/supportingdocumentscreate.js +108 -0
- package/models/operations/supportingdocumentscreate.js.map +1 -0
- package/package.json +3 -3
- package/sdk/applications.d.ts +1 -10
- package/sdk/applications.d.ts.map +1 -1
- package/sdk/applications.js +0 -14
- package/sdk/applications.js.map +1 -1
- package/sdk/oauthtoken.d.ts +1 -1
- package/sdk/oauthtoken.d.ts.map +1 -1
- package/sdk/oauthtoken.js +3 -3
- package/sdk/oauthtoken.js.map +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/supportingdocuments.d.ts +10 -0
- package/sdk/supportingdocuments.d.ts.map +1 -0
- package/sdk/supportingdocuments.js +19 -0
- package/sdk/supportingdocuments.js.map +1 -0
- package/src/funcs/applicationsCreate.ts +7 -8
- package/src/funcs/{oauthTokenGet.ts → oauthTokenOauthToken.ts} +1 -1
- package/src/funcs/{applicationsList.ts → supportingDocumentsCreate.ts} +31 -20
- package/src/lib/config.ts +4 -7
- package/src/lib/matchers.ts +20 -0
- package/src/lib/sdks.ts +19 -13
- package/src/models/components/addressattributes.ts +18 -14
- package/src/models/components/applicationresource.ts +83 -0
- package/src/models/components/badrequesterror.ts +182 -0
- package/src/models/components/commercialapplicationjsonapirelationships.ts +894 -0
- package/src/models/components/commercialapplicationresource.ts +355 -0
- package/src/models/components/commercialsecuredloanapplicationsubmissionpayload.ts +237 -0
- package/src/models/components/commercialsecuredloanassetattributes.ts +315 -0
- package/src/models/components/commercialsecuredloanassettype.ts +64 -0
- package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +1148 -0
- package/src/models/components/consumerapplicationjsonapirelationships.ts +683 -0
- package/src/models/components/consumerapplicationresource.ts +342 -0
- package/src/models/components/consumersecuredloanapplicationsubmissionpayload.ts +270 -0
- package/src/models/components/consumersecuredloanassetattributes.ts +330 -0
- package/src/models/components/consumersecuredloanassettype.ts +47 -0
- package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +1011 -0
- package/src/models/components/createsupportingdocumentsresponse.ts +252 -0
- package/src/models/components/documenttype.ts +49 -0
- package/src/models/components/entityattributes.ts +0 -44
- package/src/models/components/forbiddenerror.ts +35 -58
- package/src/models/components/index.ts +25 -8
- package/src/models/components/linkobject.ts +84 -0
- package/src/models/components/relationshipresourcenotfound.ts +195 -0
- package/src/models/components/resourcenotfound.ts +188 -0
- package/src/models/components/resourcetypes.ts +39 -0
- package/src/models/components/supportingdocumentattributes.ts +87 -0
- package/src/models/components/supportingdocumentattributesinput.ts +84 -0
- package/src/models/components/supportingdocumentrelationships.ts +828 -0
- package/src/models/components/supportingdocumentresource.ts +163 -0
- package/src/models/components/uploadmimetype.ts +44 -0
- package/src/models/errors/createapplication.ts +76 -0
- package/src/models/errors/index.ts +2 -1
- package/src/models/errors/supportingdocumentscreate.ts +342 -0
- package/src/models/operations/createapplication.ts +143 -1778
- package/src/models/operations/index.ts +1 -2
- package/src/models/operations/supportingdocumentscreate.ts +150 -0
- package/src/sdk/applications.ts +1 -32
- package/src/sdk/oauthtoken.ts +3 -3
- package/src/sdk/sdk.ts +8 -0
- package/src/sdk/supportingdocuments.ts +25 -0
- package/funcs/applicationsGet.d.ts +0 -14
- package/funcs/applicationsGet.d.ts.map +0 -1
- package/funcs/applicationsGet.js +0 -120
- package/funcs/applicationsGet.js.map +0 -1
- package/funcs/applicationsList.d.ts +0 -14
- package/funcs/applicationsList.d.ts.map +0 -1
- package/funcs/applicationsList.js.map +0 -1
- package/funcs/oauthTokenGet.d.ts.map +0 -1
- package/funcs/oauthTokenGet.js.map +0 -1
- package/models/components/applicationattributes.d.ts +0 -69
- package/models/components/applicationattributes.d.ts.map +0 -1
- package/models/components/applicationattributes.js +0 -85
- package/models/components/applicationattributes.js.map +0 -1
- package/models/components/applicationattributescreate.d.ts +0 -43
- package/models/components/applicationattributescreate.d.ts.map +0 -1
- package/models/components/applicationattributescreate.js.map +0 -1
- package/models/components/applicationresourcebulksubmission.d.ts +0 -533
- package/models/components/applicationresourcebulksubmission.d.ts.map +0 -1
- package/models/components/applicationresourcebulksubmission.js +0 -565
- package/models/components/applicationresourcebulksubmission.js.map +0 -1
- package/models/components/applicationtype.d.ts +0 -28
- package/models/components/applicationtype.d.ts.map +0 -1
- package/models/components/applicationtype.js.map +0 -1
- package/models/components/assetattributes.d.ts +0 -311
- package/models/components/assetattributes.d.ts.map +0 -1
- package/models/components/assetattributes.js +0 -234
- package/models/components/assetattributes.js.map +0 -1
- package/models/components/commercialassettype.d.ts +0 -44
- package/models/components/commercialassettype.d.ts.map +0 -1
- package/models/components/commercialassettype.js +0 -85
- package/models/components/commercialassettype.js.map +0 -1
- package/models/components/consumerassettype.d.ts +0 -32
- package/models/components/consumerassettype.d.ts.map +0 -1
- package/models/components/consumerassettype.js.map +0 -1
- package/models/components/links.d.ts +0 -40
- package/models/components/links.d.ts.map +0 -1
- package/models/components/links.js.map +0 -1
- package/models/errors/responsebody.d.ts +0 -38
- package/models/errors/responsebody.d.ts.map +0 -1
- package/models/errors/responsebody.js.map +0 -1
- package/models/operations/getapplication.d.ts +0 -962
- package/models/operations/getapplication.d.ts.map +0 -1
- package/models/operations/getapplication.js +0 -1030
- package/models/operations/getapplication.js.map +0 -1
- package/models/operations/getapplications.d.ts +0 -962
- package/models/operations/getapplications.d.ts.map +0 -1
- package/models/operations/getapplications.js +0 -1029
- package/models/operations/getapplications.js.map +0 -1
- package/src/funcs/applicationsGet.ts +0 -168
- package/src/models/components/applicationattributes.ts +0 -128
- package/src/models/components/applicationattributescreate.ts +0 -90
- package/src/models/components/applicationresourcebulksubmission.ts +0 -1178
- package/src/models/components/applicationtype.ts +0 -33
- package/src/models/components/assetattributes.ts +0 -411
- package/src/models/components/commercialassettype.ts +0 -61
- package/src/models/components/consumerassettype.ts +0 -43
- package/src/models/components/links.ts +0 -72
- package/src/models/errors/responsebody.ts +0 -76
- package/src/models/operations/getapplication.ts +0 -2246
- package/src/models/operations/getapplications.ts +0 -2191
|
@@ -0,0 +1,828 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
LinkObject,
|
|
12
|
+
LinkObject$inboundSchema,
|
|
13
|
+
LinkObject$Outbound,
|
|
14
|
+
LinkObject$outboundSchema,
|
|
15
|
+
} from "./linkobject.js";
|
|
16
|
+
|
|
17
|
+
export const SupportingDocumentRelationshipsType = {
|
|
18
|
+
Customers: "customers",
|
|
19
|
+
} as const;
|
|
20
|
+
export type SupportingDocumentRelationshipsType = ClosedEnum<
|
|
21
|
+
typeof SupportingDocumentRelationshipsType
|
|
22
|
+
>;
|
|
23
|
+
|
|
24
|
+
export type Data = {
|
|
25
|
+
type: SupportingDocumentRelationshipsType;
|
|
26
|
+
id: string;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Reference to the ID of the customer record this support document relates to.
|
|
31
|
+
*/
|
|
32
|
+
export type Customer = {
|
|
33
|
+
data: Data;
|
|
34
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
35
|
+
meta?: { [k: string]: any } | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export const SupportingDocumentRelationshipsAssetType = {
|
|
39
|
+
Assets: "assets",
|
|
40
|
+
} as const;
|
|
41
|
+
export type SupportingDocumentRelationshipsAssetType = ClosedEnum<
|
|
42
|
+
typeof SupportingDocumentRelationshipsAssetType
|
|
43
|
+
>;
|
|
44
|
+
|
|
45
|
+
export type SupportingDocumentRelationshipsData = {
|
|
46
|
+
type: SupportingDocumentRelationshipsAssetType;
|
|
47
|
+
id: string;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Reference to the ID of the asset record this support document relates to.
|
|
52
|
+
*/
|
|
53
|
+
export type Asset = {
|
|
54
|
+
data: SupportingDocumentRelationshipsData;
|
|
55
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
56
|
+
meta?: { [k: string]: any } | undefined;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export const SupportingDocumentRelationshipsEntityType = {
|
|
60
|
+
Entities: "entities",
|
|
61
|
+
} as const;
|
|
62
|
+
export type SupportingDocumentRelationshipsEntityType = ClosedEnum<
|
|
63
|
+
typeof SupportingDocumentRelationshipsEntityType
|
|
64
|
+
>;
|
|
65
|
+
|
|
66
|
+
export type SupportingDocumentRelationshipsEntityData = {
|
|
67
|
+
type: SupportingDocumentRelationshipsEntityType;
|
|
68
|
+
id: string;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Reference to the ID of the entity record this support document relates to. One of: customer,asset or entity relationship must be provided.
|
|
73
|
+
*/
|
|
74
|
+
export type Entity = {
|
|
75
|
+
data: SupportingDocumentRelationshipsEntityData;
|
|
76
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
77
|
+
meta?: { [k: string]: any } | undefined;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export const Two = {
|
|
81
|
+
CommercialSecuredApplications: "commercial-secured-applications",
|
|
82
|
+
} as const;
|
|
83
|
+
export type Two = ClosedEnum<typeof Two>;
|
|
84
|
+
|
|
85
|
+
export const One = {
|
|
86
|
+
ConsumerSecuredApplications: "consumer-secured-applications",
|
|
87
|
+
} as const;
|
|
88
|
+
export type One = ClosedEnum<typeof One>;
|
|
89
|
+
|
|
90
|
+
export type SupportingDocumentRelationshipsApplicationType = One | Two;
|
|
91
|
+
|
|
92
|
+
export type SupportingDocumentRelationshipsApplicationData = {
|
|
93
|
+
type: One | Two;
|
|
94
|
+
id: string;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Reference to the ID of the application record this support document relates to.
|
|
99
|
+
*/
|
|
100
|
+
export type Application = {
|
|
101
|
+
data: SupportingDocumentRelationshipsApplicationData;
|
|
102
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
103
|
+
meta?: { [k: string]: any } | undefined;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export type SupportingDocumentRelationships = {
|
|
107
|
+
/**
|
|
108
|
+
* Reference to the ID of the customer record this support document relates to.
|
|
109
|
+
*/
|
|
110
|
+
customer?: Customer | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* Reference to the ID of the asset record this support document relates to.
|
|
113
|
+
*/
|
|
114
|
+
asset?: Asset | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* Reference to the ID of the entity record this support document relates to. One of: customer,asset or entity relationship must be provided.
|
|
117
|
+
*/
|
|
118
|
+
entity?: Entity | undefined;
|
|
119
|
+
/**
|
|
120
|
+
* Reference to the ID of the application record this support document relates to.
|
|
121
|
+
*/
|
|
122
|
+
application: Application;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
/** @internal */
|
|
126
|
+
export const SupportingDocumentRelationshipsType$inboundSchema: z.ZodNativeEnum<
|
|
127
|
+
typeof SupportingDocumentRelationshipsType
|
|
128
|
+
> = z.nativeEnum(SupportingDocumentRelationshipsType);
|
|
129
|
+
|
|
130
|
+
/** @internal */
|
|
131
|
+
export const SupportingDocumentRelationshipsType$outboundSchema:
|
|
132
|
+
z.ZodNativeEnum<typeof SupportingDocumentRelationshipsType> =
|
|
133
|
+
SupportingDocumentRelationshipsType$inboundSchema;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @internal
|
|
137
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
138
|
+
*/
|
|
139
|
+
export namespace SupportingDocumentRelationshipsType$ {
|
|
140
|
+
/** @deprecated use `SupportingDocumentRelationshipsType$inboundSchema` instead. */
|
|
141
|
+
export const inboundSchema =
|
|
142
|
+
SupportingDocumentRelationshipsType$inboundSchema;
|
|
143
|
+
/** @deprecated use `SupportingDocumentRelationshipsType$outboundSchema` instead. */
|
|
144
|
+
export const outboundSchema =
|
|
145
|
+
SupportingDocumentRelationshipsType$outboundSchema;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/** @internal */
|
|
149
|
+
export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
|
|
150
|
+
.object({
|
|
151
|
+
type: SupportingDocumentRelationshipsType$inboundSchema,
|
|
152
|
+
id: z.string(),
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
/** @internal */
|
|
156
|
+
export type Data$Outbound = {
|
|
157
|
+
type: string;
|
|
158
|
+
id: string;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
/** @internal */
|
|
162
|
+
export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
|
|
163
|
+
z.object({
|
|
164
|
+
type: SupportingDocumentRelationshipsType$outboundSchema,
|
|
165
|
+
id: z.string(),
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* @internal
|
|
170
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
171
|
+
*/
|
|
172
|
+
export namespace Data$ {
|
|
173
|
+
/** @deprecated use `Data$inboundSchema` instead. */
|
|
174
|
+
export const inboundSchema = Data$inboundSchema;
|
|
175
|
+
/** @deprecated use `Data$outboundSchema` instead. */
|
|
176
|
+
export const outboundSchema = Data$outboundSchema;
|
|
177
|
+
/** @deprecated use `Data$Outbound` instead. */
|
|
178
|
+
export type Outbound = Data$Outbound;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export function dataToJSON(data: Data): string {
|
|
182
|
+
return JSON.stringify(Data$outboundSchema.parse(data));
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export function dataFromJSON(
|
|
186
|
+
jsonString: string,
|
|
187
|
+
): SafeParseResult<Data, SDKValidationError> {
|
|
188
|
+
return safeParse(
|
|
189
|
+
jsonString,
|
|
190
|
+
(x) => Data$inboundSchema.parse(JSON.parse(x)),
|
|
191
|
+
`Failed to parse 'Data' from JSON`,
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/** @internal */
|
|
196
|
+
export const Customer$inboundSchema: z.ZodType<
|
|
197
|
+
Customer,
|
|
198
|
+
z.ZodTypeDef,
|
|
199
|
+
unknown
|
|
200
|
+
> = z.object({
|
|
201
|
+
data: z.lazy(() => Data$inboundSchema),
|
|
202
|
+
links: z.record(LinkObject$inboundSchema).optional(),
|
|
203
|
+
meta: z.record(z.any()).optional(),
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
/** @internal */
|
|
207
|
+
export type Customer$Outbound = {
|
|
208
|
+
data: Data$Outbound;
|
|
209
|
+
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
210
|
+
meta?: { [k: string]: any } | undefined;
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
/** @internal */
|
|
214
|
+
export const Customer$outboundSchema: z.ZodType<
|
|
215
|
+
Customer$Outbound,
|
|
216
|
+
z.ZodTypeDef,
|
|
217
|
+
Customer
|
|
218
|
+
> = z.object({
|
|
219
|
+
data: z.lazy(() => Data$outboundSchema),
|
|
220
|
+
links: z.record(LinkObject$outboundSchema).optional(),
|
|
221
|
+
meta: z.record(z.any()).optional(),
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* @internal
|
|
226
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
227
|
+
*/
|
|
228
|
+
export namespace Customer$ {
|
|
229
|
+
/** @deprecated use `Customer$inboundSchema` instead. */
|
|
230
|
+
export const inboundSchema = Customer$inboundSchema;
|
|
231
|
+
/** @deprecated use `Customer$outboundSchema` instead. */
|
|
232
|
+
export const outboundSchema = Customer$outboundSchema;
|
|
233
|
+
/** @deprecated use `Customer$Outbound` instead. */
|
|
234
|
+
export type Outbound = Customer$Outbound;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export function customerToJSON(customer: Customer): string {
|
|
238
|
+
return JSON.stringify(Customer$outboundSchema.parse(customer));
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export function customerFromJSON(
|
|
242
|
+
jsonString: string,
|
|
243
|
+
): SafeParseResult<Customer, SDKValidationError> {
|
|
244
|
+
return safeParse(
|
|
245
|
+
jsonString,
|
|
246
|
+
(x) => Customer$inboundSchema.parse(JSON.parse(x)),
|
|
247
|
+
`Failed to parse 'Customer' from JSON`,
|
|
248
|
+
);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/** @internal */
|
|
252
|
+
export const SupportingDocumentRelationshipsAssetType$inboundSchema:
|
|
253
|
+
z.ZodNativeEnum<typeof SupportingDocumentRelationshipsAssetType> = z
|
|
254
|
+
.nativeEnum(SupportingDocumentRelationshipsAssetType);
|
|
255
|
+
|
|
256
|
+
/** @internal */
|
|
257
|
+
export const SupportingDocumentRelationshipsAssetType$outboundSchema:
|
|
258
|
+
z.ZodNativeEnum<typeof SupportingDocumentRelationshipsAssetType> =
|
|
259
|
+
SupportingDocumentRelationshipsAssetType$inboundSchema;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* @internal
|
|
263
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
264
|
+
*/
|
|
265
|
+
export namespace SupportingDocumentRelationshipsAssetType$ {
|
|
266
|
+
/** @deprecated use `SupportingDocumentRelationshipsAssetType$inboundSchema` instead. */
|
|
267
|
+
export const inboundSchema =
|
|
268
|
+
SupportingDocumentRelationshipsAssetType$inboundSchema;
|
|
269
|
+
/** @deprecated use `SupportingDocumentRelationshipsAssetType$outboundSchema` instead. */
|
|
270
|
+
export const outboundSchema =
|
|
271
|
+
SupportingDocumentRelationshipsAssetType$outboundSchema;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/** @internal */
|
|
275
|
+
export const SupportingDocumentRelationshipsData$inboundSchema: z.ZodType<
|
|
276
|
+
SupportingDocumentRelationshipsData,
|
|
277
|
+
z.ZodTypeDef,
|
|
278
|
+
unknown
|
|
279
|
+
> = z.object({
|
|
280
|
+
type: SupportingDocumentRelationshipsAssetType$inboundSchema,
|
|
281
|
+
id: z.string(),
|
|
282
|
+
});
|
|
283
|
+
|
|
284
|
+
/** @internal */
|
|
285
|
+
export type SupportingDocumentRelationshipsData$Outbound = {
|
|
286
|
+
type: string;
|
|
287
|
+
id: string;
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
/** @internal */
|
|
291
|
+
export const SupportingDocumentRelationshipsData$outboundSchema: z.ZodType<
|
|
292
|
+
SupportingDocumentRelationshipsData$Outbound,
|
|
293
|
+
z.ZodTypeDef,
|
|
294
|
+
SupportingDocumentRelationshipsData
|
|
295
|
+
> = z.object({
|
|
296
|
+
type: SupportingDocumentRelationshipsAssetType$outboundSchema,
|
|
297
|
+
id: z.string(),
|
|
298
|
+
});
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* @internal
|
|
302
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
303
|
+
*/
|
|
304
|
+
export namespace SupportingDocumentRelationshipsData$ {
|
|
305
|
+
/** @deprecated use `SupportingDocumentRelationshipsData$inboundSchema` instead. */
|
|
306
|
+
export const inboundSchema =
|
|
307
|
+
SupportingDocumentRelationshipsData$inboundSchema;
|
|
308
|
+
/** @deprecated use `SupportingDocumentRelationshipsData$outboundSchema` instead. */
|
|
309
|
+
export const outboundSchema =
|
|
310
|
+
SupportingDocumentRelationshipsData$outboundSchema;
|
|
311
|
+
/** @deprecated use `SupportingDocumentRelationshipsData$Outbound` instead. */
|
|
312
|
+
export type Outbound = SupportingDocumentRelationshipsData$Outbound;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
export function supportingDocumentRelationshipsDataToJSON(
|
|
316
|
+
supportingDocumentRelationshipsData: SupportingDocumentRelationshipsData,
|
|
317
|
+
): string {
|
|
318
|
+
return JSON.stringify(
|
|
319
|
+
SupportingDocumentRelationshipsData$outboundSchema.parse(
|
|
320
|
+
supportingDocumentRelationshipsData,
|
|
321
|
+
),
|
|
322
|
+
);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
export function supportingDocumentRelationshipsDataFromJSON(
|
|
326
|
+
jsonString: string,
|
|
327
|
+
): SafeParseResult<SupportingDocumentRelationshipsData, SDKValidationError> {
|
|
328
|
+
return safeParse(
|
|
329
|
+
jsonString,
|
|
330
|
+
(x) =>
|
|
331
|
+
SupportingDocumentRelationshipsData$inboundSchema.parse(JSON.parse(x)),
|
|
332
|
+
`Failed to parse 'SupportingDocumentRelationshipsData' from JSON`,
|
|
333
|
+
);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/** @internal */
|
|
337
|
+
export const Asset$inboundSchema: z.ZodType<Asset, z.ZodTypeDef, unknown> = z
|
|
338
|
+
.object({
|
|
339
|
+
data: z.lazy(() => SupportingDocumentRelationshipsData$inboundSchema),
|
|
340
|
+
links: z.record(LinkObject$inboundSchema).optional(),
|
|
341
|
+
meta: z.record(z.any()).optional(),
|
|
342
|
+
});
|
|
343
|
+
|
|
344
|
+
/** @internal */
|
|
345
|
+
export type Asset$Outbound = {
|
|
346
|
+
data: SupportingDocumentRelationshipsData$Outbound;
|
|
347
|
+
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
348
|
+
meta?: { [k: string]: any } | undefined;
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
/** @internal */
|
|
352
|
+
export const Asset$outboundSchema: z.ZodType<
|
|
353
|
+
Asset$Outbound,
|
|
354
|
+
z.ZodTypeDef,
|
|
355
|
+
Asset
|
|
356
|
+
> = z.object({
|
|
357
|
+
data: z.lazy(() => SupportingDocumentRelationshipsData$outboundSchema),
|
|
358
|
+
links: z.record(LinkObject$outboundSchema).optional(),
|
|
359
|
+
meta: z.record(z.any()).optional(),
|
|
360
|
+
});
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* @internal
|
|
364
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
365
|
+
*/
|
|
366
|
+
export namespace Asset$ {
|
|
367
|
+
/** @deprecated use `Asset$inboundSchema` instead. */
|
|
368
|
+
export const inboundSchema = Asset$inboundSchema;
|
|
369
|
+
/** @deprecated use `Asset$outboundSchema` instead. */
|
|
370
|
+
export const outboundSchema = Asset$outboundSchema;
|
|
371
|
+
/** @deprecated use `Asset$Outbound` instead. */
|
|
372
|
+
export type Outbound = Asset$Outbound;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
export function assetToJSON(asset: Asset): string {
|
|
376
|
+
return JSON.stringify(Asset$outboundSchema.parse(asset));
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
export function assetFromJSON(
|
|
380
|
+
jsonString: string,
|
|
381
|
+
): SafeParseResult<Asset, SDKValidationError> {
|
|
382
|
+
return safeParse(
|
|
383
|
+
jsonString,
|
|
384
|
+
(x) => Asset$inboundSchema.parse(JSON.parse(x)),
|
|
385
|
+
`Failed to parse 'Asset' from JSON`,
|
|
386
|
+
);
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/** @internal */
|
|
390
|
+
export const SupportingDocumentRelationshipsEntityType$inboundSchema:
|
|
391
|
+
z.ZodNativeEnum<typeof SupportingDocumentRelationshipsEntityType> = z
|
|
392
|
+
.nativeEnum(SupportingDocumentRelationshipsEntityType);
|
|
393
|
+
|
|
394
|
+
/** @internal */
|
|
395
|
+
export const SupportingDocumentRelationshipsEntityType$outboundSchema:
|
|
396
|
+
z.ZodNativeEnum<typeof SupportingDocumentRelationshipsEntityType> =
|
|
397
|
+
SupportingDocumentRelationshipsEntityType$inboundSchema;
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* @internal
|
|
401
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
402
|
+
*/
|
|
403
|
+
export namespace SupportingDocumentRelationshipsEntityType$ {
|
|
404
|
+
/** @deprecated use `SupportingDocumentRelationshipsEntityType$inboundSchema` instead. */
|
|
405
|
+
export const inboundSchema =
|
|
406
|
+
SupportingDocumentRelationshipsEntityType$inboundSchema;
|
|
407
|
+
/** @deprecated use `SupportingDocumentRelationshipsEntityType$outboundSchema` instead. */
|
|
408
|
+
export const outboundSchema =
|
|
409
|
+
SupportingDocumentRelationshipsEntityType$outboundSchema;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/** @internal */
|
|
413
|
+
export const SupportingDocumentRelationshipsEntityData$inboundSchema: z.ZodType<
|
|
414
|
+
SupportingDocumentRelationshipsEntityData,
|
|
415
|
+
z.ZodTypeDef,
|
|
416
|
+
unknown
|
|
417
|
+
> = z.object({
|
|
418
|
+
type: SupportingDocumentRelationshipsEntityType$inboundSchema,
|
|
419
|
+
id: z.string(),
|
|
420
|
+
});
|
|
421
|
+
|
|
422
|
+
/** @internal */
|
|
423
|
+
export type SupportingDocumentRelationshipsEntityData$Outbound = {
|
|
424
|
+
type: string;
|
|
425
|
+
id: string;
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
/** @internal */
|
|
429
|
+
export const SupportingDocumentRelationshipsEntityData$outboundSchema:
|
|
430
|
+
z.ZodType<
|
|
431
|
+
SupportingDocumentRelationshipsEntityData$Outbound,
|
|
432
|
+
z.ZodTypeDef,
|
|
433
|
+
SupportingDocumentRelationshipsEntityData
|
|
434
|
+
> = z.object({
|
|
435
|
+
type: SupportingDocumentRelationshipsEntityType$outboundSchema,
|
|
436
|
+
id: z.string(),
|
|
437
|
+
});
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* @internal
|
|
441
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
442
|
+
*/
|
|
443
|
+
export namespace SupportingDocumentRelationshipsEntityData$ {
|
|
444
|
+
/** @deprecated use `SupportingDocumentRelationshipsEntityData$inboundSchema` instead. */
|
|
445
|
+
export const inboundSchema =
|
|
446
|
+
SupportingDocumentRelationshipsEntityData$inboundSchema;
|
|
447
|
+
/** @deprecated use `SupportingDocumentRelationshipsEntityData$outboundSchema` instead. */
|
|
448
|
+
export const outboundSchema =
|
|
449
|
+
SupportingDocumentRelationshipsEntityData$outboundSchema;
|
|
450
|
+
/** @deprecated use `SupportingDocumentRelationshipsEntityData$Outbound` instead. */
|
|
451
|
+
export type Outbound = SupportingDocumentRelationshipsEntityData$Outbound;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
export function supportingDocumentRelationshipsEntityDataToJSON(
|
|
455
|
+
supportingDocumentRelationshipsEntityData:
|
|
456
|
+
SupportingDocumentRelationshipsEntityData,
|
|
457
|
+
): string {
|
|
458
|
+
return JSON.stringify(
|
|
459
|
+
SupportingDocumentRelationshipsEntityData$outboundSchema.parse(
|
|
460
|
+
supportingDocumentRelationshipsEntityData,
|
|
461
|
+
),
|
|
462
|
+
);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
export function supportingDocumentRelationshipsEntityDataFromJSON(
|
|
466
|
+
jsonString: string,
|
|
467
|
+
): SafeParseResult<
|
|
468
|
+
SupportingDocumentRelationshipsEntityData,
|
|
469
|
+
SDKValidationError
|
|
470
|
+
> {
|
|
471
|
+
return safeParse(
|
|
472
|
+
jsonString,
|
|
473
|
+
(x) =>
|
|
474
|
+
SupportingDocumentRelationshipsEntityData$inboundSchema.parse(
|
|
475
|
+
JSON.parse(x),
|
|
476
|
+
),
|
|
477
|
+
`Failed to parse 'SupportingDocumentRelationshipsEntityData' from JSON`,
|
|
478
|
+
);
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
/** @internal */
|
|
482
|
+
export const Entity$inboundSchema: z.ZodType<Entity, z.ZodTypeDef, unknown> = z
|
|
483
|
+
.object({
|
|
484
|
+
data: z.lazy(() => SupportingDocumentRelationshipsEntityData$inboundSchema),
|
|
485
|
+
links: z.record(LinkObject$inboundSchema).optional(),
|
|
486
|
+
meta: z.record(z.any()).optional(),
|
|
487
|
+
});
|
|
488
|
+
|
|
489
|
+
/** @internal */
|
|
490
|
+
export type Entity$Outbound = {
|
|
491
|
+
data: SupportingDocumentRelationshipsEntityData$Outbound;
|
|
492
|
+
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
493
|
+
meta?: { [k: string]: any } | undefined;
|
|
494
|
+
};
|
|
495
|
+
|
|
496
|
+
/** @internal */
|
|
497
|
+
export const Entity$outboundSchema: z.ZodType<
|
|
498
|
+
Entity$Outbound,
|
|
499
|
+
z.ZodTypeDef,
|
|
500
|
+
Entity
|
|
501
|
+
> = z.object({
|
|
502
|
+
data: z.lazy(() => SupportingDocumentRelationshipsEntityData$outboundSchema),
|
|
503
|
+
links: z.record(LinkObject$outboundSchema).optional(),
|
|
504
|
+
meta: z.record(z.any()).optional(),
|
|
505
|
+
});
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* @internal
|
|
509
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
510
|
+
*/
|
|
511
|
+
export namespace Entity$ {
|
|
512
|
+
/** @deprecated use `Entity$inboundSchema` instead. */
|
|
513
|
+
export const inboundSchema = Entity$inboundSchema;
|
|
514
|
+
/** @deprecated use `Entity$outboundSchema` instead. */
|
|
515
|
+
export const outboundSchema = Entity$outboundSchema;
|
|
516
|
+
/** @deprecated use `Entity$Outbound` instead. */
|
|
517
|
+
export type Outbound = Entity$Outbound;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
export function entityToJSON(entity: Entity): string {
|
|
521
|
+
return JSON.stringify(Entity$outboundSchema.parse(entity));
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
export function entityFromJSON(
|
|
525
|
+
jsonString: string,
|
|
526
|
+
): SafeParseResult<Entity, SDKValidationError> {
|
|
527
|
+
return safeParse(
|
|
528
|
+
jsonString,
|
|
529
|
+
(x) => Entity$inboundSchema.parse(JSON.parse(x)),
|
|
530
|
+
`Failed to parse 'Entity' from JSON`,
|
|
531
|
+
);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
/** @internal */
|
|
535
|
+
export const Two$inboundSchema: z.ZodNativeEnum<typeof Two> = z.nativeEnum(Two);
|
|
536
|
+
|
|
537
|
+
/** @internal */
|
|
538
|
+
export const Two$outboundSchema: z.ZodNativeEnum<typeof Two> =
|
|
539
|
+
Two$inboundSchema;
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* @internal
|
|
543
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
544
|
+
*/
|
|
545
|
+
export namespace Two$ {
|
|
546
|
+
/** @deprecated use `Two$inboundSchema` instead. */
|
|
547
|
+
export const inboundSchema = Two$inboundSchema;
|
|
548
|
+
/** @deprecated use `Two$outboundSchema` instead. */
|
|
549
|
+
export const outboundSchema = Two$outboundSchema;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/** @internal */
|
|
553
|
+
export const One$inboundSchema: z.ZodNativeEnum<typeof One> = z.nativeEnum(One);
|
|
554
|
+
|
|
555
|
+
/** @internal */
|
|
556
|
+
export const One$outboundSchema: z.ZodNativeEnum<typeof One> =
|
|
557
|
+
One$inboundSchema;
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* @internal
|
|
561
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
562
|
+
*/
|
|
563
|
+
export namespace One$ {
|
|
564
|
+
/** @deprecated use `One$inboundSchema` instead. */
|
|
565
|
+
export const inboundSchema = One$inboundSchema;
|
|
566
|
+
/** @deprecated use `One$outboundSchema` instead. */
|
|
567
|
+
export const outboundSchema = One$outboundSchema;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/** @internal */
|
|
571
|
+
export const SupportingDocumentRelationshipsApplicationType$inboundSchema:
|
|
572
|
+
z.ZodType<
|
|
573
|
+
SupportingDocumentRelationshipsApplicationType,
|
|
574
|
+
z.ZodTypeDef,
|
|
575
|
+
unknown
|
|
576
|
+
> = z.union([One$inboundSchema, Two$inboundSchema]);
|
|
577
|
+
|
|
578
|
+
/** @internal */
|
|
579
|
+
export type SupportingDocumentRelationshipsApplicationType$Outbound =
|
|
580
|
+
| string
|
|
581
|
+
| string;
|
|
582
|
+
|
|
583
|
+
/** @internal */
|
|
584
|
+
export const SupportingDocumentRelationshipsApplicationType$outboundSchema:
|
|
585
|
+
z.ZodType<
|
|
586
|
+
SupportingDocumentRelationshipsApplicationType$Outbound,
|
|
587
|
+
z.ZodTypeDef,
|
|
588
|
+
SupportingDocumentRelationshipsApplicationType
|
|
589
|
+
> = z.union([One$outboundSchema, Two$outboundSchema]);
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* @internal
|
|
593
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
594
|
+
*/
|
|
595
|
+
export namespace SupportingDocumentRelationshipsApplicationType$ {
|
|
596
|
+
/** @deprecated use `SupportingDocumentRelationshipsApplicationType$inboundSchema` instead. */
|
|
597
|
+
export const inboundSchema =
|
|
598
|
+
SupportingDocumentRelationshipsApplicationType$inboundSchema;
|
|
599
|
+
/** @deprecated use `SupportingDocumentRelationshipsApplicationType$outboundSchema` instead. */
|
|
600
|
+
export const outboundSchema =
|
|
601
|
+
SupportingDocumentRelationshipsApplicationType$outboundSchema;
|
|
602
|
+
/** @deprecated use `SupportingDocumentRelationshipsApplicationType$Outbound` instead. */
|
|
603
|
+
export type Outbound =
|
|
604
|
+
SupportingDocumentRelationshipsApplicationType$Outbound;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
export function supportingDocumentRelationshipsApplicationTypeToJSON(
|
|
608
|
+
supportingDocumentRelationshipsApplicationType:
|
|
609
|
+
SupportingDocumentRelationshipsApplicationType,
|
|
610
|
+
): string {
|
|
611
|
+
return JSON.stringify(
|
|
612
|
+
SupportingDocumentRelationshipsApplicationType$outboundSchema.parse(
|
|
613
|
+
supportingDocumentRelationshipsApplicationType,
|
|
614
|
+
),
|
|
615
|
+
);
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
export function supportingDocumentRelationshipsApplicationTypeFromJSON(
|
|
619
|
+
jsonString: string,
|
|
620
|
+
): SafeParseResult<
|
|
621
|
+
SupportingDocumentRelationshipsApplicationType,
|
|
622
|
+
SDKValidationError
|
|
623
|
+
> {
|
|
624
|
+
return safeParse(
|
|
625
|
+
jsonString,
|
|
626
|
+
(x) =>
|
|
627
|
+
SupportingDocumentRelationshipsApplicationType$inboundSchema.parse(
|
|
628
|
+
JSON.parse(x),
|
|
629
|
+
),
|
|
630
|
+
`Failed to parse 'SupportingDocumentRelationshipsApplicationType' from JSON`,
|
|
631
|
+
);
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
/** @internal */
|
|
635
|
+
export const SupportingDocumentRelationshipsApplicationData$inboundSchema:
|
|
636
|
+
z.ZodType<
|
|
637
|
+
SupportingDocumentRelationshipsApplicationData,
|
|
638
|
+
z.ZodTypeDef,
|
|
639
|
+
unknown
|
|
640
|
+
> = z.object({
|
|
641
|
+
type: z.union([One$inboundSchema, Two$inboundSchema]),
|
|
642
|
+
id: z.string(),
|
|
643
|
+
});
|
|
644
|
+
|
|
645
|
+
/** @internal */
|
|
646
|
+
export type SupportingDocumentRelationshipsApplicationData$Outbound = {
|
|
647
|
+
type: string | string;
|
|
648
|
+
id: string;
|
|
649
|
+
};
|
|
650
|
+
|
|
651
|
+
/** @internal */
|
|
652
|
+
export const SupportingDocumentRelationshipsApplicationData$outboundSchema:
|
|
653
|
+
z.ZodType<
|
|
654
|
+
SupportingDocumentRelationshipsApplicationData$Outbound,
|
|
655
|
+
z.ZodTypeDef,
|
|
656
|
+
SupportingDocumentRelationshipsApplicationData
|
|
657
|
+
> = z.object({
|
|
658
|
+
type: z.union([One$outboundSchema, Two$outboundSchema]),
|
|
659
|
+
id: z.string(),
|
|
660
|
+
});
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* @internal
|
|
664
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
665
|
+
*/
|
|
666
|
+
export namespace SupportingDocumentRelationshipsApplicationData$ {
|
|
667
|
+
/** @deprecated use `SupportingDocumentRelationshipsApplicationData$inboundSchema` instead. */
|
|
668
|
+
export const inboundSchema =
|
|
669
|
+
SupportingDocumentRelationshipsApplicationData$inboundSchema;
|
|
670
|
+
/** @deprecated use `SupportingDocumentRelationshipsApplicationData$outboundSchema` instead. */
|
|
671
|
+
export const outboundSchema =
|
|
672
|
+
SupportingDocumentRelationshipsApplicationData$outboundSchema;
|
|
673
|
+
/** @deprecated use `SupportingDocumentRelationshipsApplicationData$Outbound` instead. */
|
|
674
|
+
export type Outbound =
|
|
675
|
+
SupportingDocumentRelationshipsApplicationData$Outbound;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
export function supportingDocumentRelationshipsApplicationDataToJSON(
|
|
679
|
+
supportingDocumentRelationshipsApplicationData:
|
|
680
|
+
SupportingDocumentRelationshipsApplicationData,
|
|
681
|
+
): string {
|
|
682
|
+
return JSON.stringify(
|
|
683
|
+
SupportingDocumentRelationshipsApplicationData$outboundSchema.parse(
|
|
684
|
+
supportingDocumentRelationshipsApplicationData,
|
|
685
|
+
),
|
|
686
|
+
);
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
export function supportingDocumentRelationshipsApplicationDataFromJSON(
|
|
690
|
+
jsonString: string,
|
|
691
|
+
): SafeParseResult<
|
|
692
|
+
SupportingDocumentRelationshipsApplicationData,
|
|
693
|
+
SDKValidationError
|
|
694
|
+
> {
|
|
695
|
+
return safeParse(
|
|
696
|
+
jsonString,
|
|
697
|
+
(x) =>
|
|
698
|
+
SupportingDocumentRelationshipsApplicationData$inboundSchema.parse(
|
|
699
|
+
JSON.parse(x),
|
|
700
|
+
),
|
|
701
|
+
`Failed to parse 'SupportingDocumentRelationshipsApplicationData' from JSON`,
|
|
702
|
+
);
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
/** @internal */
|
|
706
|
+
export const Application$inboundSchema: z.ZodType<
|
|
707
|
+
Application,
|
|
708
|
+
z.ZodTypeDef,
|
|
709
|
+
unknown
|
|
710
|
+
> = z.object({
|
|
711
|
+
data: z.lazy(() =>
|
|
712
|
+
SupportingDocumentRelationshipsApplicationData$inboundSchema
|
|
713
|
+
),
|
|
714
|
+
links: z.record(LinkObject$inboundSchema).optional(),
|
|
715
|
+
meta: z.record(z.any()).optional(),
|
|
716
|
+
});
|
|
717
|
+
|
|
718
|
+
/** @internal */
|
|
719
|
+
export type Application$Outbound = {
|
|
720
|
+
data: SupportingDocumentRelationshipsApplicationData$Outbound;
|
|
721
|
+
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
722
|
+
meta?: { [k: string]: any } | undefined;
|
|
723
|
+
};
|
|
724
|
+
|
|
725
|
+
/** @internal */
|
|
726
|
+
export const Application$outboundSchema: z.ZodType<
|
|
727
|
+
Application$Outbound,
|
|
728
|
+
z.ZodTypeDef,
|
|
729
|
+
Application
|
|
730
|
+
> = z.object({
|
|
731
|
+
data: z.lazy(() =>
|
|
732
|
+
SupportingDocumentRelationshipsApplicationData$outboundSchema
|
|
733
|
+
),
|
|
734
|
+
links: z.record(LinkObject$outboundSchema).optional(),
|
|
735
|
+
meta: z.record(z.any()).optional(),
|
|
736
|
+
});
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* @internal
|
|
740
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
741
|
+
*/
|
|
742
|
+
export namespace Application$ {
|
|
743
|
+
/** @deprecated use `Application$inboundSchema` instead. */
|
|
744
|
+
export const inboundSchema = Application$inboundSchema;
|
|
745
|
+
/** @deprecated use `Application$outboundSchema` instead. */
|
|
746
|
+
export const outboundSchema = Application$outboundSchema;
|
|
747
|
+
/** @deprecated use `Application$Outbound` instead. */
|
|
748
|
+
export type Outbound = Application$Outbound;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
export function applicationToJSON(application: Application): string {
|
|
752
|
+
return JSON.stringify(Application$outboundSchema.parse(application));
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
export function applicationFromJSON(
|
|
756
|
+
jsonString: string,
|
|
757
|
+
): SafeParseResult<Application, SDKValidationError> {
|
|
758
|
+
return safeParse(
|
|
759
|
+
jsonString,
|
|
760
|
+
(x) => Application$inboundSchema.parse(JSON.parse(x)),
|
|
761
|
+
`Failed to parse 'Application' from JSON`,
|
|
762
|
+
);
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
/** @internal */
|
|
766
|
+
export const SupportingDocumentRelationships$inboundSchema: z.ZodType<
|
|
767
|
+
SupportingDocumentRelationships,
|
|
768
|
+
z.ZodTypeDef,
|
|
769
|
+
unknown
|
|
770
|
+
> = z.object({
|
|
771
|
+
customer: z.lazy(() => Customer$inboundSchema).optional(),
|
|
772
|
+
asset: z.lazy(() => Asset$inboundSchema).optional(),
|
|
773
|
+
entity: z.lazy(() => Entity$inboundSchema).optional(),
|
|
774
|
+
application: z.lazy(() => Application$inboundSchema),
|
|
775
|
+
});
|
|
776
|
+
|
|
777
|
+
/** @internal */
|
|
778
|
+
export type SupportingDocumentRelationships$Outbound = {
|
|
779
|
+
customer?: Customer$Outbound | undefined;
|
|
780
|
+
asset?: Asset$Outbound | undefined;
|
|
781
|
+
entity?: Entity$Outbound | undefined;
|
|
782
|
+
application: Application$Outbound;
|
|
783
|
+
};
|
|
784
|
+
|
|
785
|
+
/** @internal */
|
|
786
|
+
export const SupportingDocumentRelationships$outboundSchema: z.ZodType<
|
|
787
|
+
SupportingDocumentRelationships$Outbound,
|
|
788
|
+
z.ZodTypeDef,
|
|
789
|
+
SupportingDocumentRelationships
|
|
790
|
+
> = z.object({
|
|
791
|
+
customer: z.lazy(() => Customer$outboundSchema).optional(),
|
|
792
|
+
asset: z.lazy(() => Asset$outboundSchema).optional(),
|
|
793
|
+
entity: z.lazy(() => Entity$outboundSchema).optional(),
|
|
794
|
+
application: z.lazy(() => Application$outboundSchema),
|
|
795
|
+
});
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* @internal
|
|
799
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
800
|
+
*/
|
|
801
|
+
export namespace SupportingDocumentRelationships$ {
|
|
802
|
+
/** @deprecated use `SupportingDocumentRelationships$inboundSchema` instead. */
|
|
803
|
+
export const inboundSchema = SupportingDocumentRelationships$inboundSchema;
|
|
804
|
+
/** @deprecated use `SupportingDocumentRelationships$outboundSchema` instead. */
|
|
805
|
+
export const outboundSchema = SupportingDocumentRelationships$outboundSchema;
|
|
806
|
+
/** @deprecated use `SupportingDocumentRelationships$Outbound` instead. */
|
|
807
|
+
export type Outbound = SupportingDocumentRelationships$Outbound;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
export function supportingDocumentRelationshipsToJSON(
|
|
811
|
+
supportingDocumentRelationships: SupportingDocumentRelationships,
|
|
812
|
+
): string {
|
|
813
|
+
return JSON.stringify(
|
|
814
|
+
SupportingDocumentRelationships$outboundSchema.parse(
|
|
815
|
+
supportingDocumentRelationships,
|
|
816
|
+
),
|
|
817
|
+
);
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
export function supportingDocumentRelationshipsFromJSON(
|
|
821
|
+
jsonString: string,
|
|
822
|
+
): SafeParseResult<SupportingDocumentRelationships, SDKValidationError> {
|
|
823
|
+
return safeParse(
|
|
824
|
+
jsonString,
|
|
825
|
+
(x) => SupportingDocumentRelationships$inboundSchema.parse(JSON.parse(x)),
|
|
826
|
+
`Failed to parse 'SupportingDocumentRelationships' from JSON`,
|
|
827
|
+
);
|
|
828
|
+
}
|