@financeable/aggregation 0.9.0 → 0.10.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 (139) hide show
  1. package/docs/sdks/applications/README.md +1 -0
  2. package/docs/sdks/oauthtoken/README.md +1 -0
  3. package/docs/sdks/supportingdocuments/README.md +1 -0
  4. package/examples/README.md +31 -0
  5. package/examples/applicationsCreate.example.ts +179 -0
  6. package/examples/package-lock.json +610 -0
  7. package/examples/package.json +18 -0
  8. package/jsr.json +1 -1
  9. package/lib/config.d.ts +3 -3
  10. package/lib/config.js +3 -3
  11. package/models/components/addressattributes.d.ts +30 -30
  12. package/models/components/addressattributes.d.ts.map +1 -1
  13. package/models/components/addressattributes.js +24 -24
  14. package/models/components/addressattributes.js.map +1 -1
  15. package/models/components/badrequesterror.d.ts +15 -15
  16. package/models/components/badrequesterror.d.ts.map +1 -1
  17. package/models/components/badrequesterror.js.map +1 -1
  18. package/models/components/commercialapplicationjsonapirelationships.d.ts +84 -84
  19. package/models/components/commercialapplicationjsonapirelationships.d.ts.map +1 -1
  20. package/models/components/commercialapplicationjsonapirelationships.js +47 -47
  21. package/models/components/commercialapplicationjsonapirelationships.js.map +1 -1
  22. package/models/components/commercialsecuredapplicationpayload.d.ts +27 -27
  23. package/models/components/commercialsecuredapplicationpayload.d.ts.map +1 -1
  24. package/models/components/commercialsecuredapplicationpayload.js.map +1 -1
  25. package/models/components/commercialsecuredapplicationresource.d.ts +36 -36
  26. package/models/components/commercialsecuredapplicationresource.d.ts.map +1 -1
  27. package/models/components/commercialsecuredapplicationresource.js.map +1 -1
  28. package/models/components/commercialsecuredloanassetattributes.d.ts +66 -66
  29. package/models/components/commercialsecuredloanassetattributes.d.ts.map +1 -1
  30. package/models/components/commercialsecuredloanassetattributes.js +26 -24
  31. package/models/components/commercialsecuredloanassetattributes.js.map +1 -1
  32. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +150 -150
  33. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
  34. package/models/components/commercialsecuredloancommercialapplicationrelationships.js +92 -92
  35. package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
  36. package/models/components/consumerapplicationjsonapirelationships.d.ts +62 -62
  37. package/models/components/consumerapplicationjsonapirelationships.d.ts.map +1 -1
  38. package/models/components/consumerapplicationjsonapirelationships.js +32 -32
  39. package/models/components/consumerapplicationjsonapirelationships.js.map +1 -1
  40. package/models/components/consumersecuredapplicationpayload.d.ts +27 -27
  41. package/models/components/consumersecuredapplicationpayload.d.ts.map +1 -1
  42. package/models/components/consumersecuredapplicationpayload.js.map +1 -1
  43. package/models/components/consumersecuredapplicationresource.d.ts +36 -36
  44. package/models/components/consumersecuredapplicationresource.d.ts.map +1 -1
  45. package/models/components/consumersecuredapplicationresource.js.map +1 -1
  46. package/models/components/consumersecuredloanassetattributes.d.ts +78 -78
  47. package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -1
  48. package/models/components/consumersecuredloanassetattributes.js +41 -39
  49. package/models/components/consumersecuredloanassetattributes.js.map +1 -1
  50. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +172 -172
  51. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
  52. package/models/components/consumersecuredloanconsumerapplicationrelationships.js +107 -107
  53. package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -1
  54. package/models/components/createsupportingdocumentsresponse.d.ts +16 -16
  55. package/models/components/createsupportingdocumentsresponse.d.ts.map +1 -1
  56. package/models/components/createsupportingdocumentsresponse.js.map +1 -1
  57. package/models/components/customerassetattributes.d.ts +2 -2
  58. package/models/components/customerassetattributes.d.ts.map +1 -1
  59. package/models/components/customerassetattributes.js +2 -2
  60. package/models/components/customerassetattributes.js.map +1 -1
  61. package/models/components/customerattributes.d.ts +16 -11
  62. package/models/components/customerattributes.d.ts.map +1 -1
  63. package/models/components/customerattributes.js +12 -10
  64. package/models/components/customerattributes.js.map +1 -1
  65. package/models/components/customerliabilityattributes.d.ts +2 -2
  66. package/models/components/customerliabilityattributes.d.ts.map +1 -1
  67. package/models/components/customerliabilityattributes.js +2 -2
  68. package/models/components/customerliabilityattributes.js.map +1 -1
  69. package/models/components/entityattributes.d.ts +4 -4
  70. package/models/components/entityattributes.d.ts.map +1 -1
  71. package/models/components/entityattributes.js +4 -4
  72. package/models/components/entityattributes.js.map +1 -1
  73. package/models/components/expenseattributes.d.ts +2 -2
  74. package/models/components/expenseattributes.d.ts.map +1 -1
  75. package/models/components/expenseattributes.js +2 -2
  76. package/models/components/expenseattributes.js.map +1 -1
  77. package/models/components/forbiddenerror.d.ts +15 -15
  78. package/models/components/forbiddenerror.d.ts.map +1 -1
  79. package/models/components/forbiddenerror.js.map +1 -1
  80. package/models/components/incomeattributes.d.ts +2 -2
  81. package/models/components/incomeattributes.d.ts.map +1 -1
  82. package/models/components/incomeattributes.js +2 -2
  83. package/models/components/incomeattributes.js.map +1 -1
  84. package/models/components/monetaryquantity.d.ts +11 -11
  85. package/models/components/monetaryquantity.d.ts.map +1 -1
  86. package/models/components/monetaryquantity.js.map +1 -1
  87. package/models/components/percentagequantity.d.ts +7 -7
  88. package/models/components/percentagequantity.d.ts.map +1 -1
  89. package/models/components/percentagequantity.js.map +1 -1
  90. package/models/components/relationshipresourcenotfound.d.ts +12 -12
  91. package/models/components/relationshipresourcenotfound.d.ts.map +1 -1
  92. package/models/components/relationshipresourcenotfound.js.map +1 -1
  93. package/models/components/resourcenotfound.d.ts +15 -15
  94. package/models/components/resourcenotfound.d.ts.map +1 -1
  95. package/models/components/resourcenotfound.js.map +1 -1
  96. package/models/components/supportingdocumentrelationships.d.ts +106 -106
  97. package/models/components/supportingdocumentrelationships.d.ts.map +1 -1
  98. package/models/components/supportingdocumentrelationships.js +63 -63
  99. package/models/components/supportingdocumentrelationships.js.map +1 -1
  100. package/models/components/supportingdocumentresource.d.ts +11 -11
  101. package/models/components/supportingdocumentresource.d.ts.map +1 -1
  102. package/models/components/supportingdocumentresource.js.map +1 -1
  103. package/models/components/tokenrequest.d.ts +18 -18
  104. package/models/components/tokenrequest.d.ts.map +1 -1
  105. package/models/components/tokenrequest.js.map +1 -1
  106. package/models/operations/createapplication.d.ts +154 -154
  107. package/models/operations/createapplication.d.ts.map +1 -1
  108. package/models/operations/createapplication.js +109 -109
  109. package/models/operations/createapplication.js.map +1 -1
  110. package/package.json +4 -5
  111. package/src/lib/config.ts +3 -3
  112. package/src/models/components/addressattributes.ts +55 -55
  113. package/src/models/components/badrequesterror.ts +14 -14
  114. package/src/models/components/commercialapplicationjsonapirelationships.ts +117 -117
  115. package/src/models/components/commercialsecuredapplicationpayload.ts +27 -27
  116. package/src/models/components/commercialsecuredapplicationresource.ts +46 -46
  117. package/src/models/components/commercialsecuredloanassetattributes.ts +63 -61
  118. package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +243 -243
  119. package/src/models/components/consumerapplicationjsonapirelationships.ts +83 -83
  120. package/src/models/components/consumersecuredapplicationpayload.ts +27 -27
  121. package/src/models/components/consumersecuredapplicationresource.ts +47 -47
  122. package/src/models/components/consumersecuredloanassetattributes.ts +98 -96
  123. package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +279 -279
  124. package/src/models/components/createsupportingdocumentsresponse.ts +16 -16
  125. package/src/models/components/customerassetattributes.ts +4 -4
  126. package/src/models/components/customerattributes.ts +28 -21
  127. package/src/models/components/customerliabilityattributes.ts +4 -4
  128. package/src/models/components/entityattributes.ts +8 -8
  129. package/src/models/components/expenseattributes.ts +4 -4
  130. package/src/models/components/forbiddenerror.ts +14 -14
  131. package/src/models/components/incomeattributes.ts +4 -4
  132. package/src/models/components/monetaryquantity.ts +12 -12
  133. package/src/models/components/percentagequantity.ts +8 -8
  134. package/src/models/components/relationshipresourcenotfound.ts +11 -11
  135. package/src/models/components/resourcenotfound.ts +14 -14
  136. package/src/models/components/supportingdocumentrelationships.ts +129 -129
  137. package/src/models/components/supportingdocumentresource.ts +8 -8
  138. package/src/models/components/tokenrequest.ts +19 -19
  139. package/src/models/operations/createapplication.ts +204 -204
@@ -64,20 +64,6 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsType =
64
64
  typeof CommercialSecuredLoanCommercialApplicationRelationshipsType
65
65
  >;
66
66
 
67
- export type Data = {
68
- type: CommercialSecuredLoanCommercialApplicationRelationshipsType;
69
- /**
70
- * Loan details model
71
- */
72
- attributes: LoanDetailsAttributes;
73
- links?: { [k: string]: LinkObject } | undefined;
74
- meta?: { [k: string]: any } | undefined;
75
- };
76
-
77
- export type LoanDetails = {
78
- data: Data;
79
- };
80
-
81
67
  export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType =
82
68
  {
83
69
  Customers: "customers",
@@ -96,6 +82,249 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
96
82
  typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType
97
83
  >;
98
84
 
85
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType =
86
+ {
87
+ CustomerLiabilities: "customer-liabilities",
88
+ } as const;
89
+ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType =
90
+ ClosedEnum<
91
+ typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType
92
+ >;
93
+
94
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType =
95
+ {
96
+ CustomerAssets: "customer-assets",
97
+ } as const;
98
+ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType =
99
+ ClosedEnum<
100
+ typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType
101
+ >;
102
+
103
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsAssetType =
104
+ {
105
+ Assets: "assets",
106
+ } as const;
107
+ export type CommercialSecuredLoanCommercialApplicationRelationshipsAssetType =
108
+ ClosedEnum<
109
+ typeof CommercialSecuredLoanCommercialApplicationRelationshipsAssetType
110
+ >;
111
+
112
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType =
113
+ {
114
+ Entities: "entities",
115
+ } as const;
116
+ export type CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType =
117
+ ClosedEnum<
118
+ typeof CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType
119
+ >;
120
+
121
+ /** @internal */
122
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsType$inboundSchema:
123
+ z.ZodNativeEnum<
124
+ typeof CommercialSecuredLoanCommercialApplicationRelationshipsType
125
+ > = z.nativeEnum(CommercialSecuredLoanCommercialApplicationRelationshipsType);
126
+
127
+ /** @internal */
128
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsType$outboundSchema:
129
+ z.ZodNativeEnum<
130
+ typeof CommercialSecuredLoanCommercialApplicationRelationshipsType
131
+ > = CommercialSecuredLoanCommercialApplicationRelationshipsType$inboundSchema;
132
+
133
+ /**
134
+ * @internal
135
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
136
+ */
137
+ export namespace CommercialSecuredLoanCommercialApplicationRelationshipsType$ {
138
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsType$inboundSchema` instead. */
139
+ export const inboundSchema =
140
+ CommercialSecuredLoanCommercialApplicationRelationshipsType$inboundSchema;
141
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsType$outboundSchema` instead. */
142
+ export const outboundSchema =
143
+ CommercialSecuredLoanCommercialApplicationRelationshipsType$outboundSchema;
144
+ }
145
+
146
+ /** @internal */
147
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$inboundSchema:
148
+ z.ZodNativeEnum<
149
+ typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType
150
+ > = z.nativeEnum(
151
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType,
152
+ );
153
+
154
+ /** @internal */
155
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$outboundSchema:
156
+ z.ZodNativeEnum<
157
+ typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType
158
+ > =
159
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$inboundSchema;
160
+
161
+ /**
162
+ * @internal
163
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
164
+ */
165
+ export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$ {
166
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$inboundSchema` instead. */
167
+ export const inboundSchema =
168
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$inboundSchema;
169
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$outboundSchema` instead. */
170
+ export const outboundSchema =
171
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$outboundSchema;
172
+ }
173
+
174
+ /** @internal */
175
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$inboundSchema:
176
+ z.ZodNativeEnum<
177
+ typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType
178
+ > = z.nativeEnum(
179
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType,
180
+ );
181
+
182
+ /** @internal */
183
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$outboundSchema:
184
+ z.ZodNativeEnum<
185
+ typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType
186
+ > =
187
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$inboundSchema;
188
+
189
+ /**
190
+ * @internal
191
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
192
+ */
193
+ export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$ {
194
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$inboundSchema` instead. */
195
+ export const inboundSchema =
196
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$inboundSchema;
197
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$outboundSchema` instead. */
198
+ export const outboundSchema =
199
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$outboundSchema;
200
+ }
201
+
202
+ /** @internal */
203
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema:
204
+ z.ZodNativeEnum<
205
+ typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType
206
+ > = z.nativeEnum(
207
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType,
208
+ );
209
+
210
+ /** @internal */
211
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema:
212
+ z.ZodNativeEnum<
213
+ typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType
214
+ > =
215
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema;
216
+
217
+ /**
218
+ * @internal
219
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
220
+ */
221
+ export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$ {
222
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema` instead. */
223
+ export const inboundSchema =
224
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema;
225
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema` instead. */
226
+ export const outboundSchema =
227
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema;
228
+ }
229
+
230
+ /** @internal */
231
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema:
232
+ z.ZodNativeEnum<
233
+ typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType
234
+ > = z.nativeEnum(
235
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType,
236
+ );
237
+
238
+ /** @internal */
239
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$outboundSchema:
240
+ z.ZodNativeEnum<
241
+ typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType
242
+ > =
243
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema;
244
+
245
+ /**
246
+ * @internal
247
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
248
+ */
249
+ export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$ {
250
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema` instead. */
251
+ export const inboundSchema =
252
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema;
253
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$outboundSchema` instead. */
254
+ export const outboundSchema =
255
+ CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$outboundSchema;
256
+ }
257
+
258
+ /** @internal */
259
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$inboundSchema:
260
+ z.ZodNativeEnum<
261
+ typeof CommercialSecuredLoanCommercialApplicationRelationshipsAssetType
262
+ > = z.nativeEnum(
263
+ CommercialSecuredLoanCommercialApplicationRelationshipsAssetType,
264
+ );
265
+
266
+ /** @internal */
267
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$outboundSchema:
268
+ z.ZodNativeEnum<
269
+ typeof CommercialSecuredLoanCommercialApplicationRelationshipsAssetType
270
+ > =
271
+ CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$inboundSchema;
272
+
273
+ /**
274
+ * @internal
275
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
276
+ */
277
+ export namespace CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$ {
278
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$inboundSchema` instead. */
279
+ export const inboundSchema =
280
+ CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$inboundSchema;
281
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$outboundSchema` instead. */
282
+ export const outboundSchema =
283
+ CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$outboundSchema;
284
+ }
285
+
286
+ /** @internal */
287
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$inboundSchema:
288
+ z.ZodNativeEnum<
289
+ typeof CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType
290
+ > = z.nativeEnum(
291
+ CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType,
292
+ );
293
+
294
+ /** @internal */
295
+ export const CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$outboundSchema:
296
+ z.ZodNativeEnum<
297
+ typeof CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType
298
+ > =
299
+ CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$inboundSchema;
300
+
301
+ /**
302
+ * @internal
303
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
304
+ */
305
+ export namespace CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$ {
306
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$inboundSchema` instead. */
307
+ export const inboundSchema =
308
+ CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$inboundSchema;
309
+ /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$outboundSchema` instead. */
310
+ export const outboundSchema =
311
+ CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$outboundSchema;
312
+ }
313
+
314
+ export type Data = {
315
+ type: CommercialSecuredLoanCommercialApplicationRelationshipsType;
316
+ /**
317
+ * Loan details model
318
+ */
319
+ attributes: LoanDetailsAttributes;
320
+ links?: { [k: string]: LinkObject } | undefined;
321
+ meta?: { [k: string]: any } | undefined;
322
+ };
323
+
324
+ export type LoanDetails = {
325
+ data: Data;
326
+ };
327
+
99
328
  export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData =
100
329
  {
101
330
  type:
@@ -111,15 +340,6 @@ export type Addresses = {
111
340
  >;
112
341
  };
113
342
 
114
- export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType =
115
- {
116
- CustomerLiabilities: "customer-liabilities",
117
- } as const;
118
- export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType =
119
- ClosedEnum<
120
- typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType
121
- >;
122
-
123
343
  export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData =
124
344
  {
125
345
  type:
@@ -135,15 +355,6 @@ export type Liabilities = {
135
355
  >;
136
356
  };
137
357
 
138
- export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType =
139
- {
140
- CustomerAssets: "customer-assets",
141
- } as const;
142
- export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType =
143
- ClosedEnum<
144
- typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType
145
- >;
146
-
147
358
  export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData =
148
359
  {
149
360
  type:
@@ -180,15 +391,6 @@ export type Customers = {
180
391
  data: Array<CommercialSecuredLoanCommercialApplicationRelationshipsData>;
181
392
  };
182
393
 
183
- export const CommercialSecuredLoanCommercialApplicationRelationshipsAssetType =
184
- {
185
- Assets: "assets",
186
- } as const;
187
- export type CommercialSecuredLoanCommercialApplicationRelationshipsAssetType =
188
- ClosedEnum<
189
- typeof CommercialSecuredLoanCommercialApplicationRelationshipsAssetType
190
- >;
191
-
192
394
  export type CommercialSecuredLoanCommercialApplicationRelationshipsAssetData = {
193
395
  type: CommercialSecuredLoanCommercialApplicationRelationshipsAssetType;
194
396
  /**
@@ -203,15 +405,6 @@ export type Asset = {
203
405
  data: CommercialSecuredLoanCommercialApplicationRelationshipsAssetData;
204
406
  };
205
407
 
206
- export const CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType =
207
- {
208
- Entities: "entities",
209
- } as const;
210
- export type CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType =
211
- ClosedEnum<
212
- typeof CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType
213
- >;
214
-
215
408
  export type CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData =
216
409
  {
217
410
  type: CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType;
@@ -233,31 +426,6 @@ export type CommercialSecuredLoanCommercialApplicationRelationships = {
233
426
  entities?: Entities | undefined;
234
427
  };
235
428
 
236
- /** @internal */
237
- export const CommercialSecuredLoanCommercialApplicationRelationshipsType$inboundSchema:
238
- z.ZodNativeEnum<
239
- typeof CommercialSecuredLoanCommercialApplicationRelationshipsType
240
- > = z.nativeEnum(CommercialSecuredLoanCommercialApplicationRelationshipsType);
241
-
242
- /** @internal */
243
- export const CommercialSecuredLoanCommercialApplicationRelationshipsType$outboundSchema:
244
- z.ZodNativeEnum<
245
- typeof CommercialSecuredLoanCommercialApplicationRelationshipsType
246
- > = CommercialSecuredLoanCommercialApplicationRelationshipsType$inboundSchema;
247
-
248
- /**
249
- * @internal
250
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
251
- */
252
- export namespace CommercialSecuredLoanCommercialApplicationRelationshipsType$ {
253
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsType$inboundSchema` instead. */
254
- export const inboundSchema =
255
- CommercialSecuredLoanCommercialApplicationRelationshipsType$inboundSchema;
256
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsType$outboundSchema` instead. */
257
- export const outboundSchema =
258
- CommercialSecuredLoanCommercialApplicationRelationshipsType$outboundSchema;
259
- }
260
-
261
429
  /** @internal */
262
430
  export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
263
431
  .object({
@@ -363,62 +531,6 @@ export function loanDetailsFromJSON(
363
531
  );
364
532
  }
365
533
 
366
- /** @internal */
367
- export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$inboundSchema:
368
- z.ZodNativeEnum<
369
- typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType
370
- > = z.nativeEnum(
371
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType,
372
- );
373
-
374
- /** @internal */
375
- export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$outboundSchema:
376
- z.ZodNativeEnum<
377
- typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType
378
- > =
379
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$inboundSchema;
380
-
381
- /**
382
- * @internal
383
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
384
- */
385
- export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$ {
386
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$inboundSchema` instead. */
387
- export const inboundSchema =
388
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$inboundSchema;
389
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$outboundSchema` instead. */
390
- export const outboundSchema =
391
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$outboundSchema;
392
- }
393
-
394
- /** @internal */
395
- export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$inboundSchema:
396
- z.ZodNativeEnum<
397
- typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType
398
- > = z.nativeEnum(
399
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType,
400
- );
401
-
402
- /** @internal */
403
- export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$outboundSchema:
404
- z.ZodNativeEnum<
405
- typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType
406
- > =
407
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$inboundSchema;
408
-
409
- /**
410
- * @internal
411
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
412
- */
413
- export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$ {
414
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$inboundSchema` instead. */
415
- export const inboundSchema =
416
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$inboundSchema;
417
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$outboundSchema` instead. */
418
- export const outboundSchema =
419
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$outboundSchema;
420
- }
421
-
422
534
  /** @internal */
423
535
  export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema:
424
536
  z.ZodType<
@@ -559,34 +671,6 @@ export function addressesFromJSON(
559
671
  );
560
672
  }
561
673
 
562
- /** @internal */
563
- export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema:
564
- z.ZodNativeEnum<
565
- typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType
566
- > = z.nativeEnum(
567
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType,
568
- );
569
-
570
- /** @internal */
571
- export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema:
572
- z.ZodNativeEnum<
573
- typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType
574
- > =
575
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema;
576
-
577
- /**
578
- * @internal
579
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
580
- */
581
- export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$ {
582
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema` instead. */
583
- export const inboundSchema =
584
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema;
585
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema` instead. */
586
- export const outboundSchema =
587
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema;
588
- }
589
-
590
674
  /** @internal */
591
675
  export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData$inboundSchema:
592
676
  z.ZodType<
@@ -727,34 +811,6 @@ export function liabilitiesFromJSON(
727
811
  );
728
812
  }
729
813
 
730
- /** @internal */
731
- export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema:
732
- z.ZodNativeEnum<
733
- typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType
734
- > = z.nativeEnum(
735
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType,
736
- );
737
-
738
- /** @internal */
739
- export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$outboundSchema:
740
- z.ZodNativeEnum<
741
- typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType
742
- > =
743
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema;
744
-
745
- /**
746
- * @internal
747
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
748
- */
749
- export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$ {
750
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema` instead. */
751
- export const inboundSchema =
752
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema;
753
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$outboundSchema` instead. */
754
- export const outboundSchema =
755
- CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataRelationshipsAssetsType$outboundSchema;
756
- }
757
-
758
814
  /** @internal */
759
815
  export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$inboundSchema:
760
816
  z.ZodType<
@@ -1089,34 +1145,6 @@ export function customersFromJSON(
1089
1145
  );
1090
1146
  }
1091
1147
 
1092
- /** @internal */
1093
- export const CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$inboundSchema:
1094
- z.ZodNativeEnum<
1095
- typeof CommercialSecuredLoanCommercialApplicationRelationshipsAssetType
1096
- > = z.nativeEnum(
1097
- CommercialSecuredLoanCommercialApplicationRelationshipsAssetType,
1098
- );
1099
-
1100
- /** @internal */
1101
- export const CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$outboundSchema:
1102
- z.ZodNativeEnum<
1103
- typeof CommercialSecuredLoanCommercialApplicationRelationshipsAssetType
1104
- > =
1105
- CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$inboundSchema;
1106
-
1107
- /**
1108
- * @internal
1109
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1110
- */
1111
- export namespace CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$ {
1112
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$inboundSchema` instead. */
1113
- export const inboundSchema =
1114
- CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$inboundSchema;
1115
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$outboundSchema` instead. */
1116
- export const outboundSchema =
1117
- CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$outboundSchema;
1118
- }
1119
-
1120
1148
  /** @internal */
1121
1149
  export const CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$inboundSchema:
1122
1150
  z.ZodType<
@@ -1247,34 +1275,6 @@ export function assetFromJSON(
1247
1275
  );
1248
1276
  }
1249
1277
 
1250
- /** @internal */
1251
- export const CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$inboundSchema:
1252
- z.ZodNativeEnum<
1253
- typeof CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType
1254
- > = z.nativeEnum(
1255
- CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType,
1256
- );
1257
-
1258
- /** @internal */
1259
- export const CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$outboundSchema:
1260
- z.ZodNativeEnum<
1261
- typeof CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType
1262
- > =
1263
- CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$inboundSchema;
1264
-
1265
- /**
1266
- * @internal
1267
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1268
- */
1269
- export namespace CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$ {
1270
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$inboundSchema` instead. */
1271
- export const inboundSchema =
1272
- CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$inboundSchema;
1273
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$outboundSchema` instead. */
1274
- export const outboundSchema =
1275
- CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$outboundSchema;
1276
- }
1277
-
1278
1278
  /** @internal */
1279
1279
  export const CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData$inboundSchema:
1280
1280
  z.ZodType<