@financeable/aggregation 0.5.1 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +14 -131
- package/README.md +271 -1512
- package/docs/sdks/applications/README.md +24 -383
- package/docs/sdks/oauthtoken/README.md +5 -5
- package/docs/sdks/supportingdocuments/README.md +121 -0
- package/funcs/applicationsCreate.d.ts +1 -2
- package/funcs/applicationsCreate.d.ts.map +1 -1
- package/funcs/applicationsCreate.js +3 -4
- package/funcs/applicationsCreate.js.map +1 -1
- package/funcs/{oauthTokenGet.d.ts → oauthTokenOauthToken.d.ts} +2 -2
- package/funcs/oauthTokenOauthToken.d.ts.map +1 -0
- package/funcs/{oauthTokenGet.js → oauthTokenOauthToken.js} +3 -3
- package/funcs/oauthTokenOauthToken.js.map +1 -0
- package/funcs/supportingDocumentsCreate.d.ts +14 -0
- package/funcs/supportingDocumentsCreate.d.ts.map +1 -0
- package/funcs/{applicationsList.js → supportingDocumentsCreate.js} +14 -12
- package/funcs/supportingDocumentsCreate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +4 -7
- package/lib/config.js.map +1 -1
- package/lib/matchers.d.ts +3 -1
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +12 -0
- package/lib/matchers.js.map +1 -1
- package/lib/sdks.d.ts +3 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +13 -13
- package/lib/sdks.js.map +1 -1
- package/models/components/addressattributes.d.ts +10 -8
- package/models/components/addressattributes.d.ts.map +1 -1
- package/models/components/addressattributes.js +15 -14
- package/models/components/addressattributes.js.map +1 -1
- package/models/components/applicationresource.d.ts +30 -0
- package/models/components/applicationresource.d.ts.map +1 -0
- package/models/components/applicationresource.js +73 -0
- package/models/components/applicationresource.js.map +1 -0
- package/models/components/badrequesterror.d.ts +119 -0
- package/models/components/badrequesterror.d.ts.map +1 -0
- package/models/components/badrequesterror.js +140 -0
- package/models/components/badrequesterror.js.map +1 -0
- package/models/components/commercialapplicationjsonapirelationships.d.ts +384 -0
- package/models/components/commercialapplicationjsonapirelationships.d.ts.map +1 -0
- package/models/components/commercialapplicationjsonapirelationships.js +391 -0
- package/models/components/commercialapplicationjsonapirelationships.js.map +1 -0
- package/models/components/commercialsecuredapplicationpayload.d.ts +164 -0
- package/models/components/commercialsecuredapplicationpayload.d.ts.map +1 -0
- package/models/components/commercialsecuredapplicationpayload.js +158 -0
- package/models/components/commercialsecuredapplicationpayload.js.map +1 -0
- package/models/components/commercialsecuredapplicationresource.d.ts +171 -0
- package/models/components/commercialsecuredapplicationresource.d.ts.map +1 -0
- package/models/components/commercialsecuredapplicationresource.js +161 -0
- package/models/components/commercialsecuredapplicationresource.js.map +1 -0
- package/models/components/commercialsecuredloanassetattributes.d.ts +237 -0
- package/models/components/commercialsecuredloanassetattributes.d.ts.map +1 -0
- package/models/components/commercialsecuredloanassetattributes.js +170 -0
- package/models/components/commercialsecuredloanassetattributes.js.map +1 -0
- package/models/components/commercialsecuredloanassettype.d.ts +100 -0
- package/models/components/commercialsecuredloanassettype.d.ts.map +1 -0
- package/models/components/commercialsecuredloanassettype.js +84 -0
- package/models/components/commercialsecuredloanassettype.js.map +1 -0
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +537 -0
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -0
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js +548 -0
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -0
- package/models/components/consumerapplicationjsonapirelationships.d.ts +296 -0
- package/models/components/consumerapplicationjsonapirelationships.d.ts.map +1 -0
- package/models/components/consumerapplicationjsonapirelationships.js +310 -0
- package/models/components/consumerapplicationjsonapirelationships.js.map +1 -0
- package/models/components/consumersecuredapplicationpayload.d.ts +164 -0
- package/models/components/consumersecuredapplicationpayload.d.ts.map +1 -0
- package/models/components/consumersecuredapplicationpayload.js +158 -0
- package/models/components/consumersecuredapplicationpayload.js.map +1 -0
- package/models/components/consumersecuredapplicationresource.d.ts +171 -0
- package/models/components/consumersecuredapplicationresource.d.ts.map +1 -0
- package/models/components/consumersecuredapplicationresource.js +161 -0
- package/models/components/consumersecuredapplicationresource.js.map +1 -0
- package/models/components/consumersecuredloanassetattributes.d.ts +237 -0
- package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -0
- package/models/components/consumersecuredloanassetattributes.js +172 -0
- package/models/components/consumersecuredloanassetattributes.js.map +1 -0
- package/models/components/consumersecuredloanassettype.d.ts +64 -0
- package/models/components/consumersecuredloanassettype.d.ts.map +1 -0
- package/models/components/{consumerassettype.js → consumersecuredloanassettype.js} +27 -28
- package/models/components/consumersecuredloanassettype.js.map +1 -0
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +425 -0
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -0
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js +443 -0
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -0
- package/models/components/createsupportingdocumentsresponse.d.ts +124 -0
- package/models/components/createsupportingdocumentsresponse.d.ts.map +1 -0
- package/models/components/createsupportingdocumentsresponse.js +138 -0
- package/models/components/createsupportingdocumentsresponse.js.map +1 -0
- package/models/components/customerattributes.d.ts +2 -0
- package/models/components/customerattributes.d.ts.map +1 -1
- package/models/components/customerattributes.js +2 -0
- package/models/components/customerattributes.js.map +1 -1
- package/models/components/documenttype.d.ts +70 -0
- package/models/components/documenttype.d.ts.map +1 -0
- package/models/{errors/responsebody.js → components/documenttype.js} +28 -34
- package/models/components/documenttype.js.map +1 -0
- package/models/components/entityattributes.d.ts +2 -22
- package/models/components/entityattributes.d.ts.map +1 -1
- package/models/components/entityattributes.js +2 -19
- package/models/components/entityattributes.js.map +1 -1
- package/models/components/forbiddenerror.d.ts +17 -39
- package/models/components/forbiddenerror.d.ts.map +1 -1
- package/models/components/forbiddenerror.js +27 -46
- package/models/components/forbiddenerror.js.map +1 -1
- package/models/components/index.d.ts +24 -8
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +24 -8
- package/models/components/index.js.map +1 -1
- package/models/components/linkobject.d.ts +47 -0
- package/models/components/linkobject.d.ts.map +1 -0
- package/models/components/{links.js → linkobject.js} +27 -22
- package/models/components/linkobject.js.map +1 -0
- package/models/components/loandetailsattributes.d.ts +2 -0
- package/models/components/loandetailsattributes.d.ts.map +1 -1
- package/models/components/loandetailsattributes.js +2 -0
- package/models/components/loandetailsattributes.js.map +1 -1
- package/models/components/relationshipresourcenotfound.d.ts +116 -0
- package/models/components/relationshipresourcenotfound.d.ts.map +1 -0
- package/models/components/relationshipresourcenotfound.js +139 -0
- package/models/components/relationshipresourcenotfound.js.map +1 -0
- package/models/components/resourcenotfound.d.ts +119 -0
- package/models/components/resourcenotfound.d.ts.map +1 -0
- package/models/components/resourcenotfound.js +139 -0
- package/models/components/resourcenotfound.js.map +1 -0
- package/models/components/supportingdocumentattributes.d.ts +40 -0
- package/models/components/supportingdocumentattributes.d.ts.map +1 -0
- package/models/components/{applicationattributescreate.js → supportingdocumentattributes.js} +24 -24
- package/models/components/supportingdocumentattributes.js.map +1 -0
- package/models/components/supportingdocumentattributesinput.d.ts +38 -0
- package/models/components/supportingdocumentattributesinput.d.ts.map +1 -0
- package/models/components/supportingdocumentattributesinput.js +72 -0
- package/models/components/supportingdocumentattributesinput.js.map +1 -0
- package/models/components/supportingdocumentrelationships.d.ts +448 -0
- package/models/components/supportingdocumentrelationships.d.ts.map +1 -0
- package/models/components/supportingdocumentrelationships.js +434 -0
- package/models/components/supportingdocumentrelationships.js.map +1 -0
- package/models/components/supportingdocumentresource.d.ts +71 -0
- package/models/components/supportingdocumentresource.d.ts.map +1 -0
- package/models/components/supportingdocumentresource.js +98 -0
- package/models/components/supportingdocumentresource.js.map +1 -0
- package/models/components/uploadmimetype.d.ts +49 -0
- package/models/components/uploadmimetype.d.ts.map +1 -0
- package/models/components/{applicationtype.js → uploadmimetype.js} +22 -14
- package/models/components/uploadmimetype.js.map +1 -0
- package/models/errors/createapplication.d.ts +73 -0
- package/models/errors/createapplication.d.ts.map +1 -0
- package/models/errors/createapplication.js +120 -0
- package/models/errors/createapplication.js.map +1 -0
- package/models/errors/index.d.ts +2 -1
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +2 -1
- package/models/errors/index.js.map +1 -1
- package/models/errors/supportingdocumentscreate.d.ts +143 -0
- package/models/errors/supportingdocumentscreate.d.ts.map +1 -0
- package/models/errors/supportingdocumentscreate.js +225 -0
- package/models/errors/supportingdocumentscreate.js.map +1 -0
- package/models/operations/createapplication.d.ts +26 -874
- package/models/operations/createapplication.d.ts.map +1 -1
- package/models/operations/createapplication.js +37 -899
- package/models/operations/createapplication.js.map +1 -1
- package/models/operations/index.d.ts +1 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -2
- package/models/operations/index.js.map +1 -1
- package/models/operations/supportingdocumentscreate.d.ts +94 -0
- package/models/operations/supportingdocumentscreate.d.ts.map +1 -0
- package/models/operations/supportingdocumentscreate.js +135 -0
- package/models/operations/supportingdocumentscreate.js.map +1 -0
- package/package.json +2 -2
- package/sdk/applications.d.ts +1 -10
- package/sdk/applications.d.ts.map +1 -1
- package/sdk/applications.js +0 -14
- package/sdk/applications.js.map +1 -1
- package/sdk/oauthtoken.d.ts +1 -1
- package/sdk/oauthtoken.d.ts.map +1 -1
- package/sdk/oauthtoken.js +3 -3
- package/sdk/oauthtoken.js.map +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/supportingdocuments.d.ts +9 -0
- package/sdk/supportingdocuments.d.ts.map +1 -0
- package/sdk/supportingdocuments.js +19 -0
- package/sdk/supportingdocuments.js.map +1 -0
- package/src/funcs/applicationsCreate.ts +15 -9
- package/src/funcs/{oauthTokenGet.ts → oauthTokenOauthToken.ts} +1 -1
- package/src/funcs/{applicationsList.ts → supportingDocumentsCreate.ts} +30 -20
- package/src/lib/config.ts +4 -7
- package/src/lib/matchers.ts +20 -0
- package/src/lib/sdks.ts +19 -13
- package/src/models/components/addressattributes.ts +22 -14
- package/src/models/components/applicationresource.ts +83 -0
- package/src/models/components/badrequesterror.ts +182 -0
- package/src/models/components/commercialapplicationjsonapirelationships.ts +894 -0
- package/src/models/components/commercialsecuredapplicationpayload.ts +248 -0
- package/src/models/components/commercialsecuredapplicationresource.ts +310 -0
- package/src/models/components/commercialsecuredloanassetattributes.ts +319 -0
- package/src/models/components/commercialsecuredloanassettype.ts +64 -0
- package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +1238 -0
- package/src/models/components/consumerapplicationjsonapirelationships.ts +683 -0
- package/src/models/components/consumersecuredapplicationpayload.ts +273 -0
- package/src/models/components/consumersecuredapplicationresource.ts +309 -0
- package/src/models/components/consumersecuredloanassetattributes.ts +334 -0
- package/src/models/components/consumersecuredloanassettype.ts +47 -0
- package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +1047 -0
- package/src/models/components/createsupportingdocumentsresponse.ts +206 -0
- package/src/models/components/customerattributes.ts +4 -0
- package/src/models/components/documenttype.ts +49 -0
- package/src/models/components/entityattributes.ts +4 -44
- package/src/models/components/forbiddenerror.ts +35 -58
- package/src/models/components/index.ts +24 -8
- package/src/models/components/linkobject.ts +84 -0
- package/src/models/components/loandetailsattributes.ts +4 -0
- package/src/models/components/relationshipresourcenotfound.ts +195 -0
- package/src/models/components/resourcenotfound.ts +188 -0
- package/src/models/components/supportingdocumentattributes.ts +87 -0
- package/src/models/components/supportingdocumentattributesinput.ts +84 -0
- package/src/models/components/supportingdocumentrelationships.ts +828 -0
- package/src/models/components/supportingdocumentresource.ts +126 -0
- package/src/models/components/uploadmimetype.ts +44 -0
- package/src/models/errors/createapplication.ts +149 -0
- package/src/models/errors/index.ts +2 -1
- package/src/models/errors/supportingdocumentscreate.ts +342 -0
- package/src/models/operations/createapplication.ts +69 -1913
- package/src/models/operations/index.ts +1 -2
- package/src/models/operations/supportingdocumentscreate.ts +222 -0
- package/src/sdk/applications.ts +1 -32
- package/src/sdk/oauthtoken.ts +3 -3
- package/src/sdk/sdk.ts +8 -0
- package/src/sdk/supportingdocuments.ts +24 -0
- package/funcs/applicationsGet.d.ts +0 -14
- package/funcs/applicationsGet.d.ts.map +0 -1
- package/funcs/applicationsGet.js +0 -120
- package/funcs/applicationsGet.js.map +0 -1
- package/funcs/applicationsList.d.ts +0 -14
- package/funcs/applicationsList.d.ts.map +0 -1
- package/funcs/applicationsList.js.map +0 -1
- package/funcs/oauthTokenGet.d.ts.map +0 -1
- package/funcs/oauthTokenGet.js.map +0 -1
- package/models/components/applicationattributes.d.ts +0 -69
- package/models/components/applicationattributes.d.ts.map +0 -1
- package/models/components/applicationattributes.js +0 -85
- package/models/components/applicationattributes.js.map +0 -1
- package/models/components/applicationattributescreate.d.ts +0 -43
- package/models/components/applicationattributescreate.d.ts.map +0 -1
- package/models/components/applicationattributescreate.js.map +0 -1
- package/models/components/applicationresourcebulksubmission.d.ts +0 -527
- package/models/components/applicationresourcebulksubmission.d.ts.map +0 -1
- package/models/components/applicationresourcebulksubmission.js +0 -565
- package/models/components/applicationresourcebulksubmission.js.map +0 -1
- package/models/components/applicationtype.d.ts +0 -28
- package/models/components/applicationtype.d.ts.map +0 -1
- package/models/components/applicationtype.js.map +0 -1
- package/models/components/assetattributes.d.ts +0 -311
- package/models/components/assetattributes.d.ts.map +0 -1
- package/models/components/assetattributes.js +0 -234
- package/models/components/assetattributes.js.map +0 -1
- package/models/components/commercialassettype.d.ts +0 -44
- package/models/components/commercialassettype.d.ts.map +0 -1
- package/models/components/commercialassettype.js +0 -85
- package/models/components/commercialassettype.js.map +0 -1
- package/models/components/consumerassettype.d.ts +0 -32
- package/models/components/consumerassettype.d.ts.map +0 -1
- package/models/components/consumerassettype.js.map +0 -1
- package/models/components/links.d.ts +0 -40
- package/models/components/links.d.ts.map +0 -1
- package/models/components/links.js.map +0 -1
- package/models/errors/responsebody.d.ts +0 -38
- package/models/errors/responsebody.d.ts.map +0 -1
- package/models/errors/responsebody.js.map +0 -1
- package/models/operations/getapplication.d.ts +0 -962
- package/models/operations/getapplication.d.ts.map +0 -1
- package/models/operations/getapplication.js +0 -1030
- package/models/operations/getapplication.js.map +0 -1
- package/models/operations/getapplications.d.ts +0 -962
- package/models/operations/getapplications.d.ts.map +0 -1
- package/models/operations/getapplications.js +0 -1029
- package/models/operations/getapplications.js.map +0 -1
- package/src/funcs/applicationsGet.ts +0 -168
- package/src/models/components/applicationattributes.ts +0 -128
- package/src/models/components/applicationattributescreate.ts +0 -90
- package/src/models/components/applicationresourcebulksubmission.ts +0 -1172
- package/src/models/components/applicationtype.ts +0 -33
- package/src/models/components/assetattributes.ts +0 -411
- package/src/models/components/commercialassettype.ts +0 -61
- package/src/models/components/consumerassettype.ts +0 -43
- package/src/models/components/links.ts +0 -72
- package/src/models/errors/responsebody.ts +0 -76
- package/src/models/operations/getapplication.ts +0 -2246
- package/src/models/operations/getapplications.ts +0 -2191
|
@@ -1,33 +0,0 @@
|
|
|
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 ApplicationType = {
|
|
9
|
-
Consumer: "consumer",
|
|
10
|
-
Commercial: "commercial",
|
|
11
|
-
} as const;
|
|
12
|
-
export type ApplicationType = ClosedEnum<typeof ApplicationType>;
|
|
13
|
-
|
|
14
|
-
/** @internal */
|
|
15
|
-
export const ApplicationType$inboundSchema: z.ZodNativeEnum<
|
|
16
|
-
typeof ApplicationType
|
|
17
|
-
> = z.nativeEnum(ApplicationType);
|
|
18
|
-
|
|
19
|
-
/** @internal */
|
|
20
|
-
export const ApplicationType$outboundSchema: z.ZodNativeEnum<
|
|
21
|
-
typeof ApplicationType
|
|
22
|
-
> = ApplicationType$inboundSchema;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* @internal
|
|
26
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27
|
-
*/
|
|
28
|
-
export namespace ApplicationType$ {
|
|
29
|
-
/** @deprecated use `ApplicationType$inboundSchema` instead. */
|
|
30
|
-
export const inboundSchema = ApplicationType$inboundSchema;
|
|
31
|
-
/** @deprecated use `ApplicationType$outboundSchema` instead. */
|
|
32
|
-
export const outboundSchema = ApplicationType$outboundSchema;
|
|
33
|
-
}
|
|
@@ -1,411 +0,0 @@
|
|
|
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
|
-
CommercialAssetType,
|
|
12
|
-
CommercialAssetType$inboundSchema,
|
|
13
|
-
CommercialAssetType$outboundSchema,
|
|
14
|
-
} from "./commercialassettype.js";
|
|
15
|
-
import {
|
|
16
|
-
ConsumerAssetType,
|
|
17
|
-
ConsumerAssetType$inboundSchema,
|
|
18
|
-
ConsumerAssetType$outboundSchema,
|
|
19
|
-
} from "./consumerassettype.js";
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Condition of asset
|
|
23
|
-
*/
|
|
24
|
-
export const Condition = {
|
|
25
|
-
New: "NEW",
|
|
26
|
-
Demo: "DEMO",
|
|
27
|
-
Used: "USED",
|
|
28
|
-
} as const;
|
|
29
|
-
/**
|
|
30
|
-
* Condition of asset
|
|
31
|
-
*/
|
|
32
|
-
export type Condition = ClosedEnum<typeof Condition>;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Type of asset - must be a member of the enums ConsumerAssetType or CommercialAssetType depending on the respective Application type
|
|
36
|
-
*/
|
|
37
|
-
export type AssetType = ConsumerAssetType | CommercialAssetType;
|
|
38
|
-
|
|
39
|
-
export const Purpose = {
|
|
40
|
-
Vehicle: "VEHICLE",
|
|
41
|
-
DebtConsolidation: "DEBT_CONSOLIDATION",
|
|
42
|
-
HomeImprovements: "HOME_IMPROVEMENTS",
|
|
43
|
-
MEDICALAndDENTAL: "MEDICAL_&_DENTAL",
|
|
44
|
-
HouseholdFurnishings: "HOUSEHOLD_FURNISHINGS",
|
|
45
|
-
Education: "EDUCATION",
|
|
46
|
-
Travel: "TRAVEL",
|
|
47
|
-
Wedding: "WEDDING",
|
|
48
|
-
MortgageCostFunding: "MORTGAGE_COST_FUNDING",
|
|
49
|
-
OtherPersonalUse: "OTHER_PERSONAL_USE",
|
|
50
|
-
} as const;
|
|
51
|
-
export type Purpose = ClosedEnum<typeof Purpose>;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Registration state (or territory) of asset
|
|
55
|
-
*/
|
|
56
|
-
export const RegistrationState = {
|
|
57
|
-
Vic: "VIC",
|
|
58
|
-
Nsw: "NSW",
|
|
59
|
-
Qld: "QLD",
|
|
60
|
-
Sa: "SA",
|
|
61
|
-
Wa: "WA",
|
|
62
|
-
Tas: "TAS",
|
|
63
|
-
Nt: "NT",
|
|
64
|
-
Act: "ACT",
|
|
65
|
-
} as const;
|
|
66
|
-
/**
|
|
67
|
-
* Registration state (or territory) of asset
|
|
68
|
-
*/
|
|
69
|
-
export type RegistrationState = ClosedEnum<typeof RegistrationState>;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* The asset to be obtained by the customer, using the proposed loan financing.
|
|
73
|
-
*/
|
|
74
|
-
export type AssetAttributes = {
|
|
75
|
-
/**
|
|
76
|
-
* Current age of asset as number (integer) of years
|
|
77
|
-
*/
|
|
78
|
-
ageOfAsset: number;
|
|
79
|
-
/**
|
|
80
|
-
* Age of asset at the end of the loan term, in years
|
|
81
|
-
*/
|
|
82
|
-
ageOfAssetAtEnd: number;
|
|
83
|
-
/**
|
|
84
|
-
* Condition of asset
|
|
85
|
-
*/
|
|
86
|
-
condition: Condition;
|
|
87
|
-
/**
|
|
88
|
-
* Type of asset - must be a member of the enums ConsumerAssetType or CommercialAssetType depending on the respective Application type
|
|
89
|
-
*/
|
|
90
|
-
assetType: ConsumerAssetType | CommercialAssetType;
|
|
91
|
-
purpose: Purpose;
|
|
92
|
-
/**
|
|
93
|
-
* Value of asset
|
|
94
|
-
*/
|
|
95
|
-
assetValue: string;
|
|
96
|
-
/**
|
|
97
|
-
* Make of asset
|
|
98
|
-
*/
|
|
99
|
-
make: string;
|
|
100
|
-
/**
|
|
101
|
-
* Model of asset
|
|
102
|
-
*/
|
|
103
|
-
assetModel: string;
|
|
104
|
-
/**
|
|
105
|
-
* Registration number of asset
|
|
106
|
-
*/
|
|
107
|
-
registrationNumber: string;
|
|
108
|
-
/**
|
|
109
|
-
* Registration state (or territory) of asset
|
|
110
|
-
*/
|
|
111
|
-
registrationState?: RegistrationState | undefined;
|
|
112
|
-
/**
|
|
113
|
-
* VIN of asset
|
|
114
|
-
*/
|
|
115
|
-
vin?: string | undefined;
|
|
116
|
-
/**
|
|
117
|
-
* Name of asset supplier
|
|
118
|
-
*/
|
|
119
|
-
supplierName?: string | undefined;
|
|
120
|
-
/**
|
|
121
|
-
* ABN of asset supplier
|
|
122
|
-
*/
|
|
123
|
-
supplierABN?: string | undefined;
|
|
124
|
-
/**
|
|
125
|
-
* Address of asset supplier
|
|
126
|
-
*/
|
|
127
|
-
supplierAddress?: string | undefined;
|
|
128
|
-
/**
|
|
129
|
-
* Phone number of asset supplier
|
|
130
|
-
*/
|
|
131
|
-
supplierPhone?: string | undefined;
|
|
132
|
-
/**
|
|
133
|
-
* Contact name of the asset supplier
|
|
134
|
-
*/
|
|
135
|
-
supplierContactName?: string | undefined;
|
|
136
|
-
/**
|
|
137
|
-
* Email address of the asset supplier
|
|
138
|
-
*/
|
|
139
|
-
supplierEmail?: string | undefined;
|
|
140
|
-
/**
|
|
141
|
-
* Is this asset obtained via private sale?
|
|
142
|
-
*/
|
|
143
|
-
privateSale: boolean;
|
|
144
|
-
/**
|
|
145
|
-
* Type of sale
|
|
146
|
-
*/
|
|
147
|
-
typeOfSale: string;
|
|
148
|
-
/**
|
|
149
|
-
* Description of asset
|
|
150
|
-
*/
|
|
151
|
-
description: string;
|
|
152
|
-
/**
|
|
153
|
-
* Net asset value of asset, floating point value as string
|
|
154
|
-
*/
|
|
155
|
-
netAssetValue: string;
|
|
156
|
-
/**
|
|
157
|
-
* Is this asset a luxury asset?
|
|
158
|
-
*/
|
|
159
|
-
isLuxury: boolean;
|
|
160
|
-
/**
|
|
161
|
-
* Luxury GST, floating point value as string
|
|
162
|
-
*/
|
|
163
|
-
luxuryGst?: string | undefined;
|
|
164
|
-
/**
|
|
165
|
-
* Additional fees concerning the asset, floating point value as string
|
|
166
|
-
*/
|
|
167
|
-
additionalFees?: string | undefined;
|
|
168
|
-
/**
|
|
169
|
-
* Additional taxes concerning the asset, floating point value as string
|
|
170
|
-
*/
|
|
171
|
-
additionalTaxes?: string | undefined;
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
/** @internal */
|
|
175
|
-
export const Condition$inboundSchema: z.ZodNativeEnum<typeof Condition> = z
|
|
176
|
-
.nativeEnum(Condition);
|
|
177
|
-
|
|
178
|
-
/** @internal */
|
|
179
|
-
export const Condition$outboundSchema: z.ZodNativeEnum<typeof Condition> =
|
|
180
|
-
Condition$inboundSchema;
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* @internal
|
|
184
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
185
|
-
*/
|
|
186
|
-
export namespace Condition$ {
|
|
187
|
-
/** @deprecated use `Condition$inboundSchema` instead. */
|
|
188
|
-
export const inboundSchema = Condition$inboundSchema;
|
|
189
|
-
/** @deprecated use `Condition$outboundSchema` instead. */
|
|
190
|
-
export const outboundSchema = Condition$outboundSchema;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
/** @internal */
|
|
194
|
-
export const AssetType$inboundSchema: z.ZodType<
|
|
195
|
-
AssetType,
|
|
196
|
-
z.ZodTypeDef,
|
|
197
|
-
unknown
|
|
198
|
-
> = z.union([
|
|
199
|
-
ConsumerAssetType$inboundSchema,
|
|
200
|
-
CommercialAssetType$inboundSchema,
|
|
201
|
-
]);
|
|
202
|
-
|
|
203
|
-
/** @internal */
|
|
204
|
-
export type AssetType$Outbound = string | string;
|
|
205
|
-
|
|
206
|
-
/** @internal */
|
|
207
|
-
export const AssetType$outboundSchema: z.ZodType<
|
|
208
|
-
AssetType$Outbound,
|
|
209
|
-
z.ZodTypeDef,
|
|
210
|
-
AssetType
|
|
211
|
-
> = z.union([
|
|
212
|
-
ConsumerAssetType$outboundSchema,
|
|
213
|
-
CommercialAssetType$outboundSchema,
|
|
214
|
-
]);
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* @internal
|
|
218
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
219
|
-
*/
|
|
220
|
-
export namespace AssetType$ {
|
|
221
|
-
/** @deprecated use `AssetType$inboundSchema` instead. */
|
|
222
|
-
export const inboundSchema = AssetType$inboundSchema;
|
|
223
|
-
/** @deprecated use `AssetType$outboundSchema` instead. */
|
|
224
|
-
export const outboundSchema = AssetType$outboundSchema;
|
|
225
|
-
/** @deprecated use `AssetType$Outbound` instead. */
|
|
226
|
-
export type Outbound = AssetType$Outbound;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
export function assetTypeToJSON(assetType: AssetType): string {
|
|
230
|
-
return JSON.stringify(AssetType$outboundSchema.parse(assetType));
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
export function assetTypeFromJSON(
|
|
234
|
-
jsonString: string,
|
|
235
|
-
): SafeParseResult<AssetType, SDKValidationError> {
|
|
236
|
-
return safeParse(
|
|
237
|
-
jsonString,
|
|
238
|
-
(x) => AssetType$inboundSchema.parse(JSON.parse(x)),
|
|
239
|
-
`Failed to parse 'AssetType' from JSON`,
|
|
240
|
-
);
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
/** @internal */
|
|
244
|
-
export const Purpose$inboundSchema: z.ZodNativeEnum<typeof Purpose> = z
|
|
245
|
-
.nativeEnum(Purpose);
|
|
246
|
-
|
|
247
|
-
/** @internal */
|
|
248
|
-
export const Purpose$outboundSchema: z.ZodNativeEnum<typeof Purpose> =
|
|
249
|
-
Purpose$inboundSchema;
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* @internal
|
|
253
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
254
|
-
*/
|
|
255
|
-
export namespace Purpose$ {
|
|
256
|
-
/** @deprecated use `Purpose$inboundSchema` instead. */
|
|
257
|
-
export const inboundSchema = Purpose$inboundSchema;
|
|
258
|
-
/** @deprecated use `Purpose$outboundSchema` instead. */
|
|
259
|
-
export const outboundSchema = Purpose$outboundSchema;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
/** @internal */
|
|
263
|
-
export const RegistrationState$inboundSchema: z.ZodNativeEnum<
|
|
264
|
-
typeof RegistrationState
|
|
265
|
-
> = z.nativeEnum(RegistrationState);
|
|
266
|
-
|
|
267
|
-
/** @internal */
|
|
268
|
-
export const RegistrationState$outboundSchema: z.ZodNativeEnum<
|
|
269
|
-
typeof RegistrationState
|
|
270
|
-
> = RegistrationState$inboundSchema;
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* @internal
|
|
274
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
275
|
-
*/
|
|
276
|
-
export namespace RegistrationState$ {
|
|
277
|
-
/** @deprecated use `RegistrationState$inboundSchema` instead. */
|
|
278
|
-
export const inboundSchema = RegistrationState$inboundSchema;
|
|
279
|
-
/** @deprecated use `RegistrationState$outboundSchema` instead. */
|
|
280
|
-
export const outboundSchema = RegistrationState$outboundSchema;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
/** @internal */
|
|
284
|
-
export const AssetAttributes$inboundSchema: z.ZodType<
|
|
285
|
-
AssetAttributes,
|
|
286
|
-
z.ZodTypeDef,
|
|
287
|
-
unknown
|
|
288
|
-
> = z.object({
|
|
289
|
-
ageOfAsset: z.number().int(),
|
|
290
|
-
ageOfAssetAtEnd: z.number().int(),
|
|
291
|
-
condition: Condition$inboundSchema,
|
|
292
|
-
assetType: z.union([
|
|
293
|
-
ConsumerAssetType$inboundSchema,
|
|
294
|
-
CommercialAssetType$inboundSchema,
|
|
295
|
-
]),
|
|
296
|
-
purpose: Purpose$inboundSchema,
|
|
297
|
-
assetValue: z.string(),
|
|
298
|
-
make: z.string(),
|
|
299
|
-
assetModel: z.string(),
|
|
300
|
-
registrationNumber: z.string(),
|
|
301
|
-
registrationState: RegistrationState$inboundSchema.optional(),
|
|
302
|
-
vin: z.string().optional(),
|
|
303
|
-
supplierName: z.string().optional(),
|
|
304
|
-
supplierABN: z.string().optional(),
|
|
305
|
-
supplierAddress: z.string().optional(),
|
|
306
|
-
supplierPhone: z.string().optional(),
|
|
307
|
-
supplierContactName: z.string().optional(),
|
|
308
|
-
supplierEmail: z.string().optional(),
|
|
309
|
-
privateSale: z.boolean(),
|
|
310
|
-
typeOfSale: z.string(),
|
|
311
|
-
description: z.string(),
|
|
312
|
-
netAssetValue: z.string(),
|
|
313
|
-
isLuxury: z.boolean(),
|
|
314
|
-
luxuryGst: z.string().optional(),
|
|
315
|
-
additionalFees: z.string().optional(),
|
|
316
|
-
additionalTaxes: z.string().optional(),
|
|
317
|
-
});
|
|
318
|
-
|
|
319
|
-
/** @internal */
|
|
320
|
-
export type AssetAttributes$Outbound = {
|
|
321
|
-
ageOfAsset: number;
|
|
322
|
-
ageOfAssetAtEnd: number;
|
|
323
|
-
condition: string;
|
|
324
|
-
assetType: string | string;
|
|
325
|
-
purpose: string;
|
|
326
|
-
assetValue: string;
|
|
327
|
-
make: string;
|
|
328
|
-
assetModel: string;
|
|
329
|
-
registrationNumber: string;
|
|
330
|
-
registrationState?: string | undefined;
|
|
331
|
-
vin?: string | undefined;
|
|
332
|
-
supplierName?: string | undefined;
|
|
333
|
-
supplierABN?: string | undefined;
|
|
334
|
-
supplierAddress?: string | undefined;
|
|
335
|
-
supplierPhone?: string | undefined;
|
|
336
|
-
supplierContactName?: string | undefined;
|
|
337
|
-
supplierEmail?: string | undefined;
|
|
338
|
-
privateSale: boolean;
|
|
339
|
-
typeOfSale: string;
|
|
340
|
-
description: string;
|
|
341
|
-
netAssetValue: string;
|
|
342
|
-
isLuxury: boolean;
|
|
343
|
-
luxuryGst?: string | undefined;
|
|
344
|
-
additionalFees?: string | undefined;
|
|
345
|
-
additionalTaxes?: string | undefined;
|
|
346
|
-
};
|
|
347
|
-
|
|
348
|
-
/** @internal */
|
|
349
|
-
export const AssetAttributes$outboundSchema: z.ZodType<
|
|
350
|
-
AssetAttributes$Outbound,
|
|
351
|
-
z.ZodTypeDef,
|
|
352
|
-
AssetAttributes
|
|
353
|
-
> = z.object({
|
|
354
|
-
ageOfAsset: z.number().int(),
|
|
355
|
-
ageOfAssetAtEnd: z.number().int(),
|
|
356
|
-
condition: Condition$outboundSchema,
|
|
357
|
-
assetType: z.union([
|
|
358
|
-
ConsumerAssetType$outboundSchema,
|
|
359
|
-
CommercialAssetType$outboundSchema,
|
|
360
|
-
]),
|
|
361
|
-
purpose: Purpose$outboundSchema,
|
|
362
|
-
assetValue: z.string(),
|
|
363
|
-
make: z.string(),
|
|
364
|
-
assetModel: z.string(),
|
|
365
|
-
registrationNumber: z.string(),
|
|
366
|
-
registrationState: RegistrationState$outboundSchema.optional(),
|
|
367
|
-
vin: z.string().optional(),
|
|
368
|
-
supplierName: z.string().optional(),
|
|
369
|
-
supplierABN: z.string().optional(),
|
|
370
|
-
supplierAddress: z.string().optional(),
|
|
371
|
-
supplierPhone: z.string().optional(),
|
|
372
|
-
supplierContactName: z.string().optional(),
|
|
373
|
-
supplierEmail: z.string().optional(),
|
|
374
|
-
privateSale: z.boolean(),
|
|
375
|
-
typeOfSale: z.string(),
|
|
376
|
-
description: z.string(),
|
|
377
|
-
netAssetValue: z.string(),
|
|
378
|
-
isLuxury: z.boolean(),
|
|
379
|
-
luxuryGst: z.string().optional(),
|
|
380
|
-
additionalFees: z.string().optional(),
|
|
381
|
-
additionalTaxes: z.string().optional(),
|
|
382
|
-
});
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
* @internal
|
|
386
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
387
|
-
*/
|
|
388
|
-
export namespace AssetAttributes$ {
|
|
389
|
-
/** @deprecated use `AssetAttributes$inboundSchema` instead. */
|
|
390
|
-
export const inboundSchema = AssetAttributes$inboundSchema;
|
|
391
|
-
/** @deprecated use `AssetAttributes$outboundSchema` instead. */
|
|
392
|
-
export const outboundSchema = AssetAttributes$outboundSchema;
|
|
393
|
-
/** @deprecated use `AssetAttributes$Outbound` instead. */
|
|
394
|
-
export type Outbound = AssetAttributes$Outbound;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
export function assetAttributesToJSON(
|
|
398
|
-
assetAttributes: AssetAttributes,
|
|
399
|
-
): string {
|
|
400
|
-
return JSON.stringify(AssetAttributes$outboundSchema.parse(assetAttributes));
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
export function assetAttributesFromJSON(
|
|
404
|
-
jsonString: string,
|
|
405
|
-
): SafeParseResult<AssetAttributes, SDKValidationError> {
|
|
406
|
-
return safeParse(
|
|
407
|
-
jsonString,
|
|
408
|
-
(x) => AssetAttributes$inboundSchema.parse(JSON.parse(x)),
|
|
409
|
-
`Failed to parse 'AssetAttributes' from JSON`,
|
|
410
|
-
);
|
|
411
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
|
|
7
|
-
export enum CommercialAssetType {
|
|
8
|
-
MotorVehicleLessThan45Tonnes = "MOTOR_VEHICLE_(<4.5_TONNES)",
|
|
9
|
-
EletricMotorVehicleLessThan45Tonnes = "ELECTRIC_MOTOR_VEHICLE_(<4.5_TONNES)",
|
|
10
|
-
CommercialSmallToMediumVehicleLessThan12Tonnes =
|
|
11
|
-
"COMMERCIAL_(SMALL_TO_MEDIUM)_VEHICLES_(<12_TONNES)",
|
|
12
|
-
CommercialHeavyVehicleGreaterThan12Tonnes =
|
|
13
|
-
"COMMERCIAL_(HEAVY)_VEHICLES_(>12_TONNES)",
|
|
14
|
-
WarehouseEquipmentWheeledOrTracked =
|
|
15
|
-
"WAREHOUSE_EQUIPMENT_(WHEELED_OR_TRACKED)",
|
|
16
|
-
EarthMovingAndConstructionWheeledOrTracked =
|
|
17
|
-
"EARTH_MOVING_&_CONSTRUCTION_(WHEELED_OR_TRACKED)",
|
|
18
|
-
AgriculturalAndLandscapingEquipmentWheeledOrTracked =
|
|
19
|
-
"AGRICULTURAL_&_LANDSCAPING_EQUIPMENT_(WHEELED_OR_TRACKED)",
|
|
20
|
-
MiniBusesAndRouteBusesLessThan25Seats =
|
|
21
|
-
"MINI_BUSES_&_ROUTE_BUSES_(<25_SEATS)",
|
|
22
|
-
TrailersAndCaravans = "TRAILERS_AND_CARAVANS",
|
|
23
|
-
IndustrialPlantAndPrinting = "INDUSTRIAL_PLANT_&_PRINTING",
|
|
24
|
-
ManufacturingEquipment = "MANUFACTURING_EQUIPMENT",
|
|
25
|
-
MedicalEquipment = "MEDICAL_EQUIPMENT",
|
|
26
|
-
ITComputerAndAudioEquipment = "IT_COMPUTER_&_AUDIO_EQUIPMENT",
|
|
27
|
-
HealthAndBeautyEquipment = "HEALTH_&_BEAUTY_EQUIPMENT",
|
|
28
|
-
OfficeEquipment = "OFFICE_EQUIPMENT",
|
|
29
|
-
OfficeFitout = "OFFICE_FITOUT",
|
|
30
|
-
RestaurantAndCateringEquipment = "RESTAURANT_&_CATERING_EQUIPMENT",
|
|
31
|
-
OfficeFurniture = "OFFICE_FURNITURE",
|
|
32
|
-
Solar = "SOLAR",
|
|
33
|
-
MotorbikesATVs = "MOTORBIKES_ATVS",
|
|
34
|
-
ClassicCar = "CLASSIC_CAR",
|
|
35
|
-
TraileredBoats = "TRAILERED_BOATS",
|
|
36
|
-
Jetskis = "JETSKIS",
|
|
37
|
-
RideOnMowers = "RIDE_ON_MOWERS",
|
|
38
|
-
GolfCarts = "GOLF_CARTS",
|
|
39
|
-
Other = "OTHER",
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/** @internal */
|
|
43
|
-
export const CommercialAssetType$inboundSchema: z.ZodNativeEnum<
|
|
44
|
-
typeof CommercialAssetType
|
|
45
|
-
> = z.nativeEnum(CommercialAssetType);
|
|
46
|
-
|
|
47
|
-
/** @internal */
|
|
48
|
-
export const CommercialAssetType$outboundSchema: z.ZodNativeEnum<
|
|
49
|
-
typeof CommercialAssetType
|
|
50
|
-
> = CommercialAssetType$inboundSchema;
|
|
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 CommercialAssetType$ {
|
|
57
|
-
/** @deprecated use `CommercialAssetType$inboundSchema` instead. */
|
|
58
|
-
export const inboundSchema = CommercialAssetType$inboundSchema;
|
|
59
|
-
/** @deprecated use `CommercialAssetType$outboundSchema` instead. */
|
|
60
|
-
export const outboundSchema = CommercialAssetType$outboundSchema;
|
|
61
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
|
|
7
|
-
export enum ConsumerAssetType {
|
|
8
|
-
MotorVehicle = "MOTOR_VEHICLE",
|
|
9
|
-
ElectricMotorVehicle = "ELECTRIC_MOTOR_VEHICLE",
|
|
10
|
-
LuxuryVehicle = "LUXURY_VEHICLE",
|
|
11
|
-
Motorbike = "MOTORBIKE",
|
|
12
|
-
AtvOffRoadBike = "ATV_OFF_ROAD_BIKE",
|
|
13
|
-
Tractor = "TRACTOR",
|
|
14
|
-
RideOnMower = "RIDE_ON_MOWER",
|
|
15
|
-
HorseFloat = "HORSE_FLOAT",
|
|
16
|
-
Trailer = "TRAILER",
|
|
17
|
-
Caravan = "CARAVAN",
|
|
18
|
-
MotorHome = "MOTOR_HOME",
|
|
19
|
-
TraileredBoat = "TRAILERED_BOAT",
|
|
20
|
-
JetskiPwc = "JETSKI_PWC",
|
|
21
|
-
GolfCart = "GOLF_CART",
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/** @internal */
|
|
25
|
-
export const ConsumerAssetType$inboundSchema: z.ZodNativeEnum<
|
|
26
|
-
typeof ConsumerAssetType
|
|
27
|
-
> = z.nativeEnum(ConsumerAssetType);
|
|
28
|
-
|
|
29
|
-
/** @internal */
|
|
30
|
-
export const ConsumerAssetType$outboundSchema: z.ZodNativeEnum<
|
|
31
|
-
typeof ConsumerAssetType
|
|
32
|
-
> = ConsumerAssetType$inboundSchema;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
37
|
-
*/
|
|
38
|
-
export namespace ConsumerAssetType$ {
|
|
39
|
-
/** @deprecated use `ConsumerAssetType$inboundSchema` instead. */
|
|
40
|
-
export const inboundSchema = ConsumerAssetType$inboundSchema;
|
|
41
|
-
/** @deprecated use `ConsumerAssetType$outboundSchema` instead. */
|
|
42
|
-
export const outboundSchema = ConsumerAssetType$outboundSchema;
|
|
43
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
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
|
-
/**
|
|
11
|
-
* Standard link object
|
|
12
|
-
*/
|
|
13
|
-
export type Links = {
|
|
14
|
-
/**
|
|
15
|
-
* Link to self
|
|
16
|
-
*/
|
|
17
|
-
self?: string | undefined;
|
|
18
|
-
/**
|
|
19
|
-
* Link to related resource
|
|
20
|
-
*/
|
|
21
|
-
related?: string | undefined;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
/** @internal */
|
|
25
|
-
export const Links$inboundSchema: z.ZodType<Links, z.ZodTypeDef, unknown> = z
|
|
26
|
-
.object({
|
|
27
|
-
self: z.string().optional(),
|
|
28
|
-
related: z.string().optional(),
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
/** @internal */
|
|
32
|
-
export type Links$Outbound = {
|
|
33
|
-
self?: string | undefined;
|
|
34
|
-
related?: string | undefined;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
/** @internal */
|
|
38
|
-
export const Links$outboundSchema: z.ZodType<
|
|
39
|
-
Links$Outbound,
|
|
40
|
-
z.ZodTypeDef,
|
|
41
|
-
Links
|
|
42
|
-
> = z.object({
|
|
43
|
-
self: z.string().optional(),
|
|
44
|
-
related: z.string().optional(),
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @internal
|
|
49
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
-
*/
|
|
51
|
-
export namespace Links$ {
|
|
52
|
-
/** @deprecated use `Links$inboundSchema` instead. */
|
|
53
|
-
export const inboundSchema = Links$inboundSchema;
|
|
54
|
-
/** @deprecated use `Links$outboundSchema` instead. */
|
|
55
|
-
export const outboundSchema = Links$outboundSchema;
|
|
56
|
-
/** @deprecated use `Links$Outbound` instead. */
|
|
57
|
-
export type Outbound = Links$Outbound;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function linksToJSON(links: Links): string {
|
|
61
|
-
return JSON.stringify(Links$outboundSchema.parse(links));
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function linksFromJSON(
|
|
65
|
-
jsonString: string,
|
|
66
|
-
): SafeParseResult<Links, SDKValidationError> {
|
|
67
|
-
return safeParse(
|
|
68
|
-
jsonString,
|
|
69
|
-
(x) => Links$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
-
`Failed to parse 'Links' from JSON`,
|
|
71
|
-
);
|
|
72
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import * as components from "../components/index.js";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Access is forbidden.
|
|
10
|
-
*/
|
|
11
|
-
export type ResponseBodyData = {
|
|
12
|
-
errors: Array<components.ForbiddenError>;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Access is forbidden.
|
|
17
|
-
*/
|
|
18
|
-
export class ResponseBody extends Error {
|
|
19
|
-
errors: Array<components.ForbiddenError>;
|
|
20
|
-
|
|
21
|
-
/** The original data that was passed to this error instance. */
|
|
22
|
-
data$: ResponseBodyData;
|
|
23
|
-
|
|
24
|
-
constructor(err: ResponseBodyData) {
|
|
25
|
-
const message = "message" in err && typeof err.message === "string"
|
|
26
|
-
? err.message
|
|
27
|
-
: `API error occurred: ${JSON.stringify(err)}`;
|
|
28
|
-
super(message);
|
|
29
|
-
this.data$ = err;
|
|
30
|
-
|
|
31
|
-
this.errors = err.errors;
|
|
32
|
-
|
|
33
|
-
this.name = "ResponseBody";
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/** @internal */
|
|
38
|
-
export const ResponseBody$inboundSchema: z.ZodType<
|
|
39
|
-
ResponseBody,
|
|
40
|
-
z.ZodTypeDef,
|
|
41
|
-
unknown
|
|
42
|
-
> = z.object({
|
|
43
|
-
errors: z.array(components.ForbiddenError$inboundSchema),
|
|
44
|
-
})
|
|
45
|
-
.transform((v) => {
|
|
46
|
-
return new ResponseBody(v);
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
/** @internal */
|
|
50
|
-
export type ResponseBody$Outbound = {
|
|
51
|
-
errors: Array<components.ForbiddenError$Outbound>;
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
/** @internal */
|
|
55
|
-
export const ResponseBody$outboundSchema: z.ZodType<
|
|
56
|
-
ResponseBody$Outbound,
|
|
57
|
-
z.ZodTypeDef,
|
|
58
|
-
ResponseBody
|
|
59
|
-
> = z.instanceof(ResponseBody)
|
|
60
|
-
.transform(v => v.data$)
|
|
61
|
-
.pipe(z.object({
|
|
62
|
-
errors: z.array(components.ForbiddenError$outboundSchema),
|
|
63
|
-
}));
|
|
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 ResponseBody$ {
|
|
70
|
-
/** @deprecated use `ResponseBody$inboundSchema` instead. */
|
|
71
|
-
export const inboundSchema = ResponseBody$inboundSchema;
|
|
72
|
-
/** @deprecated use `ResponseBody$outboundSchema` instead. */
|
|
73
|
-
export const outboundSchema = ResponseBody$outboundSchema;
|
|
74
|
-
/** @deprecated use `ResponseBody$Outbound` instead. */
|
|
75
|
-
export type Outbound = ResponseBody$Outbound;
|
|
76
|
-
}
|