@financeable/aggregation 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.devcontainer/README.md +1 -1
- package/FUNCTIONS.md +11 -132
- package/README.md +262 -1515
- package/docs/sdks/applications/README.md +171 -295
- package/docs/sdks/oauthtoken/README.md +5 -5
- package/docs/sdks/supportingdocuments/README.md +113 -0
- package/funcs/applicationsCreate.d.ts +1 -2
- package/funcs/applicationsCreate.d.ts.map +1 -1
- package/funcs/applicationsCreate.js +2 -3
- package/funcs/applicationsCreate.js.map +1 -1
- package/funcs/{oauthTokenGet.d.ts → oauthTokenOauthToken.d.ts} +2 -2
- package/funcs/oauthTokenOauthToken.d.ts.map +1 -0
- package/funcs/{oauthTokenGet.js → oauthTokenOauthToken.js} +3 -3
- package/funcs/oauthTokenOauthToken.js.map +1 -0
- package/funcs/supportingDocumentsCreate.d.ts +15 -0
- package/funcs/supportingDocumentsCreate.d.ts.map +1 -0
- package/funcs/{applicationsList.js → supportingDocumentsCreate.js} +15 -12
- package/funcs/supportingDocumentsCreate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +4 -7
- package/lib/config.js.map +1 -1
- package/lib/matchers.d.ts +3 -1
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +12 -0
- package/lib/matchers.js.map +1 -1
- package/lib/sdks.d.ts +3 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +13 -13
- package/lib/sdks.js.map +1 -1
- package/models/components/addressattributes.d.ts +8 -8
- package/models/components/addressattributes.d.ts.map +1 -1
- package/models/components/addressattributes.js +13 -14
- package/models/components/addressattributes.js.map +1 -1
- package/models/components/applicationresource.d.ts +30 -0
- package/models/components/applicationresource.d.ts.map +1 -0
- package/models/components/applicationresource.js +73 -0
- package/models/components/applicationresource.js.map +1 -0
- package/models/components/badrequesterror.d.ts +119 -0
- package/models/components/badrequesterror.d.ts.map +1 -0
- package/models/components/badrequesterror.js +140 -0
- package/models/components/badrequesterror.js.map +1 -0
- package/models/components/commercialapplicationjsonapirelationships.d.ts +384 -0
- package/models/components/commercialapplicationjsonapirelationships.d.ts.map +1 -0
- package/models/components/commercialapplicationjsonapirelationships.js +391 -0
- package/models/components/commercialapplicationjsonapirelationships.js.map +1 -0
- package/models/components/commercialapplicationresource.d.ts +191 -0
- package/models/components/commercialapplicationresource.d.ts.map +1 -0
- package/models/components/commercialapplicationresource.js +183 -0
- package/models/components/commercialapplicationresource.js.map +1 -0
- package/models/components/commercialsecuredloanapplicationsubmissionpayload.d.ts +124 -0
- package/models/components/commercialsecuredloanapplicationsubmissionpayload.d.ts.map +1 -0
- package/models/components/commercialsecuredloanapplicationsubmissionpayload.js +144 -0
- package/models/components/commercialsecuredloanapplicationsubmissionpayload.js.map +1 -0
- package/models/components/commercialsecuredloanassetattributes.d.ts +235 -0
- package/models/components/commercialsecuredloanassetattributes.d.ts.map +1 -0
- package/models/components/commercialsecuredloanassetattributes.js +168 -0
- package/models/components/commercialsecuredloanassetattributes.js.map +1 -0
- package/models/components/commercialsecuredloanassettype.d.ts +100 -0
- package/models/components/commercialsecuredloanassettype.d.ts.map +1 -0
- package/models/components/commercialsecuredloanassettype.js +84 -0
- package/models/components/commercialsecuredloanassettype.js.map +1 -0
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +455 -0
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -0
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js +504 -0
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -0
- package/models/components/consumerapplicationjsonapirelationships.d.ts +296 -0
- package/models/components/consumerapplicationjsonapirelationships.d.ts.map +1 -0
- package/models/components/consumerapplicationjsonapirelationships.js +310 -0
- package/models/components/consumerapplicationjsonapirelationships.js.map +1 -0
- package/models/components/consumerapplicationresource.d.ts +191 -0
- package/models/components/consumerapplicationresource.d.ts.map +1 -0
- package/models/components/consumerapplicationresource.js +187 -0
- package/models/components/consumerapplicationresource.js.map +1 -0
- package/models/components/consumersecuredloanapplicationsubmissionpayload.d.ts +124 -0
- package/models/components/consumersecuredloanapplicationsubmissionpayload.d.ts.map +1 -0
- package/models/components/consumersecuredloanapplicationsubmissionpayload.js +146 -0
- package/models/components/consumersecuredloanapplicationsubmissionpayload.js.map +1 -0
- package/models/components/consumersecuredloanassetattributes.d.ts +235 -0
- package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -0
- package/models/components/consumersecuredloanassetattributes.js +170 -0
- package/models/components/consumersecuredloanassetattributes.js.map +1 -0
- package/models/components/consumersecuredloanassettype.d.ts +64 -0
- package/models/components/consumersecuredloanassettype.d.ts.map +1 -0
- package/models/components/{consumerassettype.js → consumersecuredloanassettype.js} +27 -28
- package/models/components/consumersecuredloanassettype.js.map +1 -0
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +376 -0
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -0
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js +426 -0
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -0
- package/models/components/createsupportingdocumentsresponse.d.ts +121 -0
- package/models/components/createsupportingdocumentsresponse.d.ts.map +1 -0
- package/models/components/createsupportingdocumentsresponse.js +149 -0
- package/models/components/createsupportingdocumentsresponse.js.map +1 -0
- package/models/components/documenttype.d.ts +70 -0
- package/models/components/documenttype.d.ts.map +1 -0
- package/models/components/documenttype.js +75 -0
- package/models/components/documenttype.js.map +1 -0
- package/models/components/entityattributes.d.ts +0 -22
- package/models/components/entityattributes.d.ts.map +1 -1
- package/models/components/entityattributes.js +0 -19
- package/models/components/entityattributes.js.map +1 -1
- package/models/components/forbiddenerror.d.ts +17 -39
- package/models/components/forbiddenerror.d.ts.map +1 -1
- package/models/components/forbiddenerror.js +27 -46
- package/models/components/forbiddenerror.js.map +1 -1
- package/models/components/index.d.ts +25 -8
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +25 -8
- package/models/components/index.js.map +1 -1
- package/models/components/linkobject.d.ts +47 -0
- package/models/components/linkobject.d.ts.map +1 -0
- package/models/components/linkobject.js +77 -0
- package/models/components/linkobject.js.map +1 -0
- package/models/components/relationshipresourcenotfound.d.ts +116 -0
- package/models/components/relationshipresourcenotfound.d.ts.map +1 -0
- package/models/components/relationshipresourcenotfound.js +139 -0
- package/models/components/relationshipresourcenotfound.js.map +1 -0
- package/models/components/resourcenotfound.d.ts +119 -0
- package/models/components/resourcenotfound.d.ts.map +1 -0
- package/models/components/resourcenotfound.js +139 -0
- package/models/components/resourcenotfound.js.map +1 -0
- package/models/components/resourcetypes.d.ts +46 -0
- package/models/components/resourcetypes.d.ts.map +1 -0
- package/models/components/{links.js → resourcetypes.js} +21 -27
- package/models/components/resourcetypes.js.map +1 -0
- package/models/components/supportingdocumentattributes.d.ts +40 -0
- package/models/components/supportingdocumentattributes.d.ts.map +1 -0
- package/models/components/{applicationattributescreate.js → supportingdocumentattributes.js} +24 -24
- package/models/components/supportingdocumentattributes.js.map +1 -0
- package/models/components/supportingdocumentattributesinput.d.ts +38 -0
- package/models/components/supportingdocumentattributesinput.d.ts.map +1 -0
- package/models/components/supportingdocumentattributesinput.js +72 -0
- package/models/components/supportingdocumentattributesinput.js.map +1 -0
- package/models/components/supportingdocumentrelationships.d.ts +448 -0
- package/models/components/supportingdocumentrelationships.d.ts.map +1 -0
- package/models/components/supportingdocumentrelationships.js +434 -0
- package/models/components/supportingdocumentrelationships.js.map +1 -0
- package/models/components/supportingdocumentresource.d.ts +91 -0
- package/models/components/supportingdocumentresource.d.ts.map +1 -0
- package/models/components/supportingdocumentresource.js +121 -0
- package/models/components/supportingdocumentresource.js.map +1 -0
- package/models/components/uploadmimetype.d.ts +49 -0
- package/models/components/uploadmimetype.d.ts.map +1 -0
- package/models/components/{applicationtype.js → uploadmimetype.js} +22 -14
- package/models/components/uploadmimetype.js.map +1 -0
- package/models/errors/createapplication.d.ts +38 -0
- package/models/errors/createapplication.d.ts.map +1 -0
- package/models/errors/{responsebody.js → createapplication.js} +15 -15
- package/models/errors/createapplication.js.map +1 -0
- package/models/errors/index.d.ts +2 -1
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +2 -1
- package/models/errors/index.js.map +1 -1
- package/models/errors/supportingdocumentscreate.d.ts +143 -0
- package/models/errors/supportingdocumentscreate.d.ts.map +1 -0
- package/models/errors/supportingdocumentscreate.js +225 -0
- package/models/errors/supportingdocumentscreate.js.map +1 -0
- package/models/operations/createapplication.d.ts +66 -808
- package/models/operations/createapplication.d.ts.map +1 -1
- package/models/operations/createapplication.js +82 -837
- package/models/operations/createapplication.js.map +1 -1
- package/models/operations/index.d.ts +1 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -2
- package/models/operations/index.js.map +1 -1
- package/models/operations/supportingdocumentscreate.d.ts +60 -0
- package/models/operations/supportingdocumentscreate.d.ts.map +1 -0
- package/models/operations/supportingdocumentscreate.js +108 -0
- package/models/operations/supportingdocumentscreate.js.map +1 -0
- package/package.json +3 -3
- package/sdk/applications.d.ts +1 -10
- package/sdk/applications.d.ts.map +1 -1
- package/sdk/applications.js +0 -14
- package/sdk/applications.js.map +1 -1
- package/sdk/oauthtoken.d.ts +1 -1
- package/sdk/oauthtoken.d.ts.map +1 -1
- package/sdk/oauthtoken.js +3 -3
- package/sdk/oauthtoken.js.map +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/supportingdocuments.d.ts +10 -0
- package/sdk/supportingdocuments.d.ts.map +1 -0
- package/sdk/supportingdocuments.js +19 -0
- package/sdk/supportingdocuments.js.map +1 -0
- package/src/funcs/applicationsCreate.ts +7 -8
- package/src/funcs/{oauthTokenGet.ts → oauthTokenOauthToken.ts} +1 -1
- package/src/funcs/{applicationsList.ts → supportingDocumentsCreate.ts} +31 -20
- package/src/lib/config.ts +4 -7
- package/src/lib/matchers.ts +20 -0
- package/src/lib/sdks.ts +19 -13
- package/src/models/components/addressattributes.ts +18 -14
- package/src/models/components/applicationresource.ts +83 -0
- package/src/models/components/badrequesterror.ts +182 -0
- package/src/models/components/commercialapplicationjsonapirelationships.ts +894 -0
- package/src/models/components/commercialapplicationresource.ts +355 -0
- package/src/models/components/commercialsecuredloanapplicationsubmissionpayload.ts +237 -0
- package/src/models/components/commercialsecuredloanassetattributes.ts +315 -0
- package/src/models/components/commercialsecuredloanassettype.ts +64 -0
- package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +1148 -0
- package/src/models/components/consumerapplicationjsonapirelationships.ts +683 -0
- package/src/models/components/consumerapplicationresource.ts +342 -0
- package/src/models/components/consumersecuredloanapplicationsubmissionpayload.ts +270 -0
- package/src/models/components/consumersecuredloanassetattributes.ts +330 -0
- package/src/models/components/consumersecuredloanassettype.ts +47 -0
- package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +1011 -0
- package/src/models/components/createsupportingdocumentsresponse.ts +252 -0
- package/src/models/components/documenttype.ts +49 -0
- package/src/models/components/entityattributes.ts +0 -44
- package/src/models/components/forbiddenerror.ts +35 -58
- package/src/models/components/index.ts +25 -8
- package/src/models/components/linkobject.ts +84 -0
- package/src/models/components/relationshipresourcenotfound.ts +195 -0
- package/src/models/components/resourcenotfound.ts +188 -0
- package/src/models/components/resourcetypes.ts +39 -0
- package/src/models/components/supportingdocumentattributes.ts +87 -0
- package/src/models/components/supportingdocumentattributesinput.ts +84 -0
- package/src/models/components/supportingdocumentrelationships.ts +828 -0
- package/src/models/components/supportingdocumentresource.ts +163 -0
- package/src/models/components/uploadmimetype.ts +44 -0
- package/src/models/errors/createapplication.ts +76 -0
- package/src/models/errors/index.ts +2 -1
- package/src/models/errors/supportingdocumentscreate.ts +342 -0
- package/src/models/operations/createapplication.ts +143 -1778
- package/src/models/operations/index.ts +1 -2
- package/src/models/operations/supportingdocumentscreate.ts +150 -0
- package/src/sdk/applications.ts +1 -32
- package/src/sdk/oauthtoken.ts +3 -3
- package/src/sdk/sdk.ts +8 -0
- package/src/sdk/supportingdocuments.ts +25 -0
- package/funcs/applicationsGet.d.ts +0 -14
- package/funcs/applicationsGet.d.ts.map +0 -1
- package/funcs/applicationsGet.js +0 -120
- package/funcs/applicationsGet.js.map +0 -1
- package/funcs/applicationsList.d.ts +0 -14
- package/funcs/applicationsList.d.ts.map +0 -1
- package/funcs/applicationsList.js.map +0 -1
- package/funcs/oauthTokenGet.d.ts.map +0 -1
- package/funcs/oauthTokenGet.js.map +0 -1
- package/models/components/applicationattributes.d.ts +0 -69
- package/models/components/applicationattributes.d.ts.map +0 -1
- package/models/components/applicationattributes.js +0 -85
- package/models/components/applicationattributes.js.map +0 -1
- package/models/components/applicationattributescreate.d.ts +0 -43
- package/models/components/applicationattributescreate.d.ts.map +0 -1
- package/models/components/applicationattributescreate.js.map +0 -1
- package/models/components/applicationresourcebulksubmission.d.ts +0 -533
- package/models/components/applicationresourcebulksubmission.d.ts.map +0 -1
- package/models/components/applicationresourcebulksubmission.js +0 -565
- package/models/components/applicationresourcebulksubmission.js.map +0 -1
- package/models/components/applicationtype.d.ts +0 -28
- package/models/components/applicationtype.d.ts.map +0 -1
- package/models/components/applicationtype.js.map +0 -1
- package/models/components/assetattributes.d.ts +0 -311
- package/models/components/assetattributes.d.ts.map +0 -1
- package/models/components/assetattributes.js +0 -234
- package/models/components/assetattributes.js.map +0 -1
- package/models/components/commercialassettype.d.ts +0 -44
- package/models/components/commercialassettype.d.ts.map +0 -1
- package/models/components/commercialassettype.js +0 -85
- package/models/components/commercialassettype.js.map +0 -1
- package/models/components/consumerassettype.d.ts +0 -32
- package/models/components/consumerassettype.d.ts.map +0 -1
- package/models/components/consumerassettype.js.map +0 -1
- package/models/components/links.d.ts +0 -40
- package/models/components/links.d.ts.map +0 -1
- package/models/components/links.js.map +0 -1
- package/models/errors/responsebody.d.ts +0 -38
- package/models/errors/responsebody.d.ts.map +0 -1
- package/models/errors/responsebody.js.map +0 -1
- package/models/operations/getapplication.d.ts +0 -962
- package/models/operations/getapplication.d.ts.map +0 -1
- package/models/operations/getapplication.js +0 -1030
- package/models/operations/getapplication.js.map +0 -1
- package/models/operations/getapplications.d.ts +0 -962
- package/models/operations/getapplications.d.ts.map +0 -1
- package/models/operations/getapplications.js +0 -1029
- package/models/operations/getapplications.js.map +0 -1
- package/src/funcs/applicationsGet.ts +0 -168
- package/src/models/components/applicationattributes.ts +0 -128
- package/src/models/components/applicationattributescreate.ts +0 -90
- package/src/models/components/applicationresourcebulksubmission.ts +0 -1178
- package/src/models/components/applicationtype.ts +0 -33
- package/src/models/components/assetattributes.ts +0 -411
- package/src/models/components/commercialassettype.ts +0 -61
- package/src/models/components/consumerassettype.ts +0 -43
- package/src/models/components/links.ts +0 -72
- package/src/models/errors/responsebody.ts +0 -76
- package/src/models/operations/getapplication.ts +0 -2246
- package/src/models/operations/getapplications.ts +0 -2191
|
@@ -0,0 +1,315 @@
|
|
|
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
|
+
CommercialSecuredLoanAssetType,
|
|
12
|
+
CommercialSecuredLoanAssetType$inboundSchema,
|
|
13
|
+
CommercialSecuredLoanAssetType$outboundSchema,
|
|
14
|
+
} from "./commercialsecuredloanassettype.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Condition of asset
|
|
18
|
+
*/
|
|
19
|
+
export const Condition = {
|
|
20
|
+
New: "NEW",
|
|
21
|
+
Demo: "DEMO",
|
|
22
|
+
Used: "USED",
|
|
23
|
+
} as const;
|
|
24
|
+
/**
|
|
25
|
+
* Condition of asset
|
|
26
|
+
*/
|
|
27
|
+
export type Condition = ClosedEnum<typeof Condition>;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Registration state (or territory) of asset
|
|
31
|
+
*/
|
|
32
|
+
export const RegistrationState = {
|
|
33
|
+
Vic: "VIC",
|
|
34
|
+
Nsw: "NSW",
|
|
35
|
+
Qld: "QLD",
|
|
36
|
+
Sa: "SA",
|
|
37
|
+
Wa: "WA",
|
|
38
|
+
Tas: "TAS",
|
|
39
|
+
Nt: "NT",
|
|
40
|
+
Act: "ACT",
|
|
41
|
+
} as const;
|
|
42
|
+
/**
|
|
43
|
+
* Registration state (or territory) of asset
|
|
44
|
+
*/
|
|
45
|
+
export type RegistrationState = ClosedEnum<typeof RegistrationState>;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Type of asset for secured commercial loans
|
|
49
|
+
*/
|
|
50
|
+
export type CommercialSecuredLoanAssetAttributes = {
|
|
51
|
+
/**
|
|
52
|
+
* Current age of asset as number (integer) of years
|
|
53
|
+
*/
|
|
54
|
+
ageOfAsset?: number | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Age of asset at the end of the loan term, in years
|
|
57
|
+
*/
|
|
58
|
+
ageOfAssetAtEnd?: number | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Condition of asset
|
|
61
|
+
*/
|
|
62
|
+
condition?: Condition | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Type of asset for secured commercial loans
|
|
65
|
+
*/
|
|
66
|
+
assetType: CommercialSecuredLoanAssetType;
|
|
67
|
+
/**
|
|
68
|
+
* Value of asset
|
|
69
|
+
*/
|
|
70
|
+
assetValue?: string | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* Make of asset
|
|
73
|
+
*/
|
|
74
|
+
make?: string | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Model of asset
|
|
77
|
+
*/
|
|
78
|
+
assetModel?: string | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Registration number of asset - if applicable
|
|
81
|
+
*/
|
|
82
|
+
registrationNumber?: string | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Registration state (or territory) of asset
|
|
85
|
+
*/
|
|
86
|
+
registrationState?: RegistrationState | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* VIN of asset
|
|
89
|
+
*/
|
|
90
|
+
vin?: string | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Name of asset supplier
|
|
93
|
+
*/
|
|
94
|
+
supplierName?: string | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* ABN of asset supplier
|
|
97
|
+
*/
|
|
98
|
+
supplierABN?: string | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* Address of asset supplier
|
|
101
|
+
*/
|
|
102
|
+
supplierAddress?: string | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* Phone number of asset supplier
|
|
105
|
+
*/
|
|
106
|
+
supplierPhone?: string | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* Contact name of the asset supplier
|
|
109
|
+
*/
|
|
110
|
+
supplierContactName?: string | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* Email address of the asset supplier
|
|
113
|
+
*/
|
|
114
|
+
supplierEmail?: string | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* Is this asset obtained via private sale?
|
|
117
|
+
*/
|
|
118
|
+
privateSale?: boolean | undefined;
|
|
119
|
+
/**
|
|
120
|
+
* Type of sale
|
|
121
|
+
*/
|
|
122
|
+
typeOfSale?: string | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* Description of asset
|
|
125
|
+
*/
|
|
126
|
+
description?: string | undefined;
|
|
127
|
+
/**
|
|
128
|
+
* Net asset value of asset, floating point value as string
|
|
129
|
+
*/
|
|
130
|
+
netAssetValue?: string | undefined;
|
|
131
|
+
/**
|
|
132
|
+
* Is this asset a luxury asset?
|
|
133
|
+
*/
|
|
134
|
+
isLuxury?: boolean | undefined;
|
|
135
|
+
/**
|
|
136
|
+
* Luxury GST, floating point value as string
|
|
137
|
+
*/
|
|
138
|
+
luxuryGst?: string | undefined;
|
|
139
|
+
/**
|
|
140
|
+
* Additional fees concerning the asset, floating point value as string
|
|
141
|
+
*/
|
|
142
|
+
additionalFees?: string | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* Additional taxes concerning the asset, floating point value as string
|
|
145
|
+
*/
|
|
146
|
+
additionalTaxes?: string | undefined;
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
/** @internal */
|
|
150
|
+
export const Condition$inboundSchema: z.ZodNativeEnum<typeof Condition> = z
|
|
151
|
+
.nativeEnum(Condition);
|
|
152
|
+
|
|
153
|
+
/** @internal */
|
|
154
|
+
export const Condition$outboundSchema: z.ZodNativeEnum<typeof Condition> =
|
|
155
|
+
Condition$inboundSchema;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* @internal
|
|
159
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
160
|
+
*/
|
|
161
|
+
export namespace Condition$ {
|
|
162
|
+
/** @deprecated use `Condition$inboundSchema` instead. */
|
|
163
|
+
export const inboundSchema = Condition$inboundSchema;
|
|
164
|
+
/** @deprecated use `Condition$outboundSchema` instead. */
|
|
165
|
+
export const outboundSchema = Condition$outboundSchema;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/** @internal */
|
|
169
|
+
export const RegistrationState$inboundSchema: z.ZodNativeEnum<
|
|
170
|
+
typeof RegistrationState
|
|
171
|
+
> = z.nativeEnum(RegistrationState);
|
|
172
|
+
|
|
173
|
+
/** @internal */
|
|
174
|
+
export const RegistrationState$outboundSchema: z.ZodNativeEnum<
|
|
175
|
+
typeof RegistrationState
|
|
176
|
+
> = RegistrationState$inboundSchema;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @internal
|
|
180
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
181
|
+
*/
|
|
182
|
+
export namespace RegistrationState$ {
|
|
183
|
+
/** @deprecated use `RegistrationState$inboundSchema` instead. */
|
|
184
|
+
export const inboundSchema = RegistrationState$inboundSchema;
|
|
185
|
+
/** @deprecated use `RegistrationState$outboundSchema` instead. */
|
|
186
|
+
export const outboundSchema = RegistrationState$outboundSchema;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/** @internal */
|
|
190
|
+
export const CommercialSecuredLoanAssetAttributes$inboundSchema: z.ZodType<
|
|
191
|
+
CommercialSecuredLoanAssetAttributes,
|
|
192
|
+
z.ZodTypeDef,
|
|
193
|
+
unknown
|
|
194
|
+
> = z.object({
|
|
195
|
+
ageOfAsset: z.number().int().optional(),
|
|
196
|
+
ageOfAssetAtEnd: z.number().int().optional(),
|
|
197
|
+
condition: Condition$inboundSchema.optional(),
|
|
198
|
+
assetType: CommercialSecuredLoanAssetType$inboundSchema,
|
|
199
|
+
assetValue: z.string().optional(),
|
|
200
|
+
make: z.string().optional(),
|
|
201
|
+
assetModel: z.string().optional(),
|
|
202
|
+
registrationNumber: z.string().optional(),
|
|
203
|
+
registrationState: RegistrationState$inboundSchema.optional(),
|
|
204
|
+
vin: z.string().optional(),
|
|
205
|
+
supplierName: z.string().optional(),
|
|
206
|
+
supplierABN: z.string().optional(),
|
|
207
|
+
supplierAddress: z.string().optional(),
|
|
208
|
+
supplierPhone: z.string().optional(),
|
|
209
|
+
supplierContactName: z.string().optional(),
|
|
210
|
+
supplierEmail: z.string().optional(),
|
|
211
|
+
privateSale: z.boolean().optional(),
|
|
212
|
+
typeOfSale: z.string().optional(),
|
|
213
|
+
description: z.string().optional(),
|
|
214
|
+
netAssetValue: z.string().optional(),
|
|
215
|
+
isLuxury: z.boolean().optional(),
|
|
216
|
+
luxuryGst: z.string().optional(),
|
|
217
|
+
additionalFees: z.string().optional(),
|
|
218
|
+
additionalTaxes: z.string().optional(),
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
/** @internal */
|
|
222
|
+
export type CommercialSecuredLoanAssetAttributes$Outbound = {
|
|
223
|
+
ageOfAsset?: number | undefined;
|
|
224
|
+
ageOfAssetAtEnd?: number | undefined;
|
|
225
|
+
condition?: string | undefined;
|
|
226
|
+
assetType: string;
|
|
227
|
+
assetValue?: string | undefined;
|
|
228
|
+
make?: string | undefined;
|
|
229
|
+
assetModel?: string | undefined;
|
|
230
|
+
registrationNumber?: string | undefined;
|
|
231
|
+
registrationState?: string | undefined;
|
|
232
|
+
vin?: string | undefined;
|
|
233
|
+
supplierName?: string | undefined;
|
|
234
|
+
supplierABN?: string | undefined;
|
|
235
|
+
supplierAddress?: string | undefined;
|
|
236
|
+
supplierPhone?: string | undefined;
|
|
237
|
+
supplierContactName?: string | undefined;
|
|
238
|
+
supplierEmail?: string | undefined;
|
|
239
|
+
privateSale?: boolean | undefined;
|
|
240
|
+
typeOfSale?: string | undefined;
|
|
241
|
+
description?: string | undefined;
|
|
242
|
+
netAssetValue?: string | undefined;
|
|
243
|
+
isLuxury?: boolean | undefined;
|
|
244
|
+
luxuryGst?: string | undefined;
|
|
245
|
+
additionalFees?: string | undefined;
|
|
246
|
+
additionalTaxes?: string | undefined;
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
/** @internal */
|
|
250
|
+
export const CommercialSecuredLoanAssetAttributes$outboundSchema: z.ZodType<
|
|
251
|
+
CommercialSecuredLoanAssetAttributes$Outbound,
|
|
252
|
+
z.ZodTypeDef,
|
|
253
|
+
CommercialSecuredLoanAssetAttributes
|
|
254
|
+
> = z.object({
|
|
255
|
+
ageOfAsset: z.number().int().optional(),
|
|
256
|
+
ageOfAssetAtEnd: z.number().int().optional(),
|
|
257
|
+
condition: Condition$outboundSchema.optional(),
|
|
258
|
+
assetType: CommercialSecuredLoanAssetType$outboundSchema,
|
|
259
|
+
assetValue: z.string().optional(),
|
|
260
|
+
make: z.string().optional(),
|
|
261
|
+
assetModel: z.string().optional(),
|
|
262
|
+
registrationNumber: z.string().optional(),
|
|
263
|
+
registrationState: RegistrationState$outboundSchema.optional(),
|
|
264
|
+
vin: z.string().optional(),
|
|
265
|
+
supplierName: z.string().optional(),
|
|
266
|
+
supplierABN: z.string().optional(),
|
|
267
|
+
supplierAddress: z.string().optional(),
|
|
268
|
+
supplierPhone: z.string().optional(),
|
|
269
|
+
supplierContactName: z.string().optional(),
|
|
270
|
+
supplierEmail: z.string().optional(),
|
|
271
|
+
privateSale: z.boolean().optional(),
|
|
272
|
+
typeOfSale: z.string().optional(),
|
|
273
|
+
description: z.string().optional(),
|
|
274
|
+
netAssetValue: z.string().optional(),
|
|
275
|
+
isLuxury: z.boolean().optional(),
|
|
276
|
+
luxuryGst: z.string().optional(),
|
|
277
|
+
additionalFees: z.string().optional(),
|
|
278
|
+
additionalTaxes: z.string().optional(),
|
|
279
|
+
});
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* @internal
|
|
283
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
284
|
+
*/
|
|
285
|
+
export namespace CommercialSecuredLoanAssetAttributes$ {
|
|
286
|
+
/** @deprecated use `CommercialSecuredLoanAssetAttributes$inboundSchema` instead. */
|
|
287
|
+
export const inboundSchema =
|
|
288
|
+
CommercialSecuredLoanAssetAttributes$inboundSchema;
|
|
289
|
+
/** @deprecated use `CommercialSecuredLoanAssetAttributes$outboundSchema` instead. */
|
|
290
|
+
export const outboundSchema =
|
|
291
|
+
CommercialSecuredLoanAssetAttributes$outboundSchema;
|
|
292
|
+
/** @deprecated use `CommercialSecuredLoanAssetAttributes$Outbound` instead. */
|
|
293
|
+
export type Outbound = CommercialSecuredLoanAssetAttributes$Outbound;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export function commercialSecuredLoanAssetAttributesToJSON(
|
|
297
|
+
commercialSecuredLoanAssetAttributes: CommercialSecuredLoanAssetAttributes,
|
|
298
|
+
): string {
|
|
299
|
+
return JSON.stringify(
|
|
300
|
+
CommercialSecuredLoanAssetAttributes$outboundSchema.parse(
|
|
301
|
+
commercialSecuredLoanAssetAttributes,
|
|
302
|
+
),
|
|
303
|
+
);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export function commercialSecuredLoanAssetAttributesFromJSON(
|
|
307
|
+
jsonString: string,
|
|
308
|
+
): SafeParseResult<CommercialSecuredLoanAssetAttributes, SDKValidationError> {
|
|
309
|
+
return safeParse(
|
|
310
|
+
jsonString,
|
|
311
|
+
(x) =>
|
|
312
|
+
CommercialSecuredLoanAssetAttributes$inboundSchema.parse(JSON.parse(x)),
|
|
313
|
+
`Failed to parse 'CommercialSecuredLoanAssetAttributes' from JSON`,
|
|
314
|
+
);
|
|
315
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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 CommercialSecuredLoanAssetType = {
|
|
9
|
+
MOTORVEHICLELessThan45TONNES: "MOTOR_VEHICLE_(<4.5_TONNES)",
|
|
10
|
+
ELECTRICMOTORVEHICLELessThan45TONNES: "ELECTRIC_MOTOR_VEHICLE_(<4.5_TONNES)",
|
|
11
|
+
COMMERCIALSMALLTOMEDIUMVEHICLESLessThan12TONNES:
|
|
12
|
+
"COMMERCIAL_(SMALL_TO_MEDIUM)_VEHICLES_(<12_TONNES)",
|
|
13
|
+
COMMERCIALHEAVYVEHICLESGreaterThan12TONNES:
|
|
14
|
+
"COMMERCIAL_(HEAVY)_VEHICLES_(>12_TONNES)",
|
|
15
|
+
WarehouseEquipmentWheeledOrTracked:
|
|
16
|
+
"WAREHOUSE_EQUIPMENT_(WHEELED_OR_TRACKED)",
|
|
17
|
+
EARTHMOVINGAndCONSTRUCTIONWHEELEDORTRACKED:
|
|
18
|
+
"EARTH_MOVING_&_CONSTRUCTION_(WHEELED_OR_TRACKED)",
|
|
19
|
+
AGRICULTURALAndLANDSCAPINGEQUIPMENTWHEELEDORTRACKED:
|
|
20
|
+
"AGRICULTURAL_&_LANDSCAPING_EQUIPMENT_(WHEELED_OR_TRACKED)",
|
|
21
|
+
MINIBUSESAndROUTEBUSESLessThan25SEATS: "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
|
+
} as const;
|
|
41
|
+
export type CommercialSecuredLoanAssetType = ClosedEnum<
|
|
42
|
+
typeof CommercialSecuredLoanAssetType
|
|
43
|
+
>;
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const CommercialSecuredLoanAssetType$inboundSchema: z.ZodNativeEnum<
|
|
47
|
+
typeof CommercialSecuredLoanAssetType
|
|
48
|
+
> = z.nativeEnum(CommercialSecuredLoanAssetType);
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const CommercialSecuredLoanAssetType$outboundSchema: z.ZodNativeEnum<
|
|
52
|
+
typeof CommercialSecuredLoanAssetType
|
|
53
|
+
> = CommercialSecuredLoanAssetType$inboundSchema;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
58
|
+
*/
|
|
59
|
+
export namespace CommercialSecuredLoanAssetType$ {
|
|
60
|
+
/** @deprecated use `CommercialSecuredLoanAssetType$inboundSchema` instead. */
|
|
61
|
+
export const inboundSchema = CommercialSecuredLoanAssetType$inboundSchema;
|
|
62
|
+
/** @deprecated use `CommercialSecuredLoanAssetType$outboundSchema` instead. */
|
|
63
|
+
export const outboundSchema = CommercialSecuredLoanAssetType$outboundSchema;
|
|
64
|
+
}
|