@financeable/aggregation 0.2.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 (394) hide show
  1. package/.devcontainer/README.md +35 -0
  2. package/.devcontainer/devcontainer.json +45 -0
  3. package/FUNCTIONS.md +225 -0
  4. package/README.md +967 -0
  5. package/RUNTIMES.md +48 -0
  6. package/core.d.ts +10 -0
  7. package/core.d.ts.map +1 -0
  8. package/core.js +17 -0
  9. package/core.js.map +1 -0
  10. package/docs/sdks/applications/README.md +467 -0
  11. package/docs/sdks/financeable/README.md +5 -0
  12. package/financeable-typescript/.devcontainer/README.md +30 -0
  13. package/financeable-typescript/FUNCTIONS.md +205 -0
  14. package/financeable-typescript/README.md +895 -0
  15. package/financeable-typescript/RUNTIMES.md +22 -0
  16. package/financeable-typescript/docs/sdks/applications/README.md +427 -0
  17. package/financeable-typescript/docs/sdks/financeable/README.md +5 -0
  18. package/financeable-typescript/src/core.ts +13 -0
  19. package/financeable-typescript/src/funcs/applicationsCreate.ts +124 -0
  20. package/financeable-typescript/src/funcs/applicationsGet.ts +128 -0
  21. package/financeable-typescript/src/funcs/applicationsList.ts +126 -0
  22. package/financeable-typescript/src/hooks/hooks.ts +129 -0
  23. package/financeable-typescript/src/hooks/index.ts +6 -0
  24. package/financeable-typescript/src/hooks/types.ts +109 -0
  25. package/financeable-typescript/src/index.ts +7 -0
  26. package/financeable-typescript/src/lib/base64.ts +37 -0
  27. package/financeable-typescript/src/lib/config.ts +59 -0
  28. package/financeable-typescript/src/lib/dlv.ts +53 -0
  29. package/financeable-typescript/src/lib/encodings.ts +449 -0
  30. package/financeable-typescript/src/lib/env.ts +37 -0
  31. package/financeable-typescript/src/lib/files.ts +40 -0
  32. package/financeable-typescript/src/lib/http.ts +323 -0
  33. package/financeable-typescript/src/lib/is-plain-object.ts +43 -0
  34. package/financeable-typescript/src/lib/logger.ts +9 -0
  35. package/financeable-typescript/src/lib/matchers.ts +322 -0
  36. package/financeable-typescript/src/lib/primitives.ts +122 -0
  37. package/financeable-typescript/src/lib/retries.ts +219 -0
  38. package/financeable-typescript/src/lib/schemas.ts +86 -0
  39. package/financeable-typescript/src/lib/sdks.ts +392 -0
  40. package/financeable-typescript/src/lib/security.ts +227 -0
  41. package/financeable-typescript/src/lib/url.ts +33 -0
  42. package/financeable-typescript/src/models/components/addressattributes.ts +148 -0
  43. package/financeable-typescript/src/models/components/apierrorlinks.ts +65 -0
  44. package/financeable-typescript/src/models/components/applicationattributes.ts +128 -0
  45. package/financeable-typescript/src/models/components/applicationattributescreate.ts +90 -0
  46. package/financeable-typescript/src/models/components/applicationresourcebulksubmission.ts +1000 -0
  47. package/financeable-typescript/src/models/components/applicationstatus.ts +39 -0
  48. package/financeable-typescript/src/models/components/applicationtype.ts +33 -0
  49. package/financeable-typescript/src/models/components/assetattributes.ts +400 -0
  50. package/financeable-typescript/src/models/components/customerattributes.ts +171 -0
  51. package/financeable-typescript/src/models/components/customertitle.ts +35 -0
  52. package/financeable-typescript/src/models/components/errorsource.ts +79 -0
  53. package/financeable-typescript/src/models/components/forbiddenerror.ts +207 -0
  54. package/financeable-typescript/src/models/components/frequencytype.ts +40 -0
  55. package/financeable-typescript/src/models/components/index.ts +20 -0
  56. package/financeable-typescript/src/models/components/links.ts +72 -0
  57. package/financeable-typescript/src/models/components/loandetailsattributes.ts +187 -0
  58. package/financeable-typescript/src/models/components/repaymentstructure.ts +40 -0
  59. package/financeable-typescript/src/models/errors/apierror.ts +27 -0
  60. package/financeable-typescript/src/models/errors/createapplication.ts +76 -0
  61. package/financeable-typescript/src/models/errors/getapplication.ts +76 -0
  62. package/financeable-typescript/src/models/errors/getapplications.ts +76 -0
  63. package/financeable-typescript/src/models/errors/httpclienterrors.ts +62 -0
  64. package/financeable-typescript/src/models/errors/index.ts +10 -0
  65. package/financeable-typescript/src/models/errors/sdkvalidationerror.ts +97 -0
  66. package/financeable-typescript/src/models/operations/createapplication.ts +1649 -0
  67. package/financeable-typescript/src/models/operations/getapplication.ts +1829 -0
  68. package/financeable-typescript/src/models/operations/getapplications.ts +1790 -0
  69. package/financeable-typescript/src/models/operations/index.ts +7 -0
  70. package/financeable-typescript/src/sdk/applications.ts +55 -0
  71. package/financeable-typescript/src/sdk/index.ts +5 -0
  72. package/financeable-typescript/src/sdk/sdk.ts +13 -0
  73. package/financeable-typescript/src/types/blobs.ts +31 -0
  74. package/financeable-typescript/src/types/constdatetime.ts +15 -0
  75. package/financeable-typescript/src/types/enums.ts +16 -0
  76. package/financeable-typescript/src/types/fp.ts +50 -0
  77. package/financeable-typescript/src/types/index.ts +11 -0
  78. package/financeable-typescript/src/types/operations.ts +105 -0
  79. package/financeable-typescript/src/types/rfcdate.ts +54 -0
  80. package/financeable-typescript/src/types/streams.ts +21 -0
  81. package/funcs/applicationsCreate.d.ts +14 -0
  82. package/funcs/applicationsCreate.d.ts.map +1 -0
  83. package/funcs/applicationsCreate.js +105 -0
  84. package/funcs/applicationsCreate.js.map +1 -0
  85. package/funcs/applicationsGet.d.ts +13 -0
  86. package/funcs/applicationsGet.d.ts.map +1 -0
  87. package/funcs/applicationsGet.js +109 -0
  88. package/funcs/applicationsGet.js.map +1 -0
  89. package/funcs/applicationsList.d.ts +13 -0
  90. package/funcs/applicationsList.d.ts.map +1 -0
  91. package/funcs/applicationsList.js +107 -0
  92. package/funcs/applicationsList.js.map +1 -0
  93. package/hooks/hooks.d.ts +24 -0
  94. package/hooks/hooks.d.ts.map +1 -0
  95. package/hooks/hooks.js +84 -0
  96. package/hooks/hooks.js.map +1 -0
  97. package/hooks/index.d.ts +3 -0
  98. package/hooks/index.d.ts.map +1 -0
  99. package/hooks/index.js +22 -0
  100. package/hooks/index.js.map +1 -0
  101. package/hooks/types.d.ts +78 -0
  102. package/hooks/types.d.ts.map +1 -0
  103. package/hooks/types.js +6 -0
  104. package/hooks/types.js.map +1 -0
  105. package/index.d.ts +4 -0
  106. package/index.d.ts.map +1 -0
  107. package/index.js +46 -0
  108. package/index.js.map +1 -0
  109. package/jsr.json +27 -0
  110. package/lib/base64.d.ts +10 -0
  111. package/lib/base64.d.ts.map +1 -0
  112. package/lib/base64.js +71 -0
  113. package/lib/base64.js.map +1 -0
  114. package/lib/config.d.ts +33 -0
  115. package/lib/config.d.ts.map +1 -0
  116. package/lib/config.js +35 -0
  117. package/lib/config.js.map +1 -0
  118. package/lib/dlv.d.ts +14 -0
  119. package/lib/dlv.d.ts.map +1 -0
  120. package/lib/dlv.js +49 -0
  121. package/lib/dlv.js.map +1 -0
  122. package/lib/encodings.d.ts +52 -0
  123. package/lib/encodings.d.ts.map +1 -0
  124. package/lib/encodings.js +368 -0
  125. package/lib/encodings.js.map +1 -0
  126. package/lib/env.d.ts +14 -0
  127. package/lib/env.d.ts.map +1 -0
  128. package/lib/env.js +64 -0
  129. package/lib/env.js.map +1 -0
  130. package/lib/files.d.ts +8 -0
  131. package/lib/files.d.ts.map +1 -0
  132. package/lib/files.js +36 -0
  133. package/lib/files.js.map +1 -0
  134. package/lib/http.d.ts +67 -0
  135. package/lib/http.d.ts.map +1 -0
  136. package/lib/http.js +217 -0
  137. package/lib/http.js.map +1 -0
  138. package/lib/is-plain-object.d.ts +2 -0
  139. package/lib/is-plain-object.d.ts.map +1 -0
  140. package/lib/is-plain-object.js +41 -0
  141. package/lib/is-plain-object.js.map +1 -0
  142. package/lib/logger.d.ts +6 -0
  143. package/lib/logger.d.ts.map +1 -0
  144. package/lib/logger.js +6 -0
  145. package/lib/logger.js.map +1 -0
  146. package/lib/matchers.d.ts +64 -0
  147. package/lib/matchers.d.ts.map +1 -0
  148. package/lib/matchers.js +204 -0
  149. package/lib/matchers.js.map +1 -0
  150. package/lib/primitives.d.ts +23 -0
  151. package/lib/primitives.d.ts.map +1 -0
  152. package/lib/primitives.js +104 -0
  153. package/lib/primitives.js.map +1 -0
  154. package/lib/retries.d.ts +38 -0
  155. package/lib/retries.d.ts.map +1 -0
  156. package/lib/retries.js +153 -0
  157. package/lib/retries.js.map +1 -0
  158. package/lib/schemas.d.ts +19 -0
  159. package/lib/schemas.d.ts.map +1 -0
  160. package/lib/schemas.js +62 -0
  161. package/lib/schemas.js.map +1 -0
  162. package/lib/sdks.d.ts +60 -0
  163. package/lib/sdks.d.ts.map +1 -0
  164. package/lib/sdks.js +280 -0
  165. package/lib/sdks.js.map +1 -0
  166. package/lib/security.d.ts +79 -0
  167. package/lib/security.d.ts.map +1 -0
  168. package/lib/security.js +121 -0
  169. package/lib/security.js.map +1 -0
  170. package/lib/url.d.ts +5 -0
  171. package/lib/url.d.ts.map +1 -0
  172. package/lib/url.js +25 -0
  173. package/lib/url.js.map +1 -0
  174. package/models/components/addressattributes.d.ts +83 -0
  175. package/models/components/addressattributes.d.ts.map +1 -0
  176. package/models/components/addressattributes.js +117 -0
  177. package/models/components/addressattributes.js.map +1 -0
  178. package/models/components/apierrorlinks.d.ts +32 -0
  179. package/models/components/apierrorlinks.d.ts.map +1 -0
  180. package/models/components/apierrorlinks.js +69 -0
  181. package/models/components/apierrorlinks.js.map +1 -0
  182. package/models/components/applicationattributes.d.ts +69 -0
  183. package/models/components/applicationattributes.d.ts.map +1 -0
  184. package/models/components/applicationattributes.js +85 -0
  185. package/models/components/applicationattributes.js.map +1 -0
  186. package/models/components/applicationattributescreate.d.ts +43 -0
  187. package/models/components/applicationattributescreate.d.ts.map +1 -0
  188. package/models/components/applicationattributescreate.js +74 -0
  189. package/models/components/applicationattributescreate.js.map +1 -0
  190. package/models/components/applicationresourcebulksubmission.d.ts +456 -0
  191. package/models/components/applicationresourcebulksubmission.d.ts.map +1 -0
  192. package/models/components/applicationresourcebulksubmission.js +492 -0
  193. package/models/components/applicationresourcebulksubmission.js.map +1 -0
  194. package/models/components/applicationstatus.d.ts +46 -0
  195. package/models/components/applicationstatus.d.ts.map +1 -0
  196. package/models/components/applicationstatus.js +66 -0
  197. package/models/components/applicationstatus.js.map +1 -0
  198. package/models/components/applicationtype.d.ts +28 -0
  199. package/models/components/applicationtype.d.ts.map +1 -0
  200. package/models/components/applicationtype.js +60 -0
  201. package/models/components/applicationtype.js.map +1 -0
  202. package/models/components/assetattributes.d.ts +388 -0
  203. package/models/components/assetattributes.d.ts.map +1 -0
  204. package/models/components/assetattributes.js +244 -0
  205. package/models/components/assetattributes.js.map +1 -0
  206. package/models/components/customerattributes.d.ts +103 -0
  207. package/models/components/customerattributes.d.ts.map +1 -0
  208. package/models/components/customerattributes.js +120 -0
  209. package/models/components/customerattributes.js.map +1 -0
  210. package/models/components/customertitle.d.ts +34 -0
  211. package/models/components/customertitle.d.ts.map +1 -0
  212. package/models/components/customertitle.js +62 -0
  213. package/models/components/customertitle.js.map +1 -0
  214. package/models/components/errorsource.d.ts +42 -0
  215. package/models/components/errorsource.d.ts.map +1 -0
  216. package/models/components/errorsource.js +73 -0
  217. package/models/components/errorsource.js.map +1 -0
  218. package/models/components/forbiddenerror.d.ts +141 -0
  219. package/models/components/forbiddenerror.d.ts.map +1 -0
  220. package/models/components/forbiddenerror.js +158 -0
  221. package/models/components/forbiddenerror.js.map +1 -0
  222. package/models/components/frequencytype.d.ts +37 -0
  223. package/models/components/frequencytype.d.ts.map +1 -0
  224. package/models/components/frequencytype.js +64 -0
  225. package/models/components/frequencytype.js.map +1 -0
  226. package/models/components/index.d.ts +17 -0
  227. package/models/components/index.d.ts.map +1 -0
  228. package/models/components/index.js +36 -0
  229. package/models/components/index.js.map +1 -0
  230. package/models/components/links.d.ts +40 -0
  231. package/models/components/links.d.ts.map +1 -0
  232. package/models/components/links.js +72 -0
  233. package/models/components/links.js.map +1 -0
  234. package/models/components/loandetailsattributes.d.ts +112 -0
  235. package/models/components/loandetailsattributes.d.ts.map +1 -0
  236. package/models/components/loandetailsattributes.js +101 -0
  237. package/models/components/loandetailsattributes.js.map +1 -0
  238. package/models/components/repaymentstructure.d.ts +37 -0
  239. package/models/components/repaymentstructure.d.ts.map +1 -0
  240. package/models/components/repaymentstructure.js +64 -0
  241. package/models/components/repaymentstructure.js.map +1 -0
  242. package/models/errors/apierror.d.ts +8 -0
  243. package/models/errors/apierror.d.ts.map +1 -0
  244. package/models/errors/apierror.js +21 -0
  245. package/models/errors/apierror.js.map +1 -0
  246. package/models/errors/createapplication.d.ts +38 -0
  247. package/models/errors/createapplication.d.ts.map +1 -0
  248. package/models/errors/createapplication.js +81 -0
  249. package/models/errors/createapplication.js.map +1 -0
  250. package/models/errors/getapplication.d.ts +38 -0
  251. package/models/errors/getapplication.d.ts.map +1 -0
  252. package/models/errors/getapplication.js +81 -0
  253. package/models/errors/getapplication.js.map +1 -0
  254. package/models/errors/getapplications.d.ts +38 -0
  255. package/models/errors/getapplications.d.ts.map +1 -0
  256. package/models/errors/getapplications.js +81 -0
  257. package/models/errors/getapplications.js.map +1 -0
  258. package/models/errors/httpclienterrors.d.ts +44 -0
  259. package/models/errors/httpclienterrors.d.ts.map +1 -0
  260. package/models/errors/httpclienterrors.js +78 -0
  261. package/models/errors/httpclienterrors.js.map +1 -0
  262. package/models/errors/index.d.ts +7 -0
  263. package/models/errors/index.d.ts.map +1 -0
  264. package/models/errors/index.js +26 -0
  265. package/models/errors/index.js.map +1 -0
  266. package/models/errors/sdkvalidationerror.d.ts +20 -0
  267. package/models/errors/sdkvalidationerror.d.ts.map +1 -0
  268. package/models/errors/sdkvalidationerror.js +115 -0
  269. package/models/errors/sdkvalidationerror.js.map +1 -0
  270. package/models/operations/createapplication.d.ts +780 -0
  271. package/models/operations/createapplication.d.ts.map +1 -0
  272. package/models/operations/createapplication.js +834 -0
  273. package/models/operations/createapplication.js.map +1 -0
  274. package/models/operations/getapplication.d.ts +805 -0
  275. package/models/operations/getapplication.d.ts.map +1 -0
  276. package/models/operations/getapplication.js +861 -0
  277. package/models/operations/getapplication.js.map +1 -0
  278. package/models/operations/getapplications.d.ts +805 -0
  279. package/models/operations/getapplications.d.ts.map +1 -0
  280. package/models/operations/getapplications.js +864 -0
  281. package/models/operations/getapplications.js.map +1 -0
  282. package/models/operations/index.d.ts +4 -0
  283. package/models/operations/index.d.ts.map +1 -0
  284. package/models/operations/index.js +23 -0
  285. package/models/operations/index.js.map +1 -0
  286. package/package.json +30 -0
  287. package/sdk/applications.d.ts +18 -0
  288. package/sdk/applications.d.ts.map +1 -0
  289. package/sdk/applications.js +33 -0
  290. package/sdk/applications.js.map +1 -0
  291. package/sdk/index.d.ts +2 -0
  292. package/sdk/index.d.ts.map +1 -0
  293. package/sdk/index.js +21 -0
  294. package/sdk/index.js.map +1 -0
  295. package/sdk/sdk.d.ts +7 -0
  296. package/sdk/sdk.d.ts.map +1 -0
  297. package/sdk/sdk.js +15 -0
  298. package/sdk/sdk.js.map +1 -0
  299. package/src/core.ts +13 -0
  300. package/src/funcs/applicationsCreate.ts +128 -0
  301. package/src/funcs/applicationsGet.ts +132 -0
  302. package/src/funcs/applicationsList.ts +130 -0
  303. package/src/hooks/hooks.ts +129 -0
  304. package/src/hooks/index.ts +6 -0
  305. package/src/hooks/types.ts +110 -0
  306. package/src/index.ts +7 -0
  307. package/src/lib/base64.ts +37 -0
  308. package/src/lib/config.ts +59 -0
  309. package/src/lib/dlv.ts +53 -0
  310. package/src/lib/encodings.ts +483 -0
  311. package/src/lib/env.ts +37 -0
  312. package/src/lib/files.ts +40 -0
  313. package/src/lib/http.ts +323 -0
  314. package/src/lib/is-plain-object.ts +43 -0
  315. package/src/lib/logger.ts +9 -0
  316. package/src/lib/matchers.ts +322 -0
  317. package/src/lib/primitives.ts +136 -0
  318. package/src/lib/retries.ts +218 -0
  319. package/src/lib/schemas.ts +91 -0
  320. package/src/lib/sdks.ts +400 -0
  321. package/src/lib/security.ts +227 -0
  322. package/src/lib/url.ts +33 -0
  323. package/src/models/components/addressattributes.ts +148 -0
  324. package/src/models/components/apierrorlinks.ts +65 -0
  325. package/src/models/components/applicationattributes.ts +128 -0
  326. package/src/models/components/applicationattributescreate.ts +90 -0
  327. package/src/models/components/applicationresourcebulksubmission.ts +1000 -0
  328. package/src/models/components/applicationstatus.ts +39 -0
  329. package/src/models/components/applicationtype.ts +33 -0
  330. package/src/models/components/assetattributes.ts +400 -0
  331. package/src/models/components/customerattributes.ts +171 -0
  332. package/src/models/components/customertitle.ts +35 -0
  333. package/src/models/components/errorsource.ts +79 -0
  334. package/src/models/components/forbiddenerror.ts +207 -0
  335. package/src/models/components/frequencytype.ts +40 -0
  336. package/src/models/components/index.ts +20 -0
  337. package/src/models/components/links.ts +72 -0
  338. package/src/models/components/loandetailsattributes.ts +187 -0
  339. package/src/models/components/repaymentstructure.ts +40 -0
  340. package/src/models/errors/apierror.ts +27 -0
  341. package/src/models/errors/createapplication.ts +76 -0
  342. package/src/models/errors/getapplication.ts +76 -0
  343. package/src/models/errors/getapplications.ts +76 -0
  344. package/src/models/errors/httpclienterrors.ts +62 -0
  345. package/src/models/errors/index.ts +10 -0
  346. package/src/models/errors/sdkvalidationerror.ts +97 -0
  347. package/src/models/operations/createapplication.ts +1649 -0
  348. package/src/models/operations/getapplication.ts +1829 -0
  349. package/src/models/operations/getapplications.ts +1790 -0
  350. package/src/models/operations/index.ts +7 -0
  351. package/src/sdk/applications.ts +55 -0
  352. package/src/sdk/index.ts +5 -0
  353. package/src/sdk/sdk.ts +13 -0
  354. package/src/types/blobs.ts +31 -0
  355. package/src/types/constdatetime.ts +15 -0
  356. package/src/types/enums.ts +16 -0
  357. package/src/types/fp.ts +50 -0
  358. package/src/types/index.ts +11 -0
  359. package/src/types/operations.ts +105 -0
  360. package/src/types/rfcdate.ts +54 -0
  361. package/src/types/streams.ts +21 -0
  362. package/tsconfig.json +41 -0
  363. package/types/blobs.d.ts +4 -0
  364. package/types/blobs.d.ts.map +1 -0
  365. package/types/blobs.js +62 -0
  366. package/types/blobs.js.map +1 -0
  367. package/types/constdatetime.d.ts +3 -0
  368. package/types/constdatetime.d.ts.map +1 -0
  369. package/types/constdatetime.js +46 -0
  370. package/types/constdatetime.js.map +1 -0
  371. package/types/enums.d.ts +12 -0
  372. package/types/enums.d.ts.map +1 -0
  373. package/types/enums.js +10 -0
  374. package/types/enums.js.map +1 -0
  375. package/types/fp.d.ts +31 -0
  376. package/types/fp.d.ts.map +1 -0
  377. package/types/fp.js +37 -0
  378. package/types/fp.js.map +1 -0
  379. package/types/index.d.ts +8 -0
  380. package/types/index.d.ts.map +1 -0
  381. package/types/index.js +16 -0
  382. package/types/index.js.map +1 -0
  383. package/types/operations.d.ts +27 -0
  384. package/types/operations.d.ts.map +1 -0
  385. package/types/operations.js +83 -0
  386. package/types/operations.js.map +1 -0
  387. package/types/rfcdate.d.ts +21 -0
  388. package/types/rfcdate.d.ts.map +1 -0
  389. package/types/rfcdate.js +46 -0
  390. package/types/rfcdate.js.map +1 -0
  391. package/types/streams.d.ts +2 -0
  392. package/types/streams.d.ts.map +1 -0
  393. package/types/streams.js +18 -0
  394. package/types/streams.js.map +1 -0
@@ -0,0 +1,244 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.AssetAttributes$ = exports.AssetAttributes$outboundSchema = exports.AssetAttributes$inboundSchema = exports.RegistrationState$ = exports.RegistrationState$outboundSchema = exports.RegistrationState$inboundSchema = exports.Purpose$ = exports.Purpose$outboundSchema = exports.Purpose$inboundSchema = exports.AssetType$ = exports.AssetType$outboundSchema = exports.AssetType$inboundSchema = exports.Condition$ = exports.Condition$outboundSchema = exports.Condition$inboundSchema = exports.RegistrationState = exports.Purpose = exports.AssetType = exports.Condition = void 0;
40
+ exports.assetAttributesToJSON = assetAttributesToJSON;
41
+ exports.assetAttributesFromJSON = assetAttributesFromJSON;
42
+ const z = __importStar(require("zod"));
43
+ const schemas_js_1 = require("../../lib/schemas.js");
44
+ /**
45
+ * Condition of asset
46
+ */
47
+ exports.Condition = {
48
+ New: "NEW",
49
+ Demo: "DEMO",
50
+ Used: "USED",
51
+ };
52
+ /**
53
+ * Type of asset
54
+ */
55
+ exports.AssetType = {
56
+ MOTORVEHICLELessThan45TONNES: "MOTOR_VEHICLE_(<4.5_TONNES)",
57
+ ELECTRICMOTORVEHICLELessThan45TONNES: "ELECTRIC_MOTOR_VEHICLE_(<4.5_TONNES)",
58
+ COMMERCIALSMALLTOMEDIUMVEHICLESLessThan12TONNES: "COMMERCIAL_(SMALL_TO_MEDIUM)_VEHICLES_(<12_TONNES)",
59
+ COMMERCIALHEAVYVEHICLESGreaterThan12TONNES: "COMMERCIAL_(HEAVY)_VEHICLES_(>12_TONNES)",
60
+ WarehouseEquipmentWheeledOrTracked: "WAREHOUSE_EQUIPMENT_(WHEELED_OR_TRACKED)",
61
+ EARTHMOVINGAndCONSTRUCTIONWHEELEDORTRACKED: "EARTH_MOVING_&_CONSTRUCTION_(WHEELED_OR_TRACKED)",
62
+ AGRICULTURALAndLANDSCAPINGEQUIPMENTWHEELEDORTRACKED: "AGRICULTURAL_&_LANDSCAPING_EQUIPMENT_(WHEELED_OR_TRACKED)",
63
+ MINIBUSESAndROUTEBUSESLessThan25SEATS: "MINI_BUSES_&_ROUTE_BUSES_(<25_SEATS)",
64
+ TrailersAndCaravans: "TRAILERS_AND_CARAVANS",
65
+ INDUSTRIALPLANTAndPRINTING: "INDUSTRIAL_PLANT_&_PRINTING",
66
+ ManufacturingEquipment: "MANUFACTURING_EQUIPMENT",
67
+ MedicalEquipment: "MEDICAL_EQUIPMENT",
68
+ ITCOMPUTERAndAUDIOEQUIPMENT: "IT_COMPUTER_&_AUDIO_EQUIPMENT",
69
+ HEALTHAndBEAUTYEQUIPMENT: "HEALTH_&_BEAUTY_EQUIPMENT",
70
+ OfficeEquipment: "OFFICE_EQUIPMENT",
71
+ OfficeFitout: "OFFICE_FITOUT",
72
+ RESTAURANTAndCATERINGEQUIPMENT: "RESTAURANT_&_CATERING_EQUIPMENT",
73
+ OfficeFurniture: "OFFICE_FURNITURE",
74
+ Solar: "SOLAR",
75
+ MotorbikesAtvs: "MOTORBIKES_ATVS",
76
+ ClassicCar: "CLASSIC_CAR",
77
+ TraileredBoats: "TRAILERED_BOATS",
78
+ Jetskis: "JETSKIS",
79
+ RideOnMowers: "RIDE_ON_MOWERS",
80
+ GolfCarts: "GOLF_CARTS",
81
+ Other: "OTHER",
82
+ };
83
+ exports.Purpose = {
84
+ Vehicle: "VEHICLE",
85
+ DebtConsolidation: "DEBT_CONSOLIDATION",
86
+ HomeImprovements: "HOME_IMPROVEMENTS",
87
+ MEDICALAndDENTAL: "MEDICAL_&_DENTAL",
88
+ HouseholdFurnishings: "HOUSEHOLD_FURNISHINGS",
89
+ Education: "EDUCATION",
90
+ Travel: "TRAVEL",
91
+ Wedding: "WEDDING",
92
+ MortgageCostFunding: "MORTGAGE_COST_FUNDING",
93
+ OtherPersonalUse: "OTHER_PERSONAL_USE",
94
+ };
95
+ /**
96
+ * Registration state (or territory) of asset
97
+ */
98
+ exports.RegistrationState = {
99
+ Vic: "VIC",
100
+ Nsw: "NSW",
101
+ Qld: "QLD",
102
+ Sa: "SA",
103
+ Wa: "WA",
104
+ Tas: "TAS",
105
+ Nt: "NT",
106
+ Act: "ACT",
107
+ };
108
+ /** @internal */
109
+ exports.Condition$inboundSchema = z
110
+ .nativeEnum(exports.Condition);
111
+ /** @internal */
112
+ exports.Condition$outboundSchema = exports.Condition$inboundSchema;
113
+ /**
114
+ * @internal
115
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
116
+ */
117
+ var Condition$;
118
+ (function (Condition$) {
119
+ /** @deprecated use `Condition$inboundSchema` instead. */
120
+ Condition$.inboundSchema = exports.Condition$inboundSchema;
121
+ /** @deprecated use `Condition$outboundSchema` instead. */
122
+ Condition$.outboundSchema = exports.Condition$outboundSchema;
123
+ })(Condition$ || (exports.Condition$ = Condition$ = {}));
124
+ /** @internal */
125
+ exports.AssetType$inboundSchema = z
126
+ .nativeEnum(exports.AssetType);
127
+ /** @internal */
128
+ exports.AssetType$outboundSchema = exports.AssetType$inboundSchema;
129
+ /**
130
+ * @internal
131
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
132
+ */
133
+ var AssetType$;
134
+ (function (AssetType$) {
135
+ /** @deprecated use `AssetType$inboundSchema` instead. */
136
+ AssetType$.inboundSchema = exports.AssetType$inboundSchema;
137
+ /** @deprecated use `AssetType$outboundSchema` instead. */
138
+ AssetType$.outboundSchema = exports.AssetType$outboundSchema;
139
+ })(AssetType$ || (exports.AssetType$ = AssetType$ = {}));
140
+ /** @internal */
141
+ exports.Purpose$inboundSchema = z
142
+ .nativeEnum(exports.Purpose);
143
+ /** @internal */
144
+ exports.Purpose$outboundSchema = exports.Purpose$inboundSchema;
145
+ /**
146
+ * @internal
147
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
148
+ */
149
+ var Purpose$;
150
+ (function (Purpose$) {
151
+ /** @deprecated use `Purpose$inboundSchema` instead. */
152
+ Purpose$.inboundSchema = exports.Purpose$inboundSchema;
153
+ /** @deprecated use `Purpose$outboundSchema` instead. */
154
+ Purpose$.outboundSchema = exports.Purpose$outboundSchema;
155
+ })(Purpose$ || (exports.Purpose$ = Purpose$ = {}));
156
+ /** @internal */
157
+ exports.RegistrationState$inboundSchema = z.nativeEnum(exports.RegistrationState);
158
+ /** @internal */
159
+ exports.RegistrationState$outboundSchema = exports.RegistrationState$inboundSchema;
160
+ /**
161
+ * @internal
162
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
163
+ */
164
+ var RegistrationState$;
165
+ (function (RegistrationState$) {
166
+ /** @deprecated use `RegistrationState$inboundSchema` instead. */
167
+ RegistrationState$.inboundSchema = exports.RegistrationState$inboundSchema;
168
+ /** @deprecated use `RegistrationState$outboundSchema` instead. */
169
+ RegistrationState$.outboundSchema = exports.RegistrationState$outboundSchema;
170
+ })(RegistrationState$ || (exports.RegistrationState$ = RegistrationState$ = {}));
171
+ /** @internal */
172
+ exports.AssetAttributes$inboundSchema = z.object({
173
+ ageOfAsset: z.number().int(),
174
+ ageOfAssetAtEnd: z.number().int(),
175
+ condition: exports.Condition$inboundSchema,
176
+ assetType: exports.AssetType$inboundSchema,
177
+ purpose: exports.Purpose$inboundSchema,
178
+ assetValue: z.string(),
179
+ make: z.string(),
180
+ assetModel: z.string(),
181
+ registrationNumber: z.string(),
182
+ registrationState: exports.RegistrationState$inboundSchema.optional(),
183
+ vin: z.string().optional(),
184
+ supplierName: z.string().optional(),
185
+ supplierABN: z.string().optional(),
186
+ supplierAddress: z.string().optional(),
187
+ supplierPhone: z.string().optional(),
188
+ supplierContactName: z.string().optional(),
189
+ supplierEmail: z.string().optional(),
190
+ privateSale: z.boolean(),
191
+ typeOfSale: z.string(),
192
+ description: z.string(),
193
+ netAssetValue: z.string(),
194
+ isLuxury: z.boolean(),
195
+ luxuryGst: z.string().optional(),
196
+ additionalFees: z.string().optional(),
197
+ additionalTaxes: z.string().optional(),
198
+ });
199
+ /** @internal */
200
+ exports.AssetAttributes$outboundSchema = z.object({
201
+ ageOfAsset: z.number().int(),
202
+ ageOfAssetAtEnd: z.number().int(),
203
+ condition: exports.Condition$outboundSchema,
204
+ assetType: exports.AssetType$outboundSchema,
205
+ purpose: exports.Purpose$outboundSchema,
206
+ assetValue: z.string(),
207
+ make: z.string(),
208
+ assetModel: z.string(),
209
+ registrationNumber: z.string(),
210
+ registrationState: exports.RegistrationState$outboundSchema.optional(),
211
+ vin: z.string().optional(),
212
+ supplierName: z.string().optional(),
213
+ supplierABN: z.string().optional(),
214
+ supplierAddress: z.string().optional(),
215
+ supplierPhone: z.string().optional(),
216
+ supplierContactName: z.string().optional(),
217
+ supplierEmail: z.string().optional(),
218
+ privateSale: z.boolean(),
219
+ typeOfSale: z.string(),
220
+ description: z.string(),
221
+ netAssetValue: z.string(),
222
+ isLuxury: z.boolean(),
223
+ luxuryGst: z.string().optional(),
224
+ additionalFees: z.string().optional(),
225
+ additionalTaxes: z.string().optional(),
226
+ });
227
+ /**
228
+ * @internal
229
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
230
+ */
231
+ var AssetAttributes$;
232
+ (function (AssetAttributes$) {
233
+ /** @deprecated use `AssetAttributes$inboundSchema` instead. */
234
+ AssetAttributes$.inboundSchema = exports.AssetAttributes$inboundSchema;
235
+ /** @deprecated use `AssetAttributes$outboundSchema` instead. */
236
+ AssetAttributes$.outboundSchema = exports.AssetAttributes$outboundSchema;
237
+ })(AssetAttributes$ || (exports.AssetAttributes$ = AssetAttributes$ = {}));
238
+ function assetAttributesToJSON(assetAttributes) {
239
+ return JSON.stringify(exports.AssetAttributes$outboundSchema.parse(assetAttributes));
240
+ }
241
+ function assetAttributesFromJSON(jsonString) {
242
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssetAttributes$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssetAttributes' from JSON`);
243
+ }
244
+ //# sourceMappingURL=assetattributes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assetattributes.js","sourceRoot":"","sources":["../../src/models/components/assetattributes.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+XH,sDAIC;AAED,0DAQC;AA3YD,uCAAyB;AACzB,qDAAiD;AAKjD;;GAEG;AACU,QAAA,SAAS,GAAG;IACvB,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACJ,CAAC;AAMX;;GAEG;AACU,QAAA,SAAS,GAAG;IACvB,4BAA4B,EAAE,6BAA6B;IAC3D,oCAAoC,EAAE,sCAAsC;IAC5E,+CAA+C,EAC7C,oDAAoD;IACtD,0CAA0C,EACxC,0CAA0C;IAC5C,kCAAkC,EAChC,0CAA0C;IAC5C,0CAA0C,EACxC,kDAAkD;IACpD,mDAAmD,EACjD,2DAA2D;IAC7D,qCAAqC,EAAE,sCAAsC;IAC7E,mBAAmB,EAAE,uBAAuB;IAC5C,0BAA0B,EAAE,6BAA6B;IACzD,sBAAsB,EAAE,yBAAyB;IACjD,gBAAgB,EAAE,mBAAmB;IACrC,2BAA2B,EAAE,+BAA+B;IAC5D,wBAAwB,EAAE,2BAA2B;IACrD,eAAe,EAAE,kBAAkB;IACnC,YAAY,EAAE,eAAe;IAC7B,8BAA8B,EAAE,iCAAiC;IACjE,eAAe,EAAE,kBAAkB;IACnC,KAAK,EAAE,OAAO;IACd,cAAc,EAAE,iBAAiB;IACjC,UAAU,EAAE,aAAa;IACzB,cAAc,EAAE,iBAAiB;IACjC,OAAO,EAAE,SAAS;IAClB,YAAY,EAAE,gBAAgB;IAC9B,SAAS,EAAE,YAAY;IACvB,KAAK,EAAE,OAAO;CACN,CAAC;AAME,QAAA,OAAO,GAAG;IACrB,OAAO,EAA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,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
@@ -0,0 +1,103 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ import { CustomerTitle } from "./customertitle.js";
6
+ /**
7
+ * Type of ID, either drivers' license or passport
8
+ */
9
+ export declare const IDType: {
10
+ readonly Licence: "licence";
11
+ readonly Passport: "passport";
12
+ };
13
+ /**
14
+ * Type of ID, either drivers' license or passport
15
+ */
16
+ export type IDType = ClosedEnum<typeof IDType>;
17
+ /**
18
+ * A customer of the proposed financing
19
+ */
20
+ export type CustomerAttributes = {
21
+ /**
22
+ * Title of the customer
23
+ */
24
+ title: CustomerTitle;
25
+ /**
26
+ * First name of the customer
27
+ */
28
+ firstName: string;
29
+ /**
30
+ * Middle names of the customer
31
+ */
32
+ middleNames?: string | undefined;
33
+ /**
34
+ * Last name of the customer
35
+ */
36
+ lastName: string;
37
+ /**
38
+ * Date of birth in format DD-MM-YYYY
39
+ */
40
+ dateOfBirth: string;
41
+ /**
42
+ * Date of expiry of the ID in format DD-MM-YYYY
43
+ */
44
+ idExpiryDate: string;
45
+ /**
46
+ * Type of ID, either drivers' license or passport
47
+ */
48
+ idType?: IDType | undefined;
49
+ /**
50
+ * Number of the ID
51
+ */
52
+ idNumber?: string | undefined;
53
+ };
54
+ /** @internal */
55
+ export declare const IDType$inboundSchema: z.ZodNativeEnum<typeof IDType>;
56
+ /** @internal */
57
+ export declare const IDType$outboundSchema: z.ZodNativeEnum<typeof IDType>;
58
+ /**
59
+ * @internal
60
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
61
+ */
62
+ export declare namespace IDType$ {
63
+ /** @deprecated use `IDType$inboundSchema` instead. */
64
+ const inboundSchema: z.ZodNativeEnum<{
65
+ readonly Licence: "licence";
66
+ readonly Passport: "passport";
67
+ }>;
68
+ /** @deprecated use `IDType$outboundSchema` instead. */
69
+ const outboundSchema: z.ZodNativeEnum<{
70
+ readonly Licence: "licence";
71
+ readonly Passport: "passport";
72
+ }>;
73
+ }
74
+ /** @internal */
75
+ export declare const CustomerAttributes$inboundSchema: z.ZodType<CustomerAttributes, z.ZodTypeDef, unknown>;
76
+ /** @internal */
77
+ export type CustomerAttributes$Outbound = {
78
+ title: string;
79
+ firstName: string;
80
+ middleNames?: string | undefined;
81
+ lastName: string;
82
+ dateOfBirth: string;
83
+ IDExpiryDate: string;
84
+ IDType?: string | undefined;
85
+ IDNumber?: string | undefined;
86
+ };
87
+ /** @internal */
88
+ export declare const CustomerAttributes$outboundSchema: z.ZodType<CustomerAttributes$Outbound, z.ZodTypeDef, CustomerAttributes>;
89
+ /**
90
+ * @internal
91
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
92
+ */
93
+ export declare namespace CustomerAttributes$ {
94
+ /** @deprecated use `CustomerAttributes$inboundSchema` instead. */
95
+ const inboundSchema: z.ZodType<CustomerAttributes, z.ZodTypeDef, unknown>;
96
+ /** @deprecated use `CustomerAttributes$outboundSchema` instead. */
97
+ const outboundSchema: z.ZodType<CustomerAttributes$Outbound, z.ZodTypeDef, CustomerAttributes>;
98
+ /** @deprecated use `CustomerAttributes$Outbound` instead. */
99
+ type Outbound = CustomerAttributes$Outbound;
100
+ }
101
+ export declare function customerAttributesToJSON(customerAttributes: CustomerAttributes): string;
102
+ export declare function customerAttributesFromJSON(jsonString: string): SafeParseResult<CustomerAttributes, SDKValidationError>;
103
+ //# sourceMappingURL=customerattributes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customerattributes.d.ts","sourceRoot":"","sources":["../../src/models/components/customerattributes.ts"],"names":[],"mappings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AC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CAgBP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAgBlB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,mBAAmB,CAAC;IACnC,kEAAkE;IAC3D,MAAM,aAAa,sDAAmC,CAAC;IAC9D,mEAAmE;IAC5D,MAAM,cAAc,0EAAoC,CAAC;IAChE,6DAA6D;IAC7D,KAAY,QAAQ,GAAG,2BAA2B,CAAC;CACpD;AAED,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR;AAED,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.CustomerAttributes$ = exports.CustomerAttributes$outboundSchema = exports.CustomerAttributes$inboundSchema = exports.IDType$ = exports.IDType$outboundSchema = exports.IDType$inboundSchema = exports.IDType = void 0;
40
+ exports.customerAttributesToJSON = customerAttributesToJSON;
41
+ exports.customerAttributesFromJSON = customerAttributesFromJSON;
42
+ const z = __importStar(require("zod"));
43
+ const primitives_js_1 = require("../../lib/primitives.js");
44
+ const schemas_js_1 = require("../../lib/schemas.js");
45
+ const customertitle_js_1 = require("./customertitle.js");
46
+ /**
47
+ * Type of ID, either drivers' license or passport
48
+ */
49
+ exports.IDType = {
50
+ Licence: "licence",
51
+ Passport: "passport",
52
+ };
53
+ /** @internal */
54
+ exports.IDType$inboundSchema = z
55
+ .nativeEnum(exports.IDType);
56
+ /** @internal */
57
+ exports.IDType$outboundSchema = exports.IDType$inboundSchema;
58
+ /**
59
+ * @internal
60
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
61
+ */
62
+ var IDType$;
63
+ (function (IDType$) {
64
+ /** @deprecated use `IDType$inboundSchema` instead. */
65
+ IDType$.inboundSchema = exports.IDType$inboundSchema;
66
+ /** @deprecated use `IDType$outboundSchema` instead. */
67
+ IDType$.outboundSchema = exports.IDType$outboundSchema;
68
+ })(IDType$ || (exports.IDType$ = IDType$ = {}));
69
+ /** @internal */
70
+ exports.CustomerAttributes$inboundSchema = z.object({
71
+ title: customertitle_js_1.CustomerTitle$inboundSchema,
72
+ firstName: z.string(),
73
+ middleNames: z.string().optional(),
74
+ lastName: z.string(),
75
+ dateOfBirth: z.string(),
76
+ IDExpiryDate: z.string(),
77
+ IDType: exports.IDType$inboundSchema.optional(),
78
+ IDNumber: z.string().optional(),
79
+ }).transform((v) => {
80
+ return (0, primitives_js_1.remap)(v, {
81
+ "IDExpiryDate": "idExpiryDate",
82
+ "IDType": "idType",
83
+ "IDNumber": "idNumber",
84
+ });
85
+ });
86
+ /** @internal */
87
+ exports.CustomerAttributes$outboundSchema = z.object({
88
+ title: customertitle_js_1.CustomerTitle$outboundSchema,
89
+ firstName: z.string(),
90
+ middleNames: z.string().optional(),
91
+ lastName: z.string(),
92
+ dateOfBirth: z.string(),
93
+ idExpiryDate: z.string(),
94
+ idType: exports.IDType$outboundSchema.optional(),
95
+ idNumber: z.string().optional(),
96
+ }).transform((v) => {
97
+ return (0, primitives_js_1.remap)(v, {
98
+ idExpiryDate: "IDExpiryDate",
99
+ idType: "IDType",
100
+ idNumber: "IDNumber",
101
+ });
102
+ });
103
+ /**
104
+ * @internal
105
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
106
+ */
107
+ var CustomerAttributes$;
108
+ (function (CustomerAttributes$) {
109
+ /** @deprecated use `CustomerAttributes$inboundSchema` instead. */
110
+ CustomerAttributes$.inboundSchema = exports.CustomerAttributes$inboundSchema;
111
+ /** @deprecated use `CustomerAttributes$outboundSchema` instead. */
112
+ CustomerAttributes$.outboundSchema = exports.CustomerAttributes$outboundSchema;
113
+ })(CustomerAttributes$ || (exports.CustomerAttributes$ = CustomerAttributes$ = {}));
114
+ function customerAttributesToJSON(customerAttributes) {
115
+ return JSON.stringify(exports.CustomerAttributes$outboundSchema.parse(customerAttributes));
116
+ }
117
+ function customerAttributesFromJSON(jsonString) {
118
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CustomerAttributes$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CustomerAttributes' from JSON`);
119
+ }
120
+ //# sourceMappingURL=customerattributes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customerattributes.js","sourceRoot":"","sources":["../../src/models/components/customerattributes.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwJH,4DAMC;AAED,gEAQC;AAtKD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAIjD,yDAI4B;AAE5B;;GAEG;AACU,QAAA,MAAM,GAAG;IACpB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;CACZ,CAAC;AA4CX,gBAAgB;AACH,QAAA,oBAAoB,GAAmC,CAAC;KAClE,UAAU,CAAC,cAAM,CAAC,CAAC;AAEtB,gBAAgB;AACH,QAAA,qBAAqB,GAChC,4BAAoB,CAAC;AAEvB;;;GAGG;AACH,IAAiB,OAAO,CAKvB;AALD,WAAiB,OAAO;IACtB,sDAAsD;IACzC,qBAAa,GAAG,4BAAoB,CAAC;IAClD,uDAAuD;IAC1C,sBAAc,GAAG,6BAAqB,CAAC;AACtD,CAAC,EALgB,OAAO,uBAAP,OAAO,QAKvB;AAED,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,8CAA2B;IAClC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;I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AAG,yCAAiC,CAAC;AAGlE,CAAC,EAPgB,mBAAmB,mCAAnB,mBAAmB,QAOnC;AAED,SAAgB,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC;AAED,SAAgB,0BAA0B,CACxC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,34 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ export declare const CustomerTitle: {
4
+ readonly Mr: "Mr";
5
+ readonly Ms: "Ms";
6
+ readonly Mrs: "Mrs";
7
+ readonly Miss: "Miss";
8
+ };
9
+ export type CustomerTitle = ClosedEnum<typeof CustomerTitle>;
10
+ /** @internal */
11
+ export declare const CustomerTitle$inboundSchema: z.ZodNativeEnum<typeof CustomerTitle>;
12
+ /** @internal */
13
+ export declare const CustomerTitle$outboundSchema: z.ZodNativeEnum<typeof CustomerTitle>;
14
+ /**
15
+ * @internal
16
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
17
+ */
18
+ export declare namespace CustomerTitle$ {
19
+ /** @deprecated use `CustomerTitle$inboundSchema` instead. */
20
+ const inboundSchema: z.ZodNativeEnum<{
21
+ readonly Mr: "Mr";
22
+ readonly Ms: "Ms";
23
+ readonly Mrs: "Mrs";
24
+ readonly Miss: "Miss";
25
+ }>;
26
+ /** @deprecated use `CustomerTitle$outboundSchema` instead. */
27
+ const outboundSchema: z.ZodNativeEnum<{
28
+ readonly Mr: "Mr";
29
+ readonly Ms: "Ms";
30
+ readonly Mrs: "Mrs";
31
+ readonly Miss: "Miss";
32
+ }>;
33
+ }
34
+ //# sourceMappingURL=customertitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customertitle.d.ts","sourceRoot":"","sources":["../../src/models/components/customertitle.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,aAAa;;;;;CAKhB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AAE7D,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,aAAa,CACvD,OAAO,aAAa,CACS,CAAC;AAEhC,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,aAAa,CACxD,OAAO,aAAa,CACS,CAAC;AAEhC;;;GAGG;AACH,yBAAiB,cAAc,CAAC;IAC9B,6DAA6D;IACtD,MAAM,aAAa;;;;;MAA8B,CAAC;IACzD,8DAA8D;IACvD,MAAM,cAAc;;;;;MAA+B,CAAC;CAC5D"}
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.CustomerTitle$ = exports.CustomerTitle$outboundSchema = exports.CustomerTitle$inboundSchema = exports.CustomerTitle = void 0;
40
+ const z = __importStar(require("zod"));
41
+ exports.CustomerTitle = {
42
+ Mr: "Mr",
43
+ Ms: "Ms",
44
+ Mrs: "Mrs",
45
+ Miss: "Miss",
46
+ };
47
+ /** @internal */
48
+ exports.CustomerTitle$inboundSchema = z.nativeEnum(exports.CustomerTitle);
49
+ /** @internal */
50
+ exports.CustomerTitle$outboundSchema = exports.CustomerTitle$inboundSchema;
51
+ /**
52
+ * @internal
53
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
54
+ */
55
+ var CustomerTitle$;
56
+ (function (CustomerTitle$) {
57
+ /** @deprecated use `CustomerTitle$inboundSchema` instead. */
58
+ CustomerTitle$.inboundSchema = exports.CustomerTitle$inboundSchema;
59
+ /** @deprecated use `CustomerTitle$outboundSchema` instead. */
60
+ CustomerTitle$.outboundSchema = exports.CustomerTitle$outboundSchema;
61
+ })(CustomerTitle$ || (exports.CustomerTitle$ = CustomerTitle$ = {}));
62
+ //# sourceMappingURL=customertitle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customertitle.js","sourceRoot":"","sources":["../../src/models/components/customertitle.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,aAAa,GAAG;IAC3B,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;CACJ,CAAC;AAGX,gBAAgB;AACH,QAAA,2BAA2B,GAEpC,CAAC,CAAC,UAAU,CAAC,qBAAa,CAAC,CAAC;AAEhC,gBAAgB;AACH,QAAA,4BAA4B,GAErC,mCAA2B,CAAC;AAEhC;;;GAGG;AACH,IAAiB,cAAc,CAK9B;AALD,WAAiB,cAAc;IAC7B,6DAA6D;IAChD,4BAAa,GAAG,mCAA2B,CAAC;IACzD,8DAA8D;IACjD,6BAAc,GAAG,oCAA4B,CAAC;AAC7D,CAAC,EALgB,cAAc,8BAAd,cAAc,QAK9B"}
@@ -0,0 +1,42 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ export type ErrorSource = {
5
+ /**
6
+ * A JSON Pointer to the associated entity in the request document.
7
+ */
8
+ pointer?: string | undefined;
9
+ /**
10
+ * A string indicating which URI query parameter caused the error.
11
+ */
12
+ parameter?: string | undefined;
13
+ /**
14
+ * A string indicating which HTTP header caused the error.
15
+ */
16
+ header?: string | undefined;
17
+ };
18
+ /** @internal */
19
+ export declare const ErrorSource$inboundSchema: z.ZodType<ErrorSource, z.ZodTypeDef, unknown>;
20
+ /** @internal */
21
+ export type ErrorSource$Outbound = {
22
+ pointer?: string | undefined;
23
+ parameter?: string | undefined;
24
+ header?: string | undefined;
25
+ };
26
+ /** @internal */
27
+ export declare const ErrorSource$outboundSchema: z.ZodType<ErrorSource$Outbound, z.ZodTypeDef, ErrorSource>;
28
+ /**
29
+ * @internal
30
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
31
+ */
32
+ export declare namespace ErrorSource$ {
33
+ /** @deprecated use `ErrorSource$inboundSchema` instead. */
34
+ const inboundSchema: z.ZodType<ErrorSource, z.ZodTypeDef, unknown>;
35
+ /** @deprecated use `ErrorSource$outboundSchema` instead. */
36
+ const outboundSchema: z.ZodType<ErrorSource$Outbound, z.ZodTypeDef, ErrorSource>;
37
+ /** @deprecated use `ErrorSource$Outbound` instead. */
38
+ type Outbound = ErrorSource$Outbound;
39
+ }
40
+ export declare function errorSourceToJSON(errorSource: ErrorSource): string;
41
+ export declare function errorSourceFromJSON(jsonString: string): SafeParseResult<ErrorSource, SDKValidationError>;
42
+ //# sourceMappingURL=errorsource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errorsource.d.ts","sourceRoot":"","sources":["../../src/models/components/errorsource.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAC/C,WAAW,EACX,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,oBAAo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