@financeable/aggregation 0.10.1 → 0.11.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 (411) hide show
  1. package/README.md +2 -6
  2. package/RUNTIMES.md +6 -6
  3. package/examples/applicationsCreate.example.ts +1 -1
  4. package/examples/package-lock.json +2 -2
  5. package/funcs/applicationsCreate.js +1 -1
  6. package/funcs/applicationsCreate.js.map +1 -1
  7. package/funcs/oauthTokenGet.js +1 -1
  8. package/funcs/oauthTokenGet.js.map +1 -1
  9. package/funcs/supportingDocumentsCreate.js +1 -1
  10. package/funcs/supportingDocumentsCreate.js.map +1 -1
  11. package/jsr.json +1 -1
  12. package/lib/base64.d.ts +1 -1
  13. package/lib/base64.d.ts.map +1 -1
  14. package/lib/base64.js +1 -1
  15. package/lib/base64.js.map +1 -1
  16. package/lib/config.d.ts +3 -3
  17. package/lib/config.js +3 -3
  18. package/lib/config.js.map +1 -1
  19. package/lib/env.d.ts +1 -1
  20. package/lib/env.d.ts.map +1 -1
  21. package/lib/env.js +19 -2
  22. package/lib/env.js.map +1 -1
  23. package/lib/schemas.d.ts +1 -1
  24. package/lib/schemas.d.ts.map +1 -1
  25. package/lib/schemas.js +2 -2
  26. package/lib/schemas.js.map +1 -1
  27. package/lib/url.js +1 -1
  28. package/lib/url.js.map +1 -1
  29. package/models/components/addressattributes.d.ts +1 -1
  30. package/models/components/addressattributes.d.ts.map +1 -1
  31. package/models/components/addressattributes.js +1 -1
  32. package/models/components/addressattributes.js.map +1 -1
  33. package/models/components/apierrorlinks.d.ts +1 -1
  34. package/models/components/apierrorlinks.d.ts.map +1 -1
  35. package/models/components/apierrorlinks.js +1 -1
  36. package/models/components/apierrorlinks.js.map +1 -1
  37. package/models/components/applicationresource.d.ts +5 -3
  38. package/models/components/applicationresource.d.ts.map +1 -1
  39. package/models/components/applicationresource.js +7 -1
  40. package/models/components/applicationresource.js.map +1 -1
  41. package/models/components/applicationstatus.d.ts +1 -1
  42. package/models/components/applicationstatus.d.ts.map +1 -1
  43. package/models/components/applicationstatus.js +1 -1
  44. package/models/components/applicationstatus.js.map +1 -1
  45. package/models/components/australianstatesandterritories.d.ts +1 -1
  46. package/models/components/australianstatesandterritories.d.ts.map +1 -1
  47. package/models/components/australianstatesandterritories.js +1 -1
  48. package/models/components/australianstatesandterritories.js.map +1 -1
  49. package/models/components/badrequesterror.d.ts +1 -1
  50. package/models/components/badrequesterror.d.ts.map +1 -1
  51. package/models/components/badrequesterror.js +1 -1
  52. package/models/components/badrequesterror.js.map +1 -1
  53. package/models/components/businessapplicationjsonapirelationships.d.ts +296 -0
  54. package/models/components/businessapplicationjsonapirelationships.d.ts.map +1 -0
  55. package/models/components/businessapplicationjsonapirelationships.js +309 -0
  56. package/models/components/businessapplicationjsonapirelationships.js.map +1 -0
  57. package/models/components/businessapplicationpayload.d.ts +137 -0
  58. package/models/components/businessapplicationpayload.d.ts.map +1 -0
  59. package/models/components/businessapplicationpayload.js +150 -0
  60. package/models/components/businessapplicationpayload.js.map +1 -0
  61. package/models/components/businessapplicationresource.d.ts +166 -0
  62. package/models/components/businessapplicationresource.d.ts.map +1 -0
  63. package/models/components/businessapplicationresource.js +159 -0
  64. package/models/components/businessapplicationresource.js.map +1 -0
  65. package/models/components/businessloanbusinessapplicationrelationships.d.ts +594 -0
  66. package/models/components/businessloanbusinessapplicationrelationships.d.ts.map +1 -0
  67. package/models/components/businessloanbusinessapplicationrelationships.js +599 -0
  68. package/models/components/businessloanbusinessapplicationrelationships.js.map +1 -0
  69. package/models/components/commercialapplicationjsonapirelationships.d.ts +1 -1
  70. package/models/components/commercialapplicationjsonapirelationships.d.ts.map +1 -1
  71. package/models/components/commercialapplicationjsonapirelationships.js +1 -1
  72. package/models/components/commercialapplicationjsonapirelationships.js.map +1 -1
  73. package/models/components/commercialsecuredapplicationpayload.d.ts +1 -1
  74. package/models/components/commercialsecuredapplicationpayload.d.ts.map +1 -1
  75. package/models/components/commercialsecuredapplicationpayload.js +1 -1
  76. package/models/components/commercialsecuredapplicationpayload.js.map +1 -1
  77. package/models/components/commercialsecuredapplicationresource.d.ts +1 -1
  78. package/models/components/commercialsecuredapplicationresource.d.ts.map +1 -1
  79. package/models/components/commercialsecuredapplicationresource.js +1 -1
  80. package/models/components/commercialsecuredapplicationresource.js.map +1 -1
  81. package/models/components/commercialsecuredloanassetattributes.d.ts +1 -1
  82. package/models/components/commercialsecuredloanassetattributes.d.ts.map +1 -1
  83. package/models/components/commercialsecuredloanassetattributes.js +1 -1
  84. package/models/components/commercialsecuredloanassetattributes.js.map +1 -1
  85. package/models/components/commercialsecuredloanassettype.d.ts +1 -1
  86. package/models/components/commercialsecuredloanassettype.d.ts.map +1 -1
  87. package/models/components/commercialsecuredloanassettype.js +1 -1
  88. package/models/components/commercialsecuredloanassettype.js.map +1 -1
  89. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +1 -1
  90. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
  91. package/models/components/commercialsecuredloancommercialapplicationrelationships.js +1 -1
  92. package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
  93. package/models/components/commercialsecuredloantypeofsale.d.ts +1 -1
  94. package/models/components/commercialsecuredloantypeofsale.d.ts.map +1 -1
  95. package/models/components/commercialsecuredloantypeofsale.js +1 -1
  96. package/models/components/commercialsecuredloantypeofsale.js.map +1 -1
  97. package/models/components/consumerapplicationjsonapirelationships.d.ts +1 -1
  98. package/models/components/consumerapplicationjsonapirelationships.d.ts.map +1 -1
  99. package/models/components/consumerapplicationjsonapirelationships.js +1 -1
  100. package/models/components/consumerapplicationjsonapirelationships.js.map +1 -1
  101. package/models/components/consumersecuredapplicationpayload.d.ts +1 -1
  102. package/models/components/consumersecuredapplicationpayload.d.ts.map +1 -1
  103. package/models/components/consumersecuredapplicationpayload.js +1 -1
  104. package/models/components/consumersecuredapplicationpayload.js.map +1 -1
  105. package/models/components/consumersecuredapplicationresource.d.ts +1 -1
  106. package/models/components/consumersecuredapplicationresource.d.ts.map +1 -1
  107. package/models/components/consumersecuredapplicationresource.js +1 -1
  108. package/models/components/consumersecuredapplicationresource.js.map +1 -1
  109. package/models/components/consumersecuredloanassetattributes.d.ts +1 -1
  110. package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -1
  111. package/models/components/consumersecuredloanassetattributes.js +1 -1
  112. package/models/components/consumersecuredloanassetattributes.js.map +1 -1
  113. package/models/components/consumersecuredloanassettype.d.ts +1 -1
  114. package/models/components/consumersecuredloanassettype.d.ts.map +1 -1
  115. package/models/components/consumersecuredloanassettype.js +1 -1
  116. package/models/components/consumersecuredloanassettype.js.map +1 -1
  117. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +1 -1
  118. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
  119. package/models/components/consumersecuredloanconsumerapplicationrelationships.js +1 -1
  120. package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -1
  121. package/models/components/consumersecuredloantypeofsale.d.ts +1 -1
  122. package/models/components/consumersecuredloantypeofsale.d.ts.map +1 -1
  123. package/models/components/consumersecuredloantypeofsale.js +1 -1
  124. package/models/components/consumersecuredloantypeofsale.js.map +1 -1
  125. package/models/components/createsupportingdocumentsresponse.d.ts +1 -1
  126. package/models/components/createsupportingdocumentsresponse.d.ts.map +1 -1
  127. package/models/components/createsupportingdocumentsresponse.js +1 -1
  128. package/models/components/createsupportingdocumentsresponse.js.map +1 -1
  129. package/models/components/currencycodeiso4217.d.ts +1 -1
  130. package/models/components/currencycodeiso4217.d.ts.map +1 -1
  131. package/models/components/currencycodeiso4217.js +1 -1
  132. package/models/components/currencycodeiso4217.js.map +1 -1
  133. package/models/components/customerassetattributes.d.ts +1 -1
  134. package/models/components/customerassetattributes.d.ts.map +1 -1
  135. package/models/components/customerassetattributes.js +1 -1
  136. package/models/components/customerassetattributes.js.map +1 -1
  137. package/models/components/customerassettype.d.ts +1 -1
  138. package/models/components/customerassettype.d.ts.map +1 -1
  139. package/models/components/customerassettype.js +1 -1
  140. package/models/components/customerassettype.js.map +1 -1
  141. package/models/components/customerattributes.d.ts +1 -1
  142. package/models/components/customerattributes.d.ts.map +1 -1
  143. package/models/components/customerattributes.js +1 -1
  144. package/models/components/customerattributes.js.map +1 -1
  145. package/models/components/customeridtype.d.ts +1 -1
  146. package/models/components/customeridtype.d.ts.map +1 -1
  147. package/models/components/customeridtype.js +1 -1
  148. package/models/components/customeridtype.js.map +1 -1
  149. package/models/components/customerliabilityattributes.d.ts +1 -1
  150. package/models/components/customerliabilityattributes.d.ts.map +1 -1
  151. package/models/components/customerliabilityattributes.js +1 -1
  152. package/models/components/customerliabilityattributes.js.map +1 -1
  153. package/models/components/customerliabilityrepaymentfrequency.d.ts +1 -1
  154. package/models/components/customerliabilityrepaymentfrequency.d.ts.map +1 -1
  155. package/models/components/customerliabilityrepaymentfrequency.js +1 -1
  156. package/models/components/customerliabilityrepaymentfrequency.js.map +1 -1
  157. package/models/components/customerliabilitytype.d.ts +1 -1
  158. package/models/components/customerliabilitytype.d.ts.map +1 -1
  159. package/models/components/customerliabilitytype.js +1 -1
  160. package/models/components/customerliabilitytype.js.map +1 -1
  161. package/models/components/customertitle.d.ts +1 -1
  162. package/models/components/customertitle.d.ts.map +1 -1
  163. package/models/components/customertitle.js +1 -1
  164. package/models/components/customertitle.js.map +1 -1
  165. package/models/components/documenttype.d.ts +1 -1
  166. package/models/components/documenttype.d.ts.map +1 -1
  167. package/models/components/documenttype.js +1 -1
  168. package/models/components/documenttype.js.map +1 -1
  169. package/models/components/entityattributes.d.ts +1 -1
  170. package/models/components/entityattributes.d.ts.map +1 -1
  171. package/models/components/entityattributes.js +1 -1
  172. package/models/components/entityattributes.js.map +1 -1
  173. package/models/components/errorsource.d.ts +1 -1
  174. package/models/components/errorsource.d.ts.map +1 -1
  175. package/models/components/errorsource.js +1 -1
  176. package/models/components/errorsource.js.map +1 -1
  177. package/models/components/expenseattributes.d.ts +1 -1
  178. package/models/components/expenseattributes.d.ts.map +1 -1
  179. package/models/components/expenseattributes.js +1 -1
  180. package/models/components/expenseattributes.js.map +1 -1
  181. package/models/components/expensefrequency.d.ts +1 -1
  182. package/models/components/expensefrequency.d.ts.map +1 -1
  183. package/models/components/expensefrequency.js +1 -1
  184. package/models/components/expensefrequency.js.map +1 -1
  185. package/models/components/expensetype.d.ts +1 -1
  186. package/models/components/expensetype.d.ts.map +1 -1
  187. package/models/components/expensetype.js +1 -1
  188. package/models/components/expensetype.js.map +1 -1
  189. package/models/components/forbiddenerror.d.ts +1 -1
  190. package/models/components/forbiddenerror.d.ts.map +1 -1
  191. package/models/components/forbiddenerror.js +1 -1
  192. package/models/components/forbiddenerror.js.map +1 -1
  193. package/models/components/frequencytype.d.ts +1 -1
  194. package/models/components/frequencytype.d.ts.map +1 -1
  195. package/models/components/frequencytype.js +1 -1
  196. package/models/components/frequencytype.js.map +1 -1
  197. package/models/components/incomeattributes.d.ts +1 -1
  198. package/models/components/incomeattributes.d.ts.map +1 -1
  199. package/models/components/incomeattributes.js +1 -1
  200. package/models/components/incomeattributes.js.map +1 -1
  201. package/models/components/incomefrequency.d.ts +1 -1
  202. package/models/components/incomefrequency.d.ts.map +1 -1
  203. package/models/components/incomefrequency.js +1 -1
  204. package/models/components/incomefrequency.js.map +1 -1
  205. package/models/components/incometype.d.ts +1 -1
  206. package/models/components/incometype.d.ts.map +1 -1
  207. package/models/components/incometype.js +1 -1
  208. package/models/components/incometype.js.map +1 -1
  209. package/models/components/index.d.ts +8 -0
  210. package/models/components/index.d.ts.map +1 -1
  211. package/models/components/index.js +8 -0
  212. package/models/components/index.js.map +1 -1
  213. package/models/components/linkobject.d.ts +1 -1
  214. package/models/components/linkobject.d.ts.map +1 -1
  215. package/models/components/linkobject.js +1 -1
  216. package/models/components/linkobject.js.map +1 -1
  217. package/models/components/livingarrangements.d.ts +1 -1
  218. package/models/components/livingarrangements.d.ts.map +1 -1
  219. package/models/components/livingarrangements.js +1 -1
  220. package/models/components/livingarrangements.js.map +1 -1
  221. package/models/components/loandetailsattributes.d.ts +8 -3
  222. package/models/components/loandetailsattributes.d.ts.map +1 -1
  223. package/models/components/loandetailsattributes.js +3 -1
  224. package/models/components/loandetailsattributes.js.map +1 -1
  225. package/models/components/maritalstatus.d.ts +1 -1
  226. package/models/components/maritalstatus.d.ts.map +1 -1
  227. package/models/components/maritalstatus.js +1 -1
  228. package/models/components/maritalstatus.js.map +1 -1
  229. package/models/components/monetaryquantity.d.ts +1 -1
  230. package/models/components/monetaryquantity.d.ts.map +1 -1
  231. package/models/components/monetaryquantity.js +1 -1
  232. package/models/components/monetaryquantity.js.map +1 -1
  233. package/models/components/percentagequantity.d.ts +1 -1
  234. package/models/components/percentagequantity.d.ts.map +1 -1
  235. package/models/components/percentagequantity.js +1 -1
  236. package/models/components/percentagequantity.js.map +1 -1
  237. package/models/components/personalapplicationjsonapirelationships.d.ts +208 -0
  238. package/models/components/personalapplicationjsonapirelationships.d.ts.map +1 -0
  239. package/models/components/personalapplicationjsonapirelationships.js +229 -0
  240. package/models/components/personalapplicationjsonapirelationships.js.map +1 -0
  241. package/models/components/personalapplicationpayload.d.ts +137 -0
  242. package/models/components/personalapplicationpayload.d.ts.map +1 -0
  243. package/models/components/personalapplicationpayload.js +150 -0
  244. package/models/components/personalapplicationpayload.js.map +1 -0
  245. package/models/components/personalapplicationresource.d.ts +166 -0
  246. package/models/components/personalapplicationresource.d.ts.map +1 -0
  247. package/models/components/personalapplicationresource.js +159 -0
  248. package/models/components/personalapplicationresource.js.map +1 -0
  249. package/models/components/personalloanpersonalapplicationrelationships.d.ts +683 -0
  250. package/models/components/personalloanpersonalapplicationrelationships.d.ts.map +1 -0
  251. package/models/components/personalloanpersonalapplicationrelationships.js +682 -0
  252. package/models/components/personalloanpersonalapplicationrelationships.js.map +1 -0
  253. package/models/components/relationshipresourcenotfound.d.ts +1 -1
  254. package/models/components/relationshipresourcenotfound.d.ts.map +1 -1
  255. package/models/components/relationshipresourcenotfound.js +1 -1
  256. package/models/components/relationshipresourcenotfound.js.map +1 -1
  257. package/models/components/repaymentstructure.d.ts +1 -1
  258. package/models/components/repaymentstructure.d.ts.map +1 -1
  259. package/models/components/repaymentstructure.js +1 -1
  260. package/models/components/repaymentstructure.js.map +1 -1
  261. package/models/components/residencystatus.d.ts +1 -1
  262. package/models/components/residencystatus.d.ts.map +1 -1
  263. package/models/components/residencystatus.js +1 -1
  264. package/models/components/residencystatus.js.map +1 -1
  265. package/models/components/resourcenotfound.d.ts +1 -1
  266. package/models/components/resourcenotfound.d.ts.map +1 -1
  267. package/models/components/resourcenotfound.js +1 -1
  268. package/models/components/resourcenotfound.js.map +1 -1
  269. package/models/components/security.d.ts +1 -1
  270. package/models/components/security.d.ts.map +1 -1
  271. package/models/components/security.js +1 -1
  272. package/models/components/security.js.map +1 -1
  273. package/models/components/supportingdocumentattributes.d.ts +1 -1
  274. package/models/components/supportingdocumentattributes.d.ts.map +1 -1
  275. package/models/components/supportingdocumentattributes.js +1 -1
  276. package/models/components/supportingdocumentattributes.js.map +1 -1
  277. package/models/components/supportingdocumentattributesinput.d.ts +1 -1
  278. package/models/components/supportingdocumentattributesinput.d.ts.map +1 -1
  279. package/models/components/supportingdocumentattributesinput.js +1 -1
  280. package/models/components/supportingdocumentattributesinput.js.map +1 -1
  281. package/models/components/supportingdocumentrelationships.d.ts +1 -1
  282. package/models/components/supportingdocumentrelationships.d.ts.map +1 -1
  283. package/models/components/supportingdocumentrelationships.js +1 -1
  284. package/models/components/supportingdocumentrelationships.js.map +1 -1
  285. package/models/components/supportingdocumentresource.d.ts +1 -1
  286. package/models/components/supportingdocumentresource.d.ts.map +1 -1
  287. package/models/components/supportingdocumentresource.js +1 -1
  288. package/models/components/supportingdocumentresource.js.map +1 -1
  289. package/models/components/tokenrequest.d.ts +1 -1
  290. package/models/components/tokenrequest.d.ts.map +1 -1
  291. package/models/components/tokenrequest.js +1 -1
  292. package/models/components/tokenrequest.js.map +1 -1
  293. package/models/components/tokenresponse.d.ts +1 -1
  294. package/models/components/tokenresponse.d.ts.map +1 -1
  295. package/models/components/tokenresponse.js +1 -1
  296. package/models/components/tokenresponse.js.map +1 -1
  297. package/models/components/uploadmimetype.d.ts +1 -1
  298. package/models/components/uploadmimetype.d.ts.map +1 -1
  299. package/models/components/uploadmimetype.js +1 -1
  300. package/models/components/uploadmimetype.js.map +1 -1
  301. package/models/errors/index.d.ts +1 -0
  302. package/models/errors/index.d.ts.map +1 -1
  303. package/models/errors/index.js +1 -0
  304. package/models/errors/index.js.map +1 -1
  305. package/models/errors/responsevalidationerror.js +1 -1
  306. package/models/errors/responsevalidationerror.js.map +1 -1
  307. package/models/errors/sdkvalidationerror.d.ts +1 -1
  308. package/models/errors/sdkvalidationerror.d.ts.map +1 -1
  309. package/models/errors/sdkvalidationerror.js +1 -1
  310. package/models/errors/sdkvalidationerror.js.map +1 -1
  311. package/models/operations/createapplication.d.ts +5 -5
  312. package/models/operations/createapplication.d.ts.map +1 -1
  313. package/models/operations/createapplication.js +9 -1
  314. package/models/operations/createapplication.js.map +1 -1
  315. package/models/operations/supportingdocumentscreate.d.ts +1 -1
  316. package/models/operations/supportingdocumentscreate.d.ts.map +1 -1
  317. package/models/operations/supportingdocumentscreate.js +1 -1
  318. package/models/operations/supportingdocumentscreate.js.map +1 -1
  319. package/package.json +2 -2
  320. package/src/funcs/applicationsCreate.ts +1 -1
  321. package/src/funcs/oauthTokenGet.ts +1 -1
  322. package/src/funcs/supportingDocumentsCreate.ts +1 -1
  323. package/src/lib/base64.ts +1 -1
  324. package/src/lib/config.ts +3 -3
  325. package/src/lib/env.ts +21 -5
  326. package/src/lib/schemas.ts +1 -1
  327. package/src/lib/url.ts +1 -1
  328. package/src/models/components/addressattributes.ts +1 -1
  329. package/src/models/components/apierrorlinks.ts +1 -1
  330. package/src/models/components/applicationresource.ts +23 -3
  331. package/src/models/components/applicationstatus.ts +1 -1
  332. package/src/models/components/australianstatesandterritories.ts +1 -1
  333. package/src/models/components/badrequesterror.ts +1 -1
  334. package/src/models/components/businessapplicationjsonapirelationships.ts +690 -0
  335. package/src/models/components/businessapplicationpayload.ts +242 -0
  336. package/src/models/components/businessapplicationresource.ts +285 -0
  337. package/src/models/components/businessloanbusinessapplicationrelationships.ts +1472 -0
  338. package/src/models/components/commercialapplicationjsonapirelationships.ts +1 -1
  339. package/src/models/components/commercialsecuredapplicationpayload.ts +1 -1
  340. package/src/models/components/commercialsecuredapplicationresource.ts +1 -1
  341. package/src/models/components/commercialsecuredloanassetattributes.ts +1 -1
  342. package/src/models/components/commercialsecuredloanassettype.ts +1 -1
  343. package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +1 -1
  344. package/src/models/components/commercialsecuredloantypeofsale.ts +1 -1
  345. package/src/models/components/consumerapplicationjsonapirelationships.ts +1 -1
  346. package/src/models/components/consumersecuredapplicationpayload.ts +1 -1
  347. package/src/models/components/consumersecuredapplicationresource.ts +1 -1
  348. package/src/models/components/consumersecuredloanassetattributes.ts +1 -1
  349. package/src/models/components/consumersecuredloanassettype.ts +1 -1
  350. package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +1 -1
  351. package/src/models/components/consumersecuredloantypeofsale.ts +1 -1
  352. package/src/models/components/createsupportingdocumentsresponse.ts +1 -1
  353. package/src/models/components/currencycodeiso4217.ts +1 -1
  354. package/src/models/components/customerassetattributes.ts +1 -1
  355. package/src/models/components/customerassettype.ts +1 -1
  356. package/src/models/components/customerattributes.ts +1 -1
  357. package/src/models/components/customeridtype.ts +1 -1
  358. package/src/models/components/customerliabilityattributes.ts +1 -1
  359. package/src/models/components/customerliabilityrepaymentfrequency.ts +1 -1
  360. package/src/models/components/customerliabilitytype.ts +1 -1
  361. package/src/models/components/customertitle.ts +1 -1
  362. package/src/models/components/documenttype.ts +1 -1
  363. package/src/models/components/entityattributes.ts +1 -1
  364. package/src/models/components/errorsource.ts +1 -1
  365. package/src/models/components/expenseattributes.ts +1 -1
  366. package/src/models/components/expensefrequency.ts +1 -1
  367. package/src/models/components/expensetype.ts +1 -1
  368. package/src/models/components/forbiddenerror.ts +1 -1
  369. package/src/models/components/frequencytype.ts +1 -1
  370. package/src/models/components/incomeattributes.ts +1 -1
  371. package/src/models/components/incomefrequency.ts +1 -1
  372. package/src/models/components/incometype.ts +1 -1
  373. package/src/models/components/index.ts +8 -0
  374. package/src/models/components/linkobject.ts +1 -1
  375. package/src/models/components/livingarrangements.ts +1 -1
  376. package/src/models/components/loandetailsattributes.ts +10 -3
  377. package/src/models/components/maritalstatus.ts +1 -1
  378. package/src/models/components/monetaryquantity.ts +1 -1
  379. package/src/models/components/percentagequantity.ts +1 -1
  380. package/src/models/components/personalapplicationjsonapirelationships.ts +486 -0
  381. package/src/models/components/personalapplicationpayload.ts +242 -0
  382. package/src/models/components/personalapplicationresource.ts +285 -0
  383. package/src/models/components/personalloanpersonalapplicationrelationships.ts +1710 -0
  384. package/src/models/components/relationshipresourcenotfound.ts +1 -1
  385. package/src/models/components/repaymentstructure.ts +1 -1
  386. package/src/models/components/residencystatus.ts +1 -1
  387. package/src/models/components/resourcenotfound.ts +1 -1
  388. package/src/models/components/security.ts +1 -1
  389. package/src/models/components/supportingdocumentattributes.ts +1 -1
  390. package/src/models/components/supportingdocumentattributesinput.ts +1 -1
  391. package/src/models/components/supportingdocumentrelationships.ts +1 -1
  392. package/src/models/components/supportingdocumentresource.ts +1 -1
  393. package/src/models/components/tokenrequest.ts +1 -1
  394. package/src/models/components/tokenresponse.ts +1 -1
  395. package/src/models/components/uploadmimetype.ts +1 -1
  396. package/src/models/errors/index.ts +1 -0
  397. package/src/models/errors/responsevalidationerror.ts +1 -1
  398. package/src/models/errors/sdkvalidationerror.ts +1 -1
  399. package/src/models/operations/createapplication.ts +21 -5
  400. package/src/models/operations/supportingdocumentscreate.ts +1 -1
  401. package/src/types/blobs.ts +7 -6
  402. package/src/types/constdatetime.ts +1 -1
  403. package/types/blobs.d.ts +1 -1
  404. package/types/blobs.d.ts.map +1 -1
  405. package/types/blobs.js +1 -1
  406. package/types/blobs.js.map +1 -1
  407. package/types/constdatetime.d.ts +1 -1
  408. package/types/constdatetime.d.ts.map +1 -1
  409. package/types/constdatetime.js +1 -1
  410. package/types/constdatetime.js.map +1 -1
  411. package/docs/sdks/financeable/README.md +0 -5
@@ -0,0 +1,1472 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ AddressAttributes,
12
+ AddressAttributes$inboundSchema,
13
+ AddressAttributes$Outbound,
14
+ AddressAttributes$outboundSchema,
15
+ } from "./addressattributes.js";
16
+ import {
17
+ CustomerAssetAttributes,
18
+ CustomerAssetAttributes$inboundSchema,
19
+ CustomerAssetAttributes$Outbound,
20
+ CustomerAssetAttributes$outboundSchema,
21
+ } from "./customerassetattributes.js";
22
+ import {
23
+ CustomerAttributes,
24
+ CustomerAttributes$inboundSchema,
25
+ CustomerAttributes$Outbound,
26
+ CustomerAttributes$outboundSchema,
27
+ } from "./customerattributes.js";
28
+ import {
29
+ CustomerLiabilityAttributes,
30
+ CustomerLiabilityAttributes$inboundSchema,
31
+ CustomerLiabilityAttributes$Outbound,
32
+ CustomerLiabilityAttributes$outboundSchema,
33
+ } from "./customerliabilityattributes.js";
34
+ import {
35
+ EntityAttributes,
36
+ EntityAttributes$inboundSchema,
37
+ EntityAttributes$Outbound,
38
+ EntityAttributes$outboundSchema,
39
+ } from "./entityattributes.js";
40
+ import {
41
+ LinkObject,
42
+ LinkObject$inboundSchema,
43
+ LinkObject$Outbound,
44
+ LinkObject$outboundSchema,
45
+ } from "./linkobject.js";
46
+ import {
47
+ LoanDetailsAttributes,
48
+ LoanDetailsAttributes$inboundSchema,
49
+ LoanDetailsAttributes$Outbound,
50
+ LoanDetailsAttributes$outboundSchema,
51
+ } from "./loandetailsattributes.js";
52
+
53
+ export const BusinessLoanBusinessApplicationRelationshipsType = {
54
+ LoanDetails: "loan-details",
55
+ } as const;
56
+ export type BusinessLoanBusinessApplicationRelationshipsType = ClosedEnum<
57
+ typeof BusinessLoanBusinessApplicationRelationshipsType
58
+ >;
59
+
60
+ export type BusinessLoanBusinessApplicationRelationshipsData = {
61
+ type: BusinessLoanBusinessApplicationRelationshipsType;
62
+ /**
63
+ * Loan details model
64
+ */
65
+ attributes: LoanDetailsAttributes;
66
+ links?: { [k: string]: LinkObject } | undefined;
67
+ meta?: { [k: string]: any } | undefined;
68
+ };
69
+
70
+ export type BusinessLoanBusinessApplicationRelationshipsLoanDetails = {
71
+ data: BusinessLoanBusinessApplicationRelationshipsData;
72
+ };
73
+
74
+ export const BusinessLoanBusinessApplicationRelationshipsCustomersType = {
75
+ Customers: "customers",
76
+ } as const;
77
+ export type BusinessLoanBusinessApplicationRelationshipsCustomersType =
78
+ ClosedEnum<typeof BusinessLoanBusinessApplicationRelationshipsCustomersType>;
79
+
80
+ export const BusinessLoanBusinessApplicationRelationshipsCustomersDataType = {
81
+ Addresses: "addresses",
82
+ } as const;
83
+ export type BusinessLoanBusinessApplicationRelationshipsCustomersDataType =
84
+ ClosedEnum<
85
+ typeof BusinessLoanBusinessApplicationRelationshipsCustomersDataType
86
+ >;
87
+
88
+ export type BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData =
89
+ {
90
+ type: BusinessLoanBusinessApplicationRelationshipsCustomersDataType;
91
+ attributes: AddressAttributes;
92
+ links?: { [k: string]: LinkObject } | undefined;
93
+ meta?: { [k: string]: any } | undefined;
94
+ };
95
+
96
+ export type BusinessLoanBusinessApplicationRelationshipsAddresses = {
97
+ data: Array<
98
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData
99
+ >;
100
+ };
101
+
102
+ export const BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsType =
103
+ {
104
+ CustomerLiabilities: "customer-liabilities",
105
+ } as const;
106
+ export type BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsType =
107
+ ClosedEnum<
108
+ typeof BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsType
109
+ >;
110
+
111
+ export type BusinessLoanBusinessApplicationRelationshipsCustomersDataData = {
112
+ type:
113
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsType;
114
+ attributes: CustomerLiabilityAttributes;
115
+ links?: { [k: string]: LinkObject } | undefined;
116
+ meta?: { [k: string]: any } | undefined;
117
+ };
118
+
119
+ export type BusinessLoanBusinessApplicationRelationshipsLiabilities = {
120
+ data: Array<BusinessLoanBusinessApplicationRelationshipsCustomersDataData>;
121
+ };
122
+
123
+ export const BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAssetsType =
124
+ {
125
+ CustomerAssets: "customer-assets",
126
+ } as const;
127
+ export type BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAssetsType =
128
+ ClosedEnum<
129
+ typeof BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAssetsType
130
+ >;
131
+
132
+ export type BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData =
133
+ {
134
+ type:
135
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAssetsType;
136
+ attributes: CustomerAssetAttributes;
137
+ links?: { [k: string]: LinkObject } | undefined;
138
+ meta?: { [k: string]: any } | undefined;
139
+ };
140
+
141
+ export type BusinessLoanBusinessApplicationRelationshipsAssets = {
142
+ data: Array<
143
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData
144
+ >;
145
+ };
146
+
147
+ export type BusinessLoanBusinessApplicationRelationshipsRelationships = {
148
+ addresses?: BusinessLoanBusinessApplicationRelationshipsAddresses | undefined;
149
+ liabilities?:
150
+ | BusinessLoanBusinessApplicationRelationshipsLiabilities
151
+ | undefined;
152
+ assets?: BusinessLoanBusinessApplicationRelationshipsAssets | undefined;
153
+ };
154
+
155
+ export type BusinessLoanBusinessApplicationRelationshipsCustomersData = {
156
+ type: BusinessLoanBusinessApplicationRelationshipsCustomersType;
157
+ /**
158
+ * A customer of the proposed financing
159
+ */
160
+ attributes: CustomerAttributes;
161
+ relationships?:
162
+ | BusinessLoanBusinessApplicationRelationshipsRelationships
163
+ | undefined;
164
+ links?: { [k: string]: LinkObject } | undefined;
165
+ meta?: { [k: string]: any } | undefined;
166
+ };
167
+
168
+ export type BusinessLoanBusinessApplicationRelationshipsCustomers = {
169
+ data: Array<BusinessLoanBusinessApplicationRelationshipsCustomersData>;
170
+ };
171
+
172
+ export const BusinessLoanBusinessApplicationRelationshipsEntitiesType = {
173
+ Entities: "entities",
174
+ } as const;
175
+ export type BusinessLoanBusinessApplicationRelationshipsEntitiesType =
176
+ ClosedEnum<typeof BusinessLoanBusinessApplicationRelationshipsEntitiesType>;
177
+
178
+ export type BusinessLoanBusinessApplicationRelationshipsEntitiesData = {
179
+ type: BusinessLoanBusinessApplicationRelationshipsEntitiesType;
180
+ attributes: EntityAttributes;
181
+ links?: { [k: string]: LinkObject } | undefined;
182
+ meta?: { [k: string]: any } | undefined;
183
+ };
184
+
185
+ export type BusinessLoanBusinessApplicationRelationshipsEntities = {
186
+ data: Array<BusinessLoanBusinessApplicationRelationshipsEntitiesData>;
187
+ };
188
+
189
+ export type BusinessLoanBusinessApplicationRelationships = {
190
+ loanDetails?:
191
+ | BusinessLoanBusinessApplicationRelationshipsLoanDetails
192
+ | undefined;
193
+ customers?: BusinessLoanBusinessApplicationRelationshipsCustomers | undefined;
194
+ entities?: BusinessLoanBusinessApplicationRelationshipsEntities | undefined;
195
+ };
196
+
197
+ /** @internal */
198
+ export const BusinessLoanBusinessApplicationRelationshipsType$inboundSchema:
199
+ z.ZodNativeEnum<typeof BusinessLoanBusinessApplicationRelationshipsType> = z
200
+ .nativeEnum(BusinessLoanBusinessApplicationRelationshipsType);
201
+
202
+ /** @internal */
203
+ export const BusinessLoanBusinessApplicationRelationshipsType$outboundSchema:
204
+ z.ZodNativeEnum<typeof BusinessLoanBusinessApplicationRelationshipsType> =
205
+ BusinessLoanBusinessApplicationRelationshipsType$inboundSchema;
206
+
207
+ /**
208
+ * @internal
209
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
210
+ */
211
+ export namespace BusinessLoanBusinessApplicationRelationshipsType$ {
212
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsType$inboundSchema` instead. */
213
+ export const inboundSchema =
214
+ BusinessLoanBusinessApplicationRelationshipsType$inboundSchema;
215
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsType$outboundSchema` instead. */
216
+ export const outboundSchema =
217
+ BusinessLoanBusinessApplicationRelationshipsType$outboundSchema;
218
+ }
219
+
220
+ /** @internal */
221
+ export const BusinessLoanBusinessApplicationRelationshipsData$inboundSchema:
222
+ z.ZodType<
223
+ BusinessLoanBusinessApplicationRelationshipsData,
224
+ z.ZodTypeDef,
225
+ unknown
226
+ > = z.object({
227
+ type: BusinessLoanBusinessApplicationRelationshipsType$inboundSchema,
228
+ attributes: LoanDetailsAttributes$inboundSchema,
229
+ links: z.record(LinkObject$inboundSchema).optional(),
230
+ meta: z.record(z.any()).optional(),
231
+ });
232
+
233
+ /** @internal */
234
+ export type BusinessLoanBusinessApplicationRelationshipsData$Outbound = {
235
+ type: string;
236
+ attributes: LoanDetailsAttributes$Outbound;
237
+ links?: { [k: string]: LinkObject$Outbound } | undefined;
238
+ meta?: { [k: string]: any } | undefined;
239
+ };
240
+
241
+ /** @internal */
242
+ export const BusinessLoanBusinessApplicationRelationshipsData$outboundSchema:
243
+ z.ZodType<
244
+ BusinessLoanBusinessApplicationRelationshipsData$Outbound,
245
+ z.ZodTypeDef,
246
+ BusinessLoanBusinessApplicationRelationshipsData
247
+ > = z.object({
248
+ type: BusinessLoanBusinessApplicationRelationshipsType$outboundSchema,
249
+ attributes: LoanDetailsAttributes$outboundSchema,
250
+ links: z.record(LinkObject$outboundSchema).optional(),
251
+ meta: z.record(z.any()).optional(),
252
+ });
253
+
254
+ /**
255
+ * @internal
256
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
257
+ */
258
+ export namespace BusinessLoanBusinessApplicationRelationshipsData$ {
259
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsData$inboundSchema` instead. */
260
+ export const inboundSchema =
261
+ BusinessLoanBusinessApplicationRelationshipsData$inboundSchema;
262
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsData$outboundSchema` instead. */
263
+ export const outboundSchema =
264
+ BusinessLoanBusinessApplicationRelationshipsData$outboundSchema;
265
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsData$Outbound` instead. */
266
+ export type Outbound =
267
+ BusinessLoanBusinessApplicationRelationshipsData$Outbound;
268
+ }
269
+
270
+ export function businessLoanBusinessApplicationRelationshipsDataToJSON(
271
+ businessLoanBusinessApplicationRelationshipsData:
272
+ BusinessLoanBusinessApplicationRelationshipsData,
273
+ ): string {
274
+ return JSON.stringify(
275
+ BusinessLoanBusinessApplicationRelationshipsData$outboundSchema.parse(
276
+ businessLoanBusinessApplicationRelationshipsData,
277
+ ),
278
+ );
279
+ }
280
+
281
+ export function businessLoanBusinessApplicationRelationshipsDataFromJSON(
282
+ jsonString: string,
283
+ ): SafeParseResult<
284
+ BusinessLoanBusinessApplicationRelationshipsData,
285
+ SDKValidationError
286
+ > {
287
+ return safeParse(
288
+ jsonString,
289
+ (x) =>
290
+ BusinessLoanBusinessApplicationRelationshipsData$inboundSchema.parse(
291
+ JSON.parse(x),
292
+ ),
293
+ `Failed to parse 'BusinessLoanBusinessApplicationRelationshipsData' from JSON`,
294
+ );
295
+ }
296
+
297
+ /** @internal */
298
+ export const BusinessLoanBusinessApplicationRelationshipsLoanDetails$inboundSchema:
299
+ z.ZodType<
300
+ BusinessLoanBusinessApplicationRelationshipsLoanDetails,
301
+ z.ZodTypeDef,
302
+ unknown
303
+ > = z.object({
304
+ data: z.lazy(() =>
305
+ BusinessLoanBusinessApplicationRelationshipsData$inboundSchema
306
+ ),
307
+ });
308
+
309
+ /** @internal */
310
+ export type BusinessLoanBusinessApplicationRelationshipsLoanDetails$Outbound = {
311
+ data: BusinessLoanBusinessApplicationRelationshipsData$Outbound;
312
+ };
313
+
314
+ /** @internal */
315
+ export const BusinessLoanBusinessApplicationRelationshipsLoanDetails$outboundSchema:
316
+ z.ZodType<
317
+ BusinessLoanBusinessApplicationRelationshipsLoanDetails$Outbound,
318
+ z.ZodTypeDef,
319
+ BusinessLoanBusinessApplicationRelationshipsLoanDetails
320
+ > = z.object({
321
+ data: z.lazy(() =>
322
+ BusinessLoanBusinessApplicationRelationshipsData$outboundSchema
323
+ ),
324
+ });
325
+
326
+ /**
327
+ * @internal
328
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
329
+ */
330
+ export namespace BusinessLoanBusinessApplicationRelationshipsLoanDetails$ {
331
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsLoanDetails$inboundSchema` instead. */
332
+ export const inboundSchema =
333
+ BusinessLoanBusinessApplicationRelationshipsLoanDetails$inboundSchema;
334
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsLoanDetails$outboundSchema` instead. */
335
+ export const outboundSchema =
336
+ BusinessLoanBusinessApplicationRelationshipsLoanDetails$outboundSchema;
337
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsLoanDetails$Outbound` instead. */
338
+ export type Outbound =
339
+ BusinessLoanBusinessApplicationRelationshipsLoanDetails$Outbound;
340
+ }
341
+
342
+ export function businessLoanBusinessApplicationRelationshipsLoanDetailsToJSON(
343
+ businessLoanBusinessApplicationRelationshipsLoanDetails:
344
+ BusinessLoanBusinessApplicationRelationshipsLoanDetails,
345
+ ): string {
346
+ return JSON.stringify(
347
+ BusinessLoanBusinessApplicationRelationshipsLoanDetails$outboundSchema
348
+ .parse(businessLoanBusinessApplicationRelationshipsLoanDetails),
349
+ );
350
+ }
351
+
352
+ export function businessLoanBusinessApplicationRelationshipsLoanDetailsFromJSON(
353
+ jsonString: string,
354
+ ): SafeParseResult<
355
+ BusinessLoanBusinessApplicationRelationshipsLoanDetails,
356
+ SDKValidationError
357
+ > {
358
+ return safeParse(
359
+ jsonString,
360
+ (x) =>
361
+ BusinessLoanBusinessApplicationRelationshipsLoanDetails$inboundSchema
362
+ .parse(JSON.parse(x)),
363
+ `Failed to parse 'BusinessLoanBusinessApplicationRelationshipsLoanDetails' from JSON`,
364
+ );
365
+ }
366
+
367
+ /** @internal */
368
+ export const BusinessLoanBusinessApplicationRelationshipsCustomersType$inboundSchema:
369
+ z.ZodNativeEnum<
370
+ typeof BusinessLoanBusinessApplicationRelationshipsCustomersType
371
+ > = z.nativeEnum(BusinessLoanBusinessApplicationRelationshipsCustomersType);
372
+
373
+ /** @internal */
374
+ export const BusinessLoanBusinessApplicationRelationshipsCustomersType$outboundSchema:
375
+ z.ZodNativeEnum<
376
+ typeof BusinessLoanBusinessApplicationRelationshipsCustomersType
377
+ > = BusinessLoanBusinessApplicationRelationshipsCustomersType$inboundSchema;
378
+
379
+ /**
380
+ * @internal
381
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
382
+ */
383
+ export namespace BusinessLoanBusinessApplicationRelationshipsCustomersType$ {
384
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsCustomersType$inboundSchema` instead. */
385
+ export const inboundSchema =
386
+ BusinessLoanBusinessApplicationRelationshipsCustomersType$inboundSchema;
387
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsCustomersType$outboundSchema` instead. */
388
+ export const outboundSchema =
389
+ BusinessLoanBusinessApplicationRelationshipsCustomersType$outboundSchema;
390
+ }
391
+
392
+ /** @internal */
393
+ export const BusinessLoanBusinessApplicationRelationshipsCustomersDataType$inboundSchema:
394
+ z.ZodNativeEnum<
395
+ typeof BusinessLoanBusinessApplicationRelationshipsCustomersDataType
396
+ > = z.nativeEnum(
397
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataType,
398
+ );
399
+
400
+ /** @internal */
401
+ export const BusinessLoanBusinessApplicationRelationshipsCustomersDataType$outboundSchema:
402
+ z.ZodNativeEnum<
403
+ typeof BusinessLoanBusinessApplicationRelationshipsCustomersDataType
404
+ > =
405
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataType$inboundSchema;
406
+
407
+ /**
408
+ * @internal
409
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
410
+ */
411
+ export namespace BusinessLoanBusinessApplicationRelationshipsCustomersDataType$ {
412
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsCustomersDataType$inboundSchema` instead. */
413
+ export const inboundSchema =
414
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataType$inboundSchema;
415
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsCustomersDataType$outboundSchema` instead. */
416
+ export const outboundSchema =
417
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataType$outboundSchema;
418
+ }
419
+
420
+ /** @internal */
421
+ export const BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData$inboundSchema:
422
+ z.ZodType<
423
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData,
424
+ z.ZodTypeDef,
425
+ unknown
426
+ > = z.object({
427
+ type:
428
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataType$inboundSchema,
429
+ attributes: AddressAttributes$inboundSchema,
430
+ links: z.record(LinkObject$inboundSchema).optional(),
431
+ meta: z.record(z.any()).optional(),
432
+ });
433
+
434
+ /** @internal */
435
+ export type BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData$Outbound =
436
+ {
437
+ type: string;
438
+ attributes: AddressAttributes$Outbound;
439
+ links?: { [k: string]: LinkObject$Outbound } | undefined;
440
+ meta?: { [k: string]: any } | undefined;
441
+ };
442
+
443
+ /** @internal */
444
+ export const BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema:
445
+ z.ZodType<
446
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData$Outbound,
447
+ z.ZodTypeDef,
448
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData
449
+ > = z.object({
450
+ type:
451
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataType$outboundSchema,
452
+ attributes: AddressAttributes$outboundSchema,
453
+ links: z.record(LinkObject$outboundSchema).optional(),
454
+ meta: z.record(z.any()).optional(),
455
+ });
456
+
457
+ /**
458
+ * @internal
459
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
460
+ */
461
+ export namespace BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData$ {
462
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData$inboundSchema` instead. */
463
+ export const inboundSchema =
464
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData$inboundSchema;
465
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema` instead. */
466
+ export const outboundSchema =
467
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema;
468
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData$Outbound` instead. */
469
+ export type Outbound =
470
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData$Outbound;
471
+ }
472
+
473
+ export function businessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesDataToJSON(
474
+ businessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData:
475
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData,
476
+ ): string {
477
+ return JSON.stringify(
478
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema
479
+ .parse(
480
+ businessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData,
481
+ ),
482
+ );
483
+ }
484
+
485
+ export function businessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesDataFromJSON(
486
+ jsonString: string,
487
+ ): SafeParseResult<
488
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData,
489
+ SDKValidationError
490
+ > {
491
+ return safeParse(
492
+ jsonString,
493
+ (x) =>
494
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData$inboundSchema
495
+ .parse(JSON.parse(x)),
496
+ `Failed to parse 'BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData' from JSON`,
497
+ );
498
+ }
499
+
500
+ /** @internal */
501
+ export const BusinessLoanBusinessApplicationRelationshipsAddresses$inboundSchema:
502
+ z.ZodType<
503
+ BusinessLoanBusinessApplicationRelationshipsAddresses,
504
+ z.ZodTypeDef,
505
+ unknown
506
+ > = z.object({
507
+ data: z.array(
508
+ z.lazy(() =>
509
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData$inboundSchema
510
+ ),
511
+ ),
512
+ });
513
+
514
+ /** @internal */
515
+ export type BusinessLoanBusinessApplicationRelationshipsAddresses$Outbound = {
516
+ data: Array<
517
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData$Outbound
518
+ >;
519
+ };
520
+
521
+ /** @internal */
522
+ export const BusinessLoanBusinessApplicationRelationshipsAddresses$outboundSchema:
523
+ z.ZodType<
524
+ BusinessLoanBusinessApplicationRelationshipsAddresses$Outbound,
525
+ z.ZodTypeDef,
526
+ BusinessLoanBusinessApplicationRelationshipsAddresses
527
+ > = z.object({
528
+ data: z.array(
529
+ z.lazy(() =>
530
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema
531
+ ),
532
+ ),
533
+ });
534
+
535
+ /**
536
+ * @internal
537
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
538
+ */
539
+ export namespace BusinessLoanBusinessApplicationRelationshipsAddresses$ {
540
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsAddresses$inboundSchema` instead. */
541
+ export const inboundSchema =
542
+ BusinessLoanBusinessApplicationRelationshipsAddresses$inboundSchema;
543
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsAddresses$outboundSchema` instead. */
544
+ export const outboundSchema =
545
+ BusinessLoanBusinessApplicationRelationshipsAddresses$outboundSchema;
546
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsAddresses$Outbound` instead. */
547
+ export type Outbound =
548
+ BusinessLoanBusinessApplicationRelationshipsAddresses$Outbound;
549
+ }
550
+
551
+ export function businessLoanBusinessApplicationRelationshipsAddressesToJSON(
552
+ businessLoanBusinessApplicationRelationshipsAddresses:
553
+ BusinessLoanBusinessApplicationRelationshipsAddresses,
554
+ ): string {
555
+ return JSON.stringify(
556
+ BusinessLoanBusinessApplicationRelationshipsAddresses$outboundSchema.parse(
557
+ businessLoanBusinessApplicationRelationshipsAddresses,
558
+ ),
559
+ );
560
+ }
561
+
562
+ export function businessLoanBusinessApplicationRelationshipsAddressesFromJSON(
563
+ jsonString: string,
564
+ ): SafeParseResult<
565
+ BusinessLoanBusinessApplicationRelationshipsAddresses,
566
+ SDKValidationError
567
+ > {
568
+ return safeParse(
569
+ jsonString,
570
+ (x) =>
571
+ BusinessLoanBusinessApplicationRelationshipsAddresses$inboundSchema.parse(
572
+ JSON.parse(x),
573
+ ),
574
+ `Failed to parse 'BusinessLoanBusinessApplicationRelationshipsAddresses' from JSON`,
575
+ );
576
+ }
577
+
578
+ /** @internal */
579
+ export const BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema:
580
+ z.ZodNativeEnum<
581
+ typeof BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsType
582
+ > = z.nativeEnum(
583
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsType,
584
+ );
585
+
586
+ /** @internal */
587
+ export const BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema:
588
+ z.ZodNativeEnum<
589
+ typeof BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsType
590
+ > =
591
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema;
592
+
593
+ /**
594
+ * @internal
595
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
596
+ */
597
+ export namespace BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsType$ {
598
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema` instead. */
599
+ export const inboundSchema =
600
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema;
601
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema` instead. */
602
+ export const outboundSchema =
603
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema;
604
+ }
605
+
606
+ /** @internal */
607
+ export const BusinessLoanBusinessApplicationRelationshipsCustomersDataData$inboundSchema:
608
+ z.ZodType<
609
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataData,
610
+ z.ZodTypeDef,
611
+ unknown
612
+ > = z.object({
613
+ type:
614
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema,
615
+ attributes: CustomerLiabilityAttributes$inboundSchema,
616
+ links: z.record(LinkObject$inboundSchema).optional(),
617
+ meta: z.record(z.any()).optional(),
618
+ });
619
+
620
+ /** @internal */
621
+ export type BusinessLoanBusinessApplicationRelationshipsCustomersDataData$Outbound =
622
+ {
623
+ type: string;
624
+ attributes: CustomerLiabilityAttributes$Outbound;
625
+ links?: { [k: string]: LinkObject$Outbound } | undefined;
626
+ meta?: { [k: string]: any } | undefined;
627
+ };
628
+
629
+ /** @internal */
630
+ export const BusinessLoanBusinessApplicationRelationshipsCustomersDataData$outboundSchema:
631
+ z.ZodType<
632
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataData$Outbound,
633
+ z.ZodTypeDef,
634
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataData
635
+ > = z.object({
636
+ type:
637
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema,
638
+ attributes: CustomerLiabilityAttributes$outboundSchema,
639
+ links: z.record(LinkObject$outboundSchema).optional(),
640
+ meta: z.record(z.any()).optional(),
641
+ });
642
+
643
+ /**
644
+ * @internal
645
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
646
+ */
647
+ export namespace BusinessLoanBusinessApplicationRelationshipsCustomersDataData$ {
648
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsCustomersDataData$inboundSchema` instead. */
649
+ export const inboundSchema =
650
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataData$inboundSchema;
651
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsCustomersDataData$outboundSchema` instead. */
652
+ export const outboundSchema =
653
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataData$outboundSchema;
654
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsCustomersDataData$Outbound` instead. */
655
+ export type Outbound =
656
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataData$Outbound;
657
+ }
658
+
659
+ export function businessLoanBusinessApplicationRelationshipsCustomersDataDataToJSON(
660
+ businessLoanBusinessApplicationRelationshipsCustomersDataData:
661
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataData,
662
+ ): string {
663
+ return JSON.stringify(
664
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataData$outboundSchema
665
+ .parse(businessLoanBusinessApplicationRelationshipsCustomersDataData),
666
+ );
667
+ }
668
+
669
+ export function businessLoanBusinessApplicationRelationshipsCustomersDataDataFromJSON(
670
+ jsonString: string,
671
+ ): SafeParseResult<
672
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataData,
673
+ SDKValidationError
674
+ > {
675
+ return safeParse(
676
+ jsonString,
677
+ (x) =>
678
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataData$inboundSchema
679
+ .parse(JSON.parse(x)),
680
+ `Failed to parse 'BusinessLoanBusinessApplicationRelationshipsCustomersDataData' from JSON`,
681
+ );
682
+ }
683
+
684
+ /** @internal */
685
+ export const BusinessLoanBusinessApplicationRelationshipsLiabilities$inboundSchema:
686
+ z.ZodType<
687
+ BusinessLoanBusinessApplicationRelationshipsLiabilities,
688
+ z.ZodTypeDef,
689
+ unknown
690
+ > = z.object({
691
+ data: z.array(
692
+ z.lazy(() =>
693
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataData$inboundSchema
694
+ ),
695
+ ),
696
+ });
697
+
698
+ /** @internal */
699
+ export type BusinessLoanBusinessApplicationRelationshipsLiabilities$Outbound = {
700
+ data: Array<
701
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataData$Outbound
702
+ >;
703
+ };
704
+
705
+ /** @internal */
706
+ export const BusinessLoanBusinessApplicationRelationshipsLiabilities$outboundSchema:
707
+ z.ZodType<
708
+ BusinessLoanBusinessApplicationRelationshipsLiabilities$Outbound,
709
+ z.ZodTypeDef,
710
+ BusinessLoanBusinessApplicationRelationshipsLiabilities
711
+ > = z.object({
712
+ data: z.array(
713
+ z.lazy(() =>
714
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataData$outboundSchema
715
+ ),
716
+ ),
717
+ });
718
+
719
+ /**
720
+ * @internal
721
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
722
+ */
723
+ export namespace BusinessLoanBusinessApplicationRelationshipsLiabilities$ {
724
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsLiabilities$inboundSchema` instead. */
725
+ export const inboundSchema =
726
+ BusinessLoanBusinessApplicationRelationshipsLiabilities$inboundSchema;
727
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsLiabilities$outboundSchema` instead. */
728
+ export const outboundSchema =
729
+ BusinessLoanBusinessApplicationRelationshipsLiabilities$outboundSchema;
730
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsLiabilities$Outbound` instead. */
731
+ export type Outbound =
732
+ BusinessLoanBusinessApplicationRelationshipsLiabilities$Outbound;
733
+ }
734
+
735
+ export function businessLoanBusinessApplicationRelationshipsLiabilitiesToJSON(
736
+ businessLoanBusinessApplicationRelationshipsLiabilities:
737
+ BusinessLoanBusinessApplicationRelationshipsLiabilities,
738
+ ): string {
739
+ return JSON.stringify(
740
+ BusinessLoanBusinessApplicationRelationshipsLiabilities$outboundSchema
741
+ .parse(businessLoanBusinessApplicationRelationshipsLiabilities),
742
+ );
743
+ }
744
+
745
+ export function businessLoanBusinessApplicationRelationshipsLiabilitiesFromJSON(
746
+ jsonString: string,
747
+ ): SafeParseResult<
748
+ BusinessLoanBusinessApplicationRelationshipsLiabilities,
749
+ SDKValidationError
750
+ > {
751
+ return safeParse(
752
+ jsonString,
753
+ (x) =>
754
+ BusinessLoanBusinessApplicationRelationshipsLiabilities$inboundSchema
755
+ .parse(JSON.parse(x)),
756
+ `Failed to parse 'BusinessLoanBusinessApplicationRelationshipsLiabilities' from JSON`,
757
+ );
758
+ }
759
+
760
+ /** @internal */
761
+ export const BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema:
762
+ z.ZodNativeEnum<
763
+ typeof BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAssetsType
764
+ > = z.nativeEnum(
765
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAssetsType,
766
+ );
767
+
768
+ /** @internal */
769
+ export const BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAssetsType$outboundSchema:
770
+ z.ZodNativeEnum<
771
+ typeof BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAssetsType
772
+ > =
773
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema;
774
+
775
+ /**
776
+ * @internal
777
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
778
+ */
779
+ export namespace BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAssetsType$ {
780
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema` instead. */
781
+ export const inboundSchema =
782
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema;
783
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAssetsType$outboundSchema` instead. */
784
+ export const outboundSchema =
785
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAssetsType$outboundSchema;
786
+ }
787
+
788
+ /** @internal */
789
+ export const BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema:
790
+ z.ZodType<
791
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData,
792
+ z.ZodTypeDef,
793
+ unknown
794
+ > = z.object({
795
+ type:
796
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema,
797
+ attributes: CustomerAssetAttributes$inboundSchema,
798
+ links: z.record(LinkObject$inboundSchema).optional(),
799
+ meta: z.record(z.any()).optional(),
800
+ });
801
+
802
+ /** @internal */
803
+ export type BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData$Outbound =
804
+ {
805
+ type: string;
806
+ attributes: CustomerAssetAttributes$Outbound;
807
+ links?: { [k: string]: LinkObject$Outbound } | undefined;
808
+ meta?: { [k: string]: any } | undefined;
809
+ };
810
+
811
+ /** @internal */
812
+ export const BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema:
813
+ z.ZodType<
814
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData$Outbound,
815
+ z.ZodTypeDef,
816
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData
817
+ > = z.object({
818
+ type:
819
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsAssetsType$outboundSchema,
820
+ attributes: CustomerAssetAttributes$outboundSchema,
821
+ links: z.record(LinkObject$outboundSchema).optional(),
822
+ meta: z.record(z.any()).optional(),
823
+ });
824
+
825
+ /**
826
+ * @internal
827
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
828
+ */
829
+ export namespace BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData$ {
830
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema` instead. */
831
+ export const inboundSchema =
832
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema;
833
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema` instead. */
834
+ export const outboundSchema =
835
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema;
836
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData$Outbound` instead. */
837
+ export type Outbound =
838
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData$Outbound;
839
+ }
840
+
841
+ export function businessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsDataToJSON(
842
+ businessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData:
843
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData,
844
+ ): string {
845
+ return JSON.stringify(
846
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema
847
+ .parse(
848
+ businessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData,
849
+ ),
850
+ );
851
+ }
852
+
853
+ export function businessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsDataFromJSON(
854
+ jsonString: string,
855
+ ): SafeParseResult<
856
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData,
857
+ SDKValidationError
858
+ > {
859
+ return safeParse(
860
+ jsonString,
861
+ (x) =>
862
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema
863
+ .parse(JSON.parse(x)),
864
+ `Failed to parse 'BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData' from JSON`,
865
+ );
866
+ }
867
+
868
+ /** @internal */
869
+ export const BusinessLoanBusinessApplicationRelationshipsAssets$inboundSchema:
870
+ z.ZodType<
871
+ BusinessLoanBusinessApplicationRelationshipsAssets,
872
+ z.ZodTypeDef,
873
+ unknown
874
+ > = z.object({
875
+ data: z.array(
876
+ z.lazy(() =>
877
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema
878
+ ),
879
+ ),
880
+ });
881
+
882
+ /** @internal */
883
+ export type BusinessLoanBusinessApplicationRelationshipsAssets$Outbound = {
884
+ data: Array<
885
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData$Outbound
886
+ >;
887
+ };
888
+
889
+ /** @internal */
890
+ export const BusinessLoanBusinessApplicationRelationshipsAssets$outboundSchema:
891
+ z.ZodType<
892
+ BusinessLoanBusinessApplicationRelationshipsAssets$Outbound,
893
+ z.ZodTypeDef,
894
+ BusinessLoanBusinessApplicationRelationshipsAssets
895
+ > = z.object({
896
+ data: z.array(
897
+ z.lazy(() =>
898
+ BusinessLoanBusinessApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema
899
+ ),
900
+ ),
901
+ });
902
+
903
+ /**
904
+ * @internal
905
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
906
+ */
907
+ export namespace BusinessLoanBusinessApplicationRelationshipsAssets$ {
908
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsAssets$inboundSchema` instead. */
909
+ export const inboundSchema =
910
+ BusinessLoanBusinessApplicationRelationshipsAssets$inboundSchema;
911
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsAssets$outboundSchema` instead. */
912
+ export const outboundSchema =
913
+ BusinessLoanBusinessApplicationRelationshipsAssets$outboundSchema;
914
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsAssets$Outbound` instead. */
915
+ export type Outbound =
916
+ BusinessLoanBusinessApplicationRelationshipsAssets$Outbound;
917
+ }
918
+
919
+ export function businessLoanBusinessApplicationRelationshipsAssetsToJSON(
920
+ businessLoanBusinessApplicationRelationshipsAssets:
921
+ BusinessLoanBusinessApplicationRelationshipsAssets,
922
+ ): string {
923
+ return JSON.stringify(
924
+ BusinessLoanBusinessApplicationRelationshipsAssets$outboundSchema.parse(
925
+ businessLoanBusinessApplicationRelationshipsAssets,
926
+ ),
927
+ );
928
+ }
929
+
930
+ export function businessLoanBusinessApplicationRelationshipsAssetsFromJSON(
931
+ jsonString: string,
932
+ ): SafeParseResult<
933
+ BusinessLoanBusinessApplicationRelationshipsAssets,
934
+ SDKValidationError
935
+ > {
936
+ return safeParse(
937
+ jsonString,
938
+ (x) =>
939
+ BusinessLoanBusinessApplicationRelationshipsAssets$inboundSchema.parse(
940
+ JSON.parse(x),
941
+ ),
942
+ `Failed to parse 'BusinessLoanBusinessApplicationRelationshipsAssets' from JSON`,
943
+ );
944
+ }
945
+
946
+ /** @internal */
947
+ export const BusinessLoanBusinessApplicationRelationshipsRelationships$inboundSchema:
948
+ z.ZodType<
949
+ BusinessLoanBusinessApplicationRelationshipsRelationships,
950
+ z.ZodTypeDef,
951
+ unknown
952
+ > = z.object({
953
+ addresses: z.lazy(() =>
954
+ BusinessLoanBusinessApplicationRelationshipsAddresses$inboundSchema
955
+ ).optional(),
956
+ liabilities: z.lazy(() =>
957
+ BusinessLoanBusinessApplicationRelationshipsLiabilities$inboundSchema
958
+ ).optional(),
959
+ assets: z.lazy(() =>
960
+ BusinessLoanBusinessApplicationRelationshipsAssets$inboundSchema
961
+ ).optional(),
962
+ });
963
+
964
+ /** @internal */
965
+ export type BusinessLoanBusinessApplicationRelationshipsRelationships$Outbound =
966
+ {
967
+ addresses?:
968
+ | BusinessLoanBusinessApplicationRelationshipsAddresses$Outbound
969
+ | undefined;
970
+ liabilities?:
971
+ | BusinessLoanBusinessApplicationRelationshipsLiabilities$Outbound
972
+ | undefined;
973
+ assets?:
974
+ | BusinessLoanBusinessApplicationRelationshipsAssets$Outbound
975
+ | undefined;
976
+ };
977
+
978
+ /** @internal */
979
+ export const BusinessLoanBusinessApplicationRelationshipsRelationships$outboundSchema:
980
+ z.ZodType<
981
+ BusinessLoanBusinessApplicationRelationshipsRelationships$Outbound,
982
+ z.ZodTypeDef,
983
+ BusinessLoanBusinessApplicationRelationshipsRelationships
984
+ > = z.object({
985
+ addresses: z.lazy(() =>
986
+ BusinessLoanBusinessApplicationRelationshipsAddresses$outboundSchema
987
+ ).optional(),
988
+ liabilities: z.lazy(() =>
989
+ BusinessLoanBusinessApplicationRelationshipsLiabilities$outboundSchema
990
+ ).optional(),
991
+ assets: z.lazy(() =>
992
+ BusinessLoanBusinessApplicationRelationshipsAssets$outboundSchema
993
+ ).optional(),
994
+ });
995
+
996
+ /**
997
+ * @internal
998
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
999
+ */
1000
+ export namespace BusinessLoanBusinessApplicationRelationshipsRelationships$ {
1001
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsRelationships$inboundSchema` instead. */
1002
+ export const inboundSchema =
1003
+ BusinessLoanBusinessApplicationRelationshipsRelationships$inboundSchema;
1004
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsRelationships$outboundSchema` instead. */
1005
+ export const outboundSchema =
1006
+ BusinessLoanBusinessApplicationRelationshipsRelationships$outboundSchema;
1007
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsRelationships$Outbound` instead. */
1008
+ export type Outbound =
1009
+ BusinessLoanBusinessApplicationRelationshipsRelationships$Outbound;
1010
+ }
1011
+
1012
+ export function businessLoanBusinessApplicationRelationshipsRelationshipsToJSON(
1013
+ businessLoanBusinessApplicationRelationshipsRelationships:
1014
+ BusinessLoanBusinessApplicationRelationshipsRelationships,
1015
+ ): string {
1016
+ return JSON.stringify(
1017
+ BusinessLoanBusinessApplicationRelationshipsRelationships$outboundSchema
1018
+ .parse(businessLoanBusinessApplicationRelationshipsRelationships),
1019
+ );
1020
+ }
1021
+
1022
+ export function businessLoanBusinessApplicationRelationshipsRelationshipsFromJSON(
1023
+ jsonString: string,
1024
+ ): SafeParseResult<
1025
+ BusinessLoanBusinessApplicationRelationshipsRelationships,
1026
+ SDKValidationError
1027
+ > {
1028
+ return safeParse(
1029
+ jsonString,
1030
+ (x) =>
1031
+ BusinessLoanBusinessApplicationRelationshipsRelationships$inboundSchema
1032
+ .parse(JSON.parse(x)),
1033
+ `Failed to parse 'BusinessLoanBusinessApplicationRelationshipsRelationships' from JSON`,
1034
+ );
1035
+ }
1036
+
1037
+ /** @internal */
1038
+ export const BusinessLoanBusinessApplicationRelationshipsCustomersData$inboundSchema:
1039
+ z.ZodType<
1040
+ BusinessLoanBusinessApplicationRelationshipsCustomersData,
1041
+ z.ZodTypeDef,
1042
+ unknown
1043
+ > = z.object({
1044
+ type:
1045
+ BusinessLoanBusinessApplicationRelationshipsCustomersType$inboundSchema,
1046
+ attributes: CustomerAttributes$inboundSchema,
1047
+ relationships: z.lazy(() =>
1048
+ BusinessLoanBusinessApplicationRelationshipsRelationships$inboundSchema
1049
+ ).optional(),
1050
+ links: z.record(LinkObject$inboundSchema).optional(),
1051
+ meta: z.record(z.any()).optional(),
1052
+ });
1053
+
1054
+ /** @internal */
1055
+ export type BusinessLoanBusinessApplicationRelationshipsCustomersData$Outbound =
1056
+ {
1057
+ type: string;
1058
+ attributes: CustomerAttributes$Outbound;
1059
+ relationships?:
1060
+ | BusinessLoanBusinessApplicationRelationshipsRelationships$Outbound
1061
+ | undefined;
1062
+ links?: { [k: string]: LinkObject$Outbound } | undefined;
1063
+ meta?: { [k: string]: any } | undefined;
1064
+ };
1065
+
1066
+ /** @internal */
1067
+ export const BusinessLoanBusinessApplicationRelationshipsCustomersData$outboundSchema:
1068
+ z.ZodType<
1069
+ BusinessLoanBusinessApplicationRelationshipsCustomersData$Outbound,
1070
+ z.ZodTypeDef,
1071
+ BusinessLoanBusinessApplicationRelationshipsCustomersData
1072
+ > = z.object({
1073
+ type:
1074
+ BusinessLoanBusinessApplicationRelationshipsCustomersType$outboundSchema,
1075
+ attributes: CustomerAttributes$outboundSchema,
1076
+ relationships: z.lazy(() =>
1077
+ BusinessLoanBusinessApplicationRelationshipsRelationships$outboundSchema
1078
+ ).optional(),
1079
+ links: z.record(LinkObject$outboundSchema).optional(),
1080
+ meta: z.record(z.any()).optional(),
1081
+ });
1082
+
1083
+ /**
1084
+ * @internal
1085
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1086
+ */
1087
+ export namespace BusinessLoanBusinessApplicationRelationshipsCustomersData$ {
1088
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsCustomersData$inboundSchema` instead. */
1089
+ export const inboundSchema =
1090
+ BusinessLoanBusinessApplicationRelationshipsCustomersData$inboundSchema;
1091
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsCustomersData$outboundSchema` instead. */
1092
+ export const outboundSchema =
1093
+ BusinessLoanBusinessApplicationRelationshipsCustomersData$outboundSchema;
1094
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsCustomersData$Outbound` instead. */
1095
+ export type Outbound =
1096
+ BusinessLoanBusinessApplicationRelationshipsCustomersData$Outbound;
1097
+ }
1098
+
1099
+ export function businessLoanBusinessApplicationRelationshipsCustomersDataToJSON(
1100
+ businessLoanBusinessApplicationRelationshipsCustomersData:
1101
+ BusinessLoanBusinessApplicationRelationshipsCustomersData,
1102
+ ): string {
1103
+ return JSON.stringify(
1104
+ BusinessLoanBusinessApplicationRelationshipsCustomersData$outboundSchema
1105
+ .parse(businessLoanBusinessApplicationRelationshipsCustomersData),
1106
+ );
1107
+ }
1108
+
1109
+ export function businessLoanBusinessApplicationRelationshipsCustomersDataFromJSON(
1110
+ jsonString: string,
1111
+ ): SafeParseResult<
1112
+ BusinessLoanBusinessApplicationRelationshipsCustomersData,
1113
+ SDKValidationError
1114
+ > {
1115
+ return safeParse(
1116
+ jsonString,
1117
+ (x) =>
1118
+ BusinessLoanBusinessApplicationRelationshipsCustomersData$inboundSchema
1119
+ .parse(JSON.parse(x)),
1120
+ `Failed to parse 'BusinessLoanBusinessApplicationRelationshipsCustomersData' from JSON`,
1121
+ );
1122
+ }
1123
+
1124
+ /** @internal */
1125
+ export const BusinessLoanBusinessApplicationRelationshipsCustomers$inboundSchema:
1126
+ z.ZodType<
1127
+ BusinessLoanBusinessApplicationRelationshipsCustomers,
1128
+ z.ZodTypeDef,
1129
+ unknown
1130
+ > = z.object({
1131
+ data: z.array(
1132
+ z.lazy(() =>
1133
+ BusinessLoanBusinessApplicationRelationshipsCustomersData$inboundSchema
1134
+ ),
1135
+ ),
1136
+ });
1137
+
1138
+ /** @internal */
1139
+ export type BusinessLoanBusinessApplicationRelationshipsCustomers$Outbound = {
1140
+ data: Array<
1141
+ BusinessLoanBusinessApplicationRelationshipsCustomersData$Outbound
1142
+ >;
1143
+ };
1144
+
1145
+ /** @internal */
1146
+ export const BusinessLoanBusinessApplicationRelationshipsCustomers$outboundSchema:
1147
+ z.ZodType<
1148
+ BusinessLoanBusinessApplicationRelationshipsCustomers$Outbound,
1149
+ z.ZodTypeDef,
1150
+ BusinessLoanBusinessApplicationRelationshipsCustomers
1151
+ > = z.object({
1152
+ data: z.array(
1153
+ z.lazy(() =>
1154
+ BusinessLoanBusinessApplicationRelationshipsCustomersData$outboundSchema
1155
+ ),
1156
+ ),
1157
+ });
1158
+
1159
+ /**
1160
+ * @internal
1161
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1162
+ */
1163
+ export namespace BusinessLoanBusinessApplicationRelationshipsCustomers$ {
1164
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsCustomers$inboundSchema` instead. */
1165
+ export const inboundSchema =
1166
+ BusinessLoanBusinessApplicationRelationshipsCustomers$inboundSchema;
1167
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsCustomers$outboundSchema` instead. */
1168
+ export const outboundSchema =
1169
+ BusinessLoanBusinessApplicationRelationshipsCustomers$outboundSchema;
1170
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsCustomers$Outbound` instead. */
1171
+ export type Outbound =
1172
+ BusinessLoanBusinessApplicationRelationshipsCustomers$Outbound;
1173
+ }
1174
+
1175
+ export function businessLoanBusinessApplicationRelationshipsCustomersToJSON(
1176
+ businessLoanBusinessApplicationRelationshipsCustomers:
1177
+ BusinessLoanBusinessApplicationRelationshipsCustomers,
1178
+ ): string {
1179
+ return JSON.stringify(
1180
+ BusinessLoanBusinessApplicationRelationshipsCustomers$outboundSchema.parse(
1181
+ businessLoanBusinessApplicationRelationshipsCustomers,
1182
+ ),
1183
+ );
1184
+ }
1185
+
1186
+ export function businessLoanBusinessApplicationRelationshipsCustomersFromJSON(
1187
+ jsonString: string,
1188
+ ): SafeParseResult<
1189
+ BusinessLoanBusinessApplicationRelationshipsCustomers,
1190
+ SDKValidationError
1191
+ > {
1192
+ return safeParse(
1193
+ jsonString,
1194
+ (x) =>
1195
+ BusinessLoanBusinessApplicationRelationshipsCustomers$inboundSchema.parse(
1196
+ JSON.parse(x),
1197
+ ),
1198
+ `Failed to parse 'BusinessLoanBusinessApplicationRelationshipsCustomers' from JSON`,
1199
+ );
1200
+ }
1201
+
1202
+ /** @internal */
1203
+ export const BusinessLoanBusinessApplicationRelationshipsEntitiesType$inboundSchema:
1204
+ z.ZodNativeEnum<
1205
+ typeof BusinessLoanBusinessApplicationRelationshipsEntitiesType
1206
+ > = z.nativeEnum(BusinessLoanBusinessApplicationRelationshipsEntitiesType);
1207
+
1208
+ /** @internal */
1209
+ export const BusinessLoanBusinessApplicationRelationshipsEntitiesType$outboundSchema:
1210
+ z.ZodNativeEnum<
1211
+ typeof BusinessLoanBusinessApplicationRelationshipsEntitiesType
1212
+ > = BusinessLoanBusinessApplicationRelationshipsEntitiesType$inboundSchema;
1213
+
1214
+ /**
1215
+ * @internal
1216
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1217
+ */
1218
+ export namespace BusinessLoanBusinessApplicationRelationshipsEntitiesType$ {
1219
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsEntitiesType$inboundSchema` instead. */
1220
+ export const inboundSchema =
1221
+ BusinessLoanBusinessApplicationRelationshipsEntitiesType$inboundSchema;
1222
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsEntitiesType$outboundSchema` instead. */
1223
+ export const outboundSchema =
1224
+ BusinessLoanBusinessApplicationRelationshipsEntitiesType$outboundSchema;
1225
+ }
1226
+
1227
+ /** @internal */
1228
+ export const BusinessLoanBusinessApplicationRelationshipsEntitiesData$inboundSchema:
1229
+ z.ZodType<
1230
+ BusinessLoanBusinessApplicationRelationshipsEntitiesData,
1231
+ z.ZodTypeDef,
1232
+ unknown
1233
+ > = z.object({
1234
+ type:
1235
+ BusinessLoanBusinessApplicationRelationshipsEntitiesType$inboundSchema,
1236
+ attributes: EntityAttributes$inboundSchema,
1237
+ links: z.record(LinkObject$inboundSchema).optional(),
1238
+ meta: z.record(z.any()).optional(),
1239
+ });
1240
+
1241
+ /** @internal */
1242
+ export type BusinessLoanBusinessApplicationRelationshipsEntitiesData$Outbound =
1243
+ {
1244
+ type: string;
1245
+ attributes: EntityAttributes$Outbound;
1246
+ links?: { [k: string]: LinkObject$Outbound } | undefined;
1247
+ meta?: { [k: string]: any } | undefined;
1248
+ };
1249
+
1250
+ /** @internal */
1251
+ export const BusinessLoanBusinessApplicationRelationshipsEntitiesData$outboundSchema:
1252
+ z.ZodType<
1253
+ BusinessLoanBusinessApplicationRelationshipsEntitiesData$Outbound,
1254
+ z.ZodTypeDef,
1255
+ BusinessLoanBusinessApplicationRelationshipsEntitiesData
1256
+ > = z.object({
1257
+ type:
1258
+ BusinessLoanBusinessApplicationRelationshipsEntitiesType$outboundSchema,
1259
+ attributes: EntityAttributes$outboundSchema,
1260
+ links: z.record(LinkObject$outboundSchema).optional(),
1261
+ meta: z.record(z.any()).optional(),
1262
+ });
1263
+
1264
+ /**
1265
+ * @internal
1266
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1267
+ */
1268
+ export namespace BusinessLoanBusinessApplicationRelationshipsEntitiesData$ {
1269
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsEntitiesData$inboundSchema` instead. */
1270
+ export const inboundSchema =
1271
+ BusinessLoanBusinessApplicationRelationshipsEntitiesData$inboundSchema;
1272
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsEntitiesData$outboundSchema` instead. */
1273
+ export const outboundSchema =
1274
+ BusinessLoanBusinessApplicationRelationshipsEntitiesData$outboundSchema;
1275
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsEntitiesData$Outbound` instead. */
1276
+ export type Outbound =
1277
+ BusinessLoanBusinessApplicationRelationshipsEntitiesData$Outbound;
1278
+ }
1279
+
1280
+ export function businessLoanBusinessApplicationRelationshipsEntitiesDataToJSON(
1281
+ businessLoanBusinessApplicationRelationshipsEntitiesData:
1282
+ BusinessLoanBusinessApplicationRelationshipsEntitiesData,
1283
+ ): string {
1284
+ return JSON.stringify(
1285
+ BusinessLoanBusinessApplicationRelationshipsEntitiesData$outboundSchema
1286
+ .parse(businessLoanBusinessApplicationRelationshipsEntitiesData),
1287
+ );
1288
+ }
1289
+
1290
+ export function businessLoanBusinessApplicationRelationshipsEntitiesDataFromJSON(
1291
+ jsonString: string,
1292
+ ): SafeParseResult<
1293
+ BusinessLoanBusinessApplicationRelationshipsEntitiesData,
1294
+ SDKValidationError
1295
+ > {
1296
+ return safeParse(
1297
+ jsonString,
1298
+ (x) =>
1299
+ BusinessLoanBusinessApplicationRelationshipsEntitiesData$inboundSchema
1300
+ .parse(JSON.parse(x)),
1301
+ `Failed to parse 'BusinessLoanBusinessApplicationRelationshipsEntitiesData' from JSON`,
1302
+ );
1303
+ }
1304
+
1305
+ /** @internal */
1306
+ export const BusinessLoanBusinessApplicationRelationshipsEntities$inboundSchema:
1307
+ z.ZodType<
1308
+ BusinessLoanBusinessApplicationRelationshipsEntities,
1309
+ z.ZodTypeDef,
1310
+ unknown
1311
+ > = z.object({
1312
+ data: z.array(
1313
+ z.lazy(() =>
1314
+ BusinessLoanBusinessApplicationRelationshipsEntitiesData$inboundSchema
1315
+ ),
1316
+ ),
1317
+ });
1318
+
1319
+ /** @internal */
1320
+ export type BusinessLoanBusinessApplicationRelationshipsEntities$Outbound = {
1321
+ data: Array<
1322
+ BusinessLoanBusinessApplicationRelationshipsEntitiesData$Outbound
1323
+ >;
1324
+ };
1325
+
1326
+ /** @internal */
1327
+ export const BusinessLoanBusinessApplicationRelationshipsEntities$outboundSchema:
1328
+ z.ZodType<
1329
+ BusinessLoanBusinessApplicationRelationshipsEntities$Outbound,
1330
+ z.ZodTypeDef,
1331
+ BusinessLoanBusinessApplicationRelationshipsEntities
1332
+ > = z.object({
1333
+ data: z.array(
1334
+ z.lazy(() =>
1335
+ BusinessLoanBusinessApplicationRelationshipsEntitiesData$outboundSchema
1336
+ ),
1337
+ ),
1338
+ });
1339
+
1340
+ /**
1341
+ * @internal
1342
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1343
+ */
1344
+ export namespace BusinessLoanBusinessApplicationRelationshipsEntities$ {
1345
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsEntities$inboundSchema` instead. */
1346
+ export const inboundSchema =
1347
+ BusinessLoanBusinessApplicationRelationshipsEntities$inboundSchema;
1348
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsEntities$outboundSchema` instead. */
1349
+ export const outboundSchema =
1350
+ BusinessLoanBusinessApplicationRelationshipsEntities$outboundSchema;
1351
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationshipsEntities$Outbound` instead. */
1352
+ export type Outbound =
1353
+ BusinessLoanBusinessApplicationRelationshipsEntities$Outbound;
1354
+ }
1355
+
1356
+ export function businessLoanBusinessApplicationRelationshipsEntitiesToJSON(
1357
+ businessLoanBusinessApplicationRelationshipsEntities:
1358
+ BusinessLoanBusinessApplicationRelationshipsEntities,
1359
+ ): string {
1360
+ return JSON.stringify(
1361
+ BusinessLoanBusinessApplicationRelationshipsEntities$outboundSchema.parse(
1362
+ businessLoanBusinessApplicationRelationshipsEntities,
1363
+ ),
1364
+ );
1365
+ }
1366
+
1367
+ export function businessLoanBusinessApplicationRelationshipsEntitiesFromJSON(
1368
+ jsonString: string,
1369
+ ): SafeParseResult<
1370
+ BusinessLoanBusinessApplicationRelationshipsEntities,
1371
+ SDKValidationError
1372
+ > {
1373
+ return safeParse(
1374
+ jsonString,
1375
+ (x) =>
1376
+ BusinessLoanBusinessApplicationRelationshipsEntities$inboundSchema.parse(
1377
+ JSON.parse(x),
1378
+ ),
1379
+ `Failed to parse 'BusinessLoanBusinessApplicationRelationshipsEntities' from JSON`,
1380
+ );
1381
+ }
1382
+
1383
+ /** @internal */
1384
+ export const BusinessLoanBusinessApplicationRelationships$inboundSchema:
1385
+ z.ZodType<
1386
+ BusinessLoanBusinessApplicationRelationships,
1387
+ z.ZodTypeDef,
1388
+ unknown
1389
+ > = z.object({
1390
+ loanDetails: z.lazy(() =>
1391
+ BusinessLoanBusinessApplicationRelationshipsLoanDetails$inboundSchema
1392
+ ).optional(),
1393
+ customers: z.lazy(() =>
1394
+ BusinessLoanBusinessApplicationRelationshipsCustomers$inboundSchema
1395
+ ).optional(),
1396
+ entities: z.lazy(() =>
1397
+ BusinessLoanBusinessApplicationRelationshipsEntities$inboundSchema
1398
+ ).optional(),
1399
+ });
1400
+
1401
+ /** @internal */
1402
+ export type BusinessLoanBusinessApplicationRelationships$Outbound = {
1403
+ loanDetails?:
1404
+ | BusinessLoanBusinessApplicationRelationshipsLoanDetails$Outbound
1405
+ | undefined;
1406
+ customers?:
1407
+ | BusinessLoanBusinessApplicationRelationshipsCustomers$Outbound
1408
+ | undefined;
1409
+ entities?:
1410
+ | BusinessLoanBusinessApplicationRelationshipsEntities$Outbound
1411
+ | undefined;
1412
+ };
1413
+
1414
+ /** @internal */
1415
+ export const BusinessLoanBusinessApplicationRelationships$outboundSchema:
1416
+ z.ZodType<
1417
+ BusinessLoanBusinessApplicationRelationships$Outbound,
1418
+ z.ZodTypeDef,
1419
+ BusinessLoanBusinessApplicationRelationships
1420
+ > = z.object({
1421
+ loanDetails: z.lazy(() =>
1422
+ BusinessLoanBusinessApplicationRelationshipsLoanDetails$outboundSchema
1423
+ ).optional(),
1424
+ customers: z.lazy(() =>
1425
+ BusinessLoanBusinessApplicationRelationshipsCustomers$outboundSchema
1426
+ ).optional(),
1427
+ entities: z.lazy(() =>
1428
+ BusinessLoanBusinessApplicationRelationshipsEntities$outboundSchema
1429
+ ).optional(),
1430
+ });
1431
+
1432
+ /**
1433
+ * @internal
1434
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1435
+ */
1436
+ export namespace BusinessLoanBusinessApplicationRelationships$ {
1437
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationships$inboundSchema` instead. */
1438
+ export const inboundSchema =
1439
+ BusinessLoanBusinessApplicationRelationships$inboundSchema;
1440
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationships$outboundSchema` instead. */
1441
+ export const outboundSchema =
1442
+ BusinessLoanBusinessApplicationRelationships$outboundSchema;
1443
+ /** @deprecated use `BusinessLoanBusinessApplicationRelationships$Outbound` instead. */
1444
+ export type Outbound = BusinessLoanBusinessApplicationRelationships$Outbound;
1445
+ }
1446
+
1447
+ export function businessLoanBusinessApplicationRelationshipsToJSON(
1448
+ businessLoanBusinessApplicationRelationships:
1449
+ BusinessLoanBusinessApplicationRelationships,
1450
+ ): string {
1451
+ return JSON.stringify(
1452
+ BusinessLoanBusinessApplicationRelationships$outboundSchema.parse(
1453
+ businessLoanBusinessApplicationRelationships,
1454
+ ),
1455
+ );
1456
+ }
1457
+
1458
+ export function businessLoanBusinessApplicationRelationshipsFromJSON(
1459
+ jsonString: string,
1460
+ ): SafeParseResult<
1461
+ BusinessLoanBusinessApplicationRelationships,
1462
+ SDKValidationError
1463
+ > {
1464
+ return safeParse(
1465
+ jsonString,
1466
+ (x) =>
1467
+ BusinessLoanBusinessApplicationRelationships$inboundSchema.parse(
1468
+ JSON.parse(x),
1469
+ ),
1470
+ `Failed to parse 'BusinessLoanBusinessApplicationRelationships' from JSON`,
1471
+ );
1472
+ }