@financeable/lenders 0.1.1 → 0.3.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 (879) hide show
  1. package/FUNCTIONS.md +4 -37
  2. package/README.md +19 -184
  3. package/bin/mcp-server.js +2377 -827
  4. package/bin/mcp-server.js.map +86 -48
  5. package/dist/commonjs/funcs/createSubmission.d.ts +15 -0
  6. package/dist/commonjs/funcs/createSubmission.d.ts.map +1 -0
  7. package/dist/commonjs/funcs/{createPepperConsumer.js → createSubmission.js} +13 -11
  8. package/dist/commonjs/funcs/createSubmission.js.map +1 -0
  9. package/dist/commonjs/lib/base64.d.ts +1 -1
  10. package/dist/commonjs/lib/base64.d.ts.map +1 -1
  11. package/dist/commonjs/lib/base64.js +1 -1
  12. package/dist/commonjs/lib/base64.js.map +1 -1
  13. package/dist/commonjs/lib/config.d.ts +4 -4
  14. package/dist/commonjs/lib/config.js +4 -4
  15. package/dist/commonjs/lib/config.js.map +1 -1
  16. package/dist/commonjs/lib/env.d.ts +1 -1
  17. package/dist/commonjs/lib/env.d.ts.map +1 -1
  18. package/dist/commonjs/lib/env.js +19 -2
  19. package/dist/commonjs/lib/env.js.map +1 -1
  20. package/dist/commonjs/lib/schemas.d.ts +1 -1
  21. package/dist/commonjs/lib/schemas.d.ts.map +1 -1
  22. package/dist/commonjs/lib/schemas.js +2 -2
  23. package/dist/commonjs/lib/schemas.js.map +1 -1
  24. package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -1
  25. package/dist/commonjs/mcp-server/cli/start/command.js +2 -3
  26. package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
  27. package/dist/commonjs/mcp-server/extensions.d.ts +1 -1
  28. package/dist/commonjs/mcp-server/extensions.d.ts.map +1 -1
  29. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  30. package/dist/commonjs/mcp-server/prompts.d.ts +1 -1
  31. package/dist/commonjs/mcp-server/prompts.d.ts.map +1 -1
  32. package/dist/commonjs/mcp-server/server.js +3 -3
  33. package/dist/commonjs/mcp-server/server.js.map +1 -1
  34. package/dist/commonjs/mcp-server/shared.d.ts.map +1 -1
  35. package/dist/commonjs/mcp-server/shared.js +1 -1
  36. package/dist/commonjs/mcp-server/shared.js.map +1 -1
  37. package/dist/commonjs/mcp-server/tools/createSubmission.d.ts +8 -0
  38. package/dist/commonjs/mcp-server/tools/createSubmission.d.ts.map +1 -0
  39. package/dist/commonjs/mcp-server/tools/{createPepperConsumer.js → createSubmission.js} +9 -9
  40. package/dist/commonjs/mcp-server/tools/createSubmission.js.map +1 -0
  41. package/dist/commonjs/mcp-server/tools.d.ts +1 -1
  42. package/dist/commonjs/mcp-server/tools.d.ts.map +1 -1
  43. package/dist/commonjs/models/components/address.d.ts +28 -20
  44. package/dist/commonjs/models/components/address.d.ts.map +1 -1
  45. package/dist/commonjs/models/components/address.js +20 -21
  46. package/dist/commonjs/models/components/address.js.map +1 -1
  47. package/dist/commonjs/models/components/addressstatus.d.ts +34 -0
  48. package/dist/commonjs/models/components/addressstatus.d.ts.map +1 -0
  49. package/dist/commonjs/models/components/addressstatus.js +63 -0
  50. package/dist/commonjs/models/components/addressstatus.js.map +1 -0
  51. package/dist/commonjs/models/components/addresstype.d.ts +34 -0
  52. package/dist/commonjs/models/components/addresstype.d.ts.map +1 -0
  53. package/dist/commonjs/models/components/addresstype.js +64 -0
  54. package/dist/commonjs/models/components/addresstype.js.map +1 -0
  55. package/dist/commonjs/models/components/apierror.d.ts +1 -1
  56. package/dist/commonjs/models/components/apierror.d.ts.map +1 -1
  57. package/dist/commonjs/models/components/apierror.js +1 -1
  58. package/dist/commonjs/models/components/apierror.js.map +1 -1
  59. package/dist/commonjs/models/components/apierrorcodes.d.ts +1 -1
  60. package/dist/commonjs/models/components/apierrorcodes.d.ts.map +1 -1
  61. package/dist/commonjs/models/components/apierrorcodes.js +1 -1
  62. package/dist/commonjs/models/components/apierrorcodes.js.map +1 -1
  63. package/dist/commonjs/models/components/apierrorlinks.d.ts +1 -1
  64. package/dist/commonjs/models/components/apierrorlinks.d.ts.map +1 -1
  65. package/dist/commonjs/models/components/apierrorlinks.js +1 -1
  66. package/dist/commonjs/models/components/apierrorlinks.js.map +1 -1
  67. package/dist/commonjs/models/components/applicantasset.d.ts +19 -7
  68. package/dist/commonjs/models/components/applicantasset.d.ts.map +1 -1
  69. package/dist/commonjs/models/components/applicantasset.js +16 -7
  70. package/dist/commonjs/models/components/applicantasset.js.map +1 -1
  71. package/dist/commonjs/models/components/application.d.ts +130 -0
  72. package/dist/commonjs/models/components/application.d.ts.map +1 -0
  73. package/dist/commonjs/models/components/application.js +178 -0
  74. package/dist/commonjs/models/components/application.js.map +1 -0
  75. package/dist/commonjs/models/components/asset.d.ts +147 -0
  76. package/dist/commonjs/models/components/asset.d.ts.map +1 -0
  77. package/dist/commonjs/models/components/asset.js +155 -0
  78. package/dist/commonjs/models/components/asset.js.map +1 -0
  79. package/dist/commonjs/models/components/assetconditiontypes.d.ts +37 -0
  80. package/dist/commonjs/models/components/assetconditiontypes.d.ts.map +1 -0
  81. package/dist/commonjs/models/components/assetconditiontypes.js +64 -0
  82. package/dist/commonjs/models/components/assetconditiontypes.js.map +1 -0
  83. package/dist/commonjs/models/components/assetspecifications.d.ts +84 -0
  84. package/dist/commonjs/models/components/assetspecifications.d.ts.map +1 -0
  85. package/dist/commonjs/models/components/assetspecifications.js +182 -0
  86. package/dist/commonjs/models/components/assetspecifications.js.map +1 -0
  87. package/dist/commonjs/models/components/assettypes.d.ts +124 -0
  88. package/dist/commonjs/models/components/assettypes.d.ts.map +1 -0
  89. package/dist/commonjs/models/components/assettypes.js +94 -0
  90. package/dist/commonjs/models/components/assettypes.js.map +1 -0
  91. package/dist/commonjs/models/components/consumerincometypes.d.ts +55 -0
  92. package/dist/commonjs/models/components/consumerincometypes.d.ts.map +1 -0
  93. package/dist/commonjs/models/components/consumerincometypes.js +70 -0
  94. package/dist/commonjs/models/components/consumerincometypes.js.map +1 -0
  95. package/dist/commonjs/models/components/consumerliabilitytypes.d.ts +46 -0
  96. package/dist/commonjs/models/components/consumerliabilitytypes.d.ts.map +1 -0
  97. package/dist/commonjs/models/components/consumerliabilitytypes.js +67 -0
  98. package/dist/commonjs/models/components/consumerliabilitytypes.js.map +1 -0
  99. package/dist/commonjs/models/components/creditprofile.d.ts +32 -0
  100. package/dist/commonjs/models/components/creditprofile.d.ts.map +1 -0
  101. package/dist/commonjs/models/components/creditprofile.js +69 -0
  102. package/dist/commonjs/models/components/creditprofile.js.map +1 -0
  103. package/dist/commonjs/models/components/customer.d.ts +123 -0
  104. package/dist/commonjs/models/components/customer.d.ts.map +1 -0
  105. package/dist/commonjs/models/components/customer.js +163 -0
  106. package/dist/commonjs/models/components/customer.js.map +1 -0
  107. package/dist/commonjs/models/components/customerassettypes.d.ts +55 -0
  108. package/dist/commonjs/models/components/customerassettypes.d.ts.map +1 -0
  109. package/dist/commonjs/models/components/customerassettypes.js +70 -0
  110. package/dist/commonjs/models/components/customerassettypes.js.map +1 -0
  111. package/dist/commonjs/models/components/customerdisclaimer.d.ts +207 -0
  112. package/dist/commonjs/models/components/customerdisclaimer.d.ts.map +1 -0
  113. package/dist/commonjs/models/components/customerdisclaimer.js +321 -0
  114. package/dist/commonjs/models/components/customerdisclaimer.js.map +1 -0
  115. package/dist/commonjs/models/components/customerprofile.d.ts +60 -0
  116. package/dist/commonjs/models/components/customerprofile.d.ts.map +1 -0
  117. package/dist/commonjs/models/components/customerprofile.js +97 -0
  118. package/dist/commonjs/models/components/customerprofile.js.map +1 -0
  119. package/dist/commonjs/models/components/customertitle.d.ts +40 -0
  120. package/dist/commonjs/models/components/customertitle.d.ts.map +1 -0
  121. package/dist/commonjs/models/components/customertitle.js +65 -0
  122. package/dist/commonjs/models/components/customertitle.js.map +1 -0
  123. package/dist/commonjs/models/components/document.d.ts +56 -0
  124. package/dist/commonjs/models/components/document.d.ts.map +1 -0
  125. package/dist/commonjs/models/components/document.js +99 -0
  126. package/dist/commonjs/models/components/document.js.map +1 -0
  127. package/dist/commonjs/models/components/documenttypes.d.ts +85 -0
  128. package/dist/commonjs/models/components/documenttypes.d.ts.map +1 -0
  129. package/dist/commonjs/models/components/documenttypes.js +80 -0
  130. package/dist/commonjs/models/components/documenttypes.js.map +1 -0
  131. package/dist/commonjs/models/components/email.d.ts +11 -3
  132. package/dist/commonjs/models/components/email.d.ts.map +1 -1
  133. package/dist/commonjs/models/components/email.js +17 -3
  134. package/dist/commonjs/models/components/email.js.map +1 -1
  135. package/dist/commonjs/models/components/employer.d.ts +54 -37
  136. package/dist/commonjs/models/components/employer.d.ts.map +1 -1
  137. package/dist/commonjs/models/components/employer.js +47 -41
  138. package/dist/commonjs/models/components/employer.js.map +1 -1
  139. package/dist/commonjs/models/components/employmenttypes.d.ts +49 -0
  140. package/dist/commonjs/models/components/employmenttypes.d.ts.map +1 -0
  141. package/dist/commonjs/models/components/employmenttypes.js +68 -0
  142. package/dist/commonjs/models/components/employmenttypes.js.map +1 -0
  143. package/dist/commonjs/models/components/entity.d.ts +99 -0
  144. package/dist/commonjs/models/components/entity.d.ts.map +1 -0
  145. package/dist/commonjs/models/components/{pepperconsumerentity.js → entity.js} +59 -34
  146. package/dist/commonjs/models/components/entity.js.map +1 -0
  147. package/dist/commonjs/models/components/entitystatus.d.ts +34 -0
  148. package/dist/commonjs/models/components/entitystatus.d.ts.map +1 -0
  149. package/dist/commonjs/models/components/entitystatus.js +63 -0
  150. package/dist/commonjs/models/components/entitystatus.js.map +1 -0
  151. package/dist/commonjs/models/components/entitytype.d.ts +43 -0
  152. package/dist/commonjs/models/components/entitytype.d.ts.map +1 -0
  153. package/dist/commonjs/models/components/entitytype.js +67 -0
  154. package/dist/commonjs/models/components/entitytype.js.map +1 -0
  155. package/dist/commonjs/models/components/errorsource.d.ts +1 -1
  156. package/dist/commonjs/models/components/errorsource.d.ts.map +1 -1
  157. package/dist/commonjs/models/components/errorsource.js +1 -1
  158. package/dist/commonjs/models/components/errorsource.js.map +1 -1
  159. package/dist/commonjs/models/components/expense.d.ts +50 -0
  160. package/dist/commonjs/models/components/expense.d.ts.map +1 -0
  161. package/dist/commonjs/models/components/expense.js +90 -0
  162. package/dist/commonjs/models/components/expense.js.map +1 -0
  163. package/dist/commonjs/models/components/expensestype.d.ts +88 -0
  164. package/dist/commonjs/models/components/expensestype.d.ts.map +1 -0
  165. package/dist/commonjs/models/components/expensestype.js +81 -0
  166. package/dist/commonjs/models/components/expensestype.js.map +1 -0
  167. package/dist/commonjs/models/components/fee.d.ts +17 -5
  168. package/dist/commonjs/models/components/fee.d.ts.map +1 -1
  169. package/dist/commonjs/models/components/fee.js +11 -5
  170. package/dist/commonjs/models/components/fee.js.map +1 -1
  171. package/dist/commonjs/models/components/feefrequency.d.ts +43 -0
  172. package/dist/commonjs/models/components/feefrequency.d.ts.map +1 -0
  173. package/dist/commonjs/models/components/feefrequency.js +66 -0
  174. package/dist/commonjs/models/components/feefrequency.js.map +1 -0
  175. package/dist/commonjs/models/components/feetype.d.ts +40 -0
  176. package/dist/commonjs/models/components/feetype.d.ts.map +1 -0
  177. package/dist/commonjs/models/components/feetype.js +66 -0
  178. package/dist/commonjs/models/components/feetype.js.map +1 -0
  179. package/dist/commonjs/models/components/forbiddenerror.d.ts +1 -1
  180. package/dist/commonjs/models/components/forbiddenerror.d.ts.map +1 -1
  181. package/dist/commonjs/models/components/forbiddenerror.js +1 -1
  182. package/dist/commonjs/models/components/forbiddenerror.js.map +1 -1
  183. package/dist/commonjs/models/components/frequency.d.ts +40 -0
  184. package/dist/commonjs/models/components/frequency.d.ts.map +1 -0
  185. package/dist/commonjs/models/components/frequency.js +66 -0
  186. package/dist/commonjs/models/components/frequency.js.map +1 -0
  187. package/dist/commonjs/models/components/idstate.d.ts +52 -0
  188. package/dist/commonjs/models/components/idstate.d.ts.map +1 -0
  189. package/dist/commonjs/models/components/idstate.js +70 -0
  190. package/dist/commonjs/models/components/idstate.js.map +1 -0
  191. package/dist/commonjs/models/components/idtype.d.ts +34 -0
  192. package/dist/commonjs/models/components/idtype.d.ts.map +1 -0
  193. package/dist/commonjs/models/components/idtype.js +64 -0
  194. package/dist/commonjs/models/components/idtype.js.map +1 -0
  195. package/dist/commonjs/models/components/income.d.ts +48 -0
  196. package/dist/commonjs/models/components/income.d.ts.map +1 -0
  197. package/dist/commonjs/models/components/{pepperconsumerincome.js → income.js} +27 -22
  198. package/dist/commonjs/models/components/income.js.map +1 -0
  199. package/dist/commonjs/models/components/index.d.ts +48 -10
  200. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  201. package/dist/commonjs/models/components/index.js +48 -10
  202. package/dist/commonjs/models/components/index.js.map +1 -1
  203. package/dist/commonjs/models/components/industrytypes.d.ts +85 -0
  204. package/dist/commonjs/models/components/industrytypes.d.ts.map +1 -0
  205. package/dist/commonjs/models/components/industrytypes.js +80 -0
  206. package/dist/commonjs/models/components/industrytypes.js.map +1 -0
  207. package/dist/commonjs/models/components/internalservererror.d.ts +1 -1
  208. package/dist/commonjs/models/components/internalservererror.d.ts.map +1 -1
  209. package/dist/commonjs/models/components/internalservererror.js +1 -1
  210. package/dist/commonjs/models/components/internalservererror.js.map +1 -1
  211. package/dist/commonjs/models/components/label.d.ts +1 -1
  212. package/dist/commonjs/models/components/label.d.ts.map +1 -1
  213. package/dist/commonjs/models/components/label.js +1 -1
  214. package/dist/commonjs/models/components/label.js.map +1 -1
  215. package/dist/commonjs/models/components/lendercredentials.d.ts +52 -0
  216. package/dist/commonjs/models/components/lendercredentials.d.ts.map +1 -0
  217. package/dist/commonjs/models/components/lendercredentials.js +100 -0
  218. package/dist/commonjs/models/components/lendercredentials.js.map +1 -0
  219. package/dist/commonjs/models/components/lenders.d.ts +1 -1
  220. package/dist/commonjs/models/components/lenders.d.ts.map +1 -1
  221. package/dist/commonjs/models/components/lenders.js +1 -1
  222. package/dist/commonjs/models/components/lenders.js.map +1 -1
  223. package/dist/commonjs/models/components/liability.d.ts +54 -0
  224. package/dist/commonjs/models/components/liability.d.ts.map +1 -0
  225. package/dist/commonjs/models/components/{pepperconsumerliability.js → liability.js} +28 -26
  226. package/dist/commonjs/models/components/liability.js.map +1 -0
  227. package/dist/commonjs/models/components/livingarrangements.d.ts +40 -0
  228. package/dist/commonjs/models/components/livingarrangements.d.ts.map +1 -0
  229. package/dist/commonjs/models/components/livingarrangements.js +65 -0
  230. package/dist/commonjs/models/components/livingarrangements.js.map +1 -0
  231. package/dist/commonjs/models/components/loandetails.d.ts +87 -0
  232. package/dist/commonjs/models/components/loandetails.d.ts.map +1 -0
  233. package/dist/commonjs/models/components/loandetails.js +130 -0
  234. package/dist/commonjs/models/components/loandetails.js.map +1 -0
  235. package/dist/commonjs/models/components/loanpurposetype.d.ts +58 -0
  236. package/dist/commonjs/models/components/loanpurposetype.d.ts.map +1 -0
  237. package/dist/commonjs/models/components/loanpurposetype.js +71 -0
  238. package/dist/commonjs/models/components/loanpurposetype.js.map +1 -0
  239. package/dist/commonjs/models/components/maritalstatus.d.ts +34 -0
  240. package/dist/commonjs/models/components/maritalstatus.d.ts.map +1 -0
  241. package/dist/commonjs/models/components/maritalstatus.js +63 -0
  242. package/dist/commonjs/models/components/maritalstatus.js.map +1 -0
  243. package/dist/commonjs/models/components/notfounderror.d.ts +1 -1
  244. package/dist/commonjs/models/components/notfounderror.d.ts.map +1 -1
  245. package/dist/commonjs/models/components/notfounderror.js +1 -1
  246. package/dist/commonjs/models/components/notfounderror.js.map +1 -1
  247. package/dist/commonjs/models/components/occupation.d.ts +607 -0
  248. package/dist/commonjs/models/components/occupation.d.ts.map +1 -0
  249. package/dist/commonjs/models/components/occupation.js +255 -0
  250. package/dist/commonjs/models/components/occupation.js.map +1 -0
  251. package/dist/commonjs/models/components/phonenumber.d.ts +9 -3
  252. package/dist/commonjs/models/components/phonenumber.d.ts.map +1 -1
  253. package/dist/commonjs/models/components/phonenumber.js +15 -3
  254. package/dist/commonjs/models/components/phonenumber.js.map +1 -1
  255. package/dist/commonjs/models/components/productdetails.d.ts +34 -0
  256. package/dist/commonjs/models/components/productdetails.d.ts.map +1 -0
  257. package/dist/commonjs/models/components/productdetails.js +71 -0
  258. package/dist/commonjs/models/components/productdetails.js.map +1 -0
  259. package/dist/commonjs/models/components/residentialstatus.d.ts +43 -0
  260. package/dist/commonjs/models/components/residentialstatus.d.ts.map +1 -0
  261. package/dist/commonjs/models/components/residentialstatus.js +66 -0
  262. package/dist/commonjs/models/components/residentialstatus.js.map +1 -0
  263. package/dist/commonjs/models/components/timestatus.d.ts +34 -0
  264. package/dist/commonjs/models/components/timestatus.d.ts.map +1 -0
  265. package/dist/commonjs/models/components/timestatus.js +64 -0
  266. package/dist/commonjs/models/components/timestatus.js.map +1 -0
  267. package/dist/commonjs/models/components/typeofchangeexpected.d.ts +61 -0
  268. package/dist/commonjs/models/components/typeofchangeexpected.d.ts.map +1 -0
  269. package/dist/commonjs/models/components/typeofchangeexpected.js +72 -0
  270. package/dist/commonjs/models/components/typeofchangeexpected.js.map +1 -0
  271. package/dist/commonjs/models/components/typeofsale.d.ts +46 -0
  272. package/dist/commonjs/models/components/typeofsale.d.ts.map +1 -0
  273. package/dist/commonjs/models/components/typeofsale.js +68 -0
  274. package/dist/commonjs/models/components/typeofsale.js.map +1 -0
  275. package/dist/commonjs/models/components/unauthorizederror.d.ts +1 -1
  276. package/dist/commonjs/models/components/unauthorizederror.d.ts.map +1 -1
  277. package/dist/commonjs/models/components/unauthorizederror.js +1 -1
  278. package/dist/commonjs/models/components/unauthorizederror.js.map +1 -1
  279. package/dist/commonjs/models/components/user.d.ts +69 -0
  280. package/dist/commonjs/models/components/user.d.ts.map +1 -0
  281. package/dist/commonjs/models/components/{pepperconsumerrequest.js → user.js} +44 -57
  282. package/dist/commonjs/models/components/user.js.map +1 -0
  283. package/dist/commonjs/models/components/whatareyoulookingforinyourloan.d.ts +46 -0
  284. package/dist/commonjs/models/components/whatareyoulookingforinyourloan.d.ts.map +1 -0
  285. package/dist/commonjs/models/components/whatareyoulookingforinyourloan.js +67 -0
  286. package/dist/commonjs/models/components/whatareyoulookingforinyourloan.js.map +1 -0
  287. package/dist/commonjs/models/components/whatisthepurposeofthisapplication.d.ts +43 -0
  288. package/dist/commonjs/models/components/whatisthepurposeofthisapplication.d.ts.map +1 -0
  289. package/dist/commonjs/models/components/whatisthepurposeofthisapplication.js +66 -0
  290. package/dist/commonjs/models/components/whatisthepurposeofthisapplication.js.map +1 -0
  291. package/dist/commonjs/models/components/whattodowithballoonpaymentattheendoftheloanterm.d.ts +40 -0
  292. package/dist/commonjs/models/components/whattodowithballoonpaymentattheendoftheloanterm.d.ts.map +1 -0
  293. package/dist/commonjs/models/components/whattodowithballoonpaymentattheendoftheloanterm.js +66 -0
  294. package/dist/commonjs/models/components/whattodowithballoonpaymentattheendoftheloanterm.js.map +1 -0
  295. package/dist/commonjs/models/components/whydoesthisloantermsuityourrequirements.d.ts +43 -0
  296. package/dist/commonjs/models/components/whydoesthisloantermsuityourrequirements.d.ts.map +1 -0
  297. package/dist/commonjs/models/components/whydoesthisloantermsuityourrequirements.js +67 -0
  298. package/dist/commonjs/models/components/whydoesthisloantermsuityourrequirements.js.map +1 -0
  299. package/dist/commonjs/models/components/yesorno.d.ts +34 -0
  300. package/dist/commonjs/models/components/yesorno.d.ts.map +1 -0
  301. package/dist/commonjs/models/components/yesorno.js +64 -0
  302. package/dist/commonjs/models/components/yesorno.js.map +1 -0
  303. package/dist/commonjs/models/errors/createsubmission.d.ts +274 -0
  304. package/dist/commonjs/models/errors/createsubmission.d.ts.map +1 -0
  305. package/dist/commonjs/models/errors/createsubmission.js +288 -0
  306. package/dist/commonjs/models/errors/createsubmission.js.map +1 -0
  307. package/dist/commonjs/models/errors/index.d.ts +1 -1
  308. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  309. package/dist/commonjs/models/errors/index.js +1 -1
  310. package/dist/commonjs/models/errors/index.js.map +1 -1
  311. package/dist/commonjs/models/errors/responsevalidationerror.js +1 -1
  312. package/dist/commonjs/models/errors/responsevalidationerror.js.map +1 -1
  313. package/dist/commonjs/models/errors/sdkvalidationerror.d.ts +1 -1
  314. package/dist/commonjs/models/errors/sdkvalidationerror.d.ts.map +1 -1
  315. package/dist/commonjs/models/errors/sdkvalidationerror.js +1 -1
  316. package/dist/commonjs/models/errors/sdkvalidationerror.js.map +1 -1
  317. package/dist/commonjs/models/operations/createsubmission.d.ts +123 -0
  318. package/dist/commonjs/models/operations/createsubmission.d.ts.map +1 -0
  319. package/dist/commonjs/models/operations/createsubmission.js +151 -0
  320. package/dist/commonjs/models/operations/createsubmission.js.map +1 -0
  321. package/dist/commonjs/models/operations/index.d.ts +1 -1
  322. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  323. package/dist/commonjs/models/operations/index.js +1 -1
  324. package/dist/commonjs/models/operations/index.js.map +1 -1
  325. package/dist/commonjs/sdk/sdk.d.ts +2 -3
  326. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  327. package/dist/commonjs/sdk/sdk.js +4 -4
  328. package/dist/commonjs/sdk/sdk.js.map +1 -1
  329. package/dist/commonjs/types/blobs.d.ts +1 -1
  330. package/dist/commonjs/types/blobs.d.ts.map +1 -1
  331. package/dist/commonjs/types/blobs.js +1 -1
  332. package/dist/commonjs/types/blobs.js.map +1 -1
  333. package/dist/commonjs/types/constdatetime.d.ts +1 -1
  334. package/dist/commonjs/types/constdatetime.d.ts.map +1 -1
  335. package/dist/commonjs/types/constdatetime.js +1 -1
  336. package/dist/commonjs/types/constdatetime.js.map +1 -1
  337. package/dist/esm/funcs/createSubmission.d.ts +15 -0
  338. package/dist/esm/funcs/createSubmission.d.ts.map +1 -0
  339. package/dist/esm/funcs/{createPepperConsumer.js → createSubmission.js} +13 -11
  340. package/dist/esm/funcs/createSubmission.js.map +1 -0
  341. package/dist/esm/lib/base64.d.ts +1 -1
  342. package/dist/esm/lib/base64.d.ts.map +1 -1
  343. package/dist/esm/lib/base64.js +1 -1
  344. package/dist/esm/lib/base64.js.map +1 -1
  345. package/dist/esm/lib/config.d.ts +4 -4
  346. package/dist/esm/lib/config.js +4 -4
  347. package/dist/esm/lib/config.js.map +1 -1
  348. package/dist/esm/lib/env.d.ts +1 -1
  349. package/dist/esm/lib/env.d.ts.map +1 -1
  350. package/dist/esm/lib/env.js +19 -2
  351. package/dist/esm/lib/env.js.map +1 -1
  352. package/dist/esm/lib/schemas.d.ts +1 -1
  353. package/dist/esm/lib/schemas.d.ts.map +1 -1
  354. package/dist/esm/lib/schemas.js +1 -1
  355. package/dist/esm/lib/schemas.js.map +1 -1
  356. package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -1
  357. package/dist/esm/mcp-server/cli/start/command.js +2 -3
  358. package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
  359. package/dist/esm/mcp-server/extensions.d.ts +1 -1
  360. package/dist/esm/mcp-server/extensions.d.ts.map +1 -1
  361. package/dist/esm/mcp-server/mcp-server.js +1 -1
  362. package/dist/esm/mcp-server/prompts.d.ts +1 -1
  363. package/dist/esm/mcp-server/prompts.d.ts.map +1 -1
  364. package/dist/esm/mcp-server/server.js +3 -3
  365. package/dist/esm/mcp-server/server.js.map +1 -1
  366. package/dist/esm/mcp-server/shared.d.ts.map +1 -1
  367. package/dist/esm/mcp-server/shared.js +1 -1
  368. package/dist/esm/mcp-server/shared.js.map +1 -1
  369. package/dist/esm/mcp-server/tools/createSubmission.d.ts +8 -0
  370. package/dist/esm/mcp-server/tools/createSubmission.d.ts.map +1 -0
  371. package/dist/esm/mcp-server/tools/createSubmission.js +26 -0
  372. package/dist/esm/mcp-server/tools/createSubmission.js.map +1 -0
  373. package/dist/esm/mcp-server/tools.d.ts +1 -1
  374. package/dist/esm/mcp-server/tools.d.ts.map +1 -1
  375. package/dist/esm/models/components/address.d.ts +28 -20
  376. package/dist/esm/models/components/address.d.ts.map +1 -1
  377. package/dist/esm/models/components/address.js +20 -21
  378. package/dist/esm/models/components/address.js.map +1 -1
  379. package/dist/esm/models/components/addressstatus.d.ts +34 -0
  380. package/dist/esm/models/components/addressstatus.d.ts.map +1 -0
  381. package/dist/esm/models/components/addressstatus.js +27 -0
  382. package/dist/esm/models/components/addressstatus.js.map +1 -0
  383. package/dist/esm/models/components/addresstype.d.ts +34 -0
  384. package/dist/esm/models/components/addresstype.d.ts.map +1 -0
  385. package/dist/esm/models/components/addresstype.js +28 -0
  386. package/dist/esm/models/components/addresstype.js.map +1 -0
  387. package/dist/esm/models/components/apierror.d.ts +1 -1
  388. package/dist/esm/models/components/apierror.d.ts.map +1 -1
  389. package/dist/esm/models/components/apierror.js +1 -1
  390. package/dist/esm/models/components/apierror.js.map +1 -1
  391. package/dist/esm/models/components/apierrorcodes.d.ts +1 -1
  392. package/dist/esm/models/components/apierrorcodes.d.ts.map +1 -1
  393. package/dist/esm/models/components/apierrorcodes.js +1 -1
  394. package/dist/esm/models/components/apierrorcodes.js.map +1 -1
  395. package/dist/esm/models/components/apierrorlinks.d.ts +1 -1
  396. package/dist/esm/models/components/apierrorlinks.d.ts.map +1 -1
  397. package/dist/esm/models/components/apierrorlinks.js +1 -1
  398. package/dist/esm/models/components/apierrorlinks.js.map +1 -1
  399. package/dist/esm/models/components/applicantasset.d.ts +19 -7
  400. package/dist/esm/models/components/applicantasset.d.ts.map +1 -1
  401. package/dist/esm/models/components/applicantasset.js +16 -7
  402. package/dist/esm/models/components/applicantasset.js.map +1 -1
  403. package/dist/esm/models/components/application.d.ts +130 -0
  404. package/dist/esm/models/components/application.d.ts.map +1 -0
  405. package/dist/esm/models/components/application.js +136 -0
  406. package/dist/esm/models/components/application.js.map +1 -0
  407. package/dist/esm/models/components/asset.d.ts +147 -0
  408. package/dist/esm/models/components/asset.d.ts.map +1 -0
  409. package/dist/esm/models/components/asset.js +117 -0
  410. package/dist/esm/models/components/asset.js.map +1 -0
  411. package/dist/esm/models/components/assetconditiontypes.d.ts +37 -0
  412. package/dist/esm/models/components/assetconditiontypes.d.ts.map +1 -0
  413. package/dist/esm/models/components/assetconditiontypes.js +28 -0
  414. package/dist/esm/models/components/assetconditiontypes.js.map +1 -0
  415. package/dist/esm/models/components/assetspecifications.d.ts +84 -0
  416. package/dist/esm/models/components/assetspecifications.d.ts.map +1 -0
  417. package/dist/esm/models/components/assetspecifications.js +144 -0
  418. package/dist/esm/models/components/assetspecifications.js.map +1 -0
  419. package/dist/esm/models/components/assettypes.d.ts +124 -0
  420. package/dist/esm/models/components/assettypes.d.ts.map +1 -0
  421. package/dist/esm/models/components/assettypes.js +58 -0
  422. package/dist/esm/models/components/assettypes.js.map +1 -0
  423. package/dist/esm/models/components/consumerincometypes.d.ts +55 -0
  424. package/dist/esm/models/components/consumerincometypes.d.ts.map +1 -0
  425. package/dist/esm/models/components/consumerincometypes.js +34 -0
  426. package/dist/esm/models/components/consumerincometypes.js.map +1 -0
  427. package/dist/esm/models/components/consumerliabilitytypes.d.ts +46 -0
  428. package/dist/esm/models/components/consumerliabilitytypes.d.ts.map +1 -0
  429. package/dist/esm/models/components/consumerliabilitytypes.js +31 -0
  430. package/dist/esm/models/components/consumerliabilitytypes.js.map +1 -0
  431. package/dist/esm/models/components/creditprofile.d.ts +32 -0
  432. package/dist/esm/models/components/creditprofile.d.ts.map +1 -0
  433. package/dist/esm/models/components/creditprofile.js +31 -0
  434. package/dist/esm/models/components/creditprofile.js.map +1 -0
  435. package/dist/esm/models/components/customer.d.ts +123 -0
  436. package/dist/esm/models/components/customer.d.ts.map +1 -0
  437. package/dist/esm/models/components/customer.js +125 -0
  438. package/dist/esm/models/components/customer.js.map +1 -0
  439. package/dist/esm/models/components/customerassettypes.d.ts +55 -0
  440. package/dist/esm/models/components/customerassettypes.d.ts.map +1 -0
  441. package/dist/esm/models/components/customerassettypes.js +34 -0
  442. package/dist/esm/models/components/customerassettypes.js.map +1 -0
  443. package/dist/esm/models/components/customerdisclaimer.d.ts +207 -0
  444. package/dist/esm/models/components/customerdisclaimer.d.ts.map +1 -0
  445. package/dist/esm/models/components/customerdisclaimer.js +269 -0
  446. package/dist/esm/models/components/customerdisclaimer.js.map +1 -0
  447. package/dist/esm/models/components/customerprofile.d.ts +60 -0
  448. package/dist/esm/models/components/customerprofile.d.ts.map +1 -0
  449. package/dist/esm/models/components/customerprofile.js +59 -0
  450. package/dist/esm/models/components/customerprofile.js.map +1 -0
  451. package/dist/esm/models/components/customertitle.d.ts +40 -0
  452. package/dist/esm/models/components/customertitle.d.ts.map +1 -0
  453. package/dist/esm/models/components/customertitle.js +29 -0
  454. package/dist/esm/models/components/customertitle.js.map +1 -0
  455. package/dist/esm/models/components/document.d.ts +56 -0
  456. package/dist/esm/models/components/document.d.ts.map +1 -0
  457. package/dist/esm/models/components/document.js +61 -0
  458. package/dist/esm/models/components/document.js.map +1 -0
  459. package/dist/esm/models/components/documenttypes.d.ts +85 -0
  460. package/dist/esm/models/components/documenttypes.d.ts.map +1 -0
  461. package/dist/esm/models/components/documenttypes.js +44 -0
  462. package/dist/esm/models/components/documenttypes.js.map +1 -0
  463. package/dist/esm/models/components/email.d.ts +11 -3
  464. package/dist/esm/models/components/email.d.ts.map +1 -1
  465. package/dist/esm/models/components/email.js +17 -3
  466. package/dist/esm/models/components/email.js.map +1 -1
  467. package/dist/esm/models/components/employer.d.ts +54 -37
  468. package/dist/esm/models/components/employer.d.ts.map +1 -1
  469. package/dist/esm/models/components/employer.js +46 -38
  470. package/dist/esm/models/components/employer.js.map +1 -1
  471. package/dist/esm/models/components/employmenttypes.d.ts +49 -0
  472. package/dist/esm/models/components/employmenttypes.d.ts.map +1 -0
  473. package/dist/esm/models/components/employmenttypes.js +32 -0
  474. package/dist/esm/models/components/employmenttypes.js.map +1 -0
  475. package/dist/esm/models/components/entity.d.ts +99 -0
  476. package/dist/esm/models/components/entity.d.ts.map +1 -0
  477. package/dist/esm/models/components/entity.js +96 -0
  478. package/dist/esm/models/components/entity.js.map +1 -0
  479. package/dist/esm/models/components/entitystatus.d.ts +34 -0
  480. package/dist/esm/models/components/entitystatus.d.ts.map +1 -0
  481. package/dist/esm/models/components/entitystatus.js +27 -0
  482. package/dist/esm/models/components/entitystatus.js.map +1 -0
  483. package/dist/esm/models/components/entitytype.d.ts +43 -0
  484. package/dist/esm/models/components/entitytype.d.ts.map +1 -0
  485. package/dist/esm/models/components/entitytype.js +31 -0
  486. package/dist/esm/models/components/entitytype.js.map +1 -0
  487. package/dist/esm/models/components/errorsource.d.ts +1 -1
  488. package/dist/esm/models/components/errorsource.d.ts.map +1 -1
  489. package/dist/esm/models/components/errorsource.js +1 -1
  490. package/dist/esm/models/components/errorsource.js.map +1 -1
  491. package/dist/esm/models/components/expense.d.ts +50 -0
  492. package/dist/esm/models/components/expense.d.ts.map +1 -0
  493. package/dist/esm/models/components/expense.js +52 -0
  494. package/dist/esm/models/components/expense.js.map +1 -0
  495. package/dist/esm/models/components/expensestype.d.ts +88 -0
  496. package/dist/esm/models/components/expensestype.d.ts.map +1 -0
  497. package/dist/esm/models/components/expensestype.js +45 -0
  498. package/dist/esm/models/components/expensestype.js.map +1 -0
  499. package/dist/esm/models/components/fee.d.ts +17 -5
  500. package/dist/esm/models/components/fee.d.ts.map +1 -1
  501. package/dist/esm/models/components/fee.js +11 -5
  502. package/dist/esm/models/components/fee.js.map +1 -1
  503. package/dist/esm/models/components/feefrequency.d.ts +43 -0
  504. package/dist/esm/models/components/feefrequency.d.ts.map +1 -0
  505. package/dist/esm/models/components/feefrequency.js +30 -0
  506. package/dist/esm/models/components/feefrequency.js.map +1 -0
  507. package/dist/esm/models/components/feetype.d.ts +40 -0
  508. package/dist/esm/models/components/feetype.d.ts.map +1 -0
  509. package/dist/esm/models/components/feetype.js +30 -0
  510. package/dist/esm/models/components/feetype.js.map +1 -0
  511. package/dist/esm/models/components/forbiddenerror.d.ts +1 -1
  512. package/dist/esm/models/components/forbiddenerror.d.ts.map +1 -1
  513. package/dist/esm/models/components/forbiddenerror.js +1 -1
  514. package/dist/esm/models/components/forbiddenerror.js.map +1 -1
  515. package/dist/esm/models/components/frequency.d.ts +40 -0
  516. package/dist/esm/models/components/frequency.d.ts.map +1 -0
  517. package/dist/esm/models/components/frequency.js +30 -0
  518. package/dist/esm/models/components/frequency.js.map +1 -0
  519. package/dist/esm/models/components/idstate.d.ts +52 -0
  520. package/dist/esm/models/components/idstate.d.ts.map +1 -0
  521. package/dist/esm/models/components/idstate.js +34 -0
  522. package/dist/esm/models/components/idstate.js.map +1 -0
  523. package/dist/esm/models/components/idtype.d.ts +34 -0
  524. package/dist/esm/models/components/idtype.d.ts.map +1 -0
  525. package/dist/esm/models/components/idtype.js +28 -0
  526. package/dist/esm/models/components/idtype.js.map +1 -0
  527. package/dist/esm/models/components/income.d.ts +48 -0
  528. package/dist/esm/models/components/income.d.ts.map +1 -0
  529. package/dist/esm/models/components/income.js +51 -0
  530. package/dist/esm/models/components/income.js.map +1 -0
  531. package/dist/esm/models/components/index.d.ts +48 -10
  532. package/dist/esm/models/components/index.d.ts.map +1 -1
  533. package/dist/esm/models/components/index.js +48 -10
  534. package/dist/esm/models/components/index.js.map +1 -1
  535. package/dist/esm/models/components/industrytypes.d.ts +85 -0
  536. package/dist/esm/models/components/industrytypes.d.ts.map +1 -0
  537. package/dist/esm/models/components/industrytypes.js +44 -0
  538. package/dist/esm/models/components/industrytypes.js.map +1 -0
  539. package/dist/esm/models/components/internalservererror.d.ts +1 -1
  540. package/dist/esm/models/components/internalservererror.d.ts.map +1 -1
  541. package/dist/esm/models/components/internalservererror.js +1 -1
  542. package/dist/esm/models/components/internalservererror.js.map +1 -1
  543. package/dist/esm/models/components/label.d.ts +1 -1
  544. package/dist/esm/models/components/label.d.ts.map +1 -1
  545. package/dist/esm/models/components/label.js +1 -1
  546. package/dist/esm/models/components/label.js.map +1 -1
  547. package/dist/esm/models/components/lendercredentials.d.ts +52 -0
  548. package/dist/esm/models/components/lendercredentials.d.ts.map +1 -0
  549. package/dist/esm/models/components/lendercredentials.js +62 -0
  550. package/dist/esm/models/components/lendercredentials.js.map +1 -0
  551. package/dist/esm/models/components/lenders.d.ts +1 -1
  552. package/dist/esm/models/components/lenders.d.ts.map +1 -1
  553. package/dist/esm/models/components/lenders.js +1 -1
  554. package/dist/esm/models/components/lenders.js.map +1 -1
  555. package/dist/esm/models/components/liability.d.ts +54 -0
  556. package/dist/esm/models/components/liability.d.ts.map +1 -0
  557. package/dist/esm/models/components/liability.js +56 -0
  558. package/dist/esm/models/components/liability.js.map +1 -0
  559. package/dist/esm/models/components/livingarrangements.d.ts +40 -0
  560. package/dist/esm/models/components/livingarrangements.d.ts.map +1 -0
  561. package/dist/esm/models/components/livingarrangements.js +29 -0
  562. package/dist/esm/models/components/livingarrangements.js.map +1 -0
  563. package/dist/esm/models/components/loandetails.d.ts +87 -0
  564. package/dist/esm/models/components/loandetails.d.ts.map +1 -0
  565. package/dist/esm/models/components/loandetails.js +92 -0
  566. package/dist/esm/models/components/loandetails.js.map +1 -0
  567. package/dist/esm/models/components/loanpurposetype.d.ts +58 -0
  568. package/dist/esm/models/components/loanpurposetype.d.ts.map +1 -0
  569. package/dist/esm/models/components/loanpurposetype.js +35 -0
  570. package/dist/esm/models/components/loanpurposetype.js.map +1 -0
  571. package/dist/esm/models/components/maritalstatus.d.ts +34 -0
  572. package/dist/esm/models/components/maritalstatus.d.ts.map +1 -0
  573. package/dist/esm/models/components/maritalstatus.js +27 -0
  574. package/dist/esm/models/components/maritalstatus.js.map +1 -0
  575. package/dist/esm/models/components/notfounderror.d.ts +1 -1
  576. package/dist/esm/models/components/notfounderror.d.ts.map +1 -1
  577. package/dist/esm/models/components/notfounderror.js +1 -1
  578. package/dist/esm/models/components/notfounderror.js.map +1 -1
  579. package/dist/esm/models/components/occupation.d.ts +607 -0
  580. package/dist/esm/models/components/occupation.d.ts.map +1 -0
  581. package/dist/esm/models/components/occupation.js +219 -0
  582. package/dist/esm/models/components/occupation.js.map +1 -0
  583. package/dist/esm/models/components/phonenumber.d.ts +9 -3
  584. package/dist/esm/models/components/phonenumber.d.ts.map +1 -1
  585. package/dist/esm/models/components/phonenumber.js +15 -3
  586. package/dist/esm/models/components/phonenumber.js.map +1 -1
  587. package/dist/esm/models/components/productdetails.d.ts +34 -0
  588. package/dist/esm/models/components/productdetails.d.ts.map +1 -0
  589. package/dist/esm/models/components/productdetails.js +33 -0
  590. package/dist/esm/models/components/productdetails.js.map +1 -0
  591. package/dist/esm/models/components/residentialstatus.d.ts +43 -0
  592. package/dist/esm/models/components/residentialstatus.d.ts.map +1 -0
  593. package/dist/esm/models/components/residentialstatus.js +30 -0
  594. package/dist/esm/models/components/residentialstatus.js.map +1 -0
  595. package/dist/esm/models/components/timestatus.d.ts +34 -0
  596. package/dist/esm/models/components/timestatus.d.ts.map +1 -0
  597. package/dist/esm/models/components/timestatus.js +28 -0
  598. package/dist/esm/models/components/timestatus.js.map +1 -0
  599. package/dist/esm/models/components/typeofchangeexpected.d.ts +61 -0
  600. package/dist/esm/models/components/typeofchangeexpected.d.ts.map +1 -0
  601. package/dist/esm/models/components/typeofchangeexpected.js +36 -0
  602. package/dist/esm/models/components/typeofchangeexpected.js.map +1 -0
  603. package/dist/esm/models/components/typeofsale.d.ts +46 -0
  604. package/dist/esm/models/components/typeofsale.d.ts.map +1 -0
  605. package/dist/esm/models/components/typeofsale.js +32 -0
  606. package/dist/esm/models/components/typeofsale.js.map +1 -0
  607. package/dist/esm/models/components/unauthorizederror.d.ts +1 -1
  608. package/dist/esm/models/components/unauthorizederror.d.ts.map +1 -1
  609. package/dist/esm/models/components/unauthorizederror.js +1 -1
  610. package/dist/esm/models/components/unauthorizederror.js.map +1 -1
  611. package/dist/esm/models/components/user.d.ts +69 -0
  612. package/dist/esm/models/components/user.d.ts.map +1 -0
  613. package/dist/esm/models/components/user.js +75 -0
  614. package/dist/esm/models/components/user.js.map +1 -0
  615. package/dist/esm/models/components/whatareyoulookingforinyourloan.d.ts +46 -0
  616. package/dist/esm/models/components/whatareyoulookingforinyourloan.d.ts.map +1 -0
  617. package/dist/esm/models/components/whatareyoulookingforinyourloan.js +31 -0
  618. package/dist/esm/models/components/whatareyoulookingforinyourloan.js.map +1 -0
  619. package/dist/esm/models/components/whatisthepurposeofthisapplication.d.ts +43 -0
  620. package/dist/esm/models/components/whatisthepurposeofthisapplication.d.ts.map +1 -0
  621. package/dist/esm/models/components/whatisthepurposeofthisapplication.js +30 -0
  622. package/dist/esm/models/components/whatisthepurposeofthisapplication.js.map +1 -0
  623. package/dist/esm/models/components/whattodowithballoonpaymentattheendoftheloanterm.d.ts +40 -0
  624. package/dist/esm/models/components/whattodowithballoonpaymentattheendoftheloanterm.d.ts.map +1 -0
  625. package/dist/esm/models/components/whattodowithballoonpaymentattheendoftheloanterm.js +30 -0
  626. package/dist/esm/models/components/whattodowithballoonpaymentattheendoftheloanterm.js.map +1 -0
  627. package/dist/esm/models/components/whydoesthisloantermsuityourrequirements.d.ts +43 -0
  628. package/dist/esm/models/components/whydoesthisloantermsuityourrequirements.d.ts.map +1 -0
  629. package/dist/esm/models/components/whydoesthisloantermsuityourrequirements.js +31 -0
  630. package/dist/esm/models/components/whydoesthisloantermsuityourrequirements.js.map +1 -0
  631. package/dist/esm/models/components/yesorno.d.ts +34 -0
  632. package/dist/esm/models/components/yesorno.d.ts.map +1 -0
  633. package/dist/esm/models/components/yesorno.js +28 -0
  634. package/dist/esm/models/components/yesorno.js.map +1 -0
  635. package/dist/esm/models/errors/createsubmission.d.ts +274 -0
  636. package/dist/esm/models/errors/createsubmission.d.ts.map +1 -0
  637. package/dist/esm/models/errors/{createpepperconsumer.js → createsubmission.js} +62 -62
  638. package/dist/esm/models/errors/createsubmission.js.map +1 -0
  639. package/dist/esm/models/errors/index.d.ts +1 -1
  640. package/dist/esm/models/errors/index.d.ts.map +1 -1
  641. package/dist/esm/models/errors/index.js +1 -1
  642. package/dist/esm/models/errors/index.js.map +1 -1
  643. package/dist/esm/models/errors/responsevalidationerror.js +1 -1
  644. package/dist/esm/models/errors/responsevalidationerror.js.map +1 -1
  645. package/dist/esm/models/errors/sdkvalidationerror.d.ts +1 -1
  646. package/dist/esm/models/errors/sdkvalidationerror.d.ts.map +1 -1
  647. package/dist/esm/models/errors/sdkvalidationerror.js +1 -1
  648. package/dist/esm/models/errors/sdkvalidationerror.js.map +1 -1
  649. package/dist/esm/models/operations/createsubmission.d.ts +123 -0
  650. package/dist/esm/models/operations/createsubmission.d.ts.map +1 -0
  651. package/dist/esm/models/operations/createsubmission.js +109 -0
  652. package/dist/esm/models/operations/createsubmission.js.map +1 -0
  653. package/dist/esm/models/operations/index.d.ts +1 -1
  654. package/dist/esm/models/operations/index.d.ts.map +1 -1
  655. package/dist/esm/models/operations/index.js +1 -1
  656. package/dist/esm/models/operations/index.js.map +1 -1
  657. package/dist/esm/sdk/sdk.d.ts +2 -3
  658. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  659. package/dist/esm/sdk/sdk.js +4 -4
  660. package/dist/esm/sdk/sdk.js.map +1 -1
  661. package/dist/esm/types/blobs.d.ts +1 -1
  662. package/dist/esm/types/blobs.d.ts.map +1 -1
  663. package/dist/esm/types/blobs.js +1 -1
  664. package/dist/esm/types/blobs.js.map +1 -1
  665. package/dist/esm/types/constdatetime.d.ts +1 -1
  666. package/dist/esm/types/constdatetime.d.ts.map +1 -1
  667. package/dist/esm/types/constdatetime.js +1 -1
  668. package/dist/esm/types/constdatetime.js.map +1 -1
  669. package/examples/createSubmission.example.ts +26 -0
  670. package/examples/package-lock.json +628 -0
  671. package/jsr.json +1 -1
  672. package/package.json +2 -2
  673. package/src/funcs/{createPepperConsumer.ts → createSubmission.ts} +38 -38
  674. package/src/lib/base64.ts +1 -1
  675. package/src/lib/config.ts +4 -4
  676. package/src/lib/env.ts +21 -5
  677. package/src/lib/schemas.ts +1 -1
  678. package/src/mcp-server/cli/start/command.ts +2 -3
  679. package/src/mcp-server/extensions.ts +1 -1
  680. package/src/mcp-server/mcp-server.ts +1 -1
  681. package/src/mcp-server/prompts.ts +1 -1
  682. package/src/mcp-server/server.ts +3 -3
  683. package/src/mcp-server/shared.ts +1 -2
  684. package/src/mcp-server/tools/{createPepperConsumer.ts → createSubmission.ts} +7 -7
  685. package/src/mcp-server/tools.ts +1 -1
  686. package/src/models/components/address.ts +56 -40
  687. package/src/models/components/addressstatus.ts +39 -0
  688. package/src/models/components/addresstype.ts +37 -0
  689. package/src/models/components/apierror.ts +1 -1
  690. package/src/models/components/apierrorcodes.ts +1 -1
  691. package/src/models/components/apierrorlinks.ts +1 -1
  692. package/src/models/components/applicantasset.ts +37 -13
  693. package/src/models/components/application.ts +304 -0
  694. package/src/models/components/asset.ts +282 -0
  695. package/src/models/components/assetconditiontypes.ts +40 -0
  696. package/src/models/components/assetspecifications.ts +234 -0
  697. package/src/models/components/assettypes.ts +72 -0
  698. package/src/models/components/consumerincometypes.ts +46 -0
  699. package/src/models/components/consumerliabilitytypes.ts +43 -0
  700. package/src/models/components/creditprofile.ts +65 -0
  701. package/src/models/components/customer.ts +307 -0
  702. package/src/models/components/customerassettypes.ts +46 -0
  703. package/src/models/components/customerdisclaimer.ts +673 -0
  704. package/src/models/components/customerprofile.ts +132 -0
  705. package/src/models/components/customertitle.ts +41 -0
  706. package/src/models/components/document.ts +122 -0
  707. package/src/models/components/documenttypes.ts +56 -0
  708. package/src/models/components/email.ts +30 -5
  709. package/src/models/components/employer.ts +118 -80
  710. package/src/models/components/employmenttypes.ts +44 -0
  711. package/src/models/components/entity.ts +217 -0
  712. package/src/models/components/entitystatus.ts +37 -0
  713. package/src/models/components/entitytype.ts +40 -0
  714. package/src/models/components/errorsource.ts +1 -1
  715. package/src/models/components/expense.ts +107 -0
  716. package/src/models/components/expensestype.ts +55 -0
  717. package/src/models/components/fee.ts +33 -9
  718. package/src/models/components/feefrequency.ts +40 -0
  719. package/src/models/components/feetype.ts +39 -0
  720. package/src/models/components/forbiddenerror.ts +1 -1
  721. package/src/models/components/frequency.ts +39 -0
  722. package/src/models/components/idstate.ts +43 -0
  723. package/src/models/components/idtype.ts +37 -0
  724. package/src/models/components/income.ts +103 -0
  725. package/src/models/components/index.ts +48 -10
  726. package/src/models/components/industrytypes.ts +59 -0
  727. package/src/models/components/internalservererror.ts +1 -1
  728. package/src/models/components/label.ts +1 -1
  729. package/src/models/components/lendercredentials.ts +120 -0
  730. package/src/models/components/lenders.ts +1 -1
  731. package/src/models/components/liability.ts +118 -0
  732. package/src/models/components/livingarrangements.ts +41 -0
  733. package/src/models/components/loandetails.ts +188 -0
  734. package/src/models/components/loanpurposetype.ts +47 -0
  735. package/src/models/components/maritalstatus.ts +39 -0
  736. package/src/models/components/notfounderror.ts +1 -1
  737. package/src/models/components/occupation.ts +247 -0
  738. package/src/models/components/phonenumber.ts +26 -5
  739. package/src/models/components/productdetails.ts +69 -0
  740. package/src/models/components/residentialstatus.ts +42 -0
  741. package/src/models/components/timestatus.ts +37 -0
  742. package/src/models/components/typeofchangeexpected.ts +51 -0
  743. package/src/models/components/typeofsale.ts +41 -0
  744. package/src/models/components/unauthorizederror.ts +1 -1
  745. package/src/models/components/user.ts +147 -0
  746. package/src/models/components/whatareyoulookingforinyourloan.ts +47 -0
  747. package/src/models/components/whatisthepurposeofthisapplication.ts +47 -0
  748. package/src/models/components/whattodowithballoonpaymentattheendoftheloanterm.ts +45 -0
  749. package/src/models/components/whydoesthisloantermsuityourrequirements.ts +50 -0
  750. package/src/models/components/yesorno.ts +37 -0
  751. package/src/models/errors/createsubmission.ts +508 -0
  752. package/src/models/errors/index.ts +1 -1
  753. package/src/models/errors/responsevalidationerror.ts +1 -1
  754. package/src/models/errors/sdkvalidationerror.ts +1 -1
  755. package/src/models/operations/createsubmission.ts +229 -0
  756. package/src/models/operations/index.ts +1 -1
  757. package/src/sdk/sdk.ts +6 -7
  758. package/src/types/blobs.ts +7 -6
  759. package/src/types/constdatetime.ts +1 -1
  760. package/.devcontainer/README.md +0 -30
  761. package/dist/commonjs/funcs/createPepperConsumer.d.ts +0 -16
  762. package/dist/commonjs/funcs/createPepperConsumer.d.ts.map +0 -1
  763. package/dist/commonjs/funcs/createPepperConsumer.js.map +0 -1
  764. package/dist/commonjs/mcp-server/tools/createPepperConsumer.d.ts +0 -8
  765. package/dist/commonjs/mcp-server/tools/createPepperConsumer.d.ts.map +0 -1
  766. package/dist/commonjs/mcp-server/tools/createPepperConsumer.js.map +0 -1
  767. package/dist/commonjs/models/components/pepperconsumerasset.d.ts +0 -86
  768. package/dist/commonjs/models/components/pepperconsumerasset.d.ts.map +0 -1
  769. package/dist/commonjs/models/components/pepperconsumerasset.js +0 -114
  770. package/dist/commonjs/models/components/pepperconsumerasset.js.map +0 -1
  771. package/dist/commonjs/models/components/pepperconsumercustomer.d.ts +0 -110
  772. package/dist/commonjs/models/components/pepperconsumercustomer.d.ts.map +0 -1
  773. package/dist/commonjs/models/components/pepperconsumercustomer.js +0 -161
  774. package/dist/commonjs/models/components/pepperconsumercustomer.js.map +0 -1
  775. package/dist/commonjs/models/components/pepperconsumercustomerprofile.d.ts +0 -42
  776. package/dist/commonjs/models/components/pepperconsumercustomerprofile.d.ts.map +0 -1
  777. package/dist/commonjs/models/components/pepperconsumercustomerprofile.js +0 -79
  778. package/dist/commonjs/models/components/pepperconsumercustomerprofile.js.map +0 -1
  779. package/dist/commonjs/models/components/pepperconsumerentity.d.ts +0 -63
  780. package/dist/commonjs/models/components/pepperconsumerentity.d.ts.map +0 -1
  781. package/dist/commonjs/models/components/pepperconsumerentity.js.map +0 -1
  782. package/dist/commonjs/models/components/pepperconsumerincome.d.ts +0 -38
  783. package/dist/commonjs/models/components/pepperconsumerincome.d.ts.map +0 -1
  784. package/dist/commonjs/models/components/pepperconsumerincome.js.map +0 -1
  785. package/dist/commonjs/models/components/pepperconsumerliability.d.ts +0 -46
  786. package/dist/commonjs/models/components/pepperconsumerliability.d.ts.map +0 -1
  787. package/dist/commonjs/models/components/pepperconsumerliability.js.map +0 -1
  788. package/dist/commonjs/models/components/pepperconsumerloandetails.d.ts +0 -105
  789. package/dist/commonjs/models/components/pepperconsumerloandetails.d.ts.map +0 -1
  790. package/dist/commonjs/models/components/pepperconsumerloandetails.js +0 -133
  791. package/dist/commonjs/models/components/pepperconsumerloandetails.js.map +0 -1
  792. package/dist/commonjs/models/components/pepperconsumerrequest.d.ts +0 -88
  793. package/dist/commonjs/models/components/pepperconsumerrequest.d.ts.map +0 -1
  794. package/dist/commonjs/models/components/pepperconsumerrequest.js.map +0 -1
  795. package/dist/commonjs/models/components/pepperlendercredentials.d.ts +0 -40
  796. package/dist/commonjs/models/components/pepperlendercredentials.d.ts.map +0 -1
  797. package/dist/commonjs/models/components/pepperlendercredentials.js +0 -94
  798. package/dist/commonjs/models/components/pepperlendercredentials.js.map +0 -1
  799. package/dist/commonjs/models/components/peppersuccessresource.d.ts +0 -56
  800. package/dist/commonjs/models/components/peppersuccessresource.d.ts.map +0 -1
  801. package/dist/commonjs/models/components/peppersuccessresource.js +0 -98
  802. package/dist/commonjs/models/components/peppersuccessresource.js.map +0 -1
  803. package/dist/commonjs/models/errors/createpepperconsumer.d.ts +0 -274
  804. package/dist/commonjs/models/errors/createpepperconsumer.d.ts.map +0 -1
  805. package/dist/commonjs/models/errors/createpepperconsumer.js +0 -288
  806. package/dist/commonjs/models/errors/createpepperconsumer.js.map +0 -1
  807. package/dist/commonjs/models/operations/createpepperconsumer.d.ts +0 -60
  808. package/dist/commonjs/models/operations/createpepperconsumer.d.ts.map +0 -1
  809. package/dist/commonjs/models/operations/createpepperconsumer.js +0 -93
  810. package/dist/commonjs/models/operations/createpepperconsumer.js.map +0 -1
  811. package/dist/esm/funcs/createPepperConsumer.d.ts +0 -16
  812. package/dist/esm/funcs/createPepperConsumer.d.ts.map +0 -1
  813. package/dist/esm/funcs/createPepperConsumer.js.map +0 -1
  814. package/dist/esm/mcp-server/tools/createPepperConsumer.d.ts +0 -8
  815. package/dist/esm/mcp-server/tools/createPepperConsumer.d.ts.map +0 -1
  816. package/dist/esm/mcp-server/tools/createPepperConsumer.js +0 -26
  817. package/dist/esm/mcp-server/tools/createPepperConsumer.js.map +0 -1
  818. package/dist/esm/models/components/pepperconsumerasset.d.ts +0 -86
  819. package/dist/esm/models/components/pepperconsumerasset.d.ts.map +0 -1
  820. package/dist/esm/models/components/pepperconsumerasset.js +0 -76
  821. package/dist/esm/models/components/pepperconsumerasset.js.map +0 -1
  822. package/dist/esm/models/components/pepperconsumercustomer.d.ts +0 -110
  823. package/dist/esm/models/components/pepperconsumercustomer.d.ts.map +0 -1
  824. package/dist/esm/models/components/pepperconsumercustomer.js +0 -121
  825. package/dist/esm/models/components/pepperconsumercustomer.js.map +0 -1
  826. package/dist/esm/models/components/pepperconsumercustomerprofile.d.ts +0 -42
  827. package/dist/esm/models/components/pepperconsumercustomerprofile.d.ts.map +0 -1
  828. package/dist/esm/models/components/pepperconsumercustomerprofile.js +0 -41
  829. package/dist/esm/models/components/pepperconsumercustomerprofile.js.map +0 -1
  830. package/dist/esm/models/components/pepperconsumerentity.d.ts +0 -63
  831. package/dist/esm/models/components/pepperconsumerentity.d.ts.map +0 -1
  832. package/dist/esm/models/components/pepperconsumerentity.js +0 -71
  833. package/dist/esm/models/components/pepperconsumerentity.js.map +0 -1
  834. package/dist/esm/models/components/pepperconsumerincome.d.ts +0 -38
  835. package/dist/esm/models/components/pepperconsumerincome.d.ts.map +0 -1
  836. package/dist/esm/models/components/pepperconsumerincome.js +0 -46
  837. package/dist/esm/models/components/pepperconsumerincome.js.map +0 -1
  838. package/dist/esm/models/components/pepperconsumerliability.d.ts +0 -46
  839. package/dist/esm/models/components/pepperconsumerliability.d.ts.map +0 -1
  840. package/dist/esm/models/components/pepperconsumerliability.js +0 -54
  841. package/dist/esm/models/components/pepperconsumerliability.js.map +0 -1
  842. package/dist/esm/models/components/pepperconsumerloandetails.d.ts +0 -105
  843. package/dist/esm/models/components/pepperconsumerloandetails.d.ts.map +0 -1
  844. package/dist/esm/models/components/pepperconsumerloandetails.js +0 -95
  845. package/dist/esm/models/components/pepperconsumerloandetails.js.map +0 -1
  846. package/dist/esm/models/components/pepperconsumerrequest.d.ts +0 -88
  847. package/dist/esm/models/components/pepperconsumerrequest.d.ts.map +0 -1
  848. package/dist/esm/models/components/pepperconsumerrequest.js +0 -88
  849. package/dist/esm/models/components/pepperconsumerrequest.js.map +0 -1
  850. package/dist/esm/models/components/pepperlendercredentials.d.ts +0 -40
  851. package/dist/esm/models/components/pepperlendercredentials.d.ts.map +0 -1
  852. package/dist/esm/models/components/pepperlendercredentials.js +0 -56
  853. package/dist/esm/models/components/pepperlendercredentials.js.map +0 -1
  854. package/dist/esm/models/components/peppersuccessresource.d.ts +0 -56
  855. package/dist/esm/models/components/peppersuccessresource.d.ts.map +0 -1
  856. package/dist/esm/models/components/peppersuccessresource.js +0 -58
  857. package/dist/esm/models/components/peppersuccessresource.js.map +0 -1
  858. package/dist/esm/models/errors/createpepperconsumer.d.ts +0 -274
  859. package/dist/esm/models/errors/createpepperconsumer.d.ts.map +0 -1
  860. package/dist/esm/models/errors/createpepperconsumer.js.map +0 -1
  861. package/dist/esm/models/operations/createpepperconsumer.d.ts +0 -60
  862. package/dist/esm/models/operations/createpepperconsumer.d.ts.map +0 -1
  863. package/dist/esm/models/operations/createpepperconsumer.js +0 -55
  864. package/dist/esm/models/operations/createpepperconsumer.js.map +0 -1
  865. package/docs/sdks/financeablelenders/README.md +0 -147
  866. package/examples/README.md +0 -31
  867. package/examples/createPepperConsumer.example.ts +0 -59
  868. package/src/models/components/pepperconsumerasset.ts +0 -172
  869. package/src/models/components/pepperconsumercustomer.ts +0 -273
  870. package/src/models/components/pepperconsumercustomerprofile.ts +0 -91
  871. package/src/models/components/pepperconsumerentity.ts +0 -144
  872. package/src/models/components/pepperconsumerincome.ts +0 -90
  873. package/src/models/components/pepperconsumerliability.ts +0 -106
  874. package/src/models/components/pepperconsumerloandetails.ts +0 -214
  875. package/src/models/components/pepperconsumerrequest.ts +0 -203
  876. package/src/models/components/pepperlendercredentials.ts +0 -102
  877. package/src/models/components/peppersuccessresource.ts +0 -124
  878. package/src/models/errors/createpepperconsumer.ts +0 -514
  879. package/src/models/operations/createpepperconsumer.ts +0 -105
package/bin/mcp-server.js CHANGED
@@ -34164,14 +34164,14 @@ var ServerList, SDK_METADATA;
34164
34164
  var init_config = __esm(() => {
34165
34165
  init_url();
34166
34166
  ServerList = [
34167
- "https://aws.lenders.api.financeable.com.au/api/v2"
34167
+ "https://aws.lenders.api.financeable.com.au/api/v1"
34168
34168
  ];
34169
34169
  SDK_METADATA = {
34170
34170
  language: "typescript",
34171
34171
  openapiDocVersion: "0.1.0",
34172
- sdkVersion: "0.1.1",
34173
- genVersion: "2.723.11",
34174
- userAgent: "speakeasy-sdk/typescript 0.1.1 2.723.11 0.1.0 @financeable/lenders"
34172
+ sdkVersion: "0.3.0",
34173
+ genVersion: "2.739.1",
34174
+ userAgent: "speakeasy-sdk/typescript 0.3.0 2.739.1 0.1.0 @financeable/lenders"
34175
34175
  };
34176
34176
  });
34177
34177
 
@@ -34375,11 +34375,23 @@ function dlv(obj, key, def, p, undef) {
34375
34375
  }
34376
34376
 
34377
34377
  // src/lib/env.ts
34378
+ function isDeno() {
34379
+ if ("Deno" in globalThis) {
34380
+ return true;
34381
+ }
34382
+ return false;
34383
+ }
34378
34384
  function env() {
34379
34385
  if (envMemo) {
34380
34386
  return envMemo;
34381
34387
  }
34382
- envMemo = envSchema.parse(dlv(globalThis, "process.env") ?? dlv(globalThis, "Deno.env") ?? {});
34388
+ let envObject = {};
34389
+ if (isDeno()) {
34390
+ envObject = globalThis.Deno?.env?.toObject?.() ?? {};
34391
+ } else {
34392
+ envObject = dlv(globalThis, "process.env") ?? {};
34393
+ }
34394
+ envMemo = envSchema.parse(envObject);
34383
34395
  return envMemo;
34384
34396
  }
34385
34397
  var envSchema, envMemo = undefined;
@@ -35475,29 +35487,84 @@ var init_schemas = __esm(() => {
35475
35487
  init_sdkvalidationerror();
35476
35488
  });
35477
35489
 
35490
+ // src/models/components/addressstatus.ts
35491
+ var AddressStatus, AddressStatus$inboundSchema, AddressStatus$outboundSchema, AddressStatus$;
35492
+ var init_addressstatus = __esm(() => {
35493
+ init_esm();
35494
+ AddressStatus = {
35495
+ Current: "current",
35496
+ Previous: "previous"
35497
+ };
35498
+ AddressStatus$inboundSchema = nativeEnumType(AddressStatus);
35499
+ AddressStatus$outboundSchema = AddressStatus$inboundSchema;
35500
+ ((AddressStatus$) => {
35501
+ AddressStatus$.inboundSchema = AddressStatus$inboundSchema;
35502
+ AddressStatus$.outboundSchema = AddressStatus$outboundSchema;
35503
+ })(AddressStatus$ ||= {});
35504
+ });
35505
+
35506
+ // src/models/components/addresstype.ts
35507
+ var AddressType, AddressType$inboundSchema, AddressType$outboundSchema, AddressType$;
35508
+ var init_addresstype = __esm(() => {
35509
+ init_esm();
35510
+ AddressType = {
35511
+ RegisteredOffice: "Registered Office",
35512
+ PrincipalPlaceOfBusiness: "Principal Place of Business"
35513
+ };
35514
+ AddressType$inboundSchema = nativeEnumType(AddressType);
35515
+ AddressType$outboundSchema = AddressType$inboundSchema;
35516
+ ((AddressType$) => {
35517
+ AddressType$.inboundSchema = AddressType$inboundSchema;
35518
+ AddressType$.outboundSchema = AddressType$outboundSchema;
35519
+ })(AddressType$ ||= {});
35520
+ });
35521
+
35522
+ // src/models/components/idstate.ts
35523
+ var IDState, IDState$inboundSchema, IDState$outboundSchema, IDState$;
35524
+ var init_idstate = __esm(() => {
35525
+ init_esm();
35526
+ IDState = {
35527
+ NewSouthWales: "New South Wales",
35528
+ Victoria: "Victoria",
35529
+ Queensland: "Queensland",
35530
+ SouthAustralia: "South Australia",
35531
+ WesternAustralia: "Western Australia",
35532
+ Tasmania: "Tasmania",
35533
+ NorthernTerritory: "Northern Territory",
35534
+ AustralianCapitalTerritory: "Australian Capital Territory"
35535
+ };
35536
+ IDState$inboundSchema = nativeEnumType(IDState);
35537
+ IDState$outboundSchema = IDState$inboundSchema;
35538
+ ((IDState$) => {
35539
+ IDState$.inboundSchema = IDState$inboundSchema;
35540
+ IDState$.outboundSchema = IDState$outboundSchema;
35541
+ })(IDState$ ||= {});
35542
+ });
35543
+
35478
35544
  // src/models/components/address.ts
35479
35545
  var Address$inboundSchema, Address$outboundSchema, Address$;
35480
35546
  var init_address = __esm(() => {
35481
35547
  init_esm();
35482
35548
  init_primitives();
35549
+ init_addressstatus();
35550
+ init_addresstype();
35551
+ init_idstate();
35483
35552
  Address$inboundSchema = objectType({
35484
35553
  _id: stringType().optional(),
35485
- addressType: stringType().optional(),
35486
- fullAddress: stringType(),
35487
- addressLine2: stringType().optional(),
35488
35554
  unitNumber: stringType().optional(),
35555
+ fullAddress: stringType(),
35556
+ addressType: AddressType$inboundSchema.optional(),
35489
35557
  streetNumber: stringType().optional(),
35490
35558
  street: stringType().optional(),
35491
35559
  streetType: stringType().optional(),
35492
- streetAddress: stringType().optional(),
35493
35560
  city: stringType().optional(),
35494
- state: stringType().optional(),
35495
- status: stringType().optional(),
35496
- postCode: stringType().optional(),
35561
+ state: IDState$inboundSchema.optional(),
35497
35562
  country: stringType().optional(),
35498
- yearsAt: numberType().int(),
35499
- monthsAt: numberType().int(),
35500
- residencyStatus: stringType().optional()
35563
+ postCode: stringType().optional(),
35564
+ status: AddressStatus$inboundSchema.optional(),
35565
+ yearsAt: numberType().int().optional(),
35566
+ monthsAt: numberType().int().optional(),
35567
+ addressLine2: stringType().optional()
35501
35568
  }).transform((v2) => {
35502
35569
  return remap(v2, {
35503
35570
  _id: "id"
@@ -35505,22 +35572,20 @@ var init_address = __esm(() => {
35505
35572
  });
35506
35573
  Address$outboundSchema = objectType({
35507
35574
  id: stringType().optional(),
35508
- addressType: stringType().optional(),
35509
- fullAddress: stringType(),
35510
- addressLine2: stringType().optional(),
35511
35575
  unitNumber: stringType().optional(),
35576
+ fullAddress: stringType(),
35577
+ addressType: AddressType$outboundSchema.optional(),
35512
35578
  streetNumber: stringType().optional(),
35513
35579
  street: stringType().optional(),
35514
35580
  streetType: stringType().optional(),
35515
- streetAddress: stringType().optional(),
35516
35581
  city: stringType().optional(),
35517
- state: stringType().optional(),
35518
- status: stringType().optional(),
35519
- postCode: stringType().optional(),
35582
+ state: IDState$outboundSchema.optional(),
35520
35583
  country: stringType().optional(),
35521
- yearsAt: numberType().int(),
35522
- monthsAt: numberType().int(),
35523
- residencyStatus: stringType().optional()
35584
+ postCode: stringType().optional(),
35585
+ status: AddressStatus$outboundSchema.optional(),
35586
+ yearsAt: numberType().int().optional(),
35587
+ monthsAt: numberType().int().optional(),
35588
+ addressLine2: stringType().optional()
35524
35589
  }).transform((v2) => {
35525
35590
  return remap(v2, {
35526
35591
  id: "_id"
@@ -35638,26 +35703,58 @@ var init_apierror2 = __esm(() => {
35638
35703
  })(ApiError$ ||= {});
35639
35704
  });
35640
35705
 
35706
+ // src/models/components/customerassettypes.ts
35707
+ var CustomerAssetTypes, CustomerAssetTypes$inboundSchema, CustomerAssetTypes$outboundSchema, CustomerAssetTypes$;
35708
+ var init_customerassettypes = __esm(() => {
35709
+ init_esm();
35710
+ CustomerAssetTypes = {
35711
+ ResidentialPropertyOccupying: "Residential property (occupying)",
35712
+ CashSavings: "Cash (savings)",
35713
+ InvestmentProperty: "Investment Property",
35714
+ Superannuation: "Superannuation",
35715
+ MotorVehicle: "Motor vehicle",
35716
+ MotorBike: "Motor Bike",
35717
+ CommercialProperty: "Commercial property",
35718
+ InvestmentShares: "Investment (shares)",
35719
+ Other: "Other"
35720
+ };
35721
+ CustomerAssetTypes$inboundSchema = nativeEnumType(CustomerAssetTypes);
35722
+ CustomerAssetTypes$outboundSchema = CustomerAssetTypes$inboundSchema;
35723
+ ((CustomerAssetTypes$) => {
35724
+ CustomerAssetTypes$.inboundSchema = CustomerAssetTypes$inboundSchema;
35725
+ CustomerAssetTypes$.outboundSchema = CustomerAssetTypes$outboundSchema;
35726
+ })(CustomerAssetTypes$ ||= {});
35727
+ });
35728
+
35641
35729
  // src/models/components/applicantasset.ts
35642
35730
  var ApplicantAsset$inboundSchema, ApplicantAsset$outboundSchema, ApplicantAsset$;
35643
35731
  var init_applicantasset = __esm(() => {
35644
35732
  init_esm();
35645
35733
  init_primitives();
35734
+ init_customerassettypes();
35646
35735
  ApplicantAsset$inboundSchema = objectType({
35647
- _id: stringType(),
35648
- assetType: stringType(),
35649
- value: stringType(),
35650
- description: stringType().optional()
35736
+ _id: stringType().optional(),
35737
+ application: stringType().optional(),
35738
+ customer: stringType().optional(),
35739
+ description: stringType().optional(),
35740
+ assetType: CustomerAssetTypes$inboundSchema.optional(),
35741
+ value: stringType().optional(),
35742
+ createdAt: stringType().optional(),
35743
+ updatedAt: stringType().optional()
35651
35744
  }).transform((v2) => {
35652
35745
  return remap(v2, {
35653
35746
  _id: "id"
35654
35747
  });
35655
35748
  });
35656
35749
  ApplicantAsset$outboundSchema = objectType({
35657
- id: stringType(),
35658
- assetType: stringType(),
35659
- value: stringType(),
35660
- description: stringType().optional()
35750
+ id: stringType().optional(),
35751
+ application: stringType().optional(),
35752
+ customer: stringType().optional(),
35753
+ description: stringType().optional(),
35754
+ assetType: CustomerAssetTypes$outboundSchema.optional(),
35755
+ value: stringType().optional(),
35756
+ createdAt: stringType().optional(),
35757
+ updatedAt: stringType().optional()
35661
35758
  }).transform((v2) => {
35662
35759
  return remap(v2, {
35663
35760
  id: "_id"
@@ -35669,17 +35766,846 @@ var init_applicantasset = __esm(() => {
35669
35766
  })(ApplicantAsset$ ||= {});
35670
35767
  });
35671
35768
 
35769
+ // src/models/components/assetconditiontypes.ts
35770
+ var AssetConditionTypes, AssetConditionTypes$inboundSchema, AssetConditionTypes$outboundSchema, AssetConditionTypes$;
35771
+ var init_assetconditiontypes = __esm(() => {
35772
+ init_esm();
35773
+ AssetConditionTypes = {
35774
+ New: "New",
35775
+ Used: "Used",
35776
+ Demo: "Demo"
35777
+ };
35778
+ AssetConditionTypes$inboundSchema = nativeEnumType(AssetConditionTypes);
35779
+ AssetConditionTypes$outboundSchema = AssetConditionTypes$inboundSchema;
35780
+ ((AssetConditionTypes$) => {
35781
+ AssetConditionTypes$.inboundSchema = AssetConditionTypes$inboundSchema;
35782
+ AssetConditionTypes$.outboundSchema = AssetConditionTypes$outboundSchema;
35783
+ })(AssetConditionTypes$ ||= {});
35784
+ });
35785
+
35786
+ // src/models/components/assetspecifications.ts
35787
+ var AssetSpecifications$inboundSchema, AssetSpecifications$outboundSchema, AssetSpecifications$;
35788
+ var init_assetspecifications = __esm(() => {
35789
+ init_esm();
35790
+ init_primitives();
35791
+ AssetSpecifications$inboundSchema = objectType({
35792
+ NVIC_CUR: stringType().optional(),
35793
+ YearCreate: stringType().optional(),
35794
+ ManufacturerName: stringType().optional(),
35795
+ FamilyName: stringType().optional(),
35796
+ VariantName: stringType().optional(),
35797
+ SeriesName: stringType().optional(),
35798
+ BodyName: stringType().optional(),
35799
+ CCName: stringType().optional(),
35800
+ TransmissionName: stringType().optional(),
35801
+ NVIC_Model: stringType().optional(),
35802
+ ModelName: stringType().optional(),
35803
+ ReleaseDate: stringType().optional(),
35804
+ DiscontinueDate: stringType().optional(),
35805
+ TradeLow: stringType().optional(),
35806
+ Trade: stringType().optional(),
35807
+ Retail: stringType().optional(),
35808
+ PrivateSale: stringType().optional(),
35809
+ DealerRetail: stringType().optional(),
35810
+ DealerTrade: stringType().optional(),
35811
+ RRP: stringType().optional(),
35812
+ SegmentName: stringType().optional(),
35813
+ CountryName: stringType().optional(),
35814
+ AverageKM: stringType().optional(),
35815
+ ClassName: stringType().optional(),
35816
+ ClassCode: stringType().optional(),
35817
+ MarketingModelCode: stringType().optional(),
35818
+ MTH: stringType().optional()
35819
+ }).transform((v2) => {
35820
+ return remap(v2, {
35821
+ NVIC_CUR: "nvicCur",
35822
+ YearCreate: "yearCreate",
35823
+ ManufacturerName: "manufacturerName",
35824
+ FamilyName: "familyName",
35825
+ VariantName: "variantName",
35826
+ SeriesName: "seriesName",
35827
+ BodyName: "bodyName",
35828
+ CCName: "ccName",
35829
+ TransmissionName: "transmissionName",
35830
+ NVIC_Model: "nvicModel",
35831
+ ModelName: "modelName",
35832
+ ReleaseDate: "releaseDate",
35833
+ DiscontinueDate: "discontinueDate",
35834
+ TradeLow: "tradeLow",
35835
+ Trade: "trade",
35836
+ Retail: "retail",
35837
+ PrivateSale: "privateSale",
35838
+ DealerRetail: "dealerRetail",
35839
+ DealerTrade: "dealerTrade",
35840
+ RRP: "rrp",
35841
+ SegmentName: "segmentName",
35842
+ CountryName: "countryName",
35843
+ AverageKM: "averageKM",
35844
+ ClassName: "className",
35845
+ ClassCode: "classCode",
35846
+ MarketingModelCode: "marketingModelCode",
35847
+ MTH: "mth"
35848
+ });
35849
+ });
35850
+ AssetSpecifications$outboundSchema = objectType({
35851
+ nvicCur: stringType().optional(),
35852
+ yearCreate: stringType().optional(),
35853
+ manufacturerName: stringType().optional(),
35854
+ familyName: stringType().optional(),
35855
+ variantName: stringType().optional(),
35856
+ seriesName: stringType().optional(),
35857
+ bodyName: stringType().optional(),
35858
+ ccName: stringType().optional(),
35859
+ transmissionName: stringType().optional(),
35860
+ nvicModel: stringType().optional(),
35861
+ modelName: stringType().optional(),
35862
+ releaseDate: stringType().optional(),
35863
+ discontinueDate: stringType().optional(),
35864
+ tradeLow: stringType().optional(),
35865
+ trade: stringType().optional(),
35866
+ retail: stringType().optional(),
35867
+ privateSale: stringType().optional(),
35868
+ dealerRetail: stringType().optional(),
35869
+ dealerTrade: stringType().optional(),
35870
+ rrp: stringType().optional(),
35871
+ segmentName: stringType().optional(),
35872
+ countryName: stringType().optional(),
35873
+ averageKM: stringType().optional(),
35874
+ className: stringType().optional(),
35875
+ classCode: stringType().optional(),
35876
+ marketingModelCode: stringType().optional(),
35877
+ mth: stringType().optional()
35878
+ }).transform((v2) => {
35879
+ return remap(v2, {
35880
+ nvicCur: "NVIC_CUR",
35881
+ yearCreate: "YearCreate",
35882
+ manufacturerName: "ManufacturerName",
35883
+ familyName: "FamilyName",
35884
+ variantName: "VariantName",
35885
+ seriesName: "SeriesName",
35886
+ bodyName: "BodyName",
35887
+ ccName: "CCName",
35888
+ transmissionName: "TransmissionName",
35889
+ nvicModel: "NVIC_Model",
35890
+ modelName: "ModelName",
35891
+ releaseDate: "ReleaseDate",
35892
+ discontinueDate: "DiscontinueDate",
35893
+ tradeLow: "TradeLow",
35894
+ trade: "Trade",
35895
+ retail: "Retail",
35896
+ privateSale: "PrivateSale",
35897
+ dealerRetail: "DealerRetail",
35898
+ dealerTrade: "DealerTrade",
35899
+ rrp: "RRP",
35900
+ segmentName: "SegmentName",
35901
+ countryName: "CountryName",
35902
+ averageKM: "AverageKM",
35903
+ className: "ClassName",
35904
+ classCode: "ClassCode",
35905
+ marketingModelCode: "MarketingModelCode",
35906
+ mth: "MTH"
35907
+ });
35908
+ });
35909
+ ((AssetSpecifications$) => {
35910
+ AssetSpecifications$.inboundSchema = AssetSpecifications$inboundSchema;
35911
+ AssetSpecifications$.outboundSchema = AssetSpecifications$outboundSchema;
35912
+ })(AssetSpecifications$ ||= {});
35913
+ });
35914
+
35915
+ // src/models/components/assettypes.ts
35916
+ var AssetTypes, AssetTypes$inboundSchema, AssetTypes$outboundSchema, AssetTypes$;
35917
+ var init_assettypes = __esm(() => {
35918
+ init_esm();
35919
+ AssetTypes = {
35920
+ MotorVehicle: "Motor Vehicle",
35921
+ LuxuryVehicle: "Luxury Vehicle",
35922
+ MotorVehicleLessThan45Tonnes: "Motor Vehicle (<4.5 tonnes)",
35923
+ ClassicCar: "Classic car",
35924
+ ElectricMotorVehicleLessThan45Tonnes: "Electric Motor Vehicle (<4.5 tonnes)",
35925
+ CommercialSmallToMediumVehiclesLessThan12Tonnes: "Commercial (Small to Medium) Vehicles (<12 Tonnes)",
35926
+ CommercialHeavyVehiclesGreaterThan12Tonnes: "Commercial (Heavy) Vehicles (>12 Tonnes)",
35927
+ TrailersAndCaravans: "Trailers and Caravans",
35928
+ Caravans: "Caravans",
35929
+ TrailersTruck: "Trailers (truck)",
35930
+ TrailersOther: "Trailers (other)",
35931
+ MotorbikesATVs: "Motorbikes, ATVs",
35932
+ ATVOffRoadBike: "ATV/Off-Road Bike",
35933
+ AgriculturalAndLandscapingEquipmentWheeledOrTracked: "Agricultural & Landscaping Equipment (wheeled or tracked)",
35934
+ MiniBusesAndRouteBusesLessThan25Seats: "Mini Buses & Route Buses (<25 seats)",
35935
+ EarthMovingAndConstructionWheeledOrTracked: "Earth Moving & Construction (wheeled or tracked)",
35936
+ WarehouseEquipmentWheeledOrTracked: "Warehouse Equipment (wheeled or tracked)",
35937
+ IndustrialPlantAndPrinting: "Industrial Plant & Printing",
35938
+ ManufacturingEquipment: "Manufacturing Equipment",
35939
+ MedicalEquipment: "Medical Equipment",
35940
+ ITComputerAndAudioEquipment: "IT, Computer & Audio Equipment",
35941
+ HealthAndBeautyEquipment: "Health & Beauty Equipment",
35942
+ OfficeEquipment: "Office Equipment",
35943
+ OfficeFitout: "Office Fitout",
35944
+ RestaurantAndCateringEquipment: "Restaurant & Catering Equipment",
35945
+ OfficeFurniture: "Office Furniture",
35946
+ Other: "Other",
35947
+ Solar: "Solar",
35948
+ TraileredBoats: "Trailered boats",
35949
+ Jetskis: "Jetskis",
35950
+ RideOnMowers: "Ride on mowers",
35951
+ GolfCarts: "Golf carts"
35952
+ };
35953
+ AssetTypes$inboundSchema = nativeEnumType(AssetTypes);
35954
+ AssetTypes$outboundSchema = AssetTypes$inboundSchema;
35955
+ ((AssetTypes$) => {
35956
+ AssetTypes$.inboundSchema = AssetTypes$inboundSchema;
35957
+ AssetTypes$.outboundSchema = AssetTypes$outboundSchema;
35958
+ })(AssetTypes$ ||= {});
35959
+ });
35960
+
35961
+ // src/models/components/label.ts
35962
+ var Label$inboundSchema, Label$outboundSchema, Label$;
35963
+ var init_label = __esm(() => {
35964
+ init_esm();
35965
+ Label$inboundSchema = objectType({
35966
+ label: stringType()
35967
+ });
35968
+ Label$outboundSchema = objectType({
35969
+ label: stringType()
35970
+ });
35971
+ ((Label$) => {
35972
+ Label$.inboundSchema = Label$inboundSchema;
35973
+ Label$.outboundSchema = Label$outboundSchema;
35974
+ })(Label$ ||= {});
35975
+ });
35976
+
35977
+ // src/models/components/typeofsale.ts
35978
+ var TypeOfSale, TypeOfSale$inboundSchema, TypeOfSale$outboundSchema, TypeOfSale$;
35979
+ var init_typeofsale = __esm(() => {
35980
+ init_esm();
35981
+ TypeOfSale = {
35982
+ AuthorisedSeller: "Authorised seller",
35983
+ AuthorisedElectricVehicleSeller: "Authorised electric vehicle seller",
35984
+ PrivateSale: "Private sale",
35985
+ MidTermRefinance: "Mid-term refinance",
35986
+ BalloonResidualRefinance: "Balloon / Residual Refinance",
35987
+ SaleAndBuybackEquity: "Sale & buyback / Equity"
35988
+ };
35989
+ TypeOfSale$inboundSchema = nativeEnumType(TypeOfSale);
35990
+ TypeOfSale$outboundSchema = TypeOfSale$inboundSchema;
35991
+ ((TypeOfSale$) => {
35992
+ TypeOfSale$.inboundSchema = TypeOfSale$inboundSchema;
35993
+ TypeOfSale$.outboundSchema = TypeOfSale$outboundSchema;
35994
+ })(TypeOfSale$ ||= {});
35995
+ });
35996
+
35997
+ // src/models/components/asset.ts
35998
+ var Asset$inboundSchema, Asset$outboundSchema, Asset$;
35999
+ var init_asset = __esm(() => {
36000
+ init_esm();
36001
+ init_primitives();
36002
+ init_assetconditiontypes();
36003
+ init_assetspecifications();
36004
+ init_assettypes();
36005
+ init_idstate();
36006
+ init_label();
36007
+ init_typeofsale();
36008
+ Asset$inboundSchema = objectType({
36009
+ _id: stringType().optional(),
36010
+ ageOfAsset: stringType().optional(),
36011
+ ageOfAssetAtEnd: stringType().optional(),
36012
+ assetValue: numberType().optional(),
36013
+ assetType: AssetTypes$inboundSchema.optional(),
36014
+ assetTypeAtEnd: AssetTypes$inboundSchema.optional(),
36015
+ condition: AssetConditionTypes$inboundSchema.optional(),
36016
+ glassesMake: Label$inboundSchema.optional(),
36017
+ glassesModel: Label$inboundSchema.optional(),
36018
+ glassesNVIC: anyType().optional(),
36019
+ glassesVariant: Label$inboundSchema.optional(),
36020
+ glassesEngineNumber: Label$inboundSchema.optional(),
36021
+ glassesComplianceDate: Label$inboundSchema.optional(),
36022
+ glassesColour: Label$inboundSchema.optional(),
36023
+ specifications: AssetSpecifications$inboundSchema.optional(),
36024
+ typeOfSale: TypeOfSale$inboundSchema.optional(),
36025
+ registrationState: IDState$inboundSchema.optional(),
36026
+ registrationNumber: stringType().optional(),
36027
+ vin: stringType().optional(),
36028
+ make: stringType().optional(),
36029
+ model: stringType().optional(),
36030
+ supplierName: stringType().optional(),
36031
+ supplierABN: stringType().optional(),
36032
+ supplierAddress: stringType().optional(),
36033
+ supplierPhone: stringType().optional(),
36034
+ supplierEmail: stringType().optional(),
36035
+ supplierContactName: stringType().optional(),
36036
+ netAssetValue: numberType().optional(),
36037
+ additionalFees: numberType().optional(),
36038
+ additionalTaxes: numberType().optional(),
36039
+ isManualAssets: booleanType().optional(),
36040
+ isNVICAbsence: booleanType().optional(),
36041
+ complianceDate: Label$inboundSchema.optional(),
36042
+ blueflagPPSR: anyType().optional(),
36043
+ documents: arrayType(anyType()).optional(),
36044
+ application: stringType().optional()
36045
+ }).transform((v2) => {
36046
+ return remap(v2, {
36047
+ _id: "id"
36048
+ });
36049
+ });
36050
+ Asset$outboundSchema = objectType({
36051
+ id: stringType().optional(),
36052
+ ageOfAsset: stringType().optional(),
36053
+ ageOfAssetAtEnd: stringType().optional(),
36054
+ assetValue: numberType().optional(),
36055
+ assetType: AssetTypes$outboundSchema.optional(),
36056
+ assetTypeAtEnd: AssetTypes$outboundSchema.optional(),
36057
+ condition: AssetConditionTypes$outboundSchema.optional(),
36058
+ glassesMake: Label$outboundSchema.optional(),
36059
+ glassesModel: Label$outboundSchema.optional(),
36060
+ glassesNVIC: anyType().optional(),
36061
+ glassesVariant: Label$outboundSchema.optional(),
36062
+ glassesEngineNumber: Label$outboundSchema.optional(),
36063
+ glassesComplianceDate: Label$outboundSchema.optional(),
36064
+ glassesColour: Label$outboundSchema.optional(),
36065
+ specifications: AssetSpecifications$outboundSchema.optional(),
36066
+ typeOfSale: TypeOfSale$outboundSchema.optional(),
36067
+ registrationState: IDState$outboundSchema.optional(),
36068
+ registrationNumber: stringType().optional(),
36069
+ vin: stringType().optional(),
36070
+ make: stringType().optional(),
36071
+ model: stringType().optional(),
36072
+ supplierName: stringType().optional(),
36073
+ supplierABN: stringType().optional(),
36074
+ supplierAddress: stringType().optional(),
36075
+ supplierPhone: stringType().optional(),
36076
+ supplierEmail: stringType().optional(),
36077
+ supplierContactName: stringType().optional(),
36078
+ netAssetValue: numberType().optional(),
36079
+ additionalFees: numberType().optional(),
36080
+ additionalTaxes: numberType().optional(),
36081
+ isManualAssets: booleanType().optional(),
36082
+ isNVICAbsence: booleanType().optional(),
36083
+ complianceDate: Label$outboundSchema.optional(),
36084
+ blueflagPPSR: anyType().optional(),
36085
+ documents: arrayType(anyType()).optional(),
36086
+ application: stringType().optional()
36087
+ }).transform((v2) => {
36088
+ return remap(v2, {
36089
+ id: "_id"
36090
+ });
36091
+ });
36092
+ ((Asset$) => {
36093
+ Asset$.inboundSchema = Asset$inboundSchema;
36094
+ Asset$.outboundSchema = Asset$outboundSchema;
36095
+ })(Asset$ ||= {});
36096
+ });
36097
+
36098
+ // src/models/components/creditprofile.ts
36099
+ var CreditProfile$inboundSchema, CreditProfile$outboundSchema, CreditProfile$;
36100
+ var init_creditprofile = __esm(() => {
36101
+ init_esm();
36102
+ CreditProfile$inboundSchema = objectType({
36103
+ score: numberType().int().optional()
36104
+ });
36105
+ CreditProfile$outboundSchema = objectType({
36106
+ score: numberType().int().optional()
36107
+ });
36108
+ ((CreditProfile$) => {
36109
+ CreditProfile$.inboundSchema = CreditProfile$inboundSchema;
36110
+ CreditProfile$.outboundSchema = CreditProfile$outboundSchema;
36111
+ })(CreditProfile$ ||= {});
36112
+ });
36113
+
36114
+ // src/models/components/typeofchangeexpected.ts
36115
+ var TypeOfChangeExpected, TypeOfChangeExpected$inboundSchema, TypeOfChangeExpected$outboundSchema, TypeOfChangeExpected$;
36116
+ var init_typeofchangeexpected = __esm(() => {
36117
+ init_esm();
36118
+ TypeOfChangeExpected = {
36119
+ EndOfEmploymentContractLossOfEmployment: "End of employment contract/ loss of employment",
36120
+ LeavingEmployment: "Leaving employment",
36121
+ IncreasedDebtRepaymentForANewExistingLoan: "Increased debt repayment for a new/ existing loan",
36122
+ LargeExpenditure: "Large expenditure",
36123
+ MedicalTreatmentIllness: "Medical treatment/ illness",
36124
+ ExtendedUnpaidLeaveEGStudyOrParentalLeave: "Extended unpaid leave (e.g. study or parental leave)",
36125
+ ChangeToFamilySituation: "Change to family situation",
36126
+ Retirement: "Retirement",
36127
+ BuyingAHouse: "Buying a house",
36128
+ No: "No",
36129
+ Other: "Other"
36130
+ };
36131
+ TypeOfChangeExpected$inboundSchema = nativeEnumType(TypeOfChangeExpected);
36132
+ TypeOfChangeExpected$outboundSchema = TypeOfChangeExpected$inboundSchema;
36133
+ ((TypeOfChangeExpected$) => {
36134
+ TypeOfChangeExpected$.inboundSchema = TypeOfChangeExpected$inboundSchema;
36135
+ TypeOfChangeExpected$.outboundSchema = TypeOfChangeExpected$outboundSchema;
36136
+ })(TypeOfChangeExpected$ ||= {});
36137
+ });
36138
+
36139
+ // src/models/components/whatareyoulookingforinyourloan.ts
36140
+ var WhatAreYouLookingForInYourLoan, WhatAreYouLookingForInYourLoan$inboundSchema, WhatAreYouLookingForInYourLoan$outboundSchema, WhatAreYouLookingForInYourLoan$;
36141
+ var init_whatareyoulookingforinyourloan = __esm(() => {
36142
+ init_esm();
36143
+ WhatAreYouLookingForInYourLoan = {
36144
+ CompetitiveInterestRate: "Competitive Interest Rate",
36145
+ Service: "Service",
36146
+ BrokerRecommendation: "Broker Recommendation",
36147
+ ICanMakeAdditionalRepaymentsAtNoCost: "I can make additional repayments at no cost",
36148
+ ICanRepayTheLoanEarlyFeesAndChargesApply: "I can repay the loan early (fees & charges apply)",
36149
+ ABalloonRepayment: "A balloon repayment"
36150
+ };
36151
+ WhatAreYouLookingForInYourLoan$inboundSchema = nativeEnumType(WhatAreYouLookingForInYourLoan);
36152
+ WhatAreYouLookingForInYourLoan$outboundSchema = WhatAreYouLookingForInYourLoan$inboundSchema;
36153
+ ((WhatAreYouLookingForInYourLoan$) => {
36154
+ WhatAreYouLookingForInYourLoan$.inboundSchema = WhatAreYouLookingForInYourLoan$inboundSchema;
36155
+ WhatAreYouLookingForInYourLoan$.outboundSchema = WhatAreYouLookingForInYourLoan$outboundSchema;
36156
+ })(WhatAreYouLookingForInYourLoan$ ||= {});
36157
+ });
36158
+
36159
+ // src/models/components/whatisthepurposeofthisapplication.ts
36160
+ var WhatIsThePurposeOfThisApplication, WhatIsThePurposeOfThisApplication$inboundSchema, WhatIsThePurposeOfThisApplication$outboundSchema, WhatIsThePurposeOfThisApplication$;
36161
+ var init_whatisthepurposeofthisapplication = __esm(() => {
36162
+ init_esm();
36163
+ WhatIsThePurposeOfThisApplication = {
36164
+ PurchaseTheAsset: "Purchase the asset",
36165
+ PurchaseTheAssetPlusFinanceInsurances: "Purchase the asset plus finance insurances",
36166
+ NA: "n/a",
36167
+ RefinanceLoanOnTheAsset: "Refinance loan on the asset",
36168
+ RefinanceLoanOnTheAssetPlusFinanceInsurances: "Refinance loan on the asset plus finance insurances"
36169
+ };
36170
+ WhatIsThePurposeOfThisApplication$inboundSchema = nativeEnumType(WhatIsThePurposeOfThisApplication);
36171
+ WhatIsThePurposeOfThisApplication$outboundSchema = WhatIsThePurposeOfThisApplication$inboundSchema;
36172
+ ((WhatIsThePurposeOfThisApplication$) => {
36173
+ WhatIsThePurposeOfThisApplication$.inboundSchema = WhatIsThePurposeOfThisApplication$inboundSchema;
36174
+ WhatIsThePurposeOfThisApplication$.outboundSchema = WhatIsThePurposeOfThisApplication$outboundSchema;
36175
+ })(WhatIsThePurposeOfThisApplication$ ||= {});
36176
+ });
36177
+
36178
+ // src/models/components/whattodowithballoonpaymentattheendoftheloanterm.ts
36179
+ var WhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm, WhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$inboundSchema, WhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$outboundSchema, WhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$;
36180
+ var init_whattodowithballoonpaymentattheendoftheloanterm = __esm(() => {
36181
+ init_esm();
36182
+ WhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm = {
36183
+ Payout: "Payout",
36184
+ RefinanceTheLoanPayout: "Refinance the loanPayout",
36185
+ SellTheAsset: "Sell the asset",
36186
+ TradeInForANewVehicle: "Trade in for a new vehicle"
36187
+ };
36188
+ WhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$inboundSchema = nativeEnumType(WhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm);
36189
+ WhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$outboundSchema = WhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$inboundSchema;
36190
+ ((WhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$) => {
36191
+ WhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$.inboundSchema = WhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$inboundSchema;
36192
+ WhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$.outboundSchema = WhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$outboundSchema;
36193
+ })(WhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$ ||= {});
36194
+ });
36195
+
36196
+ // src/models/components/whydoesthisloantermsuityourrequirements.ts
36197
+ var WhyDoesThisLoanTermSuitYourRequirements, WhyDoesThisLoanTermSuitYourRequirements$inboundSchema, WhyDoesThisLoanTermSuitYourRequirements$outboundSchema, WhyDoesThisLoanTermSuitYourRequirements$;
36198
+ var init_whydoesthisloantermsuityourrequirements = __esm(() => {
36199
+ init_esm();
36200
+ WhyDoesThisLoanTermSuitYourRequirements = {
36201
+ WantTheMaximumAmountOfTimeWithTheMinimumRepayment: "Want the maximum amount of time with the minimum repayment",
36202
+ WantToBeAbleToPayOffTheLoanOverTheSelectedTermAsItSuitsMyBudget: "Want to be able to pay off the loan over the selected term as it suits my budget",
36203
+ IWantToPayOffTheLoanAsQuicklyAsPossibleAndAcknowledgeThatFeesAndChargesApplyForEarlyPayoutOfTheLoan: "I want to pay off the loan as quickly as possible (and acknowledge that fees and charges apply for early payout of the loan)",
36204
+ IWillBeLookingToSellTheCarTradeInAtTheEndOfTheLoanTerm: "I will be looking to sell the car/ trade in at the end of the loan term",
36205
+ Other: "Other"
36206
+ };
36207
+ WhyDoesThisLoanTermSuitYourRequirements$inboundSchema = nativeEnumType(WhyDoesThisLoanTermSuitYourRequirements);
36208
+ WhyDoesThisLoanTermSuitYourRequirements$outboundSchema = WhyDoesThisLoanTermSuitYourRequirements$inboundSchema;
36209
+ ((WhyDoesThisLoanTermSuitYourRequirements$) => {
36210
+ WhyDoesThisLoanTermSuitYourRequirements$.inboundSchema = WhyDoesThisLoanTermSuitYourRequirements$inboundSchema;
36211
+ WhyDoesThisLoanTermSuitYourRequirements$.outboundSchema = WhyDoesThisLoanTermSuitYourRequirements$outboundSchema;
36212
+ })(WhyDoesThisLoanTermSuitYourRequirements$ ||= {});
36213
+ });
36214
+
36215
+ // src/models/components/yesorno.ts
36216
+ var YesOrNo, YesOrNo$inboundSchema, YesOrNo$outboundSchema, YesOrNo$;
36217
+ var init_yesorno = __esm(() => {
36218
+ init_esm();
36219
+ YesOrNo = {
36220
+ Yes: "Yes",
36221
+ No: "No"
36222
+ };
36223
+ YesOrNo$inboundSchema = nativeEnumType(YesOrNo);
36224
+ YesOrNo$outboundSchema = YesOrNo$inboundSchema;
36225
+ ((YesOrNo$) => {
36226
+ YesOrNo$.inboundSchema = YesOrNo$inboundSchema;
36227
+ YesOrNo$.outboundSchema = YesOrNo$outboundSchema;
36228
+ })(YesOrNo$ ||= {});
36229
+ });
36230
+
36231
+ // src/models/components/customerdisclaimer.ts
36232
+ var AnyForeseeableChangesImpactingLoanRepayment$inboundSchema, AnyForeseeableChangesImpactingLoanRepayment$outboundSchema, AnyForeseeableChangesImpactingLoanRepayment$, BalloonPaymentAtTheEndOfTheLoan$inboundSchema, BalloonPaymentAtTheEndOfTheLoan$outboundSchema, BalloonPaymentAtTheEndOfTheLoan$, IncreaseInLoanAmountForFinancingCostOfInsurance$inboundSchema, IncreaseInLoanAmountForFinancingCostOfInsurance$outboundSchema, IncreaseInLoanAmountForFinancingCostOfInsurance$, CustomerDisclaimerWhatAreYouLookingForInYourLoan$inboundSchema, CustomerDisclaimerWhatAreYouLookingForInYourLoan$outboundSchema, CustomerDisclaimerWhatAreYouLookingForInYourLoan$, CustomerDisclaimerWhatIsThePurposeOfThisApplication$inboundSchema, CustomerDisclaimerWhatIsThePurposeOfThisApplication$outboundSchema, CustomerDisclaimerWhatIsThePurposeOfThisApplication$, CustomerDisclaimerWhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$inboundSchema, CustomerDisclaimerWhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$outboundSchema, CustomerDisclaimerWhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$, CustomerDisclaimerWhyDoesThisLoanTermSuitYourRequirements$inboundSchema, CustomerDisclaimerWhyDoesThisLoanTermSuitYourRequirements$outboundSchema, CustomerDisclaimerWhyDoesThisLoanTermSuitYourRequirements$, CustomerDisclaimer$inboundSchema, CustomerDisclaimer$outboundSchema, CustomerDisclaimer$;
36233
+ var init_customerdisclaimer = __esm(() => {
36234
+ init_esm();
36235
+ init_primitives();
36236
+ init_typeofchangeexpected();
36237
+ init_whatareyoulookingforinyourloan();
36238
+ init_whatisthepurposeofthisapplication();
36239
+ init_whattodowithballoonpaymentattheendoftheloanterm();
36240
+ init_whydoesthisloantermsuityourrequirements();
36241
+ init_yesorno();
36242
+ AnyForeseeableChangesImpactingLoanRepayment$inboundSchema = unionType([TypeOfChangeExpected$inboundSchema, stringType()]);
36243
+ AnyForeseeableChangesImpactingLoanRepayment$outboundSchema = unionType([TypeOfChangeExpected$outboundSchema, stringType()]);
36244
+ ((AnyForeseeableChangesImpactingLoanRepayment$) => {
36245
+ AnyForeseeableChangesImpactingLoanRepayment$.inboundSchema = AnyForeseeableChangesImpactingLoanRepayment$inboundSchema;
36246
+ AnyForeseeableChangesImpactingLoanRepayment$.outboundSchema = AnyForeseeableChangesImpactingLoanRepayment$outboundSchema;
36247
+ })(AnyForeseeableChangesImpactingLoanRepayment$ ||= {});
36248
+ BalloonPaymentAtTheEndOfTheLoan$inboundSchema = unionType([YesOrNo$inboundSchema, stringType()]);
36249
+ BalloonPaymentAtTheEndOfTheLoan$outboundSchema = unionType([YesOrNo$outboundSchema, stringType()]);
36250
+ ((BalloonPaymentAtTheEndOfTheLoan$) => {
36251
+ BalloonPaymentAtTheEndOfTheLoan$.inboundSchema = BalloonPaymentAtTheEndOfTheLoan$inboundSchema;
36252
+ BalloonPaymentAtTheEndOfTheLoan$.outboundSchema = BalloonPaymentAtTheEndOfTheLoan$outboundSchema;
36253
+ })(BalloonPaymentAtTheEndOfTheLoan$ ||= {});
36254
+ IncreaseInLoanAmountForFinancingCostOfInsurance$inboundSchema = unionType([YesOrNo$inboundSchema, stringType()]);
36255
+ IncreaseInLoanAmountForFinancingCostOfInsurance$outboundSchema = unionType([YesOrNo$outboundSchema, stringType()]);
36256
+ ((IncreaseInLoanAmountForFinancingCostOfInsurance$) => {
36257
+ IncreaseInLoanAmountForFinancingCostOfInsurance$.inboundSchema = IncreaseInLoanAmountForFinancingCostOfInsurance$inboundSchema;
36258
+ IncreaseInLoanAmountForFinancingCostOfInsurance$.outboundSchema = IncreaseInLoanAmountForFinancingCostOfInsurance$outboundSchema;
36259
+ })(IncreaseInLoanAmountForFinancingCostOfInsurance$ ||= {});
36260
+ CustomerDisclaimerWhatAreYouLookingForInYourLoan$inboundSchema = unionType([WhatAreYouLookingForInYourLoan$inboundSchema, stringType()]);
36261
+ CustomerDisclaimerWhatAreYouLookingForInYourLoan$outboundSchema = unionType([WhatAreYouLookingForInYourLoan$outboundSchema, stringType()]);
36262
+ ((CustomerDisclaimerWhatAreYouLookingForInYourLoan$) => {
36263
+ CustomerDisclaimerWhatAreYouLookingForInYourLoan$.inboundSchema = CustomerDisclaimerWhatAreYouLookingForInYourLoan$inboundSchema;
36264
+ CustomerDisclaimerWhatAreYouLookingForInYourLoan$.outboundSchema = CustomerDisclaimerWhatAreYouLookingForInYourLoan$outboundSchema;
36265
+ })(CustomerDisclaimerWhatAreYouLookingForInYourLoan$ ||= {});
36266
+ CustomerDisclaimerWhatIsThePurposeOfThisApplication$inboundSchema = unionType([WhatIsThePurposeOfThisApplication$inboundSchema, stringType()]);
36267
+ CustomerDisclaimerWhatIsThePurposeOfThisApplication$outboundSchema = unionType([WhatIsThePurposeOfThisApplication$outboundSchema, stringType()]);
36268
+ ((CustomerDisclaimerWhatIsThePurposeOfThisApplication$) => {
36269
+ CustomerDisclaimerWhatIsThePurposeOfThisApplication$.inboundSchema = CustomerDisclaimerWhatIsThePurposeOfThisApplication$inboundSchema;
36270
+ CustomerDisclaimerWhatIsThePurposeOfThisApplication$.outboundSchema = CustomerDisclaimerWhatIsThePurposeOfThisApplication$outboundSchema;
36271
+ })(CustomerDisclaimerWhatIsThePurposeOfThisApplication$ ||= {});
36272
+ CustomerDisclaimerWhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$inboundSchema = unionType([
36273
+ WhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$inboundSchema,
36274
+ stringType()
36275
+ ]);
36276
+ CustomerDisclaimerWhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$outboundSchema = unionType([
36277
+ WhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$outboundSchema,
36278
+ stringType()
36279
+ ]);
36280
+ ((CustomerDisclaimerWhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$) => {
36281
+ CustomerDisclaimerWhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$.inboundSchema = CustomerDisclaimerWhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$inboundSchema;
36282
+ CustomerDisclaimerWhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$.outboundSchema = CustomerDisclaimerWhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$outboundSchema;
36283
+ })(CustomerDisclaimerWhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$ ||= {});
36284
+ CustomerDisclaimerWhyDoesThisLoanTermSuitYourRequirements$inboundSchema = unionType([
36285
+ WhyDoesThisLoanTermSuitYourRequirements$inboundSchema,
36286
+ stringType()
36287
+ ]);
36288
+ CustomerDisclaimerWhyDoesThisLoanTermSuitYourRequirements$outboundSchema = unionType([
36289
+ WhyDoesThisLoanTermSuitYourRequirements$outboundSchema,
36290
+ stringType()
36291
+ ]);
36292
+ ((CustomerDisclaimerWhyDoesThisLoanTermSuitYourRequirements$) => {
36293
+ CustomerDisclaimerWhyDoesThisLoanTermSuitYourRequirements$.inboundSchema = CustomerDisclaimerWhyDoesThisLoanTermSuitYourRequirements$inboundSchema;
36294
+ CustomerDisclaimerWhyDoesThisLoanTermSuitYourRequirements$.outboundSchema = CustomerDisclaimerWhyDoesThisLoanTermSuitYourRequirements$outboundSchema;
36295
+ })(CustomerDisclaimerWhyDoesThisLoanTermSuitYourRequirements$ ||= {});
36296
+ CustomerDisclaimer$inboundSchema = objectType({
36297
+ _id: stringType().optional(),
36298
+ application: stringType().optional(),
36299
+ customer: stringType().optional(),
36300
+ disclaimer: stringType().optional(),
36301
+ anyForeseeableChangesImpactingLoanRepayment: unionType([
36302
+ TypeOfChangeExpected$inboundSchema,
36303
+ stringType()
36304
+ ]).optional(),
36305
+ balloonPaymentAtTheEndOfTheLoan: unionType([YesOrNo$inboundSchema, stringType()]).optional(),
36306
+ howApplicantIntendToDoLoanRepaymentAfterChange: stringType().optional(),
36307
+ increaseInLoanAmountForFinancingCostOfInsurance: unionType([
36308
+ YesOrNo$inboundSchema,
36309
+ stringType()
36310
+ ]).optional(),
36311
+ whatAreYouLookingForInYourLoan: unionType([
36312
+ WhatAreYouLookingForInYourLoan$inboundSchema,
36313
+ stringType()
36314
+ ]).optional(),
36315
+ whatIsThePurposeOfThisApplication: unionType([
36316
+ WhatIsThePurposeOfThisApplication$inboundSchema,
36317
+ stringType()
36318
+ ]).optional(),
36319
+ whatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm: unionType([
36320
+ WhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$inboundSchema,
36321
+ stringType()
36322
+ ]).optional(),
36323
+ whyDoesThisLoanTermSuitYourRequirements: unionType([
36324
+ WhyDoesThisLoanTermSuitYourRequirements$inboundSchema,
36325
+ stringType()
36326
+ ]).optional()
36327
+ }).transform((v2) => {
36328
+ return remap(v2, {
36329
+ _id: "id"
36330
+ });
36331
+ });
36332
+ CustomerDisclaimer$outboundSchema = objectType({
36333
+ id: stringType().optional(),
36334
+ application: stringType().optional(),
36335
+ customer: stringType().optional(),
36336
+ disclaimer: stringType().optional(),
36337
+ anyForeseeableChangesImpactingLoanRepayment: unionType([
36338
+ TypeOfChangeExpected$outboundSchema,
36339
+ stringType()
36340
+ ]).optional(),
36341
+ balloonPaymentAtTheEndOfTheLoan: unionType([YesOrNo$outboundSchema, stringType()]).optional(),
36342
+ howApplicantIntendToDoLoanRepaymentAfterChange: stringType().optional(),
36343
+ increaseInLoanAmountForFinancingCostOfInsurance: unionType([
36344
+ YesOrNo$outboundSchema,
36345
+ stringType()
36346
+ ]).optional(),
36347
+ whatAreYouLookingForInYourLoan: unionType([
36348
+ WhatAreYouLookingForInYourLoan$outboundSchema,
36349
+ stringType()
36350
+ ]).optional(),
36351
+ whatIsThePurposeOfThisApplication: unionType([
36352
+ WhatIsThePurposeOfThisApplication$outboundSchema,
36353
+ stringType()
36354
+ ]).optional(),
36355
+ whatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm: unionType([
36356
+ WhatToDoWithBalloonPaymentAtTheEndOfTheLoanTerm$outboundSchema,
36357
+ stringType()
36358
+ ]).optional(),
36359
+ whyDoesThisLoanTermSuitYourRequirements: unionType([
36360
+ WhyDoesThisLoanTermSuitYourRequirements$outboundSchema,
36361
+ stringType()
36362
+ ]).optional()
36363
+ }).transform((v2) => {
36364
+ return remap(v2, {
36365
+ id: "_id"
36366
+ });
36367
+ });
36368
+ ((CustomerDisclaimer$) => {
36369
+ CustomerDisclaimer$.inboundSchema = CustomerDisclaimer$inboundSchema;
36370
+ CustomerDisclaimer$.outboundSchema = CustomerDisclaimer$outboundSchema;
36371
+ })(CustomerDisclaimer$ ||= {});
36372
+ });
36373
+
36374
+ // src/models/components/livingarrangements.ts
36375
+ var LivingArrangements, LivingArrangements$inboundSchema, LivingArrangements$outboundSchema, LivingArrangements$;
36376
+ var init_livingarrangements = __esm(() => {
36377
+ init_esm();
36378
+ LivingArrangements = {
36379
+ PropertyOwner: "Property owner",
36380
+ Renting: "Renting",
36381
+ Boarding: "Boarding",
36382
+ LivingWParents: "Living w/ parents"
36383
+ };
36384
+ LivingArrangements$inboundSchema = nativeEnumType(LivingArrangements);
36385
+ LivingArrangements$outboundSchema = LivingArrangements$inboundSchema;
36386
+ ((LivingArrangements$) => {
36387
+ LivingArrangements$.inboundSchema = LivingArrangements$inboundSchema;
36388
+ LivingArrangements$.outboundSchema = LivingArrangements$outboundSchema;
36389
+ })(LivingArrangements$ ||= {});
36390
+ });
36391
+
36392
+ // src/models/components/maritalstatus.ts
36393
+ var MaritalStatus, MaritalStatus$inboundSchema, MaritalStatus$outboundSchema, MaritalStatus$;
36394
+ var init_maritalstatus = __esm(() => {
36395
+ init_esm();
36396
+ MaritalStatus = {
36397
+ MarriedDefacto: "Married/Defacto",
36398
+ SingleDivorcedWidowed: "Single/Divorced/Widowed"
36399
+ };
36400
+ MaritalStatus$inboundSchema = nativeEnumType(MaritalStatus);
36401
+ MaritalStatus$outboundSchema = MaritalStatus$inboundSchema;
36402
+ ((MaritalStatus$) => {
36403
+ MaritalStatus$.inboundSchema = MaritalStatus$inboundSchema;
36404
+ MaritalStatus$.outboundSchema = MaritalStatus$outboundSchema;
36405
+ })(MaritalStatus$ ||= {});
36406
+ });
36407
+
36408
+ // src/models/components/residentialstatus.ts
36409
+ var ResidentialStatus, ResidentialStatus$inboundSchema, ResidentialStatus$outboundSchema, ResidentialStatus$;
36410
+ var init_residentialstatus = __esm(() => {
36411
+ init_esm();
36412
+ ResidentialStatus = {
36413
+ AustralianCitizen: "Australian Citizen",
36414
+ PermanentResident: "Permanent Resident",
36415
+ NewZealandCitizen: "New Zealand Citizen",
36416
+ WorkingVisa: "Working Visa",
36417
+ StudentVisa: "Student Visa"
36418
+ };
36419
+ ResidentialStatus$inboundSchema = nativeEnumType(ResidentialStatus);
36420
+ ResidentialStatus$outboundSchema = ResidentialStatus$inboundSchema;
36421
+ ((ResidentialStatus$) => {
36422
+ ResidentialStatus$.inboundSchema = ResidentialStatus$inboundSchema;
36423
+ ResidentialStatus$.outboundSchema = ResidentialStatus$outboundSchema;
36424
+ })(ResidentialStatus$ ||= {});
36425
+ });
36426
+
36427
+ // src/models/components/customerprofile.ts
36428
+ var CustomerProfile$inboundSchema, CustomerProfile$outboundSchema, CustomerProfile$;
36429
+ var init_customerprofile = __esm(() => {
36430
+ init_esm();
36431
+ init_primitives();
36432
+ init_livingarrangements();
36433
+ init_maritalstatus();
36434
+ init_residentialstatus();
36435
+ CustomerProfile$inboundSchema = objectType({
36436
+ _id: stringType().optional(),
36437
+ numberOfDependants: numberType().int().optional(),
36438
+ residencyStatus: ResidentialStatus$inboundSchema.optional(),
36439
+ maritalStatus: MaritalStatus$inboundSchema.optional(),
36440
+ livingArrangements: LivingArrangements$inboundSchema.optional(),
36441
+ contactNumber: stringType().optional(),
36442
+ shareOfExpenses: numberType().optional(),
36443
+ rentAmount: stringType().optional(),
36444
+ landlordName: stringType().optional()
36445
+ }).transform((v2) => {
36446
+ return remap(v2, {
36447
+ _id: "id"
36448
+ });
36449
+ });
36450
+ CustomerProfile$outboundSchema = objectType({
36451
+ id: stringType().optional(),
36452
+ numberOfDependants: numberType().int().optional(),
36453
+ residencyStatus: ResidentialStatus$outboundSchema.optional(),
36454
+ maritalStatus: MaritalStatus$outboundSchema.optional(),
36455
+ livingArrangements: LivingArrangements$outboundSchema.optional(),
36456
+ contactNumber: stringType().optional(),
36457
+ shareOfExpenses: numberType().optional(),
36458
+ rentAmount: stringType().optional(),
36459
+ landlordName: stringType().optional()
36460
+ }).transform((v2) => {
36461
+ return remap(v2, {
36462
+ id: "_id"
36463
+ });
36464
+ });
36465
+ ((CustomerProfile$) => {
36466
+ CustomerProfile$.inboundSchema = CustomerProfile$inboundSchema;
36467
+ CustomerProfile$.outboundSchema = CustomerProfile$outboundSchema;
36468
+ })(CustomerProfile$ ||= {});
36469
+ });
36470
+
36471
+ // src/models/components/customertitle.ts
36472
+ var CustomerTitle, CustomerTitle$inboundSchema, CustomerTitle$outboundSchema, CustomerTitle$;
36473
+ var init_customertitle = __esm(() => {
36474
+ init_esm();
36475
+ CustomerTitle = {
36476
+ Mr: "Mr",
36477
+ Mrs: "Mrs",
36478
+ Ms: "Ms",
36479
+ Miss: "Miss"
36480
+ };
36481
+ CustomerTitle$inboundSchema = nativeEnumType(CustomerTitle);
36482
+ CustomerTitle$outboundSchema = CustomerTitle$inboundSchema;
36483
+ ((CustomerTitle$) => {
36484
+ CustomerTitle$.inboundSchema = CustomerTitle$inboundSchema;
36485
+ CustomerTitle$.outboundSchema = CustomerTitle$outboundSchema;
36486
+ })(CustomerTitle$ ||= {});
36487
+ });
36488
+
36489
+ // src/models/components/documenttypes.ts
36490
+ var DocumentTypes, DocumentTypes$inboundSchema, DocumentTypes$outboundSchema, DocumentTypes$;
36491
+ var init_documenttypes = __esm(() => {
36492
+ init_esm();
36493
+ DocumentTypes = {
36494
+ PrivacyAgreement: "Privacy agreement",
36495
+ PrivacyFile: "Privacy file",
36496
+ ProposalDisclosureStatement: "Proposal Disclosure Statement",
36497
+ PPSRCertificate: "PPSR Certificate",
36498
+ BankStatements: "Bank statements",
36499
+ Consent: "consent",
36500
+ CommercialCreditFile: "Commercial Credit File",
36501
+ ASICFile: "ASIC File",
36502
+ IDDocument: "ID document",
36503
+ DriverLicenceFront: "Driver licence (front)",
36504
+ DriverLicenceBack: "Driver licence (back)",
36505
+ CustomerPhoto: "Customer photo",
36506
+ VerificationCertificate: "Verification certificate",
36507
+ CreditFile: "Credit file",
36508
+ NoRecordCreditFile: "No record credit file",
36509
+ Application: "Application",
36510
+ CreditScores: "Credit scores",
36511
+ CreditFileBinary: "Credit file binary",
36512
+ CustomerUpload: "Customer Upload"
36513
+ };
36514
+ DocumentTypes$inboundSchema = nativeEnumType(DocumentTypes);
36515
+ DocumentTypes$outboundSchema = DocumentTypes$inboundSchema;
36516
+ ((DocumentTypes$) => {
36517
+ DocumentTypes$.inboundSchema = DocumentTypes$inboundSchema;
36518
+ DocumentTypes$.outboundSchema = DocumentTypes$outboundSchema;
36519
+ })(DocumentTypes$ ||= {});
36520
+ });
36521
+
36522
+ // src/models/components/document.ts
36523
+ var Document$inboundSchema, Document$outboundSchema, Document$;
36524
+ var init_document = __esm(() => {
36525
+ init_esm();
36526
+ init_primitives();
36527
+ init_documenttypes();
36528
+ Document$inboundSchema = objectType({
36529
+ _id: stringType().optional(),
36530
+ name: stringType().optional(),
36531
+ fileName: stringType().optional(),
36532
+ documentType: DocumentTypes$inboundSchema.optional(),
36533
+ details: anyType().optional(),
36534
+ ext: stringType().optional(),
36535
+ customer: stringType().optional(),
36536
+ application: stringType().optional(),
36537
+ createdAt: stringType().optional(),
36538
+ updatedAt: stringType().optional(),
36539
+ url: stringType().optional()
36540
+ }).transform((v2) => {
36541
+ return remap(v2, {
36542
+ _id: "id"
36543
+ });
36544
+ });
36545
+ Document$outboundSchema = objectType({
36546
+ id: stringType().optional(),
36547
+ name: stringType().optional(),
36548
+ fileName: stringType().optional(),
36549
+ documentType: DocumentTypes$outboundSchema.optional(),
36550
+ details: anyType().optional(),
36551
+ ext: stringType().optional(),
36552
+ customer: stringType().optional(),
36553
+ application: stringType().optional(),
36554
+ createdAt: stringType().optional(),
36555
+ updatedAt: stringType().optional(),
36556
+ url: stringType().optional()
36557
+ }).transform((v2) => {
36558
+ return remap(v2, {
36559
+ id: "_id"
36560
+ });
36561
+ });
36562
+ ((Document$) => {
36563
+ Document$.inboundSchema = Document$inboundSchema;
36564
+ Document$.outboundSchema = Document$outboundSchema;
36565
+ })(Document$ ||= {});
36566
+ });
36567
+
36568
+ // src/models/components/timestatus.ts
36569
+ var TimeStatus, TimeStatus$inboundSchema, TimeStatus$outboundSchema, TimeStatus$;
36570
+ var init_timestatus = __esm(() => {
36571
+ init_esm();
36572
+ TimeStatus = {
36573
+ Current: "current",
36574
+ Previous: "previous"
36575
+ };
36576
+ TimeStatus$inboundSchema = nativeEnumType(TimeStatus);
36577
+ TimeStatus$outboundSchema = TimeStatus$inboundSchema;
36578
+ ((TimeStatus$) => {
36579
+ TimeStatus$.inboundSchema = TimeStatus$inboundSchema;
36580
+ TimeStatus$.outboundSchema = TimeStatus$outboundSchema;
36581
+ })(TimeStatus$ ||= {});
36582
+ });
36583
+
35672
36584
  // src/models/components/email.ts
35673
36585
  var Email$inboundSchema, Email$outboundSchema, Email$;
35674
36586
  var init_email = __esm(() => {
35675
36587
  init_esm();
36588
+ init_primitives();
36589
+ init_timestatus();
35676
36590
  Email$inboundSchema = objectType({
35677
- status: stringType(),
35678
- address: stringType()
36591
+ _id: stringType().optional(),
36592
+ address: stringType(),
36593
+ status: TimeStatus$inboundSchema.optional(),
36594
+ emailType: stringType().optional()
36595
+ }).transform((v2) => {
36596
+ return remap(v2, {
36597
+ _id: "id"
36598
+ });
35679
36599
  });
35680
36600
  Email$outboundSchema = objectType({
35681
- status: stringType(),
35682
- address: stringType()
36601
+ id: stringType().optional(),
36602
+ address: stringType(),
36603
+ status: TimeStatus$outboundSchema.optional(),
36604
+ emailType: stringType().optional()
36605
+ }).transform((v2) => {
36606
+ return remap(v2, {
36607
+ id: "_id"
36608
+ });
35683
36609
  });
35684
36610
  ((Email$) => {
35685
36611
  Email$.inboundSchema = Email$inboundSchema;
@@ -35687,39 +36613,342 @@ var init_email = __esm(() => {
35687
36613
  })(Email$ ||= {});
35688
36614
  });
35689
36615
 
36616
+ // src/models/components/employmenttypes.ts
36617
+ var EmploymentTypes, EmploymentTypes$inboundSchema, EmploymentTypes$outboundSchema, EmploymentTypes$;
36618
+ var init_employmenttypes = __esm(() => {
36619
+ init_esm();
36620
+ EmploymentTypes = {
36621
+ FullTime: "Full-time",
36622
+ PartTime: "Part-time",
36623
+ Casual: "Casual",
36624
+ Contract: "Contract",
36625
+ SelfEmployed: "Self-employed",
36626
+ Benefits: "Benefits",
36627
+ Unemployed: "Unemployed"
36628
+ };
36629
+ EmploymentTypes$inboundSchema = nativeEnumType(EmploymentTypes);
36630
+ EmploymentTypes$outboundSchema = EmploymentTypes$inboundSchema;
36631
+ ((EmploymentTypes$) => {
36632
+ EmploymentTypes$.inboundSchema = EmploymentTypes$inboundSchema;
36633
+ EmploymentTypes$.outboundSchema = EmploymentTypes$outboundSchema;
36634
+ })(EmploymentTypes$ ||= {});
36635
+ });
36636
+
36637
+ // src/models/components/entitytype.ts
36638
+ var EntityType, EntityType$inboundSchema, EntityType$outboundSchema, EntityType$;
36639
+ var init_entitytype = __esm(() => {
36640
+ init_esm();
36641
+ EntityType = {
36642
+ IndividualSoleTrader: "Individual/Sole Trader",
36643
+ Partnership: "Partnership",
36644
+ Company: "Company",
36645
+ Trust: "Trust",
36646
+ AustralianPrivateCompany: "Australian Private Company"
36647
+ };
36648
+ EntityType$inboundSchema = nativeEnumType(EntityType);
36649
+ EntityType$outboundSchema = EntityType$inboundSchema;
36650
+ ((EntityType$) => {
36651
+ EntityType$.inboundSchema = EntityType$inboundSchema;
36652
+ EntityType$.outboundSchema = EntityType$outboundSchema;
36653
+ })(EntityType$ ||= {});
36654
+ });
36655
+
36656
+ // src/models/components/industrytypes.ts
36657
+ var IndustryTypes, IndustryTypes$inboundSchema, IndustryTypes$outboundSchema, IndustryTypes$;
36658
+ var init_industrytypes = __esm(() => {
36659
+ init_esm();
36660
+ IndustryTypes = {
36661
+ AccommodationAndFoodServices: "ACCOMMODATION AND FOOD SERVICES",
36662
+ AdministrativeAndSupportServices: "ADMINISTRATIVE AND SUPPORT SERVICES",
36663
+ AgricultureForestryAndFishing: "AGRICULTURE, FORESTRY AND FISHING",
36664
+ ArtsAndRecreationServices: "ARTS AND RECREATION SERVICES",
36665
+ Construction: "CONSTRUCTION",
36666
+ EducationAndTraining: "EDUCATION AND TRAINING",
36667
+ ElectricityGasWaterAndWasteServices: "ELECTRICITY, GAS, WATER AND WASTE SERVICES",
36668
+ FinancialAndInsuranceServices: "FINANCIAL AND INSURANCE SERVICES",
36669
+ HealthCareAndSocialAssistance: "HEALTH CARE AND SOCIAL ASSISTANCE",
36670
+ InformationMediaAndTelecommunications: "INFORMATION MEDIA AND TELECOMMUNICATIONS",
36671
+ Manufacturing: "MANUFACTURING",
36672
+ Mining: "MINING",
36673
+ OtherServices: "OTHER SERVICES",
36674
+ ProfessionalScientificAndTechnicalServices: "PROFESSIONAL, SCIENTIFIC AND TECHNICAL SERVICES",
36675
+ PublicAdministrationAndSafety: "PUBLIC ADMINISTRATION AND SAFETY",
36676
+ RentalHiringAndRealEstateServices: "RENTAL HIRING AND REAL ESTATE SERVICES",
36677
+ RetailTrade: "RETAIL TRADE",
36678
+ TransportPostalAndWarehousing: "TRANSPORT, POSTAL AND WAREHOUSING",
36679
+ WholesaleTrade: "WHOLESALE TRADE"
36680
+ };
36681
+ IndustryTypes$inboundSchema = nativeEnumType(IndustryTypes);
36682
+ IndustryTypes$outboundSchema = IndustryTypes$inboundSchema;
36683
+ ((IndustryTypes$) => {
36684
+ IndustryTypes$.inboundSchema = IndustryTypes$inboundSchema;
36685
+ IndustryTypes$.outboundSchema = IndustryTypes$outboundSchema;
36686
+ })(IndustryTypes$ ||= {});
36687
+ });
36688
+
36689
+ // src/models/components/occupation.ts
36690
+ var Occupation, Occupation$inboundSchema, Occupation$outboundSchema, Occupation$;
36691
+ var init_occupation = __esm(() => {
36692
+ init_esm();
36693
+ Occupation = {
36694
+ AccountantGeneral: "Accountant (General)",
36695
+ AdvertisingSpecialist: "Advertising Specialist",
36696
+ AdvertisingManager: "Advertising Manager",
36697
+ AgriculturalConsultant: "Agricultural Consultant",
36698
+ AgriculturalTechnician: "Agricultural Technician",
36699
+ AirconditioningAndMechanicalServicesPlumber: "Airconditioning and Mechanical Services Plumber",
36700
+ AirconditioningAndRefrigerationMechanic: "Airconditioning and Refrigeration Mechanic",
36701
+ AircraftMaintenanceEngineerAvionics: "Aircraft Maintenance Engineer (Avionics)",
36702
+ AirTransportProfessionalsNec: "Air Transport Professionals nec",
36703
+ AmbulanceOfficer: "Ambulance Officer",
36704
+ Apiarist: "Apiarist",
36705
+ Arborist: "Arborist",
36706
+ Architect: "Architect",
36707
+ ArchitecturalBuildingAndSurveyingTechniciansNec: "Architectural, Building and Surveying Technicians nec",
36708
+ ArtisticDirector: "Artistic Director",
36709
+ FacultyHead: "Faculty Head",
36710
+ Auctioneer: "Auctioneer",
36711
+ ExternalAuditor: "External Auditor",
36712
+ InternalAuditor: "Internal Auditor",
36713
+ Barrister: "Barrister",
36714
+ MarineBiologist: "Marine Biologist",
36715
+ BoatBuilderAndRepairer: "Boat Builder and Repairer",
36716
+ Botanist: "Botanist",
36717
+ Bricklayer: "Bricklayer",
36718
+ CarpenterAndJoiner: "Carpenter and Joiner",
36719
+ Chef: "Chef",
36720
+ Cook: "Cook",
36721
+ ChemicalPlantOperator: "Chemical Plant Operator",
36722
+ Chemist: "Chemist",
36723
+ ChildCareCentreManager: "Child Care Centre Manager",
36724
+ ClinicalCoder: "Clinical Coder",
36725
+ ClothingTradesWorkersNec: "Clothing Trades Workers nec",
36726
+ MediaProducerExcludingVideo: "Media Producer (excluding Video)",
36727
+ CommunicationsOperator: "Communications Operator",
36728
+ CommunityWorker: "Community Worker",
36729
+ CompanySecretary: "Company Secretary",
36730
+ ConstructionProjectManager: "Construction Project Manager",
36731
+ GalleryOrMuseumCurator: "Gallery or Museum Curator",
36732
+ CounsellorsNec: "Counsellors nec",
36733
+ DatabaseAdministrator: "Database Administrator",
36734
+ DentalTherapist: "Dental Therapist",
36735
+ RetailBuyer: "Retail Buyer",
36736
+ Dietitian: "Dietitian",
36737
+ Nutritionist: "Nutritionist",
36738
+ DisabilitiesServicesOfficer: "Disabilities Services Officer",
36739
+ Economist: "Economist",
36740
+ EarlyChildhoodPrePrimarySchoolTeacher: "Early Childhood (Pre-primary School) Teacher",
36741
+ EducationManagersNec: "Education Managers nec",
36742
+ ElectricianGeneral: "Electrician (General)",
36743
+ ElectronicEquipmentTradesWorker: "Electronic Equipment Trades Worker",
36744
+ EngineeringManager: "Engineering Manager",
36745
+ EngineeringProfessionalsNec: "Engineering Professionals nec",
36746
+ TelecommunicationsNetworkEngineer: "Telecommunications Network Engineer",
36747
+ UrbanAndRegionalPlanner: "Urban and Regional Planner",
36748
+ Translator: "Translator",
36749
+ TruckDriver: "Truck driver",
36750
+ CropFarmersNec: "Crop Farmers nec",
36751
+ LivestockFarmersNec: "Livestock Farmers nec",
36752
+ MixedCropAndLivestockFarmer: "Mixed Crop and Livestock Farmer",
36753
+ AquacultureFarmer: "Aquaculture Farmer",
36754
+ PetGroomer: "Pet Groomer",
36755
+ FashionDesigner: "Fashion Designer",
36756
+ FinanceManager: "Finance Manager",
36757
+ ICTBusinessAnalyst: "ICT Business Analyst",
36758
+ PolicyAnalyst: "Policy Analyst",
36759
+ PolicyAndPlanningManager: "Policy and Planning Manager",
36760
+ FinancialBrokersNec: "Financial Brokers nec",
36761
+ FinancialDealersNec: "Financial Dealers nec",
36762
+ CorporateTreasurer: "Corporate Treasurer",
36763
+ Florist: "Florist",
36764
+ FoodTechnologist: "Food Technologist",
36765
+ FuneralWorkersNec: "Funeral Workers nec",
36766
+ GasOrPetroleumOperator: "Gas or Petroleum Operator",
36767
+ Geologist: "Geologist",
36768
+ Geophysicist: "Geophysicist",
36769
+ Glazier: "Glazier",
36770
+ Greenkeeper: "Greenkeeper",
36771
+ GymnasticsCoachOrInstructor: "Gymnastics Coach or Instructor",
36772
+ Hairdresser: "Hairdresser",
36773
+ HealthAndWelfareServicesManagersNec: "Health and Welfare Services Managers nec",
36774
+ HealthInformationManager: "Health Information Manager",
36775
+ HospitalityRetailAndServiceManagersNec: "Hospitality, Retail and Service Managers nec",
36776
+ HumanResourceAdviser: "Human Resource Adviser",
36777
+ HumanResourceManager: "Human Resource Manager",
36778
+ InsuranceAgent: "Insurance Agent",
36779
+ InsuranceRiskSurveyor: "Insurance Risk Surveyor",
36780
+ IndustrialDesigner: "Industrial Designer",
36781
+ IntelligenceOfficer: "Intelligence Officer",
36782
+ InteriorDecorator: "Interior Decorator",
36783
+ Interpreter: "Interpreter",
36784
+ Jeweller: "Jeweller",
36785
+ JournalistsAndOtherWritersNec: "Journalists and Other Writers nec",
36786
+ JudicialAndOtherLegalProfessionalsNec: "Judicial and Other Legal Professionals nec",
36787
+ LandscapeGardener: "Landscape Gardener",
36788
+ Librarian: "Librarian",
36789
+ CorporateGeneralManager: "Corporate General Manager",
36790
+ CorporateServicesManager: "Corporate Services Manager",
36791
+ ProcurementManager: "Procurement Manager",
36792
+ ProductionManagerForestry: "Production Manager (Forestry)",
36793
+ ProductionManagerManufacturing: "Production Manager (Manufacturing)",
36794
+ ProductionManagerMining: "Production Manager (Mining)",
36795
+ RegionalEducationManager: "Regional Education Manager",
36796
+ ResearchAndDevelopmentManager: "Research and Development Manager",
36797
+ SpecialistManagersNec: "Specialist Managers nec",
36798
+ SupplyAndDistributionManager: "Supply and Distribution Manager",
36799
+ ChiefExecutiveOrManagingDirector: "Chief Executive or Managing Director",
36800
+ Manufacturer: "Manufacturer",
36801
+ MarketResearchAnalyst: "Market Research Analyst",
36802
+ MarketingSpecialist: "Marketing Specialist",
36803
+ SmallEngineMechanic: "Small Engine Mechanic",
36804
+ MedicalLaboratoryScientist: "Medical Laboratory Scientist",
36805
+ MedicalRadiationTherapist: "Medical Radiation Therapist",
36806
+ EmergencyServiceWorker: "Emergency Service Worker",
36807
+ MedicalPractitionersNec: "Medical Practitioners nec",
36808
+ SurgeonGeneral: "Surgeon (General)",
36809
+ MedicalDiagnosticRadiographer: "Medical Diagnostic Radiographer",
36810
+ MedicalTechniciansNec: "Medical Technicians nec",
36811
+ DiversionalTherapist: "Diversional Therapist",
36812
+ Sonographer: "Sonographer",
36813
+ MetalFabricator: "Metal Fabricator",
36814
+ MetalFittersAndMachinistsNec: "Metal Fitters and Machinists nec",
36815
+ Meteorologist: "Meteorologist",
36816
+ MusicProfessionalsNec: "Music Professionals nec",
36817
+ NursingClinicalDirector: "Nursing Clinical Director",
36818
+ OccupationalHealthAndSafetyAdviser: "Occupational Health and Safety Adviser",
36819
+ PowerGenerationPlantOperator: "Power Generation Plant Operator",
36820
+ Optometrist: "Optometrist",
36821
+ Orthoptist: "Orthoptist",
36822
+ OtherSpatialScientist: "Other Spatial Scientist",
36823
+ Photographer: "Photographer",
36824
+ SpecialistPhysiciansNec: "Specialist Physicians nec",
36825
+ Physicist: "Physicist",
36826
+ PrimaryProductsInspectorsNec: "Primary Products Inspectors nec",
36827
+ PracticeManagersNec: "Practice Managers nec",
36828
+ PrimaryHealthOrganisationManager: "Primary Health Organisation Manager",
36829
+ InformationAndOrganisationProfessionalsNec: "Information and Organisation Professionals nec",
36830
+ MarineTransportProfessionalsNec: "Marine Transport Professionals nec",
36831
+ NaturalAndPhysicalScienceProfessionalsNec: "Natural and Physical Science Professionals nec",
36832
+ SportspersonsNec: "Sportspersons nec",
36833
+ Psychiatrist: "Psychiatrist",
36834
+ PsychologistsNec: "Psychologists nec",
36835
+ PublicRelationsManager: "Public Relations Manager",
36836
+ PublicRelationsProfessional: "Public Relations Professional",
36837
+ RecordsManager: "Records Manager",
36838
+ RealEstateRepresentative: "Real Estate Representative",
36839
+ Conveyancer: "Conveyancer",
36840
+ RegisteredNursesNec: "Registered Nurses nec",
36841
+ SalesAndMarketingManager: "Sales and Marketing Manager",
36842
+ EnvironmentalScientistsNec: "Environmental Scientists nec",
36843
+ LifeScientistsNec: "Life Scientists nec",
36844
+ SocialProfessionalsNec: "Social Professionals nec",
36845
+ ScienceTechniciansNec: "Science Technicians nec",
36846
+ OtherSportsCoachOrInstructor: "Other Sports Coach or Instructor",
36847
+ OtherSportsOfficial: "Other Sports Official",
36848
+ SportsAdministrator: "Sports Administrator",
36849
+ KaiakoKohangaReoMaoriLanguageNestTeacher: "Kaiako Kohanga Reo (Maori Language Nest Teacher)",
36850
+ KaiakoKuraKaupapaMaoriMaoriMediumPrimarySchoolTeacher: "Kaiako Kura Kaupapa Maori (Maori-medium Primary School Teacher)",
36851
+ MiddleSchoolTeacherAusIntermediateSchoolTeacherNZ: "Middle School Teacher (Aus) Intermediate School Teacher (NZ)",
36852
+ PouakoKuraKaupapaMaoriMaoriMediumPrimarySchoolSeniorTeacher: "Pouako Kura Kaupapa Maori (Maori-medium Primary School Senior Teacher)",
36853
+ PrimarySchoolTeacher: "Primary School Teacher",
36854
+ PrivateTutorsAndTeachersNec: "Private Tutors and Teachers nec",
36855
+ SchoolPrincipal: "School Principal",
36856
+ SecondarySchoolTeacher: "Secondary School Teacher",
36857
+ SpecialEducationTeachersNec: "Special Education Teachers nec",
36858
+ UniversityLecturer: "University Lecturer",
36859
+ TechnicalSalesRepresentativesNec: "Technical Sales Representatives nec",
36860
+ TechniciansAndTradesWorkersNec: "Technicians and Trades Workers nec",
36861
+ BuildingAndEngineeringTechniciansNec: "Building and Engineering Technicians nec",
36862
+ Hydrogeologist: "Hydrogeologist",
36863
+ NuclearMedicineTechnologist: "Nuclear Medicine Technologist",
36864
+ TelecommunicationsTechnician: "Telecommunications Technician",
36865
+ ActorsDancersAndOtherEntertainersNec: "Actors, Dancers and Other Entertainers nec",
36866
+ FilmTelevisionRadioAndStageDirectorsNec: "Film, Television, Radio and Stage Directors nec",
36867
+ PerformingArtsTechniciansNec: "Performing Arts Technicians nec",
36868
+ VisualArtsAndCraftsProfessionalsNec: "Visual Arts and Crafts Professionals nec",
36869
+ ImporterOrExporter: "Importer or Exporter",
36870
+ Wholesaler: "Wholesaler",
36871
+ TrainingAndDevelopmentProfessional: "Training and Development Professional",
36872
+ TravelAttendantsNec: "Travel Attendants nec",
36873
+ Valuer: "Valuer",
36874
+ VehicleBodyBuilder: "Vehicle Body Builder",
36875
+ VeterinaryNurse: "Veterinary Nurse",
36876
+ WallAndFloorTiler: "Wall and Floor Tiler",
36877
+ SoftwareAndApplicationsProgrammersNec: "Software and Applications Programmers nec",
36878
+ WineMaker: "Wine Maker",
36879
+ WoolBuyer: "Wool Buyer",
36880
+ WorkplaceRelationsAdviser: "Workplace Relations Adviser",
36881
+ Zookeeper: "Zookeeper",
36882
+ Zoologist: "Zoologist",
36883
+ Historian: "Historian",
36884
+ LeatherGoodsMaker: "Leather Goods Maker",
36885
+ QuarantineOfficer: "Quarantine Officer",
36886
+ RecruitmentConsultant: "Recruitment Consultant"
36887
+ };
36888
+ Occupation$inboundSchema = nativeEnumType(Occupation);
36889
+ Occupation$outboundSchema = Occupation$inboundSchema;
36890
+ ((Occupation$) => {
36891
+ Occupation$.inboundSchema = Occupation$inboundSchema;
36892
+ Occupation$.outboundSchema = Occupation$outboundSchema;
36893
+ })(Occupation$ ||= {});
36894
+ });
36895
+
35690
36896
  // src/models/components/employer.ts
35691
- var EmployerAddress$inboundSchema, EmployerAddress$outboundSchema, EmployerAddress$, Employer$inboundSchema, Employer$outboundSchema, Employer$;
36897
+ var Employer$inboundSchema, Employer$outboundSchema, Employer$;
35692
36898
  var init_employer = __esm(() => {
35693
36899
  init_esm();
35694
- EmployerAddress$inboundSchema = objectType({
35695
- postcode: stringType().optional()
35696
- });
35697
- EmployerAddress$outboundSchema = objectType({
35698
- postcode: stringType().optional()
35699
- });
35700
- ((EmployerAddress$) => {
35701
- EmployerAddress$.inboundSchema = EmployerAddress$inboundSchema;
35702
- EmployerAddress$.outboundSchema = EmployerAddress$outboundSchema;
35703
- })(EmployerAddress$ ||= {});
36900
+ init_primitives();
36901
+ init_address();
36902
+ init_employmenttypes();
36903
+ init_entitytype();
36904
+ init_industrytypes();
36905
+ init_occupation();
36906
+ init_timestatus();
35704
36907
  Employer$inboundSchema = objectType({
36908
+ _id: stringType().optional(),
35705
36909
  entityName: stringType().optional(),
36910
+ abn: stringType().optional(),
36911
+ acn: stringType().optional(),
36912
+ entityType: EntityType$inboundSchema.optional(),
36913
+ abnStatus: stringType().optional(),
36914
+ employmentType: EmploymentTypes$inboundSchema.optional(),
36915
+ timeOfEmployment: stringType().optional(),
36916
+ occupation: Occupation$inboundSchema.optional(),
36917
+ manager: stringType().optional(),
35706
36918
  phoneNumber: stringType().optional(),
35707
- address: lazyType(() => EmployerAddress$inboundSchema).optional(),
35708
- employerPhoneExtension: stringType().optional(),
35709
- occupation: stringType().optional(),
35710
- industry: stringType().optional(),
35711
- employmentType: stringType().optional(),
35712
- timeOfEmployment: stringType().optional()
36919
+ status: TimeStatus$inboundSchema.optional(),
36920
+ industry: IndustryTypes$inboundSchema.optional(),
36921
+ businessNames: arrayType(stringType()).optional(),
36922
+ createdAt: stringType().optional(),
36923
+ updatedAt: stringType().optional(),
36924
+ address: Address$inboundSchema.optional()
36925
+ }).transform((v2) => {
36926
+ return remap(v2, {
36927
+ _id: "id"
36928
+ });
35713
36929
  });
35714
36930
  Employer$outboundSchema = objectType({
36931
+ id: stringType().optional(),
35715
36932
  entityName: stringType().optional(),
36933
+ abn: stringType().optional(),
36934
+ acn: stringType().optional(),
36935
+ entityType: EntityType$outboundSchema.optional(),
36936
+ abnStatus: stringType().optional(),
36937
+ employmentType: EmploymentTypes$outboundSchema.optional(),
36938
+ timeOfEmployment: stringType().optional(),
36939
+ occupation: Occupation$outboundSchema.optional(),
36940
+ manager: stringType().optional(),
35716
36941
  phoneNumber: stringType().optional(),
35717
- address: lazyType(() => EmployerAddress$outboundSchema).optional(),
35718
- employerPhoneExtension: stringType().optional(),
35719
- occupation: stringType().optional(),
35720
- industry: stringType().optional(),
35721
- employmentType: stringType().optional(),
35722
- timeOfEmployment: stringType().optional()
36942
+ status: TimeStatus$outboundSchema.optional(),
36943
+ industry: IndustryTypes$outboundSchema.optional(),
36944
+ businessNames: arrayType(stringType()).optional(),
36945
+ createdAt: stringType().optional(),
36946
+ updatedAt: stringType().optional(),
36947
+ address: Address$outboundSchema.optional()
36948
+ }).transform((v2) => {
36949
+ return remap(v2, {
36950
+ id: "_id"
36951
+ });
35723
36952
  });
35724
36953
  ((Employer$) => {
35725
36954
  Employer$.inboundSchema = Employer$inboundSchema;
@@ -35727,449 +36956,253 @@ var init_employer = __esm(() => {
35727
36956
  })(Employer$ ||= {});
35728
36957
  });
35729
36958
 
35730
- // src/models/components/fee.ts
35731
- var Fee$inboundSchema, Fee$outboundSchema, Fee$;
35732
- var init_fee = __esm(() => {
36959
+ // src/models/components/expensestype.ts
36960
+ var ExpensesType, ExpensesType$inboundSchema, ExpensesType$outboundSchema, ExpensesType$;
36961
+ var init_expensestype = __esm(() => {
35733
36962
  init_esm();
35734
- Fee$inboundSchema = objectType({
35735
- name: stringType(),
35736
- value: stringType()
35737
- });
35738
- Fee$outboundSchema = objectType({
35739
- name: stringType(),
35740
- value: stringType()
35741
- });
35742
- ((Fee$) => {
35743
- Fee$.inboundSchema = Fee$inboundSchema;
35744
- Fee$.outboundSchema = Fee$outboundSchema;
35745
- })(Fee$ ||= {});
35746
- });
35747
-
35748
- // src/models/components/forbiddenerror.ts
35749
- var ForbiddenErrorCode, ForbiddenErrorTitle, ForbiddenErrorStatus, ForbiddenErrorDetail, ForbiddenErrorCode$inboundSchema, ForbiddenErrorCode$outboundSchema, ForbiddenErrorCode$, ForbiddenErrorTitle$inboundSchema, ForbiddenErrorTitle$outboundSchema, ForbiddenErrorTitle$, ForbiddenErrorStatus$inboundSchema, ForbiddenErrorStatus$outboundSchema, ForbiddenErrorStatus$, ForbiddenErrorDetail$inboundSchema, ForbiddenErrorDetail$outboundSchema, ForbiddenErrorDetail$, ForbiddenError$inboundSchema, ForbiddenError$outboundSchema, ForbiddenError$;
35750
- var init_forbiddenerror = __esm(() => {
35751
- init_esm();
35752
- init_apierrorlinks();
35753
- init_errorsource();
35754
- ForbiddenErrorCode = {
35755
- AuthorizationError: "AUTHORIZATION_ERROR"
35756
- };
35757
- ForbiddenErrorTitle = {
35758
- Forbidden: "Forbidden"
35759
- };
35760
- ForbiddenErrorStatus = {
35761
- FourHundredAndThree: "403"
35762
- };
35763
- ForbiddenErrorDetail = {
35764
- YouDoNotHavePermissionToPerformThisAction: "You do not have permission to perform this action."
35765
- };
35766
- ForbiddenErrorCode$inboundSchema = nativeEnumType(ForbiddenErrorCode);
35767
- ForbiddenErrorCode$outboundSchema = ForbiddenErrorCode$inboundSchema;
35768
- ((ForbiddenErrorCode$) => {
35769
- ForbiddenErrorCode$.inboundSchema = ForbiddenErrorCode$inboundSchema;
35770
- ForbiddenErrorCode$.outboundSchema = ForbiddenErrorCode$outboundSchema;
35771
- })(ForbiddenErrorCode$ ||= {});
35772
- ForbiddenErrorTitle$inboundSchema = nativeEnumType(ForbiddenErrorTitle);
35773
- ForbiddenErrorTitle$outboundSchema = ForbiddenErrorTitle$inboundSchema;
35774
- ((ForbiddenErrorTitle$) => {
35775
- ForbiddenErrorTitle$.inboundSchema = ForbiddenErrorTitle$inboundSchema;
35776
- ForbiddenErrorTitle$.outboundSchema = ForbiddenErrorTitle$outboundSchema;
35777
- })(ForbiddenErrorTitle$ ||= {});
35778
- ForbiddenErrorStatus$inboundSchema = nativeEnumType(ForbiddenErrorStatus);
35779
- ForbiddenErrorStatus$outboundSchema = ForbiddenErrorStatus$inboundSchema;
35780
- ((ForbiddenErrorStatus$) => {
35781
- ForbiddenErrorStatus$.inboundSchema = ForbiddenErrorStatus$inboundSchema;
35782
- ForbiddenErrorStatus$.outboundSchema = ForbiddenErrorStatus$outboundSchema;
35783
- })(ForbiddenErrorStatus$ ||= {});
35784
- ForbiddenErrorDetail$inboundSchema = nativeEnumType(ForbiddenErrorDetail);
35785
- ForbiddenErrorDetail$outboundSchema = ForbiddenErrorDetail$inboundSchema;
35786
- ((ForbiddenErrorDetail$) => {
35787
- ForbiddenErrorDetail$.inboundSchema = ForbiddenErrorDetail$inboundSchema;
35788
- ForbiddenErrorDetail$.outboundSchema = ForbiddenErrorDetail$outboundSchema;
35789
- })(ForbiddenErrorDetail$ ||= {});
35790
- ForbiddenError$inboundSchema = objectType({
35791
- links: APIErrorLinks$inboundSchema.optional(),
35792
- code: ForbiddenErrorCode$inboundSchema,
35793
- title: ForbiddenErrorTitle$inboundSchema,
35794
- status: ForbiddenErrorStatus$inboundSchema,
35795
- source: ErrorSource$inboundSchema.optional(),
35796
- detail: ForbiddenErrorDetail$inboundSchema,
35797
- meta: recordType(anyType()).optional()
35798
- });
35799
- ForbiddenError$outboundSchema = objectType({
35800
- links: APIErrorLinks$outboundSchema.optional(),
35801
- code: ForbiddenErrorCode$outboundSchema,
35802
- title: ForbiddenErrorTitle$outboundSchema,
35803
- status: ForbiddenErrorStatus$outboundSchema,
35804
- source: ErrorSource$outboundSchema.optional(),
35805
- detail: ForbiddenErrorDetail$outboundSchema,
35806
- meta: recordType(anyType()).optional()
35807
- });
35808
- ((ForbiddenError$) => {
35809
- ForbiddenError$.inboundSchema = ForbiddenError$inboundSchema;
35810
- ForbiddenError$.outboundSchema = ForbiddenError$outboundSchema;
35811
- })(ForbiddenError$ ||= {});
35812
- });
35813
-
35814
- // src/models/components/internalservererror.ts
35815
- var InternalServerErrorCode, InternalServerErrorTitle, InternalServerErrorStatus, InternalServerErrorDetail, InternalServerErrorCode$inboundSchema, InternalServerErrorCode$outboundSchema, InternalServerErrorCode$, InternalServerErrorTitle$inboundSchema, InternalServerErrorTitle$outboundSchema, InternalServerErrorTitle$, InternalServerErrorStatus$inboundSchema, InternalServerErrorStatus$outboundSchema, InternalServerErrorStatus$, InternalServerErrorDetail$inboundSchema, InternalServerErrorDetail$outboundSchema, InternalServerErrorDetail$, InternalServerError$inboundSchema, InternalServerError$outboundSchema, InternalServerError$;
35816
- var init_internalservererror = __esm(() => {
35817
- init_esm();
35818
- init_apierrorlinks();
35819
- init_errorsource();
35820
- InternalServerErrorCode = {
35821
- InternalServerError: "INTERNAL_SERVER_ERROR"
35822
- };
35823
- InternalServerErrorTitle = {
35824
- InternalServerError: "Internal Server Error"
35825
- };
35826
- InternalServerErrorStatus = {
35827
- FiveHundred: "500"
35828
- };
35829
- InternalServerErrorDetail = {
35830
- AnUnexpectedErrorOccurred: "An unexpected error occurred."
35831
- };
35832
- InternalServerErrorCode$inboundSchema = nativeEnumType(InternalServerErrorCode);
35833
- InternalServerErrorCode$outboundSchema = InternalServerErrorCode$inboundSchema;
35834
- ((InternalServerErrorCode$) => {
35835
- InternalServerErrorCode$.inboundSchema = InternalServerErrorCode$inboundSchema;
35836
- InternalServerErrorCode$.outboundSchema = InternalServerErrorCode$outboundSchema;
35837
- })(InternalServerErrorCode$ ||= {});
35838
- InternalServerErrorTitle$inboundSchema = nativeEnumType(InternalServerErrorTitle);
35839
- InternalServerErrorTitle$outboundSchema = InternalServerErrorTitle$inboundSchema;
35840
- ((InternalServerErrorTitle$) => {
35841
- InternalServerErrorTitle$.inboundSchema = InternalServerErrorTitle$inboundSchema;
35842
- InternalServerErrorTitle$.outboundSchema = InternalServerErrorTitle$outboundSchema;
35843
- })(InternalServerErrorTitle$ ||= {});
35844
- InternalServerErrorStatus$inboundSchema = nativeEnumType(InternalServerErrorStatus);
35845
- InternalServerErrorStatus$outboundSchema = InternalServerErrorStatus$inboundSchema;
35846
- ((InternalServerErrorStatus$) => {
35847
- InternalServerErrorStatus$.inboundSchema = InternalServerErrorStatus$inboundSchema;
35848
- InternalServerErrorStatus$.outboundSchema = InternalServerErrorStatus$outboundSchema;
35849
- })(InternalServerErrorStatus$ ||= {});
35850
- InternalServerErrorDetail$inboundSchema = nativeEnumType(InternalServerErrorDetail);
35851
- InternalServerErrorDetail$outboundSchema = InternalServerErrorDetail$inboundSchema;
35852
- ((InternalServerErrorDetail$) => {
35853
- InternalServerErrorDetail$.inboundSchema = InternalServerErrorDetail$inboundSchema;
35854
- InternalServerErrorDetail$.outboundSchema = InternalServerErrorDetail$outboundSchema;
35855
- })(InternalServerErrorDetail$ ||= {});
35856
- InternalServerError$inboundSchema = objectType({
35857
- links: APIErrorLinks$inboundSchema.optional(),
35858
- code: InternalServerErrorCode$inboundSchema,
35859
- title: InternalServerErrorTitle$inboundSchema,
35860
- status: InternalServerErrorStatus$inboundSchema,
35861
- source: ErrorSource$inboundSchema.optional(),
35862
- detail: InternalServerErrorDetail$inboundSchema,
35863
- meta: recordType(anyType()).optional()
35864
- });
35865
- InternalServerError$outboundSchema = objectType({
35866
- links: APIErrorLinks$outboundSchema.optional(),
35867
- code: InternalServerErrorCode$outboundSchema,
35868
- title: InternalServerErrorTitle$outboundSchema,
35869
- status: InternalServerErrorStatus$outboundSchema,
35870
- source: ErrorSource$outboundSchema.optional(),
35871
- detail: InternalServerErrorDetail$outboundSchema,
35872
- meta: recordType(anyType()).optional()
35873
- });
35874
- ((InternalServerError$) => {
35875
- InternalServerError$.inboundSchema = InternalServerError$inboundSchema;
35876
- InternalServerError$.outboundSchema = InternalServerError$outboundSchema;
35877
- })(InternalServerError$ ||= {});
35878
- });
35879
-
35880
- // src/models/components/label.ts
35881
- var Label$inboundSchema, Label$outboundSchema, Label$;
35882
- var init_label = __esm(() => {
35883
- init_esm();
35884
- Label$inboundSchema = objectType({
35885
- label: stringType()
35886
- });
35887
- Label$outboundSchema = objectType({
35888
- label: stringType()
35889
- });
35890
- ((Label$) => {
35891
- Label$.inboundSchema = Label$inboundSchema;
35892
- Label$.outboundSchema = Label$outboundSchema;
35893
- })(Label$ ||= {});
35894
- });
35895
-
35896
- // src/models/components/lenders.ts
35897
- var Lenders, Lenders$inboundSchema, Lenders$outboundSchema, Lenders$;
35898
- var init_lenders = __esm(() => {
36963
+ ExpensesType = {
36964
+ Rent: "Rent",
36965
+ VehiclesAndTransport: "Vehicles and Transport",
36966
+ Health: "Health",
36967
+ HomeImprovement: "Home Improvement",
36968
+ PersonalCarePetCare: "Personal Care, Pet Care",
36969
+ UncategorizedDebts: "Uncategorized Debts",
36970
+ Groceries: "Groceries",
36971
+ DiningOut: "Dining Out",
36972
+ Utilities: "Utilities",
36973
+ Insurance: "Insurance",
36974
+ PersonalCare: "Personal Care",
36975
+ Telecommunications: "Telecommunications",
36976
+ SubscriptionTV: "Subscription TV",
36977
+ DepartmentStores: "Department Stores",
36978
+ Retail: "Retail",
36979
+ Entertainment: "Entertainment",
36980
+ Travel: "Travel",
36981
+ PetCare: "Pet Care",
36982
+ GymAndOtherMemberships: "Gym and other memberships",
36983
+ EducationAndChildcare: "Education and Childcare"
36984
+ };
36985
+ ExpensesType$inboundSchema = nativeEnumType(ExpensesType);
36986
+ ExpensesType$outboundSchema = ExpensesType$inboundSchema;
36987
+ ((ExpensesType$) => {
36988
+ ExpensesType$.inboundSchema = ExpensesType$inboundSchema;
36989
+ ExpensesType$.outboundSchema = ExpensesType$outboundSchema;
36990
+ })(ExpensesType$ ||= {});
36991
+ });
36992
+
36993
+ // src/models/components/frequency.ts
36994
+ var Frequency, Frequency$inboundSchema, Frequency$outboundSchema, Frequency$;
36995
+ var init_frequency = __esm(() => {
35899
36996
  init_esm();
35900
- Lenders = {
35901
- Pepper: "Pepper",
35902
- Lendi: "Lendi",
35903
- MoneyMe: "MoneyMe",
35904
- Wisr: "Wisr",
35905
- Latitude: "Latitude",
35906
- Dynamoney: "Dynamoney",
35907
- FinanceOne: "FinanceOne",
35908
- Westpac: "Westpac",
35909
- Money3: "Money3",
35910
- Plenti: "Plenti",
35911
- Now: "Now",
35912
- Flexi: "Flexi",
35913
- Metro: "Metro",
35914
- Angle: "Angle",
35915
- Financeone: "Financeone",
35916
- Eastcap: "Eastcap",
35917
- Branded: "Branded",
35918
- Liberty: "Liberty",
35919
- Moneyme: "Moneyme",
35920
- Autopay: "Autopay",
35921
- Firstmac: "Firstmac",
35922
- Moneyplace: "Moneyplace",
35923
- Azora: "Azora",
35924
- Resimac: "Resimac",
35925
- Ammf: "Ammf",
35926
- Scotpac: "Scotpac",
35927
- Afs: "Afs",
35928
- WestpacDriveExpress: "WestpacDriveExpress",
35929
- WestpacEF: "WestpacEF"
35930
- };
35931
- Lenders$inboundSchema = nativeEnumType(Lenders);
35932
- Lenders$outboundSchema = Lenders$inboundSchema;
35933
- ((Lenders$) => {
35934
- Lenders$.inboundSchema = Lenders$inboundSchema;
35935
- Lenders$.outboundSchema = Lenders$outboundSchema;
35936
- })(Lenders$ ||= {});
35937
- });
35938
-
35939
- // src/models/components/notfounderror.ts
35940
- var NotFoundErrorCode, NotFoundErrorTitle, NotFoundErrorStatus, NotFoundErrorDetail, NotFoundErrorCode$inboundSchema, NotFoundErrorCode$outboundSchema, NotFoundErrorCode$, NotFoundErrorTitle$inboundSchema, NotFoundErrorTitle$outboundSchema, NotFoundErrorTitle$, NotFoundErrorStatus$inboundSchema, NotFoundErrorStatus$outboundSchema, NotFoundErrorStatus$, NotFoundErrorDetail$inboundSchema, NotFoundErrorDetail$outboundSchema, NotFoundErrorDetail$, NotFoundError$inboundSchema, NotFoundError$outboundSchema, NotFoundError$;
35941
- var init_notfounderror = __esm(() => {
35942
- init_esm();
35943
- init_apierrorlinks();
35944
- init_errorsource();
35945
- NotFoundErrorCode = {
35946
- NotFound: "NOT_FOUND"
35947
- };
35948
- NotFoundErrorTitle = {
35949
- ResourceNotFound: "Resource Not Found"
35950
- };
35951
- NotFoundErrorStatus = {
35952
- FourHundredAndFour: "404"
35953
- };
35954
- NotFoundErrorDetail = {
35955
- TheRequestedResourceWasNotFound: "The requested resource was not found."
35956
- };
35957
- NotFoundErrorCode$inboundSchema = nativeEnumType(NotFoundErrorCode);
35958
- NotFoundErrorCode$outboundSchema = NotFoundErrorCode$inboundSchema;
35959
- ((NotFoundErrorCode$) => {
35960
- NotFoundErrorCode$.inboundSchema = NotFoundErrorCode$inboundSchema;
35961
- NotFoundErrorCode$.outboundSchema = NotFoundErrorCode$outboundSchema;
35962
- })(NotFoundErrorCode$ ||= {});
35963
- NotFoundErrorTitle$inboundSchema = nativeEnumType(NotFoundErrorTitle);
35964
- NotFoundErrorTitle$outboundSchema = NotFoundErrorTitle$inboundSchema;
35965
- ((NotFoundErrorTitle$) => {
35966
- NotFoundErrorTitle$.inboundSchema = NotFoundErrorTitle$inboundSchema;
35967
- NotFoundErrorTitle$.outboundSchema = NotFoundErrorTitle$outboundSchema;
35968
- })(NotFoundErrorTitle$ ||= {});
35969
- NotFoundErrorStatus$inboundSchema = nativeEnumType(NotFoundErrorStatus);
35970
- NotFoundErrorStatus$outboundSchema = NotFoundErrorStatus$inboundSchema;
35971
- ((NotFoundErrorStatus$) => {
35972
- NotFoundErrorStatus$.inboundSchema = NotFoundErrorStatus$inboundSchema;
35973
- NotFoundErrorStatus$.outboundSchema = NotFoundErrorStatus$outboundSchema;
35974
- })(NotFoundErrorStatus$ ||= {});
35975
- NotFoundErrorDetail$inboundSchema = nativeEnumType(NotFoundErrorDetail);
35976
- NotFoundErrorDetail$outboundSchema = NotFoundErrorDetail$inboundSchema;
35977
- ((NotFoundErrorDetail$) => {
35978
- NotFoundErrorDetail$.inboundSchema = NotFoundErrorDetail$inboundSchema;
35979
- NotFoundErrorDetail$.outboundSchema = NotFoundErrorDetail$outboundSchema;
35980
- })(NotFoundErrorDetail$ ||= {});
35981
- NotFoundError$inboundSchema = objectType({
35982
- links: APIErrorLinks$inboundSchema.optional(),
35983
- code: NotFoundErrorCode$inboundSchema,
35984
- title: NotFoundErrorTitle$inboundSchema,
35985
- status: NotFoundErrorStatus$inboundSchema,
35986
- source: ErrorSource$inboundSchema.optional(),
35987
- detail: NotFoundErrorDetail$inboundSchema,
35988
- meta: recordType(anyType()).optional()
35989
- });
35990
- NotFoundError$outboundSchema = objectType({
35991
- links: APIErrorLinks$outboundSchema.optional(),
35992
- code: NotFoundErrorCode$outboundSchema,
35993
- title: NotFoundErrorTitle$outboundSchema,
35994
- status: NotFoundErrorStatus$outboundSchema,
35995
- source: ErrorSource$outboundSchema.optional(),
35996
- detail: NotFoundErrorDetail$outboundSchema,
35997
- meta: recordType(anyType()).optional()
35998
- });
35999
- ((NotFoundError$) => {
36000
- NotFoundError$.inboundSchema = NotFoundError$inboundSchema;
36001
- NotFoundError$.outboundSchema = NotFoundError$outboundSchema;
36002
- })(NotFoundError$ ||= {});
36003
- });
36004
-
36005
- // src/models/components/pepperconsumerasset.ts
36006
- var PepperConsumerAsset$inboundSchema, PepperConsumerAsset$outboundSchema, PepperConsumerAsset$;
36007
- var init_pepperconsumerasset = __esm(() => {
36008
- init_esm();
36009
- init_label();
36010
- PepperConsumerAsset$inboundSchema = objectType({
36011
- ageOfAsset: stringType().optional(),
36012
- ageOfAssetAtEnd: stringType().optional(),
36013
- assetType: stringType().optional(),
36014
- assetValue: numberType().optional(),
36015
- averageKM: stringType().optional(),
36016
- condition: nullableType(stringType()).optional(),
36017
- description: stringType().optional(),
36018
- glassesMake: Label$inboundSchema.optional(),
36019
- glassesModel: Label$inboundSchema.optional(),
36020
- glassesNVIC: anyType().optional(),
36021
- glassesVariant: Label$inboundSchema.optional(),
36022
- make: stringType().optional(),
36023
- model: stringType().optional(),
36024
- registrationNumber: stringType().optional(),
36025
- registrationState: stringType().optional(),
36026
- specifications: anyType().optional(),
36027
- supplierABN: stringType().optional(),
36028
- supplierAddress: stringType().optional(),
36029
- supplierEmail: stringType().optional(),
36030
- supplierName: stringType().optional(),
36031
- supplierPhone: stringType().optional(),
36032
- typeOfSale: stringType().optional(),
36033
- vin: stringType().optional()
36034
- });
36035
- PepperConsumerAsset$outboundSchema = objectType({
36036
- ageOfAsset: stringType().optional(),
36037
- ageOfAssetAtEnd: stringType().optional(),
36038
- assetType: stringType().optional(),
36039
- assetValue: numberType().optional(),
36040
- averageKM: stringType().optional(),
36041
- condition: nullableType(stringType()).optional(),
36042
- description: stringType().optional(),
36043
- glassesMake: Label$outboundSchema.optional(),
36044
- glassesModel: Label$outboundSchema.optional(),
36045
- glassesNVIC: anyType().optional(),
36046
- glassesVariant: Label$outboundSchema.optional(),
36047
- make: stringType().optional(),
36048
- model: stringType().optional(),
36049
- registrationNumber: stringType().optional(),
36050
- registrationState: stringType().optional(),
36051
- specifications: anyType().optional(),
36052
- supplierABN: stringType().optional(),
36053
- supplierAddress: stringType().optional(),
36054
- supplierEmail: stringType().optional(),
36055
- supplierName: stringType().optional(),
36056
- supplierPhone: stringType().optional(),
36057
- typeOfSale: stringType().optional(),
36058
- vin: stringType().optional()
36059
- });
36060
- ((PepperConsumerAsset$) => {
36061
- PepperConsumerAsset$.inboundSchema = PepperConsumerAsset$inboundSchema;
36062
- PepperConsumerAsset$.outboundSchema = PepperConsumerAsset$outboundSchema;
36063
- })(PepperConsumerAsset$ ||= {});
36064
- });
36065
-
36066
- // src/models/components/pepperconsumercustomerprofile.ts
36067
- var PepperConsumerCustomerProfile$inboundSchema, PepperConsumerCustomerProfile$outboundSchema, PepperConsumerCustomerProfile$;
36068
- var init_pepperconsumercustomerprofile = __esm(() => {
36997
+ Frequency = {
36998
+ Monthly: "Monthly",
36999
+ Weekly: "Weekly",
37000
+ Fortnightly: "Fortnightly",
37001
+ Annually: "Annually"
37002
+ };
37003
+ Frequency$inboundSchema = nativeEnumType(Frequency);
37004
+ Frequency$outboundSchema = Frequency$inboundSchema;
37005
+ ((Frequency$) => {
37006
+ Frequency$.inboundSchema = Frequency$inboundSchema;
37007
+ Frequency$.outboundSchema = Frequency$outboundSchema;
37008
+ })(Frequency$ ||= {});
37009
+ });
37010
+
37011
+ // src/models/components/expense.ts
37012
+ var Expense$inboundSchema, Expense$outboundSchema, Expense$;
37013
+ var init_expense = __esm(() => {
36069
37014
  init_esm();
36070
- PepperConsumerCustomerProfile$inboundSchema = objectType({
36071
- maritalStatus: stringType().optional(),
36072
- numberOfDependants: numberType().int().optional(),
36073
- residencyStatus: stringType().optional(),
36074
- livingArrangements: stringType().optional(),
36075
- contactNumber: stringType().optional(),
36076
- rentAmount: stringType().optional()
37015
+ init_primitives();
37016
+ init_expensestype();
37017
+ init_frequency();
37018
+ Expense$inboundSchema = objectType({
37019
+ _id: stringType().optional(),
37020
+ application: stringType().optional(),
37021
+ customer: stringType().optional(),
37022
+ expensesType: ExpensesType$inboundSchema.optional(),
37023
+ amount: stringType().optional(),
37024
+ frequency: Frequency$inboundSchema.optional()
37025
+ }).transform((v2) => {
37026
+ return remap(v2, {
37027
+ _id: "id"
37028
+ });
36077
37029
  });
36078
- PepperConsumerCustomerProfile$outboundSchema = objectType({
36079
- maritalStatus: stringType().optional(),
36080
- numberOfDependants: numberType().int().optional(),
36081
- residencyStatus: stringType().optional(),
36082
- livingArrangements: stringType().optional(),
36083
- contactNumber: stringType().optional(),
36084
- rentAmount: stringType().optional()
37030
+ Expense$outboundSchema = objectType({
37031
+ id: stringType().optional(),
37032
+ application: stringType().optional(),
37033
+ customer: stringType().optional(),
37034
+ expensesType: ExpensesType$outboundSchema.optional(),
37035
+ amount: stringType().optional(),
37036
+ frequency: Frequency$outboundSchema.optional()
37037
+ }).transform((v2) => {
37038
+ return remap(v2, {
37039
+ id: "_id"
37040
+ });
36085
37041
  });
36086
- ((PepperConsumerCustomerProfile$) => {
36087
- PepperConsumerCustomerProfile$.inboundSchema = PepperConsumerCustomerProfile$inboundSchema;
36088
- PepperConsumerCustomerProfile$.outboundSchema = PepperConsumerCustomerProfile$outboundSchema;
36089
- })(PepperConsumerCustomerProfile$ ||= {});
37042
+ ((Expense$) => {
37043
+ Expense$.inboundSchema = Expense$inboundSchema;
37044
+ Expense$.outboundSchema = Expense$outboundSchema;
37045
+ })(Expense$ ||= {});
36090
37046
  });
36091
37047
 
36092
- // src/models/components/pepperconsumerincome.ts
36093
- var PepperConsumerIncome$inboundSchema, PepperConsumerIncome$outboundSchema, PepperConsumerIncome$;
36094
- var init_pepperconsumerincome = __esm(() => {
37048
+ // src/models/components/idtype.ts
37049
+ var IDType, IDType$inboundSchema, IDType$outboundSchema, IDType$;
37050
+ var init_idtype = __esm(() => {
37051
+ init_esm();
37052
+ IDType = {
37053
+ Licence: "Licence",
37054
+ Passport: "Passport"
37055
+ };
37056
+ IDType$inboundSchema = nativeEnumType(IDType);
37057
+ IDType$outboundSchema = IDType$inboundSchema;
37058
+ ((IDType$) => {
37059
+ IDType$.inboundSchema = IDType$inboundSchema;
37060
+ IDType$.outboundSchema = IDType$outboundSchema;
37061
+ })(IDType$ ||= {});
37062
+ });
37063
+
37064
+ // src/models/components/consumerincometypes.ts
37065
+ var ConsumerIncomeTypes, ConsumerIncomeTypes$inboundSchema, ConsumerIncomeTypes$outboundSchema, ConsumerIncomeTypes$;
37066
+ var init_consumerincometypes = __esm(() => {
37067
+ init_esm();
37068
+ ConsumerIncomeTypes = {
37069
+ Primary: "Primary",
37070
+ Secondary: "Secondary",
37071
+ InvestmentProperty: "Investment property",
37072
+ Dividends: "Dividends",
37073
+ Superannuation: "Superannuation",
37074
+ Pension: "Pension",
37075
+ Trust: "Trust",
37076
+ Benefits: "Benefits",
37077
+ Other: "Other"
37078
+ };
37079
+ ConsumerIncomeTypes$inboundSchema = nativeEnumType(ConsumerIncomeTypes);
37080
+ ConsumerIncomeTypes$outboundSchema = ConsumerIncomeTypes$inboundSchema;
37081
+ ((ConsumerIncomeTypes$) => {
37082
+ ConsumerIncomeTypes$.inboundSchema = ConsumerIncomeTypes$inboundSchema;
37083
+ ConsumerIncomeTypes$.outboundSchema = ConsumerIncomeTypes$outboundSchema;
37084
+ })(ConsumerIncomeTypes$ ||= {});
37085
+ });
37086
+
37087
+ // src/models/components/income.ts
37088
+ var Income$inboundSchema, Income$outboundSchema, Income$;
37089
+ var init_income = __esm(() => {
36095
37090
  init_esm();
36096
37091
  init_primitives();
36097
- PepperConsumerIncome$inboundSchema = objectType({
37092
+ init_consumerincometypes();
37093
+ init_frequency();
37094
+ Income$inboundSchema = objectType({
36098
37095
  _id: stringType().optional(),
36099
- incomeType: stringType(),
37096
+ customer: stringType().optional(),
36100
37097
  amount: stringType(),
36101
- frequency: stringType()
37098
+ frequency: Frequency$inboundSchema,
37099
+ incomeType: ConsumerIncomeTypes$inboundSchema
36102
37100
  }).transform((v2) => {
36103
37101
  return remap(v2, {
36104
37102
  _id: "id"
36105
37103
  });
36106
37104
  });
36107
- PepperConsumerIncome$outboundSchema = objectType({
37105
+ Income$outboundSchema = objectType({
36108
37106
  id: stringType().optional(),
36109
- incomeType: stringType(),
37107
+ customer: stringType().optional(),
36110
37108
  amount: stringType(),
36111
- frequency: stringType()
37109
+ frequency: Frequency$outboundSchema,
37110
+ incomeType: ConsumerIncomeTypes$outboundSchema
36112
37111
  }).transform((v2) => {
36113
37112
  return remap(v2, {
36114
37113
  id: "_id"
36115
37114
  });
36116
37115
  });
36117
- ((PepperConsumerIncome$) => {
36118
- PepperConsumerIncome$.inboundSchema = PepperConsumerIncome$inboundSchema;
36119
- PepperConsumerIncome$.outboundSchema = PepperConsumerIncome$outboundSchema;
36120
- })(PepperConsumerIncome$ ||= {});
37116
+ ((Income$) => {
37117
+ Income$.inboundSchema = Income$inboundSchema;
37118
+ Income$.outboundSchema = Income$outboundSchema;
37119
+ })(Income$ ||= {});
36121
37120
  });
36122
37121
 
36123
- // src/models/components/pepperconsumerliability.ts
36124
- var PepperConsumerLiability$inboundSchema, PepperConsumerLiability$outboundSchema, PepperConsumerLiability$;
36125
- var init_pepperconsumerliability = __esm(() => {
37122
+ // src/models/components/consumerliabilitytypes.ts
37123
+ var ConsumerLiabilityTypes, ConsumerLiabilityTypes$inboundSchema, ConsumerLiabilityTypes$outboundSchema, ConsumerLiabilityTypes$;
37124
+ var init_consumerliabilitytypes = __esm(() => {
37125
+ init_esm();
37126
+ ConsumerLiabilityTypes = {
37127
+ Mortgage: "Mortgage",
37128
+ PersonalLoan: "Personal loan",
37129
+ CreditCard: "Credit card",
37130
+ Other: "Other",
37131
+ MotorVehicle: "Motor vehicle",
37132
+ AfterpayZipEtc: "Afterpay, Zip, etc…"
37133
+ };
37134
+ ConsumerLiabilityTypes$inboundSchema = nativeEnumType(ConsumerLiabilityTypes);
37135
+ ConsumerLiabilityTypes$outboundSchema = ConsumerLiabilityTypes$inboundSchema;
37136
+ ((ConsumerLiabilityTypes$) => {
37137
+ ConsumerLiabilityTypes$.inboundSchema = ConsumerLiabilityTypes$inboundSchema;
37138
+ ConsumerLiabilityTypes$.outboundSchema = ConsumerLiabilityTypes$outboundSchema;
37139
+ })(ConsumerLiabilityTypes$ ||= {});
37140
+ });
37141
+
37142
+ // src/models/components/liability.ts
37143
+ var Liability$inboundSchema, Liability$outboundSchema, Liability$;
37144
+ var init_liability = __esm(() => {
36126
37145
  init_esm();
36127
37146
  init_primitives();
36128
- PepperConsumerLiability$inboundSchema = objectType({
37147
+ init_consumerliabilitytypes();
37148
+ init_frequency();
37149
+ Liability$inboundSchema = objectType({
36129
37150
  _id: stringType().optional(),
36130
- liabilitiesType: stringType(),
37151
+ liabilitiesType: ConsumerLiabilityTypes$inboundSchema,
36131
37152
  outstandingAmount: stringType(),
36132
- description: stringType().optional(),
36133
37153
  limit: stringType(),
36134
- financier: stringType().optional(),
36135
- repaymentFrequency: stringType(),
36136
- repaymentAmount: stringType()
37154
+ financier: stringType(),
37155
+ repaymentFrequency: Frequency$inboundSchema,
37156
+ repaymentAmount: stringType(),
37157
+ description: stringType().optional()
36137
37158
  }).transform((v2) => {
36138
37159
  return remap(v2, {
36139
37160
  _id: "id"
36140
37161
  });
36141
37162
  });
36142
- PepperConsumerLiability$outboundSchema = objectType({
37163
+ Liability$outboundSchema = objectType({
36143
37164
  id: stringType().optional(),
36144
- liabilitiesType: stringType(),
37165
+ liabilitiesType: ConsumerLiabilityTypes$outboundSchema,
36145
37166
  outstandingAmount: stringType(),
36146
- description: stringType().optional(),
36147
37167
  limit: stringType(),
36148
- financier: stringType().optional(),
36149
- repaymentFrequency: stringType(),
36150
- repaymentAmount: stringType()
37168
+ financier: stringType(),
37169
+ repaymentFrequency: Frequency$outboundSchema,
37170
+ repaymentAmount: stringType(),
37171
+ description: stringType().optional()
36151
37172
  }).transform((v2) => {
36152
37173
  return remap(v2, {
36153
37174
  id: "_id"
36154
37175
  });
36155
37176
  });
36156
- ((PepperConsumerLiability$) => {
36157
- PepperConsumerLiability$.inboundSchema = PepperConsumerLiability$inboundSchema;
36158
- PepperConsumerLiability$.outboundSchema = PepperConsumerLiability$outboundSchema;
36159
- })(PepperConsumerLiability$ ||= {});
37177
+ ((Liability$) => {
37178
+ Liability$.inboundSchema = Liability$inboundSchema;
37179
+ Liability$.outboundSchema = Liability$outboundSchema;
37180
+ })(Liability$ ||= {});
36160
37181
  });
36161
37182
 
36162
37183
  // src/models/components/phonenumber.ts
36163
37184
  var PhoneNumber$inboundSchema, PhoneNumber$outboundSchema, PhoneNumber$;
36164
37185
  var init_phonenumber = __esm(() => {
36165
37186
  init_esm();
37187
+ init_primitives();
37188
+ init_timestatus();
36166
37189
  PhoneNumber$inboundSchema = objectType({
36167
- status: stringType(),
36168
- number: stringType()
37190
+ _id: stringType().optional(),
37191
+ number: stringType(),
37192
+ status: TimeStatus$inboundSchema.optional()
37193
+ }).transform((v2) => {
37194
+ return remap(v2, {
37195
+ _id: "id"
37196
+ });
36169
37197
  });
36170
37198
  PhoneNumber$outboundSchema = objectType({
36171
- status: stringType(),
36172
- number: stringType()
37199
+ id: stringType().optional(),
37200
+ number: stringType(),
37201
+ status: TimeStatus$outboundSchema.optional()
37202
+ }).transform((v2) => {
37203
+ return remap(v2, {
37204
+ id: "_id"
37205
+ });
36173
37206
  });
36174
37207
  ((PhoneNumber$) => {
36175
37208
  PhoneNumber$.inboundSchema = PhoneNumber$inboundSchema;
@@ -36177,357 +37210,810 @@ var init_phonenumber = __esm(() => {
36177
37210
  })(PhoneNumber$ ||= {});
36178
37211
  });
36179
37212
 
36180
- // src/models/components/pepperconsumercustomer.ts
36181
- var CreditProfile$inboundSchema, CreditProfile$outboundSchema, CreditProfile$, PepperConsumerCustomer$inboundSchema, PepperConsumerCustomer$outboundSchema, PepperConsumerCustomer$;
36182
- var init_pepperconsumercustomer = __esm(() => {
37213
+ // src/models/components/customer.ts
37214
+ var Customer$inboundSchema, Customer$outboundSchema, Customer$;
37215
+ var init_customer = __esm(() => {
36183
37216
  init_esm();
36184
37217
  init_primitives();
36185
37218
  init_address();
36186
37219
  init_applicantasset();
37220
+ init_creditprofile();
37221
+ init_customerdisclaimer();
37222
+ init_customerprofile();
37223
+ init_customertitle();
37224
+ init_document();
36187
37225
  init_email();
36188
37226
  init_employer();
36189
- init_pepperconsumercustomerprofile();
36190
- init_pepperconsumerincome();
36191
- init_pepperconsumerliability();
37227
+ init_expense();
37228
+ init_idstate();
37229
+ init_idtype();
37230
+ init_income();
37231
+ init_liability();
36192
37232
  init_phonenumber();
36193
- CreditProfile$inboundSchema = objectType({
36194
- score: numberType().int().optional()
36195
- });
36196
- CreditProfile$outboundSchema = objectType({
36197
- score: numberType().int().optional()
36198
- });
36199
- ((CreditProfile$) => {
36200
- CreditProfile$.inboundSchema = CreditProfile$inboundSchema;
36201
- CreditProfile$.outboundSchema = CreditProfile$outboundSchema;
36202
- })(CreditProfile$ ||= {});
36203
- PepperConsumerCustomer$inboundSchema = objectType({
36204
- _id: stringType(),
36205
- customerTitle: stringType(),
36206
- creditProfile: lazyType(() => CreditProfile$inboundSchema).optional(),
36207
- firstName: stringType(),
37233
+ Customer$inboundSchema = objectType({
37234
+ _id: stringType().optional(),
37235
+ customerTitle: CustomerTitle$inboundSchema.optional(),
37236
+ firstName: stringType().optional(),
36208
37237
  middleNames: stringType().optional(),
36209
- lastName: stringType(),
37238
+ lastName: stringType().optional(),
36210
37239
  dateOfBirth: stringType().optional(),
36211
- documents: anyType().optional(),
36212
- phoneNumbers: arrayType(PhoneNumber$inboundSchema).optional(),
36213
- emails: arrayType(Email$inboundSchema).optional(),
36214
- IDNumber: stringType(),
36215
- IDExpiryDate: stringType(),
36216
- IDCardNumber: stringType(),
36217
- customerProfile: PepperConsumerCustomerProfile$inboundSchema.optional(),
37240
+ IDNumber: stringType().optional(),
37241
+ IDCardNumber: stringType().optional(),
37242
+ IDType: IDType$inboundSchema.optional(),
37243
+ IDExpiryDate: stringType().optional(),
37244
+ IDState: IDState$inboundSchema.optional(),
37245
+ IDCountry: stringType().optional(),
37246
+ licenceState: stringType().optional(),
37247
+ applicantType: stringType().optional(),
37248
+ isCustomerDetailsSaved: booleanType().optional(),
37249
+ isDetailsLinkSend: booleanType().optional(),
37250
+ customerProfile: CustomerProfile$inboundSchema.optional(),
36218
37251
  addresses: arrayType(Address$inboundSchema).optional(),
36219
- employers: arrayType(Employer$inboundSchema).optional(),
36220
- expenses: arrayType(anyType()).optional(),
36221
- liabilities: arrayType(PepperConsumerLiability$inboundSchema).optional(),
36222
- income: arrayType(PepperConsumerIncome$inboundSchema).optional(),
37252
+ emails: arrayType(Email$inboundSchema).optional(),
37253
+ phoneNumbers: arrayType(PhoneNumber$inboundSchema).optional(),
36223
37254
  customerAssets: arrayType(ApplicantAsset$inboundSchema).optional(),
36224
- customerDisclaimer: anyType().optional(),
36225
- title: stringType().optional()
37255
+ liabilities: arrayType(Liability$inboundSchema).optional(),
37256
+ applications: arrayType(stringType()).optional(),
37257
+ entities: arrayType(stringType()).optional(),
37258
+ employers: arrayType(Employer$inboundSchema).optional(),
37259
+ income: arrayType(Income$inboundSchema).optional(),
37260
+ expenses: arrayType(Expense$inboundSchema).optional(),
37261
+ documents: arrayType(Document$inboundSchema).optional(),
37262
+ customerDisclaimer: CustomerDisclaimer$inboundSchema.optional(),
37263
+ creditProfile: CreditProfile$inboundSchema.optional()
36226
37264
  }).transform((v2) => {
36227
37265
  return remap(v2, {
36228
37266
  _id: "id",
36229
37267
  IDNumber: "idNumber",
37268
+ IDCardNumber: "idCardNumber",
37269
+ IDType: "idType",
36230
37270
  IDExpiryDate: "idExpiryDate",
36231
- IDCardNumber: "idCardNumber"
37271
+ IDState: "idState",
37272
+ IDCountry: "idCountry"
36232
37273
  });
36233
37274
  });
36234
- PepperConsumerCustomer$outboundSchema = objectType({
36235
- id: stringType(),
36236
- customerTitle: stringType(),
36237
- creditProfile: lazyType(() => CreditProfile$outboundSchema).optional(),
36238
- firstName: stringType(),
37275
+ Customer$outboundSchema = objectType({
37276
+ id: stringType().optional(),
37277
+ customerTitle: CustomerTitle$outboundSchema.optional(),
37278
+ firstName: stringType().optional(),
36239
37279
  middleNames: stringType().optional(),
36240
- lastName: stringType(),
37280
+ lastName: stringType().optional(),
36241
37281
  dateOfBirth: stringType().optional(),
36242
- documents: anyType().optional(),
36243
- phoneNumbers: arrayType(PhoneNumber$outboundSchema).optional(),
36244
- emails: arrayType(Email$outboundSchema).optional(),
36245
- idNumber: stringType(),
36246
- idExpiryDate: stringType(),
36247
- idCardNumber: stringType(),
36248
- customerProfile: PepperConsumerCustomerProfile$outboundSchema.optional(),
37282
+ idNumber: stringType().optional(),
37283
+ idCardNumber: stringType().optional(),
37284
+ idType: IDType$outboundSchema.optional(),
37285
+ idExpiryDate: stringType().optional(),
37286
+ idState: IDState$outboundSchema.optional(),
37287
+ idCountry: stringType().optional(),
37288
+ licenceState: stringType().optional(),
37289
+ applicantType: stringType().optional(),
37290
+ isCustomerDetailsSaved: booleanType().optional(),
37291
+ isDetailsLinkSend: booleanType().optional(),
37292
+ customerProfile: CustomerProfile$outboundSchema.optional(),
36249
37293
  addresses: arrayType(Address$outboundSchema).optional(),
36250
- employers: arrayType(Employer$outboundSchema).optional(),
36251
- expenses: arrayType(anyType()).optional(),
36252
- liabilities: arrayType(PepperConsumerLiability$outboundSchema).optional(),
36253
- income: arrayType(PepperConsumerIncome$outboundSchema).optional(),
37294
+ emails: arrayType(Email$outboundSchema).optional(),
37295
+ phoneNumbers: arrayType(PhoneNumber$outboundSchema).optional(),
36254
37296
  customerAssets: arrayType(ApplicantAsset$outboundSchema).optional(),
36255
- customerDisclaimer: anyType().optional(),
36256
- title: stringType().optional()
37297
+ liabilities: arrayType(Liability$outboundSchema).optional(),
37298
+ applications: arrayType(stringType()).optional(),
37299
+ entities: arrayType(stringType()).optional(),
37300
+ employers: arrayType(Employer$outboundSchema).optional(),
37301
+ income: arrayType(Income$outboundSchema).optional(),
37302
+ expenses: arrayType(Expense$outboundSchema).optional(),
37303
+ documents: arrayType(Document$outboundSchema).optional(),
37304
+ customerDisclaimer: CustomerDisclaimer$outboundSchema.optional(),
37305
+ creditProfile: CreditProfile$outboundSchema.optional()
36257
37306
  }).transform((v2) => {
36258
37307
  return remap(v2, {
36259
37308
  id: "_id",
36260
37309
  idNumber: "IDNumber",
37310
+ idCardNumber: "IDCardNumber",
37311
+ idType: "IDType",
36261
37312
  idExpiryDate: "IDExpiryDate",
36262
- idCardNumber: "IDCardNumber"
37313
+ idState: "IDState",
37314
+ idCountry: "IDCountry"
36263
37315
  });
36264
37316
  });
36265
- ((PepperConsumerCustomer$) => {
36266
- PepperConsumerCustomer$.inboundSchema = PepperConsumerCustomer$inboundSchema;
36267
- PepperConsumerCustomer$.outboundSchema = PepperConsumerCustomer$outboundSchema;
36268
- })(PepperConsumerCustomer$ ||= {});
37317
+ ((Customer$) => {
37318
+ Customer$.inboundSchema = Customer$inboundSchema;
37319
+ Customer$.outboundSchema = Customer$outboundSchema;
37320
+ })(Customer$ ||= {});
37321
+ });
37322
+
37323
+ // src/models/components/entitystatus.ts
37324
+ var EntityStatus, EntityStatus$inboundSchema, EntityStatus$outboundSchema, EntityStatus$;
37325
+ var init_entitystatus = __esm(() => {
37326
+ init_esm();
37327
+ EntityStatus = {
37328
+ Active: "Active",
37329
+ Inactive: "Inactive"
37330
+ };
37331
+ EntityStatus$inboundSchema = nativeEnumType(EntityStatus);
37332
+ EntityStatus$outboundSchema = EntityStatus$inboundSchema;
37333
+ ((EntityStatus$) => {
37334
+ EntityStatus$.inboundSchema = EntityStatus$inboundSchema;
37335
+ EntityStatus$.outboundSchema = EntityStatus$outboundSchema;
37336
+ })(EntityStatus$ ||= {});
36269
37337
  });
36270
37338
 
36271
- // src/models/components/pepperconsumerentity.ts
36272
- var PepperConsumerEntity$inboundSchema, PepperConsumerEntity$outboundSchema, PepperConsumerEntity$;
36273
- var init_pepperconsumerentity = __esm(() => {
37339
+ // src/models/components/entity.ts
37340
+ var Entity$inboundSchema, Entity$outboundSchema, Entity$;
37341
+ var init_entity = __esm(() => {
36274
37342
  init_esm();
36275
37343
  init_primitives();
36276
37344
  init_address();
36277
- PepperConsumerEntity$inboundSchema = objectType({
37345
+ init_email();
37346
+ init_entitystatus();
37347
+ init_entitytype();
37348
+ init_idstate();
37349
+ init_industrytypes();
37350
+ init_phonenumber();
37351
+ Entity$inboundSchema = objectType({
36278
37352
  _id: stringType().optional(),
36279
37353
  abn: stringType().optional(),
36280
37354
  abnStatusEffectiveFrom: stringType().optional(),
36281
37355
  acn: stringType().optional(),
36282
- addresses: arrayType(Address$inboundSchema).optional(),
36283
- businessNames: arrayType(stringType()).optional(),
36284
- contactId: stringType().optional(),
36285
37356
  entityName: stringType().optional(),
36286
- entityType: stringType().optional(),
37357
+ status: EntityStatus$inboundSchema.optional(),
37358
+ state: IDState$inboundSchema.optional(),
37359
+ entityType: EntityType$inboundSchema.optional(),
36287
37360
  gst: stringType().optional(),
36288
- industryType: stringType().optional(),
36289
- manager: stringType().optional(),
36290
- state: stringType().optional(),
36291
- status: stringType().optional(),
36292
37361
  timeInBusiness: stringType().optional(),
36293
- turnover: numberType().optional()
37362
+ turnover: numberType().optional(),
37363
+ industryType: IndustryTypes$inboundSchema.optional(),
37364
+ addresses: arrayType(Address$inboundSchema).optional(),
37365
+ emails: arrayType(Email$inboundSchema).optional(),
37366
+ phoneNumbers: arrayType(PhoneNumber$inboundSchema).optional(),
37367
+ businessNames: arrayType(stringType()).optional(),
37368
+ directors: arrayType(anyType()).optional(),
37369
+ shareHolders: arrayType(anyType()).optional(),
37370
+ beneficiaries: arrayType(anyType()).optional(),
37371
+ shares: arrayType(anyType()).optional(),
37372
+ businessProfile: arrayType(anyType()).optional(),
37373
+ bankDetails: arrayType(anyType()).optional(),
37374
+ documents: arrayType(anyType()).optional(),
37375
+ customers: arrayType(stringType()).optional(),
37376
+ applications: arrayType(stringType()).optional()
36294
37377
  }).transform((v2) => {
36295
37378
  return remap(v2, {
36296
37379
  _id: "id"
36297
37380
  });
36298
37381
  });
36299
- PepperConsumerEntity$outboundSchema = objectType({
37382
+ Entity$outboundSchema = objectType({
36300
37383
  id: stringType().optional(),
36301
37384
  abn: stringType().optional(),
36302
37385
  abnStatusEffectiveFrom: stringType().optional(),
36303
37386
  acn: stringType().optional(),
36304
- addresses: arrayType(Address$outboundSchema).optional(),
36305
- businessNames: arrayType(stringType()).optional(),
36306
- contactId: stringType().optional(),
36307
37387
  entityName: stringType().optional(),
36308
- entityType: stringType().optional(),
37388
+ status: EntityStatus$outboundSchema.optional(),
37389
+ state: IDState$outboundSchema.optional(),
37390
+ entityType: EntityType$outboundSchema.optional(),
36309
37391
  gst: stringType().optional(),
36310
- industryType: stringType().optional(),
36311
- manager: stringType().optional(),
36312
- state: stringType().optional(),
36313
- status: stringType().optional(),
36314
37392
  timeInBusiness: stringType().optional(),
36315
- turnover: numberType().optional()
37393
+ turnover: numberType().optional(),
37394
+ industryType: IndustryTypes$outboundSchema.optional(),
37395
+ addresses: arrayType(Address$outboundSchema).optional(),
37396
+ emails: arrayType(Email$outboundSchema).optional(),
37397
+ phoneNumbers: arrayType(PhoneNumber$outboundSchema).optional(),
37398
+ businessNames: arrayType(stringType()).optional(),
37399
+ directors: arrayType(anyType()).optional(),
37400
+ shareHolders: arrayType(anyType()).optional(),
37401
+ beneficiaries: arrayType(anyType()).optional(),
37402
+ shares: arrayType(anyType()).optional(),
37403
+ businessProfile: arrayType(anyType()).optional(),
37404
+ bankDetails: arrayType(anyType()).optional(),
37405
+ documents: arrayType(anyType()).optional(),
37406
+ customers: arrayType(stringType()).optional(),
37407
+ applications: arrayType(stringType()).optional()
36316
37408
  }).transform((v2) => {
36317
37409
  return remap(v2, {
36318
37410
  id: "_id"
36319
37411
  });
36320
37412
  });
36321
- ((PepperConsumerEntity$) => {
36322
- PepperConsumerEntity$.inboundSchema = PepperConsumerEntity$inboundSchema;
36323
- PepperConsumerEntity$.outboundSchema = PepperConsumerEntity$outboundSchema;
36324
- })(PepperConsumerEntity$ ||= {});
37413
+ ((Entity$) => {
37414
+ Entity$.inboundSchema = Entity$inboundSchema;
37415
+ Entity$.outboundSchema = Entity$outboundSchema;
37416
+ })(Entity$ ||= {});
37417
+ });
37418
+
37419
+ // src/models/components/lendercredentials.ts
37420
+ var LenderCredentials$inboundSchema, LenderCredentials$outboundSchema, LenderCredentials$;
37421
+ var init_lendercredentials = __esm(() => {
37422
+ init_esm();
37423
+ init_primitives();
37424
+ LenderCredentials$inboundSchema = objectType({
37425
+ _id: stringType().optional(),
37426
+ ORIGIN_URL: stringType().optional(),
37427
+ apiKey: stringType().optional(),
37428
+ brokerId: stringType().optional(),
37429
+ lender: stringType().optional(),
37430
+ lenderEmail: stringType().optional(),
37431
+ organisationId: stringType().optional(),
37432
+ password: stringType().optional(),
37433
+ user: stringType().optional(),
37434
+ userId: stringType().optional(),
37435
+ username: stringType().optional()
37436
+ }).transform((v2) => {
37437
+ return remap(v2, {
37438
+ _id: "id",
37439
+ ORIGIN_URL: "originUrl"
37440
+ });
37441
+ });
37442
+ LenderCredentials$outboundSchema = objectType({
37443
+ id: stringType().optional(),
37444
+ originUrl: stringType().optional(),
37445
+ apiKey: stringType().optional(),
37446
+ brokerId: stringType().optional(),
37447
+ lender: stringType().optional(),
37448
+ lenderEmail: stringType().optional(),
37449
+ organisationId: stringType().optional(),
37450
+ password: stringType().optional(),
37451
+ user: stringType().optional(),
37452
+ userId: stringType().optional(),
37453
+ username: stringType().optional()
37454
+ }).transform((v2) => {
37455
+ return remap(v2, {
37456
+ id: "_id",
37457
+ originUrl: "ORIGIN_URL"
37458
+ });
37459
+ });
37460
+ ((LenderCredentials$) => {
37461
+ LenderCredentials$.inboundSchema = LenderCredentials$inboundSchema;
37462
+ LenderCredentials$.outboundSchema = LenderCredentials$outboundSchema;
37463
+ })(LenderCredentials$ ||= {});
37464
+ });
37465
+
37466
+ // src/models/components/feefrequency.ts
37467
+ var FeeFrequency, FeeFrequency$inboundSchema, FeeFrequency$outboundSchema, FeeFrequency$;
37468
+ var init_feefrequency = __esm(() => {
37469
+ init_esm();
37470
+ FeeFrequency = {
37471
+ Monthly: "monthly",
37472
+ Weekly: "weekly",
37473
+ Fortnightly: "fortnightly",
37474
+ Financed: "financed",
37475
+ Upfront: "upfront"
37476
+ };
37477
+ FeeFrequency$inboundSchema = nativeEnumType(FeeFrequency);
37478
+ FeeFrequency$outboundSchema = FeeFrequency$inboundSchema;
37479
+ ((FeeFrequency$) => {
37480
+ FeeFrequency$.inboundSchema = FeeFrequency$inboundSchema;
37481
+ FeeFrequency$.outboundSchema = FeeFrequency$outboundSchema;
37482
+ })(FeeFrequency$ ||= {});
37483
+ });
37484
+
37485
+ // src/models/components/feetype.ts
37486
+ var FeeType, FeeType$inboundSchema, FeeType$outboundSchema, FeeType$;
37487
+ var init_feetype = __esm(() => {
37488
+ init_esm();
37489
+ FeeType = {
37490
+ EstablishmentFee: "Establishment fee",
37491
+ DocumentFee: "Document fee",
37492
+ ApplicationFee: "Application fee",
37493
+ OriginationFee: "Origination fee"
37494
+ };
37495
+ FeeType$inboundSchema = nativeEnumType(FeeType);
37496
+ FeeType$outboundSchema = FeeType$inboundSchema;
37497
+ ((FeeType$) => {
37498
+ FeeType$.inboundSchema = FeeType$inboundSchema;
37499
+ FeeType$.outboundSchema = FeeType$outboundSchema;
37500
+ })(FeeType$ ||= {});
37501
+ });
37502
+
37503
+ // src/models/components/fee.ts
37504
+ var Fee$inboundSchema, Fee$outboundSchema, Fee$;
37505
+ var init_fee = __esm(() => {
37506
+ init_esm();
37507
+ init_feefrequency();
37508
+ init_feetype();
37509
+ Fee$inboundSchema = objectType({
37510
+ key: stringType().optional(),
37511
+ name: FeeType$inboundSchema.optional(),
37512
+ value: stringType().optional(),
37513
+ frequency: FeeFrequency$inboundSchema.optional()
37514
+ });
37515
+ Fee$outboundSchema = objectType({
37516
+ key: stringType().optional(),
37517
+ name: FeeType$outboundSchema.optional(),
37518
+ value: stringType().optional(),
37519
+ frequency: FeeFrequency$outboundSchema.optional()
37520
+ });
37521
+ ((Fee$) => {
37522
+ Fee$.inboundSchema = Fee$inboundSchema;
37523
+ Fee$.outboundSchema = Fee$outboundSchema;
37524
+ })(Fee$ ||= {});
36325
37525
  });
36326
37526
 
36327
- // src/models/components/pepperconsumerloandetails.ts
36328
- var PepperConsumerLoanDetails$inboundSchema, PepperConsumerLoanDetails$outboundSchema, PepperConsumerLoanDetails$;
36329
- var init_pepperconsumerloandetails = __esm(() => {
37527
+ // src/models/components/loanpurposetype.ts
37528
+ var LoanPurposeType, LoanPurposeType$inboundSchema, LoanPurposeType$outboundSchema, LoanPurposeType$;
37529
+ var init_loanpurposetype = __esm(() => {
36330
37530
  init_esm();
37531
+ LoanPurposeType = {
37532
+ Vehicle: "Vehicle",
37533
+ DebtConsolidation: "Debt Consolidation",
37534
+ HomeImprovements: "Home Improvements",
37535
+ MedicalAndDental: "Medical & Dental",
37536
+ HouseholdFurnishings: "Household Furnishings",
37537
+ Education: "Education",
37538
+ Travel: "Travel",
37539
+ Wedding: "Wedding",
37540
+ MortgageCostFunding: "Mortgage Cost Funding",
37541
+ OtherPersonalUse: "Other Personal Use"
37542
+ };
37543
+ LoanPurposeType$inboundSchema = nativeEnumType(LoanPurposeType);
37544
+ LoanPurposeType$outboundSchema = LoanPurposeType$inboundSchema;
37545
+ ((LoanPurposeType$) => {
37546
+ LoanPurposeType$.inboundSchema = LoanPurposeType$inboundSchema;
37547
+ LoanPurposeType$.outboundSchema = LoanPurposeType$outboundSchema;
37548
+ })(LoanPurposeType$ ||= {});
37549
+ });
37550
+
37551
+ // src/models/components/loandetails.ts
37552
+ var LoanDetails$inboundSchema, LoanDetails$outboundSchema, LoanDetails$;
37553
+ var init_loandetails = __esm(() => {
37554
+ init_esm();
37555
+ init_primitives();
36331
37556
  init_fee();
36332
- init_label();
36333
- PepperConsumerLoanDetails$inboundSchema = objectType({
36334
- ageOfAsset: stringType().optional(),
36335
- assetType: stringType().optional(),
36336
- assetValue: numberType().optional(),
36337
- balloon: numberType().optional(),
37557
+ init_loanpurposetype();
37558
+ LoanDetails$inboundSchema = objectType({
37559
+ _id: stringType().optional(),
37560
+ repayments: numberType().optional(),
37561
+ loanAmount: numberType().optional(),
37562
+ requestedLoanAmount: numberType().optional(),
37563
+ term: numberType().optional(),
36338
37564
  brokerage: numberType().optional(),
36339
- brokerageAdjustment: numberType().optional(),
36340
37565
  brokerageAmount: numberType().optional(),
36341
- condition: stringType().optional(),
36342
- deposit: numberType(),
36343
- description: stringType().optional(),
37566
+ brokerageAdjustment: numberType().optional(),
37567
+ balloon: numberType().optional(),
37568
+ balloonAmount: numberType().optional(),
37569
+ deposit: numberType().optional(),
37570
+ tradeIn: numberType().optional(),
37571
+ payout: numberType().optional(),
37572
+ rate: numberType().optional(),
37573
+ rateAdjustment: numberType().optional(),
37574
+ cash: numberType().optional(),
37575
+ originationFee: numberType().optional(),
37576
+ originationFeeAmount: numberType().optional(),
36344
37577
  fees: arrayType(Fee$inboundSchema).optional(),
36345
- glassesMake: Label$inboundSchema.optional(),
36346
- glassesModel: Label$inboundSchema.optional(),
36347
- glassesNVIC: anyType().optional(),
36348
- glassesVariant: Label$inboundSchema.optional(),
36349
- make: stringType().optional(),
36350
- model: stringType().optional(),
37578
+ lender: stringType().optional(),
37579
+ inArrears: stringType().optional(),
37580
+ application: stringType().optional(),
37581
+ purpose: LoanPurposeType$inboundSchema.optional(),
37582
+ frequency: numberType().optional(),
37583
+ paymentMode: stringType().optional(),
37584
+ productType: stringType().optional()
37585
+ }).transform((v2) => {
37586
+ return remap(v2, {
37587
+ _id: "id"
37588
+ });
37589
+ });
37590
+ LoanDetails$outboundSchema = objectType({
37591
+ id: stringType().optional(),
37592
+ repayments: numberType().optional(),
36351
37593
  loanAmount: numberType().optional(),
36352
- payout: numberType(),
36353
- rate: numberType().optional(),
36354
- registrationNumber: stringType().optional(),
36355
- registrationState: stringType().optional(),
36356
- specifications: anyType().optional(),
36357
- supplierABN: stringType().optional(),
36358
- supplierAddress: stringType().optional(),
36359
- supplierEmail: stringType().optional(),
36360
- supplierName: stringType().optional(),
36361
- supplierPhone: stringType().optional(),
37594
+ requestedLoanAmount: numberType().optional(),
36362
37595
  term: numberType().optional(),
36363
- tradeIn: numberType(),
36364
- typeOfSale: stringType().optional(),
36365
- vin: stringType().optional()
37596
+ brokerage: numberType().optional(),
37597
+ brokerageAmount: numberType().optional(),
37598
+ brokerageAdjustment: numberType().optional(),
37599
+ balloon: numberType().optional(),
37600
+ balloonAmount: numberType().optional(),
37601
+ deposit: numberType().optional(),
37602
+ tradeIn: numberType().optional(),
37603
+ payout: numberType().optional(),
37604
+ rate: numberType().optional(),
37605
+ rateAdjustment: numberType().optional(),
37606
+ cash: numberType().optional(),
37607
+ originationFee: numberType().optional(),
37608
+ originationFeeAmount: numberType().optional(),
37609
+ fees: arrayType(Fee$outboundSchema).optional(),
37610
+ lender: stringType().optional(),
37611
+ inArrears: stringType().optional(),
37612
+ application: stringType().optional(),
37613
+ purpose: LoanPurposeType$outboundSchema.optional(),
37614
+ frequency: numberType().optional(),
37615
+ paymentMode: stringType().optional(),
37616
+ productType: stringType().optional()
37617
+ }).transform((v2) => {
37618
+ return remap(v2, {
37619
+ id: "_id"
37620
+ });
37621
+ });
37622
+ ((LoanDetails$) => {
37623
+ LoanDetails$.inboundSchema = LoanDetails$inboundSchema;
37624
+ LoanDetails$.outboundSchema = LoanDetails$outboundSchema;
37625
+ })(LoanDetails$ ||= {});
37626
+ });
37627
+
37628
+ // src/models/components/productdetails.ts
37629
+ var ProductDetails$inboundSchema, ProductDetails$outboundSchema, ProductDetails$;
37630
+ var init_productdetails = __esm(() => {
37631
+ init_esm();
37632
+ ProductDetails$inboundSchema = objectType({
37633
+ productName: stringType(),
37634
+ productType: stringType()
37635
+ });
37636
+ ProductDetails$outboundSchema = objectType({
37637
+ productName: stringType(),
37638
+ productType: stringType()
37639
+ });
37640
+ ((ProductDetails$) => {
37641
+ ProductDetails$.inboundSchema = ProductDetails$inboundSchema;
37642
+ ProductDetails$.outboundSchema = ProductDetails$outboundSchema;
37643
+ })(ProductDetails$ ||= {});
37644
+ });
37645
+
37646
+ // src/models/components/user.ts
37647
+ var Organisation$inboundSchema, Organisation$outboundSchema, Organisation$, User$inboundSchema, User$outboundSchema, User$;
37648
+ var init_user = __esm(() => {
37649
+ init_esm();
37650
+ init_primitives();
37651
+ init_email();
37652
+ Organisation$inboundSchema = objectType({
37653
+ name: stringType().optional()
37654
+ });
37655
+ Organisation$outboundSchema = objectType({
37656
+ name: stringType().optional()
37657
+ });
37658
+ ((Organisation$) => {
37659
+ Organisation$.inboundSchema = Organisation$inboundSchema;
37660
+ Organisation$.outboundSchema = Organisation$outboundSchema;
37661
+ })(Organisation$ ||= {});
37662
+ User$inboundSchema = objectType({
37663
+ _id: stringType().optional(),
37664
+ organisation: lazyType(() => Organisation$inboundSchema).optional(),
37665
+ email: Email$inboundSchema.optional(),
37666
+ firstName: stringType().optional(),
37667
+ lastName: stringType().optional()
37668
+ }).transform((v2) => {
37669
+ return remap(v2, {
37670
+ _id: "id"
37671
+ });
37672
+ });
37673
+ User$outboundSchema = objectType({
37674
+ id: stringType().optional(),
37675
+ organisation: lazyType(() => Organisation$outboundSchema).optional(),
37676
+ email: Email$outboundSchema.optional(),
37677
+ firstName: stringType().optional(),
37678
+ lastName: stringType().optional()
37679
+ }).transform((v2) => {
37680
+ return remap(v2, {
37681
+ id: "_id"
37682
+ });
37683
+ });
37684
+ ((User$) => {
37685
+ User$.inboundSchema = User$inboundSchema;
37686
+ User$.outboundSchema = User$outboundSchema;
37687
+ })(User$ ||= {});
37688
+ });
37689
+
37690
+ // src/models/components/application.ts
37691
+ var CustomerAcknowledgement$inboundSchema, CustomerAcknowledgement$outboundSchema, CustomerAcknowledgement$, Notes$inboundSchema, Notes$outboundSchema, Notes$, Application$inboundSchema, Application$outboundSchema, Application$;
37692
+ var init_application = __esm(() => {
37693
+ init_esm();
37694
+ init_primitives();
37695
+ init_asset();
37696
+ init_customer();
37697
+ init_entity();
37698
+ init_lendercredentials();
37699
+ init_loandetails();
37700
+ init_productdetails();
37701
+ init_user();
37702
+ CustomerAcknowledgement$inboundSchema = objectType({
37703
+ is_acknowledgement_accept: booleanType()
37704
+ }).transform((v2) => {
37705
+ return remap(v2, {
37706
+ is_acknowledgement_accept: "isAcknowledgementAccept"
37707
+ });
37708
+ });
37709
+ CustomerAcknowledgement$outboundSchema = objectType({
37710
+ isAcknowledgementAccept: booleanType()
37711
+ }).transform((v2) => {
37712
+ return remap(v2, {
37713
+ isAcknowledgementAccept: "is_acknowledgement_accept"
37714
+ });
37715
+ });
37716
+ ((CustomerAcknowledgement$) => {
37717
+ CustomerAcknowledgement$.inboundSchema = CustomerAcknowledgement$inboundSchema;
37718
+ CustomerAcknowledgement$.outboundSchema = CustomerAcknowledgement$outboundSchema;
37719
+ })(CustomerAcknowledgement$ ||= {});
37720
+ Notes$inboundSchema = objectType({
37721
+ value: stringType()
37722
+ });
37723
+ Notes$outboundSchema = objectType({
37724
+ value: stringType()
37725
+ });
37726
+ ((Notes$) => {
37727
+ Notes$.inboundSchema = Notes$inboundSchema;
37728
+ Notes$.outboundSchema = Notes$outboundSchema;
37729
+ })(Notes$ ||= {});
37730
+ Application$inboundSchema = objectType({
37731
+ _id: stringType(),
37732
+ customer_acknowledgement: lazyType(() => CustomerAcknowledgement$inboundSchema).optional(),
37733
+ user: User$inboundSchema,
37734
+ entities: arrayType(Entity$inboundSchema),
37735
+ asset: Asset$inboundSchema,
37736
+ customers: arrayType(Customer$inboundSchema),
37737
+ loanDetails: LoanDetails$inboundSchema,
37738
+ productDetails: ProductDetails$inboundSchema,
37739
+ comments: arrayType(stringType()).optional(),
37740
+ humanId: stringType(),
37741
+ notes: lazyType(() => Notes$inboundSchema).optional(),
37742
+ lenderCredentials: LenderCredentials$inboundSchema,
37743
+ status: stringType().optional(),
37744
+ transactions: arrayType(anyType()).optional()
37745
+ }).transform((v2) => {
37746
+ return remap(v2, {
37747
+ _id: "id",
37748
+ customer_acknowledgement: "customerAcknowledgement"
37749
+ });
37750
+ });
37751
+ Application$outboundSchema = objectType({
37752
+ id: stringType(),
37753
+ customerAcknowledgement: lazyType(() => CustomerAcknowledgement$outboundSchema).optional(),
37754
+ user: User$outboundSchema,
37755
+ entities: arrayType(Entity$outboundSchema),
37756
+ asset: Asset$outboundSchema,
37757
+ customers: arrayType(Customer$outboundSchema),
37758
+ loanDetails: LoanDetails$outboundSchema,
37759
+ productDetails: ProductDetails$outboundSchema,
37760
+ comments: arrayType(stringType()).optional(),
37761
+ humanId: stringType(),
37762
+ notes: lazyType(() => Notes$outboundSchema).optional(),
37763
+ lenderCredentials: LenderCredentials$outboundSchema,
37764
+ status: stringType().optional(),
37765
+ transactions: arrayType(anyType()).optional()
37766
+ }).transform((v2) => {
37767
+ return remap(v2, {
37768
+ id: "_id",
37769
+ customerAcknowledgement: "customer_acknowledgement"
37770
+ });
37771
+ });
37772
+ ((Application$) => {
37773
+ Application$.inboundSchema = Application$inboundSchema;
37774
+ Application$.outboundSchema = Application$outboundSchema;
37775
+ })(Application$ ||= {});
37776
+ });
37777
+
37778
+ // src/models/components/forbiddenerror.ts
37779
+ var ForbiddenErrorCode, ForbiddenErrorTitle, ForbiddenErrorStatus, ForbiddenErrorDetail, ForbiddenErrorCode$inboundSchema, ForbiddenErrorCode$outboundSchema, ForbiddenErrorCode$, ForbiddenErrorTitle$inboundSchema, ForbiddenErrorTitle$outboundSchema, ForbiddenErrorTitle$, ForbiddenErrorStatus$inboundSchema, ForbiddenErrorStatus$outboundSchema, ForbiddenErrorStatus$, ForbiddenErrorDetail$inboundSchema, ForbiddenErrorDetail$outboundSchema, ForbiddenErrorDetail$, ForbiddenError$inboundSchema, ForbiddenError$outboundSchema, ForbiddenError$;
37780
+ var init_forbiddenerror = __esm(() => {
37781
+ init_esm();
37782
+ init_apierrorlinks();
37783
+ init_errorsource();
37784
+ ForbiddenErrorCode = {
37785
+ AuthorizationError: "AUTHORIZATION_ERROR"
37786
+ };
37787
+ ForbiddenErrorTitle = {
37788
+ Forbidden: "Forbidden"
37789
+ };
37790
+ ForbiddenErrorStatus = {
37791
+ FourHundredAndThree: "403"
37792
+ };
37793
+ ForbiddenErrorDetail = {
37794
+ YouDoNotHavePermissionToPerformThisAction: "You do not have permission to perform this action."
37795
+ };
37796
+ ForbiddenErrorCode$inboundSchema = nativeEnumType(ForbiddenErrorCode);
37797
+ ForbiddenErrorCode$outboundSchema = ForbiddenErrorCode$inboundSchema;
37798
+ ((ForbiddenErrorCode$) => {
37799
+ ForbiddenErrorCode$.inboundSchema = ForbiddenErrorCode$inboundSchema;
37800
+ ForbiddenErrorCode$.outboundSchema = ForbiddenErrorCode$outboundSchema;
37801
+ })(ForbiddenErrorCode$ ||= {});
37802
+ ForbiddenErrorTitle$inboundSchema = nativeEnumType(ForbiddenErrorTitle);
37803
+ ForbiddenErrorTitle$outboundSchema = ForbiddenErrorTitle$inboundSchema;
37804
+ ((ForbiddenErrorTitle$) => {
37805
+ ForbiddenErrorTitle$.inboundSchema = ForbiddenErrorTitle$inboundSchema;
37806
+ ForbiddenErrorTitle$.outboundSchema = ForbiddenErrorTitle$outboundSchema;
37807
+ })(ForbiddenErrorTitle$ ||= {});
37808
+ ForbiddenErrorStatus$inboundSchema = nativeEnumType(ForbiddenErrorStatus);
37809
+ ForbiddenErrorStatus$outboundSchema = ForbiddenErrorStatus$inboundSchema;
37810
+ ((ForbiddenErrorStatus$) => {
37811
+ ForbiddenErrorStatus$.inboundSchema = ForbiddenErrorStatus$inboundSchema;
37812
+ ForbiddenErrorStatus$.outboundSchema = ForbiddenErrorStatus$outboundSchema;
37813
+ })(ForbiddenErrorStatus$ ||= {});
37814
+ ForbiddenErrorDetail$inboundSchema = nativeEnumType(ForbiddenErrorDetail);
37815
+ ForbiddenErrorDetail$outboundSchema = ForbiddenErrorDetail$inboundSchema;
37816
+ ((ForbiddenErrorDetail$) => {
37817
+ ForbiddenErrorDetail$.inboundSchema = ForbiddenErrorDetail$inboundSchema;
37818
+ ForbiddenErrorDetail$.outboundSchema = ForbiddenErrorDetail$outboundSchema;
37819
+ })(ForbiddenErrorDetail$ ||= {});
37820
+ ForbiddenError$inboundSchema = objectType({
37821
+ links: APIErrorLinks$inboundSchema.optional(),
37822
+ code: ForbiddenErrorCode$inboundSchema,
37823
+ title: ForbiddenErrorTitle$inboundSchema,
37824
+ status: ForbiddenErrorStatus$inboundSchema,
37825
+ source: ErrorSource$inboundSchema.optional(),
37826
+ detail: ForbiddenErrorDetail$inboundSchema,
37827
+ meta: recordType(anyType()).optional()
36366
37828
  });
36367
- PepperConsumerLoanDetails$outboundSchema = objectType({
36368
- ageOfAsset: stringType().optional(),
36369
- assetType: stringType().optional(),
36370
- assetValue: numberType().optional(),
36371
- balloon: numberType().optional(),
36372
- brokerage: numberType().optional(),
36373
- brokerageAdjustment: numberType().optional(),
36374
- brokerageAmount: numberType().optional(),
36375
- condition: stringType().optional(),
36376
- deposit: numberType(),
36377
- description: stringType().optional(),
36378
- fees: arrayType(Fee$outboundSchema).optional(),
36379
- glassesMake: Label$outboundSchema.optional(),
36380
- glassesModel: Label$outboundSchema.optional(),
36381
- glassesNVIC: anyType().optional(),
36382
- glassesVariant: Label$outboundSchema.optional(),
36383
- make: stringType().optional(),
36384
- model: stringType().optional(),
36385
- loanAmount: numberType().optional(),
36386
- payout: numberType(),
36387
- rate: numberType().optional(),
36388
- registrationNumber: stringType().optional(),
36389
- registrationState: stringType().optional(),
36390
- specifications: anyType().optional(),
36391
- supplierABN: stringType().optional(),
36392
- supplierAddress: stringType().optional(),
36393
- supplierEmail: stringType().optional(),
36394
- supplierName: stringType().optional(),
36395
- supplierPhone: stringType().optional(),
36396
- term: numberType().optional(),
36397
- tradeIn: numberType(),
36398
- typeOfSale: stringType().optional(),
36399
- vin: stringType().optional()
37829
+ ForbiddenError$outboundSchema = objectType({
37830
+ links: APIErrorLinks$outboundSchema.optional(),
37831
+ code: ForbiddenErrorCode$outboundSchema,
37832
+ title: ForbiddenErrorTitle$outboundSchema,
37833
+ status: ForbiddenErrorStatus$outboundSchema,
37834
+ source: ErrorSource$outboundSchema.optional(),
37835
+ detail: ForbiddenErrorDetail$outboundSchema,
37836
+ meta: recordType(anyType()).optional()
36400
37837
  });
36401
- ((PepperConsumerLoanDetails$) => {
36402
- PepperConsumerLoanDetails$.inboundSchema = PepperConsumerLoanDetails$inboundSchema;
36403
- PepperConsumerLoanDetails$.outboundSchema = PepperConsumerLoanDetails$outboundSchema;
36404
- })(PepperConsumerLoanDetails$ ||= {});
37838
+ ((ForbiddenError$) => {
37839
+ ForbiddenError$.inboundSchema = ForbiddenError$inboundSchema;
37840
+ ForbiddenError$.outboundSchema = ForbiddenError$outboundSchema;
37841
+ })(ForbiddenError$ ||= {});
36405
37842
  });
36406
37843
 
36407
- // src/models/components/pepperlendercredentials.ts
36408
- var PepperLenderCredentials$inboundSchema, PepperLenderCredentials$outboundSchema, PepperLenderCredentials$;
36409
- var init_pepperlendercredentials = __esm(() => {
37844
+ // src/models/components/internalservererror.ts
37845
+ var InternalServerErrorCode, InternalServerErrorTitle, InternalServerErrorStatus, InternalServerErrorDetail, InternalServerErrorCode$inboundSchema, InternalServerErrorCode$outboundSchema, InternalServerErrorCode$, InternalServerErrorTitle$inboundSchema, InternalServerErrorTitle$outboundSchema, InternalServerErrorTitle$, InternalServerErrorStatus$inboundSchema, InternalServerErrorStatus$outboundSchema, InternalServerErrorStatus$, InternalServerErrorDetail$inboundSchema, InternalServerErrorDetail$outboundSchema, InternalServerErrorDetail$, InternalServerError$inboundSchema, InternalServerError$outboundSchema, InternalServerError$;
37846
+ var init_internalservererror = __esm(() => {
36410
37847
  init_esm();
36411
- init_primitives();
36412
- PepperLenderCredentials$inboundSchema = objectType({
36413
- PEPPER_MERCHANT_ID: stringType(),
36414
- PEPPER_BASE_URL: stringType(),
36415
- PEPPER_CLIENT_ID: stringType(),
36416
- PEPPER_CLIENT_SECRET: stringType(),
36417
- PEPPER_USERNAME: stringType()
36418
- }).transform((v2) => {
36419
- return remap(v2, {
36420
- PEPPER_MERCHANT_ID: "pepperMerchantId",
36421
- PEPPER_BASE_URL: "pepperBaseUrl",
36422
- PEPPER_CLIENT_ID: "pepperClientId",
36423
- PEPPER_CLIENT_SECRET: "pepperClientSecret",
36424
- PEPPER_USERNAME: "pepperUsername"
36425
- });
37848
+ init_apierrorlinks();
37849
+ init_errorsource();
37850
+ InternalServerErrorCode = {
37851
+ InternalServerError: "INTERNAL_SERVER_ERROR"
37852
+ };
37853
+ InternalServerErrorTitle = {
37854
+ InternalServerError: "Internal Server Error"
37855
+ };
37856
+ InternalServerErrorStatus = {
37857
+ FiveHundred: "500"
37858
+ };
37859
+ InternalServerErrorDetail = {
37860
+ AnUnexpectedErrorOccurred: "An unexpected error occurred."
37861
+ };
37862
+ InternalServerErrorCode$inboundSchema = nativeEnumType(InternalServerErrorCode);
37863
+ InternalServerErrorCode$outboundSchema = InternalServerErrorCode$inboundSchema;
37864
+ ((InternalServerErrorCode$) => {
37865
+ InternalServerErrorCode$.inboundSchema = InternalServerErrorCode$inboundSchema;
37866
+ InternalServerErrorCode$.outboundSchema = InternalServerErrorCode$outboundSchema;
37867
+ })(InternalServerErrorCode$ ||= {});
37868
+ InternalServerErrorTitle$inboundSchema = nativeEnumType(InternalServerErrorTitle);
37869
+ InternalServerErrorTitle$outboundSchema = InternalServerErrorTitle$inboundSchema;
37870
+ ((InternalServerErrorTitle$) => {
37871
+ InternalServerErrorTitle$.inboundSchema = InternalServerErrorTitle$inboundSchema;
37872
+ InternalServerErrorTitle$.outboundSchema = InternalServerErrorTitle$outboundSchema;
37873
+ })(InternalServerErrorTitle$ ||= {});
37874
+ InternalServerErrorStatus$inboundSchema = nativeEnumType(InternalServerErrorStatus);
37875
+ InternalServerErrorStatus$outboundSchema = InternalServerErrorStatus$inboundSchema;
37876
+ ((InternalServerErrorStatus$) => {
37877
+ InternalServerErrorStatus$.inboundSchema = InternalServerErrorStatus$inboundSchema;
37878
+ InternalServerErrorStatus$.outboundSchema = InternalServerErrorStatus$outboundSchema;
37879
+ })(InternalServerErrorStatus$ ||= {});
37880
+ InternalServerErrorDetail$inboundSchema = nativeEnumType(InternalServerErrorDetail);
37881
+ InternalServerErrorDetail$outboundSchema = InternalServerErrorDetail$inboundSchema;
37882
+ ((InternalServerErrorDetail$) => {
37883
+ InternalServerErrorDetail$.inboundSchema = InternalServerErrorDetail$inboundSchema;
37884
+ InternalServerErrorDetail$.outboundSchema = InternalServerErrorDetail$outboundSchema;
37885
+ })(InternalServerErrorDetail$ ||= {});
37886
+ InternalServerError$inboundSchema = objectType({
37887
+ links: APIErrorLinks$inboundSchema.optional(),
37888
+ code: InternalServerErrorCode$inboundSchema,
37889
+ title: InternalServerErrorTitle$inboundSchema,
37890
+ status: InternalServerErrorStatus$inboundSchema,
37891
+ source: ErrorSource$inboundSchema.optional(),
37892
+ detail: InternalServerErrorDetail$inboundSchema,
37893
+ meta: recordType(anyType()).optional()
36426
37894
  });
36427
- PepperLenderCredentials$outboundSchema = objectType({
36428
- pepperMerchantId: stringType(),
36429
- pepperBaseUrl: stringType(),
36430
- pepperClientId: stringType(),
36431
- pepperClientSecret: stringType(),
36432
- pepperUsername: stringType()
36433
- }).transform((v2) => {
36434
- return remap(v2, {
36435
- pepperMerchantId: "PEPPER_MERCHANT_ID",
36436
- pepperBaseUrl: "PEPPER_BASE_URL",
36437
- pepperClientId: "PEPPER_CLIENT_ID",
36438
- pepperClientSecret: "PEPPER_CLIENT_SECRET",
36439
- pepperUsername: "PEPPER_USERNAME"
36440
- });
37895
+ InternalServerError$outboundSchema = objectType({
37896
+ links: APIErrorLinks$outboundSchema.optional(),
37897
+ code: InternalServerErrorCode$outboundSchema,
37898
+ title: InternalServerErrorTitle$outboundSchema,
37899
+ status: InternalServerErrorStatus$outboundSchema,
37900
+ source: ErrorSource$outboundSchema.optional(),
37901
+ detail: InternalServerErrorDetail$outboundSchema,
37902
+ meta: recordType(anyType()).optional()
36441
37903
  });
36442
- ((PepperLenderCredentials$) => {
36443
- PepperLenderCredentials$.inboundSchema = PepperLenderCredentials$inboundSchema;
36444
- PepperLenderCredentials$.outboundSchema = PepperLenderCredentials$outboundSchema;
36445
- })(PepperLenderCredentials$ ||= {});
37904
+ ((InternalServerError$) => {
37905
+ InternalServerError$.inboundSchema = InternalServerError$inboundSchema;
37906
+ InternalServerError$.outboundSchema = InternalServerError$outboundSchema;
37907
+ })(InternalServerError$ ||= {});
36446
37908
  });
36447
37909
 
36448
- // src/models/components/pepperconsumerrequest.ts
36449
- var User$inboundSchema, User$outboundSchema, User$, PepperConsumerRequest$inboundSchema, PepperConsumerRequest$outboundSchema, PepperConsumerRequest$;
36450
- var init_pepperconsumerrequest = __esm(() => {
37910
+ // src/models/components/lenders.ts
37911
+ var Lenders, Lenders$inboundSchema, Lenders$outboundSchema, Lenders$;
37912
+ var init_lenders = __esm(() => {
36451
37913
  init_esm();
36452
- init_primitives();
36453
- init_email();
36454
- init_pepperconsumerasset();
36455
- init_pepperconsumercustomer();
36456
- init_pepperconsumerentity();
36457
- init_pepperconsumerloandetails();
36458
- init_pepperlendercredentials();
36459
- User$inboundSchema = objectType({
36460
- email: Email$inboundSchema
36461
- });
36462
- User$outboundSchema = objectType({
36463
- email: Email$outboundSchema
36464
- });
36465
- ((User$) => {
36466
- User$.inboundSchema = User$inboundSchema;
36467
- User$.outboundSchema = User$outboundSchema;
36468
- })(User$ ||= {});
36469
- PepperConsumerRequest$inboundSchema = objectType({
36470
- _id: stringType(),
36471
- applicationType: stringType(),
36472
- user: lazyType(() => User$inboundSchema),
36473
- entities: arrayType(PepperConsumerEntity$inboundSchema),
36474
- assets: arrayType(PepperConsumerAsset$inboundSchema),
36475
- customers: arrayType(PepperConsumerCustomer$inboundSchema),
36476
- loanDetails: PepperConsumerLoanDetails$inboundSchema,
36477
- notes: anyType().optional(),
36478
- lenderCredentials: PepperLenderCredentials$inboundSchema
36479
- }).transform((v2) => {
36480
- return remap(v2, {
36481
- _id: "id"
36482
- });
36483
- });
36484
- PepperConsumerRequest$outboundSchema = objectType({
36485
- id: stringType(),
36486
- applicationType: stringType(),
36487
- user: lazyType(() => User$outboundSchema),
36488
- entities: arrayType(PepperConsumerEntity$outboundSchema),
36489
- assets: arrayType(PepperConsumerAsset$outboundSchema),
36490
- customers: arrayType(PepperConsumerCustomer$outboundSchema),
36491
- loanDetails: PepperConsumerLoanDetails$outboundSchema,
36492
- notes: anyType().optional(),
36493
- lenderCredentials: PepperLenderCredentials$outboundSchema
36494
- }).transform((v2) => {
36495
- return remap(v2, {
36496
- id: "_id"
36497
- });
36498
- });
36499
- ((PepperConsumerRequest$) => {
36500
- PepperConsumerRequest$.inboundSchema = PepperConsumerRequest$inboundSchema;
36501
- PepperConsumerRequest$.outboundSchema = PepperConsumerRequest$outboundSchema;
36502
- })(PepperConsumerRequest$ ||= {});
37914
+ Lenders = {
37915
+ Pepper: "Pepper",
37916
+ Lendi: "Lendi",
37917
+ MoneyMe: "MoneyMe",
37918
+ Wisr: "Wisr",
37919
+ Latitude: "Latitude",
37920
+ Dynamoney: "Dynamoney",
37921
+ FinanceOne: "FinanceOne",
37922
+ Westpac: "Westpac",
37923
+ Money3: "Money3",
37924
+ Plenti: "Plenti",
37925
+ Now: "Now",
37926
+ Flexi: "Flexi",
37927
+ Metro: "Metro",
37928
+ Angle: "Angle",
37929
+ Financeone: "Financeone",
37930
+ Eastcap: "Eastcap",
37931
+ Branded: "Branded",
37932
+ Liberty: "Liberty",
37933
+ Moneyme: "Moneyme",
37934
+ Autopay: "Autopay",
37935
+ Firstmac: "Firstmac",
37936
+ Moneyplace: "Moneyplace",
37937
+ Azora: "Azora",
37938
+ Resimac: "Resimac",
37939
+ Ammf: "Ammf",
37940
+ Scotpac: "Scotpac",
37941
+ Afs: "Afs",
37942
+ WestpacDriveExpress: "WestpacDriveExpress",
37943
+ WestpacEF: "WestpacEF"
37944
+ };
37945
+ Lenders$inboundSchema = nativeEnumType(Lenders);
37946
+ Lenders$outboundSchema = Lenders$inboundSchema;
37947
+ ((Lenders$) => {
37948
+ Lenders$.inboundSchema = Lenders$inboundSchema;
37949
+ Lenders$.outboundSchema = Lenders$outboundSchema;
37950
+ })(Lenders$ ||= {});
36503
37951
  });
36504
37952
 
36505
- // src/models/components/peppersuccessresource.ts
36506
- var Application$inboundSchema, Application$outboundSchema, Application$, PepperSuccessResource$inboundSchema, PepperSuccessResource$outboundSchema, PepperSuccessResource$;
36507
- var init_peppersuccessresource = __esm(() => {
37953
+ // src/models/components/notfounderror.ts
37954
+ var NotFoundErrorCode, NotFoundErrorTitle, NotFoundErrorStatus, NotFoundErrorDetail, NotFoundErrorCode$inboundSchema, NotFoundErrorCode$outboundSchema, NotFoundErrorCode$, NotFoundErrorTitle$inboundSchema, NotFoundErrorTitle$outboundSchema, NotFoundErrorTitle$, NotFoundErrorStatus$inboundSchema, NotFoundErrorStatus$outboundSchema, NotFoundErrorStatus$, NotFoundErrorDetail$inboundSchema, NotFoundErrorDetail$outboundSchema, NotFoundErrorDetail$, NotFoundError$inboundSchema, NotFoundError$outboundSchema, NotFoundError$;
37955
+ var init_notfounderror = __esm(() => {
36508
37956
  init_esm();
36509
- Application$inboundSchema = objectType({
36510
- applicationNo: stringType()
36511
- });
36512
- Application$outboundSchema = objectType({
36513
- applicationNo: stringType()
36514
- });
36515
- ((Application$) => {
36516
- Application$.inboundSchema = Application$inboundSchema;
36517
- Application$.outboundSchema = Application$outboundSchema;
36518
- })(Application$ ||= {});
36519
- PepperSuccessResource$inboundSchema = objectType({
36520
- application: lazyType(() => Application$inboundSchema),
36521
- requestId: stringType()
37957
+ init_apierrorlinks();
37958
+ init_errorsource();
37959
+ NotFoundErrorCode = {
37960
+ NotFound: "NOT_FOUND"
37961
+ };
37962
+ NotFoundErrorTitle = {
37963
+ ResourceNotFound: "Resource Not Found"
37964
+ };
37965
+ NotFoundErrorStatus = {
37966
+ FourHundredAndFour: "404"
37967
+ };
37968
+ NotFoundErrorDetail = {
37969
+ TheRequestedResourceWasNotFound: "The requested resource was not found."
37970
+ };
37971
+ NotFoundErrorCode$inboundSchema = nativeEnumType(NotFoundErrorCode);
37972
+ NotFoundErrorCode$outboundSchema = NotFoundErrorCode$inboundSchema;
37973
+ ((NotFoundErrorCode$) => {
37974
+ NotFoundErrorCode$.inboundSchema = NotFoundErrorCode$inboundSchema;
37975
+ NotFoundErrorCode$.outboundSchema = NotFoundErrorCode$outboundSchema;
37976
+ })(NotFoundErrorCode$ ||= {});
37977
+ NotFoundErrorTitle$inboundSchema = nativeEnumType(NotFoundErrorTitle);
37978
+ NotFoundErrorTitle$outboundSchema = NotFoundErrorTitle$inboundSchema;
37979
+ ((NotFoundErrorTitle$) => {
37980
+ NotFoundErrorTitle$.inboundSchema = NotFoundErrorTitle$inboundSchema;
37981
+ NotFoundErrorTitle$.outboundSchema = NotFoundErrorTitle$outboundSchema;
37982
+ })(NotFoundErrorTitle$ ||= {});
37983
+ NotFoundErrorStatus$inboundSchema = nativeEnumType(NotFoundErrorStatus);
37984
+ NotFoundErrorStatus$outboundSchema = NotFoundErrorStatus$inboundSchema;
37985
+ ((NotFoundErrorStatus$) => {
37986
+ NotFoundErrorStatus$.inboundSchema = NotFoundErrorStatus$inboundSchema;
37987
+ NotFoundErrorStatus$.outboundSchema = NotFoundErrorStatus$outboundSchema;
37988
+ })(NotFoundErrorStatus$ ||= {});
37989
+ NotFoundErrorDetail$inboundSchema = nativeEnumType(NotFoundErrorDetail);
37990
+ NotFoundErrorDetail$outboundSchema = NotFoundErrorDetail$inboundSchema;
37991
+ ((NotFoundErrorDetail$) => {
37992
+ NotFoundErrorDetail$.inboundSchema = NotFoundErrorDetail$inboundSchema;
37993
+ NotFoundErrorDetail$.outboundSchema = NotFoundErrorDetail$outboundSchema;
37994
+ })(NotFoundErrorDetail$ ||= {});
37995
+ NotFoundError$inboundSchema = objectType({
37996
+ links: APIErrorLinks$inboundSchema.optional(),
37997
+ code: NotFoundErrorCode$inboundSchema,
37998
+ title: NotFoundErrorTitle$inboundSchema,
37999
+ status: NotFoundErrorStatus$inboundSchema,
38000
+ source: ErrorSource$inboundSchema.optional(),
38001
+ detail: NotFoundErrorDetail$inboundSchema,
38002
+ meta: recordType(anyType()).optional()
36522
38003
  });
36523
- PepperSuccessResource$outboundSchema = objectType({
36524
- application: lazyType(() => Application$outboundSchema),
36525
- requestId: stringType()
38004
+ NotFoundError$outboundSchema = objectType({
38005
+ links: APIErrorLinks$outboundSchema.optional(),
38006
+ code: NotFoundErrorCode$outboundSchema,
38007
+ title: NotFoundErrorTitle$outboundSchema,
38008
+ status: NotFoundErrorStatus$outboundSchema,
38009
+ source: ErrorSource$outboundSchema.optional(),
38010
+ detail: NotFoundErrorDetail$outboundSchema,
38011
+ meta: recordType(anyType()).optional()
36526
38012
  });
36527
- ((PepperSuccessResource$) => {
36528
- PepperSuccessResource$.inboundSchema = PepperSuccessResource$inboundSchema;
36529
- PepperSuccessResource$.outboundSchema = PepperSuccessResource$outboundSchema;
36530
- })(PepperSuccessResource$ ||= {});
38013
+ ((NotFoundError$) => {
38014
+ NotFoundError$.inboundSchema = NotFoundError$inboundSchema;
38015
+ NotFoundError$.outboundSchema = NotFoundError$outboundSchema;
38016
+ })(NotFoundError$ ||= {});
36531
38017
  });
36532
38018
 
36533
38019
  // src/models/components/unauthorizederror.ts
@@ -36599,40 +38085,78 @@ var init_unauthorizederror = __esm(() => {
36599
38085
  // src/models/components/index.ts
36600
38086
  var init_components = __esm(() => {
36601
38087
  init_address();
38088
+ init_addressstatus();
38089
+ init_addresstype();
36602
38090
  init_apierror2();
36603
38091
  init_apierrorcodes();
36604
38092
  init_apierrorlinks();
36605
38093
  init_applicantasset();
38094
+ init_application();
38095
+ init_asset();
38096
+ init_assetconditiontypes();
38097
+ init_assetspecifications();
38098
+ init_assettypes();
38099
+ init_consumerincometypes();
38100
+ init_consumerliabilitytypes();
38101
+ init_creditprofile();
38102
+ init_customer();
38103
+ init_customerassettypes();
38104
+ init_customerdisclaimer();
38105
+ init_customerprofile();
38106
+ init_customertitle();
38107
+ init_document();
38108
+ init_documenttypes();
36606
38109
  init_email();
36607
38110
  init_employer();
38111
+ init_employmenttypes();
38112
+ init_entity();
38113
+ init_entitystatus();
38114
+ init_entitytype();
36608
38115
  init_errorsource();
38116
+ init_expense();
38117
+ init_expensestype();
36609
38118
  init_fee();
38119
+ init_feefrequency();
38120
+ init_feetype();
36610
38121
  init_forbiddenerror();
38122
+ init_frequency();
38123
+ init_idstate();
38124
+ init_idtype();
38125
+ init_income();
38126
+ init_industrytypes();
36611
38127
  init_internalservererror();
36612
38128
  init_label();
38129
+ init_lendercredentials();
36613
38130
  init_lenders();
38131
+ init_liability();
38132
+ init_livingarrangements();
38133
+ init_loandetails();
38134
+ init_loanpurposetype();
38135
+ init_maritalstatus();
36614
38136
  init_notfounderror();
36615
- init_pepperconsumerasset();
36616
- init_pepperconsumercustomer();
36617
- init_pepperconsumercustomerprofile();
36618
- init_pepperconsumerentity();
36619
- init_pepperconsumerincome();
36620
- init_pepperconsumerliability();
36621
- init_pepperconsumerloandetails();
36622
- init_pepperconsumerrequest();
36623
- init_pepperlendercredentials();
36624
- init_peppersuccessresource();
38137
+ init_occupation();
36625
38138
  init_phonenumber();
38139
+ init_productdetails();
38140
+ init_residentialstatus();
38141
+ init_timestatus();
38142
+ init_typeofchangeexpected();
38143
+ init_typeofsale();
36626
38144
  init_unauthorizederror();
38145
+ init_user();
38146
+ init_whatareyoulookingforinyourloan();
38147
+ init_whatisthepurposeofthisapplication();
38148
+ init_whattodowithballoonpaymentattheendoftheloanterm();
38149
+ init_whydoesthisloantermsuityourrequirements();
38150
+ init_yesorno();
36627
38151
  });
36628
38152
 
36629
- // src/models/errors/createpepperconsumer.ts
36630
- var CreatePepperConsumerResponse500ResponseBody, CreatePepperConsumerResponse404ResponseBody, CreatePepperConsumerResponse403ResponseBody, CreatePepperConsumerResponseResponseBody, CreatePepperConsumerResponseBody, CreatePepperConsumerResponse500ResponseBody$inboundSchema, CreatePepperConsumerResponse500ResponseBody$outboundSchema, CreatePepperConsumerResponse500ResponseBody$, CreatePepperConsumerResponse404ResponseBody$inboundSchema, CreatePepperConsumerResponse404ResponseBody$outboundSchema, CreatePepperConsumerResponse404ResponseBody$, CreatePepperConsumerResponse403ResponseBody$inboundSchema, CreatePepperConsumerResponse403ResponseBody$outboundSchema, CreatePepperConsumerResponse403ResponseBody$, CreatePepperConsumerResponseResponseBody$inboundSchema, CreatePepperConsumerResponseResponseBody$outboundSchema, CreatePepperConsumerResponseResponseBody$, CreatePepperConsumerResponseBody$inboundSchema, CreatePepperConsumerResponseBody$outboundSchema, CreatePepperConsumerResponseBody$;
36631
- var init_createpepperconsumer = __esm(() => {
38153
+ // src/models/errors/createsubmission.ts
38154
+ var CreateSubmissionResponse500ResponseBody, CreateSubmissionResponse404ResponseBody, CreateSubmissionResponse403ResponseBody, CreateSubmissionResponseResponseBody, CreateSubmissionResponseBody, CreateSubmissionResponse500ResponseBody$inboundSchema, CreateSubmissionResponse500ResponseBody$outboundSchema, CreateSubmissionResponse500ResponseBody$, CreateSubmissionResponse404ResponseBody$inboundSchema, CreateSubmissionResponse404ResponseBody$outboundSchema, CreateSubmissionResponse404ResponseBody$, CreateSubmissionResponse403ResponseBody$inboundSchema, CreateSubmissionResponse403ResponseBody$outboundSchema, CreateSubmissionResponse403ResponseBody$, CreateSubmissionResponseResponseBody$inboundSchema, CreateSubmissionResponseResponseBody$outboundSchema, CreateSubmissionResponseResponseBody$, CreateSubmissionResponseBody$inboundSchema, CreateSubmissionResponseBody$outboundSchema, CreateSubmissionResponseBody$;
38155
+ var init_createsubmission = __esm(() => {
36632
38156
  init_esm();
36633
38157
  init_components();
36634
38158
  init_financeablelenderserror();
36635
- CreatePepperConsumerResponse500ResponseBody = class CreatePepperConsumerResponse500ResponseBody extends FinanceableLendersError {
38159
+ CreateSubmissionResponse500ResponseBody = class CreateSubmissionResponse500ResponseBody extends FinanceableLendersError {
36636
38160
  lender;
36637
38161
  errors;
36638
38162
  data$;
@@ -36642,10 +38166,10 @@ var init_createpepperconsumer = __esm(() => {
36642
38166
  this.data$ = err;
36643
38167
  this.lender = err.lender;
36644
38168
  this.errors = err.errors;
36645
- this.name = "CreatePepperConsumerResponse500ResponseBody";
38169
+ this.name = "CreateSubmissionResponse500ResponseBody";
36646
38170
  }
36647
38171
  };
36648
- CreatePepperConsumerResponse404ResponseBody = class CreatePepperConsumerResponse404ResponseBody extends FinanceableLendersError {
38172
+ CreateSubmissionResponse404ResponseBody = class CreateSubmissionResponse404ResponseBody extends FinanceableLendersError {
36649
38173
  lender;
36650
38174
  errors;
36651
38175
  data$;
@@ -36655,10 +38179,10 @@ var init_createpepperconsumer = __esm(() => {
36655
38179
  this.data$ = err;
36656
38180
  this.lender = err.lender;
36657
38181
  this.errors = err.errors;
36658
- this.name = "CreatePepperConsumerResponse404ResponseBody";
38182
+ this.name = "CreateSubmissionResponse404ResponseBody";
36659
38183
  }
36660
38184
  };
36661
- CreatePepperConsumerResponse403ResponseBody = class CreatePepperConsumerResponse403ResponseBody extends FinanceableLendersError {
38185
+ CreateSubmissionResponse403ResponseBody = class CreateSubmissionResponse403ResponseBody extends FinanceableLendersError {
36662
38186
  lender;
36663
38187
  errors;
36664
38188
  data$;
@@ -36668,10 +38192,10 @@ var init_createpepperconsumer = __esm(() => {
36668
38192
  this.data$ = err;
36669
38193
  this.lender = err.lender;
36670
38194
  this.errors = err.errors;
36671
- this.name = "CreatePepperConsumerResponse403ResponseBody";
38195
+ this.name = "CreateSubmissionResponse403ResponseBody";
36672
38196
  }
36673
38197
  };
36674
- CreatePepperConsumerResponseResponseBody = class CreatePepperConsumerResponseResponseBody extends FinanceableLendersError {
38198
+ CreateSubmissionResponseResponseBody = class CreateSubmissionResponseResponseBody extends FinanceableLendersError {
36675
38199
  lender;
36676
38200
  errors;
36677
38201
  data$;
@@ -36681,10 +38205,10 @@ var init_createpepperconsumer = __esm(() => {
36681
38205
  this.data$ = err;
36682
38206
  this.lender = err.lender;
36683
38207
  this.errors = err.errors;
36684
- this.name = "CreatePepperConsumerResponseResponseBody";
38208
+ this.name = "CreateSubmissionResponseResponseBody";
36685
38209
  }
36686
38210
  };
36687
- CreatePepperConsumerResponseBody = class CreatePepperConsumerResponseBody extends FinanceableLendersError {
38211
+ CreateSubmissionResponseBody = class CreateSubmissionResponseBody extends FinanceableLendersError {
36688
38212
  lender;
36689
38213
  errors;
36690
38214
  data$;
@@ -36694,159 +38218,183 @@ var init_createpepperconsumer = __esm(() => {
36694
38218
  this.data$ = err;
36695
38219
  this.lender = err.lender;
36696
38220
  this.errors = err.errors;
36697
- this.name = "CreatePepperConsumerResponseBody";
38221
+ this.name = "CreateSubmissionResponseBody";
36698
38222
  }
36699
38223
  };
36700
- CreatePepperConsumerResponse500ResponseBody$inboundSchema = objectType({
38224
+ CreateSubmissionResponse500ResponseBody$inboundSchema = objectType({
36701
38225
  lender: Lenders$inboundSchema,
36702
38226
  errors: arrayType(InternalServerError$inboundSchema),
36703
38227
  request$: instanceOfType(Request),
36704
38228
  response$: instanceOfType(Response),
36705
38229
  body$: stringType()
36706
38230
  }).transform((v2) => {
36707
- return new CreatePepperConsumerResponse500ResponseBody(v2, {
38231
+ return new CreateSubmissionResponse500ResponseBody(v2, {
36708
38232
  request: v2.request$,
36709
38233
  response: v2.response$,
36710
38234
  body: v2.body$
36711
38235
  });
36712
38236
  });
36713
- CreatePepperConsumerResponse500ResponseBody$outboundSchema = instanceOfType(CreatePepperConsumerResponse500ResponseBody).transform((v2) => v2.data$).pipe(objectType({
38237
+ CreateSubmissionResponse500ResponseBody$outboundSchema = instanceOfType(CreateSubmissionResponse500ResponseBody).transform((v2) => v2.data$).pipe(objectType({
36714
38238
  lender: Lenders$outboundSchema,
36715
38239
  errors: arrayType(InternalServerError$outboundSchema)
36716
38240
  }));
36717
- ((CreatePepperConsumerResponse500ResponseBody$) => {
36718
- CreatePepperConsumerResponse500ResponseBody$.inboundSchema = CreatePepperConsumerResponse500ResponseBody$inboundSchema;
36719
- CreatePepperConsumerResponse500ResponseBody$.outboundSchema = CreatePepperConsumerResponse500ResponseBody$outboundSchema;
36720
- })(CreatePepperConsumerResponse500ResponseBody$ ||= {});
36721
- CreatePepperConsumerResponse404ResponseBody$inboundSchema = objectType({
38241
+ ((CreateSubmissionResponse500ResponseBody$) => {
38242
+ CreateSubmissionResponse500ResponseBody$.inboundSchema = CreateSubmissionResponse500ResponseBody$inboundSchema;
38243
+ CreateSubmissionResponse500ResponseBody$.outboundSchema = CreateSubmissionResponse500ResponseBody$outboundSchema;
38244
+ })(CreateSubmissionResponse500ResponseBody$ ||= {});
38245
+ CreateSubmissionResponse404ResponseBody$inboundSchema = objectType({
36722
38246
  lender: Lenders$inboundSchema,
36723
38247
  errors: arrayType(NotFoundError$inboundSchema),
36724
38248
  request$: instanceOfType(Request),
36725
38249
  response$: instanceOfType(Response),
36726
38250
  body$: stringType()
36727
38251
  }).transform((v2) => {
36728
- return new CreatePepperConsumerResponse404ResponseBody(v2, {
38252
+ return new CreateSubmissionResponse404ResponseBody(v2, {
36729
38253
  request: v2.request$,
36730
38254
  response: v2.response$,
36731
38255
  body: v2.body$
36732
38256
  });
36733
38257
  });
36734
- CreatePepperConsumerResponse404ResponseBody$outboundSchema = instanceOfType(CreatePepperConsumerResponse404ResponseBody).transform((v2) => v2.data$).pipe(objectType({
38258
+ CreateSubmissionResponse404ResponseBody$outboundSchema = instanceOfType(CreateSubmissionResponse404ResponseBody).transform((v2) => v2.data$).pipe(objectType({
36735
38259
  lender: Lenders$outboundSchema,
36736
38260
  errors: arrayType(NotFoundError$outboundSchema)
36737
38261
  }));
36738
- ((CreatePepperConsumerResponse404ResponseBody$) => {
36739
- CreatePepperConsumerResponse404ResponseBody$.inboundSchema = CreatePepperConsumerResponse404ResponseBody$inboundSchema;
36740
- CreatePepperConsumerResponse404ResponseBody$.outboundSchema = CreatePepperConsumerResponse404ResponseBody$outboundSchema;
36741
- })(CreatePepperConsumerResponse404ResponseBody$ ||= {});
36742
- CreatePepperConsumerResponse403ResponseBody$inboundSchema = objectType({
38262
+ ((CreateSubmissionResponse404ResponseBody$) => {
38263
+ CreateSubmissionResponse404ResponseBody$.inboundSchema = CreateSubmissionResponse404ResponseBody$inboundSchema;
38264
+ CreateSubmissionResponse404ResponseBody$.outboundSchema = CreateSubmissionResponse404ResponseBody$outboundSchema;
38265
+ })(CreateSubmissionResponse404ResponseBody$ ||= {});
38266
+ CreateSubmissionResponse403ResponseBody$inboundSchema = objectType({
36743
38267
  lender: Lenders$inboundSchema,
36744
38268
  errors: arrayType(ForbiddenError$inboundSchema),
36745
38269
  request$: instanceOfType(Request),
36746
38270
  response$: instanceOfType(Response),
36747
38271
  body$: stringType()
36748
38272
  }).transform((v2) => {
36749
- return new CreatePepperConsumerResponse403ResponseBody(v2, {
38273
+ return new CreateSubmissionResponse403ResponseBody(v2, {
36750
38274
  request: v2.request$,
36751
38275
  response: v2.response$,
36752
38276
  body: v2.body$
36753
38277
  });
36754
38278
  });
36755
- CreatePepperConsumerResponse403ResponseBody$outboundSchema = instanceOfType(CreatePepperConsumerResponse403ResponseBody).transform((v2) => v2.data$).pipe(objectType({
38279
+ CreateSubmissionResponse403ResponseBody$outboundSchema = instanceOfType(CreateSubmissionResponse403ResponseBody).transform((v2) => v2.data$).pipe(objectType({
36756
38280
  lender: Lenders$outboundSchema,
36757
38281
  errors: arrayType(ForbiddenError$outboundSchema)
36758
38282
  }));
36759
- ((CreatePepperConsumerResponse403ResponseBody$) => {
36760
- CreatePepperConsumerResponse403ResponseBody$.inboundSchema = CreatePepperConsumerResponse403ResponseBody$inboundSchema;
36761
- CreatePepperConsumerResponse403ResponseBody$.outboundSchema = CreatePepperConsumerResponse403ResponseBody$outboundSchema;
36762
- })(CreatePepperConsumerResponse403ResponseBody$ ||= {});
36763
- CreatePepperConsumerResponseResponseBody$inboundSchema = objectType({
38283
+ ((CreateSubmissionResponse403ResponseBody$) => {
38284
+ CreateSubmissionResponse403ResponseBody$.inboundSchema = CreateSubmissionResponse403ResponseBody$inboundSchema;
38285
+ CreateSubmissionResponse403ResponseBody$.outboundSchema = CreateSubmissionResponse403ResponseBody$outboundSchema;
38286
+ })(CreateSubmissionResponse403ResponseBody$ ||= {});
38287
+ CreateSubmissionResponseResponseBody$inboundSchema = objectType({
36764
38288
  lender: Lenders$inboundSchema,
36765
38289
  errors: arrayType(UnauthorizedError$inboundSchema),
36766
38290
  request$: instanceOfType(Request),
36767
38291
  response$: instanceOfType(Response),
36768
38292
  body$: stringType()
36769
38293
  }).transform((v2) => {
36770
- return new CreatePepperConsumerResponseResponseBody(v2, {
38294
+ return new CreateSubmissionResponseResponseBody(v2, {
36771
38295
  request: v2.request$,
36772
38296
  response: v2.response$,
36773
38297
  body: v2.body$
36774
38298
  });
36775
38299
  });
36776
- CreatePepperConsumerResponseResponseBody$outboundSchema = instanceOfType(CreatePepperConsumerResponseResponseBody).transform((v2) => v2.data$).pipe(objectType({
38300
+ CreateSubmissionResponseResponseBody$outboundSchema = instanceOfType(CreateSubmissionResponseResponseBody).transform((v2) => v2.data$).pipe(objectType({
36777
38301
  lender: Lenders$outboundSchema,
36778
38302
  errors: arrayType(UnauthorizedError$outboundSchema)
36779
38303
  }));
36780
- ((CreatePepperConsumerResponseResponseBody$) => {
36781
- CreatePepperConsumerResponseResponseBody$.inboundSchema = CreatePepperConsumerResponseResponseBody$inboundSchema;
36782
- CreatePepperConsumerResponseResponseBody$.outboundSchema = CreatePepperConsumerResponseResponseBody$outboundSchema;
36783
- })(CreatePepperConsumerResponseResponseBody$ ||= {});
36784
- CreatePepperConsumerResponseBody$inboundSchema = objectType({
38304
+ ((CreateSubmissionResponseResponseBody$) => {
38305
+ CreateSubmissionResponseResponseBody$.inboundSchema = CreateSubmissionResponseResponseBody$inboundSchema;
38306
+ CreateSubmissionResponseResponseBody$.outboundSchema = CreateSubmissionResponseResponseBody$outboundSchema;
38307
+ })(CreateSubmissionResponseResponseBody$ ||= {});
38308
+ CreateSubmissionResponseBody$inboundSchema = objectType({
36785
38309
  lender: Lenders$inboundSchema,
36786
38310
  errors: arrayType(arrayType(ApiError$inboundSchema)),
36787
38311
  request$: instanceOfType(Request),
36788
38312
  response$: instanceOfType(Response),
36789
38313
  body$: stringType()
36790
38314
  }).transform((v2) => {
36791
- return new CreatePepperConsumerResponseBody(v2, {
38315
+ return new CreateSubmissionResponseBody(v2, {
36792
38316
  request: v2.request$,
36793
38317
  response: v2.response$,
36794
38318
  body: v2.body$
36795
38319
  });
36796
38320
  });
36797
- CreatePepperConsumerResponseBody$outboundSchema = instanceOfType(CreatePepperConsumerResponseBody).transform((v2) => v2.data$).pipe(objectType({
38321
+ CreateSubmissionResponseBody$outboundSchema = instanceOfType(CreateSubmissionResponseBody).transform((v2) => v2.data$).pipe(objectType({
36798
38322
  lender: Lenders$outboundSchema,
36799
38323
  errors: arrayType(arrayType(ApiError$outboundSchema))
36800
38324
  }));
36801
- ((CreatePepperConsumerResponseBody$) => {
36802
- CreatePepperConsumerResponseBody$.inboundSchema = CreatePepperConsumerResponseBody$inboundSchema;
36803
- CreatePepperConsumerResponseBody$.outboundSchema = CreatePepperConsumerResponseBody$outboundSchema;
36804
- })(CreatePepperConsumerResponseBody$ ||= {});
38325
+ ((CreateSubmissionResponseBody$) => {
38326
+ CreateSubmissionResponseBody$.inboundSchema = CreateSubmissionResponseBody$inboundSchema;
38327
+ CreateSubmissionResponseBody$.outboundSchema = CreateSubmissionResponseBody$outboundSchema;
38328
+ })(CreateSubmissionResponseBody$ ||= {});
36805
38329
  });
36806
38330
 
36807
38331
  // src/models/errors/index.ts
36808
38332
  var init_errors2 = __esm(() => {
36809
38333
  init_apierror();
36810
- init_createpepperconsumer();
38334
+ init_createsubmission();
36811
38335
  init_financeablelenderserror();
36812
38336
  init_httpclienterrors();
36813
38337
  init_responsevalidationerror();
36814
38338
  init_sdkvalidationerror();
36815
38339
  });
36816
38340
 
36817
- // src/models/operations/createpepperconsumer.ts
36818
- var Lender, Lender$inboundSchema, Lender$outboundSchema, Lender$, CreatePepperConsumerResponseBody$inboundSchema2, CreatePepperConsumerResponseBody$outboundSchema2, CreatePepperConsumerResponseBody$2;
36819
- var init_createpepperconsumer2 = __esm(() => {
38341
+ // src/models/operations/createsubmission.ts
38342
+ var Type, CreateSubmissionRequest$inboundSchema, CreateSubmissionRequest$outboundSchema, CreateSubmissionRequest$, Type$inboundSchema, Type$outboundSchema, Type$, Data$inboundSchema, Data$outboundSchema, Data$, CreateSubmissionResponseBody$inboundSchema2, CreateSubmissionResponseBody$outboundSchema2, CreateSubmissionResponseBody$2;
38343
+ var init_createsubmission2 = __esm(() => {
36820
38344
  init_esm();
36821
38345
  init_components();
36822
- Lender = {
36823
- Pepper: "Pepper"
36824
- };
36825
- Lender$inboundSchema = nativeEnumType(Lender);
36826
- Lender$outboundSchema = Lender$inboundSchema;
36827
- ((Lender$) => {
36828
- Lender$.inboundSchema = Lender$inboundSchema;
36829
- Lender$.outboundSchema = Lender$outboundSchema;
36830
- })(Lender$ ||= {});
36831
- CreatePepperConsumerResponseBody$inboundSchema2 = objectType({
38346
+ Type = {
38347
+ Application: "application"
38348
+ };
38349
+ CreateSubmissionRequest$inboundSchema = objectType({
38350
+ lender: Lenders$inboundSchema
38351
+ });
38352
+ CreateSubmissionRequest$outboundSchema = objectType({
38353
+ lender: Lenders$outboundSchema
38354
+ });
38355
+ ((CreateSubmissionRequest$) => {
38356
+ CreateSubmissionRequest$.inboundSchema = CreateSubmissionRequest$inboundSchema;
38357
+ CreateSubmissionRequest$.outboundSchema = CreateSubmissionRequest$outboundSchema;
38358
+ })(CreateSubmissionRequest$ ||= {});
38359
+ Type$inboundSchema = nativeEnumType(Type);
38360
+ Type$outboundSchema = Type$inboundSchema;
38361
+ ((Type$) => {
38362
+ Type$.inboundSchema = Type$inboundSchema;
38363
+ Type$.outboundSchema = Type$outboundSchema;
38364
+ })(Type$ ||= {});
38365
+ Data$inboundSchema = objectType({
38366
+ id: stringType(),
38367
+ type: Type$inboundSchema,
38368
+ attributes: Application$inboundSchema.optional()
38369
+ });
38370
+ Data$outboundSchema = objectType({
38371
+ id: stringType(),
38372
+ type: Type$outboundSchema,
38373
+ attributes: Application$outboundSchema.optional()
38374
+ });
38375
+ ((Data$) => {
38376
+ Data$.inboundSchema = Data$inboundSchema;
38377
+ Data$.outboundSchema = Data$outboundSchema;
38378
+ })(Data$ ||= {});
38379
+ CreateSubmissionResponseBody$inboundSchema2 = objectType({
36832
38380
  success: booleanType(),
36833
- data: PepperSuccessResource$inboundSchema,
36834
- lender: Lender$inboundSchema
38381
+ data: lazyType(() => Data$inboundSchema),
38382
+ lender: Lenders$inboundSchema
36835
38383
  });
36836
- CreatePepperConsumerResponseBody$outboundSchema2 = objectType({
38384
+ CreateSubmissionResponseBody$outboundSchema2 = objectType({
36837
38385
  success: booleanType(),
36838
- data: PepperSuccessResource$outboundSchema,
36839
- lender: Lender$outboundSchema
38386
+ data: lazyType(() => Data$outboundSchema),
38387
+ lender: Lenders$outboundSchema
36840
38388
  });
36841
- ((CreatePepperConsumerResponseBody$) => {
36842
- CreatePepperConsumerResponseBody$.inboundSchema = CreatePepperConsumerResponseBody$inboundSchema2;
36843
- CreatePepperConsumerResponseBody$.outboundSchema = CreatePepperConsumerResponseBody$outboundSchema2;
36844
- })(CreatePepperConsumerResponseBody$2 ||= {});
38389
+ ((CreateSubmissionResponseBody$) => {
38390
+ CreateSubmissionResponseBody$.inboundSchema = CreateSubmissionResponseBody$inboundSchema2;
38391
+ CreateSubmissionResponseBody$.outboundSchema = CreateSubmissionResponseBody$outboundSchema2;
38392
+ })(CreateSubmissionResponseBody$2 ||= {});
36845
38393
  });
36846
38394
 
36847
38395
  // src/models/operations/index.ts
36848
38396
  var init_operations = __esm(() => {
36849
- init_createpepperconsumer2();
38397
+ init_createsubmission2();
36850
38398
  });
36851
38399
 
36852
38400
  // src/types/async.ts
@@ -36875,26 +38423,28 @@ var init_async = __esm(() => {
36875
38423
  };
36876
38424
  });
36877
38425
 
36878
- // src/funcs/createPepperConsumer.ts
36879
- function createPepperConsumer(client, request, options) {
38426
+ // src/funcs/createSubmission.ts
38427
+ function createSubmission(client, request, options) {
36880
38428
  return new APIPromise($do(client, request, options));
36881
38429
  }
36882
38430
  async function $do(client, request, options) {
36883
- const parsed = safeParse(request, (value) => PepperConsumerRequest$outboundSchema.parse(value), "Input validation failed");
38431
+ const parsed = safeParse(request, (value) => CreateSubmissionRequest$outboundSchema.parse(value), "Input validation failed");
36884
38432
  if (!parsed.ok) {
36885
38433
  return [parsed, { status: "invalid" }];
36886
38434
  }
36887
38435
  const payload = parsed.value;
36888
- const body = encodeJSON("body", payload, { explode: true });
36889
- const path = pathToFunc("/consumer/pepper")();
38436
+ const body = null;
38437
+ const path = pathToFunc("/v1/submissions")();
38438
+ const query = encodeFormQuery({
38439
+ lender: payload.lender
38440
+ }, { explode: false });
36890
38441
  const headers = new Headers(compactMap({
36891
- "Content-Type": "application/json",
36892
38442
  Accept: "application/json"
36893
38443
  }));
36894
38444
  const context = {
36895
38445
  options: client._options,
36896
38446
  baseURL: options?.serverURL ?? client._baseURL ?? "",
36897
- operationID: "createPepperConsumer",
38447
+ operationID: "createSubmission",
36898
38448
  oAuth2Scopes: null,
36899
38449
  resolvedSecurity: null,
36900
38450
  securitySource: null,
@@ -36906,6 +38456,7 @@ async function $do(client, request, options) {
36906
38456
  baseURL: options?.serverURL,
36907
38457
  path,
36908
38458
  headers,
38459
+ query,
36909
38460
  body,
36910
38461
  userAgent: client._options.userAgent,
36911
38462
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -36927,39 +38478,38 @@ async function $do(client, request, options) {
36927
38478
  const responseFields = {
36928
38479
  HttpMeta: { Response: response, Request: req }
36929
38480
  };
36930
- const [result] = await match(json(201, CreatePepperConsumerResponseBody$inboundSchema2), jsonErr(400, CreatePepperConsumerResponseBody$inboundSchema), jsonErr(401, CreatePepperConsumerResponseResponseBody$inboundSchema), jsonErr(403, CreatePepperConsumerResponse403ResponseBody$inboundSchema), jsonErr(404, CreatePepperConsumerResponse404ResponseBody$inboundSchema), jsonErr(500, CreatePepperConsumerResponse500ResponseBody$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
38481
+ const [result] = await match(json(201, CreateSubmissionResponseBody$inboundSchema2), jsonErr(400, CreateSubmissionResponseBody$inboundSchema), jsonErr(401, CreateSubmissionResponseResponseBody$inboundSchema), jsonErr(403, CreateSubmissionResponse403ResponseBody$inboundSchema), jsonErr(404, CreateSubmissionResponse404ResponseBody$inboundSchema), jsonErr(500, CreateSubmissionResponse500ResponseBody$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
36931
38482
  if (!result.ok) {
36932
38483
  return [result, { status: "complete", request: req, response }];
36933
38484
  }
36934
38485
  return [result, { status: "complete", request: req, response }];
36935
38486
  }
36936
- var init_createPepperConsumer = __esm(() => {
38487
+ var init_createSubmission = __esm(() => {
36937
38488
  init_encodings();
36938
38489
  init_matchers();
36939
38490
  init_primitives();
36940
38491
  init_schemas();
36941
38492
  init_url();
36942
- init_components();
36943
38493
  init_errors2();
36944
38494
  init_operations();
36945
38495
  init_async();
36946
38496
  });
36947
38497
 
36948
- // src/mcp-server/tools/createPepperConsumer.ts
36949
- var args, tool$createPepperConsumer;
36950
- var init_createPepperConsumer2 = __esm(() => {
36951
- init_createPepperConsumer();
36952
- init_components();
38498
+ // src/mcp-server/tools/createSubmission.ts
38499
+ var args, tool$createSubmission;
38500
+ var init_createSubmission2 = __esm(() => {
38501
+ init_createSubmission();
38502
+ init_operations();
36953
38503
  init_tools();
36954
38504
  args = {
36955
- request: PepperConsumerRequest$inboundSchema
38505
+ request: CreateSubmissionRequest$inboundSchema
36956
38506
  };
36957
- tool$createPepperConsumer = {
36958
- name: "create-pepper-consumer",
36959
- description: `Pepper Consumer route`,
38507
+ tool$createSubmission = {
38508
+ name: "create-submission",
38509
+ description: `Submission route`,
36960
38510
  args,
36961
38511
  tool: async (client, args2, ctx) => {
36962
- const [result, apiCall] = await createPepperConsumer(client, args2.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
38512
+ const [result, apiCall] = await createSubmission(client, args2.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
36963
38513
  if (!result.ok) {
36964
38514
  return {
36965
38515
  content: [{ type: "text", text: result.error.message }],
@@ -36976,7 +38526,7 @@ var init_createPepperConsumer2 = __esm(() => {
36976
38526
  function createMCPServer(deps) {
36977
38527
  const server = new McpServer({
36978
38528
  name: "FinanceableLenders",
36979
- version: "0.1.1"
38529
+ version: "0.3.0"
36980
38530
  });
36981
38531
  const client = new FinanceableLendersCore({
36982
38532
  serverURL: deps.serverURL,
@@ -36989,7 +38539,7 @@ function createMCPServer(deps) {
36989
38539
  const resourceTemplate = createRegisterResourceTemplate(deps.logger, server, client, scopes);
36990
38540
  const prompt = createRegisterPrompt(deps.logger, server, client, scopes);
36991
38541
  const register = { tool, resource, resourceTemplate, prompt };
36992
- tool(tool$createPepperConsumer);
38542
+ tool(tool$createSubmission);
36993
38543
  return server;
36994
38544
  }
36995
38545
  var init_server2 = __esm(() => {
@@ -36997,7 +38547,7 @@ var init_server2 = __esm(() => {
36997
38547
  init_core();
36998
38548
  init_resources();
36999
38549
  init_tools();
37000
- init_createPepperConsumer2();
38550
+ init_createSubmission2();
37001
38551
  });
37002
38552
 
37003
38553
  // src/mcp-server/cli/start/impl.ts
@@ -38165,7 +39715,7 @@ var routes = rn({
38165
39715
  var app = Ve(routes, {
38166
39716
  name: "mcp",
38167
39717
  versionInfo: {
38168
- currentVersion: "0.1.1"
39718
+ currentVersion: "0.3.0"
38169
39719
  }
38170
39720
  });
38171
39721
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -38173,5 +39723,5 @@ export {
38173
39723
  app
38174
39724
  };
38175
39725
 
38176
- //# debugId=82A2280EBA00FE5C64756E2164756E21
39726
+ //# debugId=25BE0248CEB0952764756E2164756E21
38177
39727
  //# sourceMappingURL=mcp-server.js.map