@financeable/aggregation 0.8.3 → 0.9.1

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 (156) hide show
  1. package/FUNCTIONS.md +153 -36
  2. package/README.md +475 -94
  3. package/docs/sdks/applications/README.md +9 -15
  4. package/docs/sdks/oauthtoken/README.md +5 -9
  5. package/docs/sdks/supportingdocuments/README.md +9 -16
  6. package/funcs/applicationsCreate.d.ts +3 -3
  7. package/funcs/applicationsCreate.d.ts.map +1 -1
  8. package/funcs/applicationsCreate.js +4 -6
  9. package/funcs/applicationsCreate.js.map +1 -1
  10. package/funcs/oauthTokenGet.d.ts +3 -2
  11. package/funcs/oauthTokenGet.d.ts.map +1 -1
  12. package/funcs/oauthTokenGet.js +4 -2
  13. package/funcs/oauthTokenGet.js.map +1 -1
  14. package/funcs/supportingDocumentsCreate.d.ts +3 -3
  15. package/funcs/supportingDocumentsCreate.d.ts.map +1 -1
  16. package/funcs/supportingDocumentsCreate.js +5 -8
  17. package/funcs/supportingDocumentsCreate.js.map +1 -1
  18. package/hooks/types.d.ts +2 -0
  19. package/hooks/types.d.ts.map +1 -1
  20. package/index.d.ts +2 -0
  21. package/index.d.ts.map +1 -1
  22. package/index.js +3 -1
  23. package/index.js.map +1 -1
  24. package/jsr.json +1 -1
  25. package/lib/config.d.ts +7 -3
  26. package/lib/config.d.ts.map +1 -1
  27. package/lib/config.js +3 -3
  28. package/lib/config.js.map +1 -1
  29. package/lib/files.d.ts +5 -0
  30. package/lib/files.d.ts.map +1 -1
  31. package/lib/files.js +41 -0
  32. package/lib/files.js.map +1 -1
  33. package/lib/matchers.d.ts +3 -10
  34. package/lib/matchers.d.ts.map +1 -1
  35. package/lib/matchers.js +33 -31
  36. package/lib/matchers.js.map +1 -1
  37. package/lib/sdks.d.ts +1 -0
  38. package/lib/sdks.d.ts.map +1 -1
  39. package/lib/sdks.js +3 -3
  40. package/lib/sdks.js.map +1 -1
  41. package/lib/security.d.ts +2 -2
  42. package/lib/security.d.ts.map +1 -1
  43. package/models/components/addressattributes.d.ts +8 -8
  44. package/models/components/addressattributes.d.ts.map +1 -1
  45. package/models/components/addressattributes.js +14 -13
  46. package/models/components/addressattributes.js.map +1 -1
  47. package/models/components/badrequesterror.d.ts +24 -24
  48. package/models/components/badrequesterror.d.ts.map +1 -1
  49. package/models/components/badrequesterror.js +37 -38
  50. package/models/components/badrequesterror.js.map +1 -1
  51. package/models/components/commercialsecuredapplicationpayload.d.ts +8 -8
  52. package/models/components/commercialsecuredapplicationpayload.d.ts.map +1 -1
  53. package/models/components/commercialsecuredapplicationpayload.js +13 -14
  54. package/models/components/commercialsecuredapplicationpayload.js.map +1 -1
  55. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +90 -90
  56. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
  57. package/models/components/commercialsecuredloancommercialapplicationrelationships.js +116 -118
  58. package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
  59. package/models/components/customerattributes.d.ts +12 -1
  60. package/models/components/customerattributes.d.ts.map +1 -1
  61. package/models/components/customerattributes.js +5 -0
  62. package/models/components/customerattributes.js.map +1 -1
  63. package/models/components/forbiddenerror.d.ts +16 -16
  64. package/models/components/forbiddenerror.d.ts.map +1 -1
  65. package/models/components/forbiddenerror.js +25 -25
  66. package/models/components/forbiddenerror.js.map +1 -1
  67. package/models/components/loandetailsattributes.d.ts +8 -8
  68. package/models/components/loandetailsattributes.d.ts.map +1 -1
  69. package/models/components/loandetailsattributes.js +8 -8
  70. package/models/components/loandetailsattributes.js.map +1 -1
  71. package/models/components/supportingdocumentrelationships.d.ts +45 -45
  72. package/models/components/supportingdocumentrelationships.d.ts.map +1 -1
  73. package/models/components/supportingdocumentrelationships.js +54 -54
  74. package/models/components/supportingdocumentrelationships.js.map +1 -1
  75. package/models/components/supportingdocumentresource.d.ts +8 -8
  76. package/models/components/supportingdocumentresource.d.ts.map +1 -1
  77. package/models/components/supportingdocumentresource.js +13 -13
  78. package/models/components/supportingdocumentresource.js.map +1 -1
  79. package/models/errors/apierror.d.ts +8 -6
  80. package/models/errors/apierror.d.ts.map +1 -1
  81. package/models/errors/apierror.js +23 -10
  82. package/models/errors/apierror.js.map +1 -1
  83. package/models/errors/financeableerror.d.ts +19 -0
  84. package/models/errors/financeableerror.d.ts.map +1 -0
  85. package/models/errors/financeableerror.js +20 -0
  86. package/models/errors/financeableerror.js.map +1 -0
  87. package/models/errors/index.d.ts +1 -2
  88. package/models/errors/index.d.ts.map +1 -1
  89. package/models/errors/index.js +1 -2
  90. package/models/errors/index.js.map +1 -1
  91. package/models/errors/responsevalidationerror.d.ts +26 -0
  92. package/models/errors/responsevalidationerror.d.ts.map +1 -0
  93. package/models/errors/responsevalidationerror.js +66 -0
  94. package/models/errors/responsevalidationerror.js.map +1 -0
  95. package/models/errors/sdkvalidationerror.d.ts +1 -0
  96. package/models/errors/sdkvalidationerror.d.ts.map +1 -1
  97. package/models/errors/sdkvalidationerror.js +14 -0
  98. package/models/errors/sdkvalidationerror.js.map +1 -1
  99. package/models/operations/createapplication.d.ts +107 -30
  100. package/models/operations/createapplication.d.ts.map +1 -1
  101. package/models/operations/createapplication.js +125 -44
  102. package/models/operations/createapplication.js.map +1 -1
  103. package/models/operations/supportingdocumentscreate.d.ts +144 -0
  104. package/models/operations/supportingdocumentscreate.d.ts.map +1 -1
  105. package/models/operations/supportingdocumentscreate.js +186 -1
  106. package/models/operations/supportingdocumentscreate.js.map +1 -1
  107. package/package.json +1 -1
  108. package/sdk/applications.d.ts +1 -1
  109. package/sdk/applications.d.ts.map +1 -1
  110. package/sdk/sdk.d.ts +2 -2
  111. package/sdk/sdk.d.ts.map +1 -1
  112. package/sdk/sdk.js +3 -3
  113. package/sdk/sdk.js.map +1 -1
  114. package/sdk/supportingdocuments.d.ts +1 -1
  115. package/sdk/supportingdocuments.d.ts.map +1 -1
  116. package/src/funcs/applicationsCreate.ts +30 -40
  117. package/src/funcs/oauthTokenGet.ts +24 -20
  118. package/src/funcs/supportingDocumentsCreate.ts +31 -42
  119. package/src/hooks/types.ts +2 -0
  120. package/src/index.ts +2 -0
  121. package/src/lib/config.ts +7 -3
  122. package/src/lib/files.ts +42 -0
  123. package/src/lib/matchers.ts +44 -41
  124. package/src/lib/sdks.ts +10 -4
  125. package/src/lib/security.ts +2 -2
  126. package/src/models/components/addressattributes.ts +14 -18
  127. package/src/models/components/badrequesterror.ts +48 -44
  128. package/src/models/components/commercialsecuredapplicationpayload.ts +15 -20
  129. package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +178 -238
  130. package/src/models/components/customerattributes.ts +20 -1
  131. package/src/models/components/forbiddenerror.ts +30 -32
  132. package/src/models/components/loandetailsattributes.ts +16 -16
  133. package/src/models/components/supportingdocumentrelationships.ts +117 -82
  134. package/src/models/components/supportingdocumentresource.ts +18 -15
  135. package/src/models/errors/apierror.ts +29 -16
  136. package/src/models/errors/financeableerror.ts +35 -0
  137. package/src/models/errors/index.ts +1 -2
  138. package/src/models/errors/responsevalidationerror.ts +50 -0
  139. package/src/models/errors/sdkvalidationerror.ts +12 -0
  140. package/src/models/operations/createapplication.ts +299 -64
  141. package/src/models/operations/supportingdocumentscreate.ts +386 -0
  142. package/src/sdk/applications.ts +1 -1
  143. package/src/sdk/sdk.ts +7 -7
  144. package/src/sdk/supportingdocuments.ts +1 -1
  145. package/src/types/constdatetime.ts +1 -1
  146. package/types/constdatetime.js +1 -1
  147. package/models/errors/createapplication.d.ts +0 -73
  148. package/models/errors/createapplication.d.ts.map +0 -1
  149. package/models/errors/createapplication.js +0 -120
  150. package/models/errors/createapplication.js.map +0 -1
  151. package/models/errors/supportingdocumentscreate.d.ts +0 -143
  152. package/models/errors/supportingdocumentscreate.d.ts.map +0 -1
  153. package/models/errors/supportingdocumentscreate.js +0 -225
  154. package/models/errors/supportingdocumentscreate.js.map +0 -1
  155. package/src/models/errors/createapplication.ts +0 -149
  156. package/src/models/errors/supportingdocumentscreate.ts +0 -342
@@ -64,7 +64,7 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsType =
64
64
  typeof CommercialSecuredLoanCommercialApplicationRelationshipsType
65
65
  >;
66
66
 
67
- export type CommercialSecuredLoanCommercialApplicationRelationshipsData = {
67
+ export type Data = {
68
68
  type: CommercialSecuredLoanCommercialApplicationRelationshipsType;
69
69
  /**
70
70
  * Loan details model
@@ -75,7 +75,7 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsData = {
75
75
  };
76
76
 
77
77
  export type LoanDetails = {
78
- data: CommercialSecuredLoanCommercialApplicationRelationshipsData;
78
+ data: Data;
79
79
  };
80
80
 
81
81
  export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType =
@@ -96,7 +96,7 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
96
96
  typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType
97
97
  >;
98
98
 
99
- export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData =
99
+ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData =
100
100
  {
101
101
  type:
102
102
  CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType;
@@ -107,7 +107,7 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
107
107
 
108
108
  export type Addresses = {
109
109
  data: Array<
110
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData
110
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData
111
111
  >;
112
112
  };
113
113
 
@@ -120,7 +120,7 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
120
120
  typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType
121
121
  >;
122
122
 
123
- export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData =
123
+ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData =
124
124
  {
125
125
  type:
126
126
  CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType;
@@ -131,7 +131,7 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
131
131
 
132
132
  export type Liabilities = {
133
133
  data: Array<
134
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData
134
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
135
135
  >;
136
136
  };
137
137
 
@@ -144,7 +144,7 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
144
144
  typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType
145
145
  >;
146
146
 
147
- export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData =
147
+ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData =
148
148
  {
149
149
  type:
150
150
  CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType;
@@ -155,7 +155,7 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
155
155
 
156
156
  export type Assets = {
157
157
  data: Array<
158
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData
158
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData
159
159
  >;
160
160
  };
161
161
 
@@ -165,22 +165,19 @@ export type Relationships = {
165
165
  assets?: Assets | undefined;
166
166
  };
167
167
 
168
- export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData =
169
- {
170
- type: CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType;
171
- /**
172
- * A customer of the proposed financing
173
- */
174
- attributes: CustomerAttributes;
175
- relationships?: Relationships | undefined;
176
- links?: { [k: string]: LinkObject } | undefined;
177
- meta?: { [k: string]: any } | undefined;
178
- };
168
+ export type CommercialSecuredLoanCommercialApplicationRelationshipsData = {
169
+ type: CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType;
170
+ /**
171
+ * A customer of the proposed financing
172
+ */
173
+ attributes: CustomerAttributes;
174
+ relationships?: Relationships | undefined;
175
+ links?: { [k: string]: LinkObject } | undefined;
176
+ meta?: { [k: string]: any } | undefined;
177
+ };
179
178
 
180
179
  export type Customers = {
181
- data: Array<
182
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
183
- >;
180
+ data: Array<CommercialSecuredLoanCommercialApplicationRelationshipsData>;
184
181
  };
185
182
 
186
183
  export const CommercialSecuredLoanCommercialApplicationRelationshipsAssetType =
@@ -202,7 +199,7 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsAssetData = {
202
199
  meta?: { [k: string]: any } | undefined;
203
200
  };
204
201
 
205
- export type CommercialSecuredLoanCommercialApplicationRelationshipsAsset = {
202
+ export type Asset = {
206
203
  data: CommercialSecuredLoanCommercialApplicationRelationshipsAssetData;
207
204
  };
208
205
 
@@ -232,9 +229,7 @@ export type Entities = {
232
229
  export type CommercialSecuredLoanCommercialApplicationRelationships = {
233
230
  loanDetails?: LoanDetails | undefined;
234
231
  customers?: Customers | undefined;
235
- asset?:
236
- | CommercialSecuredLoanCommercialApplicationRelationshipsAsset
237
- | undefined;
232
+ asset?: Asset | undefined;
238
233
  entities?: Entities | undefined;
239
234
  };
240
235
 
@@ -264,12 +259,8 @@ export namespace CommercialSecuredLoanCommercialApplicationRelationshipsType$ {
264
259
  }
265
260
 
266
261
  /** @internal */
267
- export const CommercialSecuredLoanCommercialApplicationRelationshipsData$inboundSchema:
268
- z.ZodType<
269
- CommercialSecuredLoanCommercialApplicationRelationshipsData,
270
- z.ZodTypeDef,
271
- unknown
272
- > = z.object({
262
+ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
263
+ .object({
273
264
  type:
274
265
  CommercialSecuredLoanCommercialApplicationRelationshipsType$inboundSchema,
275
266
  attributes: LoanDetailsAttributes$inboundSchema,
@@ -278,21 +269,16 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsData$inbound
278
269
  });
279
270
 
280
271
  /** @internal */
281
- export type CommercialSecuredLoanCommercialApplicationRelationshipsData$Outbound =
282
- {
283
- type: string;
284
- attributes: LoanDetailsAttributes$Outbound;
285
- links?: { [k: string]: LinkObject$Outbound } | undefined;
286
- meta?: { [k: string]: any } | undefined;
287
- };
272
+ export type Data$Outbound = {
273
+ type: string;
274
+ attributes: LoanDetailsAttributes$Outbound;
275
+ links?: { [k: string]: LinkObject$Outbound } | undefined;
276
+ meta?: { [k: string]: any } | undefined;
277
+ };
288
278
 
289
279
  /** @internal */
290
- export const CommercialSecuredLoanCommercialApplicationRelationshipsData$outboundSchema:
291
- z.ZodType<
292
- CommercialSecuredLoanCommercialApplicationRelationshipsData$Outbound,
293
- z.ZodTypeDef,
294
- CommercialSecuredLoanCommercialApplicationRelationshipsData
295
- > = z.object({
280
+ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
281
+ z.object({
296
282
  type:
297
283
  CommercialSecuredLoanCommercialApplicationRelationshipsType$outboundSchema,
298
284
  attributes: LoanDetailsAttributes$outboundSchema,
@@ -304,40 +290,26 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsData$outboun
304
290
  * @internal
305
291
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
306
292
  */
307
- export namespace CommercialSecuredLoanCommercialApplicationRelationshipsData$ {
308
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsData$inboundSchema` instead. */
309
- export const inboundSchema =
310
- CommercialSecuredLoanCommercialApplicationRelationshipsData$inboundSchema;
311
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsData$outboundSchema` instead. */
312
- export const outboundSchema =
313
- CommercialSecuredLoanCommercialApplicationRelationshipsData$outboundSchema;
314
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsData$Outbound` instead. */
315
- export type Outbound =
316
- CommercialSecuredLoanCommercialApplicationRelationshipsData$Outbound;
293
+ export namespace Data$ {
294
+ /** @deprecated use `Data$inboundSchema` instead. */
295
+ export const inboundSchema = Data$inboundSchema;
296
+ /** @deprecated use `Data$outboundSchema` instead. */
297
+ export const outboundSchema = Data$outboundSchema;
298
+ /** @deprecated use `Data$Outbound` instead. */
299
+ export type Outbound = Data$Outbound;
317
300
  }
318
301
 
319
- export function commercialSecuredLoanCommercialApplicationRelationshipsDataToJSON(
320
- commercialSecuredLoanCommercialApplicationRelationshipsData:
321
- CommercialSecuredLoanCommercialApplicationRelationshipsData,
322
- ): string {
323
- return JSON.stringify(
324
- CommercialSecuredLoanCommercialApplicationRelationshipsData$outboundSchema
325
- .parse(commercialSecuredLoanCommercialApplicationRelationshipsData),
326
- );
302
+ export function dataToJSON(data: Data): string {
303
+ return JSON.stringify(Data$outboundSchema.parse(data));
327
304
  }
328
305
 
329
- export function commercialSecuredLoanCommercialApplicationRelationshipsDataFromJSON(
306
+ export function dataFromJSON(
330
307
  jsonString: string,
331
- ): SafeParseResult<
332
- CommercialSecuredLoanCommercialApplicationRelationshipsData,
333
- SDKValidationError
334
- > {
308
+ ): SafeParseResult<Data, SDKValidationError> {
335
309
  return safeParse(
336
310
  jsonString,
337
- (x) =>
338
- CommercialSecuredLoanCommercialApplicationRelationshipsData$inboundSchema
339
- .parse(JSON.parse(x)),
340
- `Failed to parse 'CommercialSecuredLoanCommercialApplicationRelationshipsData' from JSON`,
311
+ (x) => Data$inboundSchema.parse(JSON.parse(x)),
312
+ `Failed to parse 'Data' from JSON`,
341
313
  );
342
314
  }
343
315
 
@@ -347,14 +319,12 @@ export const LoanDetails$inboundSchema: z.ZodType<
347
319
  z.ZodTypeDef,
348
320
  unknown
349
321
  > = z.object({
350
- data: z.lazy(() =>
351
- CommercialSecuredLoanCommercialApplicationRelationshipsData$inboundSchema
352
- ),
322
+ data: z.lazy(() => Data$inboundSchema),
353
323
  });
354
324
 
355
325
  /** @internal */
356
326
  export type LoanDetails$Outbound = {
357
- data: CommercialSecuredLoanCommercialApplicationRelationshipsData$Outbound;
327
+ data: Data$Outbound;
358
328
  };
359
329
 
360
330
  /** @internal */
@@ -363,9 +333,7 @@ export const LoanDetails$outboundSchema: z.ZodType<
363
333
  z.ZodTypeDef,
364
334
  LoanDetails
365
335
  > = z.object({
366
- data: z.lazy(() =>
367
- CommercialSecuredLoanCommercialApplicationRelationshipsData$outboundSchema
368
- ),
336
+ data: z.lazy(() => Data$outboundSchema),
369
337
  });
370
338
 
371
339
  /**
@@ -452,9 +420,9 @@ export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomer
452
420
  }
453
421
 
454
422
  /** @internal */
455
- export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$inboundSchema:
423
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema:
456
424
  z.ZodType<
457
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData,
425
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData,
458
426
  z.ZodTypeDef,
459
427
  unknown
460
428
  > = z.object({
@@ -466,7 +434,7 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDat
466
434
  });
467
435
 
468
436
  /** @internal */
469
- export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$Outbound =
437
+ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$Outbound =
470
438
  {
471
439
  type: string;
472
440
  attributes: AddressAttributes$Outbound;
@@ -475,11 +443,11 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
475
443
  };
476
444
 
477
445
  /** @internal */
478
- export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema:
446
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema:
479
447
  z.ZodType<
480
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$Outbound,
448
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$Outbound,
481
449
  z.ZodTypeDef,
482
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData
450
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData
483
451
  > = z.object({
484
452
  type:
485
453
  CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$outboundSchema,
@@ -492,42 +460,42 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDat
492
460
  * @internal
493
461
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
494
462
  */
495
- export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$ {
496
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$inboundSchema` instead. */
463
+ export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$ {
464
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema` instead. */
497
465
  export const inboundSchema =
498
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$inboundSchema;
499
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema` instead. */
466
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema;
467
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema` instead. */
500
468
  export const outboundSchema =
501
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema;
502
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$Outbound` instead. */
469
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema;
470
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$Outbound` instead. */
503
471
  export type Outbound =
504
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$Outbound;
472
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$Outbound;
505
473
  }
506
474
 
507
- export function commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesDataToJSON(
508
- commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData:
509
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData,
475
+ export function commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsDataToJSON(
476
+ commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData:
477
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData,
510
478
  ): string {
511
479
  return JSON.stringify(
512
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema
480
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema
513
481
  .parse(
514
- commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData,
482
+ commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData,
515
483
  ),
516
484
  );
517
485
  }
518
486
 
519
- export function commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesDataFromJSON(
487
+ export function commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsDataFromJSON(
520
488
  jsonString: string,
521
489
  ): SafeParseResult<
522
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData,
490
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData,
523
491
  SDKValidationError
524
492
  > {
525
493
  return safeParse(
526
494
  jsonString,
527
495
  (x) =>
528
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$inboundSchema
496
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema
529
497
  .parse(JSON.parse(x)),
530
- `Failed to parse 'CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData' from JSON`,
498
+ `Failed to parse 'CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData' from JSON`,
531
499
  );
532
500
  }
533
501
 
@@ -539,7 +507,7 @@ export const Addresses$inboundSchema: z.ZodType<
539
507
  > = z.object({
540
508
  data: z.array(
541
509
  z.lazy(() =>
542
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$inboundSchema
510
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema
543
511
  ),
544
512
  ),
545
513
  });
@@ -547,7 +515,7 @@ export const Addresses$inboundSchema: z.ZodType<
547
515
  /** @internal */
548
516
  export type Addresses$Outbound = {
549
517
  data: Array<
550
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$Outbound
518
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$Outbound
551
519
  >;
552
520
  };
553
521
 
@@ -559,7 +527,7 @@ export const Addresses$outboundSchema: z.ZodType<
559
527
  > = z.object({
560
528
  data: z.array(
561
529
  z.lazy(() =>
562
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema
530
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema
563
531
  ),
564
532
  ),
565
533
  });
@@ -620,9 +588,9 @@ export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomer
620
588
  }
621
589
 
622
590
  /** @internal */
623
- export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$inboundSchema:
591
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$inboundSchema:
624
592
  z.ZodType<
625
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData,
593
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData,
626
594
  z.ZodTypeDef,
627
595
  unknown
628
596
  > = z.object({
@@ -634,7 +602,7 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDat
634
602
  });
635
603
 
636
604
  /** @internal */
637
- export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$Outbound =
605
+ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$Outbound =
638
606
  {
639
607
  type: string;
640
608
  attributes: CustomerLiabilityAttributes$Outbound;
@@ -643,11 +611,11 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
643
611
  };
644
612
 
645
613
  /** @internal */
646
- export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$outboundSchema:
614
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$outboundSchema:
647
615
  z.ZodType<
648
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$Outbound,
616
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$Outbound,
649
617
  z.ZodTypeDef,
650
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData
618
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
651
619
  > = z.object({
652
620
  type:
653
621
  CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema,
@@ -660,42 +628,42 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDat
660
628
  * @internal
661
629
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
662
630
  */
663
- export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$ {
664
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$inboundSchema` instead. */
631
+ export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$ {
632
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$inboundSchema` instead. */
665
633
  export const inboundSchema =
666
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$inboundSchema;
667
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$outboundSchema` instead. */
634
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$inboundSchema;
635
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$outboundSchema` instead. */
668
636
  export const outboundSchema =
669
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$outboundSchema;
670
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$Outbound` instead. */
637
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$outboundSchema;
638
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$Outbound` instead. */
671
639
  export type Outbound =
672
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$Outbound;
640
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$Outbound;
673
641
  }
674
642
 
675
- export function commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataDataToJSON(
676
- commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData:
677
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData,
643
+ export function commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataToJSON(
644
+ commercialSecuredLoanCommercialApplicationRelationshipsCustomersData:
645
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData,
678
646
  ): string {
679
647
  return JSON.stringify(
680
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$outboundSchema
648
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$outboundSchema
681
649
  .parse(
682
- commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData,
650
+ commercialSecuredLoanCommercialApplicationRelationshipsCustomersData,
683
651
  ),
684
652
  );
685
653
  }
686
654
 
687
- export function commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataDataFromJSON(
655
+ export function commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataFromJSON(
688
656
  jsonString: string,
689
657
  ): SafeParseResult<
690
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData,
658
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData,
691
659
  SDKValidationError
692
660
  > {
693
661
  return safeParse(
694
662
  jsonString,
695
663
  (x) =>
696
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$inboundSchema
664
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$inboundSchema
697
665
  .parse(JSON.parse(x)),
698
- `Failed to parse 'CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData' from JSON`,
666
+ `Failed to parse 'CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData' from JSON`,
699
667
  );
700
668
  }
701
669
 
@@ -707,7 +675,7 @@ export const Liabilities$inboundSchema: z.ZodType<
707
675
  > = z.object({
708
676
  data: z.array(
709
677
  z.lazy(() =>
710
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$inboundSchema
678
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$inboundSchema
711
679
  ),
712
680
  ),
713
681
  });
@@ -715,7 +683,7 @@ export const Liabilities$inboundSchema: z.ZodType<
715
683
  /** @internal */
716
684
  export type Liabilities$Outbound = {
717
685
  data: Array<
718
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$Outbound
686
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$Outbound
719
687
  >;
720
688
  };
721
689
 
@@ -727,7 +695,7 @@ export const Liabilities$outboundSchema: z.ZodType<
727
695
  > = z.object({
728
696
  data: z.array(
729
697
  z.lazy(() =>
730
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$outboundSchema
698
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$outboundSchema
731
699
  ),
732
700
  ),
733
701
  });
@@ -788,9 +756,9 @@ export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomer
788
756
  }
789
757
 
790
758
  /** @internal */
791
- export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema:
759
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$inboundSchema:
792
760
  z.ZodType<
793
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData,
761
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData,
794
762
  z.ZodTypeDef,
795
763
  unknown
796
764
  > = z.object({
@@ -802,7 +770,7 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDat
802
770
  });
803
771
 
804
772
  /** @internal */
805
- export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$Outbound =
773
+ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$Outbound =
806
774
  {
807
775
  type: string;
808
776
  attributes: CustomerAssetAttributes$Outbound;
@@ -811,11 +779,11 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
811
779
  };
812
780
 
813
781
  /** @internal */
814
- export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema:
782
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$outboundSchema:
815
783
  z.ZodType<
816
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$Outbound,
784
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$Outbound,
817
785
  z.ZodTypeDef,
818
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData
786
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData
819
787
  > = z.object({
820
788
  type:
821
789
  CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$outboundSchema,
@@ -828,42 +796,42 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDat
828
796
  * @internal
829
797
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
830
798
  */
831
- export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$ {
832
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema` instead. */
799
+ export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$ {
800
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$inboundSchema` instead. */
833
801
  export const inboundSchema =
834
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema;
835
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema` instead. */
802
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$inboundSchema;
803
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$outboundSchema` instead. */
836
804
  export const outboundSchema =
837
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema;
838
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$Outbound` instead. */
805
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$outboundSchema;
806
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$Outbound` instead. */
839
807
  export type Outbound =
840
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$Outbound;
808
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$Outbound;
841
809
  }
842
810
 
843
- export function commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsDataToJSON(
844
- commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData:
845
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData,
811
+ export function commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataDataToJSON(
812
+ commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData:
813
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData,
846
814
  ): string {
847
815
  return JSON.stringify(
848
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema
816
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$outboundSchema
849
817
  .parse(
850
- commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData,
818
+ commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData,
851
819
  ),
852
820
  );
853
821
  }
854
822
 
855
- export function commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsDataFromJSON(
823
+ export function commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataDataFromJSON(
856
824
  jsonString: string,
857
825
  ): SafeParseResult<
858
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData,
826
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData,
859
827
  SDKValidationError
860
828
  > {
861
829
  return safeParse(
862
830
  jsonString,
863
831
  (x) =>
864
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema
832
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$inboundSchema
865
833
  .parse(JSON.parse(x)),
866
- `Failed to parse 'CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData' from JSON`,
834
+ `Failed to parse 'CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData' from JSON`,
867
835
  );
868
836
  }
869
837
 
@@ -872,7 +840,7 @@ export const Assets$inboundSchema: z.ZodType<Assets, z.ZodTypeDef, unknown> = z
872
840
  .object({
873
841
  data: z.array(
874
842
  z.lazy(() =>
875
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema
843
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$inboundSchema
876
844
  ),
877
845
  ),
878
846
  });
@@ -880,7 +848,7 @@ export const Assets$inboundSchema: z.ZodType<Assets, z.ZodTypeDef, unknown> = z
880
848
  /** @internal */
881
849
  export type Assets$Outbound = {
882
850
  data: Array<
883
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$Outbound
851
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$Outbound
884
852
  >;
885
853
  };
886
854
 
@@ -892,7 +860,7 @@ export const Assets$outboundSchema: z.ZodType<
892
860
  > = z.object({
893
861
  data: z.array(
894
862
  z.lazy(() =>
895
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema
863
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$outboundSchema
896
864
  ),
897
865
  ),
898
866
  });
@@ -981,9 +949,9 @@ export function relationshipsFromJSON(
981
949
  }
982
950
 
983
951
  /** @internal */
984
- export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$inboundSchema:
952
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsData$inboundSchema:
985
953
  z.ZodType<
986
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData,
954
+ CommercialSecuredLoanCommercialApplicationRelationshipsData,
987
955
  z.ZodTypeDef,
988
956
  unknown
989
957
  > = z.object({
@@ -996,7 +964,7 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDat
996
964
  });
997
965
 
998
966
  /** @internal */
999
- export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$Outbound =
967
+ export type CommercialSecuredLoanCommercialApplicationRelationshipsData$Outbound =
1000
968
  {
1001
969
  type: string;
1002
970
  attributes: CustomerAttributes$Outbound;
@@ -1006,11 +974,11 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
1006
974
  };
1007
975
 
1008
976
  /** @internal */
1009
- export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$outboundSchema:
977
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsData$outboundSchema:
1010
978
  z.ZodType<
1011
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$Outbound,
979
+ CommercialSecuredLoanCommercialApplicationRelationshipsData$Outbound,
1012
980
  z.ZodTypeDef,
1013
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
981
+ CommercialSecuredLoanCommercialApplicationRelationshipsData
1014
982
  > = z.object({
1015
983
  type:
1016
984
  CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$outboundSchema,
@@ -1024,42 +992,40 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDat
1024
992
  * @internal
1025
993
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1026
994
  */
1027
- export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$ {
1028
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$inboundSchema` instead. */
995
+ export namespace CommercialSecuredLoanCommercialApplicationRelationshipsData$ {
996
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsData$inboundSchema` instead. */
1029
997
  export const inboundSchema =
1030
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$inboundSchema;
1031
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$outboundSchema` instead. */
998
+ CommercialSecuredLoanCommercialApplicationRelationshipsData$inboundSchema;
999
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsData$outboundSchema` instead. */
1032
1000
  export const outboundSchema =
1033
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$outboundSchema;
1034
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$Outbound` instead. */
1001
+ CommercialSecuredLoanCommercialApplicationRelationshipsData$outboundSchema;
1002
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsData$Outbound` instead. */
1035
1003
  export type Outbound =
1036
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$Outbound;
1004
+ CommercialSecuredLoanCommercialApplicationRelationshipsData$Outbound;
1037
1005
  }
1038
1006
 
1039
- export function commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataToJSON(
1040
- commercialSecuredLoanCommercialApplicationRelationshipsCustomersData:
1041
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData,
1007
+ export function commercialSecuredLoanCommercialApplicationRelationshipsDataToJSON(
1008
+ commercialSecuredLoanCommercialApplicationRelationshipsData:
1009
+ CommercialSecuredLoanCommercialApplicationRelationshipsData,
1042
1010
  ): string {
1043
1011
  return JSON.stringify(
1044
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$outboundSchema
1045
- .parse(
1046
- commercialSecuredLoanCommercialApplicationRelationshipsCustomersData,
1047
- ),
1012
+ CommercialSecuredLoanCommercialApplicationRelationshipsData$outboundSchema
1013
+ .parse(commercialSecuredLoanCommercialApplicationRelationshipsData),
1048
1014
  );
1049
1015
  }
1050
1016
 
1051
- export function commercialSecuredLoanCommercialApplicationRelationshipsCustomersDataFromJSON(
1017
+ export function commercialSecuredLoanCommercialApplicationRelationshipsDataFromJSON(
1052
1018
  jsonString: string,
1053
1019
  ): SafeParseResult<
1054
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData,
1020
+ CommercialSecuredLoanCommercialApplicationRelationshipsData,
1055
1021
  SDKValidationError
1056
1022
  > {
1057
1023
  return safeParse(
1058
1024
  jsonString,
1059
1025
  (x) =>
1060
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$inboundSchema
1026
+ CommercialSecuredLoanCommercialApplicationRelationshipsData$inboundSchema
1061
1027
  .parse(JSON.parse(x)),
1062
- `Failed to parse 'CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData' from JSON`,
1028
+ `Failed to parse 'CommercialSecuredLoanCommercialApplicationRelationshipsData' from JSON`,
1063
1029
  );
1064
1030
  }
1065
1031
 
@@ -1071,7 +1037,7 @@ export const Customers$inboundSchema: z.ZodType<
1071
1037
  > = z.object({
1072
1038
  data: z.array(
1073
1039
  z.lazy(() =>
1074
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$inboundSchema
1040
+ CommercialSecuredLoanCommercialApplicationRelationshipsData$inboundSchema
1075
1041
  ),
1076
1042
  ),
1077
1043
  });
@@ -1079,7 +1045,7 @@ export const Customers$inboundSchema: z.ZodType<
1079
1045
  /** @internal */
1080
1046
  export type Customers$Outbound = {
1081
1047
  data: Array<
1082
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$Outbound
1048
+ CommercialSecuredLoanCommercialApplicationRelationshipsData$Outbound
1083
1049
  >;
1084
1050
  };
1085
1051
 
@@ -1091,7 +1057,7 @@ export const Customers$outboundSchema: z.ZodType<
1091
1057
  > = z.object({
1092
1058
  data: z.array(
1093
1059
  z.lazy(() =>
1094
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$outboundSchema
1060
+ CommercialSecuredLoanCommercialApplicationRelationshipsData$outboundSchema
1095
1061
  ),
1096
1062
  ),
1097
1063
  });
@@ -1230,74 +1196,54 @@ export function commercialSecuredLoanCommercialApplicationRelationshipsAssetData
1230
1196
  }
1231
1197
 
1232
1198
  /** @internal */
1233
- export const CommercialSecuredLoanCommercialApplicationRelationshipsAsset$inboundSchema:
1234
- z.ZodType<
1235
- CommercialSecuredLoanCommercialApplicationRelationshipsAsset,
1236
- z.ZodTypeDef,
1237
- unknown
1238
- > = z.object({
1199
+ export const Asset$inboundSchema: z.ZodType<Asset, z.ZodTypeDef, unknown> = z
1200
+ .object({
1239
1201
  data: z.lazy(() =>
1240
1202
  CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$inboundSchema
1241
1203
  ),
1242
1204
  });
1243
1205
 
1244
1206
  /** @internal */
1245
- export type CommercialSecuredLoanCommercialApplicationRelationshipsAsset$Outbound =
1246
- {
1247
- data:
1248
- CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$Outbound;
1249
- };
1207
+ export type Asset$Outbound = {
1208
+ data:
1209
+ CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$Outbound;
1210
+ };
1250
1211
 
1251
1212
  /** @internal */
1252
- export const CommercialSecuredLoanCommercialApplicationRelationshipsAsset$outboundSchema:
1253
- z.ZodType<
1254
- CommercialSecuredLoanCommercialApplicationRelationshipsAsset$Outbound,
1255
- z.ZodTypeDef,
1256
- CommercialSecuredLoanCommercialApplicationRelationshipsAsset
1257
- > = z.object({
1258
- data: z.lazy(() =>
1259
- CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$outboundSchema
1260
- ),
1261
- });
1213
+ export const Asset$outboundSchema: z.ZodType<
1214
+ Asset$Outbound,
1215
+ z.ZodTypeDef,
1216
+ Asset
1217
+ > = z.object({
1218
+ data: z.lazy(() =>
1219
+ CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$outboundSchema
1220
+ ),
1221
+ });
1262
1222
 
1263
1223
  /**
1264
1224
  * @internal
1265
1225
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1266
1226
  */
1267
- export namespace CommercialSecuredLoanCommercialApplicationRelationshipsAsset$ {
1268
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsAsset$inboundSchema` instead. */
1269
- export const inboundSchema =
1270
- CommercialSecuredLoanCommercialApplicationRelationshipsAsset$inboundSchema;
1271
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsAsset$outboundSchema` instead. */
1272
- export const outboundSchema =
1273
- CommercialSecuredLoanCommercialApplicationRelationshipsAsset$outboundSchema;
1274
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsAsset$Outbound` instead. */
1275
- export type Outbound =
1276
- CommercialSecuredLoanCommercialApplicationRelationshipsAsset$Outbound;
1227
+ export namespace Asset$ {
1228
+ /** @deprecated use `Asset$inboundSchema` instead. */
1229
+ export const inboundSchema = Asset$inboundSchema;
1230
+ /** @deprecated use `Asset$outboundSchema` instead. */
1231
+ export const outboundSchema = Asset$outboundSchema;
1232
+ /** @deprecated use `Asset$Outbound` instead. */
1233
+ export type Outbound = Asset$Outbound;
1277
1234
  }
1278
1235
 
1279
- export function commercialSecuredLoanCommercialApplicationRelationshipsAssetToJSON(
1280
- commercialSecuredLoanCommercialApplicationRelationshipsAsset:
1281
- CommercialSecuredLoanCommercialApplicationRelationshipsAsset,
1282
- ): string {
1283
- return JSON.stringify(
1284
- CommercialSecuredLoanCommercialApplicationRelationshipsAsset$outboundSchema
1285
- .parse(commercialSecuredLoanCommercialApplicationRelationshipsAsset),
1286
- );
1236
+ export function assetToJSON(asset: Asset): string {
1237
+ return JSON.stringify(Asset$outboundSchema.parse(asset));
1287
1238
  }
1288
1239
 
1289
- export function commercialSecuredLoanCommercialApplicationRelationshipsAssetFromJSON(
1240
+ export function assetFromJSON(
1290
1241
  jsonString: string,
1291
- ): SafeParseResult<
1292
- CommercialSecuredLoanCommercialApplicationRelationshipsAsset,
1293
- SDKValidationError
1294
- > {
1242
+ ): SafeParseResult<Asset, SDKValidationError> {
1295
1243
  return safeParse(
1296
1244
  jsonString,
1297
- (x) =>
1298
- CommercialSecuredLoanCommercialApplicationRelationshipsAsset$inboundSchema
1299
- .parse(JSON.parse(x)),
1300
- `Failed to parse 'CommercialSecuredLoanCommercialApplicationRelationshipsAsset' from JSON`,
1245
+ (x) => Asset$inboundSchema.parse(JSON.parse(x)),
1246
+ `Failed to parse 'Asset' from JSON`,
1301
1247
  );
1302
1248
  }
1303
1249
 
@@ -1478,9 +1424,7 @@ export const CommercialSecuredLoanCommercialApplicationRelationships$inboundSche
1478
1424
  > = z.object({
1479
1425
  loanDetails: z.lazy(() => LoanDetails$inboundSchema).optional(),
1480
1426
  customers: z.lazy(() => Customers$inboundSchema).optional(),
1481
- asset: z.lazy(() =>
1482
- CommercialSecuredLoanCommercialApplicationRelationshipsAsset$inboundSchema
1483
- ).optional(),
1427
+ asset: z.lazy(() => Asset$inboundSchema).optional(),
1484
1428
  entities: z.lazy(() => Entities$inboundSchema).optional(),
1485
1429
  });
1486
1430
 
@@ -1488,9 +1432,7 @@ export const CommercialSecuredLoanCommercialApplicationRelationships$inboundSche
1488
1432
  export type CommercialSecuredLoanCommercialApplicationRelationships$Outbound = {
1489
1433
  loanDetails?: LoanDetails$Outbound | undefined;
1490
1434
  customers?: Customers$Outbound | undefined;
1491
- asset?:
1492
- | CommercialSecuredLoanCommercialApplicationRelationshipsAsset$Outbound
1493
- | undefined;
1435
+ asset?: Asset$Outbound | undefined;
1494
1436
  entities?: Entities$Outbound | undefined;
1495
1437
  };
1496
1438
 
@@ -1503,9 +1445,7 @@ export const CommercialSecuredLoanCommercialApplicationRelationships$outboundSch
1503
1445
  > = z.object({
1504
1446
  loanDetails: z.lazy(() => LoanDetails$outboundSchema).optional(),
1505
1447
  customers: z.lazy(() => Customers$outboundSchema).optional(),
1506
- asset: z.lazy(() =>
1507
- CommercialSecuredLoanCommercialApplicationRelationshipsAsset$outboundSchema
1508
- ).optional(),
1448
+ asset: z.lazy(() => Asset$outboundSchema).optional(),
1509
1449
  entities: z.lazy(() => Entities$outboundSchema).optional(),
1510
1450
  });
1511
1451