@financeable/aggregation 0.12.1 → 0.13.1

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 (513) hide show
  1. package/lib/config.d.ts +3 -3
  2. package/lib/config.js +3 -3
  3. package/lib/encodings.d.ts +1 -0
  4. package/lib/encodings.d.ts.map +1 -1
  5. package/models/components/addressattributes.d.ts +0 -28
  6. package/models/components/addressattributes.d.ts.map +1 -1
  7. package/models/components/apierrorlinks.d.ts +0 -19
  8. package/models/components/apierrorlinks.d.ts.map +1 -1
  9. package/models/components/applicationresource.d.ts +4 -21
  10. package/models/components/applicationresource.d.ts.map +1 -1
  11. package/models/components/applicationstatus.d.ts +0 -30
  12. package/models/components/applicationstatus.d.ts.map +1 -1
  13. package/models/components/australianstatesandterritories.d.ts +0 -28
  14. package/models/components/australianstatesandterritories.d.ts.map +1 -1
  15. package/models/components/badrequesterror.d.ts +3 -85
  16. package/models/components/badrequesterror.d.ts.map +1 -1
  17. package/models/components/businessapplicationjsonapirelationships.d.ts +1 -205
  18. package/models/components/businessapplicationjsonapirelationships.d.ts.map +1 -1
  19. package/models/components/businessapplicationpayload.d.ts +0 -64
  20. package/models/components/businessapplicationpayload.d.ts.map +1 -1
  21. package/models/components/businessapplicationresource.d.ts +12 -94
  22. package/models/components/businessapplicationresource.d.ts.map +1 -1
  23. package/models/components/businessloanbusinessapplicationrelationships.d.ts +0 -308
  24. package/models/components/businessloanbusinessapplicationrelationships.d.ts.map +1 -1
  25. package/models/components/commercialapplicationjsonapirelationships.d.ts +1 -267
  26. package/models/components/commercialapplicationjsonapirelationships.d.ts.map +1 -1
  27. package/models/components/commercialsecuredapplicationpayload.d.ts +0 -78
  28. package/models/components/commercialsecuredapplicationpayload.d.ts.map +1 -1
  29. package/models/components/commercialsecuredapplicationresource.d.ts +12 -94
  30. package/models/components/commercialsecuredapplicationresource.d.ts.map +1 -1
  31. package/models/components/commercialsecuredloanassetattributes.d.ts +0 -130
  32. package/models/components/commercialsecuredloanassetattributes.d.ts.map +1 -1
  33. package/models/components/commercialsecuredloanassettype.d.ts +0 -64
  34. package/models/components/commercialsecuredloanassettype.d.ts.map +1 -1
  35. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +0 -354
  36. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
  37. package/models/components/commercialsecuredloantypeofsale.d.ts +0 -24
  38. package/models/components/commercialsecuredloantypeofsale.d.ts.map +1 -1
  39. package/models/components/consumerapplicationjsonapirelationships.d.ts +1 -205
  40. package/models/components/consumerapplicationjsonapirelationships.d.ts.map +1 -1
  41. package/models/components/consumersecuredapplicationpayload.d.ts +0 -78
  42. package/models/components/consumersecuredapplicationpayload.d.ts.map +1 -1
  43. package/models/components/consumersecuredapplicationresource.d.ts +12 -94
  44. package/models/components/consumersecuredapplicationresource.d.ts.map +1 -1
  45. package/models/components/consumersecuredloanassetattributes.d.ts +0 -130
  46. package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -1
  47. package/models/components/consumersecuredloanassettype.d.ts +0 -40
  48. package/models/components/consumersecuredloanassettype.d.ts.map +1 -1
  49. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +0 -400
  50. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
  51. package/models/components/consumersecuredloantypeofsale.d.ts +0 -24
  52. package/models/components/consumersecuredloantypeofsale.d.ts.map +1 -1
  53. package/models/components/createsupportingdocumentsresponse.d.ts +3 -78
  54. package/models/components/createsupportingdocumentsresponse.d.ts.map +1 -1
  55. package/models/components/currencycodeiso4217.d.ts +0 -14
  56. package/models/components/currencycodeiso4217.d.ts.map +1 -1
  57. package/models/components/customerassetattributes.d.ts +0 -12
  58. package/models/components/customerassetattributes.d.ts.map +1 -1
  59. package/models/components/customerassettype.d.ts +0 -28
  60. package/models/components/customerassettype.d.ts.map +1 -1
  61. package/models/components/customerattributes.d.ts +1 -33
  62. package/models/components/customerattributes.d.ts.map +1 -1
  63. package/models/components/customerattributescreateitem.d.ts +0 -17
  64. package/models/components/customerattributescreateitem.d.ts.map +1 -1
  65. package/models/components/customeridtype.d.ts +0 -18
  66. package/models/components/customeridtype.d.ts.map +1 -1
  67. package/models/components/customerliabilityattributes.d.ts +0 -12
  68. package/models/components/customerliabilityattributes.d.ts.map +1 -1
  69. package/models/components/customerliabilityrepaymentfrequency.d.ts +0 -18
  70. package/models/components/customerliabilityrepaymentfrequency.d.ts.map +1 -1
  71. package/models/components/customerliabilitytype.d.ts +0 -24
  72. package/models/components/customerliabilitytype.d.ts.map +1 -1
  73. package/models/components/customertitle.d.ts +0 -20
  74. package/models/components/customertitle.d.ts.map +1 -1
  75. package/models/components/documenttype.d.ts +0 -40
  76. package/models/components/documenttype.d.ts.map +1 -1
  77. package/models/components/entityattributes.d.ts +0 -84
  78. package/models/components/entityattributes.d.ts.map +1 -1
  79. package/models/components/entityattributesinput.d.ts +0 -17
  80. package/models/components/entityattributesinput.d.ts.map +1 -1
  81. package/models/components/errorsource.d.ts +0 -21
  82. package/models/components/errorsource.d.ts.map +1 -1
  83. package/models/components/expenseattributes.d.ts +0 -17
  84. package/models/components/expenseattributes.d.ts.map +1 -1
  85. package/models/components/expensefrequency.d.ts +0 -20
  86. package/models/components/expensefrequency.d.ts.map +1 -1
  87. package/models/components/expensetype.d.ts +0 -52
  88. package/models/components/expensetype.d.ts.map +1 -1
  89. package/models/components/forbiddenerror.d.ts +2 -78
  90. package/models/components/forbiddenerror.d.ts.map +1 -1
  91. package/models/components/frequencytype.d.ts +0 -18
  92. package/models/components/frequencytype.d.ts.map +1 -1
  93. package/models/components/incomeattributes.d.ts +0 -17
  94. package/models/components/incomeattributes.d.ts.map +1 -1
  95. package/models/components/incomefrequency.d.ts +0 -22
  96. package/models/components/incomefrequency.d.ts.map +1 -1
  97. package/models/components/incometype.d.ts +0 -32
  98. package/models/components/incometype.d.ts.map +1 -1
  99. package/models/components/linkobject.d.ts +0 -12
  100. package/models/components/linkobject.d.ts.map +1 -1
  101. package/models/components/livingarrangements.d.ts +0 -20
  102. package/models/components/livingarrangements.d.ts.map +1 -1
  103. package/models/components/loandetailsattributes.d.ts +5 -132
  104. package/models/components/loandetailsattributes.d.ts.map +1 -1
  105. package/models/components/maritalstatus.d.ts +0 -16
  106. package/models/components/maritalstatus.d.ts.map +1 -1
  107. package/models/components/monetaryquantity.d.ts +0 -26
  108. package/models/components/monetaryquantity.d.ts.map +1 -1
  109. package/models/components/paginationlinks.d.ts +0 -22
  110. package/models/components/paginationlinks.d.ts.map +1 -1
  111. package/models/components/paginationmeta.d.ts +0 -22
  112. package/models/components/paginationmeta.d.ts.map +1 -1
  113. package/models/components/percentagequantity.d.ts +0 -26
  114. package/models/components/percentagequantity.d.ts.map +1 -1
  115. package/models/components/personalapplicationjsonapirelationships.d.ts +1 -143
  116. package/models/components/personalapplicationjsonapirelationships.d.ts.map +1 -1
  117. package/models/components/personalapplicationpayload.d.ts +0 -64
  118. package/models/components/personalapplicationpayload.d.ts.map +1 -1
  119. package/models/components/personalapplicationresource.d.ts +12 -94
  120. package/models/components/personalapplicationresource.d.ts.map +1 -1
  121. package/models/components/personalloanpersonalapplicationrelationships.d.ts +0 -354
  122. package/models/components/personalloanpersonalapplicationrelationships.d.ts.map +1 -1
  123. package/models/components/relationshipresourcenotfound.d.ts +2 -78
  124. package/models/components/relationshipresourcenotfound.d.ts.map +1 -1
  125. package/models/components/repaymentstructure.d.ts +0 -18
  126. package/models/components/repaymentstructure.d.ts.map +1 -1
  127. package/models/components/residencystatus.d.ts +0 -22
  128. package/models/components/residencystatus.d.ts.map +1 -1
  129. package/models/components/resourcenotfound.d.ts +2 -78
  130. package/models/components/resourcenotfound.d.ts.map +1 -1
  131. package/models/components/security.d.ts +0 -17
  132. package/models/components/security.d.ts.map +1 -1
  133. package/models/components/supportingdocumentattributes.d.ts +0 -21
  134. package/models/components/supportingdocumentattributes.d.ts.map +1 -1
  135. package/models/components/supportingdocumentattributesinput.d.ts +0 -17
  136. package/models/components/supportingdocumentattributesinput.d.ts.map +1 -1
  137. package/models/components/supportingdocumentrelationships.d.ts +0 -190
  138. package/models/components/supportingdocumentrelationships.d.ts.map +1 -1
  139. package/models/components/supportingdocumentresource.d.ts +0 -33
  140. package/models/components/supportingdocumentresource.d.ts.map +1 -1
  141. package/models/components/tokenrequest.d.ts +0 -33
  142. package/models/components/tokenrequest.d.ts.map +1 -1
  143. package/models/components/tokenresponse.d.ts +0 -22
  144. package/models/components/tokenresponse.d.ts.map +1 -1
  145. package/models/components/uploadmimetype.d.ts +0 -28
  146. package/models/components/uploadmimetype.d.ts.map +1 -1
  147. package/models/operations/createapplication.d.ts +0 -484
  148. package/models/operations/createapplication.d.ts.map +1 -1
  149. package/models/operations/getapplication.d.ts +0 -469
  150. package/models/operations/getapplication.d.ts.map +1 -1
  151. package/models/operations/listapplications.d.ts +0 -91
  152. package/models/operations/listapplications.d.ts.map +1 -1
  153. package/models/operations/supportingdocumentscreate.d.ts +6 -159
  154. package/models/operations/supportingdocumentscreate.d.ts.map +1 -1
  155. package/package.json +16 -1
  156. package/src/hooks/oauth2scopes.ts +16 -0
  157. package/src/lib/config.ts +3 -3
  158. package/src/lib/encodings.ts +17 -3
  159. package/src/models/components/addressattributes.ts +0 -27
  160. package/src/models/components/apierrorlinks.ts +0 -31
  161. package/src/models/components/applicationresource.ts +0 -48
  162. package/src/models/components/applicationstatus.ts +0 -16
  163. package/src/models/components/australianstatesandterritories.ts +0 -12
  164. package/src/models/components/badrequesterror.ts +4 -119
  165. package/src/models/components/businessapplicationjsonapirelationships.ts +1 -395
  166. package/src/models/components/businessapplicationpayload.ts +2 -114
  167. package/src/models/components/businessapplicationresource.ts +14 -156
  168. package/src/models/components/businessloanbusinessapplicationrelationships.ts +6 -776
  169. package/src/models/components/commercialapplicationjsonapirelationships.ts +1 -497
  170. package/src/models/components/commercialsecuredapplicationpayload.ts +2 -112
  171. package/src/models/components/commercialsecuredapplicationresource.ts +14 -164
  172. package/src/models/components/commercialsecuredloanassetattributes.ts +0 -131
  173. package/src/models/components/commercialsecuredloanassettype.ts +0 -12
  174. package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +7 -790
  175. package/src/models/components/commercialsecuredloantypeofsale.ts +0 -12
  176. package/src/models/components/consumerapplicationjsonapirelationships.ts +1 -390
  177. package/src/models/components/consumersecuredapplicationpayload.ts +2 -127
  178. package/src/models/components/consumersecuredapplicationresource.ts +14 -163
  179. package/src/models/components/consumersecuredloanassetattributes.ts +0 -149
  180. package/src/models/components/consumersecuredloanassettype.ts +0 -12
  181. package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +8 -977
  182. package/src/models/components/consumersecuredloantypeofsale.ts +0 -12
  183. package/src/models/components/createsupportingdocumentsresponse.ts +1 -107
  184. package/src/models/components/currencycodeiso4217.ts +0 -12
  185. package/src/models/components/customerassetattributes.ts +0 -15
  186. package/src/models/components/customerassettype.ts +0 -12
  187. package/src/models/components/customerattributes.ts +2 -75
  188. package/src/models/components/customerattributescreateitem.ts +0 -59
  189. package/src/models/components/customeridtype.ts +1 -17
  190. package/src/models/components/customerliabilityattributes.ts +0 -15
  191. package/src/models/components/customerliabilityrepaymentfrequency.ts +0 -14
  192. package/src/models/components/customerliabilitytype.ts +0 -12
  193. package/src/models/components/customertitle.ts +0 -12
  194. package/src/models/components/documenttype.ts +0 -12
  195. package/src/models/components/entityattributes.ts +0 -95
  196. package/src/models/components/entityattributesinput.ts +0 -41
  197. package/src/models/components/errorsource.ts +0 -35
  198. package/src/models/components/expenseattributes.ts +1 -45
  199. package/src/models/components/expensefrequency.ts +1 -17
  200. package/src/models/components/expensetype.ts +1 -16
  201. package/src/models/components/forbiddenerror.ts +2 -103
  202. package/src/models/components/frequencytype.ts +0 -12
  203. package/src/models/components/incomeattributes.ts +1 -45
  204. package/src/models/components/incomefrequency.ts +1 -17
  205. package/src/models/components/incometype.ts +1 -16
  206. package/src/models/components/linkobject.ts +0 -15
  207. package/src/models/components/livingarrangements.ts +0 -12
  208. package/src/models/components/loandetailsattributes.ts +7 -165
  209. package/src/models/components/maritalstatus.ts +0 -12
  210. package/src/models/components/monetaryquantity.ts +0 -27
  211. package/src/models/components/paginationlinks.ts +0 -39
  212. package/src/models/components/paginationmeta.ts +0 -43
  213. package/src/models/components/percentagequantity.ts +0 -27
  214. package/src/models/components/personalapplicationjsonapirelationships.ts +1 -277
  215. package/src/models/components/personalapplicationpayload.ts +2 -114
  216. package/src/models/components/personalapplicationresource.ts +14 -156
  217. package/src/models/components/personalloanpersonalapplicationrelationships.ts +7 -892
  218. package/src/models/components/relationshipresourcenotfound.ts +2 -113
  219. package/src/models/components/repaymentstructure.ts +0 -12
  220. package/src/models/components/residencystatus.ts +0 -12
  221. package/src/models/components/resourcenotfound.ts +2 -109
  222. package/src/models/components/security.ts +0 -35
  223. package/src/models/components/supportingdocumentattributes.ts +1 -46
  224. package/src/models/components/supportingdocumentattributesinput.ts +1 -42
  225. package/src/models/components/supportingdocumentrelationships.ts +0 -230
  226. package/src/models/components/supportingdocumentresource.ts +1 -59
  227. package/src/models/components/tokenrequest.ts +1 -60
  228. package/src/models/components/tokenresponse.ts +0 -43
  229. package/src/models/components/uploadmimetype.ts +1 -17
  230. package/src/models/operations/createapplication.ts +0 -779
  231. package/src/models/operations/getapplication.ts +0 -759
  232. package/src/models/operations/listapplications.ts +0 -199
  233. package/src/models/operations/supportingdocumentscreate.ts +10 -340
  234. package/src/types/enums.ts +38 -9
  235. package/src/types/index.ts +2 -2
  236. package/src/types/unrecognized.ts +35 -0
  237. package/types/enums.d.ts +8 -11
  238. package/types/enums.d.ts.map +1 -1
  239. package/types/index.d.ts +2 -2
  240. package/types/index.d.ts.map +1 -1
  241. package/.devcontainer/README.md +0 -35
  242. package/.devcontainer/devcontainer.json +0 -45
  243. package/FUNCTIONS.md +0 -240
  244. package/RUNTIMES.md +0 -48
  245. package/core.js +0 -17
  246. package/core.js.map +0 -1
  247. package/docs/sdks/applications/README.md +0 -527
  248. package/docs/sdks/oauthtoken/README.md +0 -87
  249. package/docs/sdks/supportingdocuments/README.md +0 -115
  250. package/examples/README.md +0 -31
  251. package/examples/applicationsCreate.example.ts +0 -179
  252. package/examples/package-lock.json +0 -610
  253. package/examples/package.json +0 -18
  254. package/hooks/hooks.js +0 -84
  255. package/hooks/hooks.js.map +0 -1
  256. package/hooks/index.js +0 -22
  257. package/hooks/index.js.map +0 -1
  258. package/hooks/types.js +0 -6
  259. package/hooks/types.js.map +0 -1
  260. package/index.js +0 -48
  261. package/index.js.map +0 -1
  262. package/jsr.json +0 -27
  263. package/lib/base64.js +0 -71
  264. package/lib/base64.js.map +0 -1
  265. package/lib/dlv.d.ts +0 -14
  266. package/lib/dlv.d.ts.map +0 -1
  267. package/lib/dlv.js +0 -49
  268. package/lib/dlv.js.map +0 -1
  269. package/lib/encodings.js +0 -368
  270. package/lib/encodings.js.map +0 -1
  271. package/lib/env.js +0 -82
  272. package/lib/env.js.map +0 -1
  273. package/lib/files.d.ts +0 -13
  274. package/lib/files.d.ts.map +0 -1
  275. package/lib/files.js +0 -77
  276. package/lib/files.js.map +0 -1
  277. package/lib/http.d.ts +0 -67
  278. package/lib/http.d.ts.map +0 -1
  279. package/lib/http.js +0 -217
  280. package/lib/http.js.map +0 -1
  281. package/lib/is-plain-object.d.ts +0 -2
  282. package/lib/is-plain-object.d.ts.map +0 -1
  283. package/lib/is-plain-object.js +0 -41
  284. package/lib/is-plain-object.js.map +0 -1
  285. package/lib/logger.d.ts +0 -6
  286. package/lib/logger.d.ts.map +0 -1
  287. package/lib/logger.js +0 -6
  288. package/lib/logger.js.map +0 -1
  289. package/lib/matchers.js +0 -218
  290. package/lib/matchers.js.map +0 -1
  291. package/lib/primitives.d.ts +0 -26
  292. package/lib/primitives.d.ts.map +0 -1
  293. package/lib/primitives.js +0 -111
  294. package/lib/primitives.js.map +0 -1
  295. package/lib/retries.d.ts +0 -38
  296. package/lib/retries.d.ts.map +0 -1
  297. package/lib/retries.js +0 -153
  298. package/lib/retries.js.map +0 -1
  299. package/lib/schemas.js +0 -62
  300. package/lib/schemas.js.map +0 -1
  301. package/lib/sdks.js +0 -274
  302. package/lib/sdks.js.map +0 -1
  303. package/lib/security.js +0 -145
  304. package/lib/security.js.map +0 -1
  305. package/lib/url.d.ts +0 -5
  306. package/lib/url.d.ts.map +0 -1
  307. package/lib/url.js +0 -25
  308. package/lib/url.js.map +0 -1
  309. package/models/components/addressattributes.js +0 -120
  310. package/models/components/addressattributes.js.map +0 -1
  311. package/models/components/apierrorlinks.js +0 -69
  312. package/models/components/apierrorlinks.js.map +0 -1
  313. package/models/components/applicationresource.js +0 -79
  314. package/models/components/applicationresource.js.map +0 -1
  315. package/models/components/applicationstatus.js +0 -66
  316. package/models/components/applicationstatus.js.map +0 -1
  317. package/models/components/australianstatesandterritories.js +0 -66
  318. package/models/components/australianstatesandterritories.js.map +0 -1
  319. package/models/components/badrequesterror.js +0 -139
  320. package/models/components/badrequesterror.js.map +0 -1
  321. package/models/components/businessapplicationjsonapirelationships.js +0 -309
  322. package/models/components/businessapplicationjsonapirelationships.js.map +0 -1
  323. package/models/components/businessapplicationpayload.js +0 -150
  324. package/models/components/businessapplicationpayload.js.map +0 -1
  325. package/models/components/businessapplicationresource.js +0 -159
  326. package/models/components/businessapplicationresource.js.map +0 -1
  327. package/models/components/businessloanbusinessapplicationrelationships.js +0 -597
  328. package/models/components/businessloanbusinessapplicationrelationships.js.map +0 -1
  329. package/models/components/commercialapplicationjsonapirelationships.js +0 -391
  330. package/models/components/commercialapplicationjsonapirelationships.js.map +0 -1
  331. package/models/components/commercialsecuredapplicationpayload.js +0 -159
  332. package/models/components/commercialsecuredapplicationpayload.js.map +0 -1
  333. package/models/components/commercialsecuredapplicationresource.js +0 -159
  334. package/models/components/commercialsecuredapplicationresource.js.map +0 -1
  335. package/models/components/commercialsecuredloanassetattributes.js +0 -322
  336. package/models/components/commercialsecuredloanassetattributes.js.map +0 -1
  337. package/models/components/commercialsecuredloanassettype.js +0 -84
  338. package/models/components/commercialsecuredloanassettype.js.map +0 -1
  339. package/models/components/commercialsecuredloancommercialapplicationrelationships.js +0 -682
  340. package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +0 -1
  341. package/models/components/commercialsecuredloantypeofsale.js +0 -64
  342. package/models/components/commercialsecuredloantypeofsale.js.map +0 -1
  343. package/models/components/consumerapplicationjsonapirelationships.js +0 -310
  344. package/models/components/consumerapplicationjsonapirelationships.js.map +0 -1
  345. package/models/components/consumersecuredapplicationpayload.js +0 -160
  346. package/models/components/consumersecuredapplicationpayload.js.map +0 -1
  347. package/models/components/consumersecuredapplicationresource.js +0 -159
  348. package/models/components/consumersecuredapplicationresource.js.map +0 -1
  349. package/models/components/consumersecuredloanassetattributes.js +0 -324
  350. package/models/components/consumersecuredloanassetattributes.js.map +0 -1
  351. package/models/components/consumersecuredloanassettype.js +0 -72
  352. package/models/components/consumersecuredloanassettype.js.map +0 -1
  353. package/models/components/consumersecuredloanconsumerapplicationrelationships.js +0 -775
  354. package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +0 -1
  355. package/models/components/consumersecuredloantypeofsale.js +0 -64
  356. package/models/components/consumersecuredloantypeofsale.js.map +0 -1
  357. package/models/components/createsupportingdocumentsresponse.js +0 -138
  358. package/models/components/createsupportingdocumentsresponse.js.map +0 -1
  359. package/models/components/currencycodeiso4217.js +0 -59
  360. package/models/components/currencycodeiso4217.js.map +0 -1
  361. package/models/components/customerassetattributes.js +0 -77
  362. package/models/components/customerassetattributes.js.map +0 -1
  363. package/models/components/customerassettype.js +0 -66
  364. package/models/components/customerassettype.js.map +0 -1
  365. package/models/components/customerattributes.js +0 -100
  366. package/models/components/customerattributes.js.map +0 -1
  367. package/models/components/customerattributescreateitem.js +0 -110
  368. package/models/components/customerattributescreateitem.js.map +0 -1
  369. package/models/components/customeridtype.js +0 -60
  370. package/models/components/customeridtype.js.map +0 -1
  371. package/models/components/customerliabilityattributes.js +0 -88
  372. package/models/components/customerliabilityattributes.js.map +0 -1
  373. package/models/components/customerliabilityrepaymentfrequency.js +0 -61
  374. package/models/components/customerliabilityrepaymentfrequency.js.map +0 -1
  375. package/models/components/customerliabilitytype.js +0 -64
  376. package/models/components/customerliabilitytype.js.map +0 -1
  377. package/models/components/customertitle.js +0 -62
  378. package/models/components/customertitle.js.map +0 -1
  379. package/models/components/documenttype.js +0 -75
  380. package/models/components/documenttype.js.map +0 -1
  381. package/models/components/entityattributes.js +0 -151
  382. package/models/components/entityattributes.js.map +0 -1
  383. package/models/components/entityattributesinput.js +0 -81
  384. package/models/components/entityattributesinput.js.map +0 -1
  385. package/models/components/errorsource.js +0 -73
  386. package/models/components/errorsource.js.map +0 -1
  387. package/models/components/expenseattributes.js +0 -78
  388. package/models/components/expenseattributes.js.map +0 -1
  389. package/models/components/expensefrequency.js +0 -61
  390. package/models/components/expensefrequency.js.map +0 -1
  391. package/models/components/expensetype.js +0 -78
  392. package/models/components/expensetype.js.map +0 -1
  393. package/models/components/forbiddenerror.js +0 -139
  394. package/models/components/forbiddenerror.js.map +0 -1
  395. package/models/components/frequencytype.js +0 -64
  396. package/models/components/frequencytype.js.map +0 -1
  397. package/models/components/incomeattributes.js +0 -78
  398. package/models/components/incomeattributes.js.map +0 -1
  399. package/models/components/incomefrequency.js +0 -62
  400. package/models/components/incomefrequency.js.map +0 -1
  401. package/models/components/incometype.js +0 -68
  402. package/models/components/incometype.js.map +0 -1
  403. package/models/components/index.js +0 -91
  404. package/models/components/index.js.map +0 -1
  405. package/models/components/linkobject.js +0 -77
  406. package/models/components/linkobject.js.map +0 -1
  407. package/models/components/livingarrangements.js +0 -62
  408. package/models/components/livingarrangements.js.map +0 -1
  409. package/models/components/loandetailsattributes.js +0 -375
  410. package/models/components/loandetailsattributes.js.map +0 -1
  411. package/models/components/maritalstatus.js +0 -60
  412. package/models/components/maritalstatus.js.map +0 -1
  413. package/models/components/monetaryquantity.js +0 -93
  414. package/models/components/monetaryquantity.js.map +0 -1
  415. package/models/components/paginationlinks.js +0 -75
  416. package/models/components/paginationlinks.js.map +0 -1
  417. package/models/components/paginationmeta.js +0 -88
  418. package/models/components/paginationmeta.js.map +0 -1
  419. package/models/components/percentagequantity.js +0 -89
  420. package/models/components/percentagequantity.js.map +0 -1
  421. package/models/components/personalapplicationjsonapirelationships.js +0 -229
  422. package/models/components/personalapplicationjsonapirelationships.js.map +0 -1
  423. package/models/components/personalapplicationpayload.js +0 -150
  424. package/models/components/personalapplicationpayload.js.map +0 -1
  425. package/models/components/personalapplicationresource.js +0 -159
  426. package/models/components/personalapplicationresource.js.map +0 -1
  427. package/models/components/personalloanpersonalapplicationrelationships.js +0 -682
  428. package/models/components/personalloanpersonalapplicationrelationships.js.map +0 -1
  429. package/models/components/relationshipresourcenotfound.js +0 -139
  430. package/models/components/relationshipresourcenotfound.js.map +0 -1
  431. package/models/components/repaymentstructure.js +0 -64
  432. package/models/components/repaymentstructure.js.map +0 -1
  433. package/models/components/residencystatus.js +0 -63
  434. package/models/components/residencystatus.js.map +0 -1
  435. package/models/components/resourcenotfound.js +0 -139
  436. package/models/components/resourcenotfound.js.map +0 -1
  437. package/models/components/security.js +0 -69
  438. package/models/components/security.js.map +0 -1
  439. package/models/components/supportingdocumentattributes.js +0 -74
  440. package/models/components/supportingdocumentattributes.js.map +0 -1
  441. package/models/components/supportingdocumentattributesinput.js +0 -72
  442. package/models/components/supportingdocumentattributesinput.js.map +0 -1
  443. package/models/components/supportingdocumentrelationships.js +0 -434
  444. package/models/components/supportingdocumentrelationships.js.map +0 -1
  445. package/models/components/supportingdocumentresource.js +0 -98
  446. package/models/components/supportingdocumentresource.js.map +0 -1
  447. package/models/components/tokenrequest.js +0 -110
  448. package/models/components/tokenrequest.js.map +0 -1
  449. package/models/components/tokenresponse.js +0 -88
  450. package/models/components/tokenresponse.js.map +0 -1
  451. package/models/components/uploadmimetype.js +0 -68
  452. package/models/components/uploadmimetype.js.map +0 -1
  453. package/models/errors/apierror.d.ts +0 -10
  454. package/models/errors/apierror.d.ts.map +0 -1
  455. package/models/errors/apierror.js +0 -34
  456. package/models/errors/apierror.js.map +0 -1
  457. package/models/errors/financeableerror.d.ts +0 -19
  458. package/models/errors/financeableerror.d.ts.map +0 -1
  459. package/models/errors/financeableerror.js +0 -20
  460. package/models/errors/financeableerror.js.map +0 -1
  461. package/models/errors/httpclienterrors.d.ts +0 -44
  462. package/models/errors/httpclienterrors.d.ts.map +0 -1
  463. package/models/errors/httpclienterrors.js +0 -78
  464. package/models/errors/httpclienterrors.js.map +0 -1
  465. package/models/errors/index.js +0 -25
  466. package/models/errors/index.js.map +0 -1
  467. package/models/errors/responsevalidationerror.js +0 -66
  468. package/models/errors/responsevalidationerror.js.map +0 -1
  469. package/models/errors/sdkvalidationerror.js +0 -129
  470. package/models/errors/sdkvalidationerror.js.map +0 -1
  471. package/models/operations/createapplication.js +0 -747
  472. package/models/operations/createapplication.js.map +0 -1
  473. package/models/operations/getapplication.js +0 -697
  474. package/models/operations/getapplication.js.map +0 -1
  475. package/models/operations/index.js +0 -24
  476. package/models/operations/index.js.map +0 -1
  477. package/models/operations/listapplications.js +0 -199
  478. package/models/operations/listapplications.js.map +0 -1
  479. package/models/operations/supportingdocumentscreate.js +0 -320
  480. package/models/operations/supportingdocumentscreate.js.map +0 -1
  481. package/sdk/index.js +0 -21
  482. package/sdk/index.js.map +0 -1
  483. package/sdk/sdk.js +0 -23
  484. package/sdk/sdk.js.map +0 -1
  485. package/tsconfig.json +0 -41
  486. package/types/async.d.ts +0 -23
  487. package/types/async.d.ts.map +0 -1
  488. package/types/async.js +0 -44
  489. package/types/async.js.map +0 -1
  490. package/types/blobs.js +0 -62
  491. package/types/blobs.js.map +0 -1
  492. package/types/constdatetime.js +0 -46
  493. package/types/constdatetime.js.map +0 -1
  494. package/types/enums.js +0 -10
  495. package/types/enums.js.map +0 -1
  496. package/types/fp.d.ts +0 -31
  497. package/types/fp.d.ts.map +0 -1
  498. package/types/fp.js +0 -37
  499. package/types/fp.js.map +0 -1
  500. package/types/index.js +0 -16
  501. package/types/index.js.map +0 -1
  502. package/types/operations.d.ts +0 -27
  503. package/types/operations.d.ts.map +0 -1
  504. package/types/operations.js +0 -83
  505. package/types/operations.js.map +0 -1
  506. package/types/rfcdate.d.ts +0 -21
  507. package/types/rfcdate.d.ts.map +0 -1
  508. package/types/rfcdate.js +0 -46
  509. package/types/rfcdate.js.map +0 -1
  510. package/types/streams.d.ts +0 -2
  511. package/types/streams.d.ts.map +0 -1
  512. package/types/streams.js +0 -18
  513. package/types/streams.js.map +0 -1
@@ -1,527 +0,0 @@
1
- # Applications
2
- (*applications*)
3
-
4
- ## Overview
5
-
6
- ### Available Operations
7
-
8
- * [create](#create) - Create an application in the Financeable platform.
9
- * [list](#list) - List all applications from the tenant. This endpoint does not support the 'include' query parameter; relationships must be fetched via the 'Get Application' endpoint.
10
- * [get](#get) - Retrieve a specific application from the Financeable platform.
11
-
12
- ## create
13
-
14
- Create an application in the Financeable platform.
15
-
16
- ### Example Usage
17
-
18
- <!-- UsageSnippet language="typescript" operationID="createApplication" method="post" path="/applications" -->
19
- ```typescript
20
- import { Financeable } from "@financeable/aggregation";
21
-
22
- const financeable = new Financeable({
23
- clientCredentials: process.env["FINANCEABLE_CLIENT_CREDENTIALS"] ?? "",
24
- });
25
-
26
- async function run() {
27
- const result = await financeable.applications.create({
28
- data: {
29
- type: "entities",
30
- attributes: {
31
- applicationType: "consumerSecured",
32
- associatedBrokerEmail: "<value>",
33
- },
34
- relationships: {
35
- customers: {
36
- data: [
37
- {
38
- type: "customers",
39
- attributes: {
40
- title: "Mr",
41
- firstName: "Courtney",
42
- lastName: "Greenfelder",
43
- dateOfBirth: "1981-06-22",
44
- idExpiryDate: "<value>",
45
- },
46
- relationships: {
47
- addresses: {
48
- data: [
49
- {
50
- type: "addresses",
51
- attributes: {
52
- id: "12345678901",
53
- addressType: "residential",
54
- fullAddress: "42 Wallaby Way, Sydney NSW 2000",
55
- city: "Sydney",
56
- postCode: "2000",
57
- streetAddress: "42 Wallaby Way",
58
- addressLine2: "",
59
- streetNumber: "42",
60
- streetType: "Way",
61
- street: "Wallaby",
62
- state: "NSW",
63
- country: "Australia",
64
- status: "current",
65
- monthsAt: 24,
66
- yearsAt: 2,
67
- },
68
- },
69
- ],
70
- },
71
- },
72
- },
73
- {
74
- type: "customers",
75
- attributes: {
76
- title: "Mr",
77
- firstName: "Courtney",
78
- lastName: "Greenfelder",
79
- dateOfBirth: "1981-06-22",
80
- idExpiryDate: "<value>",
81
- },
82
- relationships: {
83
- addresses: {
84
- data: [
85
- {
86
- type: "addresses",
87
- attributes: {
88
- id: "12345678901",
89
- addressType: "residential",
90
- fullAddress: "42 Wallaby Way, Sydney NSW 2000",
91
- city: "Sydney",
92
- postCode: "2000",
93
- streetAddress: "42 Wallaby Way",
94
- addressLine2: "",
95
- streetNumber: "42",
96
- streetType: "Way",
97
- street: "Wallaby",
98
- state: "NSW",
99
- country: "Australia",
100
- status: "current",
101
- monthsAt: 24,
102
- yearsAt: 2,
103
- },
104
- },
105
- ],
106
- },
107
- },
108
- },
109
- {
110
- type: "customers",
111
- attributes: {
112
- title: "Mr",
113
- firstName: "Courtney",
114
- lastName: "Greenfelder",
115
- dateOfBirth: "1981-06-22",
116
- idExpiryDate: "<value>",
117
- },
118
- relationships: {
119
- addresses: {
120
- data: [
121
- {
122
- type: "addresses",
123
- attributes: {
124
- id: "12345678901",
125
- addressType: "residential",
126
- fullAddress: "42 Wallaby Way, Sydney NSW 2000",
127
- city: "Sydney",
128
- postCode: "2000",
129
- streetAddress: "42 Wallaby Way",
130
- addressLine2: "",
131
- streetNumber: "42",
132
- streetType: "Way",
133
- street: "Wallaby",
134
- state: "NSW",
135
- country: "Australia",
136
- status: "current",
137
- monthsAt: 24,
138
- yearsAt: 2,
139
- },
140
- },
141
- ],
142
- },
143
- },
144
- },
145
- ],
146
- },
147
- asset: {
148
- data: {
149
- type: "assets",
150
- attributes: {
151
- id: "12345678901",
152
- ageOfAsset: 3,
153
- ageOfAssetAtEnd: 8,
154
- condition: "USED",
155
- assetType: "CARAVAN",
156
- assetValue: "35000.00",
157
- make: "Toyota",
158
- assetModel: "Camry",
159
- registrationNumber: "ABC123",
160
- registrationState: "VIC",
161
- vin: "1HGCM82633A123456",
162
- supplierName: "Mr and Mrs Smith",
163
- supplierABN: "12345678901",
164
- supplierAddress: "123 Car Street, Melbourne VIC 3000",
165
- supplierPhone: "0412345678",
166
- supplierContactName: "John Smith",
167
- supplierEmail: "john.smith@mrandmrssmith.com.au",
168
- privateSale: false,
169
- typeOfSale: "AUTHORISED_SELLER",
170
- description: "2020 Toyota Camry Hybrid SL, Silver, 45,000km",
171
- netAssetValue: "32000.00",
172
- isLuxury: false,
173
- additionalFees: "995.00",
174
- additionalTaxes: "0.00",
175
- },
176
- },
177
- },
178
- },
179
- },
180
- });
181
-
182
- console.log(result);
183
- }
184
-
185
- run();
186
- ```
187
-
188
- ### Standalone function
189
-
190
- The standalone function version of this method:
191
-
192
- ```typescript
193
- import { FinanceableCore } from "@financeable/aggregation/core.js";
194
- import { applicationsCreate } from "@financeable/aggregation/funcs/applicationsCreate.js";
195
-
196
- // Use `FinanceableCore` for best tree-shaking performance.
197
- // You can create one instance of it to use across an application.
198
- const financeable = new FinanceableCore({
199
- clientCredentials: process.env["FINANCEABLE_CLIENT_CREDENTIALS"] ?? "",
200
- });
201
-
202
- async function run() {
203
- const res = await applicationsCreate(financeable, {
204
- data: {
205
- type: "entities",
206
- attributes: {
207
- applicationType: "consumerSecured",
208
- associatedBrokerEmail: "<value>",
209
- },
210
- relationships: {
211
- customers: {
212
- data: [
213
- {
214
- type: "customers",
215
- attributes: {
216
- title: "Mr",
217
- firstName: "Courtney",
218
- lastName: "Greenfelder",
219
- dateOfBirth: "1981-06-22",
220
- idExpiryDate: "<value>",
221
- },
222
- relationships: {
223
- addresses: {
224
- data: [
225
- {
226
- type: "addresses",
227
- attributes: {
228
- id: "12345678901",
229
- addressType: "residential",
230
- fullAddress: "42 Wallaby Way, Sydney NSW 2000",
231
- city: "Sydney",
232
- postCode: "2000",
233
- streetAddress: "42 Wallaby Way",
234
- addressLine2: "",
235
- streetNumber: "42",
236
- streetType: "Way",
237
- street: "Wallaby",
238
- state: "NSW",
239
- country: "Australia",
240
- status: "current",
241
- monthsAt: 24,
242
- yearsAt: 2,
243
- },
244
- },
245
- ],
246
- },
247
- },
248
- },
249
- {
250
- type: "customers",
251
- attributes: {
252
- title: "Mr",
253
- firstName: "Courtney",
254
- lastName: "Greenfelder",
255
- dateOfBirth: "1981-06-22",
256
- idExpiryDate: "<value>",
257
- },
258
- relationships: {
259
- addresses: {
260
- data: [
261
- {
262
- type: "addresses",
263
- attributes: {
264
- id: "12345678901",
265
- addressType: "residential",
266
- fullAddress: "42 Wallaby Way, Sydney NSW 2000",
267
- city: "Sydney",
268
- postCode: "2000",
269
- streetAddress: "42 Wallaby Way",
270
- addressLine2: "",
271
- streetNumber: "42",
272
- streetType: "Way",
273
- street: "Wallaby",
274
- state: "NSW",
275
- country: "Australia",
276
- status: "current",
277
- monthsAt: 24,
278
- yearsAt: 2,
279
- },
280
- },
281
- ],
282
- },
283
- },
284
- },
285
- {
286
- type: "customers",
287
- attributes: {
288
- title: "Mr",
289
- firstName: "Courtney",
290
- lastName: "Greenfelder",
291
- dateOfBirth: "1981-06-22",
292
- idExpiryDate: "<value>",
293
- },
294
- relationships: {
295
- addresses: {
296
- data: [
297
- {
298
- type: "addresses",
299
- attributes: {
300
- id: "12345678901",
301
- addressType: "residential",
302
- fullAddress: "42 Wallaby Way, Sydney NSW 2000",
303
- city: "Sydney",
304
- postCode: "2000",
305
- streetAddress: "42 Wallaby Way",
306
- addressLine2: "",
307
- streetNumber: "42",
308
- streetType: "Way",
309
- street: "Wallaby",
310
- state: "NSW",
311
- country: "Australia",
312
- status: "current",
313
- monthsAt: 24,
314
- yearsAt: 2,
315
- },
316
- },
317
- ],
318
- },
319
- },
320
- },
321
- ],
322
- },
323
- asset: {
324
- data: {
325
- type: "assets",
326
- attributes: {
327
- id: "12345678901",
328
- ageOfAsset: 3,
329
- ageOfAssetAtEnd: 8,
330
- condition: "USED",
331
- assetType: "CARAVAN",
332
- assetValue: "35000.00",
333
- make: "Toyota",
334
- assetModel: "Camry",
335
- registrationNumber: "ABC123",
336
- registrationState: "VIC",
337
- vin: "1HGCM82633A123456",
338
- supplierName: "Mr and Mrs Smith",
339
- supplierABN: "12345678901",
340
- supplierAddress: "123 Car Street, Melbourne VIC 3000",
341
- supplierPhone: "0412345678",
342
- supplierContactName: "John Smith",
343
- supplierEmail: "john.smith@mrandmrssmith.com.au",
344
- privateSale: false,
345
- typeOfSale: "AUTHORISED_SELLER",
346
- description: "2020 Toyota Camry Hybrid SL, Silver, 45,000km",
347
- netAssetValue: "32000.00",
348
- isLuxury: false,
349
- additionalFees: "995.00",
350
- additionalTaxes: "0.00",
351
- },
352
- },
353
- },
354
- },
355
- },
356
- });
357
- if (res.ok) {
358
- const { value: result } = res;
359
- console.log(result);
360
- } else {
361
- console.log("applicationsCreate failed:", res.error);
362
- }
363
- }
364
-
365
- run();
366
- ```
367
-
368
- ### Parameters
369
-
370
- | Parameter | Type | Required | Description |
371
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
372
- | `request` | [operations.CreateApplicationRequestBody](../../models/operations/createapplicationrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
373
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
374
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
375
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
376
-
377
- ### Response
378
-
379
- **Promise\<[operations.CreateApplicationResponse](../../models/operations/createapplicationresponse.md)\>**
380
-
381
- ### Errors
382
-
383
- | Error Type | Status Code | Content Type |
384
- | --------------- | --------------- | --------------- |
385
- | errors.APIError | 4XX, 5XX | \*/\* |
386
-
387
- ## list
388
-
389
- List all applications from the tenant. This endpoint does not support the 'include' query parameter; relationships must be fetched via the 'Get Application' endpoint.
390
-
391
- ### Example Usage
392
-
393
- <!-- UsageSnippet language="typescript" operationID="listApplications" method="get" path="/applications" -->
394
- ```typescript
395
- import { Financeable } from "@financeable/aggregation";
396
-
397
- const financeable = new Financeable({
398
- clientCredentials: process.env["FINANCEABLE_CLIENT_CREDENTIALS"] ?? "",
399
- });
400
-
401
- async function run() {
402
- const result = await financeable.applications.list({});
403
-
404
- console.log(result);
405
- }
406
-
407
- run();
408
- ```
409
-
410
- ### Standalone function
411
-
412
- The standalone function version of this method:
413
-
414
- ```typescript
415
- import { FinanceableCore } from "@financeable/aggregation/core.js";
416
- import { applicationsList } from "@financeable/aggregation/funcs/applicationsList.js";
417
-
418
- // Use `FinanceableCore` for best tree-shaking performance.
419
- // You can create one instance of it to use across an application.
420
- const financeable = new FinanceableCore({
421
- clientCredentials: process.env["FINANCEABLE_CLIENT_CREDENTIALS"] ?? "",
422
- });
423
-
424
- async function run() {
425
- const res = await applicationsList(financeable, {});
426
- if (res.ok) {
427
- const { value: result } = res;
428
- console.log(result);
429
- } else {
430
- console.log("applicationsList failed:", res.error);
431
- }
432
- }
433
-
434
- run();
435
- ```
436
-
437
- ### Parameters
438
-
439
- | Parameter | Type | Required | Description |
440
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
441
- | `request` | [operations.ListApplicationsRequest](../../models/operations/listapplicationsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
442
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
443
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
444
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
445
-
446
- ### Response
447
-
448
- **Promise\<[operations.ListApplicationsResponse](../../models/operations/listapplicationsresponse.md)\>**
449
-
450
- ### Errors
451
-
452
- | Error Type | Status Code | Content Type |
453
- | --------------- | --------------- | --------------- |
454
- | errors.APIError | 4XX, 5XX | \*/\* |
455
-
456
- ## get
457
-
458
- Retrieve a specific application from the Financeable platform.
459
-
460
- ### Example Usage
461
-
462
- <!-- UsageSnippet language="typescript" operationID="getApplication" method="get" path="/applications/{id}" -->
463
- ```typescript
464
- import { Financeable } from "@financeable/aggregation";
465
-
466
- const financeable = new Financeable({
467
- clientCredentials: process.env["FINANCEABLE_CLIENT_CREDENTIALS"] ?? "",
468
- });
469
-
470
- async function run() {
471
- const result = await financeable.applications.get({
472
- id: "<id>",
473
- });
474
-
475
- console.log(result);
476
- }
477
-
478
- run();
479
- ```
480
-
481
- ### Standalone function
482
-
483
- The standalone function version of this method:
484
-
485
- ```typescript
486
- import { FinanceableCore } from "@financeable/aggregation/core.js";
487
- import { applicationsGet } from "@financeable/aggregation/funcs/applicationsGet.js";
488
-
489
- // Use `FinanceableCore` for best tree-shaking performance.
490
- // You can create one instance of it to use across an application.
491
- const financeable = new FinanceableCore({
492
- clientCredentials: process.env["FINANCEABLE_CLIENT_CREDENTIALS"] ?? "",
493
- });
494
-
495
- async function run() {
496
- const res = await applicationsGet(financeable, {
497
- id: "<id>",
498
- });
499
- if (res.ok) {
500
- const { value: result } = res;
501
- console.log(result);
502
- } else {
503
- console.log("applicationsGet failed:", res.error);
504
- }
505
- }
506
-
507
- run();
508
- ```
509
-
510
- ### Parameters
511
-
512
- | Parameter | Type | Required | Description |
513
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
514
- | `request` | [operations.GetApplicationRequest](../../models/operations/getapplicationrequest.md) | :heavy_check_mark: | The request object to use for the request. |
515
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
516
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
517
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
518
-
519
- ### Response
520
-
521
- **Promise\<[operations.GetApplicationResponse](../../models/operations/getapplicationresponse.md)\>**
522
-
523
- ### Errors
524
-
525
- | Error Type | Status Code | Content Type |
526
- | --------------- | --------------- | --------------- |
527
- | errors.APIError | 4XX, 5XX | \*/\* |
@@ -1,87 +0,0 @@
1
- # OauthToken
2
- (*oauthToken*)
3
-
4
- ## Overview
5
-
6
- ### Available Operations
7
-
8
- * [get](#get) - Obtain an OAuth client_credentials token
9
-
10
- ## get
11
-
12
- Obtain an OAuth client_credentials token
13
-
14
- ### Example Usage
15
-
16
- <!-- UsageSnippet language="typescript" operationID="getToken" method="post" path="/oauth/token" -->
17
- ```typescript
18
- import { Financeable } from "@financeable/aggregation";
19
-
20
- const financeable = new Financeable({
21
- clientCredentials: process.env["FINANCEABLE_CLIENT_CREDENTIALS"] ?? "",
22
- });
23
-
24
- async function run() {
25
- const result = await financeable.oauthToken.get({
26
- grantType: "client_credentials",
27
- clientId: "<id>",
28
- clientSecret: "<value>",
29
- scope: "<value>",
30
- });
31
-
32
- console.log(result);
33
- }
34
-
35
- run();
36
- ```
37
-
38
- ### Standalone function
39
-
40
- The standalone function version of this method:
41
-
42
- ```typescript
43
- import { FinanceableCore } from "@financeable/aggregation/core.js";
44
- import { oauthTokenGet } from "@financeable/aggregation/funcs/oauthTokenGet.js";
45
-
46
- // Use `FinanceableCore` for best tree-shaking performance.
47
- // You can create one instance of it to use across an application.
48
- const financeable = new FinanceableCore({
49
- clientCredentials: process.env["FINANCEABLE_CLIENT_CREDENTIALS"] ?? "",
50
- });
51
-
52
- async function run() {
53
- const res = await oauthTokenGet(financeable, {
54
- grantType: "client_credentials",
55
- clientId: "<id>",
56
- clientSecret: "<value>",
57
- scope: "<value>",
58
- });
59
- if (res.ok) {
60
- const { value: result } = res;
61
- console.log(result);
62
- } else {
63
- console.log("oauthTokenGet failed:", res.error);
64
- }
65
- }
66
-
67
- run();
68
- ```
69
-
70
- ### Parameters
71
-
72
- | Parameter | Type | Required | Description |
73
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
74
- | `request` | [components.TokenRequest](../../models/components/tokenrequest.md) | :heavy_check_mark: | The request object to use for the request. |
75
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
76
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
77
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
78
-
79
- ### Response
80
-
81
- **Promise\<[components.TokenResponse](../../models/components/tokenresponse.md)\>**
82
-
83
- ### Errors
84
-
85
- | Error Type | Status Code | Content Type |
86
- | --------------- | --------------- | --------------- |
87
- | errors.APIError | 4XX, 5XX | \*/\* |