@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,690 @@
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
+ LinkObject,
12
+ LinkObject$inboundSchema,
13
+ LinkObject$Outbound,
14
+ LinkObject$outboundSchema,
15
+ } from "./linkobject.js";
16
+
17
+ export const BusinessApplicationJsonApiRelationshipsType = {
18
+ LoanDetails: "loan-details",
19
+ } as const;
20
+ export type BusinessApplicationJsonApiRelationshipsType = ClosedEnum<
21
+ typeof BusinessApplicationJsonApiRelationshipsType
22
+ >;
23
+
24
+ export type BusinessApplicationJsonApiRelationshipsData = {
25
+ type: BusinessApplicationJsonApiRelationshipsType;
26
+ id: string;
27
+ };
28
+
29
+ export type BusinessApplicationJsonApiRelationshipsLoanDetails = {
30
+ data: BusinessApplicationJsonApiRelationshipsData;
31
+ links?: { [k: string]: LinkObject } | undefined;
32
+ meta?: { [k: string]: any } | undefined;
33
+ };
34
+
35
+ export const BusinessApplicationJsonApiRelationshipsCustomersType = {
36
+ Customers: "customers",
37
+ } as const;
38
+ export type BusinessApplicationJsonApiRelationshipsCustomersType = ClosedEnum<
39
+ typeof BusinessApplicationJsonApiRelationshipsCustomersType
40
+ >;
41
+
42
+ export type BusinessApplicationJsonApiRelationshipsCustomersData = {
43
+ type: BusinessApplicationJsonApiRelationshipsCustomersType;
44
+ id: string;
45
+ };
46
+
47
+ export type BusinessApplicationJsonApiRelationshipsCustomers = {
48
+ data: Array<BusinessApplicationJsonApiRelationshipsCustomersData>;
49
+ links?: { [k: string]: LinkObject } | undefined;
50
+ meta?: { [k: string]: any } | undefined;
51
+ };
52
+
53
+ export const BusinessApplicationJsonApiRelationshipsEntitiesType = {
54
+ Entities: "entities",
55
+ } as const;
56
+ export type BusinessApplicationJsonApiRelationshipsEntitiesType = ClosedEnum<
57
+ typeof BusinessApplicationJsonApiRelationshipsEntitiesType
58
+ >;
59
+
60
+ export type BusinessApplicationJsonApiRelationshipsEntitiesData = {
61
+ type: BusinessApplicationJsonApiRelationshipsEntitiesType;
62
+ id: string;
63
+ };
64
+
65
+ export type BusinessApplicationJsonApiRelationshipsEntities = {
66
+ data: Array<BusinessApplicationJsonApiRelationshipsEntitiesData>;
67
+ links?: { [k: string]: LinkObject } | undefined;
68
+ meta?: { [k: string]: any } | undefined;
69
+ };
70
+
71
+ /**
72
+ * Relationships for a Business Application Resource
73
+ */
74
+ export type BusinessApplicationJsonApiRelationships = {
75
+ loanDetails?: BusinessApplicationJsonApiRelationshipsLoanDetails | undefined;
76
+ customers?: BusinessApplicationJsonApiRelationshipsCustomers | undefined;
77
+ entities?: BusinessApplicationJsonApiRelationshipsEntities | undefined;
78
+ };
79
+
80
+ /** @internal */
81
+ export const BusinessApplicationJsonApiRelationshipsType$inboundSchema:
82
+ z.ZodNativeEnum<typeof BusinessApplicationJsonApiRelationshipsType> = z
83
+ .nativeEnum(BusinessApplicationJsonApiRelationshipsType);
84
+
85
+ /** @internal */
86
+ export const BusinessApplicationJsonApiRelationshipsType$outboundSchema:
87
+ z.ZodNativeEnum<typeof BusinessApplicationJsonApiRelationshipsType> =
88
+ BusinessApplicationJsonApiRelationshipsType$inboundSchema;
89
+
90
+ /**
91
+ * @internal
92
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
93
+ */
94
+ export namespace BusinessApplicationJsonApiRelationshipsType$ {
95
+ /** @deprecated use `BusinessApplicationJsonApiRelationshipsType$inboundSchema` instead. */
96
+ export const inboundSchema =
97
+ BusinessApplicationJsonApiRelationshipsType$inboundSchema;
98
+ /** @deprecated use `BusinessApplicationJsonApiRelationshipsType$outboundSchema` instead. */
99
+ export const outboundSchema =
100
+ BusinessApplicationJsonApiRelationshipsType$outboundSchema;
101
+ }
102
+
103
+ /** @internal */
104
+ export const BusinessApplicationJsonApiRelationshipsData$inboundSchema:
105
+ z.ZodType<
106
+ BusinessApplicationJsonApiRelationshipsData,
107
+ z.ZodTypeDef,
108
+ unknown
109
+ > = z.object({
110
+ type: BusinessApplicationJsonApiRelationshipsType$inboundSchema,
111
+ id: z.string(),
112
+ });
113
+
114
+ /** @internal */
115
+ export type BusinessApplicationJsonApiRelationshipsData$Outbound = {
116
+ type: string;
117
+ id: string;
118
+ };
119
+
120
+ /** @internal */
121
+ export const BusinessApplicationJsonApiRelationshipsData$outboundSchema:
122
+ z.ZodType<
123
+ BusinessApplicationJsonApiRelationshipsData$Outbound,
124
+ z.ZodTypeDef,
125
+ BusinessApplicationJsonApiRelationshipsData
126
+ > = z.object({
127
+ type: BusinessApplicationJsonApiRelationshipsType$outboundSchema,
128
+ id: z.string(),
129
+ });
130
+
131
+ /**
132
+ * @internal
133
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
134
+ */
135
+ export namespace BusinessApplicationJsonApiRelationshipsData$ {
136
+ /** @deprecated use `BusinessApplicationJsonApiRelationshipsData$inboundSchema` instead. */
137
+ export const inboundSchema =
138
+ BusinessApplicationJsonApiRelationshipsData$inboundSchema;
139
+ /** @deprecated use `BusinessApplicationJsonApiRelationshipsData$outboundSchema` instead. */
140
+ export const outboundSchema =
141
+ BusinessApplicationJsonApiRelationshipsData$outboundSchema;
142
+ /** @deprecated use `BusinessApplicationJsonApiRelationshipsData$Outbound` instead. */
143
+ export type Outbound = BusinessApplicationJsonApiRelationshipsData$Outbound;
144
+ }
145
+
146
+ export function businessApplicationJsonApiRelationshipsDataToJSON(
147
+ businessApplicationJsonApiRelationshipsData:
148
+ BusinessApplicationJsonApiRelationshipsData,
149
+ ): string {
150
+ return JSON.stringify(
151
+ BusinessApplicationJsonApiRelationshipsData$outboundSchema.parse(
152
+ businessApplicationJsonApiRelationshipsData,
153
+ ),
154
+ );
155
+ }
156
+
157
+ export function businessApplicationJsonApiRelationshipsDataFromJSON(
158
+ jsonString: string,
159
+ ): SafeParseResult<
160
+ BusinessApplicationJsonApiRelationshipsData,
161
+ SDKValidationError
162
+ > {
163
+ return safeParse(
164
+ jsonString,
165
+ (x) =>
166
+ BusinessApplicationJsonApiRelationshipsData$inboundSchema.parse(
167
+ JSON.parse(x),
168
+ ),
169
+ `Failed to parse 'BusinessApplicationJsonApiRelationshipsData' from JSON`,
170
+ );
171
+ }
172
+
173
+ /** @internal */
174
+ export const BusinessApplicationJsonApiRelationshipsLoanDetails$inboundSchema:
175
+ z.ZodType<
176
+ BusinessApplicationJsonApiRelationshipsLoanDetails,
177
+ z.ZodTypeDef,
178
+ unknown
179
+ > = z.object({
180
+ data: z.lazy(() =>
181
+ BusinessApplicationJsonApiRelationshipsData$inboundSchema
182
+ ),
183
+ links: z.record(LinkObject$inboundSchema).optional(),
184
+ meta: z.record(z.any()).optional(),
185
+ });
186
+
187
+ /** @internal */
188
+ export type BusinessApplicationJsonApiRelationshipsLoanDetails$Outbound = {
189
+ data: BusinessApplicationJsonApiRelationshipsData$Outbound;
190
+ links?: { [k: string]: LinkObject$Outbound } | undefined;
191
+ meta?: { [k: string]: any } | undefined;
192
+ };
193
+
194
+ /** @internal */
195
+ export const BusinessApplicationJsonApiRelationshipsLoanDetails$outboundSchema:
196
+ z.ZodType<
197
+ BusinessApplicationJsonApiRelationshipsLoanDetails$Outbound,
198
+ z.ZodTypeDef,
199
+ BusinessApplicationJsonApiRelationshipsLoanDetails
200
+ > = z.object({
201
+ data: z.lazy(() =>
202
+ BusinessApplicationJsonApiRelationshipsData$outboundSchema
203
+ ),
204
+ links: z.record(LinkObject$outboundSchema).optional(),
205
+ meta: z.record(z.any()).optional(),
206
+ });
207
+
208
+ /**
209
+ * @internal
210
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
211
+ */
212
+ export namespace BusinessApplicationJsonApiRelationshipsLoanDetails$ {
213
+ /** @deprecated use `BusinessApplicationJsonApiRelationshipsLoanDetails$inboundSchema` instead. */
214
+ export const inboundSchema =
215
+ BusinessApplicationJsonApiRelationshipsLoanDetails$inboundSchema;
216
+ /** @deprecated use `BusinessApplicationJsonApiRelationshipsLoanDetails$outboundSchema` instead. */
217
+ export const outboundSchema =
218
+ BusinessApplicationJsonApiRelationshipsLoanDetails$outboundSchema;
219
+ /** @deprecated use `BusinessApplicationJsonApiRelationshipsLoanDetails$Outbound` instead. */
220
+ export type Outbound =
221
+ BusinessApplicationJsonApiRelationshipsLoanDetails$Outbound;
222
+ }
223
+
224
+ export function businessApplicationJsonApiRelationshipsLoanDetailsToJSON(
225
+ businessApplicationJsonApiRelationshipsLoanDetails:
226
+ BusinessApplicationJsonApiRelationshipsLoanDetails,
227
+ ): string {
228
+ return JSON.stringify(
229
+ BusinessApplicationJsonApiRelationshipsLoanDetails$outboundSchema.parse(
230
+ businessApplicationJsonApiRelationshipsLoanDetails,
231
+ ),
232
+ );
233
+ }
234
+
235
+ export function businessApplicationJsonApiRelationshipsLoanDetailsFromJSON(
236
+ jsonString: string,
237
+ ): SafeParseResult<
238
+ BusinessApplicationJsonApiRelationshipsLoanDetails,
239
+ SDKValidationError
240
+ > {
241
+ return safeParse(
242
+ jsonString,
243
+ (x) =>
244
+ BusinessApplicationJsonApiRelationshipsLoanDetails$inboundSchema.parse(
245
+ JSON.parse(x),
246
+ ),
247
+ `Failed to parse 'BusinessApplicationJsonApiRelationshipsLoanDetails' from JSON`,
248
+ );
249
+ }
250
+
251
+ /** @internal */
252
+ export const BusinessApplicationJsonApiRelationshipsCustomersType$inboundSchema:
253
+ z.ZodNativeEnum<typeof BusinessApplicationJsonApiRelationshipsCustomersType> =
254
+ z.nativeEnum(BusinessApplicationJsonApiRelationshipsCustomersType);
255
+
256
+ /** @internal */
257
+ export const BusinessApplicationJsonApiRelationshipsCustomersType$outboundSchema:
258
+ z.ZodNativeEnum<typeof BusinessApplicationJsonApiRelationshipsCustomersType> =
259
+ BusinessApplicationJsonApiRelationshipsCustomersType$inboundSchema;
260
+
261
+ /**
262
+ * @internal
263
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
264
+ */
265
+ export namespace BusinessApplicationJsonApiRelationshipsCustomersType$ {
266
+ /** @deprecated use `BusinessApplicationJsonApiRelationshipsCustomersType$inboundSchema` instead. */
267
+ export const inboundSchema =
268
+ BusinessApplicationJsonApiRelationshipsCustomersType$inboundSchema;
269
+ /** @deprecated use `BusinessApplicationJsonApiRelationshipsCustomersType$outboundSchema` instead. */
270
+ export const outboundSchema =
271
+ BusinessApplicationJsonApiRelationshipsCustomersType$outboundSchema;
272
+ }
273
+
274
+ /** @internal */
275
+ export const BusinessApplicationJsonApiRelationshipsCustomersData$inboundSchema:
276
+ z.ZodType<
277
+ BusinessApplicationJsonApiRelationshipsCustomersData,
278
+ z.ZodTypeDef,
279
+ unknown
280
+ > = z.object({
281
+ type: BusinessApplicationJsonApiRelationshipsCustomersType$inboundSchema,
282
+ id: z.string(),
283
+ });
284
+
285
+ /** @internal */
286
+ export type BusinessApplicationJsonApiRelationshipsCustomersData$Outbound = {
287
+ type: string;
288
+ id: string;
289
+ };
290
+
291
+ /** @internal */
292
+ export const BusinessApplicationJsonApiRelationshipsCustomersData$outboundSchema:
293
+ z.ZodType<
294
+ BusinessApplicationJsonApiRelationshipsCustomersData$Outbound,
295
+ z.ZodTypeDef,
296
+ BusinessApplicationJsonApiRelationshipsCustomersData
297
+ > = z.object({
298
+ type: BusinessApplicationJsonApiRelationshipsCustomersType$outboundSchema,
299
+ id: z.string(),
300
+ });
301
+
302
+ /**
303
+ * @internal
304
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
305
+ */
306
+ export namespace BusinessApplicationJsonApiRelationshipsCustomersData$ {
307
+ /** @deprecated use `BusinessApplicationJsonApiRelationshipsCustomersData$inboundSchema` instead. */
308
+ export const inboundSchema =
309
+ BusinessApplicationJsonApiRelationshipsCustomersData$inboundSchema;
310
+ /** @deprecated use `BusinessApplicationJsonApiRelationshipsCustomersData$outboundSchema` instead. */
311
+ export const outboundSchema =
312
+ BusinessApplicationJsonApiRelationshipsCustomersData$outboundSchema;
313
+ /** @deprecated use `BusinessApplicationJsonApiRelationshipsCustomersData$Outbound` instead. */
314
+ export type Outbound =
315
+ BusinessApplicationJsonApiRelationshipsCustomersData$Outbound;
316
+ }
317
+
318
+ export function businessApplicationJsonApiRelationshipsCustomersDataToJSON(
319
+ businessApplicationJsonApiRelationshipsCustomersData:
320
+ BusinessApplicationJsonApiRelationshipsCustomersData,
321
+ ): string {
322
+ return JSON.stringify(
323
+ BusinessApplicationJsonApiRelationshipsCustomersData$outboundSchema.parse(
324
+ businessApplicationJsonApiRelationshipsCustomersData,
325
+ ),
326
+ );
327
+ }
328
+
329
+ export function businessApplicationJsonApiRelationshipsCustomersDataFromJSON(
330
+ jsonString: string,
331
+ ): SafeParseResult<
332
+ BusinessApplicationJsonApiRelationshipsCustomersData,
333
+ SDKValidationError
334
+ > {
335
+ return safeParse(
336
+ jsonString,
337
+ (x) =>
338
+ BusinessApplicationJsonApiRelationshipsCustomersData$inboundSchema.parse(
339
+ JSON.parse(x),
340
+ ),
341
+ `Failed to parse 'BusinessApplicationJsonApiRelationshipsCustomersData' from JSON`,
342
+ );
343
+ }
344
+
345
+ /** @internal */
346
+ export const BusinessApplicationJsonApiRelationshipsCustomers$inboundSchema:
347
+ z.ZodType<
348
+ BusinessApplicationJsonApiRelationshipsCustomers,
349
+ z.ZodTypeDef,
350
+ unknown
351
+ > = z.object({
352
+ data: z.array(
353
+ z.lazy(() =>
354
+ BusinessApplicationJsonApiRelationshipsCustomersData$inboundSchema
355
+ ),
356
+ ),
357
+ links: z.record(LinkObject$inboundSchema).optional(),
358
+ meta: z.record(z.any()).optional(),
359
+ });
360
+
361
+ /** @internal */
362
+ export type BusinessApplicationJsonApiRelationshipsCustomers$Outbound = {
363
+ data: Array<BusinessApplicationJsonApiRelationshipsCustomersData$Outbound>;
364
+ links?: { [k: string]: LinkObject$Outbound } | undefined;
365
+ meta?: { [k: string]: any } | undefined;
366
+ };
367
+
368
+ /** @internal */
369
+ export const BusinessApplicationJsonApiRelationshipsCustomers$outboundSchema:
370
+ z.ZodType<
371
+ BusinessApplicationJsonApiRelationshipsCustomers$Outbound,
372
+ z.ZodTypeDef,
373
+ BusinessApplicationJsonApiRelationshipsCustomers
374
+ > = z.object({
375
+ data: z.array(
376
+ z.lazy(() =>
377
+ BusinessApplicationJsonApiRelationshipsCustomersData$outboundSchema
378
+ ),
379
+ ),
380
+ links: z.record(LinkObject$outboundSchema).optional(),
381
+ meta: z.record(z.any()).optional(),
382
+ });
383
+
384
+ /**
385
+ * @internal
386
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
387
+ */
388
+ export namespace BusinessApplicationJsonApiRelationshipsCustomers$ {
389
+ /** @deprecated use `BusinessApplicationJsonApiRelationshipsCustomers$inboundSchema` instead. */
390
+ export const inboundSchema =
391
+ BusinessApplicationJsonApiRelationshipsCustomers$inboundSchema;
392
+ /** @deprecated use `BusinessApplicationJsonApiRelationshipsCustomers$outboundSchema` instead. */
393
+ export const outboundSchema =
394
+ BusinessApplicationJsonApiRelationshipsCustomers$outboundSchema;
395
+ /** @deprecated use `BusinessApplicationJsonApiRelationshipsCustomers$Outbound` instead. */
396
+ export type Outbound =
397
+ BusinessApplicationJsonApiRelationshipsCustomers$Outbound;
398
+ }
399
+
400
+ export function businessApplicationJsonApiRelationshipsCustomersToJSON(
401
+ businessApplicationJsonApiRelationshipsCustomers:
402
+ BusinessApplicationJsonApiRelationshipsCustomers,
403
+ ): string {
404
+ return JSON.stringify(
405
+ BusinessApplicationJsonApiRelationshipsCustomers$outboundSchema.parse(
406
+ businessApplicationJsonApiRelationshipsCustomers,
407
+ ),
408
+ );
409
+ }
410
+
411
+ export function businessApplicationJsonApiRelationshipsCustomersFromJSON(
412
+ jsonString: string,
413
+ ): SafeParseResult<
414
+ BusinessApplicationJsonApiRelationshipsCustomers,
415
+ SDKValidationError
416
+ > {
417
+ return safeParse(
418
+ jsonString,
419
+ (x) =>
420
+ BusinessApplicationJsonApiRelationshipsCustomers$inboundSchema.parse(
421
+ JSON.parse(x),
422
+ ),
423
+ `Failed to parse 'BusinessApplicationJsonApiRelationshipsCustomers' from JSON`,
424
+ );
425
+ }
426
+
427
+ /** @internal */
428
+ export const BusinessApplicationJsonApiRelationshipsEntitiesType$inboundSchema:
429
+ z.ZodNativeEnum<typeof BusinessApplicationJsonApiRelationshipsEntitiesType> =
430
+ z.nativeEnum(BusinessApplicationJsonApiRelationshipsEntitiesType);
431
+
432
+ /** @internal */
433
+ export const BusinessApplicationJsonApiRelationshipsEntitiesType$outboundSchema:
434
+ z.ZodNativeEnum<typeof BusinessApplicationJsonApiRelationshipsEntitiesType> =
435
+ BusinessApplicationJsonApiRelationshipsEntitiesType$inboundSchema;
436
+
437
+ /**
438
+ * @internal
439
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
440
+ */
441
+ export namespace BusinessApplicationJsonApiRelationshipsEntitiesType$ {
442
+ /** @deprecated use `BusinessApplicationJsonApiRelationshipsEntitiesType$inboundSchema` instead. */
443
+ export const inboundSchema =
444
+ BusinessApplicationJsonApiRelationshipsEntitiesType$inboundSchema;
445
+ /** @deprecated use `BusinessApplicationJsonApiRelationshipsEntitiesType$outboundSchema` instead. */
446
+ export const outboundSchema =
447
+ BusinessApplicationJsonApiRelationshipsEntitiesType$outboundSchema;
448
+ }
449
+
450
+ /** @internal */
451
+ export const BusinessApplicationJsonApiRelationshipsEntitiesData$inboundSchema:
452
+ z.ZodType<
453
+ BusinessApplicationJsonApiRelationshipsEntitiesData,
454
+ z.ZodTypeDef,
455
+ unknown
456
+ > = z.object({
457
+ type: BusinessApplicationJsonApiRelationshipsEntitiesType$inboundSchema,
458
+ id: z.string(),
459
+ });
460
+
461
+ /** @internal */
462
+ export type BusinessApplicationJsonApiRelationshipsEntitiesData$Outbound = {
463
+ type: string;
464
+ id: string;
465
+ };
466
+
467
+ /** @internal */
468
+ export const BusinessApplicationJsonApiRelationshipsEntitiesData$outboundSchema:
469
+ z.ZodType<
470
+ BusinessApplicationJsonApiRelationshipsEntitiesData$Outbound,
471
+ z.ZodTypeDef,
472
+ BusinessApplicationJsonApiRelationshipsEntitiesData
473
+ > = z.object({
474
+ type: BusinessApplicationJsonApiRelationshipsEntitiesType$outboundSchema,
475
+ id: z.string(),
476
+ });
477
+
478
+ /**
479
+ * @internal
480
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
481
+ */
482
+ export namespace BusinessApplicationJsonApiRelationshipsEntitiesData$ {
483
+ /** @deprecated use `BusinessApplicationJsonApiRelationshipsEntitiesData$inboundSchema` instead. */
484
+ export const inboundSchema =
485
+ BusinessApplicationJsonApiRelationshipsEntitiesData$inboundSchema;
486
+ /** @deprecated use `BusinessApplicationJsonApiRelationshipsEntitiesData$outboundSchema` instead. */
487
+ export const outboundSchema =
488
+ BusinessApplicationJsonApiRelationshipsEntitiesData$outboundSchema;
489
+ /** @deprecated use `BusinessApplicationJsonApiRelationshipsEntitiesData$Outbound` instead. */
490
+ export type Outbound =
491
+ BusinessApplicationJsonApiRelationshipsEntitiesData$Outbound;
492
+ }
493
+
494
+ export function businessApplicationJsonApiRelationshipsEntitiesDataToJSON(
495
+ businessApplicationJsonApiRelationshipsEntitiesData:
496
+ BusinessApplicationJsonApiRelationshipsEntitiesData,
497
+ ): string {
498
+ return JSON.stringify(
499
+ BusinessApplicationJsonApiRelationshipsEntitiesData$outboundSchema.parse(
500
+ businessApplicationJsonApiRelationshipsEntitiesData,
501
+ ),
502
+ );
503
+ }
504
+
505
+ export function businessApplicationJsonApiRelationshipsEntitiesDataFromJSON(
506
+ jsonString: string,
507
+ ): SafeParseResult<
508
+ BusinessApplicationJsonApiRelationshipsEntitiesData,
509
+ SDKValidationError
510
+ > {
511
+ return safeParse(
512
+ jsonString,
513
+ (x) =>
514
+ BusinessApplicationJsonApiRelationshipsEntitiesData$inboundSchema.parse(
515
+ JSON.parse(x),
516
+ ),
517
+ `Failed to parse 'BusinessApplicationJsonApiRelationshipsEntitiesData' from JSON`,
518
+ );
519
+ }
520
+
521
+ /** @internal */
522
+ export const BusinessApplicationJsonApiRelationshipsEntities$inboundSchema:
523
+ z.ZodType<
524
+ BusinessApplicationJsonApiRelationshipsEntities,
525
+ z.ZodTypeDef,
526
+ unknown
527
+ > = z.object({
528
+ data: z.array(
529
+ z.lazy(() =>
530
+ BusinessApplicationJsonApiRelationshipsEntitiesData$inboundSchema
531
+ ),
532
+ ),
533
+ links: z.record(LinkObject$inboundSchema).optional(),
534
+ meta: z.record(z.any()).optional(),
535
+ });
536
+
537
+ /** @internal */
538
+ export type BusinessApplicationJsonApiRelationshipsEntities$Outbound = {
539
+ data: Array<BusinessApplicationJsonApiRelationshipsEntitiesData$Outbound>;
540
+ links?: { [k: string]: LinkObject$Outbound } | undefined;
541
+ meta?: { [k: string]: any } | undefined;
542
+ };
543
+
544
+ /** @internal */
545
+ export const BusinessApplicationJsonApiRelationshipsEntities$outboundSchema:
546
+ z.ZodType<
547
+ BusinessApplicationJsonApiRelationshipsEntities$Outbound,
548
+ z.ZodTypeDef,
549
+ BusinessApplicationJsonApiRelationshipsEntities
550
+ > = z.object({
551
+ data: z.array(
552
+ z.lazy(() =>
553
+ BusinessApplicationJsonApiRelationshipsEntitiesData$outboundSchema
554
+ ),
555
+ ),
556
+ links: z.record(LinkObject$outboundSchema).optional(),
557
+ meta: z.record(z.any()).optional(),
558
+ });
559
+
560
+ /**
561
+ * @internal
562
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
563
+ */
564
+ export namespace BusinessApplicationJsonApiRelationshipsEntities$ {
565
+ /** @deprecated use `BusinessApplicationJsonApiRelationshipsEntities$inboundSchema` instead. */
566
+ export const inboundSchema =
567
+ BusinessApplicationJsonApiRelationshipsEntities$inboundSchema;
568
+ /** @deprecated use `BusinessApplicationJsonApiRelationshipsEntities$outboundSchema` instead. */
569
+ export const outboundSchema =
570
+ BusinessApplicationJsonApiRelationshipsEntities$outboundSchema;
571
+ /** @deprecated use `BusinessApplicationJsonApiRelationshipsEntities$Outbound` instead. */
572
+ export type Outbound =
573
+ BusinessApplicationJsonApiRelationshipsEntities$Outbound;
574
+ }
575
+
576
+ export function businessApplicationJsonApiRelationshipsEntitiesToJSON(
577
+ businessApplicationJsonApiRelationshipsEntities:
578
+ BusinessApplicationJsonApiRelationshipsEntities,
579
+ ): string {
580
+ return JSON.stringify(
581
+ BusinessApplicationJsonApiRelationshipsEntities$outboundSchema.parse(
582
+ businessApplicationJsonApiRelationshipsEntities,
583
+ ),
584
+ );
585
+ }
586
+
587
+ export function businessApplicationJsonApiRelationshipsEntitiesFromJSON(
588
+ jsonString: string,
589
+ ): SafeParseResult<
590
+ BusinessApplicationJsonApiRelationshipsEntities,
591
+ SDKValidationError
592
+ > {
593
+ return safeParse(
594
+ jsonString,
595
+ (x) =>
596
+ BusinessApplicationJsonApiRelationshipsEntities$inboundSchema.parse(
597
+ JSON.parse(x),
598
+ ),
599
+ `Failed to parse 'BusinessApplicationJsonApiRelationshipsEntities' from JSON`,
600
+ );
601
+ }
602
+
603
+ /** @internal */
604
+ export const BusinessApplicationJsonApiRelationships$inboundSchema: z.ZodType<
605
+ BusinessApplicationJsonApiRelationships,
606
+ z.ZodTypeDef,
607
+ unknown
608
+ > = z.object({
609
+ loanDetails: z.lazy(() =>
610
+ BusinessApplicationJsonApiRelationshipsLoanDetails$inboundSchema
611
+ ).optional(),
612
+ customers: z.lazy(() =>
613
+ BusinessApplicationJsonApiRelationshipsCustomers$inboundSchema
614
+ ).optional(),
615
+ entities: z.lazy(() =>
616
+ BusinessApplicationJsonApiRelationshipsEntities$inboundSchema
617
+ ).optional(),
618
+ });
619
+
620
+ /** @internal */
621
+ export type BusinessApplicationJsonApiRelationships$Outbound = {
622
+ loanDetails?:
623
+ | BusinessApplicationJsonApiRelationshipsLoanDetails$Outbound
624
+ | undefined;
625
+ customers?:
626
+ | BusinessApplicationJsonApiRelationshipsCustomers$Outbound
627
+ | undefined;
628
+ entities?:
629
+ | BusinessApplicationJsonApiRelationshipsEntities$Outbound
630
+ | undefined;
631
+ };
632
+
633
+ /** @internal */
634
+ export const BusinessApplicationJsonApiRelationships$outboundSchema: z.ZodType<
635
+ BusinessApplicationJsonApiRelationships$Outbound,
636
+ z.ZodTypeDef,
637
+ BusinessApplicationJsonApiRelationships
638
+ > = z.object({
639
+ loanDetails: z.lazy(() =>
640
+ BusinessApplicationJsonApiRelationshipsLoanDetails$outboundSchema
641
+ ).optional(),
642
+ customers: z.lazy(() =>
643
+ BusinessApplicationJsonApiRelationshipsCustomers$outboundSchema
644
+ ).optional(),
645
+ entities: z.lazy(() =>
646
+ BusinessApplicationJsonApiRelationshipsEntities$outboundSchema
647
+ ).optional(),
648
+ });
649
+
650
+ /**
651
+ * @internal
652
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
653
+ */
654
+ export namespace BusinessApplicationJsonApiRelationships$ {
655
+ /** @deprecated use `BusinessApplicationJsonApiRelationships$inboundSchema` instead. */
656
+ export const inboundSchema =
657
+ BusinessApplicationJsonApiRelationships$inboundSchema;
658
+ /** @deprecated use `BusinessApplicationJsonApiRelationships$outboundSchema` instead. */
659
+ export const outboundSchema =
660
+ BusinessApplicationJsonApiRelationships$outboundSchema;
661
+ /** @deprecated use `BusinessApplicationJsonApiRelationships$Outbound` instead. */
662
+ export type Outbound = BusinessApplicationJsonApiRelationships$Outbound;
663
+ }
664
+
665
+ export function businessApplicationJsonApiRelationshipsToJSON(
666
+ businessApplicationJsonApiRelationships:
667
+ BusinessApplicationJsonApiRelationships,
668
+ ): string {
669
+ return JSON.stringify(
670
+ BusinessApplicationJsonApiRelationships$outboundSchema.parse(
671
+ businessApplicationJsonApiRelationships,
672
+ ),
673
+ );
674
+ }
675
+
676
+ export function businessApplicationJsonApiRelationshipsFromJSON(
677
+ jsonString: string,
678
+ ): SafeParseResult<
679
+ BusinessApplicationJsonApiRelationships,
680
+ SDKValidationError
681
+ > {
682
+ return safeParse(
683
+ jsonString,
684
+ (x) =>
685
+ BusinessApplicationJsonApiRelationships$inboundSchema.parse(
686
+ JSON.parse(x),
687
+ ),
688
+ `Failed to parse 'BusinessApplicationJsonApiRelationships' from JSON`,
689
+ );
690
+ }