@financeable/aggregation 0.13.3 → 0.14.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 (332) hide show
  1. package/.devcontainer/devcontainer.json +45 -0
  2. package/FUNCTIONS.md +240 -0
  3. package/RUNTIMES.md +48 -0
  4. package/core.js +17 -0
  5. package/core.js.map +1 -0
  6. package/examples/applicationsCreate.example.ts +179 -0
  7. package/examples/package-lock.json +610 -0
  8. package/examples/package.json +18 -0
  9. package/hooks/hooks.js +84 -0
  10. package/hooks/hooks.js.map +1 -0
  11. package/hooks/index.js +22 -0
  12. package/hooks/index.js.map +1 -0
  13. package/hooks/oauth2scopes.d.ts +13 -0
  14. package/hooks/oauth2scopes.d.ts.map +1 -0
  15. package/hooks/oauth2scopes.js +6 -0
  16. package/hooks/oauth2scopes.js.map +1 -0
  17. package/hooks/types.js +6 -0
  18. package/hooks/types.js.map +1 -0
  19. package/index.js +48 -0
  20. package/index.js.map +1 -0
  21. package/jsr.json +27 -0
  22. package/lib/base64.js +71 -0
  23. package/lib/base64.js.map +1 -0
  24. package/lib/config.d.ts +38 -0
  25. package/lib/config.d.ts.map +1 -0
  26. package/lib/config.js +35 -0
  27. package/lib/config.js.map +1 -0
  28. package/lib/dlv.d.ts +14 -0
  29. package/lib/dlv.d.ts.map +1 -0
  30. package/lib/dlv.js +49 -0
  31. package/lib/dlv.js.map +1 -0
  32. package/lib/encodings.js +379 -0
  33. package/lib/encodings.js.map +1 -0
  34. package/lib/env.js +82 -0
  35. package/lib/env.js.map +1 -0
  36. package/lib/files.d.ts +13 -0
  37. package/lib/files.d.ts.map +1 -0
  38. package/lib/files.js +77 -0
  39. package/lib/files.js.map +1 -0
  40. package/lib/http.d.ts +67 -0
  41. package/lib/http.d.ts.map +1 -0
  42. package/lib/http.js +217 -0
  43. package/lib/http.js.map +1 -0
  44. package/lib/is-plain-object.d.ts +2 -0
  45. package/lib/is-plain-object.d.ts.map +1 -0
  46. package/lib/is-plain-object.js +41 -0
  47. package/lib/is-plain-object.js.map +1 -0
  48. package/lib/logger.d.ts +6 -0
  49. package/lib/logger.d.ts.map +1 -0
  50. package/lib/logger.js +6 -0
  51. package/lib/logger.js.map +1 -0
  52. package/lib/matchers.js +218 -0
  53. package/lib/matchers.js.map +1 -0
  54. package/lib/primitives.d.ts +26 -0
  55. package/lib/primitives.d.ts.map +1 -0
  56. package/lib/primitives.js +111 -0
  57. package/lib/primitives.js.map +1 -0
  58. package/lib/retries.d.ts +38 -0
  59. package/lib/retries.d.ts.map +1 -0
  60. package/lib/retries.js +153 -0
  61. package/lib/retries.js.map +1 -0
  62. package/lib/schemas.js +62 -0
  63. package/lib/schemas.js.map +1 -0
  64. package/lib/sdks.js +274 -0
  65. package/lib/sdks.js.map +1 -0
  66. package/lib/security.js +145 -0
  67. package/lib/security.js.map +1 -0
  68. package/lib/url.d.ts +5 -0
  69. package/lib/url.d.ts.map +1 -0
  70. package/lib/url.js +25 -0
  71. package/lib/url.js.map +1 -0
  72. package/models/components/abnstatus.d.ts +10 -0
  73. package/models/components/abnstatus.d.ts.map +1 -0
  74. package/models/components/abnstatus.js +48 -0
  75. package/models/components/abnstatus.js.map +1 -0
  76. package/models/components/addressattributes.js +98 -0
  77. package/models/components/addressattributes.js.map +1 -0
  78. package/models/components/apierrorlinks.js +50 -0
  79. package/models/components/apierrorlinks.js.map +1 -0
  80. package/models/components/applicationresource.js +57 -0
  81. package/models/components/applicationresource.js.map +1 -0
  82. package/models/components/applicationstatus.js +53 -0
  83. package/models/components/applicationstatus.js.map +1 -0
  84. package/models/components/australianstatesandterritories.js +55 -0
  85. package/models/components/australianstatesandterritories.js.map +1 -0
  86. package/models/components/badrequesterror.js +69 -0
  87. package/models/components/badrequesterror.js.map +1 -0
  88. package/models/components/businessapplicationjsonapirelationships.js +126 -0
  89. package/models/components/businessapplicationjsonapirelationships.js.map +1 -0
  90. package/models/components/businessapplicationpayload.js +79 -0
  91. package/models/components/businessapplicationpayload.js.map +1 -0
  92. package/models/components/businessapplicationresource.js +82 -0
  93. package/models/components/businessapplicationresource.js.map +1 -0
  94. package/models/components/businessloanbusinessapplicationrelationships.js +221 -0
  95. package/models/components/businessloanbusinessapplicationrelationships.js.map +1 -0
  96. package/models/components/commercialapplicationjsonapirelationships.js +153 -0
  97. package/models/components/commercialapplicationjsonapirelationships.js.map +1 -0
  98. package/models/components/commercialsecuredapplicationpayload.js +88 -0
  99. package/models/components/commercialsecuredapplicationpayload.js.map +1 -0
  100. package/models/components/commercialsecuredapplicationresource.js +81 -0
  101. package/models/components/commercialsecuredapplicationresource.js.map +1 -0
  102. package/models/components/commercialsecuredloanassetattributes.js +223 -0
  103. package/models/components/commercialsecuredloanassetattributes.js.map +1 -0
  104. package/models/components/commercialsecuredloanassettype.js +73 -0
  105. package/models/components/commercialsecuredloanassettype.js.map +1 -0
  106. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +101 -6
  107. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
  108. package/models/components/commercialsecuredloancommercialapplicationrelationships.js +309 -0
  109. package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -0
  110. package/models/components/commercialsecuredloantypeofsale.js +53 -0
  111. package/models/components/commercialsecuredloantypeofsale.js.map +1 -0
  112. package/models/components/consumerapplicationjsonapirelationships.js +127 -0
  113. package/models/components/consumerapplicationjsonapirelationships.js.map +1 -0
  114. package/models/components/consumersecuredapplicationpayload.js +89 -0
  115. package/models/components/consumersecuredapplicationpayload.js.map +1 -0
  116. package/models/components/consumersecuredapplicationresource.js +82 -0
  117. package/models/components/consumersecuredapplicationresource.js.map +1 -0
  118. package/models/components/consumersecuredloanassetattributes.js +225 -0
  119. package/models/components/consumersecuredloanassetattributes.js.map +1 -0
  120. package/models/components/consumersecuredloanassettype.js +61 -0
  121. package/models/components/consumersecuredloanassettype.js.map +1 -0
  122. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +105 -10
  123. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
  124. package/models/components/consumersecuredloanconsumerapplicationrelationships.js +344 -0
  125. package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -0
  126. package/models/components/consumersecuredloantypeofsale.js +53 -0
  127. package/models/components/consumersecuredloantypeofsale.js.map +1 -0
  128. package/models/components/createsupportingdocumentsresponse.js +82 -0
  129. package/models/components/createsupportingdocumentsresponse.js.map +1 -0
  130. package/models/components/currencycodeiso4217.js +48 -0
  131. package/models/components/currencycodeiso4217.js.map +1 -0
  132. package/models/components/customerassetattributes.js +66 -0
  133. package/models/components/customerassetattributes.js.map +1 -0
  134. package/models/components/customerassettype.js +55 -0
  135. package/models/components/customerassettype.js.map +1 -0
  136. package/models/components/customerattributes.js +68 -0
  137. package/models/components/customerattributes.js.map +1 -0
  138. package/models/components/customerattributescreateitem.js +73 -0
  139. package/models/components/customerattributescreateitem.js.map +1 -0
  140. package/models/components/customeridtype.js +47 -0
  141. package/models/components/customeridtype.js.map +1 -0
  142. package/models/components/customerliabilityattributes.js +77 -0
  143. package/models/components/customerliabilityattributes.js.map +1 -0
  144. package/models/components/customerliabilityrepaymentfrequency.js +50 -0
  145. package/models/components/customerliabilityrepaymentfrequency.js.map +1 -0
  146. package/models/components/customerliabilitytype.js +53 -0
  147. package/models/components/customerliabilitytype.js.map +1 -0
  148. package/models/components/customertitle.js +51 -0
  149. package/models/components/customertitle.js.map +1 -0
  150. package/models/components/documenttype.js +64 -0
  151. package/models/components/documenttype.js.map +1 -0
  152. package/models/components/employerattributes.d.ts +58 -0
  153. package/models/components/employerattributes.d.ts.map +1 -0
  154. package/models/components/employerattributes.js +69 -0
  155. package/models/components/employerattributes.js.map +1 -0
  156. package/models/components/employmentstatus.d.ts +10 -0
  157. package/models/components/employmentstatus.d.ts.map +1 -0
  158. package/models/components/employmentstatus.js +47 -0
  159. package/models/components/employmentstatus.js.map +1 -0
  160. package/models/components/employmenttype.d.ts +15 -0
  161. package/models/components/employmenttype.d.ts.map +1 -0
  162. package/models/components/employmenttype.js +52 -0
  163. package/models/components/employmenttype.js.map +1 -0
  164. package/models/components/entityattributes.d.ts +4 -4
  165. package/models/components/entityattributes.d.ts.map +1 -1
  166. package/models/components/entityattributes.js +90 -0
  167. package/models/components/entityattributes.js.map +1 -0
  168. package/models/components/entityattributesinput.js +55 -0
  169. package/models/components/entityattributesinput.js.map +1 -0
  170. package/models/components/entitytype.d.ts +152 -0
  171. package/models/components/entitytype.d.ts.map +1 -0
  172. package/models/components/entitytype.js +190 -0
  173. package/models/components/entitytype.js.map +1 -0
  174. package/models/components/errorsource.js +52 -0
  175. package/models/components/errorsource.js.map +1 -0
  176. package/models/components/expenseattributes.js +55 -0
  177. package/models/components/expenseattributes.js.map +1 -0
  178. package/models/components/expensefrequency.js +48 -0
  179. package/models/components/expensefrequency.js.map +1 -0
  180. package/models/components/expensetype.js +65 -0
  181. package/models/components/expensetype.js.map +1 -0
  182. package/models/components/forbiddenerror.js +74 -0
  183. package/models/components/forbiddenerror.js.map +1 -0
  184. package/models/components/frequencytype.js +53 -0
  185. package/models/components/frequencytype.js.map +1 -0
  186. package/models/components/incomeattributes.js +55 -0
  187. package/models/components/incomeattributes.js.map +1 -0
  188. package/models/components/incomefrequency.js +49 -0
  189. package/models/components/incomefrequency.js.map +1 -0
  190. package/models/components/incometype.js +55 -0
  191. package/models/components/incometype.js.map +1 -0
  192. package/models/components/index.d.ts +7 -0
  193. package/models/components/index.d.ts.map +1 -1
  194. package/models/components/index.js +98 -0
  195. package/models/components/index.js.map +1 -0
  196. package/models/components/industry.d.ts +27 -0
  197. package/models/components/industry.d.ts.map +1 -0
  198. package/models/components/industry.js +65 -0
  199. package/models/components/industry.js.map +1 -0
  200. package/models/components/linkobject.js +66 -0
  201. package/models/components/linkobject.js.map +1 -0
  202. package/models/components/livingarrangements.js +51 -0
  203. package/models/components/livingarrangements.js.map +1 -0
  204. package/models/components/loandetailsattributes.js +256 -0
  205. package/models/components/loandetailsattributes.js.map +1 -0
  206. package/models/components/maritalstatus.js +49 -0
  207. package/models/components/maritalstatus.js.map +1 -0
  208. package/models/components/monetaryquantity.js +71 -0
  209. package/models/components/monetaryquantity.js.map +1 -0
  210. package/models/components/occupation.d.ts +201 -0
  211. package/models/components/occupation.d.ts.map +1 -0
  212. package/models/components/occupation.js +239 -0
  213. package/models/components/occupation.js.map +1 -0
  214. package/models/components/paginationlinks.js +53 -0
  215. package/models/components/paginationlinks.js.map +1 -0
  216. package/models/components/paginationmeta.js +60 -0
  217. package/models/components/paginationmeta.js.map +1 -0
  218. package/models/components/percentagequantity.js +67 -0
  219. package/models/components/percentagequantity.js.map +1 -0
  220. package/models/components/personalapplicationjsonapirelationships.js +101 -0
  221. package/models/components/personalapplicationjsonapirelationships.js.map +1 -0
  222. package/models/components/personalapplicationpayload.js +79 -0
  223. package/models/components/personalapplicationpayload.js.map +1 -0
  224. package/models/components/personalapplicationresource.js +82 -0
  225. package/models/components/personalapplicationresource.js.map +1 -0
  226. package/models/components/personalloanpersonalapplicationrelationships.d.ts +105 -10
  227. package/models/components/personalloanpersonalapplicationrelationships.d.ts.map +1 -1
  228. package/models/components/personalloanpersonalapplicationrelationships.js +311 -0
  229. package/models/components/personalloanpersonalapplicationrelationships.js.map +1 -0
  230. package/models/components/relationshipresourcenotfound.js +74 -0
  231. package/models/components/relationshipresourcenotfound.js.map +1 -0
  232. package/models/components/repaymentstructure.js +53 -0
  233. package/models/components/repaymentstructure.js.map +1 -0
  234. package/models/components/residencystatus.js +52 -0
  235. package/models/components/residencystatus.js.map +1 -0
  236. package/models/components/resourcenotfound.js +74 -0
  237. package/models/components/resourcenotfound.js.map +1 -0
  238. package/models/components/security.js +49 -0
  239. package/models/components/security.js.map +1 -0
  240. package/models/components/supportingdocumentattributes.js +53 -0
  241. package/models/components/supportingdocumentattributes.js.map +1 -0
  242. package/models/components/supportingdocumentattributesinput.js +51 -0
  243. package/models/components/supportingdocumentattributesinput.js.map +1 -0
  244. package/models/components/supportingdocumentrelationships.js +269 -0
  245. package/models/components/supportingdocumentrelationships.js.map +1 -0
  246. package/models/components/supportingdocumentresource.js +61 -0
  247. package/models/components/supportingdocumentresource.js.map +1 -0
  248. package/models/components/tokenrequest.js +68 -0
  249. package/models/components/tokenrequest.js.map +1 -0
  250. package/models/components/tokenresponse.js +60 -0
  251. package/models/components/tokenresponse.js.map +1 -0
  252. package/models/components/uploadmimetype.js +55 -0
  253. package/models/components/uploadmimetype.js.map +1 -0
  254. package/models/errors/apierror.d.ts +10 -0
  255. package/models/errors/apierror.d.ts.map +1 -0
  256. package/models/errors/apierror.js +34 -0
  257. package/models/errors/apierror.js.map +1 -0
  258. package/models/errors/financeableerror.d.ts +19 -0
  259. package/models/errors/financeableerror.d.ts.map +1 -0
  260. package/models/errors/financeableerror.js +20 -0
  261. package/models/errors/financeableerror.js.map +1 -0
  262. package/models/errors/httpclienterrors.d.ts +44 -0
  263. package/models/errors/httpclienterrors.d.ts.map +1 -0
  264. package/models/errors/httpclienterrors.js +78 -0
  265. package/models/errors/httpclienterrors.js.map +1 -0
  266. package/models/errors/index.js +25 -0
  267. package/models/errors/index.js.map +1 -0
  268. package/models/errors/responsevalidationerror.js +66 -0
  269. package/models/errors/responsevalidationerror.js.map +1 -0
  270. package/models/errors/sdkvalidationerror.js +129 -0
  271. package/models/errors/sdkvalidationerror.js.map +1 -0
  272. package/models/operations/createapplication.js +278 -0
  273. package/models/operations/createapplication.js.map +1 -0
  274. package/models/operations/getapplication.js +256 -0
  275. package/models/operations/getapplication.js.map +1 -0
  276. package/models/operations/index.js +24 -0
  277. package/models/operations/index.js.map +1 -0
  278. package/models/operations/listapplications.js +94 -0
  279. package/models/operations/listapplications.js.map +1 -0
  280. package/models/operations/supportingdocumentscreate.js +133 -0
  281. package/models/operations/supportingdocumentscreate.js.map +1 -0
  282. package/package.json +1 -16
  283. package/sdk/index.js +21 -0
  284. package/sdk/index.js.map +1 -0
  285. package/sdk/sdk.js +23 -0
  286. package/sdk/sdk.js.map +1 -0
  287. package/src/lib/config.ts +3 -3
  288. package/src/models/components/abnstatus.ts +16 -0
  289. package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +241 -13
  290. package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +275 -19
  291. package/src/models/components/employerattributes.ts +97 -0
  292. package/src/models/components/employmentstatus.ts +17 -0
  293. package/src/models/components/employmenttype.ts +22 -0
  294. package/src/models/components/entityattributes.ts +9 -6
  295. package/src/models/components/entitytype.ts +215 -0
  296. package/src/models/components/index.ts +7 -0
  297. package/src/models/components/industry.ts +36 -0
  298. package/src/models/components/occupation.ts +226 -0
  299. package/src/models/components/personalloanpersonalapplicationrelationships.ts +272 -20
  300. package/tsconfig.json +40 -0
  301. package/types/async.d.ts +23 -0
  302. package/types/async.d.ts.map +1 -0
  303. package/types/async.js +44 -0
  304. package/types/async.js.map +1 -0
  305. package/types/blobs.js +62 -0
  306. package/types/blobs.js.map +1 -0
  307. package/types/constdatetime.js +46 -0
  308. package/types/constdatetime.js.map +1 -0
  309. package/types/enums.js +66 -0
  310. package/types/enums.js.map +1 -0
  311. package/types/fp.d.ts +31 -0
  312. package/types/fp.d.ts.map +1 -0
  313. package/types/fp.js +37 -0
  314. package/types/fp.js.map +1 -0
  315. package/types/index.js +29 -0
  316. package/types/index.js.map +1 -0
  317. package/types/operations.d.ts +27 -0
  318. package/types/operations.d.ts.map +1 -0
  319. package/types/operations.js +83 -0
  320. package/types/operations.js.map +1 -0
  321. package/types/rfcdate.d.ts +21 -0
  322. package/types/rfcdate.d.ts.map +1 -0
  323. package/types/rfcdate.js +46 -0
  324. package/types/rfcdate.js.map +1 -0
  325. package/types/streams.d.ts +2 -0
  326. package/types/streams.d.ts.map +1 -0
  327. package/types/streams.js +18 -0
  328. package/types/streams.js.map +1 -0
  329. package/types/unrecognized.d.ts +16 -0
  330. package/types/unrecognized.d.ts.map +1 -0
  331. package/types/unrecognized.js +34 -0
  332. package/types/unrecognized.js.map +1 -0
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.BadRequestError$inboundSchema = exports.BadRequestErrorTitle$inboundSchema = exports.BadRequestErrorCode$inboundSchema = exports.BadRequestErrorTitle = exports.BadRequestErrorCode = void 0;
40
+ exports.badRequestErrorFromJSON = badRequestErrorFromJSON;
41
+ const z = __importStar(require("zod/v3"));
42
+ const schemas_js_1 = require("../../lib/schemas.js");
43
+ const apierrorlinks_js_1 = require("./apierrorlinks.js");
44
+ const errorsource_js_1 = require("./errorsource.js");
45
+ exports.BadRequestErrorCode = {
46
+ BadRequest: "BadRequest",
47
+ };
48
+ exports.BadRequestErrorTitle = {
49
+ BadRequest: "Bad Request",
50
+ };
51
+ /** @internal */
52
+ exports.BadRequestErrorCode$inboundSchema = z.nativeEnum(exports.BadRequestErrorCode);
53
+ /** @internal */
54
+ exports.BadRequestErrorTitle$inboundSchema = z.nativeEnum(exports.BadRequestErrorTitle);
55
+ /** @internal */
56
+ exports.BadRequestError$inboundSchema = z.object({
57
+ id: z.string().optional(),
58
+ links: apierrorlinks_js_1.APIErrorLinks$inboundSchema.optional(),
59
+ status: z.literal("400"),
60
+ code: exports.BadRequestErrorCode$inboundSchema,
61
+ title: exports.BadRequestErrorTitle$inboundSchema,
62
+ detail: z.string(),
63
+ source: errorsource_js_1.ErrorSource$inboundSchema.optional(),
64
+ meta: z.record(z.any()).optional(),
65
+ });
66
+ function badRequestErrorFromJSON(jsonString) {
67
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.BadRequestError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BadRequestError' from JSON`);
68
+ }
69
+ //# sourceMappingURL=badrequesterror.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badrequesterror.js","sourceRoot":"","sources":["../../src/models/components/badrequesterror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DH,0DAQC;AAlED,0CAA4B;AAC5B,qDAAiD;AAIjD,yDAAgF;AAChF,qDAA0E;AAE7D,QAAA,mBAAmB,GAAG;IACjC,UAAU,EAAE,YAAY;CAChB,CAAC;AAGE,QAAA,oBAAoB,GAAG;IAClC,UAAU,EAAE,aAAa;CACjB,CAAC;AAiBX,gBAAgB;AACH,QAAA,iCAAiC,GAE1C,CAAC,CAAC,UAAU,CAAC,2BAAmB,CAAC,CAAC;AAEtC,gBAAgB;AACH,QAAA,kCAAkC,GAE3C,CAAC,CAAC,UAAU,CAAC,4BAAoB,CAAC,CAAC;AAEvC,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,KAAK,EAAE,8CAA2B,CAAC,QAAQ,EAAE;IAC7C,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IACxB,IAAI,EAAE,yCAAiC;IACvC,KAAK,EAAE,0CAAkC;IACzC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,MAAM,EAAE,0CAAyB,CAAC,QAAQ,EAAE;IAC5C,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAEH,SAAgB,uBAAuB,CACrC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.BusinessApplicationJsonApiRelationships$inboundSchema = exports.BusinessApplicationJsonApiRelationshipsEntities$inboundSchema = exports.BusinessApplicationJsonApiRelationshipsEntitiesData$inboundSchema = exports.BusinessApplicationJsonApiRelationshipsEntitiesType$inboundSchema = exports.BusinessApplicationJsonApiRelationshipsCustomers$inboundSchema = exports.BusinessApplicationJsonApiRelationshipsCustomersData$inboundSchema = exports.BusinessApplicationJsonApiRelationshipsCustomersType$inboundSchema = exports.BusinessApplicationJsonApiRelationshipsLoanDetails$inboundSchema = exports.BusinessApplicationJsonApiRelationshipsData$inboundSchema = exports.BusinessApplicationJsonApiRelationshipsType$inboundSchema = exports.BusinessApplicationJsonApiRelationshipsEntitiesType = exports.BusinessApplicationJsonApiRelationshipsCustomersType = exports.BusinessApplicationJsonApiRelationshipsType = void 0;
40
+ exports.businessApplicationJsonApiRelationshipsDataFromJSON = businessApplicationJsonApiRelationshipsDataFromJSON;
41
+ exports.businessApplicationJsonApiRelationshipsLoanDetailsFromJSON = businessApplicationJsonApiRelationshipsLoanDetailsFromJSON;
42
+ exports.businessApplicationJsonApiRelationshipsCustomersDataFromJSON = businessApplicationJsonApiRelationshipsCustomersDataFromJSON;
43
+ exports.businessApplicationJsonApiRelationshipsCustomersFromJSON = businessApplicationJsonApiRelationshipsCustomersFromJSON;
44
+ exports.businessApplicationJsonApiRelationshipsEntitiesDataFromJSON = businessApplicationJsonApiRelationshipsEntitiesDataFromJSON;
45
+ exports.businessApplicationJsonApiRelationshipsEntitiesFromJSON = businessApplicationJsonApiRelationshipsEntitiesFromJSON;
46
+ exports.businessApplicationJsonApiRelationshipsFromJSON = businessApplicationJsonApiRelationshipsFromJSON;
47
+ const z = __importStar(require("zod/v3"));
48
+ const schemas_js_1 = require("../../lib/schemas.js");
49
+ const linkobject_js_1 = require("./linkobject.js");
50
+ exports.BusinessApplicationJsonApiRelationshipsType = {
51
+ LoanDetails: "loan-details",
52
+ };
53
+ exports.BusinessApplicationJsonApiRelationshipsCustomersType = {
54
+ Customers: "customers",
55
+ };
56
+ exports.BusinessApplicationJsonApiRelationshipsEntitiesType = {
57
+ Entities: "entities",
58
+ };
59
+ /** @internal */
60
+ exports.BusinessApplicationJsonApiRelationshipsType$inboundSchema = z
61
+ .nativeEnum(exports.BusinessApplicationJsonApiRelationshipsType);
62
+ /** @internal */
63
+ exports.BusinessApplicationJsonApiRelationshipsData$inboundSchema = z.object({
64
+ type: exports.BusinessApplicationJsonApiRelationshipsType$inboundSchema,
65
+ id: z.string(),
66
+ });
67
+ function businessApplicationJsonApiRelationshipsDataFromJSON(jsonString) {
68
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.BusinessApplicationJsonApiRelationshipsData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BusinessApplicationJsonApiRelationshipsData' from JSON`);
69
+ }
70
+ /** @internal */
71
+ exports.BusinessApplicationJsonApiRelationshipsLoanDetails$inboundSchema = z.object({
72
+ data: z.lazy(() => exports.BusinessApplicationJsonApiRelationshipsData$inboundSchema),
73
+ links: z.record(linkobject_js_1.LinkObject$inboundSchema).optional(),
74
+ meta: z.record(z.any()).optional(),
75
+ });
76
+ function businessApplicationJsonApiRelationshipsLoanDetailsFromJSON(jsonString) {
77
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.BusinessApplicationJsonApiRelationshipsLoanDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BusinessApplicationJsonApiRelationshipsLoanDetails' from JSON`);
78
+ }
79
+ /** @internal */
80
+ exports.BusinessApplicationJsonApiRelationshipsCustomersType$inboundSchema = z.nativeEnum(exports.BusinessApplicationJsonApiRelationshipsCustomersType);
81
+ /** @internal */
82
+ exports.BusinessApplicationJsonApiRelationshipsCustomersData$inboundSchema = z.object({
83
+ type: exports.BusinessApplicationJsonApiRelationshipsCustomersType$inboundSchema,
84
+ id: z.string(),
85
+ });
86
+ function businessApplicationJsonApiRelationshipsCustomersDataFromJSON(jsonString) {
87
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.BusinessApplicationJsonApiRelationshipsCustomersData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BusinessApplicationJsonApiRelationshipsCustomersData' from JSON`);
88
+ }
89
+ /** @internal */
90
+ exports.BusinessApplicationJsonApiRelationshipsCustomers$inboundSchema = z.object({
91
+ data: z.array(z.lazy(() => exports.BusinessApplicationJsonApiRelationshipsCustomersData$inboundSchema)),
92
+ links: z.record(linkobject_js_1.LinkObject$inboundSchema).optional(),
93
+ meta: z.record(z.any()).optional(),
94
+ });
95
+ function businessApplicationJsonApiRelationshipsCustomersFromJSON(jsonString) {
96
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.BusinessApplicationJsonApiRelationshipsCustomers$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BusinessApplicationJsonApiRelationshipsCustomers' from JSON`);
97
+ }
98
+ /** @internal */
99
+ exports.BusinessApplicationJsonApiRelationshipsEntitiesType$inboundSchema = z.nativeEnum(exports.BusinessApplicationJsonApiRelationshipsEntitiesType);
100
+ /** @internal */
101
+ exports.BusinessApplicationJsonApiRelationshipsEntitiesData$inboundSchema = z.object({
102
+ type: exports.BusinessApplicationJsonApiRelationshipsEntitiesType$inboundSchema,
103
+ id: z.string(),
104
+ });
105
+ function businessApplicationJsonApiRelationshipsEntitiesDataFromJSON(jsonString) {
106
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.BusinessApplicationJsonApiRelationshipsEntitiesData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BusinessApplicationJsonApiRelationshipsEntitiesData' from JSON`);
107
+ }
108
+ /** @internal */
109
+ exports.BusinessApplicationJsonApiRelationshipsEntities$inboundSchema = z.object({
110
+ data: z.array(z.lazy(() => exports.BusinessApplicationJsonApiRelationshipsEntitiesData$inboundSchema)),
111
+ links: z.record(linkobject_js_1.LinkObject$inboundSchema).optional(),
112
+ meta: z.record(z.any()).optional(),
113
+ });
114
+ function businessApplicationJsonApiRelationshipsEntitiesFromJSON(jsonString) {
115
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.BusinessApplicationJsonApiRelationshipsEntities$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BusinessApplicationJsonApiRelationshipsEntities' from JSON`);
116
+ }
117
+ /** @internal */
118
+ exports.BusinessApplicationJsonApiRelationships$inboundSchema = z.object({
119
+ loanDetails: z.lazy(() => exports.BusinessApplicationJsonApiRelationshipsLoanDetails$inboundSchema).optional(),
120
+ customers: z.lazy(() => exports.BusinessApplicationJsonApiRelationshipsCustomers$inboundSchema).optional(),
121
+ entities: z.lazy(() => exports.BusinessApplicationJsonApiRelationshipsEntities$inboundSchema).optional(),
122
+ });
123
+ function businessApplicationJsonApiRelationshipsFromJSON(jsonString) {
124
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.BusinessApplicationJsonApiRelationships$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BusinessApplicationJsonApiRelationships' from JSON`);
125
+ }
126
+ //# sourceMappingURL=businessapplicationjsonapirelationships.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"businessapplicationjsonapirelationships.js","sourceRoot":"","sources":["../../src/models/components/businessapplicationjsonapirelationships.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA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AAC;AAEH,SAAgB,+CAA+C,CAC7D,UAAkB;IAKlB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,6DAAqD,CAAC,KAAK,CACzD,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,qEAAqE,CACtE,CAAC;AACJ,CAAC"}
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.BusinessApplicationPayload$outboundSchema = exports.BusinessApplicationPayloadAttributes$outboundSchema = exports.BusinessApplicationPayloadApplicationType$outboundSchema = exports.BusinessApplicationPayloadType$outboundSchema = exports.BusinessApplicationPayloadApplicationType = exports.BusinessApplicationPayloadType = void 0;
40
+ exports.businessApplicationPayloadAttributesToJSON = businessApplicationPayloadAttributesToJSON;
41
+ exports.businessApplicationPayloadToJSON = businessApplicationPayloadToJSON;
42
+ const z = __importStar(require("zod/v3"));
43
+ const businessloanbusinessapplicationrelationships_js_1 = require("./businessloanbusinessapplicationrelationships.js");
44
+ const linkobject_js_1 = require("./linkobject.js");
45
+ exports.BusinessApplicationPayloadType = {
46
+ BusinessApplications: "business-applications",
47
+ };
48
+ /**
49
+ * Type of the loan application
50
+ */
51
+ exports.BusinessApplicationPayloadApplicationType = {
52
+ Business: "business",
53
+ };
54
+ /** @internal */
55
+ exports.BusinessApplicationPayloadType$outboundSchema = z.nativeEnum(exports.BusinessApplicationPayloadType);
56
+ /** @internal */
57
+ exports.BusinessApplicationPayloadApplicationType$outboundSchema = z
58
+ .nativeEnum(exports.BusinessApplicationPayloadApplicationType);
59
+ /** @internal */
60
+ exports.BusinessApplicationPayloadAttributes$outboundSchema = z.object({
61
+ applicationType: exports.BusinessApplicationPayloadApplicationType$outboundSchema,
62
+ associatedBrokerEmail: z.string(),
63
+ });
64
+ function businessApplicationPayloadAttributesToJSON(businessApplicationPayloadAttributes) {
65
+ return JSON.stringify(exports.BusinessApplicationPayloadAttributes$outboundSchema.parse(businessApplicationPayloadAttributes));
66
+ }
67
+ /** @internal */
68
+ exports.BusinessApplicationPayload$outboundSchema = z.object({
69
+ type: exports.BusinessApplicationPayloadType$outboundSchema,
70
+ attributes: z.lazy(() => exports.BusinessApplicationPayloadAttributes$outboundSchema),
71
+ relationships: businessloanbusinessapplicationrelationships_js_1.BusinessLoanBusinessApplicationRelationships$outboundSchema
72
+ .optional(),
73
+ links: z.record(linkobject_js_1.LinkObject$outboundSchema).optional(),
74
+ meta: z.record(z.any()).optional(),
75
+ });
76
+ function businessApplicationPayloadToJSON(businessApplicationPayload) {
77
+ return JSON.stringify(exports.BusinessApplicationPayload$outboundSchema.parse(businessApplicationPayload));
78
+ }
79
+ //# sourceMappingURL=businessapplicationpayload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"businessapplicationpayload.js","sourceRoot":"","sources":["../../src/models/components/businessapplicationpayload.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFH,gGAQC;AA2BD,4EAMC;AA7HD,0CAA4B;AAE5B,uHAI2D;AAC3D,mDAIyB;AAEZ,QAAA,8BAA8B,GAAG;IAC5C,oBAAoB,EAAE,uBAAuB;CACrC,CAAC;AAKX;;GAEG;AACU,QAAA,yCAAyC,GAAG;IACvD,QAAQ,EAAE,UAAU;CACZ,CAAC;AAiCX,gBAAgB;AACH,QAAA,6CAA6C,GAEtD,CAAC,CAAC,UAAU,CAAC,sCAA8B,CAAC,CAAC;AAEjD,gBAAgB;AACH,QAAA,wDAAwD,GACC,CAAC;KAClE,UAAU,CAAC,iDAAyC,CAAC,CAAC;AAQ3D,gBAAgB;AACH,QAAA,mDAAmD,GAI5D,CAAC,CAAC,MAAM,CAAC;IACX,eAAe,EAAE,gEAAwD;IACzE,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE;CAClC,CAAC,CAAC;AAEH,SAAgB,0CAA0C,CACxD,oCAA0E;IAE1E,OAAO,IAAI,CAAC,SAAS,CACnB,2DAAmD,CAAC,KAAK,CACvD,oCAAoC,CACrC,CACF,CAAC;AACJ,CAAC;AAaD,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,qDAA6C;IACnD,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,2DAAmD,CAAC;IAC7E,aAAa,EAAE,6GAA2D;SACvE,QAAQ,EAAE;IACb,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,yCAAyB,CAAC,CAAC,QAAQ,EAAE;IACrD,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAEH,SAAgB,gCAAgC,CAC9C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,iDAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC"}
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.BusinessApplicationResource$inboundSchema = exports.BusinessApplicationResourceAttributes$inboundSchema = exports.BusinessApplicationResourceApplicationType$inboundSchema = exports.BusinessApplicationResourceApplicationType = void 0;
40
+ exports.businessApplicationResourceAttributesFromJSON = businessApplicationResourceAttributesFromJSON;
41
+ exports.businessApplicationResourceFromJSON = businessApplicationResourceFromJSON;
42
+ const z = __importStar(require("zod/v3"));
43
+ const schemas_js_1 = require("../../lib/schemas.js");
44
+ const applicationstatus_js_1 = require("./applicationstatus.js");
45
+ const businessapplicationjsonapirelationships_js_1 = require("./businessapplicationjsonapirelationships.js");
46
+ const linkobject_js_1 = require("./linkobject.js");
47
+ /**
48
+ * Type of the loan application
49
+ */
50
+ exports.BusinessApplicationResourceApplicationType = {
51
+ Business: "business",
52
+ };
53
+ /** @internal */
54
+ exports.BusinessApplicationResourceApplicationType$inboundSchema = z
55
+ .nativeEnum(exports.BusinessApplicationResourceApplicationType);
56
+ /** @internal */
57
+ exports.BusinessApplicationResourceAttributes$inboundSchema = z.object({
58
+ id: z.string().optional(),
59
+ humanId: z.string(),
60
+ applicationType: exports.BusinessApplicationResourceApplicationType$inboundSchema,
61
+ status: applicationstatus_js_1.ApplicationStatus$inboundSchema,
62
+ settlementDate: z.string().optional(),
63
+ lenderApplicationReference: z.string().optional(),
64
+ createdAt: z.string().optional(),
65
+ updatedAt: z.string().optional(),
66
+ });
67
+ function businessApplicationResourceAttributesFromJSON(jsonString) {
68
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.BusinessApplicationResourceAttributes$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BusinessApplicationResourceAttributes' from JSON`);
69
+ }
70
+ /** @internal */
71
+ exports.BusinessApplicationResource$inboundSchema = z.object({
72
+ type: z.literal("business-applications"),
73
+ id: z.string().optional(),
74
+ attributes: z.lazy(() => exports.BusinessApplicationResourceAttributes$inboundSchema),
75
+ relationships: businessapplicationjsonapirelationships_js_1.BusinessApplicationJsonApiRelationships$inboundSchema,
76
+ links: z.record(linkobject_js_1.LinkObject$inboundSchema).optional(),
77
+ meta: z.record(z.any()).optional(),
78
+ });
79
+ function businessApplicationResourceFromJSON(jsonString) {
80
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.BusinessApplicationResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BusinessApplicationResource' from JSON`);
81
+ }
82
+ //# sourceMappingURL=businessapplicationresource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"businessapplicationresource.js","sourceRoot":"","sources":["../../src/models/components/businessapplicationresource.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2GH,sGASC;AAgBD,kFAQC;AA1ID,0CAA4B;AAC5B,qDAAiD;AAIjD,iEAGgC;AAChC,6GAGsD;AACtD,mDAAuE;AAEvE;;GAEG;AACU,QAAA,0CAA0C,GAAG;IACxD,QAAQ,EAAE,UAAU;CACZ,CAAC;AAgEX,gBAAgB;AACH,QAAA,wDAAwD,GACE,CAAC;KACnE,UAAU,CAAC,kDAA0C,CAAC,CAAC;AAE5D,gBAAgB;AACH,QAAA,mDAAmD,GAI5D,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,eAAe,EAAE,gEAAwD;IACzE,MAAM,EAAE,sDAA+B;IACvC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AAEH,SAAgB,6CAA6C,CAC3D,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,2DAAmD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1E,mEAAmE,CACpE,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC;IACxC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,2DAAmD,CAAC;IAC7E,aAAa,EAAE,kGAAqD;IACpE,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,wCAAwB,CAAC,CAAC,QAAQ,EAAE;IACpD,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAEH,SAAgB,mCAAmC,CACjD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iDAAyC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrE,yDAAyD,CAC1D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,221 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.BusinessLoanBusinessApplicationRelationships$outboundSchema = exports.BusinessLoanBusinessApplicationRelationshipsEntities$outboundSchema = exports.BusinessLoanBusinessApplicationRelationshipsDataInput$outboundSchema = exports.BusinessLoanBusinessApplicationRelationshipsEntitiesType$outboundSchema = exports.BusinessLoanBusinessApplicationRelationshipsCustomers$outboundSchema = exports.BusinessLoanBusinessApplicationRelationshipsCustomersData$outboundSchema = exports.BusinessLoanBusinessApplicationRelationshipsRelationships$outboundSchema = exports.BusinessLoanBusinessApplicationRelationshipsAssets$outboundSchema = exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema = exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAssetsType$outboundSchema = exports.BusinessLoanBusinessApplicationRelationshipsLiabilities$outboundSchema = exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataData$outboundSchema = exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema = exports.BusinessLoanBusinessApplicationRelationshipsAddresses$outboundSchema = exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema = exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataType$outboundSchema = exports.BusinessLoanBusinessApplicationRelationshipsCustomersType$outboundSchema = exports.BusinessLoanBusinessApplicationRelationshipsLoanDetails$outboundSchema = exports.BusinessLoanBusinessApplicationRelationshipsData$outboundSchema = exports.BusinessLoanBusinessApplicationRelationshipsType$outboundSchema = exports.BusinessLoanBusinessApplicationRelationshipsEntitiesType = exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAssetsType = exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsType = exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataType = exports.BusinessLoanBusinessApplicationRelationshipsCustomersType = exports.BusinessLoanBusinessApplicationRelationshipsType = void 0;
40
+ exports.businessLoanBusinessApplicationRelationshipsDataToJSON = businessLoanBusinessApplicationRelationshipsDataToJSON;
41
+ exports.businessLoanBusinessApplicationRelationshipsLoanDetailsToJSON = businessLoanBusinessApplicationRelationshipsLoanDetailsToJSON;
42
+ exports.businessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesDataToJSON = businessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesDataToJSON;
43
+ exports.businessLoanBusinessApplicationRelationshipsAddressesToJSON = businessLoanBusinessApplicationRelationshipsAddressesToJSON;
44
+ exports.businessLoanBusinessApplicationRelationshipsCustomersDataDataToJSON = businessLoanBusinessApplicationRelationshipsCustomersDataDataToJSON;
45
+ exports.businessLoanBusinessApplicationRelationshipsLiabilitiesToJSON = businessLoanBusinessApplicationRelationshipsLiabilitiesToJSON;
46
+ exports.businessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsDataToJSON = businessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsDataToJSON;
47
+ exports.businessLoanBusinessApplicationRelationshipsAssetsToJSON = businessLoanBusinessApplicationRelationshipsAssetsToJSON;
48
+ exports.businessLoanBusinessApplicationRelationshipsRelationshipsToJSON = businessLoanBusinessApplicationRelationshipsRelationshipsToJSON;
49
+ exports.businessLoanBusinessApplicationRelationshipsCustomersDataToJSON = businessLoanBusinessApplicationRelationshipsCustomersDataToJSON;
50
+ exports.businessLoanBusinessApplicationRelationshipsCustomersToJSON = businessLoanBusinessApplicationRelationshipsCustomersToJSON;
51
+ exports.businessLoanBusinessApplicationRelationshipsDataInputToJSON = businessLoanBusinessApplicationRelationshipsDataInputToJSON;
52
+ exports.businessLoanBusinessApplicationRelationshipsEntitiesToJSON = businessLoanBusinessApplicationRelationshipsEntitiesToJSON;
53
+ exports.businessLoanBusinessApplicationRelationshipsToJSON = businessLoanBusinessApplicationRelationshipsToJSON;
54
+ const z = __importStar(require("zod/v3"));
55
+ const addressattributes_js_1 = require("./addressattributes.js");
56
+ const customerassetattributes_js_1 = require("./customerassetattributes.js");
57
+ const customerattributescreateitem_js_1 = require("./customerattributescreateitem.js");
58
+ const customerliabilityattributes_js_1 = require("./customerliabilityattributes.js");
59
+ const entityattributesinput_js_1 = require("./entityattributesinput.js");
60
+ const linkobject_js_1 = require("./linkobject.js");
61
+ const loandetailsattributes_js_1 = require("./loandetailsattributes.js");
62
+ exports.BusinessLoanBusinessApplicationRelationshipsType = {
63
+ LoanDetails: "loan-details",
64
+ };
65
+ exports.BusinessLoanBusinessApplicationRelationshipsCustomersType = {
66
+ Customers: "customers",
67
+ };
68
+ exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataType = {
69
+ Addresses: "addresses",
70
+ };
71
+ exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsType = {
72
+ CustomerLiabilities: "customer-liabilities",
73
+ };
74
+ exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAssetsType = {
75
+ CustomerAssets: "customer-assets",
76
+ };
77
+ exports.BusinessLoanBusinessApplicationRelationshipsEntitiesType = {
78
+ Entities: "entities",
79
+ };
80
+ /** @internal */
81
+ exports.BusinessLoanBusinessApplicationRelationshipsType$outboundSchema = z
82
+ .nativeEnum(exports.BusinessLoanBusinessApplicationRelationshipsType);
83
+ /** @internal */
84
+ exports.BusinessLoanBusinessApplicationRelationshipsData$outboundSchema = z.object({
85
+ type: exports.BusinessLoanBusinessApplicationRelationshipsType$outboundSchema,
86
+ attributes: loandetailsattributes_js_1.LoanDetailsAttributes$outboundSchema,
87
+ links: z.record(linkobject_js_1.LinkObject$outboundSchema).optional(),
88
+ meta: z.record(z.any()).optional(),
89
+ });
90
+ function businessLoanBusinessApplicationRelationshipsDataToJSON(businessLoanBusinessApplicationRelationshipsData) {
91
+ return JSON.stringify(exports.BusinessLoanBusinessApplicationRelationshipsData$outboundSchema.parse(businessLoanBusinessApplicationRelationshipsData));
92
+ }
93
+ /** @internal */
94
+ exports.BusinessLoanBusinessApplicationRelationshipsLoanDetails$outboundSchema = z.object({
95
+ data: z.lazy(() => exports.BusinessLoanBusinessApplicationRelationshipsData$outboundSchema),
96
+ });
97
+ function businessLoanBusinessApplicationRelationshipsLoanDetailsToJSON(businessLoanBusinessApplicationRelationshipsLoanDetails) {
98
+ return JSON.stringify(exports.BusinessLoanBusinessApplicationRelationshipsLoanDetails$outboundSchema
99
+ .parse(businessLoanBusinessApplicationRelationshipsLoanDetails));
100
+ }
101
+ /** @internal */
102
+ exports.BusinessLoanBusinessApplicationRelationshipsCustomersType$outboundSchema = z.nativeEnum(exports.BusinessLoanBusinessApplicationRelationshipsCustomersType);
103
+ /** @internal */
104
+ exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataType$outboundSchema = z.nativeEnum(exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataType);
105
+ /** @internal */
106
+ exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema = z.object({
107
+ type: exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataType$outboundSchema,
108
+ attributes: addressattributes_js_1.AddressAttributes$outboundSchema,
109
+ links: z.record(linkobject_js_1.LinkObject$outboundSchema).optional(),
110
+ meta: z.record(z.any()).optional(),
111
+ });
112
+ function businessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesDataToJSON(businessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData) {
113
+ return JSON.stringify(exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema
114
+ .parse(businessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData));
115
+ }
116
+ /** @internal */
117
+ exports.BusinessLoanBusinessApplicationRelationshipsAddresses$outboundSchema = z.object({
118
+ data: z.array(z.lazy(() => exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema)),
119
+ });
120
+ function businessLoanBusinessApplicationRelationshipsAddressesToJSON(businessLoanBusinessApplicationRelationshipsAddresses) {
121
+ return JSON.stringify(exports.BusinessLoanBusinessApplicationRelationshipsAddresses$outboundSchema.parse(businessLoanBusinessApplicationRelationshipsAddresses));
122
+ }
123
+ /** @internal */
124
+ exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema = z.nativeEnum(exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsType);
125
+ /** @internal */
126
+ exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataData$outboundSchema = z.object({
127
+ type: exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema,
128
+ attributes: customerliabilityattributes_js_1.CustomerLiabilityAttributes$outboundSchema,
129
+ links: z.record(linkobject_js_1.LinkObject$outboundSchema).optional(),
130
+ meta: z.record(z.any()).optional(),
131
+ });
132
+ function businessLoanBusinessApplicationRelationshipsCustomersDataDataToJSON(businessLoanBusinessApplicationRelationshipsCustomersDataData) {
133
+ return JSON.stringify(exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataData$outboundSchema
134
+ .parse(businessLoanBusinessApplicationRelationshipsCustomersDataData));
135
+ }
136
+ /** @internal */
137
+ exports.BusinessLoanBusinessApplicationRelationshipsLiabilities$outboundSchema = z.object({
138
+ data: z.array(z.lazy(() => exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataData$outboundSchema)),
139
+ });
140
+ function businessLoanBusinessApplicationRelationshipsLiabilitiesToJSON(businessLoanBusinessApplicationRelationshipsLiabilities) {
141
+ return JSON.stringify(exports.BusinessLoanBusinessApplicationRelationshipsLiabilities$outboundSchema
142
+ .parse(businessLoanBusinessApplicationRelationshipsLiabilities));
143
+ }
144
+ /** @internal */
145
+ exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAssetsType$outboundSchema = z.nativeEnum(exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAssetsType);
146
+ /** @internal */
147
+ exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema = z.object({
148
+ type: exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAssetsType$outboundSchema,
149
+ attributes: customerassetattributes_js_1.CustomerAssetAttributes$outboundSchema,
150
+ links: z.record(linkobject_js_1.LinkObject$outboundSchema).optional(),
151
+ meta: z.record(z.any()).optional(),
152
+ });
153
+ function businessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsDataToJSON(businessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData) {
154
+ return JSON.stringify(exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema
155
+ .parse(businessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData));
156
+ }
157
+ /** @internal */
158
+ exports.BusinessLoanBusinessApplicationRelationshipsAssets$outboundSchema = z.object({
159
+ data: z.array(z.lazy(() => exports.BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema)),
160
+ });
161
+ function businessLoanBusinessApplicationRelationshipsAssetsToJSON(businessLoanBusinessApplicationRelationshipsAssets) {
162
+ return JSON.stringify(exports.BusinessLoanBusinessApplicationRelationshipsAssets$outboundSchema.parse(businessLoanBusinessApplicationRelationshipsAssets));
163
+ }
164
+ /** @internal */
165
+ exports.BusinessLoanBusinessApplicationRelationshipsRelationships$outboundSchema = z.object({
166
+ addresses: z.lazy(() => exports.BusinessLoanBusinessApplicationRelationshipsAddresses$outboundSchema).optional(),
167
+ liabilities: z.lazy(() => exports.BusinessLoanBusinessApplicationRelationshipsLiabilities$outboundSchema).optional(),
168
+ assets: z.lazy(() => exports.BusinessLoanBusinessApplicationRelationshipsAssets$outboundSchema).optional(),
169
+ });
170
+ function businessLoanBusinessApplicationRelationshipsRelationshipsToJSON(businessLoanBusinessApplicationRelationshipsRelationships) {
171
+ return JSON.stringify(exports.BusinessLoanBusinessApplicationRelationshipsRelationships$outboundSchema
172
+ .parse(businessLoanBusinessApplicationRelationshipsRelationships));
173
+ }
174
+ /** @internal */
175
+ exports.BusinessLoanBusinessApplicationRelationshipsCustomersData$outboundSchema = z.object({
176
+ type: exports.BusinessLoanBusinessApplicationRelationshipsCustomersType$outboundSchema,
177
+ attributes: customerattributescreateitem_js_1.CustomerAttributesCreateItem$outboundSchema,
178
+ relationships: z.lazy(() => exports.BusinessLoanBusinessApplicationRelationshipsRelationships$outboundSchema).optional(),
179
+ links: z.record(linkobject_js_1.LinkObject$outboundSchema).optional(),
180
+ meta: z.record(z.any()).optional(),
181
+ });
182
+ function businessLoanBusinessApplicationRelationshipsCustomersDataToJSON(businessLoanBusinessApplicationRelationshipsCustomersData) {
183
+ return JSON.stringify(exports.BusinessLoanBusinessApplicationRelationshipsCustomersData$outboundSchema
184
+ .parse(businessLoanBusinessApplicationRelationshipsCustomersData));
185
+ }
186
+ /** @internal */
187
+ exports.BusinessLoanBusinessApplicationRelationshipsCustomers$outboundSchema = z.object({
188
+ data: z.array(z.lazy(() => exports.BusinessLoanBusinessApplicationRelationshipsCustomersData$outboundSchema)),
189
+ });
190
+ function businessLoanBusinessApplicationRelationshipsCustomersToJSON(businessLoanBusinessApplicationRelationshipsCustomers) {
191
+ return JSON.stringify(exports.BusinessLoanBusinessApplicationRelationshipsCustomers$outboundSchema.parse(businessLoanBusinessApplicationRelationshipsCustomers));
192
+ }
193
+ /** @internal */
194
+ exports.BusinessLoanBusinessApplicationRelationshipsEntitiesType$outboundSchema = z.nativeEnum(exports.BusinessLoanBusinessApplicationRelationshipsEntitiesType);
195
+ /** @internal */
196
+ exports.BusinessLoanBusinessApplicationRelationshipsDataInput$outboundSchema = z.object({
197
+ type: exports.BusinessLoanBusinessApplicationRelationshipsEntitiesType$outboundSchema,
198
+ attributes: entityattributesinput_js_1.EntityAttributesInput$outboundSchema,
199
+ links: z.record(linkobject_js_1.LinkObject$outboundSchema).optional(),
200
+ meta: z.record(z.any()).optional(),
201
+ });
202
+ function businessLoanBusinessApplicationRelationshipsDataInputToJSON(businessLoanBusinessApplicationRelationshipsDataInput) {
203
+ return JSON.stringify(exports.BusinessLoanBusinessApplicationRelationshipsDataInput$outboundSchema.parse(businessLoanBusinessApplicationRelationshipsDataInput));
204
+ }
205
+ /** @internal */
206
+ exports.BusinessLoanBusinessApplicationRelationshipsEntities$outboundSchema = z.object({
207
+ data: z.array(z.lazy(() => exports.BusinessLoanBusinessApplicationRelationshipsDataInput$outboundSchema)),
208
+ });
209
+ function businessLoanBusinessApplicationRelationshipsEntitiesToJSON(businessLoanBusinessApplicationRelationshipsEntities) {
210
+ return JSON.stringify(exports.BusinessLoanBusinessApplicationRelationshipsEntities$outboundSchema.parse(businessLoanBusinessApplicationRelationshipsEntities));
211
+ }
212
+ /** @internal */
213
+ exports.BusinessLoanBusinessApplicationRelationships$outboundSchema = z.object({
214
+ loanDetails: z.lazy(() => exports.BusinessLoanBusinessApplicationRelationshipsLoanDetails$outboundSchema).optional(),
215
+ customers: z.lazy(() => exports.BusinessLoanBusinessApplicationRelationshipsCustomers$outboundSchema).optional(),
216
+ entities: z.lazy(() => exports.BusinessLoanBusinessApplicationRelationshipsEntities$outboundSchema).optional(),
217
+ });
218
+ function businessLoanBusinessApplicationRelationshipsToJSON(businessLoanBusinessApplicationRelationships) {
219
+ return JSON.stringify(exports.BusinessLoanBusinessApplicationRelationships$outboundSchema.parse(businessLoanBusinessApplicationRelationships));
220
+ }
221
+ //# sourceMappingURL=businessloanbusinessapplicationrelationships.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"businessloanbusinessapplicationrelationships.js","sourceRoot":"","sources":["../../src/models/components/businessloanbusinessapplicationrelationships.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkNH,wHASC;AAmBD,sIAQC;AAuCD,8LAUC;AAuBD,kIASC;AAiCD,kJAQC;AAuBD,sIAQC;AAiCD,4KAUC;AAuBD,4HASC;AAkCD,0IAQC;AA+BD,0IAQC;AAuBD,kIASC;AA8BD,kIASC;AAqBD,gIASC;AAiCD,gHASC;AAxrBD,0CAA4B;AAE5B,iEAIgC;AAChC,6EAIsC;AACtC,uFAI2C;AAC3C,qFAI0C;AAC1C,yEAIoC;AACpC,mDAIyB;AACzB,yEAIoC;AAEvB,QAAA,gDAAgD,GAAG;IAC9D,WAAW,EAAE,cAAc;CACnB,CAAC;AAmBE,QAAA,yDAAyD,GAAG;IACvE,SAAS,EAAE,WAAW;CACd,CAAC;AAIE,QAAA,6DAA6D,GAAG;IAC3E,SAAS,EAAE,WAAW;CACd,CAAC;AAoBE,QAAA,0EAA0E,GACrF;IACE,mBAAmB,EAAE,sBAAsB;CACnC,CAAC;AAkBA,QAAA,gFAAgF,GAC3F;IACE,cAAc,EAAE,iBAAiB;CACzB,CAAC;AA8CA,QAAA,wDAAwD,GAAG;IACtE,QAAQ,EAAE,UAAU;CACZ,CAAC;AAuBX,gBAAgB;AACH,QAAA,+DAA+D,GACC,CAAC;KACzE,UAAU,CAAC,wDAAgD,CAAC,CAAC;AAUlE,gBAAgB;AACH,QAAA,+DAA+D,GAKtE,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,uEAA+D;IACrE,UAAU,EAAE,+DAAoC;IAChD,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,yCAAyB,CAAC,CAAC,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