@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.
Files changed (102) hide show
  1. package/README.md +4 -0
  2. package/docs/sdks/applications/README.md +144 -0
  3. package/examples/package-lock.json +1 -1
  4. package/funcs/applicationsGet.d.ts +14 -0
  5. package/funcs/applicationsGet.d.ts.map +1 -0
  6. package/funcs/applicationsGet.js +122 -0
  7. package/funcs/applicationsGet.js.map +1 -0
  8. package/funcs/applicationsList.d.ts +14 -0
  9. package/funcs/applicationsList.d.ts.map +1 -0
  10. package/funcs/applicationsList.js +117 -0
  11. package/funcs/applicationsList.js.map +1 -0
  12. package/lib/config.d.ts +3 -3
  13. package/lib/config.js +3 -3
  14. package/models/components/businessloanbusinessapplicationrelationships.d.ts +21 -21
  15. package/models/components/businessloanbusinessapplicationrelationships.d.ts.map +1 -1
  16. package/models/components/businessloanbusinessapplicationrelationships.js +24 -26
  17. package/models/components/businessloanbusinessapplicationrelationships.js.map +1 -1
  18. package/models/components/commercialapplicationjsonapirelationships.d.ts +15 -15
  19. package/models/components/commercialapplicationjsonapirelationships.d.ts.map +1 -1
  20. package/models/components/commercialapplicationjsonapirelationships.js +18 -18
  21. package/models/components/commercialapplicationjsonapirelationships.js.map +1 -1
  22. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +36 -36
  23. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
  24. package/models/components/commercialsecuredloancommercialapplicationrelationships.js +46 -44
  25. package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
  26. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +3 -3
  27. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
  28. package/models/components/consumersecuredloanconsumerapplicationrelationships.js +3 -3
  29. package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -1
  30. package/models/components/customerattributes.d.ts +0 -22
  31. package/models/components/customerattributes.d.ts.map +1 -1
  32. package/models/components/customerattributes.js +0 -10
  33. package/models/components/customerattributes.js.map +1 -1
  34. package/models/components/customerattributescreateitem.d.ts +112 -0
  35. package/models/components/customerattributescreateitem.d.ts.map +1 -0
  36. package/models/components/customerattributescreateitem.js +110 -0
  37. package/models/components/customerattributescreateitem.js.map +1 -0
  38. package/models/components/entityattributes.d.ts +129 -0
  39. package/models/components/entityattributes.d.ts.map +1 -1
  40. package/models/components/entityattributes.js +71 -1
  41. package/models/components/entityattributes.js.map +1 -1
  42. package/models/components/entityattributesinput.d.ts +41 -0
  43. package/models/components/entityattributesinput.d.ts.map +1 -0
  44. package/models/components/entityattributesinput.js +81 -0
  45. package/models/components/entityattributesinput.js.map +1 -0
  46. package/models/components/index.d.ts +4 -0
  47. package/models/components/index.d.ts.map +1 -1
  48. package/models/components/index.js +4 -0
  49. package/models/components/index.js.map +1 -1
  50. package/models/components/paginationlinks.d.ts +47 -0
  51. package/models/components/paginationlinks.d.ts.map +1 -0
  52. package/models/components/paginationlinks.js +75 -0
  53. package/models/components/paginationlinks.js.map +1 -0
  54. package/models/components/paginationmeta.d.ts +47 -0
  55. package/models/components/paginationmeta.d.ts.map +1 -0
  56. package/models/components/paginationmeta.js +88 -0
  57. package/models/components/paginationmeta.js.map +1 -0
  58. package/models/components/personalloanpersonalapplicationrelationships.d.ts +3 -3
  59. package/models/components/personalloanpersonalapplicationrelationships.d.ts.map +1 -1
  60. package/models/components/personalloanpersonalapplicationrelationships.js +3 -3
  61. package/models/components/personalloanpersonalapplicationrelationships.js.map +1 -1
  62. package/models/operations/createapplication.d.ts +218 -45
  63. package/models/operations/createapplication.d.ts.map +1 -1
  64. package/models/operations/createapplication.js +145 -45
  65. package/models/operations/createapplication.js.map +1 -1
  66. package/models/operations/getapplication.d.ts +703 -0
  67. package/models/operations/getapplication.d.ts.map +1 -0
  68. package/models/operations/getapplication.js +697 -0
  69. package/models/operations/getapplication.js.map +1 -0
  70. package/models/operations/index.d.ts +2 -0
  71. package/models/operations/index.d.ts.map +1 -1
  72. package/models/operations/index.js +2 -0
  73. package/models/operations/index.js.map +1 -1
  74. package/models/operations/listapplications.d.ts +141 -0
  75. package/models/operations/listapplications.d.ts.map +1 -0
  76. package/models/operations/listapplications.js +199 -0
  77. package/models/operations/listapplications.js.map +1 -0
  78. package/package.json +1 -1
  79. package/sdk/applications.d.ts +8 -0
  80. package/sdk/applications.d.ts.map +1 -1
  81. package/sdk/applications.js +14 -0
  82. package/sdk/applications.js.map +1 -1
  83. package/src/funcs/applicationsGet.ts +170 -0
  84. package/src/funcs/applicationsList.ts +164 -0
  85. package/src/lib/config.ts +3 -3
  86. package/src/models/components/businessloanbusinessapplicationrelationships.ts +52 -53
  87. package/src/models/components/commercialapplicationjsonapirelationships.ts +43 -67
  88. package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +114 -94
  89. package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +9 -9
  90. package/src/models/components/customerattributes.ts +0 -38
  91. package/src/models/components/customerattributescreateitem.ts +214 -0
  92. package/src/models/components/entityattributes.ts +134 -0
  93. package/src/models/components/entityattributesinput.ts +90 -0
  94. package/src/models/components/index.ts +4 -0
  95. package/src/models/components/paginationlinks.ts +88 -0
  96. package/src/models/components/paginationmeta.ts +99 -0
  97. package/src/models/components/personalloanpersonalapplicationrelationships.ts +9 -9
  98. package/src/models/operations/createapplication.ts +289 -62
  99. package/src/models/operations/getapplication.ts +1378 -0
  100. package/src/models/operations/index.ts +2 -0
  101. package/src/models/operations/listapplications.ts +364 -0
  102. 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.11.0",
62
- genVersion: "2.730.5",
61
+ sdkVersion: "0.12.0",
62
+ genVersion: "2.735.1",
63
63
  userAgent:
64
- "speakeasy-sdk/typescript 0.11.0 2.730.5 0.4.0 @financeable/aggregation",
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
- CustomerAttributes,
24
- CustomerAttributes$inboundSchema,
25
- CustomerAttributes$Outbound,
26
- CustomerAttributes$outboundSchema,
27
- } from "./customerattributes.js";
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
- EntityAttributes,
36
- EntityAttributes$inboundSchema,
37
- EntityAttributes$Outbound,
38
- EntityAttributes$outboundSchema,
39
- } from "./entityattributes.js";
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: CustomerAttributes;
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 BusinessLoanBusinessApplicationRelationshipsEntitiesData = {
178
+ export type BusinessLoanBusinessApplicationRelationshipsDataInput = {
179
179
  type: BusinessLoanBusinessApplicationRelationshipsEntitiesType;
180
- attributes: EntityAttributes;
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<BusinessLoanBusinessApplicationRelationshipsEntitiesData>;
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: CustomerAttributes$inboundSchema,
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: CustomerAttributes$Outbound;
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: CustomerAttributes$outboundSchema,
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 BusinessLoanBusinessApplicationRelationshipsEntitiesData$inboundSchema:
1228
+ export const BusinessLoanBusinessApplicationRelationshipsDataInput$inboundSchema:
1229
1229
  z.ZodType<
1230
- BusinessLoanBusinessApplicationRelationshipsEntitiesData,
1230
+ BusinessLoanBusinessApplicationRelationshipsDataInput,
1231
1231
  z.ZodTypeDef,
1232
1232
  unknown
1233
1233
  > = z.object({
1234
1234
  type:
1235
1235
  BusinessLoanBusinessApplicationRelationshipsEntitiesType$inboundSchema,
1236
- attributes: EntityAttributes$inboundSchema,
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 BusinessLoanBusinessApplicationRelationshipsEntitiesData$Outbound =
1243
- {
1244
- type: string;
1245
- attributes: EntityAttributes$Outbound;
1246
- links?: { [k: string]: LinkObject$Outbound } | undefined;
1247
- meta?: { [k: string]: any } | undefined;
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 BusinessLoanBusinessApplicationRelationshipsEntitiesData$outboundSchema:
1250
+ export const BusinessLoanBusinessApplicationRelationshipsDataInput$outboundSchema:
1252
1251
  z.ZodType<
1253
- BusinessLoanBusinessApplicationRelationshipsEntitiesData$Outbound,
1252
+ BusinessLoanBusinessApplicationRelationshipsDataInput$Outbound,
1254
1253
  z.ZodTypeDef,
1255
- BusinessLoanBusinessApplicationRelationshipsEntitiesData
1254
+ BusinessLoanBusinessApplicationRelationshipsDataInput
1256
1255
  > = z.object({
1257
1256
  type:
1258
1257
  BusinessLoanBusinessApplicationRelationshipsEntitiesType$outboundSchema,
1259
- attributes: EntityAttributes$outboundSchema,
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 BusinessLoanBusinessApplicationRelationshipsEntitiesData$ {
1269
- /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsEntitiesData$inboundSchema` instead. */
1267
+ export namespace BusinessLoanBusinessApplicationRelationshipsDataInput$ {
1268
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsDataInput$inboundSchema` instead. */
1270
1269
  export const inboundSchema =
1271
- BusinessLoanBusinessApplicationRelationshipsEntitiesData$inboundSchema;
1272
- /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsEntitiesData$outboundSchema` instead. */
1270
+ BusinessLoanBusinessApplicationRelationshipsDataInput$inboundSchema;
1271
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsDataInput$outboundSchema` instead. */
1273
1272
  export const outboundSchema =
1274
- BusinessLoanBusinessApplicationRelationshipsEntitiesData$outboundSchema;
1275
- /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsEntitiesData$Outbound` instead. */
1273
+ BusinessLoanBusinessApplicationRelationshipsDataInput$outboundSchema;
1274
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsDataInput$Outbound` instead. */
1276
1275
  export type Outbound =
1277
- BusinessLoanBusinessApplicationRelationshipsEntitiesData$Outbound;
1276
+ BusinessLoanBusinessApplicationRelationshipsDataInput$Outbound;
1278
1277
  }
1279
1278
 
1280
- export function businessLoanBusinessApplicationRelationshipsEntitiesDataToJSON(
1281
- businessLoanBusinessApplicationRelationshipsEntitiesData:
1282
- BusinessLoanBusinessApplicationRelationshipsEntitiesData,
1279
+ export function businessLoanBusinessApplicationRelationshipsDataInputToJSON(
1280
+ businessLoanBusinessApplicationRelationshipsDataInput:
1281
+ BusinessLoanBusinessApplicationRelationshipsDataInput,
1283
1282
  ): string {
1284
1283
  return JSON.stringify(
1285
- BusinessLoanBusinessApplicationRelationshipsEntitiesData$outboundSchema
1286
- .parse(businessLoanBusinessApplicationRelationshipsEntitiesData),
1284
+ BusinessLoanBusinessApplicationRelationshipsDataInput$outboundSchema.parse(
1285
+ businessLoanBusinessApplicationRelationshipsDataInput,
1286
+ ),
1287
1287
  );
1288
1288
  }
1289
1289
 
1290
- export function businessLoanBusinessApplicationRelationshipsEntitiesDataFromJSON(
1290
+ export function businessLoanBusinessApplicationRelationshipsDataInputFromJSON(
1291
1291
  jsonString: string,
1292
1292
  ): SafeParseResult<
1293
- BusinessLoanBusinessApplicationRelationshipsEntitiesData,
1293
+ BusinessLoanBusinessApplicationRelationshipsDataInput,
1294
1294
  SDKValidationError
1295
1295
  > {
1296
1296
  return safeParse(
1297
1297
  jsonString,
1298
1298
  (x) =>
1299
- BusinessLoanBusinessApplicationRelationshipsEntitiesData$inboundSchema
1300
- .parse(JSON.parse(x)),
1301
- `Failed to parse 'BusinessLoanBusinessApplicationRelationshipsEntitiesData' from JSON`,
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
- BusinessLoanBusinessApplicationRelationshipsEntitiesData$inboundSchema
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
- BusinessLoanBusinessApplicationRelationshipsEntitiesData$outboundSchema
1334
+ BusinessLoanBusinessApplicationRelationshipsDataInput$outboundSchema
1336
1335
  ),
1337
1336
  ),
1338
1337
  });