@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,170 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { FinanceableCore } from "../core.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import { FinanceableError } from "../models/errors/financeableerror.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
22
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
+
import * as operations from "../models/operations/index.js";
|
|
24
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
25
|
+
import { Result } from "../types/fp.js";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Retrieve a specific application from the Financeable platform.
|
|
29
|
+
*/
|
|
30
|
+
export function applicationsGet(
|
|
31
|
+
client: FinanceableCore,
|
|
32
|
+
request: operations.GetApplicationRequest,
|
|
33
|
+
options?: RequestOptions,
|
|
34
|
+
): APIPromise<
|
|
35
|
+
Result<
|
|
36
|
+
operations.GetApplicationResponse,
|
|
37
|
+
| FinanceableError
|
|
38
|
+
| ResponseValidationError
|
|
39
|
+
| ConnectionError
|
|
40
|
+
| RequestAbortedError
|
|
41
|
+
| RequestTimeoutError
|
|
42
|
+
| InvalidRequestError
|
|
43
|
+
| UnexpectedClientError
|
|
44
|
+
| SDKValidationError
|
|
45
|
+
>
|
|
46
|
+
> {
|
|
47
|
+
return new APIPromise($do(
|
|
48
|
+
client,
|
|
49
|
+
request,
|
|
50
|
+
options,
|
|
51
|
+
));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
async function $do(
|
|
55
|
+
client: FinanceableCore,
|
|
56
|
+
request: operations.GetApplicationRequest,
|
|
57
|
+
options?: RequestOptions,
|
|
58
|
+
): Promise<
|
|
59
|
+
[
|
|
60
|
+
Result<
|
|
61
|
+
operations.GetApplicationResponse,
|
|
62
|
+
| FinanceableError
|
|
63
|
+
| ResponseValidationError
|
|
64
|
+
| ConnectionError
|
|
65
|
+
| RequestAbortedError
|
|
66
|
+
| RequestTimeoutError
|
|
67
|
+
| InvalidRequestError
|
|
68
|
+
| UnexpectedClientError
|
|
69
|
+
| SDKValidationError
|
|
70
|
+
>,
|
|
71
|
+
APICall,
|
|
72
|
+
]
|
|
73
|
+
> {
|
|
74
|
+
const parsed = safeParse(
|
|
75
|
+
request,
|
|
76
|
+
(value) => operations.GetApplicationRequest$outboundSchema.parse(value),
|
|
77
|
+
"Input validation failed",
|
|
78
|
+
);
|
|
79
|
+
if (!parsed.ok) {
|
|
80
|
+
return [parsed, { status: "invalid" }];
|
|
81
|
+
}
|
|
82
|
+
const payload = parsed.value;
|
|
83
|
+
const body = null;
|
|
84
|
+
|
|
85
|
+
const pathParams = {
|
|
86
|
+
id: encodeSimple("id", payload.id, {
|
|
87
|
+
explode: false,
|
|
88
|
+
charEncoding: "percent",
|
|
89
|
+
}),
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
const path = pathToFunc("/applications/{id}")(pathParams);
|
|
93
|
+
|
|
94
|
+
const query = encodeFormQuery({
|
|
95
|
+
"include": payload.include,
|
|
96
|
+
}, { explode: false });
|
|
97
|
+
|
|
98
|
+
const headers = new Headers(compactMap({
|
|
99
|
+
Accept: "application/json",
|
|
100
|
+
}));
|
|
101
|
+
|
|
102
|
+
const secConfig = await extractSecurity(client._options.clientCredentials);
|
|
103
|
+
const securityInput = secConfig == null
|
|
104
|
+
? {}
|
|
105
|
+
: { clientCredentials: secConfig };
|
|
106
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
107
|
+
|
|
108
|
+
const context = {
|
|
109
|
+
options: client._options,
|
|
110
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
111
|
+
operationID: "getApplication",
|
|
112
|
+
oAuth2Scopes: null,
|
|
113
|
+
|
|
114
|
+
resolvedSecurity: requestSecurity,
|
|
115
|
+
|
|
116
|
+
securitySource: client._options.clientCredentials,
|
|
117
|
+
retryConfig: options?.retries
|
|
118
|
+
|| client._options.retryConfig
|
|
119
|
+
|| { strategy: "none" },
|
|
120
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
const requestRes = client._createRequest(context, {
|
|
124
|
+
security: requestSecurity,
|
|
125
|
+
method: "GET",
|
|
126
|
+
baseURL: options?.serverURL,
|
|
127
|
+
path: path,
|
|
128
|
+
headers: headers,
|
|
129
|
+
query: query,
|
|
130
|
+
body: body,
|
|
131
|
+
userAgent: client._options.userAgent,
|
|
132
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
133
|
+
}, options);
|
|
134
|
+
if (!requestRes.ok) {
|
|
135
|
+
return [requestRes, { status: "invalid" }];
|
|
136
|
+
}
|
|
137
|
+
const req = requestRes.value;
|
|
138
|
+
|
|
139
|
+
const doResult = await client._do(req, {
|
|
140
|
+
context,
|
|
141
|
+
errorCodes: [],
|
|
142
|
+
retryConfig: context.retryConfig,
|
|
143
|
+
retryCodes: context.retryCodes,
|
|
144
|
+
});
|
|
145
|
+
if (!doResult.ok) {
|
|
146
|
+
return [doResult, { status: "request-error", request: req }];
|
|
147
|
+
}
|
|
148
|
+
const response = doResult.value;
|
|
149
|
+
|
|
150
|
+
const [result] = await M.match<
|
|
151
|
+
operations.GetApplicationResponse,
|
|
152
|
+
| FinanceableError
|
|
153
|
+
| ResponseValidationError
|
|
154
|
+
| ConnectionError
|
|
155
|
+
| RequestAbortedError
|
|
156
|
+
| RequestTimeoutError
|
|
157
|
+
| InvalidRequestError
|
|
158
|
+
| UnexpectedClientError
|
|
159
|
+
| SDKValidationError
|
|
160
|
+
>(
|
|
161
|
+
M.json(200, operations.GetApplicationResponse$inboundSchema),
|
|
162
|
+
M.json(403, operations.GetApplicationResponse$inboundSchema),
|
|
163
|
+
M.json(404, operations.GetApplicationResponse$inboundSchema),
|
|
164
|
+
)(response, req);
|
|
165
|
+
if (!result.ok) {
|
|
166
|
+
return [result, { status: "complete", request: req, response }];
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
return [result, { status: "complete", request: req, response }];
|
|
170
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { FinanceableCore } from "../core.js";
|
|
6
|
+
import { encodeFormQuery } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import { FinanceableError } from "../models/errors/financeableerror.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
22
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
+
import * as operations from "../models/operations/index.js";
|
|
24
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
25
|
+
import { Result } from "../types/fp.js";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* List all applications from the tenant. This endpoint does not support the 'include' query parameter; relationships must be fetched via the 'Get Application' endpoint.
|
|
29
|
+
*/
|
|
30
|
+
export function applicationsList(
|
|
31
|
+
client: FinanceableCore,
|
|
32
|
+
request: operations.ListApplicationsRequest,
|
|
33
|
+
options?: RequestOptions,
|
|
34
|
+
): APIPromise<
|
|
35
|
+
Result<
|
|
36
|
+
operations.ListApplicationsResponse,
|
|
37
|
+
| FinanceableError
|
|
38
|
+
| ResponseValidationError
|
|
39
|
+
| ConnectionError
|
|
40
|
+
| RequestAbortedError
|
|
41
|
+
| RequestTimeoutError
|
|
42
|
+
| InvalidRequestError
|
|
43
|
+
| UnexpectedClientError
|
|
44
|
+
| SDKValidationError
|
|
45
|
+
>
|
|
46
|
+
> {
|
|
47
|
+
return new APIPromise($do(
|
|
48
|
+
client,
|
|
49
|
+
request,
|
|
50
|
+
options,
|
|
51
|
+
));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
async function $do(
|
|
55
|
+
client: FinanceableCore,
|
|
56
|
+
request: operations.ListApplicationsRequest,
|
|
57
|
+
options?: RequestOptions,
|
|
58
|
+
): Promise<
|
|
59
|
+
[
|
|
60
|
+
Result<
|
|
61
|
+
operations.ListApplicationsResponse,
|
|
62
|
+
| FinanceableError
|
|
63
|
+
| ResponseValidationError
|
|
64
|
+
| ConnectionError
|
|
65
|
+
| RequestAbortedError
|
|
66
|
+
| RequestTimeoutError
|
|
67
|
+
| InvalidRequestError
|
|
68
|
+
| UnexpectedClientError
|
|
69
|
+
| SDKValidationError
|
|
70
|
+
>,
|
|
71
|
+
APICall,
|
|
72
|
+
]
|
|
73
|
+
> {
|
|
74
|
+
const parsed = safeParse(
|
|
75
|
+
request,
|
|
76
|
+
(value) => operations.ListApplicationsRequest$outboundSchema.parse(value),
|
|
77
|
+
"Input validation failed",
|
|
78
|
+
);
|
|
79
|
+
if (!parsed.ok) {
|
|
80
|
+
return [parsed, { status: "invalid" }];
|
|
81
|
+
}
|
|
82
|
+
const payload = parsed.value;
|
|
83
|
+
const body = null;
|
|
84
|
+
|
|
85
|
+
const path = pathToFunc("/applications")();
|
|
86
|
+
|
|
87
|
+
const query = encodeFormQuery({
|
|
88
|
+
"page[number]": payload["page[number]"],
|
|
89
|
+
"page[size]": payload["page[size]"],
|
|
90
|
+
}, { explode: false });
|
|
91
|
+
|
|
92
|
+
const headers = new Headers(compactMap({
|
|
93
|
+
Accept: "application/json",
|
|
94
|
+
}));
|
|
95
|
+
|
|
96
|
+
const secConfig = await extractSecurity(client._options.clientCredentials);
|
|
97
|
+
const securityInput = secConfig == null
|
|
98
|
+
? {}
|
|
99
|
+
: { clientCredentials: secConfig };
|
|
100
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
101
|
+
|
|
102
|
+
const context = {
|
|
103
|
+
options: client._options,
|
|
104
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
105
|
+
operationID: "listApplications",
|
|
106
|
+
oAuth2Scopes: null,
|
|
107
|
+
|
|
108
|
+
resolvedSecurity: requestSecurity,
|
|
109
|
+
|
|
110
|
+
securitySource: client._options.clientCredentials,
|
|
111
|
+
retryConfig: options?.retries
|
|
112
|
+
|| client._options.retryConfig
|
|
113
|
+
|| { strategy: "none" },
|
|
114
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
const requestRes = client._createRequest(context, {
|
|
118
|
+
security: requestSecurity,
|
|
119
|
+
method: "GET",
|
|
120
|
+
baseURL: options?.serverURL,
|
|
121
|
+
path: path,
|
|
122
|
+
headers: headers,
|
|
123
|
+
query: query,
|
|
124
|
+
body: body,
|
|
125
|
+
userAgent: client._options.userAgent,
|
|
126
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
127
|
+
}, options);
|
|
128
|
+
if (!requestRes.ok) {
|
|
129
|
+
return [requestRes, { status: "invalid" }];
|
|
130
|
+
}
|
|
131
|
+
const req = requestRes.value;
|
|
132
|
+
|
|
133
|
+
const doResult = await client._do(req, {
|
|
134
|
+
context,
|
|
135
|
+
errorCodes: [],
|
|
136
|
+
retryConfig: context.retryConfig,
|
|
137
|
+
retryCodes: context.retryCodes,
|
|
138
|
+
});
|
|
139
|
+
if (!doResult.ok) {
|
|
140
|
+
return [doResult, { status: "request-error", request: req }];
|
|
141
|
+
}
|
|
142
|
+
const response = doResult.value;
|
|
143
|
+
|
|
144
|
+
const [result] = await M.match<
|
|
145
|
+
operations.ListApplicationsResponse,
|
|
146
|
+
| FinanceableError
|
|
147
|
+
| ResponseValidationError
|
|
148
|
+
| ConnectionError
|
|
149
|
+
| RequestAbortedError
|
|
150
|
+
| RequestTimeoutError
|
|
151
|
+
| InvalidRequestError
|
|
152
|
+
| UnexpectedClientError
|
|
153
|
+
| SDKValidationError
|
|
154
|
+
>(
|
|
155
|
+
M.json(200, operations.ListApplicationsResponse$inboundSchema),
|
|
156
|
+
M.json(403, operations.ListApplicationsResponse$inboundSchema),
|
|
157
|
+
M.json(404, operations.ListApplicationsResponse$inboundSchema),
|
|
158
|
+
)(response, req);
|
|
159
|
+
if (!result.ok) {
|
|
160
|
+
return [result, { status: "complete", request: req, response }];
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
return [result, { status: "complete", request: req, response }];
|
|
164
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -58,8 +58,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
58
58
|
export const SDK_METADATA = {
|
|
59
59
|
language: "typescript",
|
|
60
60
|
openapiDocVersion: "0.4.0",
|
|
61
|
-
sdkVersion: "0.
|
|
62
|
-
genVersion: "2.
|
|
61
|
+
sdkVersion: "0.12.0",
|
|
62
|
+
genVersion: "2.735.1",
|
|
63
63
|
userAgent:
|
|
64
|
-
"speakeasy-sdk/typescript 0.
|
|
64
|
+
"speakeasy-sdk/typescript 0.12.0 2.735.1 0.4.0 @financeable/aggregation",
|
|
65
65
|
} as const;
|
|
@@ -20,11 +20,11 @@ import {
|
|
|
20
20
|
CustomerAssetAttributes$outboundSchema,
|
|
21
21
|
} from "./customerassetattributes.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
23
|
+
CustomerAttributesCreateItem,
|
|
24
|
+
CustomerAttributesCreateItem$inboundSchema,
|
|
25
|
+
CustomerAttributesCreateItem$Outbound,
|
|
26
|
+
CustomerAttributesCreateItem$outboundSchema,
|
|
27
|
+
} from "./customerattributescreateitem.js";
|
|
28
28
|
import {
|
|
29
29
|
CustomerLiabilityAttributes,
|
|
30
30
|
CustomerLiabilityAttributes$inboundSchema,
|
|
@@ -32,11 +32,11 @@ import {
|
|
|
32
32
|
CustomerLiabilityAttributes$outboundSchema,
|
|
33
33
|
} from "./customerliabilityattributes.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} from "./
|
|
35
|
+
EntityAttributesInput,
|
|
36
|
+
EntityAttributesInput$inboundSchema,
|
|
37
|
+
EntityAttributesInput$Outbound,
|
|
38
|
+
EntityAttributesInput$outboundSchema,
|
|
39
|
+
} from "./entityattributesinput.js";
|
|
40
40
|
import {
|
|
41
41
|
LinkObject,
|
|
42
42
|
LinkObject$inboundSchema,
|
|
@@ -157,7 +157,7 @@ export type BusinessLoanBusinessApplicationRelationshipsCustomersData = {
|
|
|
157
157
|
/**
|
|
158
158
|
* A customer of the proposed financing
|
|
159
159
|
*/
|
|
160
|
-
attributes:
|
|
160
|
+
attributes: CustomerAttributesCreateItem;
|
|
161
161
|
relationships?:
|
|
162
162
|
| BusinessLoanBusinessApplicationRelationshipsRelationships
|
|
163
163
|
| undefined;
|
|
@@ -175,15 +175,15 @@ export const BusinessLoanBusinessApplicationRelationshipsEntitiesType = {
|
|
|
175
175
|
export type BusinessLoanBusinessApplicationRelationshipsEntitiesType =
|
|
176
176
|
ClosedEnum<typeof BusinessLoanBusinessApplicationRelationshipsEntitiesType>;
|
|
177
177
|
|
|
178
|
-
export type
|
|
178
|
+
export type BusinessLoanBusinessApplicationRelationshipsDataInput = {
|
|
179
179
|
type: BusinessLoanBusinessApplicationRelationshipsEntitiesType;
|
|
180
|
-
attributes:
|
|
180
|
+
attributes: EntityAttributesInput;
|
|
181
181
|
links?: { [k: string]: LinkObject } | undefined;
|
|
182
182
|
meta?: { [k: string]: any } | undefined;
|
|
183
183
|
};
|
|
184
184
|
|
|
185
185
|
export type BusinessLoanBusinessApplicationRelationshipsEntities = {
|
|
186
|
-
data: Array<
|
|
186
|
+
data: Array<BusinessLoanBusinessApplicationRelationshipsDataInput>;
|
|
187
187
|
};
|
|
188
188
|
|
|
189
189
|
export type BusinessLoanBusinessApplicationRelationships = {
|
|
@@ -1043,7 +1043,7 @@ export const BusinessLoanBusinessApplicationRelationshipsCustomersData$inboundSc
|
|
|
1043
1043
|
> = z.object({
|
|
1044
1044
|
type:
|
|
1045
1045
|
BusinessLoanBusinessApplicationRelationshipsCustomersType$inboundSchema,
|
|
1046
|
-
attributes:
|
|
1046
|
+
attributes: CustomerAttributesCreateItem$inboundSchema,
|
|
1047
1047
|
relationships: z.lazy(() =>
|
|
1048
1048
|
BusinessLoanBusinessApplicationRelationshipsRelationships$inboundSchema
|
|
1049
1049
|
).optional(),
|
|
@@ -1055,7 +1055,7 @@ export const BusinessLoanBusinessApplicationRelationshipsCustomersData$inboundSc
|
|
|
1055
1055
|
export type BusinessLoanBusinessApplicationRelationshipsCustomersData$Outbound =
|
|
1056
1056
|
{
|
|
1057
1057
|
type: string;
|
|
1058
|
-
attributes:
|
|
1058
|
+
attributes: CustomerAttributesCreateItem$Outbound;
|
|
1059
1059
|
relationships?:
|
|
1060
1060
|
| BusinessLoanBusinessApplicationRelationshipsRelationships$Outbound
|
|
1061
1061
|
| undefined;
|
|
@@ -1072,7 +1072,7 @@ export const BusinessLoanBusinessApplicationRelationshipsCustomersData$outboundS
|
|
|
1072
1072
|
> = z.object({
|
|
1073
1073
|
type:
|
|
1074
1074
|
BusinessLoanBusinessApplicationRelationshipsCustomersType$outboundSchema,
|
|
1075
|
-
attributes:
|
|
1075
|
+
attributes: CustomerAttributesCreateItem$outboundSchema,
|
|
1076
1076
|
relationships: z.lazy(() =>
|
|
1077
1077
|
BusinessLoanBusinessApplicationRelationshipsRelationships$outboundSchema
|
|
1078
1078
|
).optional(),
|
|
@@ -1225,38 +1225,37 @@ export namespace BusinessLoanBusinessApplicationRelationshipsEntitiesType$ {
|
|
|
1225
1225
|
}
|
|
1226
1226
|
|
|
1227
1227
|
/** @internal */
|
|
1228
|
-
export const
|
|
1228
|
+
export const BusinessLoanBusinessApplicationRelationshipsDataInput$inboundSchema:
|
|
1229
1229
|
z.ZodType<
|
|
1230
|
-
|
|
1230
|
+
BusinessLoanBusinessApplicationRelationshipsDataInput,
|
|
1231
1231
|
z.ZodTypeDef,
|
|
1232
1232
|
unknown
|
|
1233
1233
|
> = z.object({
|
|
1234
1234
|
type:
|
|
1235
1235
|
BusinessLoanBusinessApplicationRelationshipsEntitiesType$inboundSchema,
|
|
1236
|
-
attributes:
|
|
1236
|
+
attributes: EntityAttributesInput$inboundSchema,
|
|
1237
1237
|
links: z.record(LinkObject$inboundSchema).optional(),
|
|
1238
1238
|
meta: z.record(z.any()).optional(),
|
|
1239
1239
|
});
|
|
1240
1240
|
|
|
1241
1241
|
/** @internal */
|
|
1242
|
-
export type
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
};
|
|
1242
|
+
export type BusinessLoanBusinessApplicationRelationshipsDataInput$Outbound = {
|
|
1243
|
+
type: string;
|
|
1244
|
+
attributes: EntityAttributesInput$Outbound;
|
|
1245
|
+
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
1246
|
+
meta?: { [k: string]: any } | undefined;
|
|
1247
|
+
};
|
|
1249
1248
|
|
|
1250
1249
|
/** @internal */
|
|
1251
|
-
export const
|
|
1250
|
+
export const BusinessLoanBusinessApplicationRelationshipsDataInput$outboundSchema:
|
|
1252
1251
|
z.ZodType<
|
|
1253
|
-
|
|
1252
|
+
BusinessLoanBusinessApplicationRelationshipsDataInput$Outbound,
|
|
1254
1253
|
z.ZodTypeDef,
|
|
1255
|
-
|
|
1254
|
+
BusinessLoanBusinessApplicationRelationshipsDataInput
|
|
1256
1255
|
> = z.object({
|
|
1257
1256
|
type:
|
|
1258
1257
|
BusinessLoanBusinessApplicationRelationshipsEntitiesType$outboundSchema,
|
|
1259
|
-
attributes:
|
|
1258
|
+
attributes: EntityAttributesInput$outboundSchema,
|
|
1260
1259
|
links: z.record(LinkObject$outboundSchema).optional(),
|
|
1261
1260
|
meta: z.record(z.any()).optional(),
|
|
1262
1261
|
});
|
|
@@ -1265,40 +1264,42 @@ export const BusinessLoanBusinessApplicationRelationshipsEntitiesData$outboundSc
|
|
|
1265
1264
|
* @internal
|
|
1266
1265
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1267
1266
|
*/
|
|
1268
|
-
export namespace
|
|
1269
|
-
/** @deprecated use `
|
|
1267
|
+
export namespace BusinessLoanBusinessApplicationRelationshipsDataInput$ {
|
|
1268
|
+
/** @deprecated use `BusinessLoanBusinessApplicationRelationshipsDataInput$inboundSchema` instead. */
|
|
1270
1269
|
export const inboundSchema =
|
|
1271
|
-
|
|
1272
|
-
/** @deprecated use `
|
|
1270
|
+
BusinessLoanBusinessApplicationRelationshipsDataInput$inboundSchema;
|
|
1271
|
+
/** @deprecated use `BusinessLoanBusinessApplicationRelationshipsDataInput$outboundSchema` instead. */
|
|
1273
1272
|
export const outboundSchema =
|
|
1274
|
-
|
|
1275
|
-
/** @deprecated use `
|
|
1273
|
+
BusinessLoanBusinessApplicationRelationshipsDataInput$outboundSchema;
|
|
1274
|
+
/** @deprecated use `BusinessLoanBusinessApplicationRelationshipsDataInput$Outbound` instead. */
|
|
1276
1275
|
export type Outbound =
|
|
1277
|
-
|
|
1276
|
+
BusinessLoanBusinessApplicationRelationshipsDataInput$Outbound;
|
|
1278
1277
|
}
|
|
1279
1278
|
|
|
1280
|
-
export function
|
|
1281
|
-
|
|
1282
|
-
|
|
1279
|
+
export function businessLoanBusinessApplicationRelationshipsDataInputToJSON(
|
|
1280
|
+
businessLoanBusinessApplicationRelationshipsDataInput:
|
|
1281
|
+
BusinessLoanBusinessApplicationRelationshipsDataInput,
|
|
1283
1282
|
): string {
|
|
1284
1283
|
return JSON.stringify(
|
|
1285
|
-
|
|
1286
|
-
|
|
1284
|
+
BusinessLoanBusinessApplicationRelationshipsDataInput$outboundSchema.parse(
|
|
1285
|
+
businessLoanBusinessApplicationRelationshipsDataInput,
|
|
1286
|
+
),
|
|
1287
1287
|
);
|
|
1288
1288
|
}
|
|
1289
1289
|
|
|
1290
|
-
export function
|
|
1290
|
+
export function businessLoanBusinessApplicationRelationshipsDataInputFromJSON(
|
|
1291
1291
|
jsonString: string,
|
|
1292
1292
|
): SafeParseResult<
|
|
1293
|
-
|
|
1293
|
+
BusinessLoanBusinessApplicationRelationshipsDataInput,
|
|
1294
1294
|
SDKValidationError
|
|
1295
1295
|
> {
|
|
1296
1296
|
return safeParse(
|
|
1297
1297
|
jsonString,
|
|
1298
1298
|
(x) =>
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1299
|
+
BusinessLoanBusinessApplicationRelationshipsDataInput$inboundSchema.parse(
|
|
1300
|
+
JSON.parse(x),
|
|
1301
|
+
),
|
|
1302
|
+
`Failed to parse 'BusinessLoanBusinessApplicationRelationshipsDataInput' from JSON`,
|
|
1302
1303
|
);
|
|
1303
1304
|
}
|
|
1304
1305
|
|
|
@@ -1311,16 +1312,14 @@ export const BusinessLoanBusinessApplicationRelationshipsEntities$inboundSchema:
|
|
|
1311
1312
|
> = z.object({
|
|
1312
1313
|
data: z.array(
|
|
1313
1314
|
z.lazy(() =>
|
|
1314
|
-
|
|
1315
|
+
BusinessLoanBusinessApplicationRelationshipsDataInput$inboundSchema
|
|
1315
1316
|
),
|
|
1316
1317
|
),
|
|
1317
1318
|
});
|
|
1318
1319
|
|
|
1319
1320
|
/** @internal */
|
|
1320
1321
|
export type BusinessLoanBusinessApplicationRelationshipsEntities$Outbound = {
|
|
1321
|
-
data: Array<
|
|
1322
|
-
BusinessLoanBusinessApplicationRelationshipsEntitiesData$Outbound
|
|
1323
|
-
>;
|
|
1322
|
+
data: Array<BusinessLoanBusinessApplicationRelationshipsDataInput$Outbound>;
|
|
1324
1323
|
};
|
|
1325
1324
|
|
|
1326
1325
|
/** @internal */
|
|
@@ -1332,7 +1331,7 @@ export const BusinessLoanBusinessApplicationRelationshipsEntities$outboundSchema
|
|
|
1332
1331
|
> = z.object({
|
|
1333
1332
|
data: z.array(
|
|
1334
1333
|
z.lazy(() =>
|
|
1335
|
-
|
|
1334
|
+
BusinessLoanBusinessApplicationRelationshipsDataInput$outboundSchema
|
|
1336
1335
|
),
|
|
1337
1336
|
),
|
|
1338
1337
|
});
|