@financeable/aggregation 0.5.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +11 -132
- package/README.md +262 -1515
- package/docs/sdks/applications/README.md +171 -295
- package/docs/sdks/oauthtoken/README.md +5 -5
- package/docs/sdks/supportingdocuments/README.md +113 -0
- package/funcs/applicationsCreate.d.ts +1 -2
- package/funcs/applicationsCreate.d.ts.map +1 -1
- package/funcs/applicationsCreate.js +2 -3
- package/funcs/applicationsCreate.js.map +1 -1
- package/funcs/{oauthTokenGet.d.ts → oauthTokenOauthToken.d.ts} +2 -2
- package/funcs/oauthTokenOauthToken.d.ts.map +1 -0
- package/funcs/{oauthTokenGet.js → oauthTokenOauthToken.js} +3 -3
- package/funcs/oauthTokenOauthToken.js.map +1 -0
- package/funcs/supportingDocumentsCreate.d.ts +15 -0
- package/funcs/supportingDocumentsCreate.d.ts.map +1 -0
- package/funcs/{applicationsList.js → supportingDocumentsCreate.js} +15 -12
- package/funcs/supportingDocumentsCreate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +4 -7
- package/lib/config.js.map +1 -1
- package/lib/matchers.d.ts +3 -1
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +12 -0
- package/lib/matchers.js.map +1 -1
- package/lib/sdks.d.ts +3 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +13 -13
- package/lib/sdks.js.map +1 -1
- package/models/components/addressattributes.d.ts +8 -8
- package/models/components/addressattributes.d.ts.map +1 -1
- package/models/components/addressattributes.js +13 -14
- package/models/components/addressattributes.js.map +1 -1
- package/models/components/applicationresource.d.ts +30 -0
- package/models/components/applicationresource.d.ts.map +1 -0
- package/models/components/applicationresource.js +73 -0
- package/models/components/applicationresource.js.map +1 -0
- package/models/components/badrequesterror.d.ts +119 -0
- package/models/components/badrequesterror.d.ts.map +1 -0
- package/models/components/badrequesterror.js +140 -0
- package/models/components/badrequesterror.js.map +1 -0
- package/models/components/commercialapplicationjsonapirelationships.d.ts +384 -0
- package/models/components/commercialapplicationjsonapirelationships.d.ts.map +1 -0
- package/models/components/commercialapplicationjsonapirelationships.js +391 -0
- package/models/components/commercialapplicationjsonapirelationships.js.map +1 -0
- package/models/components/commercialapplicationresource.d.ts +191 -0
- package/models/components/commercialapplicationresource.d.ts.map +1 -0
- package/models/components/commercialapplicationresource.js +183 -0
- package/models/components/commercialapplicationresource.js.map +1 -0
- package/models/components/commercialsecuredloanapplicationsubmissionpayload.d.ts +124 -0
- package/models/components/commercialsecuredloanapplicationsubmissionpayload.d.ts.map +1 -0
- package/models/components/commercialsecuredloanapplicationsubmissionpayload.js +144 -0
- package/models/components/commercialsecuredloanapplicationsubmissionpayload.js.map +1 -0
- package/models/components/commercialsecuredloanassetattributes.d.ts +235 -0
- package/models/components/commercialsecuredloanassetattributes.d.ts.map +1 -0
- package/models/components/commercialsecuredloanassetattributes.js +168 -0
- package/models/components/commercialsecuredloanassetattributes.js.map +1 -0
- package/models/components/commercialsecuredloanassettype.d.ts +100 -0
- package/models/components/commercialsecuredloanassettype.d.ts.map +1 -0
- package/models/components/commercialsecuredloanassettype.js +84 -0
- package/models/components/commercialsecuredloanassettype.js.map +1 -0
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +455 -0
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -0
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js +504 -0
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -0
- package/models/components/consumerapplicationjsonapirelationships.d.ts +296 -0
- package/models/components/consumerapplicationjsonapirelationships.d.ts.map +1 -0
- package/models/components/consumerapplicationjsonapirelationships.js +310 -0
- package/models/components/consumerapplicationjsonapirelationships.js.map +1 -0
- package/models/components/consumerapplicationresource.d.ts +191 -0
- package/models/components/consumerapplicationresource.d.ts.map +1 -0
- package/models/components/consumerapplicationresource.js +187 -0
- package/models/components/consumerapplicationresource.js.map +1 -0
- package/models/components/consumersecuredloanapplicationsubmissionpayload.d.ts +124 -0
- package/models/components/consumersecuredloanapplicationsubmissionpayload.d.ts.map +1 -0
- package/models/components/consumersecuredloanapplicationsubmissionpayload.js +146 -0
- package/models/components/consumersecuredloanapplicationsubmissionpayload.js.map +1 -0
- package/models/components/consumersecuredloanassetattributes.d.ts +235 -0
- package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -0
- package/models/components/consumersecuredloanassetattributes.js +170 -0
- package/models/components/consumersecuredloanassetattributes.js.map +1 -0
- package/models/components/consumersecuredloanassettype.d.ts +64 -0
- package/models/components/consumersecuredloanassettype.d.ts.map +1 -0
- package/models/components/{consumerassettype.js → consumersecuredloanassettype.js} +27 -28
- package/models/components/consumersecuredloanassettype.js.map +1 -0
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +376 -0
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -0
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js +426 -0
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -0
- package/models/components/createsupportingdocumentsresponse.d.ts +121 -0
- package/models/components/createsupportingdocumentsresponse.d.ts.map +1 -0
- package/models/components/createsupportingdocumentsresponse.js +149 -0
- package/models/components/createsupportingdocumentsresponse.js.map +1 -0
- package/models/components/documenttype.d.ts +70 -0
- package/models/components/documenttype.d.ts.map +1 -0
- package/models/components/documenttype.js +75 -0
- package/models/components/documenttype.js.map +1 -0
- package/models/components/entityattributes.d.ts +0 -22
- package/models/components/entityattributes.d.ts.map +1 -1
- package/models/components/entityattributes.js +0 -19
- package/models/components/entityattributes.js.map +1 -1
- package/models/components/forbiddenerror.d.ts +17 -39
- package/models/components/forbiddenerror.d.ts.map +1 -1
- package/models/components/forbiddenerror.js +27 -46
- package/models/components/forbiddenerror.js.map +1 -1
- package/models/components/index.d.ts +25 -8
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +25 -8
- package/models/components/index.js.map +1 -1
- package/models/components/linkobject.d.ts +47 -0
- package/models/components/linkobject.d.ts.map +1 -0
- package/models/components/linkobject.js +77 -0
- package/models/components/linkobject.js.map +1 -0
- package/models/components/relationshipresourcenotfound.d.ts +116 -0
- package/models/components/relationshipresourcenotfound.d.ts.map +1 -0
- package/models/components/relationshipresourcenotfound.js +139 -0
- package/models/components/relationshipresourcenotfound.js.map +1 -0
- package/models/components/resourcenotfound.d.ts +119 -0
- package/models/components/resourcenotfound.d.ts.map +1 -0
- package/models/components/resourcenotfound.js +139 -0
- package/models/components/resourcenotfound.js.map +1 -0
- package/models/components/resourcetypes.d.ts +46 -0
- package/models/components/resourcetypes.d.ts.map +1 -0
- package/models/components/{links.js → resourcetypes.js} +21 -27
- package/models/components/resourcetypes.js.map +1 -0
- package/models/components/supportingdocumentattributes.d.ts +40 -0
- package/models/components/supportingdocumentattributes.d.ts.map +1 -0
- package/models/components/{applicationattributescreate.js → supportingdocumentattributes.js} +24 -24
- package/models/components/supportingdocumentattributes.js.map +1 -0
- package/models/components/supportingdocumentattributesinput.d.ts +38 -0
- package/models/components/supportingdocumentattributesinput.d.ts.map +1 -0
- package/models/components/supportingdocumentattributesinput.js +72 -0
- package/models/components/supportingdocumentattributesinput.js.map +1 -0
- package/models/components/supportingdocumentrelationships.d.ts +448 -0
- package/models/components/supportingdocumentrelationships.d.ts.map +1 -0
- package/models/components/supportingdocumentrelationships.js +434 -0
- package/models/components/supportingdocumentrelationships.js.map +1 -0
- package/models/components/supportingdocumentresource.d.ts +91 -0
- package/models/components/supportingdocumentresource.d.ts.map +1 -0
- package/models/components/supportingdocumentresource.js +121 -0
- package/models/components/supportingdocumentresource.js.map +1 -0
- package/models/components/uploadmimetype.d.ts +49 -0
- package/models/components/uploadmimetype.d.ts.map +1 -0
- package/models/components/{applicationtype.js → uploadmimetype.js} +22 -14
- package/models/components/uploadmimetype.js.map +1 -0
- package/models/errors/createapplication.d.ts +38 -0
- package/models/errors/createapplication.d.ts.map +1 -0
- package/models/errors/{responsebody.js → createapplication.js} +15 -15
- package/models/errors/createapplication.js.map +1 -0
- package/models/errors/index.d.ts +2 -1
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +2 -1
- package/models/errors/index.js.map +1 -1
- package/models/errors/supportingdocumentscreate.d.ts +143 -0
- package/models/errors/supportingdocumentscreate.d.ts.map +1 -0
- package/models/errors/supportingdocumentscreate.js +225 -0
- package/models/errors/supportingdocumentscreate.js.map +1 -0
- package/models/operations/createapplication.d.ts +66 -808
- package/models/operations/createapplication.d.ts.map +1 -1
- package/models/operations/createapplication.js +82 -837
- package/models/operations/createapplication.js.map +1 -1
- package/models/operations/index.d.ts +1 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -2
- package/models/operations/index.js.map +1 -1
- package/models/operations/supportingdocumentscreate.d.ts +60 -0
- package/models/operations/supportingdocumentscreate.d.ts.map +1 -0
- package/models/operations/supportingdocumentscreate.js +108 -0
- package/models/operations/supportingdocumentscreate.js.map +1 -0
- package/package.json +2 -2
- package/sdk/applications.d.ts +1 -10
- package/sdk/applications.d.ts.map +1 -1
- package/sdk/applications.js +0 -14
- package/sdk/applications.js.map +1 -1
- package/sdk/oauthtoken.d.ts +1 -1
- package/sdk/oauthtoken.d.ts.map +1 -1
- package/sdk/oauthtoken.js +3 -3
- package/sdk/oauthtoken.js.map +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/supportingdocuments.d.ts +10 -0
- package/sdk/supportingdocuments.d.ts.map +1 -0
- package/sdk/supportingdocuments.js +19 -0
- package/sdk/supportingdocuments.js.map +1 -0
- package/src/funcs/applicationsCreate.ts +7 -8
- package/src/funcs/{oauthTokenGet.ts → oauthTokenOauthToken.ts} +1 -1
- package/src/funcs/{applicationsList.ts → supportingDocumentsCreate.ts} +31 -20
- package/src/lib/config.ts +4 -7
- package/src/lib/matchers.ts +20 -0
- package/src/lib/sdks.ts +19 -13
- package/src/models/components/addressattributes.ts +18 -14
- package/src/models/components/applicationresource.ts +83 -0
- package/src/models/components/badrequesterror.ts +182 -0
- package/src/models/components/commercialapplicationjsonapirelationships.ts +894 -0
- package/src/models/components/commercialapplicationresource.ts +355 -0
- package/src/models/components/commercialsecuredloanapplicationsubmissionpayload.ts +237 -0
- package/src/models/components/commercialsecuredloanassetattributes.ts +315 -0
- package/src/models/components/commercialsecuredloanassettype.ts +64 -0
- package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +1148 -0
- package/src/models/components/consumerapplicationjsonapirelationships.ts +683 -0
- package/src/models/components/consumerapplicationresource.ts +342 -0
- package/src/models/components/consumersecuredloanapplicationsubmissionpayload.ts +270 -0
- package/src/models/components/consumersecuredloanassetattributes.ts +330 -0
- package/src/models/components/consumersecuredloanassettype.ts +47 -0
- package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +1011 -0
- package/src/models/components/createsupportingdocumentsresponse.ts +252 -0
- package/src/models/components/documenttype.ts +49 -0
- package/src/models/components/entityattributes.ts +0 -44
- package/src/models/components/forbiddenerror.ts +35 -58
- package/src/models/components/index.ts +25 -8
- package/src/models/components/linkobject.ts +84 -0
- package/src/models/components/relationshipresourcenotfound.ts +195 -0
- package/src/models/components/resourcenotfound.ts +188 -0
- package/src/models/components/resourcetypes.ts +39 -0
- package/src/models/components/supportingdocumentattributes.ts +87 -0
- package/src/models/components/supportingdocumentattributesinput.ts +84 -0
- package/src/models/components/supportingdocumentrelationships.ts +828 -0
- package/src/models/components/supportingdocumentresource.ts +163 -0
- package/src/models/components/uploadmimetype.ts +44 -0
- package/src/models/errors/createapplication.ts +76 -0
- package/src/models/errors/index.ts +2 -1
- package/src/models/errors/supportingdocumentscreate.ts +342 -0
- package/src/models/operations/createapplication.ts +143 -1778
- package/src/models/operations/index.ts +1 -2
- package/src/models/operations/supportingdocumentscreate.ts +150 -0
- package/src/sdk/applications.ts +1 -32
- package/src/sdk/oauthtoken.ts +3 -3
- package/src/sdk/sdk.ts +8 -0
- package/src/sdk/supportingdocuments.ts +25 -0
- package/funcs/applicationsGet.d.ts +0 -14
- package/funcs/applicationsGet.d.ts.map +0 -1
- package/funcs/applicationsGet.js +0 -120
- package/funcs/applicationsGet.js.map +0 -1
- package/funcs/applicationsList.d.ts +0 -14
- package/funcs/applicationsList.d.ts.map +0 -1
- package/funcs/applicationsList.js.map +0 -1
- package/funcs/oauthTokenGet.d.ts.map +0 -1
- package/funcs/oauthTokenGet.js.map +0 -1
- package/models/components/applicationattributes.d.ts +0 -69
- package/models/components/applicationattributes.d.ts.map +0 -1
- package/models/components/applicationattributes.js +0 -85
- package/models/components/applicationattributes.js.map +0 -1
- package/models/components/applicationattributescreate.d.ts +0 -43
- package/models/components/applicationattributescreate.d.ts.map +0 -1
- package/models/components/applicationattributescreate.js.map +0 -1
- package/models/components/applicationresourcebulksubmission.d.ts +0 -527
- package/models/components/applicationresourcebulksubmission.d.ts.map +0 -1
- package/models/components/applicationresourcebulksubmission.js +0 -565
- package/models/components/applicationresourcebulksubmission.js.map +0 -1
- package/models/components/applicationtype.d.ts +0 -28
- package/models/components/applicationtype.d.ts.map +0 -1
- package/models/components/applicationtype.js.map +0 -1
- package/models/components/assetattributes.d.ts +0 -311
- package/models/components/assetattributes.d.ts.map +0 -1
- package/models/components/assetattributes.js +0 -234
- package/models/components/assetattributes.js.map +0 -1
- package/models/components/commercialassettype.d.ts +0 -44
- package/models/components/commercialassettype.d.ts.map +0 -1
- package/models/components/commercialassettype.js +0 -85
- package/models/components/commercialassettype.js.map +0 -1
- package/models/components/consumerassettype.d.ts +0 -32
- package/models/components/consumerassettype.d.ts.map +0 -1
- package/models/components/consumerassettype.js.map +0 -1
- package/models/components/links.d.ts +0 -40
- package/models/components/links.d.ts.map +0 -1
- package/models/components/links.js.map +0 -1
- package/models/errors/responsebody.d.ts +0 -38
- package/models/errors/responsebody.d.ts.map +0 -1
- package/models/errors/responsebody.js.map +0 -1
- package/models/operations/getapplication.d.ts +0 -962
- package/models/operations/getapplication.d.ts.map +0 -1
- package/models/operations/getapplication.js +0 -1030
- package/models/operations/getapplication.js.map +0 -1
- package/models/operations/getapplications.d.ts +0 -962
- package/models/operations/getapplications.d.ts.map +0 -1
- package/models/operations/getapplications.js +0 -1029
- package/models/operations/getapplications.js.map +0 -1
- package/src/funcs/applicationsGet.ts +0 -168
- package/src/models/components/applicationattributes.ts +0 -128
- package/src/models/components/applicationattributescreate.ts +0 -90
- package/src/models/components/applicationresourcebulksubmission.ts +0 -1172
- package/src/models/components/applicationtype.ts +0 -33
- package/src/models/components/assetattributes.ts +0 -411
- package/src/models/components/commercialassettype.ts +0 -61
- package/src/models/components/consumerassettype.ts +0 -43
- package/src/models/components/links.ts +0 -72
- package/src/models/errors/responsebody.ts +0 -76
- package/src/models/operations/getapplication.ts +0 -2246
- package/src/models/operations/getapplications.ts +0 -2191
|
@@ -0,0 +1,195 @@
|
|
|
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
|
+
APIErrorLinks,
|
|
12
|
+
APIErrorLinks$inboundSchema,
|
|
13
|
+
APIErrorLinks$Outbound,
|
|
14
|
+
APIErrorLinks$outboundSchema,
|
|
15
|
+
} from "./apierrorlinks.js";
|
|
16
|
+
import {
|
|
17
|
+
ErrorSource,
|
|
18
|
+
ErrorSource$inboundSchema,
|
|
19
|
+
ErrorSource$Outbound,
|
|
20
|
+
ErrorSource$outboundSchema,
|
|
21
|
+
} from "./errorsource.js";
|
|
22
|
+
|
|
23
|
+
export const RelationshipResourceNotFoundStatus = {
|
|
24
|
+
FourHundredAndFour: "404",
|
|
25
|
+
} as const;
|
|
26
|
+
export type RelationshipResourceNotFoundStatus = ClosedEnum<
|
|
27
|
+
typeof RelationshipResourceNotFoundStatus
|
|
28
|
+
>;
|
|
29
|
+
|
|
30
|
+
export const RelationshipResourceNotFoundCode = {
|
|
31
|
+
RelationshipResourceNotFound: "RelationshipResourceNotFound",
|
|
32
|
+
} as const;
|
|
33
|
+
export type RelationshipResourceNotFoundCode = ClosedEnum<
|
|
34
|
+
typeof RelationshipResourceNotFoundCode
|
|
35
|
+
>;
|
|
36
|
+
|
|
37
|
+
export const RelationshipResourceNotFoundTitle = {
|
|
38
|
+
RelationshipResourceNotFound: "Relationship Resource Not Found",
|
|
39
|
+
} as const;
|
|
40
|
+
export type RelationshipResourceNotFoundTitle = ClosedEnum<
|
|
41
|
+
typeof RelationshipResourceNotFoundTitle
|
|
42
|
+
>;
|
|
43
|
+
|
|
44
|
+
export type RelationshipResourceNotFound = {
|
|
45
|
+
id?: string | undefined;
|
|
46
|
+
links?: APIErrorLinks | undefined;
|
|
47
|
+
status: RelationshipResourceNotFoundStatus;
|
|
48
|
+
code: RelationshipResourceNotFoundCode;
|
|
49
|
+
title: RelationshipResourceNotFoundTitle;
|
|
50
|
+
detail: string;
|
|
51
|
+
source: ErrorSource;
|
|
52
|
+
meta: { [k: string]: any };
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const RelationshipResourceNotFoundStatus$inboundSchema: z.ZodNativeEnum<
|
|
57
|
+
typeof RelationshipResourceNotFoundStatus
|
|
58
|
+
> = z.nativeEnum(RelationshipResourceNotFoundStatus);
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export const RelationshipResourceNotFoundStatus$outboundSchema: z.ZodNativeEnum<
|
|
62
|
+
typeof RelationshipResourceNotFoundStatus
|
|
63
|
+
> = RelationshipResourceNotFoundStatus$inboundSchema;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @internal
|
|
67
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
68
|
+
*/
|
|
69
|
+
export namespace RelationshipResourceNotFoundStatus$ {
|
|
70
|
+
/** @deprecated use `RelationshipResourceNotFoundStatus$inboundSchema` instead. */
|
|
71
|
+
export const inboundSchema = RelationshipResourceNotFoundStatus$inboundSchema;
|
|
72
|
+
/** @deprecated use `RelationshipResourceNotFoundStatus$outboundSchema` instead. */
|
|
73
|
+
export const outboundSchema =
|
|
74
|
+
RelationshipResourceNotFoundStatus$outboundSchema;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** @internal */
|
|
78
|
+
export const RelationshipResourceNotFoundCode$inboundSchema: z.ZodNativeEnum<
|
|
79
|
+
typeof RelationshipResourceNotFoundCode
|
|
80
|
+
> = z.nativeEnum(RelationshipResourceNotFoundCode);
|
|
81
|
+
|
|
82
|
+
/** @internal */
|
|
83
|
+
export const RelationshipResourceNotFoundCode$outboundSchema: z.ZodNativeEnum<
|
|
84
|
+
typeof RelationshipResourceNotFoundCode
|
|
85
|
+
> = RelationshipResourceNotFoundCode$inboundSchema;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @internal
|
|
89
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
90
|
+
*/
|
|
91
|
+
export namespace RelationshipResourceNotFoundCode$ {
|
|
92
|
+
/** @deprecated use `RelationshipResourceNotFoundCode$inboundSchema` instead. */
|
|
93
|
+
export const inboundSchema = RelationshipResourceNotFoundCode$inboundSchema;
|
|
94
|
+
/** @deprecated use `RelationshipResourceNotFoundCode$outboundSchema` instead. */
|
|
95
|
+
export const outboundSchema = RelationshipResourceNotFoundCode$outboundSchema;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/** @internal */
|
|
99
|
+
export const RelationshipResourceNotFoundTitle$inboundSchema: z.ZodNativeEnum<
|
|
100
|
+
typeof RelationshipResourceNotFoundTitle
|
|
101
|
+
> = z.nativeEnum(RelationshipResourceNotFoundTitle);
|
|
102
|
+
|
|
103
|
+
/** @internal */
|
|
104
|
+
export const RelationshipResourceNotFoundTitle$outboundSchema: z.ZodNativeEnum<
|
|
105
|
+
typeof RelationshipResourceNotFoundTitle
|
|
106
|
+
> = RelationshipResourceNotFoundTitle$inboundSchema;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @internal
|
|
110
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
111
|
+
*/
|
|
112
|
+
export namespace RelationshipResourceNotFoundTitle$ {
|
|
113
|
+
/** @deprecated use `RelationshipResourceNotFoundTitle$inboundSchema` instead. */
|
|
114
|
+
export const inboundSchema = RelationshipResourceNotFoundTitle$inboundSchema;
|
|
115
|
+
/** @deprecated use `RelationshipResourceNotFoundTitle$outboundSchema` instead. */
|
|
116
|
+
export const outboundSchema =
|
|
117
|
+
RelationshipResourceNotFoundTitle$outboundSchema;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/** @internal */
|
|
121
|
+
export const RelationshipResourceNotFound$inboundSchema: z.ZodType<
|
|
122
|
+
RelationshipResourceNotFound,
|
|
123
|
+
z.ZodTypeDef,
|
|
124
|
+
unknown
|
|
125
|
+
> = z.object({
|
|
126
|
+
id: z.string().optional(),
|
|
127
|
+
links: APIErrorLinks$inboundSchema.optional(),
|
|
128
|
+
status: RelationshipResourceNotFoundStatus$inboundSchema,
|
|
129
|
+
code: RelationshipResourceNotFoundCode$inboundSchema,
|
|
130
|
+
title: RelationshipResourceNotFoundTitle$inboundSchema,
|
|
131
|
+
detail: z.string(),
|
|
132
|
+
source: ErrorSource$inboundSchema,
|
|
133
|
+
meta: z.record(z.any()),
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
/** @internal */
|
|
137
|
+
export type RelationshipResourceNotFound$Outbound = {
|
|
138
|
+
id?: string | undefined;
|
|
139
|
+
links?: APIErrorLinks$Outbound | undefined;
|
|
140
|
+
status: string;
|
|
141
|
+
code: string;
|
|
142
|
+
title: string;
|
|
143
|
+
detail: string;
|
|
144
|
+
source: ErrorSource$Outbound;
|
|
145
|
+
meta: { [k: string]: any };
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
/** @internal */
|
|
149
|
+
export const RelationshipResourceNotFound$outboundSchema: z.ZodType<
|
|
150
|
+
RelationshipResourceNotFound$Outbound,
|
|
151
|
+
z.ZodTypeDef,
|
|
152
|
+
RelationshipResourceNotFound
|
|
153
|
+
> = z.object({
|
|
154
|
+
id: z.string().optional(),
|
|
155
|
+
links: APIErrorLinks$outboundSchema.optional(),
|
|
156
|
+
status: RelationshipResourceNotFoundStatus$outboundSchema,
|
|
157
|
+
code: RelationshipResourceNotFoundCode$outboundSchema,
|
|
158
|
+
title: RelationshipResourceNotFoundTitle$outboundSchema,
|
|
159
|
+
detail: z.string(),
|
|
160
|
+
source: ErrorSource$outboundSchema,
|
|
161
|
+
meta: z.record(z.any()),
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* @internal
|
|
166
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
167
|
+
*/
|
|
168
|
+
export namespace RelationshipResourceNotFound$ {
|
|
169
|
+
/** @deprecated use `RelationshipResourceNotFound$inboundSchema` instead. */
|
|
170
|
+
export const inboundSchema = RelationshipResourceNotFound$inboundSchema;
|
|
171
|
+
/** @deprecated use `RelationshipResourceNotFound$outboundSchema` instead. */
|
|
172
|
+
export const outboundSchema = RelationshipResourceNotFound$outboundSchema;
|
|
173
|
+
/** @deprecated use `RelationshipResourceNotFound$Outbound` instead. */
|
|
174
|
+
export type Outbound = RelationshipResourceNotFound$Outbound;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export function relationshipResourceNotFoundToJSON(
|
|
178
|
+
relationshipResourceNotFound: RelationshipResourceNotFound,
|
|
179
|
+
): string {
|
|
180
|
+
return JSON.stringify(
|
|
181
|
+
RelationshipResourceNotFound$outboundSchema.parse(
|
|
182
|
+
relationshipResourceNotFound,
|
|
183
|
+
),
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export function relationshipResourceNotFoundFromJSON(
|
|
188
|
+
jsonString: string,
|
|
189
|
+
): SafeParseResult<RelationshipResourceNotFound, SDKValidationError> {
|
|
190
|
+
return safeParse(
|
|
191
|
+
jsonString,
|
|
192
|
+
(x) => RelationshipResourceNotFound$inboundSchema.parse(JSON.parse(x)),
|
|
193
|
+
`Failed to parse 'RelationshipResourceNotFound' from JSON`,
|
|
194
|
+
);
|
|
195
|
+
}
|
|
@@ -0,0 +1,188 @@
|
|
|
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
|
+
APIErrorLinks,
|
|
12
|
+
APIErrorLinks$inboundSchema,
|
|
13
|
+
APIErrorLinks$Outbound,
|
|
14
|
+
APIErrorLinks$outboundSchema,
|
|
15
|
+
} from "./apierrorlinks.js";
|
|
16
|
+
import {
|
|
17
|
+
ErrorSource,
|
|
18
|
+
ErrorSource$inboundSchema,
|
|
19
|
+
ErrorSource$Outbound,
|
|
20
|
+
ErrorSource$outboundSchema,
|
|
21
|
+
} from "./errorsource.js";
|
|
22
|
+
|
|
23
|
+
export const ResourceNotFoundStatus = {
|
|
24
|
+
FourHundredAndFour: "404",
|
|
25
|
+
} as const;
|
|
26
|
+
export type ResourceNotFoundStatus = ClosedEnum<typeof ResourceNotFoundStatus>;
|
|
27
|
+
|
|
28
|
+
export const ResourceNotFoundCode = {
|
|
29
|
+
ResourceNotFound: "ResourceNotFound",
|
|
30
|
+
} as const;
|
|
31
|
+
export type ResourceNotFoundCode = ClosedEnum<typeof ResourceNotFoundCode>;
|
|
32
|
+
|
|
33
|
+
export const ResourceNotFoundTitle = {
|
|
34
|
+
ResourceNotFound: "Resource Not Found",
|
|
35
|
+
} as const;
|
|
36
|
+
export type ResourceNotFoundTitle = ClosedEnum<typeof ResourceNotFoundTitle>;
|
|
37
|
+
|
|
38
|
+
export type ResourceNotFound = {
|
|
39
|
+
id?: string | undefined;
|
|
40
|
+
links?: APIErrorLinks | undefined;
|
|
41
|
+
status: ResourceNotFoundStatus;
|
|
42
|
+
code: ResourceNotFoundCode;
|
|
43
|
+
title: ResourceNotFoundTitle;
|
|
44
|
+
detail: string;
|
|
45
|
+
/**
|
|
46
|
+
* An object describing the source of the error from the request
|
|
47
|
+
*/
|
|
48
|
+
source?: ErrorSource | undefined;
|
|
49
|
+
meta?: { [k: string]: any } | undefined;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const ResourceNotFoundStatus$inboundSchema: z.ZodNativeEnum<
|
|
54
|
+
typeof ResourceNotFoundStatus
|
|
55
|
+
> = z.nativeEnum(ResourceNotFoundStatus);
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const ResourceNotFoundStatus$outboundSchema: z.ZodNativeEnum<
|
|
59
|
+
typeof ResourceNotFoundStatus
|
|
60
|
+
> = ResourceNotFoundStatus$inboundSchema;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
65
|
+
*/
|
|
66
|
+
export namespace ResourceNotFoundStatus$ {
|
|
67
|
+
/** @deprecated use `ResourceNotFoundStatus$inboundSchema` instead. */
|
|
68
|
+
export const inboundSchema = ResourceNotFoundStatus$inboundSchema;
|
|
69
|
+
/** @deprecated use `ResourceNotFoundStatus$outboundSchema` instead. */
|
|
70
|
+
export const outboundSchema = ResourceNotFoundStatus$outboundSchema;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/** @internal */
|
|
74
|
+
export const ResourceNotFoundCode$inboundSchema: z.ZodNativeEnum<
|
|
75
|
+
typeof ResourceNotFoundCode
|
|
76
|
+
> = z.nativeEnum(ResourceNotFoundCode);
|
|
77
|
+
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const ResourceNotFoundCode$outboundSchema: z.ZodNativeEnum<
|
|
80
|
+
typeof ResourceNotFoundCode
|
|
81
|
+
> = ResourceNotFoundCode$inboundSchema;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
86
|
+
*/
|
|
87
|
+
export namespace ResourceNotFoundCode$ {
|
|
88
|
+
/** @deprecated use `ResourceNotFoundCode$inboundSchema` instead. */
|
|
89
|
+
export const inboundSchema = ResourceNotFoundCode$inboundSchema;
|
|
90
|
+
/** @deprecated use `ResourceNotFoundCode$outboundSchema` instead. */
|
|
91
|
+
export const outboundSchema = ResourceNotFoundCode$outboundSchema;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/** @internal */
|
|
95
|
+
export const ResourceNotFoundTitle$inboundSchema: z.ZodNativeEnum<
|
|
96
|
+
typeof ResourceNotFoundTitle
|
|
97
|
+
> = z.nativeEnum(ResourceNotFoundTitle);
|
|
98
|
+
|
|
99
|
+
/** @internal */
|
|
100
|
+
export const ResourceNotFoundTitle$outboundSchema: z.ZodNativeEnum<
|
|
101
|
+
typeof ResourceNotFoundTitle
|
|
102
|
+
> = ResourceNotFoundTitle$inboundSchema;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @internal
|
|
106
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
107
|
+
*/
|
|
108
|
+
export namespace ResourceNotFoundTitle$ {
|
|
109
|
+
/** @deprecated use `ResourceNotFoundTitle$inboundSchema` instead. */
|
|
110
|
+
export const inboundSchema = ResourceNotFoundTitle$inboundSchema;
|
|
111
|
+
/** @deprecated use `ResourceNotFoundTitle$outboundSchema` instead. */
|
|
112
|
+
export const outboundSchema = ResourceNotFoundTitle$outboundSchema;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/** @internal */
|
|
116
|
+
export const ResourceNotFound$inboundSchema: z.ZodType<
|
|
117
|
+
ResourceNotFound,
|
|
118
|
+
z.ZodTypeDef,
|
|
119
|
+
unknown
|
|
120
|
+
> = z.object({
|
|
121
|
+
id: z.string().optional(),
|
|
122
|
+
links: APIErrorLinks$inboundSchema.optional(),
|
|
123
|
+
status: ResourceNotFoundStatus$inboundSchema,
|
|
124
|
+
code: ResourceNotFoundCode$inboundSchema,
|
|
125
|
+
title: ResourceNotFoundTitle$inboundSchema,
|
|
126
|
+
detail: z.string(),
|
|
127
|
+
source: ErrorSource$inboundSchema.optional(),
|
|
128
|
+
meta: z.record(z.any()).optional(),
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
/** @internal */
|
|
132
|
+
export type ResourceNotFound$Outbound = {
|
|
133
|
+
id?: string | undefined;
|
|
134
|
+
links?: APIErrorLinks$Outbound | undefined;
|
|
135
|
+
status: string;
|
|
136
|
+
code: string;
|
|
137
|
+
title: string;
|
|
138
|
+
detail: string;
|
|
139
|
+
source?: ErrorSource$Outbound | undefined;
|
|
140
|
+
meta?: { [k: string]: any } | undefined;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
/** @internal */
|
|
144
|
+
export const ResourceNotFound$outboundSchema: z.ZodType<
|
|
145
|
+
ResourceNotFound$Outbound,
|
|
146
|
+
z.ZodTypeDef,
|
|
147
|
+
ResourceNotFound
|
|
148
|
+
> = z.object({
|
|
149
|
+
id: z.string().optional(),
|
|
150
|
+
links: APIErrorLinks$outboundSchema.optional(),
|
|
151
|
+
status: ResourceNotFoundStatus$outboundSchema,
|
|
152
|
+
code: ResourceNotFoundCode$outboundSchema,
|
|
153
|
+
title: ResourceNotFoundTitle$outboundSchema,
|
|
154
|
+
detail: z.string(),
|
|
155
|
+
source: ErrorSource$outboundSchema.optional(),
|
|
156
|
+
meta: z.record(z.any()).optional(),
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* @internal
|
|
161
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
162
|
+
*/
|
|
163
|
+
export namespace ResourceNotFound$ {
|
|
164
|
+
/** @deprecated use `ResourceNotFound$inboundSchema` instead. */
|
|
165
|
+
export const inboundSchema = ResourceNotFound$inboundSchema;
|
|
166
|
+
/** @deprecated use `ResourceNotFound$outboundSchema` instead. */
|
|
167
|
+
export const outboundSchema = ResourceNotFound$outboundSchema;
|
|
168
|
+
/** @deprecated use `ResourceNotFound$Outbound` instead. */
|
|
169
|
+
export type Outbound = ResourceNotFound$Outbound;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export function resourceNotFoundToJSON(
|
|
173
|
+
resourceNotFound: ResourceNotFound,
|
|
174
|
+
): string {
|
|
175
|
+
return JSON.stringify(
|
|
176
|
+
ResourceNotFound$outboundSchema.parse(resourceNotFound),
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export function resourceNotFoundFromJSON(
|
|
181
|
+
jsonString: string,
|
|
182
|
+
): SafeParseResult<ResourceNotFound, SDKValidationError> {
|
|
183
|
+
return safeParse(
|
|
184
|
+
jsonString,
|
|
185
|
+
(x) => ResourceNotFound$inboundSchema.parse(JSON.parse(x)),
|
|
186
|
+
`Failed to parse 'ResourceNotFound' from JSON`,
|
|
187
|
+
);
|
|
188
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const ResourceTypes = {
|
|
9
|
+
ConsumerSecuredApplications: "consumer-secured-applications",
|
|
10
|
+
CommercialSecuredApplications: "commercial-secured-applications",
|
|
11
|
+
SupportingDocuments: "supporting-documents",
|
|
12
|
+
Customers: "customers",
|
|
13
|
+
Assets: "assets",
|
|
14
|
+
Entities: "entities",
|
|
15
|
+
LoanDetails: "loan-details",
|
|
16
|
+
Addresses: "addresses",
|
|
17
|
+
} as const;
|
|
18
|
+
export type ResourceTypes = ClosedEnum<typeof ResourceTypes>;
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ResourceTypes$inboundSchema: z.ZodNativeEnum<
|
|
22
|
+
typeof ResourceTypes
|
|
23
|
+
> = z.nativeEnum(ResourceTypes);
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const ResourceTypes$outboundSchema: z.ZodNativeEnum<
|
|
27
|
+
typeof ResourceTypes
|
|
28
|
+
> = ResourceTypes$inboundSchema;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
33
|
+
*/
|
|
34
|
+
export namespace ResourceTypes$ {
|
|
35
|
+
/** @deprecated use `ResourceTypes$inboundSchema` instead. */
|
|
36
|
+
export const inboundSchema = ResourceTypes$inboundSchema;
|
|
37
|
+
/** @deprecated use `ResourceTypes$outboundSchema` instead. */
|
|
38
|
+
export const outboundSchema = ResourceTypes$outboundSchema;
|
|
39
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
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 { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
DocumentType,
|
|
11
|
+
DocumentType$inboundSchema,
|
|
12
|
+
DocumentType$outboundSchema,
|
|
13
|
+
} from "./documenttype.js";
|
|
14
|
+
|
|
15
|
+
export type SupportingDocumentAttributes = {
|
|
16
|
+
id: string;
|
|
17
|
+
/**
|
|
18
|
+
* Must include the extension, e.g: 'Privacy agreement.pdf'
|
|
19
|
+
*/
|
|
20
|
+
filename: string;
|
|
21
|
+
/**
|
|
22
|
+
* The type/purpose of the supporting document
|
|
23
|
+
*/
|
|
24
|
+
documentType: DocumentType;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const SupportingDocumentAttributes$inboundSchema: z.ZodType<
|
|
29
|
+
SupportingDocumentAttributes,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
id: z.string(),
|
|
34
|
+
filename: z.string(),
|
|
35
|
+
documentType: DocumentType$inboundSchema,
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type SupportingDocumentAttributes$Outbound = {
|
|
40
|
+
id: string;
|
|
41
|
+
filename: string;
|
|
42
|
+
documentType: string;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const SupportingDocumentAttributes$outboundSchema: z.ZodType<
|
|
47
|
+
SupportingDocumentAttributes$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
SupportingDocumentAttributes
|
|
50
|
+
> = z.object({
|
|
51
|
+
id: z.string(),
|
|
52
|
+
filename: z.string(),
|
|
53
|
+
documentType: DocumentType$outboundSchema,
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
+
*/
|
|
60
|
+
export namespace SupportingDocumentAttributes$ {
|
|
61
|
+
/** @deprecated use `SupportingDocumentAttributes$inboundSchema` instead. */
|
|
62
|
+
export const inboundSchema = SupportingDocumentAttributes$inboundSchema;
|
|
63
|
+
/** @deprecated use `SupportingDocumentAttributes$outboundSchema` instead. */
|
|
64
|
+
export const outboundSchema = SupportingDocumentAttributes$outboundSchema;
|
|
65
|
+
/** @deprecated use `SupportingDocumentAttributes$Outbound` instead. */
|
|
66
|
+
export type Outbound = SupportingDocumentAttributes$Outbound;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function supportingDocumentAttributesToJSON(
|
|
70
|
+
supportingDocumentAttributes: SupportingDocumentAttributes,
|
|
71
|
+
): string {
|
|
72
|
+
return JSON.stringify(
|
|
73
|
+
SupportingDocumentAttributes$outboundSchema.parse(
|
|
74
|
+
supportingDocumentAttributes,
|
|
75
|
+
),
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function supportingDocumentAttributesFromJSON(
|
|
80
|
+
jsonString: string,
|
|
81
|
+
): SafeParseResult<SupportingDocumentAttributes, SDKValidationError> {
|
|
82
|
+
return safeParse(
|
|
83
|
+
jsonString,
|
|
84
|
+
(x) => SupportingDocumentAttributes$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
+
`Failed to parse 'SupportingDocumentAttributes' from JSON`,
|
|
86
|
+
);
|
|
87
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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 { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
DocumentType,
|
|
11
|
+
DocumentType$inboundSchema,
|
|
12
|
+
DocumentType$outboundSchema,
|
|
13
|
+
} from "./documenttype.js";
|
|
14
|
+
|
|
15
|
+
export type SupportingDocumentAttributesInput = {
|
|
16
|
+
/**
|
|
17
|
+
* Must include the extension, e.g: 'Privacy agreement.pdf'
|
|
18
|
+
*/
|
|
19
|
+
filename: string;
|
|
20
|
+
/**
|
|
21
|
+
* The type/purpose of the supporting document
|
|
22
|
+
*/
|
|
23
|
+
documentType: DocumentType;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const SupportingDocumentAttributesInput$inboundSchema: z.ZodType<
|
|
28
|
+
SupportingDocumentAttributesInput,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
filename: z.string(),
|
|
33
|
+
documentType: DocumentType$inboundSchema,
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type SupportingDocumentAttributesInput$Outbound = {
|
|
38
|
+
filename: string;
|
|
39
|
+
documentType: string;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const SupportingDocumentAttributesInput$outboundSchema: z.ZodType<
|
|
44
|
+
SupportingDocumentAttributesInput$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
SupportingDocumentAttributesInput
|
|
47
|
+
> = z.object({
|
|
48
|
+
filename: z.string(),
|
|
49
|
+
documentType: DocumentType$outboundSchema,
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
+
*/
|
|
56
|
+
export namespace SupportingDocumentAttributesInput$ {
|
|
57
|
+
/** @deprecated use `SupportingDocumentAttributesInput$inboundSchema` instead. */
|
|
58
|
+
export const inboundSchema = SupportingDocumentAttributesInput$inboundSchema;
|
|
59
|
+
/** @deprecated use `SupportingDocumentAttributesInput$outboundSchema` instead. */
|
|
60
|
+
export const outboundSchema =
|
|
61
|
+
SupportingDocumentAttributesInput$outboundSchema;
|
|
62
|
+
/** @deprecated use `SupportingDocumentAttributesInput$Outbound` instead. */
|
|
63
|
+
export type Outbound = SupportingDocumentAttributesInput$Outbound;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function supportingDocumentAttributesInputToJSON(
|
|
67
|
+
supportingDocumentAttributesInput: SupportingDocumentAttributesInput,
|
|
68
|
+
): string {
|
|
69
|
+
return JSON.stringify(
|
|
70
|
+
SupportingDocumentAttributesInput$outboundSchema.parse(
|
|
71
|
+
supportingDocumentAttributesInput,
|
|
72
|
+
),
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function supportingDocumentAttributesInputFromJSON(
|
|
77
|
+
jsonString: string,
|
|
78
|
+
): SafeParseResult<SupportingDocumentAttributesInput, SDKValidationError> {
|
|
79
|
+
return safeParse(
|
|
80
|
+
jsonString,
|
|
81
|
+
(x) => SupportingDocumentAttributesInput$inboundSchema.parse(JSON.parse(x)),
|
|
82
|
+
`Failed to parse 'SupportingDocumentAttributesInput' from JSON`,
|
|
83
|
+
);
|
|
84
|
+
}
|