@financeable/aggregation 0.11.0 → 0.12.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/README.md +4 -0
- package/docs/sdks/applications/README.md +144 -0
- package/examples/package-lock.json +1 -1
- package/funcs/applicationsGet.d.ts +14 -0
- package/funcs/applicationsGet.d.ts.map +1 -0
- package/funcs/applicationsGet.js +122 -0
- package/funcs/applicationsGet.js.map +1 -0
- package/funcs/applicationsList.d.ts +14 -0
- package/funcs/applicationsList.d.ts.map +1 -0
- package/funcs/applicationsList.js +117 -0
- package/funcs/applicationsList.js.map +1 -0
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/businessloanbusinessapplicationrelationships.d.ts +21 -21
- package/models/components/businessloanbusinessapplicationrelationships.d.ts.map +1 -1
- package/models/components/businessloanbusinessapplicationrelationships.js +24 -26
- package/models/components/businessloanbusinessapplicationrelationships.js.map +1 -1
- package/models/components/commercialapplicationjsonapirelationships.d.ts +15 -15
- package/models/components/commercialapplicationjsonapirelationships.d.ts.map +1 -1
- package/models/components/commercialapplicationjsonapirelationships.js +18 -18
- package/models/components/commercialapplicationjsonapirelationships.js.map +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +36 -36
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js +46 -44
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +3 -3
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js +3 -3
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -1
- package/models/components/customerattributes.d.ts +0 -22
- package/models/components/customerattributes.d.ts.map +1 -1
- package/models/components/customerattributes.js +0 -10
- package/models/components/customerattributes.js.map +1 -1
- package/models/components/customerattributescreateitem.d.ts +112 -0
- package/models/components/customerattributescreateitem.d.ts.map +1 -0
- package/models/components/customerattributescreateitem.js +110 -0
- package/models/components/customerattributescreateitem.js.map +1 -0
- package/models/components/entityattributes.d.ts +129 -0
- package/models/components/entityattributes.d.ts.map +1 -1
- package/models/components/entityattributes.js +71 -1
- package/models/components/entityattributes.js.map +1 -1
- package/models/components/entityattributesinput.d.ts +41 -0
- package/models/components/entityattributesinput.d.ts.map +1 -0
- package/models/components/entityattributesinput.js +81 -0
- package/models/components/entityattributesinput.js.map +1 -0
- package/models/components/index.d.ts +4 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -0
- package/models/components/index.js.map +1 -1
- package/models/components/paginationlinks.d.ts +47 -0
- package/models/components/paginationlinks.d.ts.map +1 -0
- package/models/components/paginationlinks.js +75 -0
- package/models/components/paginationlinks.js.map +1 -0
- package/models/components/paginationmeta.d.ts +47 -0
- package/models/components/paginationmeta.d.ts.map +1 -0
- package/models/components/paginationmeta.js +88 -0
- package/models/components/paginationmeta.js.map +1 -0
- package/models/components/personalloanpersonalapplicationrelationships.d.ts +3 -3
- package/models/components/personalloanpersonalapplicationrelationships.d.ts.map +1 -1
- package/models/components/personalloanpersonalapplicationrelationships.js +3 -3
- package/models/components/personalloanpersonalapplicationrelationships.js.map +1 -1
- package/models/operations/createapplication.d.ts +218 -45
- package/models/operations/createapplication.d.ts.map +1 -1
- package/models/operations/createapplication.js +145 -45
- package/models/operations/createapplication.js.map +1 -1
- package/models/operations/getapplication.d.ts +703 -0
- package/models/operations/getapplication.d.ts.map +1 -0
- package/models/operations/getapplication.js +697 -0
- package/models/operations/getapplication.js.map +1 -0
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listapplications.d.ts +141 -0
- package/models/operations/listapplications.d.ts.map +1 -0
- package/models/operations/listapplications.js +199 -0
- package/models/operations/listapplications.js.map +1 -0
- package/package.json +1 -1
- package/sdk/applications.d.ts +8 -0
- package/sdk/applications.d.ts.map +1 -1
- package/sdk/applications.js +14 -0
- package/sdk/applications.js.map +1 -1
- package/src/funcs/applicationsGet.ts +170 -0
- package/src/funcs/applicationsList.ts +164 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/businessloanbusinessapplicationrelationships.ts +52 -53
- package/src/models/components/commercialapplicationjsonapirelationships.ts +43 -67
- package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +114 -94
- package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +9 -9
- package/src/models/components/customerattributes.ts +0 -38
- package/src/models/components/customerattributescreateitem.ts +214 -0
- package/src/models/components/entityattributes.ts +134 -0
- package/src/models/components/entityattributesinput.ts +90 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/paginationlinks.ts +88 -0
- package/src/models/components/paginationmeta.ts +99 -0
- package/src/models/components/personalloanpersonalapplicationrelationships.ts +9 -9
- package/src/models/operations/createapplication.ts +289 -62
- package/src/models/operations/getapplication.ts +1378 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/listapplications.ts +364 -0
- package/src/sdk/applications.ts +30 -0
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
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
|
+
AustralianStatesAndTerritories,
|
|
11
|
+
AustralianStatesAndTerritories$inboundSchema,
|
|
12
|
+
AustralianStatesAndTerritories$outboundSchema,
|
|
13
|
+
} from "./australianstatesandterritories.js";
|
|
14
|
+
import {
|
|
15
|
+
CustomerIDType,
|
|
16
|
+
CustomerIDType$inboundSchema,
|
|
17
|
+
CustomerIDType$outboundSchema,
|
|
18
|
+
} from "./customeridtype.js";
|
|
19
|
+
import {
|
|
20
|
+
CustomerTitle,
|
|
21
|
+
CustomerTitle$inboundSchema,
|
|
22
|
+
CustomerTitle$outboundSchema,
|
|
23
|
+
} from "./customertitle.js";
|
|
24
|
+
import {
|
|
25
|
+
LivingArrangements,
|
|
26
|
+
LivingArrangements$inboundSchema,
|
|
27
|
+
LivingArrangements$outboundSchema,
|
|
28
|
+
} from "./livingarrangements.js";
|
|
29
|
+
import {
|
|
30
|
+
MaritalStatus,
|
|
31
|
+
MaritalStatus$inboundSchema,
|
|
32
|
+
MaritalStatus$outboundSchema,
|
|
33
|
+
} from "./maritalstatus.js";
|
|
34
|
+
import {
|
|
35
|
+
PercentageQuantity,
|
|
36
|
+
PercentageQuantity$inboundSchema,
|
|
37
|
+
PercentageQuantity$Outbound,
|
|
38
|
+
PercentageQuantity$outboundSchema,
|
|
39
|
+
} from "./percentagequantity.js";
|
|
40
|
+
import {
|
|
41
|
+
ResidencyStatus,
|
|
42
|
+
ResidencyStatus$inboundSchema,
|
|
43
|
+
ResidencyStatus$outboundSchema,
|
|
44
|
+
} from "./residencystatus.js";
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* A customer of the proposed financing
|
|
48
|
+
*/
|
|
49
|
+
export type CustomerAttributesCreateItem = {
|
|
50
|
+
id?: string | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Title of the customer
|
|
53
|
+
*/
|
|
54
|
+
title?: CustomerTitle | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* First name of the customer
|
|
57
|
+
*/
|
|
58
|
+
firstName?: string | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Middle names of the customer
|
|
61
|
+
*/
|
|
62
|
+
middleNames?: string | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Last name of the customer
|
|
65
|
+
*/
|
|
66
|
+
lastName?: string | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Date of birth in format YYYY-MM-DD
|
|
69
|
+
*/
|
|
70
|
+
dateOfBirth?: string | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* Date of expiry of the ID in format YYYY-MM-DD
|
|
73
|
+
*/
|
|
74
|
+
idExpiryDate?: string | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Type of ID, either drivers' license or passport
|
|
77
|
+
*/
|
|
78
|
+
idType?: CustomerIDType | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* THe state in which the ID was issued, currently limited to AUS states.
|
|
81
|
+
*/
|
|
82
|
+
idState?: AustralianStatesAndTerritories | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Number of the ID - license number for driver's licence or passport code.
|
|
85
|
+
*/
|
|
86
|
+
idNumber?: string | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* For driver's licence only - the card number
|
|
89
|
+
*/
|
|
90
|
+
cardNumber?: string | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* The customer's email addresses
|
|
93
|
+
*/
|
|
94
|
+
emailAddresses?: Array<string> | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* The customer's phone numbers
|
|
97
|
+
*/
|
|
98
|
+
phoneNumbers?: Array<string> | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* The number of financial dependents of the customer
|
|
101
|
+
*/
|
|
102
|
+
numberOfDependents?: number | undefined;
|
|
103
|
+
residencyStatus?: ResidencyStatus | undefined;
|
|
104
|
+
livingArrangements?: LivingArrangements | undefined;
|
|
105
|
+
maritalStatus?: MaritalStatus | undefined;
|
|
106
|
+
proportionOfSharedExpenses?: PercentageQuantity | undefined;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
/** @internal */
|
|
110
|
+
export const CustomerAttributesCreateItem$inboundSchema: z.ZodType<
|
|
111
|
+
CustomerAttributesCreateItem,
|
|
112
|
+
z.ZodTypeDef,
|
|
113
|
+
unknown
|
|
114
|
+
> = z.object({
|
|
115
|
+
id: z.string().optional(),
|
|
116
|
+
title: CustomerTitle$inboundSchema.optional(),
|
|
117
|
+
firstName: z.string().optional(),
|
|
118
|
+
middleNames: z.string().optional(),
|
|
119
|
+
lastName: z.string().optional(),
|
|
120
|
+
dateOfBirth: z.string().optional(),
|
|
121
|
+
idExpiryDate: z.string().optional(),
|
|
122
|
+
idType: CustomerIDType$inboundSchema.optional(),
|
|
123
|
+
idState: AustralianStatesAndTerritories$inboundSchema.optional(),
|
|
124
|
+
idNumber: z.string().optional(),
|
|
125
|
+
cardNumber: z.string().optional(),
|
|
126
|
+
emailAddresses: z.array(z.string()).optional(),
|
|
127
|
+
phoneNumbers: z.array(z.string()).optional(),
|
|
128
|
+
numberOfDependents: z.number().int().optional(),
|
|
129
|
+
residencyStatus: ResidencyStatus$inboundSchema.optional(),
|
|
130
|
+
livingArrangements: LivingArrangements$inboundSchema.optional(),
|
|
131
|
+
maritalStatus: MaritalStatus$inboundSchema.optional(),
|
|
132
|
+
proportionOfSharedExpenses: PercentageQuantity$inboundSchema.optional(),
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
/** @internal */
|
|
136
|
+
export type CustomerAttributesCreateItem$Outbound = {
|
|
137
|
+
id?: string | undefined;
|
|
138
|
+
title?: string | undefined;
|
|
139
|
+
firstName?: string | undefined;
|
|
140
|
+
middleNames?: string | undefined;
|
|
141
|
+
lastName?: string | undefined;
|
|
142
|
+
dateOfBirth?: string | undefined;
|
|
143
|
+
idExpiryDate?: string | undefined;
|
|
144
|
+
idType?: string | undefined;
|
|
145
|
+
idState?: string | undefined;
|
|
146
|
+
idNumber?: string | undefined;
|
|
147
|
+
cardNumber?: string | undefined;
|
|
148
|
+
emailAddresses?: Array<string> | undefined;
|
|
149
|
+
phoneNumbers?: Array<string> | undefined;
|
|
150
|
+
numberOfDependents?: number | undefined;
|
|
151
|
+
residencyStatus?: string | undefined;
|
|
152
|
+
livingArrangements?: string | undefined;
|
|
153
|
+
maritalStatus?: string | undefined;
|
|
154
|
+
proportionOfSharedExpenses?: PercentageQuantity$Outbound | undefined;
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
/** @internal */
|
|
158
|
+
export const CustomerAttributesCreateItem$outboundSchema: z.ZodType<
|
|
159
|
+
CustomerAttributesCreateItem$Outbound,
|
|
160
|
+
z.ZodTypeDef,
|
|
161
|
+
CustomerAttributesCreateItem
|
|
162
|
+
> = z.object({
|
|
163
|
+
id: z.string().optional(),
|
|
164
|
+
title: CustomerTitle$outboundSchema.optional(),
|
|
165
|
+
firstName: z.string().optional(),
|
|
166
|
+
middleNames: z.string().optional(),
|
|
167
|
+
lastName: z.string().optional(),
|
|
168
|
+
dateOfBirth: z.string().optional(),
|
|
169
|
+
idExpiryDate: z.string().optional(),
|
|
170
|
+
idType: CustomerIDType$outboundSchema.optional(),
|
|
171
|
+
idState: AustralianStatesAndTerritories$outboundSchema.optional(),
|
|
172
|
+
idNumber: z.string().optional(),
|
|
173
|
+
cardNumber: z.string().optional(),
|
|
174
|
+
emailAddresses: z.array(z.string()).optional(),
|
|
175
|
+
phoneNumbers: z.array(z.string()).optional(),
|
|
176
|
+
numberOfDependents: z.number().int().optional(),
|
|
177
|
+
residencyStatus: ResidencyStatus$outboundSchema.optional(),
|
|
178
|
+
livingArrangements: LivingArrangements$outboundSchema.optional(),
|
|
179
|
+
maritalStatus: MaritalStatus$outboundSchema.optional(),
|
|
180
|
+
proportionOfSharedExpenses: PercentageQuantity$outboundSchema.optional(),
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* @internal
|
|
185
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
186
|
+
*/
|
|
187
|
+
export namespace CustomerAttributesCreateItem$ {
|
|
188
|
+
/** @deprecated use `CustomerAttributesCreateItem$inboundSchema` instead. */
|
|
189
|
+
export const inboundSchema = CustomerAttributesCreateItem$inboundSchema;
|
|
190
|
+
/** @deprecated use `CustomerAttributesCreateItem$outboundSchema` instead. */
|
|
191
|
+
export const outboundSchema = CustomerAttributesCreateItem$outboundSchema;
|
|
192
|
+
/** @deprecated use `CustomerAttributesCreateItem$Outbound` instead. */
|
|
193
|
+
export type Outbound = CustomerAttributesCreateItem$Outbound;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export function customerAttributesCreateItemToJSON(
|
|
197
|
+
customerAttributesCreateItem: CustomerAttributesCreateItem,
|
|
198
|
+
): string {
|
|
199
|
+
return JSON.stringify(
|
|
200
|
+
CustomerAttributesCreateItem$outboundSchema.parse(
|
|
201
|
+
customerAttributesCreateItem,
|
|
202
|
+
),
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export function customerAttributesCreateItemFromJSON(
|
|
207
|
+
jsonString: string,
|
|
208
|
+
): SafeParseResult<CustomerAttributesCreateItem, SDKValidationError> {
|
|
209
|
+
return safeParse(
|
|
210
|
+
jsonString,
|
|
211
|
+
(x) => CustomerAttributesCreateItem$inboundSchema.parse(JSON.parse(x)),
|
|
212
|
+
`Failed to parse 'CustomerAttributesCreateItem' from JSON`,
|
|
213
|
+
);
|
|
214
|
+
}
|
|
@@ -4,19 +4,126 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Derived from ABR lookup.
|
|
13
|
+
*/
|
|
14
|
+
export const State = {
|
|
15
|
+
Sa: "SA",
|
|
16
|
+
Nsw: "NSW",
|
|
17
|
+
Vic: "VIC",
|
|
18
|
+
Qld: "QLD",
|
|
19
|
+
Wa: "WA",
|
|
20
|
+
Tas: "TAS",
|
|
21
|
+
Act: "ACT",
|
|
22
|
+
Nt: "NT",
|
|
23
|
+
} as const;
|
|
24
|
+
/**
|
|
25
|
+
* Derived from ABR lookup.
|
|
26
|
+
*/
|
|
27
|
+
export type State = ClosedEnum<typeof State>;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Derived from ABR lookup.
|
|
31
|
+
*/
|
|
32
|
+
export const AbnStatus = {
|
|
33
|
+
Active: "active",
|
|
34
|
+
Registered: "registered",
|
|
35
|
+
Cancelled: "cancelled",
|
|
36
|
+
} as const;
|
|
37
|
+
/**
|
|
38
|
+
* Derived from ABR lookup.
|
|
39
|
+
*/
|
|
40
|
+
export type AbnStatus = ClosedEnum<typeof AbnStatus>;
|
|
41
|
+
|
|
10
42
|
export type EntityAttributes = {
|
|
11
43
|
id?: string | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Derived from ABR lookup.
|
|
46
|
+
*/
|
|
47
|
+
businessNames?: Array<string> | undefined;
|
|
12
48
|
entityName?: string | undefined;
|
|
13
49
|
abn?: string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Derived from ABR lookup.
|
|
52
|
+
*/
|
|
53
|
+
acn?: string | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Derived from ABR lookup.
|
|
56
|
+
*/
|
|
57
|
+
state?: State | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Derived from ABR lookup.
|
|
60
|
+
*/
|
|
61
|
+
entityType?: string | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Derived from ABR lookup.
|
|
64
|
+
*/
|
|
65
|
+
gst?: string | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Derived from ABR lookup.
|
|
68
|
+
*/
|
|
69
|
+
abnStatus?: AbnStatus | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Derived from ABR lookup. Format YYYY-MM-DD
|
|
72
|
+
*/
|
|
73
|
+
abnStatusEffectiveFrom?: string | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Derived from ABR lookup.
|
|
76
|
+
*/
|
|
77
|
+
timeInBusiness?: number | undefined;
|
|
14
78
|
turnover?: number | undefined;
|
|
15
79
|
industryType?: string | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* Derived from ABR lookup.
|
|
82
|
+
*/
|
|
83
|
+
ppsr?: string | undefined;
|
|
16
84
|
emails?: Array<string> | undefined;
|
|
17
85
|
phoneNumbers?: Array<string> | undefined;
|
|
18
86
|
};
|
|
19
87
|
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const State$inboundSchema: z.ZodNativeEnum<typeof State> = z.nativeEnum(
|
|
90
|
+
State,
|
|
91
|
+
);
|
|
92
|
+
|
|
93
|
+
/** @internal */
|
|
94
|
+
export const State$outboundSchema: z.ZodNativeEnum<typeof State> =
|
|
95
|
+
State$inboundSchema;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @internal
|
|
99
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
100
|
+
*/
|
|
101
|
+
export namespace State$ {
|
|
102
|
+
/** @deprecated use `State$inboundSchema` instead. */
|
|
103
|
+
export const inboundSchema = State$inboundSchema;
|
|
104
|
+
/** @deprecated use `State$outboundSchema` instead. */
|
|
105
|
+
export const outboundSchema = State$outboundSchema;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/** @internal */
|
|
109
|
+
export const AbnStatus$inboundSchema: z.ZodNativeEnum<typeof AbnStatus> = z
|
|
110
|
+
.nativeEnum(AbnStatus);
|
|
111
|
+
|
|
112
|
+
/** @internal */
|
|
113
|
+
export const AbnStatus$outboundSchema: z.ZodNativeEnum<typeof AbnStatus> =
|
|
114
|
+
AbnStatus$inboundSchema;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* @internal
|
|
118
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
119
|
+
*/
|
|
120
|
+
export namespace AbnStatus$ {
|
|
121
|
+
/** @deprecated use `AbnStatus$inboundSchema` instead. */
|
|
122
|
+
export const inboundSchema = AbnStatus$inboundSchema;
|
|
123
|
+
/** @deprecated use `AbnStatus$outboundSchema` instead. */
|
|
124
|
+
export const outboundSchema = AbnStatus$outboundSchema;
|
|
125
|
+
}
|
|
126
|
+
|
|
20
127
|
/** @internal */
|
|
21
128
|
export const EntityAttributes$inboundSchema: z.ZodType<
|
|
22
129
|
EntityAttributes,
|
|
@@ -24,10 +131,19 @@ export const EntityAttributes$inboundSchema: z.ZodType<
|
|
|
24
131
|
unknown
|
|
25
132
|
> = z.object({
|
|
26
133
|
id: z.string().optional(),
|
|
134
|
+
businessNames: z.array(z.string()).optional(),
|
|
27
135
|
entityName: z.string().optional(),
|
|
28
136
|
abn: z.string().optional(),
|
|
137
|
+
acn: z.string().optional(),
|
|
138
|
+
state: State$inboundSchema.optional(),
|
|
139
|
+
entityType: z.string().optional(),
|
|
140
|
+
gst: z.string().optional(),
|
|
141
|
+
abnStatus: AbnStatus$inboundSchema.optional(),
|
|
142
|
+
abnStatusEffectiveFrom: z.string().optional(),
|
|
143
|
+
timeInBusiness: z.number().int().optional(),
|
|
29
144
|
turnover: z.number().int().optional(),
|
|
30
145
|
industryType: z.string().optional(),
|
|
146
|
+
ppsr: z.string().optional(),
|
|
31
147
|
emails: z.array(z.string()).optional(),
|
|
32
148
|
phoneNumbers: z.array(z.string()).optional(),
|
|
33
149
|
});
|
|
@@ -35,10 +151,19 @@ export const EntityAttributes$inboundSchema: z.ZodType<
|
|
|
35
151
|
/** @internal */
|
|
36
152
|
export type EntityAttributes$Outbound = {
|
|
37
153
|
id?: string | undefined;
|
|
154
|
+
businessNames?: Array<string> | undefined;
|
|
38
155
|
entityName?: string | undefined;
|
|
39
156
|
abn?: string | undefined;
|
|
157
|
+
acn?: string | undefined;
|
|
158
|
+
state?: string | undefined;
|
|
159
|
+
entityType?: string | undefined;
|
|
160
|
+
gst?: string | undefined;
|
|
161
|
+
abnStatus?: string | undefined;
|
|
162
|
+
abnStatusEffectiveFrom?: string | undefined;
|
|
163
|
+
timeInBusiness?: number | undefined;
|
|
40
164
|
turnover?: number | undefined;
|
|
41
165
|
industryType?: string | undefined;
|
|
166
|
+
ppsr?: string | undefined;
|
|
42
167
|
emails?: Array<string> | undefined;
|
|
43
168
|
phoneNumbers?: Array<string> | undefined;
|
|
44
169
|
};
|
|
@@ -50,10 +175,19 @@ export const EntityAttributes$outboundSchema: z.ZodType<
|
|
|
50
175
|
EntityAttributes
|
|
51
176
|
> = z.object({
|
|
52
177
|
id: z.string().optional(),
|
|
178
|
+
businessNames: z.array(z.string()).optional(),
|
|
53
179
|
entityName: z.string().optional(),
|
|
54
180
|
abn: z.string().optional(),
|
|
181
|
+
acn: z.string().optional(),
|
|
182
|
+
state: State$outboundSchema.optional(),
|
|
183
|
+
entityType: z.string().optional(),
|
|
184
|
+
gst: z.string().optional(),
|
|
185
|
+
abnStatus: AbnStatus$outboundSchema.optional(),
|
|
186
|
+
abnStatusEffectiveFrom: z.string().optional(),
|
|
187
|
+
timeInBusiness: z.number().int().optional(),
|
|
55
188
|
turnover: z.number().int().optional(),
|
|
56
189
|
industryType: z.string().optional(),
|
|
190
|
+
ppsr: z.string().optional(),
|
|
57
191
|
emails: z.array(z.string()).optional(),
|
|
58
192
|
phoneNumbers: z.array(z.string()).optional(),
|
|
59
193
|
});
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
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 EntityAttributesInput = {
|
|
11
|
+
id?: string | undefined;
|
|
12
|
+
entityName?: string | undefined;
|
|
13
|
+
abn?: string | undefined;
|
|
14
|
+
turnover?: number | undefined;
|
|
15
|
+
industryType?: string | undefined;
|
|
16
|
+
emails?: Array<string> | undefined;
|
|
17
|
+
phoneNumbers?: Array<string> | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const EntityAttributesInput$inboundSchema: z.ZodType<
|
|
22
|
+
EntityAttributesInput,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
id: z.string().optional(),
|
|
27
|
+
entityName: z.string().optional(),
|
|
28
|
+
abn: z.string().optional(),
|
|
29
|
+
turnover: z.number().int().optional(),
|
|
30
|
+
industryType: z.string().optional(),
|
|
31
|
+
emails: z.array(z.string()).optional(),
|
|
32
|
+
phoneNumbers: z.array(z.string()).optional(),
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type EntityAttributesInput$Outbound = {
|
|
37
|
+
id?: string | undefined;
|
|
38
|
+
entityName?: string | undefined;
|
|
39
|
+
abn?: string | undefined;
|
|
40
|
+
turnover?: number | undefined;
|
|
41
|
+
industryType?: string | undefined;
|
|
42
|
+
emails?: Array<string> | undefined;
|
|
43
|
+
phoneNumbers?: Array<string> | undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const EntityAttributesInput$outboundSchema: z.ZodType<
|
|
48
|
+
EntityAttributesInput$Outbound,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
EntityAttributesInput
|
|
51
|
+
> = z.object({
|
|
52
|
+
id: z.string().optional(),
|
|
53
|
+
entityName: z.string().optional(),
|
|
54
|
+
abn: z.string().optional(),
|
|
55
|
+
turnover: z.number().int().optional(),
|
|
56
|
+
industryType: z.string().optional(),
|
|
57
|
+
emails: z.array(z.string()).optional(),
|
|
58
|
+
phoneNumbers: z.array(z.string()).optional(),
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
64
|
+
*/
|
|
65
|
+
export namespace EntityAttributesInput$ {
|
|
66
|
+
/** @deprecated use `EntityAttributesInput$inboundSchema` instead. */
|
|
67
|
+
export const inboundSchema = EntityAttributesInput$inboundSchema;
|
|
68
|
+
/** @deprecated use `EntityAttributesInput$outboundSchema` instead. */
|
|
69
|
+
export const outboundSchema = EntityAttributesInput$outboundSchema;
|
|
70
|
+
/** @deprecated use `EntityAttributesInput$Outbound` instead. */
|
|
71
|
+
export type Outbound = EntityAttributesInput$Outbound;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function entityAttributesInputToJSON(
|
|
75
|
+
entityAttributesInput: EntityAttributesInput,
|
|
76
|
+
): string {
|
|
77
|
+
return JSON.stringify(
|
|
78
|
+
EntityAttributesInput$outboundSchema.parse(entityAttributesInput),
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function entityAttributesInputFromJSON(
|
|
83
|
+
jsonString: string,
|
|
84
|
+
): SafeParseResult<EntityAttributesInput, SDKValidationError> {
|
|
85
|
+
return safeParse(
|
|
86
|
+
jsonString,
|
|
87
|
+
(x) => EntityAttributesInput$inboundSchema.parse(JSON.parse(x)),
|
|
88
|
+
`Failed to parse 'EntityAttributesInput' from JSON`,
|
|
89
|
+
);
|
|
90
|
+
}
|
|
@@ -31,6 +31,7 @@ export * from "./currencycodeiso4217.js";
|
|
|
31
31
|
export * from "./customerassetattributes.js";
|
|
32
32
|
export * from "./customerassettype.js";
|
|
33
33
|
export * from "./customerattributes.js";
|
|
34
|
+
export * from "./customerattributescreateitem.js";
|
|
34
35
|
export * from "./customeridtype.js";
|
|
35
36
|
export * from "./customerliabilityattributes.js";
|
|
36
37
|
export * from "./customerliabilityrepaymentfrequency.js";
|
|
@@ -38,6 +39,7 @@ export * from "./customerliabilitytype.js";
|
|
|
38
39
|
export * from "./customertitle.js";
|
|
39
40
|
export * from "./documenttype.js";
|
|
40
41
|
export * from "./entityattributes.js";
|
|
42
|
+
export * from "./entityattributesinput.js";
|
|
41
43
|
export * from "./errorsource.js";
|
|
42
44
|
export * from "./expenseattributes.js";
|
|
43
45
|
export * from "./expensefrequency.js";
|
|
@@ -52,6 +54,8 @@ export * from "./livingarrangements.js";
|
|
|
52
54
|
export * from "./loandetailsattributes.js";
|
|
53
55
|
export * from "./maritalstatus.js";
|
|
54
56
|
export * from "./monetaryquantity.js";
|
|
57
|
+
export * from "./paginationlinks.js";
|
|
58
|
+
export * from "./paginationmeta.js";
|
|
55
59
|
export * from "./percentagequantity.js";
|
|
56
60
|
export * from "./personalapplicationjsonapirelationships.js";
|
|
57
61
|
export * from "./personalapplicationpayload.js";
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
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 PaginationLinks = {
|
|
11
|
+
/**
|
|
12
|
+
* Link to the first page of data
|
|
13
|
+
*/
|
|
14
|
+
first?: string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Link to the last page of data
|
|
17
|
+
*/
|
|
18
|
+
last?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Link to the next page of data
|
|
21
|
+
*/
|
|
22
|
+
next?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Link to the previous page of data
|
|
25
|
+
*/
|
|
26
|
+
prev?: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const PaginationLinks$inboundSchema: z.ZodType<
|
|
31
|
+
PaginationLinks,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
unknown
|
|
34
|
+
> = z.object({
|
|
35
|
+
first: z.string().optional(),
|
|
36
|
+
last: z.string().optional(),
|
|
37
|
+
next: z.string().optional(),
|
|
38
|
+
prev: z.string().optional(),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export type PaginationLinks$Outbound = {
|
|
43
|
+
first?: string | undefined;
|
|
44
|
+
last?: string | undefined;
|
|
45
|
+
next?: string | undefined;
|
|
46
|
+
prev?: string | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const PaginationLinks$outboundSchema: z.ZodType<
|
|
51
|
+
PaginationLinks$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
PaginationLinks
|
|
54
|
+
> = z.object({
|
|
55
|
+
first: z.string().optional(),
|
|
56
|
+
last: z.string().optional(),
|
|
57
|
+
next: z.string().optional(),
|
|
58
|
+
prev: z.string().optional(),
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
64
|
+
*/
|
|
65
|
+
export namespace PaginationLinks$ {
|
|
66
|
+
/** @deprecated use `PaginationLinks$inboundSchema` instead. */
|
|
67
|
+
export const inboundSchema = PaginationLinks$inboundSchema;
|
|
68
|
+
/** @deprecated use `PaginationLinks$outboundSchema` instead. */
|
|
69
|
+
export const outboundSchema = PaginationLinks$outboundSchema;
|
|
70
|
+
/** @deprecated use `PaginationLinks$Outbound` instead. */
|
|
71
|
+
export type Outbound = PaginationLinks$Outbound;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function paginationLinksToJSON(
|
|
75
|
+
paginationLinks: PaginationLinks,
|
|
76
|
+
): string {
|
|
77
|
+
return JSON.stringify(PaginationLinks$outboundSchema.parse(paginationLinks));
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function paginationLinksFromJSON(
|
|
81
|
+
jsonString: string,
|
|
82
|
+
): SafeParseResult<PaginationLinks, SDKValidationError> {
|
|
83
|
+
return safeParse(
|
|
84
|
+
jsonString,
|
|
85
|
+
(x) => PaginationLinks$inboundSchema.parse(JSON.parse(x)),
|
|
86
|
+
`Failed to parse 'PaginationLinks' from JSON`,
|
|
87
|
+
);
|
|
88
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type PaginationMeta = {
|
|
12
|
+
/**
|
|
13
|
+
* Total number of records available
|
|
14
|
+
*/
|
|
15
|
+
total?: number | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Number of records per page
|
|
18
|
+
*/
|
|
19
|
+
perPage?: number | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Current page number
|
|
22
|
+
*/
|
|
23
|
+
currentPage?: number | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Total number of pages
|
|
26
|
+
*/
|
|
27
|
+
totalPages?: number | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const PaginationMeta$inboundSchema: z.ZodType<
|
|
32
|
+
PaginationMeta,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
unknown
|
|
35
|
+
> = z.object({
|
|
36
|
+
total: z.number().int().optional(),
|
|
37
|
+
per_page: z.number().int().optional(),
|
|
38
|
+
current_page: z.number().int().optional(),
|
|
39
|
+
total_pages: z.number().int().optional(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
"per_page": "perPage",
|
|
43
|
+
"current_page": "currentPage",
|
|
44
|
+
"total_pages": "totalPages",
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type PaginationMeta$Outbound = {
|
|
50
|
+
total?: number | undefined;
|
|
51
|
+
per_page?: number | undefined;
|
|
52
|
+
current_page?: number | undefined;
|
|
53
|
+
total_pages?: number | undefined;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const PaginationMeta$outboundSchema: z.ZodType<
|
|
58
|
+
PaginationMeta$Outbound,
|
|
59
|
+
z.ZodTypeDef,
|
|
60
|
+
PaginationMeta
|
|
61
|
+
> = z.object({
|
|
62
|
+
total: z.number().int().optional(),
|
|
63
|
+
perPage: z.number().int().optional(),
|
|
64
|
+
currentPage: z.number().int().optional(),
|
|
65
|
+
totalPages: z.number().int().optional(),
|
|
66
|
+
}).transform((v) => {
|
|
67
|
+
return remap$(v, {
|
|
68
|
+
perPage: "per_page",
|
|
69
|
+
currentPage: "current_page",
|
|
70
|
+
totalPages: "total_pages",
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @internal
|
|
76
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
77
|
+
*/
|
|
78
|
+
export namespace PaginationMeta$ {
|
|
79
|
+
/** @deprecated use `PaginationMeta$inboundSchema` instead. */
|
|
80
|
+
export const inboundSchema = PaginationMeta$inboundSchema;
|
|
81
|
+
/** @deprecated use `PaginationMeta$outboundSchema` instead. */
|
|
82
|
+
export const outboundSchema = PaginationMeta$outboundSchema;
|
|
83
|
+
/** @deprecated use `PaginationMeta$Outbound` instead. */
|
|
84
|
+
export type Outbound = PaginationMeta$Outbound;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function paginationMetaToJSON(paginationMeta: PaginationMeta): string {
|
|
88
|
+
return JSON.stringify(PaginationMeta$outboundSchema.parse(paginationMeta));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function paginationMetaFromJSON(
|
|
92
|
+
jsonString: string,
|
|
93
|
+
): SafeParseResult<PaginationMeta, SDKValidationError> {
|
|
94
|
+
return safeParse(
|
|
95
|
+
jsonString,
|
|
96
|
+
(x) => PaginationMeta$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
+
`Failed to parse 'PaginationMeta' from JSON`,
|
|
98
|
+
);
|
|
99
|
+
}
|