@financeable/aggregation 0.6.1 → 0.6.15
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 +2 -2
- package/README.md +8 -8
- package/docs/sdks/applications/README.md +266 -16
- package/docs/sdks/oauthtoken/README.md +5 -5
- package/docs/sdks/supportingdocuments/README.md +4 -4
- package/funcs/{oauthTokenOauthToken.d.ts → oauthTokenGet.d.ts} +2 -2
- package/funcs/oauthTokenGet.d.ts.map +1 -0
- package/funcs/{oauthTokenOauthToken.js → oauthTokenGet.js} +3 -3
- package/funcs/oauthTokenGet.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/addressattributes.d.ts +2 -2
- package/models/components/addressattributes.d.ts.map +1 -1
- package/models/components/addressattributes.js +2 -2
- package/models/components/addressattributes.js.map +1 -1
- package/models/components/commercialsecuredapplicationpayload.d.ts +2 -2
- package/models/components/commercialsecuredapplicationpayload.d.ts.map +1 -1
- package/models/components/commercialsecuredapplicationpayload.js +2 -2
- package/models/components/commercialsecuredapplicationpayload.js.map +1 -1
- package/models/components/commercialsecuredapplicationresource.d.ts +4 -4
- package/models/components/commercialsecuredapplicationresource.d.ts.map +1 -1
- package/models/components/commercialsecuredapplicationresource.js +4 -4
- package/models/components/commercialsecuredapplicationresource.js.map +1 -1
- package/models/components/consumersecuredapplicationpayload.d.ts +2 -2
- package/models/components/consumersecuredapplicationpayload.d.ts.map +1 -1
- package/models/components/consumersecuredapplicationpayload.js +2 -2
- package/models/components/consumersecuredapplicationpayload.js.map +1 -1
- package/models/components/consumersecuredapplicationresource.d.ts +4 -4
- package/models/components/consumersecuredapplicationresource.d.ts.map +1 -1
- package/models/components/consumersecuredapplicationresource.js +4 -4
- package/models/components/consumersecuredapplicationresource.js.map +1 -1
- package/models/components/consumersecuredloanassetattributes.d.ts +2 -2
- package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -1
- package/models/components/consumersecuredloanassetattributes.js +2 -2
- package/models/components/consumersecuredloanassetattributes.js.map +1 -1
- package/models/components/customerattributes.d.ts +2 -2
- package/models/components/customerattributes.d.ts.map +1 -1
- package/models/components/customerattributes.js +2 -2
- package/models/components/customerattributes.js.map +1 -1
- package/models/components/entityattributes.d.ts +2 -2
- package/models/components/entityattributes.d.ts.map +1 -1
- package/models/components/entityattributes.js +2 -2
- package/models/components/entityattributes.js.map +1 -1
- package/models/components/loandetailsattributes.d.ts +2 -2
- package/models/components/loandetailsattributes.d.ts.map +1 -1
- package/models/components/loandetailsattributes.js +2 -2
- package/models/components/loandetailsattributes.js.map +1 -1
- package/models/components/supportingdocumentattributes.d.ts +2 -2
- package/models/components/supportingdocumentattributes.d.ts.map +1 -1
- package/models/components/supportingdocumentattributes.js +2 -2
- package/models/components/supportingdocumentattributes.js.map +1 -1
- package/package.json +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/src/funcs/{oauthTokenOauthToken.ts → oauthTokenGet.ts} +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/addressattributes.ts +4 -4
- package/src/models/components/commercialsecuredapplicationpayload.ts +4 -4
- package/src/models/components/commercialsecuredapplicationresource.ts +8 -8
- package/src/models/components/consumersecuredapplicationpayload.ts +4 -4
- package/src/models/components/consumersecuredapplicationresource.ts +8 -8
- package/src/models/components/consumersecuredloanassetattributes.ts +4 -4
- package/src/models/components/customerattributes.ts +4 -4
- package/src/models/components/entityattributes.ts +4 -4
- package/src/models/components/loandetailsattributes.ts +4 -4
- package/src/models/components/supportingdocumentattributes.ts +4 -4
- package/src/sdk/oauthtoken.ts +3 -3
- package/funcs/oauthTokenOauthToken.d.ts.map +0 -1
- package/funcs/oauthTokenOauthToken.js.map +0 -1
package/FUNCTIONS.md
CHANGED
|
@@ -31,13 +31,13 @@ const financeable = new FinanceableCore({
|
|
|
31
31
|
|
|
32
32
|
async function run() {
|
|
33
33
|
const res = await supportingDocumentsCreate(financeable, {
|
|
34
|
-
mimeType: "text/
|
|
34
|
+
mimeType: "text/csv",
|
|
35
35
|
requestBody: {
|
|
36
36
|
data: {
|
|
37
37
|
type: "supporting-documents",
|
|
38
38
|
attributes: {
|
|
39
39
|
filename: "example.file",
|
|
40
|
-
documentType: "
|
|
40
|
+
documentType: "BANK STATEMENT",
|
|
41
41
|
},
|
|
42
42
|
relationships: {
|
|
43
43
|
application: {
|
package/README.md
CHANGED
|
@@ -333,7 +333,7 @@ run();
|
|
|
333
333
|
|
|
334
334
|
### [oauthToken](docs/sdks/oauthtoken/README.md)
|
|
335
335
|
|
|
336
|
-
* [
|
|
336
|
+
* [get](docs/sdks/oauthtoken/README.md#get) - Obtain an OAuth client_credentials token
|
|
337
337
|
|
|
338
338
|
### [supportingDocuments](docs/sdks/supportingdocuments/README.md)
|
|
339
339
|
|
|
@@ -358,7 +358,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
358
358
|
<summary>Available standalone functions</summary>
|
|
359
359
|
|
|
360
360
|
- [`applicationsCreate`](docs/sdks/applications/README.md#create) - Create an application in the Financeable platform.
|
|
361
|
-
- [`
|
|
361
|
+
- [`oauthTokenGet`](docs/sdks/oauthtoken/README.md#get) - Obtain an OAuth client_credentials token
|
|
362
362
|
- [`supportingDocumentsCreate`](docs/sdks/supportingdocuments/README.md#create) - Create a supporting document record in Financeable, and returns a pre-signed URL to upload this document with.
|
|
363
363
|
|
|
364
364
|
</details>
|
|
@@ -379,13 +379,13 @@ const financeable = new Financeable({
|
|
|
379
379
|
|
|
380
380
|
async function run() {
|
|
381
381
|
const result = await financeable.supportingDocuments.create({
|
|
382
|
-
mimeType: "text/
|
|
382
|
+
mimeType: "text/csv",
|
|
383
383
|
requestBody: {
|
|
384
384
|
data: {
|
|
385
385
|
type: "supporting-documents",
|
|
386
386
|
attributes: {
|
|
387
387
|
filename: "example.file",
|
|
388
|
-
documentType: "
|
|
388
|
+
documentType: "BANK STATEMENT",
|
|
389
389
|
},
|
|
390
390
|
relationships: {
|
|
391
391
|
application: {
|
|
@@ -438,13 +438,13 @@ const financeable = new Financeable({
|
|
|
438
438
|
|
|
439
439
|
async function run() {
|
|
440
440
|
const result = await financeable.supportingDocuments.create({
|
|
441
|
-
mimeType: "text/
|
|
441
|
+
mimeType: "text/csv",
|
|
442
442
|
requestBody: {
|
|
443
443
|
data: {
|
|
444
444
|
type: "supporting-documents",
|
|
445
445
|
attributes: {
|
|
446
446
|
filename: "example.file",
|
|
447
|
-
documentType: "
|
|
447
|
+
documentType: "BANK STATEMENT",
|
|
448
448
|
},
|
|
449
449
|
relationships: {
|
|
450
450
|
application: {
|
|
@@ -498,13 +498,13 @@ async function run() {
|
|
|
498
498
|
let result;
|
|
499
499
|
try {
|
|
500
500
|
result = await financeable.supportingDocuments.create({
|
|
501
|
-
mimeType: "text/
|
|
501
|
+
mimeType: "text/csv",
|
|
502
502
|
requestBody: {
|
|
503
503
|
data: {
|
|
504
504
|
type: "supporting-documents",
|
|
505
505
|
attributes: {
|
|
506
506
|
filename: "example.file",
|
|
507
|
-
documentType: "
|
|
507
|
+
documentType: "BANK STATEMENT",
|
|
508
508
|
},
|
|
509
509
|
relationships: {
|
|
510
510
|
application: {
|
|
@@ -25,7 +25,8 @@ async function run() {
|
|
|
25
25
|
data: {
|
|
26
26
|
type: "entities",
|
|
27
27
|
attributes: {
|
|
28
|
-
applicationType: "
|
|
28
|
+
applicationType: "consumerSecured",
|
|
29
|
+
associatedBrokerEmail: "<value>",
|
|
29
30
|
},
|
|
30
31
|
relationships: {
|
|
31
32
|
customers: {
|
|
@@ -33,23 +34,147 @@ async function run() {
|
|
|
33
34
|
{
|
|
34
35
|
type: "customers",
|
|
35
36
|
attributes: {
|
|
36
|
-
id: "<id>",
|
|
37
37
|
title: "Mr",
|
|
38
|
-
firstName: "
|
|
39
|
-
lastName: "
|
|
40
|
-
dateOfBirth: "
|
|
38
|
+
firstName: "Courtney",
|
|
39
|
+
lastName: "Greenfelder",
|
|
40
|
+
dateOfBirth: "1981-11-05",
|
|
41
41
|
idExpiryDate: "<value>",
|
|
42
42
|
},
|
|
43
43
|
relationships: {
|
|
44
44
|
addresses: {
|
|
45
|
-
data: [
|
|
45
|
+
data: [
|
|
46
|
+
{
|
|
47
|
+
type: "addresses",
|
|
48
|
+
attributes: {
|
|
49
|
+
id: "12345678901",
|
|
50
|
+
addressType: "residential",
|
|
51
|
+
fullAddress: "42 Wallaby Way, Sydney NSW 2000",
|
|
52
|
+
city: "Sydney",
|
|
53
|
+
postCode: "2000",
|
|
54
|
+
streetAddress: "42 Wallaby Way",
|
|
55
|
+
addressLine2: "",
|
|
56
|
+
streetNumber: "42",
|
|
57
|
+
streetType: "Way",
|
|
58
|
+
street: "Wallaby",
|
|
59
|
+
state: "NSW",
|
|
60
|
+
country: "Australia",
|
|
61
|
+
status: "current",
|
|
62
|
+
monthsAt: 24,
|
|
63
|
+
yearsAt: 2,
|
|
64
|
+
},
|
|
65
|
+
relationships: "<value>",
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
type: "customers",
|
|
73
|
+
attributes: {
|
|
74
|
+
title: "Mr",
|
|
75
|
+
firstName: "Courtney",
|
|
76
|
+
lastName: "Greenfelder",
|
|
77
|
+
dateOfBirth: "1981-11-05",
|
|
78
|
+
idExpiryDate: "<value>",
|
|
79
|
+
},
|
|
80
|
+
relationships: {
|
|
81
|
+
addresses: {
|
|
82
|
+
data: [
|
|
83
|
+
{
|
|
84
|
+
type: "addresses",
|
|
85
|
+
attributes: {
|
|
86
|
+
id: "12345678901",
|
|
87
|
+
addressType: "residential",
|
|
88
|
+
fullAddress: "42 Wallaby Way, Sydney NSW 2000",
|
|
89
|
+
city: "Sydney",
|
|
90
|
+
postCode: "2000",
|
|
91
|
+
streetAddress: "42 Wallaby Way",
|
|
92
|
+
addressLine2: "",
|
|
93
|
+
streetNumber: "42",
|
|
94
|
+
streetType: "Way",
|
|
95
|
+
street: "Wallaby",
|
|
96
|
+
state: "NSW",
|
|
97
|
+
country: "Australia",
|
|
98
|
+
status: "current",
|
|
99
|
+
monthsAt: 24,
|
|
100
|
+
yearsAt: 2,
|
|
101
|
+
},
|
|
102
|
+
relationships: "<value>",
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
type: "customers",
|
|
110
|
+
attributes: {
|
|
111
|
+
title: "Mr",
|
|
112
|
+
firstName: "Courtney",
|
|
113
|
+
lastName: "Greenfelder",
|
|
114
|
+
dateOfBirth: "1981-11-05",
|
|
115
|
+
idExpiryDate: "<value>",
|
|
116
|
+
},
|
|
117
|
+
relationships: {
|
|
118
|
+
addresses: {
|
|
119
|
+
data: [
|
|
120
|
+
{
|
|
121
|
+
type: "addresses",
|
|
122
|
+
attributes: {
|
|
123
|
+
id: "12345678901",
|
|
124
|
+
addressType: "residential",
|
|
125
|
+
fullAddress: "42 Wallaby Way, Sydney NSW 2000",
|
|
126
|
+
city: "Sydney",
|
|
127
|
+
postCode: "2000",
|
|
128
|
+
streetAddress: "42 Wallaby Way",
|
|
129
|
+
addressLine2: "",
|
|
130
|
+
streetNumber: "42",
|
|
131
|
+
streetType: "Way",
|
|
132
|
+
street: "Wallaby",
|
|
133
|
+
state: "NSW",
|
|
134
|
+
country: "Australia",
|
|
135
|
+
status: "current",
|
|
136
|
+
monthsAt: 24,
|
|
137
|
+
yearsAt: 2,
|
|
138
|
+
},
|
|
139
|
+
relationships: "<value>",
|
|
140
|
+
},
|
|
141
|
+
],
|
|
46
142
|
},
|
|
47
143
|
},
|
|
48
144
|
},
|
|
49
145
|
],
|
|
50
146
|
},
|
|
51
|
-
|
|
52
|
-
data:
|
|
147
|
+
asset: {
|
|
148
|
+
data: {
|
|
149
|
+
type: "assets",
|
|
150
|
+
attributes: {
|
|
151
|
+
id: "12345678901",
|
|
152
|
+
ageOfAsset: 3,
|
|
153
|
+
ageOfAssetAtEnd: 8,
|
|
154
|
+
condition: "USED",
|
|
155
|
+
assetType: "CARAVAN",
|
|
156
|
+
assetValue: "35000.00",
|
|
157
|
+
make: "Toyota",
|
|
158
|
+
assetModel: "Camry",
|
|
159
|
+
registrationNumber: "ABC123",
|
|
160
|
+
registrationState: "VIC",
|
|
161
|
+
vin: "1HGCM82633A123456",
|
|
162
|
+
supplierName: "Mr and Mrs Smith",
|
|
163
|
+
supplierABN: "12345678901",
|
|
164
|
+
supplierAddress: "123 Car Street, Melbourne VIC 3000",
|
|
165
|
+
supplierPhone: "0412345678",
|
|
166
|
+
supplierContactName: "John Smith",
|
|
167
|
+
supplierEmail: "john.smith@mrandmrssmith.com.au",
|
|
168
|
+
privateSale: false,
|
|
169
|
+
typeOfSale: "DEALER",
|
|
170
|
+
description: "2020 Toyota Camry Hybrid SL, Silver, 45,000km",
|
|
171
|
+
netAssetValue: "32000.00",
|
|
172
|
+
isLuxury: false,
|
|
173
|
+
additionalFees: "995.00",
|
|
174
|
+
additionalTaxes: "0.00",
|
|
175
|
+
},
|
|
176
|
+
relationships: "<value>",
|
|
177
|
+
},
|
|
53
178
|
},
|
|
54
179
|
},
|
|
55
180
|
},
|
|
@@ -81,7 +206,8 @@ async function run() {
|
|
|
81
206
|
data: {
|
|
82
207
|
type: "entities",
|
|
83
208
|
attributes: {
|
|
84
|
-
applicationType: "
|
|
209
|
+
applicationType: "consumerSecured",
|
|
210
|
+
associatedBrokerEmail: "<value>",
|
|
85
211
|
},
|
|
86
212
|
relationships: {
|
|
87
213
|
customers: {
|
|
@@ -89,23 +215,147 @@ async function run() {
|
|
|
89
215
|
{
|
|
90
216
|
type: "customers",
|
|
91
217
|
attributes: {
|
|
92
|
-
id: "<id>",
|
|
93
218
|
title: "Mr",
|
|
94
|
-
firstName: "
|
|
95
|
-
lastName: "
|
|
96
|
-
dateOfBirth: "
|
|
219
|
+
firstName: "Courtney",
|
|
220
|
+
lastName: "Greenfelder",
|
|
221
|
+
dateOfBirth: "1981-11-05",
|
|
97
222
|
idExpiryDate: "<value>",
|
|
98
223
|
},
|
|
99
224
|
relationships: {
|
|
100
225
|
addresses: {
|
|
101
|
-
data: [
|
|
226
|
+
data: [
|
|
227
|
+
{
|
|
228
|
+
type: "addresses",
|
|
229
|
+
attributes: {
|
|
230
|
+
id: "12345678901",
|
|
231
|
+
addressType: "residential",
|
|
232
|
+
fullAddress: "42 Wallaby Way, Sydney NSW 2000",
|
|
233
|
+
city: "Sydney",
|
|
234
|
+
postCode: "2000",
|
|
235
|
+
streetAddress: "42 Wallaby Way",
|
|
236
|
+
addressLine2: "",
|
|
237
|
+
streetNumber: "42",
|
|
238
|
+
streetType: "Way",
|
|
239
|
+
street: "Wallaby",
|
|
240
|
+
state: "NSW",
|
|
241
|
+
country: "Australia",
|
|
242
|
+
status: "current",
|
|
243
|
+
monthsAt: 24,
|
|
244
|
+
yearsAt: 2,
|
|
245
|
+
},
|
|
246
|
+
relationships: "<value>",
|
|
247
|
+
},
|
|
248
|
+
],
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
type: "customers",
|
|
254
|
+
attributes: {
|
|
255
|
+
title: "Mr",
|
|
256
|
+
firstName: "Courtney",
|
|
257
|
+
lastName: "Greenfelder",
|
|
258
|
+
dateOfBirth: "1981-11-05",
|
|
259
|
+
idExpiryDate: "<value>",
|
|
260
|
+
},
|
|
261
|
+
relationships: {
|
|
262
|
+
addresses: {
|
|
263
|
+
data: [
|
|
264
|
+
{
|
|
265
|
+
type: "addresses",
|
|
266
|
+
attributes: {
|
|
267
|
+
id: "12345678901",
|
|
268
|
+
addressType: "residential",
|
|
269
|
+
fullAddress: "42 Wallaby Way, Sydney NSW 2000",
|
|
270
|
+
city: "Sydney",
|
|
271
|
+
postCode: "2000",
|
|
272
|
+
streetAddress: "42 Wallaby Way",
|
|
273
|
+
addressLine2: "",
|
|
274
|
+
streetNumber: "42",
|
|
275
|
+
streetType: "Way",
|
|
276
|
+
street: "Wallaby",
|
|
277
|
+
state: "NSW",
|
|
278
|
+
country: "Australia",
|
|
279
|
+
status: "current",
|
|
280
|
+
monthsAt: 24,
|
|
281
|
+
yearsAt: 2,
|
|
282
|
+
},
|
|
283
|
+
relationships: "<value>",
|
|
284
|
+
},
|
|
285
|
+
],
|
|
286
|
+
},
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
type: "customers",
|
|
291
|
+
attributes: {
|
|
292
|
+
title: "Mr",
|
|
293
|
+
firstName: "Courtney",
|
|
294
|
+
lastName: "Greenfelder",
|
|
295
|
+
dateOfBirth: "1981-11-05",
|
|
296
|
+
idExpiryDate: "<value>",
|
|
297
|
+
},
|
|
298
|
+
relationships: {
|
|
299
|
+
addresses: {
|
|
300
|
+
data: [
|
|
301
|
+
{
|
|
302
|
+
type: "addresses",
|
|
303
|
+
attributes: {
|
|
304
|
+
id: "12345678901",
|
|
305
|
+
addressType: "residential",
|
|
306
|
+
fullAddress: "42 Wallaby Way, Sydney NSW 2000",
|
|
307
|
+
city: "Sydney",
|
|
308
|
+
postCode: "2000",
|
|
309
|
+
streetAddress: "42 Wallaby Way",
|
|
310
|
+
addressLine2: "",
|
|
311
|
+
streetNumber: "42",
|
|
312
|
+
streetType: "Way",
|
|
313
|
+
street: "Wallaby",
|
|
314
|
+
state: "NSW",
|
|
315
|
+
country: "Australia",
|
|
316
|
+
status: "current",
|
|
317
|
+
monthsAt: 24,
|
|
318
|
+
yearsAt: 2,
|
|
319
|
+
},
|
|
320
|
+
relationships: "<value>",
|
|
321
|
+
},
|
|
322
|
+
],
|
|
102
323
|
},
|
|
103
324
|
},
|
|
104
325
|
},
|
|
105
326
|
],
|
|
106
327
|
},
|
|
107
|
-
|
|
108
|
-
data:
|
|
328
|
+
asset: {
|
|
329
|
+
data: {
|
|
330
|
+
type: "assets",
|
|
331
|
+
attributes: {
|
|
332
|
+
id: "12345678901",
|
|
333
|
+
ageOfAsset: 3,
|
|
334
|
+
ageOfAssetAtEnd: 8,
|
|
335
|
+
condition: "USED",
|
|
336
|
+
assetType: "CARAVAN",
|
|
337
|
+
assetValue: "35000.00",
|
|
338
|
+
make: "Toyota",
|
|
339
|
+
assetModel: "Camry",
|
|
340
|
+
registrationNumber: "ABC123",
|
|
341
|
+
registrationState: "VIC",
|
|
342
|
+
vin: "1HGCM82633A123456",
|
|
343
|
+
supplierName: "Mr and Mrs Smith",
|
|
344
|
+
supplierABN: "12345678901",
|
|
345
|
+
supplierAddress: "123 Car Street, Melbourne VIC 3000",
|
|
346
|
+
supplierPhone: "0412345678",
|
|
347
|
+
supplierContactName: "John Smith",
|
|
348
|
+
supplierEmail: "john.smith@mrandmrssmith.com.au",
|
|
349
|
+
privateSale: false,
|
|
350
|
+
typeOfSale: "DEALER",
|
|
351
|
+
description: "2020 Toyota Camry Hybrid SL, Silver, 45,000km",
|
|
352
|
+
netAssetValue: "32000.00",
|
|
353
|
+
isLuxury: false,
|
|
354
|
+
additionalFees: "995.00",
|
|
355
|
+
additionalTaxes: "0.00",
|
|
356
|
+
},
|
|
357
|
+
relationships: "<value>",
|
|
358
|
+
},
|
|
109
359
|
},
|
|
110
360
|
},
|
|
111
361
|
},
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
|
-
* [
|
|
8
|
+
* [get](#get) - Obtain an OAuth client_credentials token
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## get
|
|
11
11
|
|
|
12
12
|
Obtain an OAuth client_credentials token
|
|
13
13
|
|
|
@@ -21,7 +21,7 @@ const financeable = new Financeable({
|
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
async function run() {
|
|
24
|
-
const result = await financeable.oauthToken.
|
|
24
|
+
const result = await financeable.oauthToken.get({
|
|
25
25
|
grantType: "client_credentials",
|
|
26
26
|
clientId: "<id>",
|
|
27
27
|
clientSecret: "<value>",
|
|
@@ -41,7 +41,7 @@ The standalone function version of this method:
|
|
|
41
41
|
|
|
42
42
|
```typescript
|
|
43
43
|
import { FinanceableCore } from "@financeable/aggregation/core.js";
|
|
44
|
-
import {
|
|
44
|
+
import { oauthTokenGet } from "@financeable/aggregation/funcs/oauthTokenGet.js";
|
|
45
45
|
|
|
46
46
|
// Use `FinanceableCore` for best tree-shaking performance.
|
|
47
47
|
// You can create one instance of it to use across an application.
|
|
@@ -50,7 +50,7 @@ const financeable = new FinanceableCore({
|
|
|
50
50
|
});
|
|
51
51
|
|
|
52
52
|
async function run() {
|
|
53
|
-
const res = await
|
|
53
|
+
const res = await oauthTokenGet(financeable, {
|
|
54
54
|
grantType: "client_credentials",
|
|
55
55
|
clientId: "<id>",
|
|
56
56
|
clientSecret: "<value>",
|
|
@@ -22,13 +22,13 @@ const financeable = new Financeable({
|
|
|
22
22
|
|
|
23
23
|
async function run() {
|
|
24
24
|
const result = await financeable.supportingDocuments.create({
|
|
25
|
-
mimeType: "text/
|
|
25
|
+
mimeType: "text/csv",
|
|
26
26
|
requestBody: {
|
|
27
27
|
data: {
|
|
28
28
|
type: "supporting-documents",
|
|
29
29
|
attributes: {
|
|
30
30
|
filename: "example.file",
|
|
31
|
-
documentType: "
|
|
31
|
+
documentType: "BANK STATEMENT",
|
|
32
32
|
},
|
|
33
33
|
relationships: {
|
|
34
34
|
application: {
|
|
@@ -65,13 +65,13 @@ const financeable = new FinanceableCore({
|
|
|
65
65
|
|
|
66
66
|
async function run() {
|
|
67
67
|
const res = await supportingDocumentsCreate(financeable, {
|
|
68
|
-
mimeType: "text/
|
|
68
|
+
mimeType: "text/csv",
|
|
69
69
|
requestBody: {
|
|
70
70
|
data: {
|
|
71
71
|
type: "supporting-documents",
|
|
72
72
|
attributes: {
|
|
73
73
|
filename: "example.file",
|
|
74
|
-
documentType: "
|
|
74
|
+
documentType: "BANK STATEMENT",
|
|
75
75
|
},
|
|
76
76
|
relationships: {
|
|
77
77
|
application: {
|
|
@@ -9,5 +9,5 @@ import { Result } from "../types/fp.js";
|
|
|
9
9
|
/**
|
|
10
10
|
* Obtain an OAuth client_credentials token
|
|
11
11
|
*/
|
|
12
|
-
export declare function
|
|
13
|
-
//# sourceMappingURL=
|
|
12
|
+
export declare function oauthTokenGet(client: FinanceableCore, request: components.TokenRequest, options?: RequestOptions): APIPromise<Result<components.TokenResponse, APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
13
|
+
//# sourceMappingURL=oauthTokenGet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauthTokenGet.d.ts","sourceRoot":"","sources":["../src/funcs/oauthTokenGet.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,UAAU,CAAC,YAAY,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,aAAa,EACtB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAMA"}
|
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.oauthTokenGet = oauthTokenGet;
|
|
40
40
|
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
41
|
const M = __importStar(require("../lib/matchers.js"));
|
|
42
42
|
const primitives_js_1 = require("../lib/primitives.js");
|
|
@@ -48,7 +48,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
48
48
|
/**
|
|
49
49
|
* Obtain an OAuth client_credentials token
|
|
50
50
|
*/
|
|
51
|
-
function
|
|
51
|
+
function oauthTokenGet(client, request, options) {
|
|
52
52
|
return new async_js_1.APIPromise($do(client, request, options));
|
|
53
53
|
}
|
|
54
54
|
async function $do(client, request, options) {
|
|
@@ -108,4 +108,4 @@ async function $do(client, request, options) {
|
|
|
108
108
|
}
|
|
109
109
|
return [result, { status: "complete", request: req, response }];
|
|
110
110
|
}
|
|
111
|
-
//# sourceMappingURL=
|
|
111
|
+
//# sourceMappingURL=oauthTokenGet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauthTokenGet.js","sourceRoot":"","sources":["../src/funcs/oauthTokenGet.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BH,sCAqBC;AA5CD,sDAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAU5D,gDAAwD;AAGxD;;GAEG;AACH,SAAgB,aAAa,CAC3B,MAAuB,EACvB,OAAgC,EAChC,OAAwB;IAaxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,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,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAU5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,2BAA2B,CAAC,EACnD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,CAAC,CAAC;IACZ,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
27
27
|
export declare const SDK_METADATA: {
|
|
28
28
|
readonly language: "typescript";
|
|
29
29
|
readonly openapiDocVersion: "0.4.0";
|
|
30
|
-
readonly sdkVersion: "0.6.
|
|
31
|
-
readonly genVersion: "2.
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.6.
|
|
30
|
+
readonly sdkVersion: "0.6.15";
|
|
31
|
+
readonly genVersion: "2.603.1";
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.6.15 2.603.1 0.4.0 @financeable/aggregation";
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -28,8 +28,8 @@ function serverURLFromOptions(options) {
|
|
|
28
28
|
exports.SDK_METADATA = {
|
|
29
29
|
language: "typescript",
|
|
30
30
|
openapiDocVersion: "0.4.0",
|
|
31
|
-
sdkVersion: "0.6.
|
|
32
|
-
genVersion: "2.
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 0.6.
|
|
31
|
+
sdkVersion: "0.6.15",
|
|
32
|
+
genVersion: "2.603.1",
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 0.6.15 2.603.1 0.4.0 @financeable/aggregation",
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=config.js.map
|
package/lib/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAkCH,oDAeC;AA5CD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,uCAAuC;CAC/B,CAAC;AAsBX,SAAgB,oBAAoB,CAAC,OAAmB;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,kBAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,kBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,OAAO;IAC1B,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAkCH,oDAeC;AA5CD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,uCAAuC;CAC/B,CAAC;AAsBX,SAAgB,oBAAoB,CAAC,OAAmB;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,kBAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,kBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,OAAO;IAC1B,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE,SAAS;IACrB,SAAS,EACP,wEAAwE;CAClE,CAAC"}
|
|
@@ -9,7 +9,7 @@ export declare const AddressAttributesStatus: {
|
|
|
9
9
|
};
|
|
10
10
|
export type AddressAttributesStatus = ClosedEnum<typeof AddressAttributesStatus>;
|
|
11
11
|
export type AddressAttributes = {
|
|
12
|
-
id
|
|
12
|
+
id?: string | undefined;
|
|
13
13
|
unitNumber?: number | undefined;
|
|
14
14
|
addressType: string;
|
|
15
15
|
fullAddress: string;
|
|
@@ -50,7 +50,7 @@ export declare namespace AddressAttributesStatus$ {
|
|
|
50
50
|
export declare const AddressAttributes$inboundSchema: z.ZodType<AddressAttributes, z.ZodTypeDef, unknown>;
|
|
51
51
|
/** @internal */
|
|
52
52
|
export type AddressAttributes$Outbound = {
|
|
53
|
-
id
|
|
53
|
+
id?: string | undefined;
|
|
54
54
|
unitNumber?: number | undefined;
|
|
55
55
|
addressType: string;
|
|
56
56
|
fullAddress: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addressattributes.d.ts","sourceRoot":"","sources":["../../src/models/components/addressattributes.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,8BAA8B,EAG/B,MAAM,qCAAqC,CAAC;AAE7C,eAAO,MAAM,uBAAuB;;;CAG1B,CAAC;AACX,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAC9C,OAAO,uBAAuB,CAC/B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"addressattributes.d.ts","sourceRoot":"","sources":["../../src/models/components/addressattributes.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,8BAA8B,EAG/B,MAAM,qCAAqC,CAAC;AAE7C,eAAO,MAAM,uBAAuB;;;CAG1B,CAAC;AACX,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAC9C,OAAO,uBAAuB,CAC/B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,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AAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAkBjB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,kBAAkB,CAAC;IAClC,iEAAiE;IAC1D,MAAM,aAAa,qDAAkC,CAAC;IAC7D,kEAAkE;IAC3D,MAAM,cAAc,wEAAmC,CAAC;IAC/D,4DAA4D;IAC5D,KAAY,QAAQ,GAAG,0BAA0B,CAAC;CACnD;AAED,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR;AAED,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
|
|
@@ -63,7 +63,7 @@ var AddressAttributesStatus$;
|
|
|
63
63
|
})(AddressAttributesStatus$ || (exports.AddressAttributesStatus$ = AddressAttributesStatus$ = {}));
|
|
64
64
|
/** @internal */
|
|
65
65
|
exports.AddressAttributes$inboundSchema = z.object({
|
|
66
|
-
id: z.string(),
|
|
66
|
+
id: z.string().optional(),
|
|
67
67
|
unitNumber: z.number().int().optional(),
|
|
68
68
|
addressType: z.string(),
|
|
69
69
|
fullAddress: z.string(),
|
|
@@ -82,7 +82,7 @@ exports.AddressAttributes$inboundSchema = z.object({
|
|
|
82
82
|
});
|
|
83
83
|
/** @internal */
|
|
84
84
|
exports.AddressAttributes$outboundSchema = z.object({
|
|
85
|
-
id: z.string(),
|
|
85
|
+
id: z.string().optional(),
|
|
86
86
|
unitNumber: z.number().int().optional(),
|
|
87
87
|
addressType: z.string(),
|
|
88
88
|
fullAddress: z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addressattributes.js","sourceRoot":"","sources":["../../src/models/components/addressattributes.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8IH,0DAMC;AAED,8DAQC;AA5JD,uCAAyB;AACzB,qDAAiD;AAIjD,2FAI6C;AAEhC,QAAA,uBAAuB,GAAG;IACrC,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAwBX,gBAAgB;AACH,QAAA,qCAAqC,GAE9C,CAAC,CAAC,UAAU,CAAC,+BAAuB,CAAC,CAAC;AAE1C,gBAAgB;AACH,QAAA,sCAAsC,GAE/C,6CAAqC,CAAC;AAE1C;;;GAGG;AACH,IAAiB,wBAAwB,CAKxC;AALD,WAAiB,wBAAwB;IACvC,uEAAuE;IAC1D,sCAAa,GAAG,6CAAqC,CAAC;IACnE,wEAAwE;IAC3D,uCAAc,GAAG,8CAAsC,CAAC;AACvE,CAAC,EALgB,wBAAwB,wCAAxB,wBAAwB,QAKxC;AAED,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"addressattributes.js","sourceRoot":"","sources":["../../src/models/components/addressattributes.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8IH,0DAMC;AAED,8DAQC;AA5JD,uCAAyB;AACzB,qDAAiD;AAIjD,2FAI6C;AAEhC,QAAA,uBAAuB,GAAG;IACrC,OAAO,EAAE,SAAS;IAClB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SAAgB,yBAAyB,CACvC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,+CAA+C,CAChD,CAAC;AACJ,CAAC"}
|
|
@@ -42,7 +42,7 @@ export type Attributes = {
|
|
|
42
42
|
/**
|
|
43
43
|
* Email address of the broker to be associated with this application.
|
|
44
44
|
*/
|
|
45
|
-
associatedBrokerEmail
|
|
45
|
+
associatedBrokerEmail: string;
|
|
46
46
|
};
|
|
47
47
|
export type CommercialSecuredApplicationPayload = {
|
|
48
48
|
type: CommercialSecuredApplicationPayloadType;
|
|
@@ -113,7 +113,7 @@ export declare const Attributes$inboundSchema: z.ZodType<Attributes, z.ZodTypeDe
|
|
|
113
113
|
/** @internal */
|
|
114
114
|
export type Attributes$Outbound = {
|
|
115
115
|
applicationType: string;
|
|
116
|
-
associatedBrokerEmail
|
|
116
|
+
associatedBrokerEmail: string;
|
|
117
117
|
};
|
|
118
118
|
/** @internal */
|
|
119
119
|
export declare const Attributes$outboundSchema: z.ZodType<Attributes$Outbound, z.ZodTypeDef, Attributes>;
|