@financeable/aggregation 0.2.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 +35 -0
- package/.devcontainer/devcontainer.json +45 -0
- package/FUNCTIONS.md +225 -0
- package/README.md +967 -0
- package/RUNTIMES.md +48 -0
- package/core.d.ts +10 -0
- package/core.d.ts.map +1 -0
- package/core.js +17 -0
- package/core.js.map +1 -0
- package/docs/sdks/applications/README.md +467 -0
- package/docs/sdks/financeable/README.md +5 -0
- package/financeable-typescript/.devcontainer/README.md +30 -0
- package/financeable-typescript/FUNCTIONS.md +205 -0
- package/financeable-typescript/README.md +895 -0
- package/financeable-typescript/RUNTIMES.md +22 -0
- package/financeable-typescript/docs/sdks/applications/README.md +427 -0
- package/financeable-typescript/docs/sdks/financeable/README.md +5 -0
- package/financeable-typescript/src/core.ts +13 -0
- package/financeable-typescript/src/funcs/applicationsCreate.ts +124 -0
- package/financeable-typescript/src/funcs/applicationsGet.ts +128 -0
- package/financeable-typescript/src/funcs/applicationsList.ts +126 -0
- package/financeable-typescript/src/hooks/hooks.ts +129 -0
- package/financeable-typescript/src/hooks/index.ts +6 -0
- package/financeable-typescript/src/hooks/types.ts +109 -0
- package/financeable-typescript/src/index.ts +7 -0
- package/financeable-typescript/src/lib/base64.ts +37 -0
- package/financeable-typescript/src/lib/config.ts +59 -0
- package/financeable-typescript/src/lib/dlv.ts +53 -0
- package/financeable-typescript/src/lib/encodings.ts +449 -0
- package/financeable-typescript/src/lib/env.ts +37 -0
- package/financeable-typescript/src/lib/files.ts +40 -0
- package/financeable-typescript/src/lib/http.ts +323 -0
- package/financeable-typescript/src/lib/is-plain-object.ts +43 -0
- package/financeable-typescript/src/lib/logger.ts +9 -0
- package/financeable-typescript/src/lib/matchers.ts +322 -0
- package/financeable-typescript/src/lib/primitives.ts +122 -0
- package/financeable-typescript/src/lib/retries.ts +219 -0
- package/financeable-typescript/src/lib/schemas.ts +86 -0
- package/financeable-typescript/src/lib/sdks.ts +392 -0
- package/financeable-typescript/src/lib/security.ts +227 -0
- package/financeable-typescript/src/lib/url.ts +33 -0
- package/financeable-typescript/src/models/components/addressattributes.ts +148 -0
- package/financeable-typescript/src/models/components/apierrorlinks.ts +65 -0
- package/financeable-typescript/src/models/components/applicationattributes.ts +128 -0
- package/financeable-typescript/src/models/components/applicationattributescreate.ts +90 -0
- package/financeable-typescript/src/models/components/applicationresourcebulksubmission.ts +1000 -0
- package/financeable-typescript/src/models/components/applicationstatus.ts +39 -0
- package/financeable-typescript/src/models/components/applicationtype.ts +33 -0
- package/financeable-typescript/src/models/components/assetattributes.ts +400 -0
- package/financeable-typescript/src/models/components/customerattributes.ts +171 -0
- package/financeable-typescript/src/models/components/customertitle.ts +35 -0
- package/financeable-typescript/src/models/components/errorsource.ts +79 -0
- package/financeable-typescript/src/models/components/forbiddenerror.ts +207 -0
- package/financeable-typescript/src/models/components/frequencytype.ts +40 -0
- package/financeable-typescript/src/models/components/index.ts +20 -0
- package/financeable-typescript/src/models/components/links.ts +72 -0
- package/financeable-typescript/src/models/components/loandetailsattributes.ts +187 -0
- package/financeable-typescript/src/models/components/repaymentstructure.ts +40 -0
- package/financeable-typescript/src/models/errors/apierror.ts +27 -0
- package/financeable-typescript/src/models/errors/createapplication.ts +76 -0
- package/financeable-typescript/src/models/errors/getapplication.ts +76 -0
- package/financeable-typescript/src/models/errors/getapplications.ts +76 -0
- package/financeable-typescript/src/models/errors/httpclienterrors.ts +62 -0
- package/financeable-typescript/src/models/errors/index.ts +10 -0
- package/financeable-typescript/src/models/errors/sdkvalidationerror.ts +97 -0
- package/financeable-typescript/src/models/operations/createapplication.ts +1649 -0
- package/financeable-typescript/src/models/operations/getapplication.ts +1829 -0
- package/financeable-typescript/src/models/operations/getapplications.ts +1790 -0
- package/financeable-typescript/src/models/operations/index.ts +7 -0
- package/financeable-typescript/src/sdk/applications.ts +55 -0
- package/financeable-typescript/src/sdk/index.ts +5 -0
- package/financeable-typescript/src/sdk/sdk.ts +13 -0
- package/financeable-typescript/src/types/blobs.ts +31 -0
- package/financeable-typescript/src/types/constdatetime.ts +15 -0
- package/financeable-typescript/src/types/enums.ts +16 -0
- package/financeable-typescript/src/types/fp.ts +50 -0
- package/financeable-typescript/src/types/index.ts +11 -0
- package/financeable-typescript/src/types/operations.ts +105 -0
- package/financeable-typescript/src/types/rfcdate.ts +54 -0
- package/financeable-typescript/src/types/streams.ts +21 -0
- package/funcs/applicationsCreate.d.ts +14 -0
- package/funcs/applicationsCreate.d.ts.map +1 -0
- package/funcs/applicationsCreate.js +105 -0
- package/funcs/applicationsCreate.js.map +1 -0
- package/funcs/applicationsGet.d.ts +13 -0
- package/funcs/applicationsGet.d.ts.map +1 -0
- package/funcs/applicationsGet.js +109 -0
- package/funcs/applicationsGet.js.map +1 -0
- package/funcs/applicationsList.d.ts +13 -0
- package/funcs/applicationsList.d.ts.map +1 -0
- package/funcs/applicationsList.js +107 -0
- package/funcs/applicationsList.js.map +1 -0
- package/hooks/hooks.d.ts +24 -0
- package/hooks/hooks.d.ts.map +1 -0
- package/hooks/hooks.js +84 -0
- package/hooks/hooks.js.map +1 -0
- package/hooks/index.d.ts +3 -0
- package/hooks/index.d.ts.map +1 -0
- package/hooks/index.js +22 -0
- package/hooks/index.js.map +1 -0
- package/hooks/types.d.ts +78 -0
- package/hooks/types.d.ts.map +1 -0
- package/hooks/types.js +6 -0
- package/hooks/types.js.map +1 -0
- package/index.d.ts +4 -0
- package/index.d.ts.map +1 -0
- package/index.js +46 -0
- package/index.js.map +1 -0
- package/jsr.json +27 -0
- package/lib/base64.d.ts +10 -0
- package/lib/base64.d.ts.map +1 -0
- package/lib/base64.js +71 -0
- package/lib/base64.js.map +1 -0
- package/lib/config.d.ts +33 -0
- package/lib/config.d.ts.map +1 -0
- package/lib/config.js +35 -0
- package/lib/config.js.map +1 -0
- package/lib/dlv.d.ts +14 -0
- package/lib/dlv.d.ts.map +1 -0
- package/lib/dlv.js +49 -0
- package/lib/dlv.js.map +1 -0
- package/lib/encodings.d.ts +52 -0
- package/lib/encodings.d.ts.map +1 -0
- package/lib/encodings.js +368 -0
- package/lib/encodings.js.map +1 -0
- package/lib/env.d.ts +14 -0
- package/lib/env.d.ts.map +1 -0
- package/lib/env.js +64 -0
- package/lib/env.js.map +1 -0
- package/lib/files.d.ts +8 -0
- package/lib/files.d.ts.map +1 -0
- package/lib/files.js +36 -0
- package/lib/files.js.map +1 -0
- package/lib/http.d.ts +67 -0
- package/lib/http.d.ts.map +1 -0
- package/lib/http.js +217 -0
- package/lib/http.js.map +1 -0
- package/lib/is-plain-object.d.ts +2 -0
- package/lib/is-plain-object.d.ts.map +1 -0
- package/lib/is-plain-object.js +41 -0
- package/lib/is-plain-object.js.map +1 -0
- package/lib/logger.d.ts +6 -0
- package/lib/logger.d.ts.map +1 -0
- package/lib/logger.js +6 -0
- package/lib/logger.js.map +1 -0
- package/lib/matchers.d.ts +64 -0
- package/lib/matchers.d.ts.map +1 -0
- package/lib/matchers.js +204 -0
- package/lib/matchers.js.map +1 -0
- package/lib/primitives.d.ts +23 -0
- package/lib/primitives.d.ts.map +1 -0
- package/lib/primitives.js +104 -0
- package/lib/primitives.js.map +1 -0
- package/lib/retries.d.ts +38 -0
- package/lib/retries.d.ts.map +1 -0
- package/lib/retries.js +153 -0
- package/lib/retries.js.map +1 -0
- package/lib/schemas.d.ts +19 -0
- package/lib/schemas.d.ts.map +1 -0
- package/lib/schemas.js +62 -0
- package/lib/schemas.js.map +1 -0
- package/lib/sdks.d.ts +60 -0
- package/lib/sdks.d.ts.map +1 -0
- package/lib/sdks.js +280 -0
- package/lib/sdks.js.map +1 -0
- package/lib/security.d.ts +79 -0
- package/lib/security.d.ts.map +1 -0
- package/lib/security.js +121 -0
- package/lib/security.js.map +1 -0
- package/lib/url.d.ts +5 -0
- package/lib/url.d.ts.map +1 -0
- package/lib/url.js +25 -0
- package/lib/url.js.map +1 -0
- package/models/components/addressattributes.d.ts +83 -0
- package/models/components/addressattributes.d.ts.map +1 -0
- package/models/components/addressattributes.js +117 -0
- package/models/components/addressattributes.js.map +1 -0
- package/models/components/apierrorlinks.d.ts +32 -0
- package/models/components/apierrorlinks.d.ts.map +1 -0
- package/models/components/apierrorlinks.js +69 -0
- package/models/components/apierrorlinks.js.map +1 -0
- package/models/components/applicationattributes.d.ts +69 -0
- package/models/components/applicationattributes.d.ts.map +1 -0
- package/models/components/applicationattributes.js +85 -0
- package/models/components/applicationattributes.js.map +1 -0
- package/models/components/applicationattributescreate.d.ts +43 -0
- package/models/components/applicationattributescreate.d.ts.map +1 -0
- package/models/components/applicationattributescreate.js +74 -0
- package/models/components/applicationattributescreate.js.map +1 -0
- package/models/components/applicationresourcebulksubmission.d.ts +456 -0
- package/models/components/applicationresourcebulksubmission.d.ts.map +1 -0
- package/models/components/applicationresourcebulksubmission.js +492 -0
- package/models/components/applicationresourcebulksubmission.js.map +1 -0
- package/models/components/applicationstatus.d.ts +46 -0
- package/models/components/applicationstatus.d.ts.map +1 -0
- package/models/components/applicationstatus.js +66 -0
- package/models/components/applicationstatus.js.map +1 -0
- package/models/components/applicationtype.d.ts +28 -0
- package/models/components/applicationtype.d.ts.map +1 -0
- package/models/components/applicationtype.js +60 -0
- package/models/components/applicationtype.js.map +1 -0
- package/models/components/assetattributes.d.ts +388 -0
- package/models/components/assetattributes.d.ts.map +1 -0
- package/models/components/assetattributes.js +244 -0
- package/models/components/assetattributes.js.map +1 -0
- package/models/components/customerattributes.d.ts +103 -0
- package/models/components/customerattributes.d.ts.map +1 -0
- package/models/components/customerattributes.js +120 -0
- package/models/components/customerattributes.js.map +1 -0
- package/models/components/customertitle.d.ts +34 -0
- package/models/components/customertitle.d.ts.map +1 -0
- package/models/components/customertitle.js +62 -0
- package/models/components/customertitle.js.map +1 -0
- package/models/components/errorsource.d.ts +42 -0
- package/models/components/errorsource.d.ts.map +1 -0
- package/models/components/errorsource.js +73 -0
- package/models/components/errorsource.js.map +1 -0
- package/models/components/forbiddenerror.d.ts +141 -0
- package/models/components/forbiddenerror.d.ts.map +1 -0
- package/models/components/forbiddenerror.js +158 -0
- package/models/components/forbiddenerror.js.map +1 -0
- package/models/components/frequencytype.d.ts +37 -0
- package/models/components/frequencytype.d.ts.map +1 -0
- package/models/components/frequencytype.js +64 -0
- package/models/components/frequencytype.js.map +1 -0
- package/models/components/index.d.ts +17 -0
- package/models/components/index.d.ts.map +1 -0
- package/models/components/index.js +36 -0
- package/models/components/index.js.map +1 -0
- package/models/components/links.d.ts +40 -0
- package/models/components/links.d.ts.map +1 -0
- package/models/components/links.js +72 -0
- package/models/components/links.js.map +1 -0
- package/models/components/loandetailsattributes.d.ts +112 -0
- package/models/components/loandetailsattributes.d.ts.map +1 -0
- package/models/components/loandetailsattributes.js +101 -0
- package/models/components/loandetailsattributes.js.map +1 -0
- package/models/components/repaymentstructure.d.ts +37 -0
- package/models/components/repaymentstructure.d.ts.map +1 -0
- package/models/components/repaymentstructure.js +64 -0
- package/models/components/repaymentstructure.js.map +1 -0
- package/models/errors/apierror.d.ts +8 -0
- package/models/errors/apierror.d.ts.map +1 -0
- package/models/errors/apierror.js +21 -0
- package/models/errors/apierror.js.map +1 -0
- package/models/errors/createapplication.d.ts +38 -0
- package/models/errors/createapplication.d.ts.map +1 -0
- package/models/errors/createapplication.js +81 -0
- package/models/errors/createapplication.js.map +1 -0
- package/models/errors/getapplication.d.ts +38 -0
- package/models/errors/getapplication.d.ts.map +1 -0
- package/models/errors/getapplication.js +81 -0
- package/models/errors/getapplication.js.map +1 -0
- package/models/errors/getapplications.d.ts +38 -0
- package/models/errors/getapplications.d.ts.map +1 -0
- package/models/errors/getapplications.js +81 -0
- package/models/errors/getapplications.js.map +1 -0
- package/models/errors/httpclienterrors.d.ts +44 -0
- package/models/errors/httpclienterrors.d.ts.map +1 -0
- package/models/errors/httpclienterrors.js +78 -0
- package/models/errors/httpclienterrors.js.map +1 -0
- package/models/errors/index.d.ts +7 -0
- package/models/errors/index.d.ts.map +1 -0
- package/models/errors/index.js +26 -0
- package/models/errors/index.js.map +1 -0
- package/models/errors/sdkvalidationerror.d.ts +20 -0
- package/models/errors/sdkvalidationerror.d.ts.map +1 -0
- package/models/errors/sdkvalidationerror.js +115 -0
- package/models/errors/sdkvalidationerror.js.map +1 -0
- package/models/operations/createapplication.d.ts +780 -0
- package/models/operations/createapplication.d.ts.map +1 -0
- package/models/operations/createapplication.js +834 -0
- package/models/operations/createapplication.js.map +1 -0
- package/models/operations/getapplication.d.ts +805 -0
- package/models/operations/getapplication.d.ts.map +1 -0
- package/models/operations/getapplication.js +861 -0
- package/models/operations/getapplication.js.map +1 -0
- package/models/operations/getapplications.d.ts +805 -0
- package/models/operations/getapplications.d.ts.map +1 -0
- package/models/operations/getapplications.js +864 -0
- package/models/operations/getapplications.js.map +1 -0
- package/models/operations/index.d.ts +4 -0
- package/models/operations/index.d.ts.map +1 -0
- package/models/operations/index.js +23 -0
- package/models/operations/index.js.map +1 -0
- package/package.json +30 -0
- package/sdk/applications.d.ts +18 -0
- package/sdk/applications.d.ts.map +1 -0
- package/sdk/applications.js +33 -0
- package/sdk/applications.js.map +1 -0
- package/sdk/index.d.ts +2 -0
- package/sdk/index.d.ts.map +1 -0
- package/sdk/index.js +21 -0
- package/sdk/index.js.map +1 -0
- package/sdk/sdk.d.ts +7 -0
- package/sdk/sdk.d.ts.map +1 -0
- package/sdk/sdk.js +15 -0
- package/sdk/sdk.js.map +1 -0
- package/src/core.ts +13 -0
- package/src/funcs/applicationsCreate.ts +128 -0
- package/src/funcs/applicationsGet.ts +132 -0
- package/src/funcs/applicationsList.ts +130 -0
- package/src/hooks/hooks.ts +129 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/types.ts +110 -0
- package/src/index.ts +7 -0
- package/src/lib/base64.ts +37 -0
- package/src/lib/config.ts +59 -0
- package/src/lib/dlv.ts +53 -0
- package/src/lib/encodings.ts +483 -0
- package/src/lib/env.ts +37 -0
- package/src/lib/files.ts +40 -0
- package/src/lib/http.ts +323 -0
- package/src/lib/is-plain-object.ts +43 -0
- package/src/lib/logger.ts +9 -0
- package/src/lib/matchers.ts +322 -0
- package/src/lib/primitives.ts +136 -0
- package/src/lib/retries.ts +218 -0
- package/src/lib/schemas.ts +91 -0
- package/src/lib/sdks.ts +400 -0
- package/src/lib/security.ts +227 -0
- package/src/lib/url.ts +33 -0
- package/src/models/components/addressattributes.ts +148 -0
- package/src/models/components/apierrorlinks.ts +65 -0
- package/src/models/components/applicationattributes.ts +128 -0
- package/src/models/components/applicationattributescreate.ts +90 -0
- package/src/models/components/applicationresourcebulksubmission.ts +1000 -0
- package/src/models/components/applicationstatus.ts +39 -0
- package/src/models/components/applicationtype.ts +33 -0
- package/src/models/components/assetattributes.ts +400 -0
- package/src/models/components/customerattributes.ts +171 -0
- package/src/models/components/customertitle.ts +35 -0
- package/src/models/components/errorsource.ts +79 -0
- package/src/models/components/forbiddenerror.ts +207 -0
- package/src/models/components/frequencytype.ts +40 -0
- package/src/models/components/index.ts +20 -0
- package/src/models/components/links.ts +72 -0
- package/src/models/components/loandetailsattributes.ts +187 -0
- package/src/models/components/repaymentstructure.ts +40 -0
- package/src/models/errors/apierror.ts +27 -0
- package/src/models/errors/createapplication.ts +76 -0
- package/src/models/errors/getapplication.ts +76 -0
- package/src/models/errors/getapplications.ts +76 -0
- package/src/models/errors/httpclienterrors.ts +62 -0
- package/src/models/errors/index.ts +10 -0
- package/src/models/errors/sdkvalidationerror.ts +97 -0
- package/src/models/operations/createapplication.ts +1649 -0
- package/src/models/operations/getapplication.ts +1829 -0
- package/src/models/operations/getapplications.ts +1790 -0
- package/src/models/operations/index.ts +7 -0
- package/src/sdk/applications.ts +55 -0
- package/src/sdk/index.ts +5 -0
- package/src/sdk/sdk.ts +13 -0
- package/src/types/blobs.ts +31 -0
- package/src/types/constdatetime.ts +15 -0
- package/src/types/enums.ts +16 -0
- package/src/types/fp.ts +50 -0
- package/src/types/index.ts +11 -0
- package/src/types/operations.ts +105 -0
- package/src/types/rfcdate.ts +54 -0
- package/src/types/streams.ts +21 -0
- package/tsconfig.json +41 -0
- package/types/blobs.d.ts +4 -0
- package/types/blobs.d.ts.map +1 -0
- package/types/blobs.js +62 -0
- package/types/blobs.js.map +1 -0
- package/types/constdatetime.d.ts +3 -0
- package/types/constdatetime.d.ts.map +1 -0
- package/types/constdatetime.js +46 -0
- package/types/constdatetime.js.map +1 -0
- package/types/enums.d.ts +12 -0
- package/types/enums.d.ts.map +1 -0
- package/types/enums.js +10 -0
- package/types/enums.js.map +1 -0
- package/types/fp.d.ts +31 -0
- package/types/fp.d.ts.map +1 -0
- package/types/fp.js +37 -0
- package/types/fp.js.map +1 -0
- package/types/index.d.ts +8 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.js +16 -0
- package/types/index.js.map +1 -0
- package/types/operations.d.ts +27 -0
- package/types/operations.d.ts.map +1 -0
- package/types/operations.js +83 -0
- package/types/operations.js.map +1 -0
- package/types/rfcdate.d.ts +21 -0
- package/types/rfcdate.d.ts.map +1 -0
- package/types/rfcdate.js +46 -0
- package/types/rfcdate.js.map +1 -0
- package/types/streams.d.ts +2 -0
- package/types/streams.d.ts.map +1 -0
- package/types/streams.js +18 -0
- package/types/streams.js.map +1 -0
|
@@ -0,0 +1,148 @@
|
|
|
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
|
+
|
|
11
|
+
export const Status = {
|
|
12
|
+
Current: "current",
|
|
13
|
+
Previous: "previous",
|
|
14
|
+
} as const;
|
|
15
|
+
export type Status = ClosedEnum<typeof Status>;
|
|
16
|
+
|
|
17
|
+
export type AddressAttributes = {
|
|
18
|
+
unitNumber?: number | undefined;
|
|
19
|
+
addressType: string;
|
|
20
|
+
fullAddress: string;
|
|
21
|
+
city: string;
|
|
22
|
+
postCode: string;
|
|
23
|
+
streetAddress: string;
|
|
24
|
+
addressLine2: string;
|
|
25
|
+
streetNumber: string;
|
|
26
|
+
streetType: string;
|
|
27
|
+
street: string;
|
|
28
|
+
state: string;
|
|
29
|
+
country: string;
|
|
30
|
+
status: Status;
|
|
31
|
+
monthsAt?: number | undefined;
|
|
32
|
+
yearsAt?: number | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const Status$inboundSchema: z.ZodNativeEnum<typeof Status> = z
|
|
37
|
+
.nativeEnum(Status);
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const Status$outboundSchema: z.ZodNativeEnum<typeof Status> =
|
|
41
|
+
Status$inboundSchema;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
+
*/
|
|
47
|
+
export namespace Status$ {
|
|
48
|
+
/** @deprecated use `Status$inboundSchema` instead. */
|
|
49
|
+
export const inboundSchema = Status$inboundSchema;
|
|
50
|
+
/** @deprecated use `Status$outboundSchema` instead. */
|
|
51
|
+
export const outboundSchema = Status$outboundSchema;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const AddressAttributes$inboundSchema: z.ZodType<
|
|
56
|
+
AddressAttributes,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
unknown
|
|
59
|
+
> = z.object({
|
|
60
|
+
unitNumber: z.number().int().optional(),
|
|
61
|
+
addressType: z.string(),
|
|
62
|
+
fullAddress: z.string(),
|
|
63
|
+
city: z.string(),
|
|
64
|
+
postCode: z.string(),
|
|
65
|
+
streetAddress: z.string(),
|
|
66
|
+
addressLine2: z.string(),
|
|
67
|
+
streetNumber: z.string(),
|
|
68
|
+
streetType: z.string(),
|
|
69
|
+
street: z.string(),
|
|
70
|
+
state: z.string(),
|
|
71
|
+
country: z.string(),
|
|
72
|
+
status: Status$inboundSchema,
|
|
73
|
+
monthsAt: z.number().int().optional(),
|
|
74
|
+
yearsAt: z.number().int().optional(),
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
/** @internal */
|
|
78
|
+
export type AddressAttributes$Outbound = {
|
|
79
|
+
unitNumber?: number | undefined;
|
|
80
|
+
addressType: string;
|
|
81
|
+
fullAddress: string;
|
|
82
|
+
city: string;
|
|
83
|
+
postCode: string;
|
|
84
|
+
streetAddress: string;
|
|
85
|
+
addressLine2: string;
|
|
86
|
+
streetNumber: string;
|
|
87
|
+
streetType: string;
|
|
88
|
+
street: string;
|
|
89
|
+
state: string;
|
|
90
|
+
country: string;
|
|
91
|
+
status: string;
|
|
92
|
+
monthsAt?: number | undefined;
|
|
93
|
+
yearsAt?: number | undefined;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
/** @internal */
|
|
97
|
+
export const AddressAttributes$outboundSchema: z.ZodType<
|
|
98
|
+
AddressAttributes$Outbound,
|
|
99
|
+
z.ZodTypeDef,
|
|
100
|
+
AddressAttributes
|
|
101
|
+
> = z.object({
|
|
102
|
+
unitNumber: z.number().int().optional(),
|
|
103
|
+
addressType: z.string(),
|
|
104
|
+
fullAddress: z.string(),
|
|
105
|
+
city: z.string(),
|
|
106
|
+
postCode: z.string(),
|
|
107
|
+
streetAddress: z.string(),
|
|
108
|
+
addressLine2: z.string(),
|
|
109
|
+
streetNumber: z.string(),
|
|
110
|
+
streetType: z.string(),
|
|
111
|
+
street: z.string(),
|
|
112
|
+
state: z.string(),
|
|
113
|
+
country: z.string(),
|
|
114
|
+
status: Status$outboundSchema,
|
|
115
|
+
monthsAt: z.number().int().optional(),
|
|
116
|
+
yearsAt: z.number().int().optional(),
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @internal
|
|
121
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
122
|
+
*/
|
|
123
|
+
export namespace AddressAttributes$ {
|
|
124
|
+
/** @deprecated use `AddressAttributes$inboundSchema` instead. */
|
|
125
|
+
export const inboundSchema = AddressAttributes$inboundSchema;
|
|
126
|
+
/** @deprecated use `AddressAttributes$outboundSchema` instead. */
|
|
127
|
+
export const outboundSchema = AddressAttributes$outboundSchema;
|
|
128
|
+
/** @deprecated use `AddressAttributes$Outbound` instead. */
|
|
129
|
+
export type Outbound = AddressAttributes$Outbound;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function addressAttributesToJSON(
|
|
133
|
+
addressAttributes: AddressAttributes,
|
|
134
|
+
): string {
|
|
135
|
+
return JSON.stringify(
|
|
136
|
+
AddressAttributes$outboundSchema.parse(addressAttributes),
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function addressAttributesFromJSON(
|
|
141
|
+
jsonString: string,
|
|
142
|
+
): SafeParseResult<AddressAttributes, SDKValidationError> {
|
|
143
|
+
return safeParse(
|
|
144
|
+
jsonString,
|
|
145
|
+
(x) => AddressAttributes$inboundSchema.parse(JSON.parse(x)),
|
|
146
|
+
`Failed to parse 'AddressAttributes' from JSON`,
|
|
147
|
+
);
|
|
148
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
|
|
10
|
+
export type APIErrorLinks = {
|
|
11
|
+
/**
|
|
12
|
+
* A URI linking to the Financeable documentation of the error
|
|
13
|
+
*/
|
|
14
|
+
about?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const APIErrorLinks$inboundSchema: z.ZodType<
|
|
19
|
+
APIErrorLinks,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
about: z.string().optional(),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type APIErrorLinks$Outbound = {
|
|
28
|
+
about?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const APIErrorLinks$outboundSchema: z.ZodType<
|
|
33
|
+
APIErrorLinks$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
APIErrorLinks
|
|
36
|
+
> = z.object({
|
|
37
|
+
about: z.string().optional(),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
+
*/
|
|
44
|
+
export namespace APIErrorLinks$ {
|
|
45
|
+
/** @deprecated use `APIErrorLinks$inboundSchema` instead. */
|
|
46
|
+
export const inboundSchema = APIErrorLinks$inboundSchema;
|
|
47
|
+
/** @deprecated use `APIErrorLinks$outboundSchema` instead. */
|
|
48
|
+
export const outboundSchema = APIErrorLinks$outboundSchema;
|
|
49
|
+
/** @deprecated use `APIErrorLinks$Outbound` instead. */
|
|
50
|
+
export type Outbound = APIErrorLinks$Outbound;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function apiErrorLinksToJSON(apiErrorLinks: APIErrorLinks): string {
|
|
54
|
+
return JSON.stringify(APIErrorLinks$outboundSchema.parse(apiErrorLinks));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function apiErrorLinksFromJSON(
|
|
58
|
+
jsonString: string,
|
|
59
|
+
): SafeParseResult<APIErrorLinks, SDKValidationError> {
|
|
60
|
+
return safeParse(
|
|
61
|
+
jsonString,
|
|
62
|
+
(x) => APIErrorLinks$inboundSchema.parse(JSON.parse(x)),
|
|
63
|
+
`Failed to parse 'APIErrorLinks' from JSON`,
|
|
64
|
+
);
|
|
65
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
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
|
+
ApplicationStatus,
|
|
11
|
+
ApplicationStatus$inboundSchema,
|
|
12
|
+
ApplicationStatus$outboundSchema,
|
|
13
|
+
} from "./applicationstatus.js";
|
|
14
|
+
import {
|
|
15
|
+
ApplicationType,
|
|
16
|
+
ApplicationType$inboundSchema,
|
|
17
|
+
ApplicationType$outboundSchema,
|
|
18
|
+
} from "./applicationtype.js";
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Application resource attributes
|
|
22
|
+
*/
|
|
23
|
+
export type ApplicationAttributes = {
|
|
24
|
+
/**
|
|
25
|
+
* Human readable identifier
|
|
26
|
+
*/
|
|
27
|
+
humanId?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Purpose of the application
|
|
30
|
+
*/
|
|
31
|
+
purpose?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Type of the application
|
|
34
|
+
*/
|
|
35
|
+
applicationType: ApplicationType;
|
|
36
|
+
/**
|
|
37
|
+
* Current status, must be 'workshop' for new applications
|
|
38
|
+
*/
|
|
39
|
+
status: ApplicationStatus;
|
|
40
|
+
/**
|
|
41
|
+
* Consent document reference
|
|
42
|
+
*/
|
|
43
|
+
consentDocument?: string | undefined;
|
|
44
|
+
introducer?: string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Creation timestamp
|
|
47
|
+
*/
|
|
48
|
+
createdAt?: string | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Last update timestamp
|
|
51
|
+
*/
|
|
52
|
+
updatedAt?: string | undefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const ApplicationAttributes$inboundSchema: z.ZodType<
|
|
57
|
+
ApplicationAttributes,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
unknown
|
|
60
|
+
> = z.object({
|
|
61
|
+
humanId: z.string().optional(),
|
|
62
|
+
purpose: z.string().optional(),
|
|
63
|
+
applicationType: ApplicationType$inboundSchema,
|
|
64
|
+
status: ApplicationStatus$inboundSchema,
|
|
65
|
+
consentDocument: z.string().optional(),
|
|
66
|
+
introducer: z.string().optional(),
|
|
67
|
+
createdAt: z.string().optional(),
|
|
68
|
+
updatedAt: z.string().optional(),
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export type ApplicationAttributes$Outbound = {
|
|
73
|
+
humanId?: string | undefined;
|
|
74
|
+
purpose?: string | undefined;
|
|
75
|
+
applicationType: string;
|
|
76
|
+
status: string;
|
|
77
|
+
consentDocument?: string | undefined;
|
|
78
|
+
introducer?: string | undefined;
|
|
79
|
+
createdAt?: string | undefined;
|
|
80
|
+
updatedAt?: string | undefined;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/** @internal */
|
|
84
|
+
export const ApplicationAttributes$outboundSchema: z.ZodType<
|
|
85
|
+
ApplicationAttributes$Outbound,
|
|
86
|
+
z.ZodTypeDef,
|
|
87
|
+
ApplicationAttributes
|
|
88
|
+
> = z.object({
|
|
89
|
+
humanId: z.string().optional(),
|
|
90
|
+
purpose: z.string().optional(),
|
|
91
|
+
applicationType: ApplicationType$outboundSchema,
|
|
92
|
+
status: ApplicationStatus$outboundSchema,
|
|
93
|
+
consentDocument: z.string().optional(),
|
|
94
|
+
introducer: z.string().optional(),
|
|
95
|
+
createdAt: z.string().optional(),
|
|
96
|
+
updatedAt: z.string().optional(),
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @internal
|
|
101
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
102
|
+
*/
|
|
103
|
+
export namespace ApplicationAttributes$ {
|
|
104
|
+
/** @deprecated use `ApplicationAttributes$inboundSchema` instead. */
|
|
105
|
+
export const inboundSchema = ApplicationAttributes$inboundSchema;
|
|
106
|
+
/** @deprecated use `ApplicationAttributes$outboundSchema` instead. */
|
|
107
|
+
export const outboundSchema = ApplicationAttributes$outboundSchema;
|
|
108
|
+
/** @deprecated use `ApplicationAttributes$Outbound` instead. */
|
|
109
|
+
export type Outbound = ApplicationAttributes$Outbound;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function applicationAttributesToJSON(
|
|
113
|
+
applicationAttributes: ApplicationAttributes,
|
|
114
|
+
): string {
|
|
115
|
+
return JSON.stringify(
|
|
116
|
+
ApplicationAttributes$outboundSchema.parse(applicationAttributes),
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function applicationAttributesFromJSON(
|
|
121
|
+
jsonString: string,
|
|
122
|
+
): SafeParseResult<ApplicationAttributes, SDKValidationError> {
|
|
123
|
+
return safeParse(
|
|
124
|
+
jsonString,
|
|
125
|
+
(x) => ApplicationAttributes$inboundSchema.parse(JSON.parse(x)),
|
|
126
|
+
`Failed to parse 'ApplicationAttributes' from JSON`,
|
|
127
|
+
);
|
|
128
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
ApplicationType,
|
|
11
|
+
ApplicationType$inboundSchema,
|
|
12
|
+
ApplicationType$outboundSchema,
|
|
13
|
+
} from "./applicationtype.js";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Application resource attributes
|
|
17
|
+
*/
|
|
18
|
+
export type ApplicationAttributesCreate = {
|
|
19
|
+
/**
|
|
20
|
+
* Purpose of the application
|
|
21
|
+
*/
|
|
22
|
+
purpose?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Type of the application
|
|
25
|
+
*/
|
|
26
|
+
applicationType: ApplicationType;
|
|
27
|
+
introducer?: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const ApplicationAttributesCreate$inboundSchema: z.ZodType<
|
|
32
|
+
ApplicationAttributesCreate,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
unknown
|
|
35
|
+
> = z.object({
|
|
36
|
+
purpose: z.string().optional(),
|
|
37
|
+
applicationType: ApplicationType$inboundSchema,
|
|
38
|
+
introducer: z.string().optional(),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export type ApplicationAttributesCreate$Outbound = {
|
|
43
|
+
purpose?: string | undefined;
|
|
44
|
+
applicationType: string;
|
|
45
|
+
introducer?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const ApplicationAttributesCreate$outboundSchema: z.ZodType<
|
|
50
|
+
ApplicationAttributesCreate$Outbound,
|
|
51
|
+
z.ZodTypeDef,
|
|
52
|
+
ApplicationAttributesCreate
|
|
53
|
+
> = z.object({
|
|
54
|
+
purpose: z.string().optional(),
|
|
55
|
+
applicationType: ApplicationType$outboundSchema,
|
|
56
|
+
introducer: z.string().optional(),
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
62
|
+
*/
|
|
63
|
+
export namespace ApplicationAttributesCreate$ {
|
|
64
|
+
/** @deprecated use `ApplicationAttributesCreate$inboundSchema` instead. */
|
|
65
|
+
export const inboundSchema = ApplicationAttributesCreate$inboundSchema;
|
|
66
|
+
/** @deprecated use `ApplicationAttributesCreate$outboundSchema` instead. */
|
|
67
|
+
export const outboundSchema = ApplicationAttributesCreate$outboundSchema;
|
|
68
|
+
/** @deprecated use `ApplicationAttributesCreate$Outbound` instead. */
|
|
69
|
+
export type Outbound = ApplicationAttributesCreate$Outbound;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function applicationAttributesCreateToJSON(
|
|
73
|
+
applicationAttributesCreate: ApplicationAttributesCreate,
|
|
74
|
+
): string {
|
|
75
|
+
return JSON.stringify(
|
|
76
|
+
ApplicationAttributesCreate$outboundSchema.parse(
|
|
77
|
+
applicationAttributesCreate,
|
|
78
|
+
),
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function applicationAttributesCreateFromJSON(
|
|
83
|
+
jsonString: string,
|
|
84
|
+
): SafeParseResult<ApplicationAttributesCreate, SDKValidationError> {
|
|
85
|
+
return safeParse(
|
|
86
|
+
jsonString,
|
|
87
|
+
(x) => ApplicationAttributesCreate$inboundSchema.parse(JSON.parse(x)),
|
|
88
|
+
`Failed to parse 'ApplicationAttributesCreate' from JSON`,
|
|
89
|
+
);
|
|
90
|
+
}
|