@unified-api/typescript-sdk 2.85.30 → 2.85.32

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 (350) hide show
  1. package/README.md +24 -0
  2. package/dist/commonjs/funcs/accountingCreateAccountingBankfeedaccount.d.ts +15 -0
  3. package/dist/commonjs/funcs/accountingCreateAccountingBankfeedaccount.d.ts.map +1 -0
  4. package/dist/commonjs/funcs/accountingCreateAccountingBankfeedaccount.js +125 -0
  5. package/dist/commonjs/funcs/accountingCreateAccountingBankfeedaccount.js.map +1 -0
  6. package/dist/commonjs/funcs/accountingCreateAccountingBankfeedtransaction.d.ts +15 -0
  7. package/dist/commonjs/funcs/accountingCreateAccountingBankfeedtransaction.d.ts.map +1 -0
  8. package/dist/commonjs/funcs/accountingCreateAccountingBankfeedtransaction.js +126 -0
  9. package/dist/commonjs/funcs/accountingCreateAccountingBankfeedtransaction.js.map +1 -0
  10. package/dist/commonjs/funcs/accountingGetAccountingBankfeedaccount.d.ts +15 -0
  11. package/dist/commonjs/funcs/accountingGetAccountingBankfeedaccount.d.ts.map +1 -0
  12. package/dist/commonjs/funcs/accountingGetAccountingBankfeedaccount.js +126 -0
  13. package/dist/commonjs/funcs/accountingGetAccountingBankfeedaccount.js.map +1 -0
  14. package/dist/commonjs/funcs/accountingGetAccountingBankfeedtransaction.d.ts +15 -0
  15. package/dist/commonjs/funcs/accountingGetAccountingBankfeedtransaction.d.ts.map +1 -0
  16. package/dist/commonjs/funcs/accountingGetAccountingBankfeedtransaction.js +126 -0
  17. package/dist/commonjs/funcs/accountingGetAccountingBankfeedtransaction.js.map +1 -0
  18. package/dist/commonjs/funcs/accountingListAccountingBankfeedaccounts.d.ts +15 -0
  19. package/dist/commonjs/funcs/accountingListAccountingBankfeedaccounts.d.ts.map +1 -0
  20. package/dist/commonjs/funcs/accountingListAccountingBankfeedaccounts.js +131 -0
  21. package/dist/commonjs/funcs/accountingListAccountingBankfeedaccounts.js.map +1 -0
  22. package/dist/commonjs/funcs/accountingListAccountingBankfeedtransactions.d.ts +15 -0
  23. package/dist/commonjs/funcs/accountingListAccountingBankfeedtransactions.d.ts.map +1 -0
  24. package/dist/commonjs/funcs/accountingListAccountingBankfeedtransactions.js +135 -0
  25. package/dist/commonjs/funcs/accountingListAccountingBankfeedtransactions.js.map +1 -0
  26. package/dist/commonjs/funcs/accountingPatchAccountingBankfeedaccount.d.ts +15 -0
  27. package/dist/commonjs/funcs/accountingPatchAccountingBankfeedaccount.d.ts.map +1 -0
  28. package/dist/commonjs/funcs/accountingPatchAccountingBankfeedaccount.js +129 -0
  29. package/dist/commonjs/funcs/accountingPatchAccountingBankfeedaccount.js.map +1 -0
  30. package/dist/commonjs/funcs/accountingPatchAccountingBankfeedtransaction.d.ts +15 -0
  31. package/dist/commonjs/funcs/accountingPatchAccountingBankfeedtransaction.d.ts.map +1 -0
  32. package/dist/commonjs/funcs/accountingPatchAccountingBankfeedtransaction.js +129 -0
  33. package/dist/commonjs/funcs/accountingPatchAccountingBankfeedtransaction.js.map +1 -0
  34. package/dist/commonjs/funcs/accountingRemoveAccountingBankfeedaccount.d.ts +14 -0
  35. package/dist/commonjs/funcs/accountingRemoveAccountingBankfeedaccount.d.ts.map +1 -0
  36. package/dist/commonjs/funcs/accountingRemoveAccountingBankfeedaccount.js +125 -0
  37. package/dist/commonjs/funcs/accountingRemoveAccountingBankfeedaccount.js.map +1 -0
  38. package/dist/commonjs/funcs/accountingRemoveAccountingBankfeedtransaction.d.ts +14 -0
  39. package/dist/commonjs/funcs/accountingRemoveAccountingBankfeedtransaction.d.ts.map +1 -0
  40. package/dist/commonjs/funcs/accountingRemoveAccountingBankfeedtransaction.js +126 -0
  41. package/dist/commonjs/funcs/accountingRemoveAccountingBankfeedtransaction.js.map +1 -0
  42. package/dist/commonjs/funcs/accountingUpdateAccountingBankfeedaccount.d.ts +15 -0
  43. package/dist/commonjs/funcs/accountingUpdateAccountingBankfeedaccount.d.ts.map +1 -0
  44. package/dist/commonjs/funcs/accountingUpdateAccountingBankfeedaccount.js +129 -0
  45. package/dist/commonjs/funcs/accountingUpdateAccountingBankfeedaccount.js.map +1 -0
  46. package/dist/commonjs/funcs/accountingUpdateAccountingBankfeedtransaction.d.ts +15 -0
  47. package/dist/commonjs/funcs/accountingUpdateAccountingBankfeedtransaction.d.ts.map +1 -0
  48. package/dist/commonjs/funcs/accountingUpdateAccountingBankfeedtransaction.js +130 -0
  49. package/dist/commonjs/funcs/accountingUpdateAccountingBankfeedtransaction.js.map +1 -0
  50. package/dist/commonjs/lib/config.d.ts +3 -3
  51. package/dist/commonjs/lib/config.js +3 -3
  52. package/dist/commonjs/sdk/accounting.d.ts +48 -0
  53. package/dist/commonjs/sdk/accounting.d.ts.map +1 -1
  54. package/dist/commonjs/sdk/accounting.js +84 -0
  55. package/dist/commonjs/sdk/accounting.js.map +1 -1
  56. package/dist/commonjs/sdk/bankfeedaccount.d.ts +30 -0
  57. package/dist/commonjs/sdk/bankfeedaccount.d.ts.map +1 -0
  58. package/dist/commonjs/sdk/bankfeedaccount.js +54 -0
  59. package/dist/commonjs/sdk/bankfeedaccount.js.map +1 -0
  60. package/dist/commonjs/sdk/bankfeedtransaction.d.ts +30 -0
  61. package/dist/commonjs/sdk/bankfeedtransaction.d.ts.map +1 -0
  62. package/dist/commonjs/sdk/bankfeedtransaction.js +54 -0
  63. package/dist/commonjs/sdk/bankfeedtransaction.js.map +1 -0
  64. package/dist/commonjs/sdk/models/operations/createaccountingbankfeedaccount.d.ts +50 -0
  65. package/dist/commonjs/sdk/models/operations/createaccountingbankfeedaccount.d.ts.map +1 -0
  66. package/dist/commonjs/sdk/models/operations/createaccountingbankfeedaccount.js +80 -0
  67. package/dist/commonjs/sdk/models/operations/createaccountingbankfeedaccount.js.map +1 -0
  68. package/dist/commonjs/sdk/models/operations/createaccountingbankfeedtransaction.d.ts +53 -0
  69. package/dist/commonjs/sdk/models/operations/createaccountingbankfeedtransaction.d.ts.map +1 -0
  70. package/dist/commonjs/sdk/models/operations/createaccountingbankfeedtransaction.js +82 -0
  71. package/dist/commonjs/sdk/models/operations/createaccountingbankfeedtransaction.js.map +1 -0
  72. package/dist/commonjs/sdk/models/operations/getaccountingbankfeedaccount.d.ts +52 -0
  73. package/dist/commonjs/sdk/models/operations/getaccountingbankfeedaccount.d.ts.map +1 -0
  74. package/dist/commonjs/sdk/models/operations/getaccountingbankfeedaccount.js +79 -0
  75. package/dist/commonjs/sdk/models/operations/getaccountingbankfeedaccount.js.map +1 -0
  76. package/dist/commonjs/sdk/models/operations/getaccountingbankfeedtransaction.d.ts +55 -0
  77. package/dist/commonjs/sdk/models/operations/getaccountingbankfeedtransaction.d.ts.map +1 -0
  78. package/dist/commonjs/sdk/models/operations/getaccountingbankfeedtransaction.js +81 -0
  79. package/dist/commonjs/sdk/models/operations/getaccountingbankfeedtransaction.js.map +1 -0
  80. package/dist/commonjs/sdk/models/operations/index.d.ts +12 -0
  81. package/dist/commonjs/sdk/models/operations/index.d.ts.map +1 -1
  82. package/dist/commonjs/sdk/models/operations/index.js +12 -0
  83. package/dist/commonjs/sdk/models/operations/index.js.map +1 -1
  84. package/dist/commonjs/sdk/models/operations/listaccountingbankfeedaccounts.d.ts +72 -0
  85. package/dist/commonjs/sdk/models/operations/listaccountingbankfeedaccounts.d.ts.map +1 -0
  86. package/dist/commonjs/sdk/models/operations/listaccountingbankfeedaccounts.js +88 -0
  87. package/dist/commonjs/sdk/models/operations/listaccountingbankfeedaccounts.js.map +1 -0
  88. package/dist/commonjs/sdk/models/operations/listaccountingbankfeedtransactions.d.ts +98 -0
  89. package/dist/commonjs/sdk/models/operations/listaccountingbankfeedtransactions.d.ts.map +1 -0
  90. package/dist/commonjs/sdk/models/operations/listaccountingbankfeedtransactions.js +99 -0
  91. package/dist/commonjs/sdk/models/operations/listaccountingbankfeedtransactions.js.map +1 -0
  92. package/dist/commonjs/sdk/models/operations/patchaccountingbankfeedaccount.d.ts +55 -0
  93. package/dist/commonjs/sdk/models/operations/patchaccountingbankfeedaccount.d.ts.map +1 -0
  94. package/dist/commonjs/sdk/models/operations/patchaccountingbankfeedaccount.js +82 -0
  95. package/dist/commonjs/sdk/models/operations/patchaccountingbankfeedaccount.js.map +1 -0
  96. package/dist/commonjs/sdk/models/operations/patchaccountingbankfeedtransaction.d.ts +58 -0
  97. package/dist/commonjs/sdk/models/operations/patchaccountingbankfeedtransaction.d.ts.map +1 -0
  98. package/dist/commonjs/sdk/models/operations/patchaccountingbankfeedtransaction.js +84 -0
  99. package/dist/commonjs/sdk/models/operations/patchaccountingbankfeedtransaction.js.map +1 -0
  100. package/dist/commonjs/sdk/models/operations/removeaccountingbankfeedaccount.d.ts +30 -0
  101. package/dist/commonjs/sdk/models/operations/removeaccountingbankfeedaccount.d.ts.map +1 -0
  102. package/dist/commonjs/sdk/models/operations/removeaccountingbankfeedaccount.js +68 -0
  103. package/dist/commonjs/sdk/models/operations/removeaccountingbankfeedaccount.js.map +1 -0
  104. package/dist/commonjs/sdk/models/operations/removeaccountingbankfeedtransaction.d.ts +30 -0
  105. package/dist/commonjs/sdk/models/operations/removeaccountingbankfeedtransaction.d.ts.map +1 -0
  106. package/dist/commonjs/sdk/models/operations/removeaccountingbankfeedtransaction.js +68 -0
  107. package/dist/commonjs/sdk/models/operations/removeaccountingbankfeedtransaction.js.map +1 -0
  108. package/dist/commonjs/sdk/models/operations/updateaccountingbankfeedaccount.d.ts +55 -0
  109. package/dist/commonjs/sdk/models/operations/updateaccountingbankfeedaccount.d.ts.map +1 -0
  110. package/dist/commonjs/sdk/models/operations/updateaccountingbankfeedaccount.js +81 -0
  111. package/dist/commonjs/sdk/models/operations/updateaccountingbankfeedaccount.js.map +1 -0
  112. package/dist/commonjs/sdk/models/operations/updateaccountingbankfeedtransaction.d.ts +58 -0
  113. package/dist/commonjs/sdk/models/operations/updateaccountingbankfeedtransaction.d.ts.map +1 -0
  114. package/dist/commonjs/sdk/models/operations/updateaccountingbankfeedtransaction.js +83 -0
  115. package/dist/commonjs/sdk/models/operations/updateaccountingbankfeedtransaction.js.map +1 -0
  116. package/dist/commonjs/sdk/models/shared/accountingbankfeedaccount.d.ts +73 -0
  117. package/dist/commonjs/sdk/models/shared/accountingbankfeedaccount.d.ts.map +1 -0
  118. package/dist/commonjs/sdk/models/shared/accountingbankfeedaccount.js +137 -0
  119. package/dist/commonjs/sdk/models/shared/accountingbankfeedaccount.js.map +1 -0
  120. package/dist/commonjs/sdk/models/shared/accountingbankfeedtransaction.d.ts +70 -0
  121. package/dist/commonjs/sdk/models/shared/accountingbankfeedtransaction.d.ts.map +1 -0
  122. package/dist/commonjs/sdk/models/shared/accountingbankfeedtransaction.js +137 -0
  123. package/dist/commonjs/sdk/models/shared/accountingbankfeedtransaction.js.map +1 -0
  124. package/dist/commonjs/sdk/models/shared/adscreative.d.ts +1 -0
  125. package/dist/commonjs/sdk/models/shared/adscreative.d.ts.map +1 -1
  126. package/dist/commonjs/sdk/models/shared/adscreative.js +1 -0
  127. package/dist/commonjs/sdk/models/shared/adscreative.js.map +1 -1
  128. package/dist/commonjs/sdk/models/shared/hrisbankaccount.d.ts +5 -5
  129. package/dist/commonjs/sdk/models/shared/hrisbankaccount.d.ts.map +1 -1
  130. package/dist/commonjs/sdk/models/shared/hrisbankaccount.js +6 -6
  131. package/dist/commonjs/sdk/models/shared/hrisbankaccount.js.map +1 -1
  132. package/dist/commonjs/sdk/models/shared/index.d.ts +2 -0
  133. package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
  134. package/dist/commonjs/sdk/models/shared/index.js +2 -0
  135. package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
  136. package/dist/commonjs/sdk/models/shared/integrationsupport.d.ts +18 -0
  137. package/dist/commonjs/sdk/models/shared/integrationsupport.d.ts.map +1 -1
  138. package/dist/commonjs/sdk/models/shared/integrationsupport.js +26 -8
  139. package/dist/commonjs/sdk/models/shared/integrationsupport.js.map +1 -1
  140. package/dist/commonjs/sdk/models/shared/propertyadsreportmetricscreative.d.ts +1 -0
  141. package/dist/commonjs/sdk/models/shared/propertyadsreportmetricscreative.d.ts.map +1 -1
  142. package/dist/commonjs/sdk/models/shared/propertyadsreportmetricscreative.js +1 -0
  143. package/dist/commonjs/sdk/models/shared/propertyadsreportmetricscreative.js.map +1 -1
  144. package/dist/commonjs/sdk/models/shared/propertyconnectionpermissions.d.ts +4 -0
  145. package/dist/commonjs/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
  146. package/dist/commonjs/sdk/models/shared/propertyconnectionpermissions.js +4 -0
  147. package/dist/commonjs/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
  148. package/dist/commonjs/sdk/models/shared/webhook.d.ts +2 -0
  149. package/dist/commonjs/sdk/models/shared/webhook.d.ts.map +1 -1
  150. package/dist/commonjs/sdk/models/shared/webhook.js +2 -0
  151. package/dist/commonjs/sdk/models/shared/webhook.js.map +1 -1
  152. package/dist/commonjs/sdk/sdk.d.ts +6 -0
  153. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  154. package/dist/commonjs/sdk/sdk.js +8 -0
  155. package/dist/commonjs/sdk/sdk.js.map +1 -1
  156. package/dist/esm/funcs/accountingCreateAccountingBankfeedaccount.d.ts +15 -0
  157. package/dist/esm/funcs/accountingCreateAccountingBankfeedaccount.d.ts.map +1 -0
  158. package/dist/esm/funcs/accountingCreateAccountingBankfeedaccount.js +89 -0
  159. package/dist/esm/funcs/accountingCreateAccountingBankfeedaccount.js.map +1 -0
  160. package/dist/esm/funcs/accountingCreateAccountingBankfeedtransaction.d.ts +15 -0
  161. package/dist/esm/funcs/accountingCreateAccountingBankfeedtransaction.d.ts.map +1 -0
  162. package/dist/esm/funcs/accountingCreateAccountingBankfeedtransaction.js +90 -0
  163. package/dist/esm/funcs/accountingCreateAccountingBankfeedtransaction.js.map +1 -0
  164. package/dist/esm/funcs/accountingGetAccountingBankfeedaccount.d.ts +15 -0
  165. package/dist/esm/funcs/accountingGetAccountingBankfeedaccount.d.ts.map +1 -0
  166. package/dist/esm/funcs/accountingGetAccountingBankfeedaccount.js +90 -0
  167. package/dist/esm/funcs/accountingGetAccountingBankfeedaccount.js.map +1 -0
  168. package/dist/esm/funcs/accountingGetAccountingBankfeedtransaction.d.ts +15 -0
  169. package/dist/esm/funcs/accountingGetAccountingBankfeedtransaction.d.ts.map +1 -0
  170. package/dist/esm/funcs/accountingGetAccountingBankfeedtransaction.js +90 -0
  171. package/dist/esm/funcs/accountingGetAccountingBankfeedtransaction.js.map +1 -0
  172. package/dist/esm/funcs/accountingListAccountingBankfeedaccounts.d.ts +15 -0
  173. package/dist/esm/funcs/accountingListAccountingBankfeedaccounts.d.ts.map +1 -0
  174. package/dist/esm/funcs/accountingListAccountingBankfeedaccounts.js +95 -0
  175. package/dist/esm/funcs/accountingListAccountingBankfeedaccounts.js.map +1 -0
  176. package/dist/esm/funcs/accountingListAccountingBankfeedtransactions.d.ts +15 -0
  177. package/dist/esm/funcs/accountingListAccountingBankfeedtransactions.d.ts.map +1 -0
  178. package/dist/esm/funcs/accountingListAccountingBankfeedtransactions.js +99 -0
  179. package/dist/esm/funcs/accountingListAccountingBankfeedtransactions.js.map +1 -0
  180. package/dist/esm/funcs/accountingPatchAccountingBankfeedaccount.d.ts +15 -0
  181. package/dist/esm/funcs/accountingPatchAccountingBankfeedaccount.d.ts.map +1 -0
  182. package/dist/esm/funcs/accountingPatchAccountingBankfeedaccount.js +93 -0
  183. package/dist/esm/funcs/accountingPatchAccountingBankfeedaccount.js.map +1 -0
  184. package/dist/esm/funcs/accountingPatchAccountingBankfeedtransaction.d.ts +15 -0
  185. package/dist/esm/funcs/accountingPatchAccountingBankfeedtransaction.d.ts.map +1 -0
  186. package/dist/esm/funcs/accountingPatchAccountingBankfeedtransaction.js +93 -0
  187. package/dist/esm/funcs/accountingPatchAccountingBankfeedtransaction.js.map +1 -0
  188. package/dist/esm/funcs/accountingRemoveAccountingBankfeedaccount.d.ts +14 -0
  189. package/dist/esm/funcs/accountingRemoveAccountingBankfeedaccount.d.ts.map +1 -0
  190. package/dist/esm/funcs/accountingRemoveAccountingBankfeedaccount.js +89 -0
  191. package/dist/esm/funcs/accountingRemoveAccountingBankfeedaccount.js.map +1 -0
  192. package/dist/esm/funcs/accountingRemoveAccountingBankfeedtransaction.d.ts +14 -0
  193. package/dist/esm/funcs/accountingRemoveAccountingBankfeedtransaction.d.ts.map +1 -0
  194. package/dist/esm/funcs/accountingRemoveAccountingBankfeedtransaction.js +90 -0
  195. package/dist/esm/funcs/accountingRemoveAccountingBankfeedtransaction.js.map +1 -0
  196. package/dist/esm/funcs/accountingUpdateAccountingBankfeedaccount.d.ts +15 -0
  197. package/dist/esm/funcs/accountingUpdateAccountingBankfeedaccount.d.ts.map +1 -0
  198. package/dist/esm/funcs/accountingUpdateAccountingBankfeedaccount.js +93 -0
  199. package/dist/esm/funcs/accountingUpdateAccountingBankfeedaccount.js.map +1 -0
  200. package/dist/esm/funcs/accountingUpdateAccountingBankfeedtransaction.d.ts +15 -0
  201. package/dist/esm/funcs/accountingUpdateAccountingBankfeedtransaction.d.ts.map +1 -0
  202. package/dist/esm/funcs/accountingUpdateAccountingBankfeedtransaction.js +94 -0
  203. package/dist/esm/funcs/accountingUpdateAccountingBankfeedtransaction.js.map +1 -0
  204. package/dist/esm/lib/config.d.ts +3 -3
  205. package/dist/esm/lib/config.js +3 -3
  206. package/dist/esm/sdk/accounting.d.ts +48 -0
  207. package/dist/esm/sdk/accounting.d.ts.map +1 -1
  208. package/dist/esm/sdk/accounting.js +84 -0
  209. package/dist/esm/sdk/accounting.js.map +1 -1
  210. package/dist/esm/sdk/bankfeedaccount.d.ts +30 -0
  211. package/dist/esm/sdk/bankfeedaccount.d.ts.map +1 -0
  212. package/dist/esm/sdk/bankfeedaccount.js +50 -0
  213. package/dist/esm/sdk/bankfeedaccount.js.map +1 -0
  214. package/dist/esm/sdk/bankfeedtransaction.d.ts +30 -0
  215. package/dist/esm/sdk/bankfeedtransaction.d.ts.map +1 -0
  216. package/dist/esm/sdk/bankfeedtransaction.js +50 -0
  217. package/dist/esm/sdk/bankfeedtransaction.js.map +1 -0
  218. package/dist/esm/sdk/models/operations/createaccountingbankfeedaccount.d.ts +50 -0
  219. package/dist/esm/sdk/models/operations/createaccountingbankfeedaccount.d.ts.map +1 -0
  220. package/dist/esm/sdk/models/operations/createaccountingbankfeedaccount.js +43 -0
  221. package/dist/esm/sdk/models/operations/createaccountingbankfeedaccount.js.map +1 -0
  222. package/dist/esm/sdk/models/operations/createaccountingbankfeedtransaction.d.ts +53 -0
  223. package/dist/esm/sdk/models/operations/createaccountingbankfeedtransaction.d.ts.map +1 -0
  224. package/dist/esm/sdk/models/operations/createaccountingbankfeedtransaction.js +45 -0
  225. package/dist/esm/sdk/models/operations/createaccountingbankfeedtransaction.js.map +1 -0
  226. package/dist/esm/sdk/models/operations/getaccountingbankfeedaccount.d.ts +52 -0
  227. package/dist/esm/sdk/models/operations/getaccountingbankfeedaccount.d.ts.map +1 -0
  228. package/dist/esm/sdk/models/operations/getaccountingbankfeedaccount.js +42 -0
  229. package/dist/esm/sdk/models/operations/getaccountingbankfeedaccount.js.map +1 -0
  230. package/dist/esm/sdk/models/operations/getaccountingbankfeedtransaction.d.ts +55 -0
  231. package/dist/esm/sdk/models/operations/getaccountingbankfeedtransaction.d.ts.map +1 -0
  232. package/dist/esm/sdk/models/operations/getaccountingbankfeedtransaction.js +44 -0
  233. package/dist/esm/sdk/models/operations/getaccountingbankfeedtransaction.js.map +1 -0
  234. package/dist/esm/sdk/models/operations/index.d.ts +12 -0
  235. package/dist/esm/sdk/models/operations/index.d.ts.map +1 -1
  236. package/dist/esm/sdk/models/operations/index.js +12 -0
  237. package/dist/esm/sdk/models/operations/index.js.map +1 -1
  238. package/dist/esm/sdk/models/operations/listaccountingbankfeedaccounts.d.ts +72 -0
  239. package/dist/esm/sdk/models/operations/listaccountingbankfeedaccounts.d.ts.map +1 -0
  240. package/dist/esm/sdk/models/operations/listaccountingbankfeedaccounts.js +51 -0
  241. package/dist/esm/sdk/models/operations/listaccountingbankfeedaccounts.js.map +1 -0
  242. package/dist/esm/sdk/models/operations/listaccountingbankfeedtransactions.d.ts +98 -0
  243. package/dist/esm/sdk/models/operations/listaccountingbankfeedtransactions.d.ts.map +1 -0
  244. package/dist/esm/sdk/models/operations/listaccountingbankfeedtransactions.js +62 -0
  245. package/dist/esm/sdk/models/operations/listaccountingbankfeedtransactions.js.map +1 -0
  246. package/dist/esm/sdk/models/operations/patchaccountingbankfeedaccount.d.ts +55 -0
  247. package/dist/esm/sdk/models/operations/patchaccountingbankfeedaccount.d.ts.map +1 -0
  248. package/dist/esm/sdk/models/operations/patchaccountingbankfeedaccount.js +45 -0
  249. package/dist/esm/sdk/models/operations/patchaccountingbankfeedaccount.js.map +1 -0
  250. package/dist/esm/sdk/models/operations/patchaccountingbankfeedtransaction.d.ts +58 -0
  251. package/dist/esm/sdk/models/operations/patchaccountingbankfeedtransaction.d.ts.map +1 -0
  252. package/dist/esm/sdk/models/operations/patchaccountingbankfeedtransaction.js +47 -0
  253. package/dist/esm/sdk/models/operations/patchaccountingbankfeedtransaction.js.map +1 -0
  254. package/dist/esm/sdk/models/operations/removeaccountingbankfeedaccount.d.ts +30 -0
  255. package/dist/esm/sdk/models/operations/removeaccountingbankfeedaccount.d.ts.map +1 -0
  256. package/dist/esm/sdk/models/operations/removeaccountingbankfeedaccount.js +30 -0
  257. package/dist/esm/sdk/models/operations/removeaccountingbankfeedaccount.js.map +1 -0
  258. package/dist/esm/sdk/models/operations/removeaccountingbankfeedtransaction.d.ts +30 -0
  259. package/dist/esm/sdk/models/operations/removeaccountingbankfeedtransaction.d.ts.map +1 -0
  260. package/dist/esm/sdk/models/operations/removeaccountingbankfeedtransaction.js +30 -0
  261. package/dist/esm/sdk/models/operations/removeaccountingbankfeedtransaction.js.map +1 -0
  262. package/dist/esm/sdk/models/operations/updateaccountingbankfeedaccount.d.ts +55 -0
  263. package/dist/esm/sdk/models/operations/updateaccountingbankfeedaccount.d.ts.map +1 -0
  264. package/dist/esm/sdk/models/operations/updateaccountingbankfeedaccount.js +44 -0
  265. package/dist/esm/sdk/models/operations/updateaccountingbankfeedaccount.js.map +1 -0
  266. package/dist/esm/sdk/models/operations/updateaccountingbankfeedtransaction.d.ts +58 -0
  267. package/dist/esm/sdk/models/operations/updateaccountingbankfeedtransaction.d.ts.map +1 -0
  268. package/dist/esm/sdk/models/operations/updateaccountingbankfeedtransaction.js +46 -0
  269. package/dist/esm/sdk/models/operations/updateaccountingbankfeedtransaction.js.map +1 -0
  270. package/dist/esm/sdk/models/shared/accountingbankfeedaccount.d.ts +73 -0
  271. package/dist/esm/sdk/models/shared/accountingbankfeedaccount.d.ts.map +1 -0
  272. package/dist/esm/sdk/models/shared/accountingbankfeedaccount.js +99 -0
  273. package/dist/esm/sdk/models/shared/accountingbankfeedaccount.js.map +1 -0
  274. package/dist/esm/sdk/models/shared/accountingbankfeedtransaction.d.ts +70 -0
  275. package/dist/esm/sdk/models/shared/accountingbankfeedtransaction.d.ts.map +1 -0
  276. package/dist/esm/sdk/models/shared/accountingbankfeedtransaction.js +99 -0
  277. package/dist/esm/sdk/models/shared/accountingbankfeedtransaction.js.map +1 -0
  278. package/dist/esm/sdk/models/shared/adscreative.d.ts +1 -0
  279. package/dist/esm/sdk/models/shared/adscreative.d.ts.map +1 -1
  280. package/dist/esm/sdk/models/shared/adscreative.js +1 -0
  281. package/dist/esm/sdk/models/shared/adscreative.js.map +1 -1
  282. package/dist/esm/sdk/models/shared/hrisbankaccount.d.ts +5 -5
  283. package/dist/esm/sdk/models/shared/hrisbankaccount.d.ts.map +1 -1
  284. package/dist/esm/sdk/models/shared/hrisbankaccount.js +5 -5
  285. package/dist/esm/sdk/models/shared/hrisbankaccount.js.map +1 -1
  286. package/dist/esm/sdk/models/shared/index.d.ts +2 -0
  287. package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
  288. package/dist/esm/sdk/models/shared/index.js +2 -0
  289. package/dist/esm/sdk/models/shared/index.js.map +1 -1
  290. package/dist/esm/sdk/models/shared/integrationsupport.d.ts +18 -0
  291. package/dist/esm/sdk/models/shared/integrationsupport.d.ts.map +1 -1
  292. package/dist/esm/sdk/models/shared/integrationsupport.js +18 -0
  293. package/dist/esm/sdk/models/shared/integrationsupport.js.map +1 -1
  294. package/dist/esm/sdk/models/shared/propertyadsreportmetricscreative.d.ts +1 -0
  295. package/dist/esm/sdk/models/shared/propertyadsreportmetricscreative.d.ts.map +1 -1
  296. package/dist/esm/sdk/models/shared/propertyadsreportmetricscreative.js +1 -0
  297. package/dist/esm/sdk/models/shared/propertyadsreportmetricscreative.js.map +1 -1
  298. package/dist/esm/sdk/models/shared/propertyconnectionpermissions.d.ts +4 -0
  299. package/dist/esm/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
  300. package/dist/esm/sdk/models/shared/propertyconnectionpermissions.js +4 -0
  301. package/dist/esm/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
  302. package/dist/esm/sdk/models/shared/webhook.d.ts +2 -0
  303. package/dist/esm/sdk/models/shared/webhook.d.ts.map +1 -1
  304. package/dist/esm/sdk/models/shared/webhook.js +2 -0
  305. package/dist/esm/sdk/models/shared/webhook.js.map +1 -1
  306. package/dist/esm/sdk/sdk.d.ts +6 -0
  307. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  308. package/dist/esm/sdk/sdk.js +8 -0
  309. package/dist/esm/sdk/sdk.js.map +1 -1
  310. package/jsr.json +1 -1
  311. package/package.json +1 -1
  312. package/src/funcs/accountingCreateAccountingBankfeedaccount.ts +178 -0
  313. package/src/funcs/accountingCreateAccountingBankfeedtransaction.ts +177 -0
  314. package/src/funcs/accountingGetAccountingBankfeedaccount.ts +179 -0
  315. package/src/funcs/accountingGetAccountingBankfeedtransaction.ts +179 -0
  316. package/src/funcs/accountingListAccountingBankfeedaccounts.ts +184 -0
  317. package/src/funcs/accountingListAccountingBankfeedtransactions.ts +188 -0
  318. package/src/funcs/accountingPatchAccountingBankfeedaccount.ts +182 -0
  319. package/src/funcs/accountingPatchAccountingBankfeedtransaction.ts +182 -0
  320. package/src/funcs/accountingRemoveAccountingBankfeedaccount.ts +186 -0
  321. package/src/funcs/accountingRemoveAccountingBankfeedtransaction.ts +185 -0
  322. package/src/funcs/accountingUpdateAccountingBankfeedaccount.ts +182 -0
  323. package/src/funcs/accountingUpdateAccountingBankfeedtransaction.ts +181 -0
  324. package/src/lib/config.ts +3 -3
  325. package/src/sdk/accounting.ts +182 -0
  326. package/src/sdk/bankfeedaccount.ts +100 -0
  327. package/src/sdk/bankfeedtransaction.ts +102 -0
  328. package/src/sdk/models/operations/createaccountingbankfeedaccount.ts +89 -0
  329. package/src/sdk/models/operations/createaccountingbankfeedtransaction.ts +96 -0
  330. package/src/sdk/models/operations/getaccountingbankfeedaccount.ts +88 -0
  331. package/src/sdk/models/operations/getaccountingbankfeedtransaction.ts +93 -0
  332. package/src/sdk/models/operations/index.ts +12 -0
  333. package/src/sdk/models/operations/listaccountingbankfeedaccounts.ts +117 -0
  334. package/src/sdk/models/operations/listaccountingbankfeedtransactions.ts +157 -0
  335. package/src/sdk/models/operations/patchaccountingbankfeedaccount.ts +93 -0
  336. package/src/sdk/models/operations/patchaccountingbankfeedtransaction.ts +102 -0
  337. package/src/sdk/models/operations/removeaccountingbankfeedaccount.ts +84 -0
  338. package/src/sdk/models/operations/removeaccountingbankfeedtransaction.ts +86 -0
  339. package/src/sdk/models/operations/updateaccountingbankfeedaccount.ts +95 -0
  340. package/src/sdk/models/operations/updateaccountingbankfeedtransaction.ts +102 -0
  341. package/src/sdk/models/shared/accountingbankfeedaccount.ts +187 -0
  342. package/src/sdk/models/shared/accountingbankfeedtransaction.ts +187 -0
  343. package/src/sdk/models/shared/adscreative.ts +1 -0
  344. package/src/sdk/models/shared/hrisbankaccount.ts +13 -11
  345. package/src/sdk/models/shared/index.ts +2 -0
  346. package/src/sdk/models/shared/integrationsupport.ts +37 -0
  347. package/src/sdk/models/shared/propertyadsreportmetricscreative.ts +1 -0
  348. package/src/sdk/models/shared/propertyconnectionpermissions.ts +4 -0
  349. package/src/sdk/models/shared/webhook.ts +2 -0
  350. package/src/sdk/sdk.ts +14 -0
@@ -0,0 +1,178 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { UnifiedToCore } from "../core.js";
6
+ import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../sdk/models/errors/httpclienterrors.js";
21
+ import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js";
22
+ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
23
+ import { UnifiedToError } from "../sdk/models/errors/unifiedtoerror.js";
24
+ import * as operations from "../sdk/models/operations/index.js";
25
+ import * as shared from "../sdk/models/shared/index.js";
26
+ import { APICall, APIPromise } from "../sdk/types/async.js";
27
+ import { Result } from "../sdk/types/fp.js";
28
+
29
+ /**
30
+ * Create a bankfeedaccount
31
+ */
32
+ export function accountingCreateAccountingBankfeedaccount(
33
+ client: UnifiedToCore,
34
+ request: operations.CreateAccountingBankfeedaccountRequest,
35
+ options?: RequestOptions,
36
+ ): APIPromise<
37
+ Result<
38
+ shared.AccountingBankfeedaccount,
39
+ | UnifiedToError
40
+ | ResponseValidationError
41
+ | ConnectionError
42
+ | RequestAbortedError
43
+ | RequestTimeoutError
44
+ | InvalidRequestError
45
+ | UnexpectedClientError
46
+ | SDKValidationError
47
+ >
48
+ > {
49
+ return new APIPromise($do(
50
+ client,
51
+ request,
52
+ options,
53
+ ));
54
+ }
55
+
56
+ async function $do(
57
+ client: UnifiedToCore,
58
+ request: operations.CreateAccountingBankfeedaccountRequest,
59
+ options?: RequestOptions,
60
+ ): Promise<
61
+ [
62
+ Result<
63
+ shared.AccountingBankfeedaccount,
64
+ | UnifiedToError
65
+ | ResponseValidationError
66
+ | ConnectionError
67
+ | RequestAbortedError
68
+ | RequestTimeoutError
69
+ | InvalidRequestError
70
+ | UnexpectedClientError
71
+ | SDKValidationError
72
+ >,
73
+ APICall,
74
+ ]
75
+ > {
76
+ const parsed = safeParse(
77
+ request,
78
+ (value) =>
79
+ operations.CreateAccountingBankfeedaccountRequest$outboundSchema.parse(
80
+ value,
81
+ ),
82
+ "Input validation failed",
83
+ );
84
+ if (!parsed.ok) {
85
+ return [parsed, { status: "invalid" }];
86
+ }
87
+ const payload = parsed.value;
88
+ const body = encodeJSON("body", payload.AccountingBankfeedaccount, {
89
+ explode: true,
90
+ });
91
+
92
+ const pathParams = {
93
+ connection_id: encodeSimple("connection_id", payload.connection_id, {
94
+ explode: false,
95
+ charEncoding: "percent",
96
+ }),
97
+ };
98
+ const path = pathToFunc("/accounting/{connection_id}/bankfeedaccount")(
99
+ pathParams,
100
+ );
101
+
102
+ const query = encodeFormQuery({
103
+ "fields": payload.fields,
104
+ "raw": payload.raw,
105
+ });
106
+
107
+ const headers = new Headers(compactMap({
108
+ "Content-Type": "application/json",
109
+ Accept: "application/json",
110
+ }));
111
+
112
+ const securityInput = await extractSecurity(client._options.security);
113
+ const requestSecurity = resolveGlobalSecurity(securityInput);
114
+
115
+ const context = {
116
+ options: client._options,
117
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
118
+ operationID: "createAccountingBankfeedaccount",
119
+ oAuth2Scopes: null,
120
+
121
+ resolvedSecurity: requestSecurity,
122
+
123
+ securitySource: client._options.security,
124
+ retryConfig: options?.retries
125
+ || client._options.retryConfig
126
+ || { strategy: "none" },
127
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
128
+ };
129
+
130
+ const requestRes = client._createRequest(context, {
131
+ security: requestSecurity,
132
+ method: "POST",
133
+ baseURL: options?.serverURL,
134
+ path: path,
135
+ headers: headers,
136
+ query: query,
137
+ body: body,
138
+ userAgent: client._options.userAgent,
139
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
140
+ }, options);
141
+ if (!requestRes.ok) {
142
+ return [requestRes, { status: "invalid" }];
143
+ }
144
+ const req = requestRes.value;
145
+
146
+ const doResult = await client._do(req, {
147
+ context,
148
+ isErrorStatusCode: (statusCode: number) =>
149
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
150
+ retryConfig: context.retryConfig,
151
+ retryCodes: context.retryCodes,
152
+ });
153
+ if (!doResult.ok) {
154
+ return [doResult, { status: "request-error", request: req }];
155
+ }
156
+ const response = doResult.value;
157
+
158
+ const [result] = await M.match<
159
+ shared.AccountingBankfeedaccount,
160
+ | UnifiedToError
161
+ | ResponseValidationError
162
+ | ConnectionError
163
+ | RequestAbortedError
164
+ | RequestTimeoutError
165
+ | InvalidRequestError
166
+ | UnexpectedClientError
167
+ | SDKValidationError
168
+ >(
169
+ M.json(200, shared.AccountingBankfeedaccount$inboundSchema),
170
+ M.fail("4XX"),
171
+ M.fail("5XX"),
172
+ )(response, req);
173
+ if (!result.ok) {
174
+ return [result, { status: "complete", request: req, response }];
175
+ }
176
+
177
+ return [result, { status: "complete", request: req, response }];
178
+ }
@@ -0,0 +1,177 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { UnifiedToCore } from "../core.js";
6
+ import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../sdk/models/errors/httpclienterrors.js";
21
+ import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js";
22
+ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
23
+ import { UnifiedToError } from "../sdk/models/errors/unifiedtoerror.js";
24
+ import * as operations from "../sdk/models/operations/index.js";
25
+ import * as shared from "../sdk/models/shared/index.js";
26
+ import { APICall, APIPromise } from "../sdk/types/async.js";
27
+ import { Result } from "../sdk/types/fp.js";
28
+
29
+ /**
30
+ * Create a bankfeedtransaction
31
+ */
32
+ export function accountingCreateAccountingBankfeedtransaction(
33
+ client: UnifiedToCore,
34
+ request: operations.CreateAccountingBankfeedtransactionRequest,
35
+ options?: RequestOptions,
36
+ ): APIPromise<
37
+ Result<
38
+ shared.AccountingBankfeedtransaction,
39
+ | UnifiedToError
40
+ | ResponseValidationError
41
+ | ConnectionError
42
+ | RequestAbortedError
43
+ | RequestTimeoutError
44
+ | InvalidRequestError
45
+ | UnexpectedClientError
46
+ | SDKValidationError
47
+ >
48
+ > {
49
+ return new APIPromise($do(
50
+ client,
51
+ request,
52
+ options,
53
+ ));
54
+ }
55
+
56
+ async function $do(
57
+ client: UnifiedToCore,
58
+ request: operations.CreateAccountingBankfeedtransactionRequest,
59
+ options?: RequestOptions,
60
+ ): Promise<
61
+ [
62
+ Result<
63
+ shared.AccountingBankfeedtransaction,
64
+ | UnifiedToError
65
+ | ResponseValidationError
66
+ | ConnectionError
67
+ | RequestAbortedError
68
+ | RequestTimeoutError
69
+ | InvalidRequestError
70
+ | UnexpectedClientError
71
+ | SDKValidationError
72
+ >,
73
+ APICall,
74
+ ]
75
+ > {
76
+ const parsed = safeParse(
77
+ request,
78
+ (value) =>
79
+ operations.CreateAccountingBankfeedtransactionRequest$outboundSchema
80
+ .parse(value),
81
+ "Input validation failed",
82
+ );
83
+ if (!parsed.ok) {
84
+ return [parsed, { status: "invalid" }];
85
+ }
86
+ const payload = parsed.value;
87
+ const body = encodeJSON("body", payload.AccountingBankfeedtransaction, {
88
+ explode: true,
89
+ });
90
+
91
+ const pathParams = {
92
+ connection_id: encodeSimple("connection_id", payload.connection_id, {
93
+ explode: false,
94
+ charEncoding: "percent",
95
+ }),
96
+ };
97
+ const path = pathToFunc("/accounting/{connection_id}/bankfeedtransaction")(
98
+ pathParams,
99
+ );
100
+
101
+ const query = encodeFormQuery({
102
+ "fields": payload.fields,
103
+ "raw": payload.raw,
104
+ });
105
+
106
+ const headers = new Headers(compactMap({
107
+ "Content-Type": "application/json",
108
+ Accept: "application/json",
109
+ }));
110
+
111
+ const securityInput = await extractSecurity(client._options.security);
112
+ const requestSecurity = resolveGlobalSecurity(securityInput);
113
+
114
+ const context = {
115
+ options: client._options,
116
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
117
+ operationID: "createAccountingBankfeedtransaction",
118
+ oAuth2Scopes: null,
119
+
120
+ resolvedSecurity: requestSecurity,
121
+
122
+ securitySource: client._options.security,
123
+ retryConfig: options?.retries
124
+ || client._options.retryConfig
125
+ || { strategy: "none" },
126
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
127
+ };
128
+
129
+ const requestRes = client._createRequest(context, {
130
+ security: requestSecurity,
131
+ method: "POST",
132
+ baseURL: options?.serverURL,
133
+ path: path,
134
+ headers: headers,
135
+ query: query,
136
+ body: body,
137
+ userAgent: client._options.userAgent,
138
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
139
+ }, options);
140
+ if (!requestRes.ok) {
141
+ return [requestRes, { status: "invalid" }];
142
+ }
143
+ const req = requestRes.value;
144
+
145
+ const doResult = await client._do(req, {
146
+ context,
147
+ isErrorStatusCode: (statusCode: number) =>
148
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
149
+ retryConfig: context.retryConfig,
150
+ retryCodes: context.retryCodes,
151
+ });
152
+ if (!doResult.ok) {
153
+ return [doResult, { status: "request-error", request: req }];
154
+ }
155
+ const response = doResult.value;
156
+
157
+ const [result] = await M.match<
158
+ shared.AccountingBankfeedtransaction,
159
+ | UnifiedToError
160
+ | ResponseValidationError
161
+ | ConnectionError
162
+ | RequestAbortedError
163
+ | RequestTimeoutError
164
+ | InvalidRequestError
165
+ | UnexpectedClientError
166
+ | SDKValidationError
167
+ >(
168
+ M.json(200, shared.AccountingBankfeedtransaction$inboundSchema),
169
+ M.fail("4XX"),
170
+ M.fail("5XX"),
171
+ )(response, req);
172
+ if (!result.ok) {
173
+ return [result, { status: "complete", request: req, response }];
174
+ }
175
+
176
+ return [result, { status: "complete", request: req, response }];
177
+ }
@@ -0,0 +1,179 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { UnifiedToCore } from "../core.js";
6
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../sdk/models/errors/httpclienterrors.js";
21
+ import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js";
22
+ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
23
+ import { UnifiedToError } from "../sdk/models/errors/unifiedtoerror.js";
24
+ import * as operations from "../sdk/models/operations/index.js";
25
+ import * as shared from "../sdk/models/shared/index.js";
26
+ import { APICall, APIPromise } from "../sdk/types/async.js";
27
+ import { Result } from "../sdk/types/fp.js";
28
+
29
+ /**
30
+ * Retrieve a bankfeedaccount
31
+ */
32
+ export function accountingGetAccountingBankfeedaccount(
33
+ client: UnifiedToCore,
34
+ request: operations.GetAccountingBankfeedaccountRequest,
35
+ options?: RequestOptions,
36
+ ): APIPromise<
37
+ Result<
38
+ shared.AccountingBankfeedaccount,
39
+ | UnifiedToError
40
+ | ResponseValidationError
41
+ | ConnectionError
42
+ | RequestAbortedError
43
+ | RequestTimeoutError
44
+ | InvalidRequestError
45
+ | UnexpectedClientError
46
+ | SDKValidationError
47
+ >
48
+ > {
49
+ return new APIPromise($do(
50
+ client,
51
+ request,
52
+ options,
53
+ ));
54
+ }
55
+
56
+ async function $do(
57
+ client: UnifiedToCore,
58
+ request: operations.GetAccountingBankfeedaccountRequest,
59
+ options?: RequestOptions,
60
+ ): Promise<
61
+ [
62
+ Result<
63
+ shared.AccountingBankfeedaccount,
64
+ | UnifiedToError
65
+ | ResponseValidationError
66
+ | ConnectionError
67
+ | RequestAbortedError
68
+ | RequestTimeoutError
69
+ | InvalidRequestError
70
+ | UnexpectedClientError
71
+ | SDKValidationError
72
+ >,
73
+ APICall,
74
+ ]
75
+ > {
76
+ const parsed = safeParse(
77
+ request,
78
+ (value) =>
79
+ operations.GetAccountingBankfeedaccountRequest$outboundSchema.parse(
80
+ value,
81
+ ),
82
+ "Input validation failed",
83
+ );
84
+ if (!parsed.ok) {
85
+ return [parsed, { status: "invalid" }];
86
+ }
87
+ const payload = parsed.value;
88
+ const body = null;
89
+
90
+ const pathParams = {
91
+ connection_id: encodeSimple("connection_id", payload.connection_id, {
92
+ explode: false,
93
+ charEncoding: "percent",
94
+ }),
95
+ id: encodeSimple("id", payload.id, {
96
+ explode: false,
97
+ charEncoding: "percent",
98
+ }),
99
+ };
100
+ const path = pathToFunc("/accounting/{connection_id}/bankfeedaccount/{id}")(
101
+ pathParams,
102
+ );
103
+
104
+ const query = encodeFormQuery({
105
+ "fields": payload.fields,
106
+ "raw": payload.raw,
107
+ });
108
+
109
+ const headers = new Headers(compactMap({
110
+ Accept: "application/json",
111
+ }));
112
+
113
+ const securityInput = await extractSecurity(client._options.security);
114
+ const requestSecurity = resolveGlobalSecurity(securityInput);
115
+
116
+ const context = {
117
+ options: client._options,
118
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
119
+ operationID: "getAccountingBankfeedaccount",
120
+ oAuth2Scopes: null,
121
+
122
+ resolvedSecurity: requestSecurity,
123
+
124
+ securitySource: client._options.security,
125
+ retryConfig: options?.retries
126
+ || client._options.retryConfig
127
+ || { strategy: "none" },
128
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
129
+ };
130
+
131
+ const requestRes = client._createRequest(context, {
132
+ security: requestSecurity,
133
+ method: "GET",
134
+ baseURL: options?.serverURL,
135
+ path: path,
136
+ headers: headers,
137
+ query: query,
138
+ body: body,
139
+ userAgent: client._options.userAgent,
140
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
141
+ }, options);
142
+ if (!requestRes.ok) {
143
+ return [requestRes, { status: "invalid" }];
144
+ }
145
+ const req = requestRes.value;
146
+
147
+ const doResult = await client._do(req, {
148
+ context,
149
+ isErrorStatusCode: (statusCode: number) =>
150
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
151
+ retryConfig: context.retryConfig,
152
+ retryCodes: context.retryCodes,
153
+ });
154
+ if (!doResult.ok) {
155
+ return [doResult, { status: "request-error", request: req }];
156
+ }
157
+ const response = doResult.value;
158
+
159
+ const [result] = await M.match<
160
+ shared.AccountingBankfeedaccount,
161
+ | UnifiedToError
162
+ | ResponseValidationError
163
+ | ConnectionError
164
+ | RequestAbortedError
165
+ | RequestTimeoutError
166
+ | InvalidRequestError
167
+ | UnexpectedClientError
168
+ | SDKValidationError
169
+ >(
170
+ M.json(200, shared.AccountingBankfeedaccount$inboundSchema),
171
+ M.fail("4XX"),
172
+ M.fail("5XX"),
173
+ )(response, req);
174
+ if (!result.ok) {
175
+ return [result, { status: "complete", request: req, response }];
176
+ }
177
+
178
+ return [result, { status: "complete", request: req, response }];
179
+ }
@@ -0,0 +1,179 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { UnifiedToCore } from "../core.js";
6
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../sdk/models/errors/httpclienterrors.js";
21
+ import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js";
22
+ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
23
+ import { UnifiedToError } from "../sdk/models/errors/unifiedtoerror.js";
24
+ import * as operations from "../sdk/models/operations/index.js";
25
+ import * as shared from "../sdk/models/shared/index.js";
26
+ import { APICall, APIPromise } from "../sdk/types/async.js";
27
+ import { Result } from "../sdk/types/fp.js";
28
+
29
+ /**
30
+ * Retrieve a bankfeedtransaction
31
+ */
32
+ export function accountingGetAccountingBankfeedtransaction(
33
+ client: UnifiedToCore,
34
+ request: operations.GetAccountingBankfeedtransactionRequest,
35
+ options?: RequestOptions,
36
+ ): APIPromise<
37
+ Result<
38
+ shared.AccountingBankfeedtransaction,
39
+ | UnifiedToError
40
+ | ResponseValidationError
41
+ | ConnectionError
42
+ | RequestAbortedError
43
+ | RequestTimeoutError
44
+ | InvalidRequestError
45
+ | UnexpectedClientError
46
+ | SDKValidationError
47
+ >
48
+ > {
49
+ return new APIPromise($do(
50
+ client,
51
+ request,
52
+ options,
53
+ ));
54
+ }
55
+
56
+ async function $do(
57
+ client: UnifiedToCore,
58
+ request: operations.GetAccountingBankfeedtransactionRequest,
59
+ options?: RequestOptions,
60
+ ): Promise<
61
+ [
62
+ Result<
63
+ shared.AccountingBankfeedtransaction,
64
+ | UnifiedToError
65
+ | ResponseValidationError
66
+ | ConnectionError
67
+ | RequestAbortedError
68
+ | RequestTimeoutError
69
+ | InvalidRequestError
70
+ | UnexpectedClientError
71
+ | SDKValidationError
72
+ >,
73
+ APICall,
74
+ ]
75
+ > {
76
+ const parsed = safeParse(
77
+ request,
78
+ (value) =>
79
+ operations.GetAccountingBankfeedtransactionRequest$outboundSchema.parse(
80
+ value,
81
+ ),
82
+ "Input validation failed",
83
+ );
84
+ if (!parsed.ok) {
85
+ return [parsed, { status: "invalid" }];
86
+ }
87
+ const payload = parsed.value;
88
+ const body = null;
89
+
90
+ const pathParams = {
91
+ connection_id: encodeSimple("connection_id", payload.connection_id, {
92
+ explode: false,
93
+ charEncoding: "percent",
94
+ }),
95
+ id: encodeSimple("id", payload.id, {
96
+ explode: false,
97
+ charEncoding: "percent",
98
+ }),
99
+ };
100
+ const path = pathToFunc(
101
+ "/accounting/{connection_id}/bankfeedtransaction/{id}",
102
+ )(pathParams);
103
+
104
+ const query = encodeFormQuery({
105
+ "fields": payload.fields,
106
+ "raw": payload.raw,
107
+ });
108
+
109
+ const headers = new Headers(compactMap({
110
+ Accept: "application/json",
111
+ }));
112
+
113
+ const securityInput = await extractSecurity(client._options.security);
114
+ const requestSecurity = resolveGlobalSecurity(securityInput);
115
+
116
+ const context = {
117
+ options: client._options,
118
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
119
+ operationID: "getAccountingBankfeedtransaction",
120
+ oAuth2Scopes: null,
121
+
122
+ resolvedSecurity: requestSecurity,
123
+
124
+ securitySource: client._options.security,
125
+ retryConfig: options?.retries
126
+ || client._options.retryConfig
127
+ || { strategy: "none" },
128
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
129
+ };
130
+
131
+ const requestRes = client._createRequest(context, {
132
+ security: requestSecurity,
133
+ method: "GET",
134
+ baseURL: options?.serverURL,
135
+ path: path,
136
+ headers: headers,
137
+ query: query,
138
+ body: body,
139
+ userAgent: client._options.userAgent,
140
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
141
+ }, options);
142
+ if (!requestRes.ok) {
143
+ return [requestRes, { status: "invalid" }];
144
+ }
145
+ const req = requestRes.value;
146
+
147
+ const doResult = await client._do(req, {
148
+ context,
149
+ isErrorStatusCode: (statusCode: number) =>
150
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
151
+ retryConfig: context.retryConfig,
152
+ retryCodes: context.retryCodes,
153
+ });
154
+ if (!doResult.ok) {
155
+ return [doResult, { status: "request-error", request: req }];
156
+ }
157
+ const response = doResult.value;
158
+
159
+ const [result] = await M.match<
160
+ shared.AccountingBankfeedtransaction,
161
+ | UnifiedToError
162
+ | ResponseValidationError
163
+ | ConnectionError
164
+ | RequestAbortedError
165
+ | RequestTimeoutError
166
+ | InvalidRequestError
167
+ | UnexpectedClientError
168
+ | SDKValidationError
169
+ >(
170
+ M.json(200, shared.AccountingBankfeedtransaction$inboundSchema),
171
+ M.fail("4XX"),
172
+ M.fail("5XX"),
173
+ )(response, req);
174
+ if (!result.ok) {
175
+ return [result, { status: "complete", request: req, response }];
176
+ }
177
+
178
+ return [result, { status: "complete", request: req, response }];
179
+ }