@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
package/README.md
CHANGED
|
@@ -327,6 +327,8 @@ run();
|
|
|
327
327
|
### [applications](docs/sdks/applications/README.md)
|
|
328
328
|
|
|
329
329
|
* [create](docs/sdks/applications/README.md#create) - Create an application in the Financeable platform.
|
|
330
|
+
* [list](docs/sdks/applications/README.md#list) - List all applications from the tenant. This endpoint does not support the 'include' query parameter; relationships must be fetched via the 'Get Application' endpoint.
|
|
331
|
+
* [get](docs/sdks/applications/README.md#get) - Retrieve a specific application from the Financeable platform.
|
|
330
332
|
|
|
331
333
|
### [oauthToken](docs/sdks/oauthtoken/README.md)
|
|
332
334
|
|
|
@@ -355,6 +357,8 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
355
357
|
<summary>Available standalone functions</summary>
|
|
356
358
|
|
|
357
359
|
- [`applicationsCreate`](docs/sdks/applications/README.md#create) - Create an application in the Financeable platform.
|
|
360
|
+
- [`applicationsGet`](docs/sdks/applications/README.md#get) - Retrieve a specific application from the Financeable platform.
|
|
361
|
+
- [`applicationsList`](docs/sdks/applications/README.md#list) - List all applications from the tenant. This endpoint does not support the 'include' query parameter; relationships must be fetched via the 'Get Application' endpoint.
|
|
358
362
|
- [`oauthTokenGet`](docs/sdks/oauthtoken/README.md#get) - Obtain an OAuth client_credentials token
|
|
359
363
|
- [`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.
|
|
360
364
|
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
8
|
* [create](#create) - Create an application in the Financeable platform.
|
|
9
|
+
* [list](#list) - List all applications from the tenant. This endpoint does not support the 'include' query parameter; relationships must be fetched via the 'Get Application' endpoint.
|
|
10
|
+
* [get](#get) - Retrieve a specific application from the Financeable platform.
|
|
9
11
|
|
|
10
12
|
## create
|
|
11
13
|
|
|
@@ -378,6 +380,148 @@ run();
|
|
|
378
380
|
|
|
379
381
|
### Errors
|
|
380
382
|
|
|
383
|
+
| Error Type | Status Code | Content Type |
|
|
384
|
+
| --------------- | --------------- | --------------- |
|
|
385
|
+
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
386
|
+
|
|
387
|
+
## list
|
|
388
|
+
|
|
389
|
+
List all applications from the tenant. This endpoint does not support the 'include' query parameter; relationships must be fetched via the 'Get Application' endpoint.
|
|
390
|
+
|
|
391
|
+
### Example Usage
|
|
392
|
+
|
|
393
|
+
<!-- UsageSnippet language="typescript" operationID="listApplications" method="get" path="/applications" -->
|
|
394
|
+
```typescript
|
|
395
|
+
import { Financeable } from "@financeable/aggregation";
|
|
396
|
+
|
|
397
|
+
const financeable = new Financeable({
|
|
398
|
+
clientCredentials: process.env["FINANCEABLE_CLIENT_CREDENTIALS"] ?? "",
|
|
399
|
+
});
|
|
400
|
+
|
|
401
|
+
async function run() {
|
|
402
|
+
const result = await financeable.applications.list({});
|
|
403
|
+
|
|
404
|
+
console.log(result);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
run();
|
|
408
|
+
```
|
|
409
|
+
|
|
410
|
+
### Standalone function
|
|
411
|
+
|
|
412
|
+
The standalone function version of this method:
|
|
413
|
+
|
|
414
|
+
```typescript
|
|
415
|
+
import { FinanceableCore } from "@financeable/aggregation/core.js";
|
|
416
|
+
import { applicationsList } from "@financeable/aggregation/funcs/applicationsList.js";
|
|
417
|
+
|
|
418
|
+
// Use `FinanceableCore` for best tree-shaking performance.
|
|
419
|
+
// You can create one instance of it to use across an application.
|
|
420
|
+
const financeable = new FinanceableCore({
|
|
421
|
+
clientCredentials: process.env["FINANCEABLE_CLIENT_CREDENTIALS"] ?? "",
|
|
422
|
+
});
|
|
423
|
+
|
|
424
|
+
async function run() {
|
|
425
|
+
const res = await applicationsList(financeable, {});
|
|
426
|
+
if (res.ok) {
|
|
427
|
+
const { value: result } = res;
|
|
428
|
+
console.log(result);
|
|
429
|
+
} else {
|
|
430
|
+
console.log("applicationsList failed:", res.error);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
run();
|
|
435
|
+
```
|
|
436
|
+
|
|
437
|
+
### Parameters
|
|
438
|
+
|
|
439
|
+
| Parameter | Type | Required | Description |
|
|
440
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
441
|
+
| `request` | [operations.ListApplicationsRequest](../../models/operations/listapplicationsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
442
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
443
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
444
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
445
|
+
|
|
446
|
+
### Response
|
|
447
|
+
|
|
448
|
+
**Promise\<[operations.ListApplicationsResponse](../../models/operations/listapplicationsresponse.md)\>**
|
|
449
|
+
|
|
450
|
+
### Errors
|
|
451
|
+
|
|
452
|
+
| Error Type | Status Code | Content Type |
|
|
453
|
+
| --------------- | --------------- | --------------- |
|
|
454
|
+
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
455
|
+
|
|
456
|
+
## get
|
|
457
|
+
|
|
458
|
+
Retrieve a specific application from the Financeable platform.
|
|
459
|
+
|
|
460
|
+
### Example Usage
|
|
461
|
+
|
|
462
|
+
<!-- UsageSnippet language="typescript" operationID="getApplication" method="get" path="/applications/{id}" -->
|
|
463
|
+
```typescript
|
|
464
|
+
import { Financeable } from "@financeable/aggregation";
|
|
465
|
+
|
|
466
|
+
const financeable = new Financeable({
|
|
467
|
+
clientCredentials: process.env["FINANCEABLE_CLIENT_CREDENTIALS"] ?? "",
|
|
468
|
+
});
|
|
469
|
+
|
|
470
|
+
async function run() {
|
|
471
|
+
const result = await financeable.applications.get({
|
|
472
|
+
id: "<id>",
|
|
473
|
+
});
|
|
474
|
+
|
|
475
|
+
console.log(result);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
run();
|
|
479
|
+
```
|
|
480
|
+
|
|
481
|
+
### Standalone function
|
|
482
|
+
|
|
483
|
+
The standalone function version of this method:
|
|
484
|
+
|
|
485
|
+
```typescript
|
|
486
|
+
import { FinanceableCore } from "@financeable/aggregation/core.js";
|
|
487
|
+
import { applicationsGet } from "@financeable/aggregation/funcs/applicationsGet.js";
|
|
488
|
+
|
|
489
|
+
// Use `FinanceableCore` for best tree-shaking performance.
|
|
490
|
+
// You can create one instance of it to use across an application.
|
|
491
|
+
const financeable = new FinanceableCore({
|
|
492
|
+
clientCredentials: process.env["FINANCEABLE_CLIENT_CREDENTIALS"] ?? "",
|
|
493
|
+
});
|
|
494
|
+
|
|
495
|
+
async function run() {
|
|
496
|
+
const res = await applicationsGet(financeable, {
|
|
497
|
+
id: "<id>",
|
|
498
|
+
});
|
|
499
|
+
if (res.ok) {
|
|
500
|
+
const { value: result } = res;
|
|
501
|
+
console.log(result);
|
|
502
|
+
} else {
|
|
503
|
+
console.log("applicationsGet failed:", res.error);
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
run();
|
|
508
|
+
```
|
|
509
|
+
|
|
510
|
+
### Parameters
|
|
511
|
+
|
|
512
|
+
| Parameter | Type | Required | Description |
|
|
513
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
514
|
+
| `request` | [operations.GetApplicationRequest](../../models/operations/getapplicationrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
515
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
516
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
517
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
518
|
+
|
|
519
|
+
### Response
|
|
520
|
+
|
|
521
|
+
**Promise\<[operations.GetApplicationResponse](../../models/operations/getapplicationresponse.md)\>**
|
|
522
|
+
|
|
523
|
+
### Errors
|
|
524
|
+
|
|
381
525
|
| Error Type | Status Code | Content Type |
|
|
382
526
|
| --------------- | --------------- | --------------- |
|
|
383
527
|
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FinanceableCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { FinanceableError } from "../models/errors/financeableerror.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
6
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { APIPromise } from "../types/async.js";
|
|
9
|
+
import { Result } from "../types/fp.js";
|
|
10
|
+
/**
|
|
11
|
+
* Retrieve a specific application from the Financeable platform.
|
|
12
|
+
*/
|
|
13
|
+
export declare function applicationsGet(client: FinanceableCore, request: operations.GetApplicationRequest, options?: RequestOptions): APIPromise<Result<operations.GetApplicationResponse, FinanceableError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
14
|
+
//# sourceMappingURL=applicationsGet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applicationsGet.d.ts","sourceRoot":"","sources":["../src/funcs/applicationsGet.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,sBAAsB,EAC/B,gBAAgB,GAChB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.applicationsGet = applicationsGet;
|
|
40
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
42
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
43
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
44
|
+
const security_js_1 = require("../lib/security.js");
|
|
45
|
+
const url_js_1 = require("../lib/url.js");
|
|
46
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
47
|
+
const async_js_1 = require("../types/async.js");
|
|
48
|
+
/**
|
|
49
|
+
* Retrieve a specific application from the Financeable platform.
|
|
50
|
+
*/
|
|
51
|
+
function applicationsGet(client, request, options) {
|
|
52
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
53
|
+
}
|
|
54
|
+
async function $do(client, request, options) {
|
|
55
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.GetApplicationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
56
|
+
if (!parsed.ok) {
|
|
57
|
+
return [parsed, { status: "invalid" }];
|
|
58
|
+
}
|
|
59
|
+
const payload = parsed.value;
|
|
60
|
+
const body = null;
|
|
61
|
+
const pathParams = {
|
|
62
|
+
id: (0, encodings_js_1.encodeSimple)("id", payload.id, {
|
|
63
|
+
explode: false,
|
|
64
|
+
charEncoding: "percent",
|
|
65
|
+
}),
|
|
66
|
+
};
|
|
67
|
+
const path = (0, url_js_1.pathToFunc)("/applications/{id}")(pathParams);
|
|
68
|
+
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
69
|
+
"include": payload.include,
|
|
70
|
+
}, { explode: false });
|
|
71
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
72
|
+
Accept: "application/json",
|
|
73
|
+
}));
|
|
74
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.clientCredentials);
|
|
75
|
+
const securityInput = secConfig == null
|
|
76
|
+
? {}
|
|
77
|
+
: { clientCredentials: secConfig };
|
|
78
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
79
|
+
const context = {
|
|
80
|
+
options: client._options,
|
|
81
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
82
|
+
operationID: "getApplication",
|
|
83
|
+
oAuth2Scopes: null,
|
|
84
|
+
resolvedSecurity: requestSecurity,
|
|
85
|
+
securitySource: client._options.clientCredentials,
|
|
86
|
+
retryConfig: options?.retries
|
|
87
|
+
|| client._options.retryConfig
|
|
88
|
+
|| { strategy: "none" },
|
|
89
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
90
|
+
};
|
|
91
|
+
const requestRes = client._createRequest(context, {
|
|
92
|
+
security: requestSecurity,
|
|
93
|
+
method: "GET",
|
|
94
|
+
baseURL: options?.serverURL,
|
|
95
|
+
path: path,
|
|
96
|
+
headers: headers,
|
|
97
|
+
query: query,
|
|
98
|
+
body: body,
|
|
99
|
+
userAgent: client._options.userAgent,
|
|
100
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
101
|
+
}, options);
|
|
102
|
+
if (!requestRes.ok) {
|
|
103
|
+
return [requestRes, { status: "invalid" }];
|
|
104
|
+
}
|
|
105
|
+
const req = requestRes.value;
|
|
106
|
+
const doResult = await client._do(req, {
|
|
107
|
+
context,
|
|
108
|
+
errorCodes: [],
|
|
109
|
+
retryConfig: context.retryConfig,
|
|
110
|
+
retryCodes: context.retryCodes,
|
|
111
|
+
});
|
|
112
|
+
if (!doResult.ok) {
|
|
113
|
+
return [doResult, { status: "request-error", request: req }];
|
|
114
|
+
}
|
|
115
|
+
const response = doResult.value;
|
|
116
|
+
const [result] = await M.match(M.json(200, operations.GetApplicationResponse$inboundSchema), M.json(403, operations.GetApplicationResponse$inboundSchema), M.json(404, operations.GetApplicationResponse$inboundSchema))(response, req);
|
|
117
|
+
if (!result.ok) {
|
|
118
|
+
return [result, { status: "complete", request: req, response }];
|
|
119
|
+
}
|
|
120
|
+
return [result, { status: "complete", request: req, response }];
|
|
121
|
+
}
|
|
122
|
+
//# sourceMappingURL=applicationsGet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applicationsGet.js","sourceRoot":"","sources":["../src/funcs/applicationsGet.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BH,0CAsBC;AA9CD,sDAAoE;AACpE,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAW3C,0EAA4D;AAC5D,gDAAwD;AAGxD;;GAEG;AACH,SAAgB,eAAe,CAC7B,MAAuB,EACvB,OAAyC,EACzC,OAAwB;IAcxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAuB,EACvB,OAAyC,EACzC,OAAwB;IAiBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CA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,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,oCAAoC,CAAC,EAC5D,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,oCAAoC,CAAC,EAC5D,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,oCAAoC,CAAC,CAC7D,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FinanceableCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { FinanceableError } from "../models/errors/financeableerror.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
6
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { APIPromise } from "../types/async.js";
|
|
9
|
+
import { Result } from "../types/fp.js";
|
|
10
|
+
/**
|
|
11
|
+
* List all applications from the tenant. This endpoint does not support the 'include' query parameter; relationships must be fetched via the 'Get Application' endpoint.
|
|
12
|
+
*/
|
|
13
|
+
export declare function applicationsList(client: FinanceableCore, request: operations.ListApplicationsRequest, options?: RequestOptions): APIPromise<Result<operations.ListApplicationsResponse, FinanceableError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
14
|
+
//# sourceMappingURL=applicationsList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applicationsList.d.ts","sourceRoot":"","sources":["../src/funcs/applicationsList.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,wBAAwB,EACjC,gBAAgB,GAChB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.applicationsList = applicationsList;
|
|
40
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
42
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
43
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
44
|
+
const security_js_1 = require("../lib/security.js");
|
|
45
|
+
const url_js_1 = require("../lib/url.js");
|
|
46
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
47
|
+
const async_js_1 = require("../types/async.js");
|
|
48
|
+
/**
|
|
49
|
+
* List all applications from the tenant. This endpoint does not support the 'include' query parameter; relationships must be fetched via the 'Get Application' endpoint.
|
|
50
|
+
*/
|
|
51
|
+
function applicationsList(client, request, options) {
|
|
52
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
53
|
+
}
|
|
54
|
+
async function $do(client, request, options) {
|
|
55
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.ListApplicationsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
56
|
+
if (!parsed.ok) {
|
|
57
|
+
return [parsed, { status: "invalid" }];
|
|
58
|
+
}
|
|
59
|
+
const payload = parsed.value;
|
|
60
|
+
const body = null;
|
|
61
|
+
const path = (0, url_js_1.pathToFunc)("/applications")();
|
|
62
|
+
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
63
|
+
"page[number]": payload["page[number]"],
|
|
64
|
+
"page[size]": payload["page[size]"],
|
|
65
|
+
}, { explode: false });
|
|
66
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
67
|
+
Accept: "application/json",
|
|
68
|
+
}));
|
|
69
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.clientCredentials);
|
|
70
|
+
const securityInput = secConfig == null
|
|
71
|
+
? {}
|
|
72
|
+
: { clientCredentials: secConfig };
|
|
73
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
74
|
+
const context = {
|
|
75
|
+
options: client._options,
|
|
76
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
77
|
+
operationID: "listApplications",
|
|
78
|
+
oAuth2Scopes: null,
|
|
79
|
+
resolvedSecurity: requestSecurity,
|
|
80
|
+
securitySource: client._options.clientCredentials,
|
|
81
|
+
retryConfig: options?.retries
|
|
82
|
+
|| client._options.retryConfig
|
|
83
|
+
|| { strategy: "none" },
|
|
84
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
85
|
+
};
|
|
86
|
+
const requestRes = client._createRequest(context, {
|
|
87
|
+
security: requestSecurity,
|
|
88
|
+
method: "GET",
|
|
89
|
+
baseURL: options?.serverURL,
|
|
90
|
+
path: path,
|
|
91
|
+
headers: headers,
|
|
92
|
+
query: query,
|
|
93
|
+
body: body,
|
|
94
|
+
userAgent: client._options.userAgent,
|
|
95
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
96
|
+
}, options);
|
|
97
|
+
if (!requestRes.ok) {
|
|
98
|
+
return [requestRes, { status: "invalid" }];
|
|
99
|
+
}
|
|
100
|
+
const req = requestRes.value;
|
|
101
|
+
const doResult = await client._do(req, {
|
|
102
|
+
context,
|
|
103
|
+
errorCodes: [],
|
|
104
|
+
retryConfig: context.retryConfig,
|
|
105
|
+
retryCodes: context.retryCodes,
|
|
106
|
+
});
|
|
107
|
+
if (!doResult.ok) {
|
|
108
|
+
return [doResult, { status: "request-error", request: req }];
|
|
109
|
+
}
|
|
110
|
+
const response = doResult.value;
|
|
111
|
+
const [result] = await M.match(M.json(200, operations.ListApplicationsResponse$inboundSchema), M.json(403, operations.ListApplicationsResponse$inboundSchema), M.json(404, operations.ListApplicationsResponse$inboundSchema))(response, req);
|
|
112
|
+
if (!result.ok) {
|
|
113
|
+
return [result, { status: "complete", request: req, response }];
|
|
114
|
+
}
|
|
115
|
+
return [result, { status: "complete", request: req, response }];
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=applicationsList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applicationsList.js","sourceRoot":"","sources":["../src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A: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "0.4.0";
|
|
34
|
-
readonly sdkVersion: "0.
|
|
35
|
-
readonly genVersion: "2.
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.
|
|
34
|
+
readonly sdkVersion: "0.12.0";
|
|
35
|
+
readonly genVersion: "2.735.1";
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.12.0 2.735.1 0.4.0 @financeable/aggregation";
|
|
37
37
|
};
|
|
38
38
|
//# 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.
|
|
32
|
-
genVersion: "2.
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
31
|
+
sdkVersion: "0.12.0",
|
|
32
|
+
genVersion: "2.735.1",
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 0.12.0 2.735.1 0.4.0 @financeable/aggregation",
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=config.js.map
|
|
@@ -4,9 +4,9 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
5
|
import { AddressAttributes, AddressAttributes$Outbound } from "./addressattributes.js";
|
|
6
6
|
import { CustomerAssetAttributes, CustomerAssetAttributes$Outbound } from "./customerassetattributes.js";
|
|
7
|
-
import {
|
|
7
|
+
import { CustomerAttributesCreateItem, CustomerAttributesCreateItem$Outbound } from "./customerattributescreateitem.js";
|
|
8
8
|
import { CustomerLiabilityAttributes, CustomerLiabilityAttributes$Outbound } from "./customerliabilityattributes.js";
|
|
9
|
-
import {
|
|
9
|
+
import { EntityAttributesInput, EntityAttributesInput$Outbound } from "./entityattributesinput.js";
|
|
10
10
|
import { LinkObject, LinkObject$Outbound } from "./linkobject.js";
|
|
11
11
|
import { LoanDetailsAttributes, LoanDetailsAttributes$Outbound } from "./loandetailsattributes.js";
|
|
12
12
|
export declare const BusinessLoanBusinessApplicationRelationshipsType: {
|
|
@@ -94,7 +94,7 @@ export type BusinessLoanBusinessApplicationRelationshipsCustomersData = {
|
|
|
94
94
|
/**
|
|
95
95
|
* A customer of the proposed financing
|
|
96
96
|
*/
|
|
97
|
-
attributes:
|
|
97
|
+
attributes: CustomerAttributesCreateItem;
|
|
98
98
|
relationships?: BusinessLoanBusinessApplicationRelationshipsRelationships | undefined;
|
|
99
99
|
links?: {
|
|
100
100
|
[k: string]: LinkObject;
|
|
@@ -110,9 +110,9 @@ export declare const BusinessLoanBusinessApplicationRelationshipsEntitiesType: {
|
|
|
110
110
|
readonly Entities: "entities";
|
|
111
111
|
};
|
|
112
112
|
export type BusinessLoanBusinessApplicationRelationshipsEntitiesType = ClosedEnum<typeof BusinessLoanBusinessApplicationRelationshipsEntitiesType>;
|
|
113
|
-
export type
|
|
113
|
+
export type BusinessLoanBusinessApplicationRelationshipsDataInput = {
|
|
114
114
|
type: BusinessLoanBusinessApplicationRelationshipsEntitiesType;
|
|
115
|
-
attributes:
|
|
115
|
+
attributes: EntityAttributesInput;
|
|
116
116
|
links?: {
|
|
117
117
|
[k: string]: LinkObject;
|
|
118
118
|
} | undefined;
|
|
@@ -121,7 +121,7 @@ export type BusinessLoanBusinessApplicationRelationshipsEntitiesData = {
|
|
|
121
121
|
} | undefined;
|
|
122
122
|
};
|
|
123
123
|
export type BusinessLoanBusinessApplicationRelationshipsEntities = {
|
|
124
|
-
data: Array<
|
|
124
|
+
data: Array<BusinessLoanBusinessApplicationRelationshipsDataInput>;
|
|
125
125
|
};
|
|
126
126
|
export type BusinessLoanBusinessApplicationRelationships = {
|
|
127
127
|
loanDetails?: BusinessLoanBusinessApplicationRelationshipsLoanDetails | undefined;
|
|
@@ -451,7 +451,7 @@ export declare const BusinessLoanBusinessApplicationRelationshipsCustomersData$i
|
|
|
451
451
|
/** @internal */
|
|
452
452
|
export type BusinessLoanBusinessApplicationRelationshipsCustomersData$Outbound = {
|
|
453
453
|
type: string;
|
|
454
|
-
attributes:
|
|
454
|
+
attributes: CustomerAttributesCreateItem$Outbound;
|
|
455
455
|
relationships?: BusinessLoanBusinessApplicationRelationshipsRelationships$Outbound | undefined;
|
|
456
456
|
links?: {
|
|
457
457
|
[k: string]: LinkObject$Outbound;
|
|
@@ -517,11 +517,11 @@ export declare namespace BusinessLoanBusinessApplicationRelationshipsEntitiesTyp
|
|
|
517
517
|
}>;
|
|
518
518
|
}
|
|
519
519
|
/** @internal */
|
|
520
|
-
export declare const
|
|
520
|
+
export declare const BusinessLoanBusinessApplicationRelationshipsDataInput$inboundSchema: z.ZodType<BusinessLoanBusinessApplicationRelationshipsDataInput, z.ZodTypeDef, unknown>;
|
|
521
521
|
/** @internal */
|
|
522
|
-
export type
|
|
522
|
+
export type BusinessLoanBusinessApplicationRelationshipsDataInput$Outbound = {
|
|
523
523
|
type: string;
|
|
524
|
-
attributes:
|
|
524
|
+
attributes: EntityAttributesInput$Outbound;
|
|
525
525
|
links?: {
|
|
526
526
|
[k: string]: LinkObject$Outbound;
|
|
527
527
|
} | undefined;
|
|
@@ -530,26 +530,26 @@ export type BusinessLoanBusinessApplicationRelationshipsEntitiesData$Outbound =
|
|
|
530
530
|
} | undefined;
|
|
531
531
|
};
|
|
532
532
|
/** @internal */
|
|
533
|
-
export declare const
|
|
533
|
+
export declare const BusinessLoanBusinessApplicationRelationshipsDataInput$outboundSchema: z.ZodType<BusinessLoanBusinessApplicationRelationshipsDataInput$Outbound, z.ZodTypeDef, BusinessLoanBusinessApplicationRelationshipsDataInput>;
|
|
534
534
|
/**
|
|
535
535
|
* @internal
|
|
536
536
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
537
537
|
*/
|
|
538
|
-
export declare namespace
|
|
539
|
-
/** @deprecated use `
|
|
540
|
-
const inboundSchema: z.ZodType<
|
|
541
|
-
/** @deprecated use `
|
|
542
|
-
const outboundSchema: z.ZodType<
|
|
543
|
-
/** @deprecated use `
|
|
544
|
-
type Outbound =
|
|
538
|
+
export declare namespace BusinessLoanBusinessApplicationRelationshipsDataInput$ {
|
|
539
|
+
/** @deprecated use `BusinessLoanBusinessApplicationRelationshipsDataInput$inboundSchema` instead. */
|
|
540
|
+
const inboundSchema: z.ZodType<BusinessLoanBusinessApplicationRelationshipsDataInput, z.ZodTypeDef, unknown>;
|
|
541
|
+
/** @deprecated use `BusinessLoanBusinessApplicationRelationshipsDataInput$outboundSchema` instead. */
|
|
542
|
+
const outboundSchema: z.ZodType<BusinessLoanBusinessApplicationRelationshipsDataInput$Outbound, z.ZodTypeDef, BusinessLoanBusinessApplicationRelationshipsDataInput>;
|
|
543
|
+
/** @deprecated use `BusinessLoanBusinessApplicationRelationshipsDataInput$Outbound` instead. */
|
|
544
|
+
type Outbound = BusinessLoanBusinessApplicationRelationshipsDataInput$Outbound;
|
|
545
545
|
}
|
|
546
|
-
export declare function
|
|
547
|
-
export declare function
|
|
546
|
+
export declare function businessLoanBusinessApplicationRelationshipsDataInputToJSON(businessLoanBusinessApplicationRelationshipsDataInput: BusinessLoanBusinessApplicationRelationshipsDataInput): string;
|
|
547
|
+
export declare function businessLoanBusinessApplicationRelationshipsDataInputFromJSON(jsonString: string): SafeParseResult<BusinessLoanBusinessApplicationRelationshipsDataInput, SDKValidationError>;
|
|
548
548
|
/** @internal */
|
|
549
549
|
export declare const BusinessLoanBusinessApplicationRelationshipsEntities$inboundSchema: z.ZodType<BusinessLoanBusinessApplicationRelationshipsEntities, z.ZodTypeDef, unknown>;
|
|
550
550
|
/** @internal */
|
|
551
551
|
export type BusinessLoanBusinessApplicationRelationshipsEntities$Outbound = {
|
|
552
|
-
data: Array<
|
|
552
|
+
data: Array<BusinessLoanBusinessApplicationRelationshipsDataInput$Outbound>;
|
|
553
553
|
};
|
|
554
554
|
/** @internal */
|
|
555
555
|
export declare const BusinessLoanBusinessApplicationRelationshipsEntities$outboundSchema: z.ZodType<BusinessLoanBusinessApplicationRelationshipsEntities$Outbound, z.ZodTypeDef, BusinessLoanBusinessApplicationRelationshipsEntities>;
|