@maesn/typescript-sdk 0.3.0 → 0.3.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 (291) hide show
  1. package/README.md +3 -0
  2. package/esm/funcs/accounting-get-account.js +11 -1
  3. package/esm/funcs/accounting-get-account.js.map +1 -1
  4. package/esm/funcs/accounting-get-accounts.js +11 -1
  5. package/esm/funcs/accounting-get-accounts.js.map +1 -1
  6. package/esm/funcs/accounting-get-async-task-info.js +11 -1
  7. package/esm/funcs/accounting-get-async-task-info.js.map +1 -1
  8. package/esm/funcs/accounting-get-bank-account.js +11 -1
  9. package/esm/funcs/accounting-get-bank-account.js.map +1 -1
  10. package/esm/funcs/accounting-get-bank-accounts.js +11 -1
  11. package/esm/funcs/accounting-get-bank-accounts.js.map +1 -1
  12. package/esm/funcs/accounting-get-bill-document.js +11 -1
  13. package/esm/funcs/accounting-get-bill-document.js.map +1 -1
  14. package/esm/funcs/accounting-get-bill-line-items.js +11 -1
  15. package/esm/funcs/accounting-get-bill-line-items.js.map +1 -1
  16. package/esm/funcs/accounting-get-bill.js +11 -1
  17. package/esm/funcs/accounting-get-bill.js.map +1 -1
  18. package/esm/funcs/accounting-get-bills.js +11 -1
  19. package/esm/funcs/accounting-get-bills.js.map +1 -1
  20. package/esm/funcs/accounting-get-booking-proposal-document.js +11 -1
  21. package/esm/funcs/accounting-get-booking-proposal-document.js.map +1 -1
  22. package/esm/funcs/accounting-get-booking-proposal.js +11 -1
  23. package/esm/funcs/accounting-get-booking-proposal.js.map +1 -1
  24. package/esm/funcs/accounting-get-booking-proposals.js +11 -1
  25. package/esm/funcs/accounting-get-booking-proposals.js.map +1 -1
  26. package/esm/funcs/accounting-get-contact.js +11 -1
  27. package/esm/funcs/accounting-get-contact.js.map +1 -1
  28. package/esm/funcs/accounting-get-contacts.js +11 -1
  29. package/esm/funcs/accounting-get-contacts.js.map +1 -1
  30. package/esm/funcs/accounting-get-credit-note.js +11 -1
  31. package/esm/funcs/accounting-get-credit-note.js.map +1 -1
  32. package/esm/funcs/accounting-get-credit-notes.js +11 -1
  33. package/esm/funcs/accounting-get-credit-notes.js.map +1 -1
  34. package/esm/funcs/accounting-get-customer.js +11 -1
  35. package/esm/funcs/accounting-get-customer.js.map +1 -1
  36. package/esm/funcs/accounting-get-customers.js +11 -1
  37. package/esm/funcs/accounting-get-customers.js.map +1 -1
  38. package/esm/funcs/accounting-get-dimensions.js +11 -1
  39. package/esm/funcs/accounting-get-dimensions.js.map +1 -1
  40. package/esm/funcs/accounting-get-document-extensions.js +11 -1
  41. package/esm/funcs/accounting-get-document-extensions.js.map +1 -1
  42. package/esm/funcs/accounting-get-document-types.js +11 -1
  43. package/esm/funcs/accounting-get-document-types.js.map +1 -1
  44. package/esm/funcs/accounting-get-expense.js +11 -1
  45. package/esm/funcs/accounting-get-expense.js.map +1 -1
  46. package/esm/funcs/accounting-get-expenses.js +11 -1
  47. package/esm/funcs/accounting-get-expenses.js.map +1 -1
  48. package/esm/funcs/accounting-get-fiscal-year.js +11 -1
  49. package/esm/funcs/accounting-get-fiscal-year.js.map +1 -1
  50. package/esm/funcs/accounting-get-fiscal-years.js +11 -1
  51. package/esm/funcs/accounting-get-fiscal-years.js.map +1 -1
  52. package/esm/funcs/accounting-get-goods-receipt-line-item.js +11 -1
  53. package/esm/funcs/accounting-get-goods-receipt-line-item.js.map +1 -1
  54. package/esm/funcs/accounting-get-goods-receipt-line-items.js +11 -1
  55. package/esm/funcs/accounting-get-goods-receipt-line-items.js.map +1 -1
  56. package/esm/funcs/accounting-get-goods-receipt.js +11 -1
  57. package/esm/funcs/accounting-get-goods-receipt.js.map +1 -1
  58. package/esm/funcs/accounting-get-goods-receipts.js +11 -1
  59. package/esm/funcs/accounting-get-goods-receipts.js.map +1 -1
  60. package/esm/funcs/accounting-get-invoice-document.js +11 -1
  61. package/esm/funcs/accounting-get-invoice-document.js.map +1 -1
  62. package/esm/funcs/accounting-get-invoice.js +11 -1
  63. package/esm/funcs/accounting-get-invoice.js.map +1 -1
  64. package/esm/funcs/accounting-get-invoices.js +11 -1
  65. package/esm/funcs/accounting-get-invoices.js.map +1 -1
  66. package/esm/funcs/accounting-get-item.js +11 -1
  67. package/esm/funcs/accounting-get-item.js.map +1 -1
  68. package/esm/funcs/accounting-get-items.js +11 -1
  69. package/esm/funcs/accounting-get-items.js.map +1 -1
  70. package/esm/funcs/accounting-get-journal-entries.js +11 -1
  71. package/esm/funcs/accounting-get-journal-entries.js.map +1 -1
  72. package/esm/funcs/accounting-get-journal-entry-attachment-by-id.js +11 -1
  73. package/esm/funcs/accounting-get-journal-entry-attachment-by-id.js.map +1 -1
  74. package/esm/funcs/accounting-get-journal-entry-attachments.js +11 -1
  75. package/esm/funcs/accounting-get-journal-entry-attachments.js.map +1 -1
  76. package/esm/funcs/accounting-get-journal-entry.js +11 -1
  77. package/esm/funcs/accounting-get-journal-entry.js.map +1 -1
  78. package/esm/funcs/accounting-get-journals.js +11 -1
  79. package/esm/funcs/accounting-get-journals.js.map +1 -1
  80. package/esm/funcs/accounting-get-line-item.js +11 -1
  81. package/esm/funcs/accounting-get-line-item.js.map +1 -1
  82. package/esm/funcs/accounting-get-line-items.js +11 -1
  83. package/esm/funcs/accounting-get-line-items.js.map +1 -1
  84. package/esm/funcs/accounting-get-offer-document.js +11 -1
  85. package/esm/funcs/accounting-get-offer-document.js.map +1 -1
  86. package/esm/funcs/accounting-get-offer-line-item.js +11 -1
  87. package/esm/funcs/accounting-get-offer-line-item.js.map +1 -1
  88. package/esm/funcs/accounting-get-offer-line-items.js +11 -1
  89. package/esm/funcs/accounting-get-offer-line-items.js.map +1 -1
  90. package/esm/funcs/accounting-get-offer.js +11 -1
  91. package/esm/funcs/accounting-get-offer.js.map +1 -1
  92. package/esm/funcs/accounting-get-offers.js +11 -1
  93. package/esm/funcs/accounting-get-offers.js.map +1 -1
  94. package/esm/funcs/accounting-get-open-items.js +11 -1
  95. package/esm/funcs/accounting-get-open-items.js.map +1 -1
  96. package/esm/funcs/accounting-get-payment-term.js +11 -1
  97. package/esm/funcs/accounting-get-payment-term.js.map +1 -1
  98. package/esm/funcs/accounting-get-payment-terms.js +11 -1
  99. package/esm/funcs/accounting-get-payment-terms.js.map +1 -1
  100. package/esm/funcs/accounting-get-payment.js +11 -1
  101. package/esm/funcs/accounting-get-payment.js.map +1 -1
  102. package/esm/funcs/accounting-get-payments.js +11 -1
  103. package/esm/funcs/accounting-get-payments.js.map +1 -1
  104. package/esm/funcs/accounting-get-profile.js +11 -1
  105. package/esm/funcs/accounting-get-profile.js.map +1 -1
  106. package/esm/funcs/accounting-get-project.js +11 -1
  107. package/esm/funcs/accounting-get-project.js.map +1 -1
  108. package/esm/funcs/accounting-get-projects.js +11 -1
  109. package/esm/funcs/accounting-get-projects.js.map +1 -1
  110. package/esm/funcs/accounting-get-purchase-order-line-item.js +11 -1
  111. package/esm/funcs/accounting-get-purchase-order-line-item.js.map +1 -1
  112. package/esm/funcs/accounting-get-purchase-order-line-items.js +11 -1
  113. package/esm/funcs/accounting-get-purchase-order-line-items.js.map +1 -1
  114. package/esm/funcs/accounting-get-purchase-order.js +11 -1
  115. package/esm/funcs/accounting-get-purchase-order.js.map +1 -1
  116. package/esm/funcs/accounting-get-purchase-orders.js +11 -1
  117. package/esm/funcs/accounting-get-purchase-orders.js.map +1 -1
  118. package/esm/funcs/accounting-get-sales-order-lines.js +11 -1
  119. package/esm/funcs/accounting-get-sales-order-lines.js.map +1 -1
  120. package/esm/funcs/accounting-get-sales-order.js +11 -1
  121. package/esm/funcs/accounting-get-sales-order.js.map +1 -1
  122. package/esm/funcs/accounting-get-sales-orders.js +11 -1
  123. package/esm/funcs/accounting-get-sales-orders.js.map +1 -1
  124. package/esm/funcs/accounting-get-supplier.js +11 -1
  125. package/esm/funcs/accounting-get-supplier.js.map +1 -1
  126. package/esm/funcs/accounting-get-suppliers.js +11 -1
  127. package/esm/funcs/accounting-get-suppliers.js.map +1 -1
  128. package/esm/funcs/accounting-get-tax-rate.js +11 -1
  129. package/esm/funcs/accounting-get-tax-rate.js.map +1 -1
  130. package/esm/funcs/accounting-get-tax-rates.js +11 -1
  131. package/esm/funcs/accounting-get-tax-rates.js.map +1 -1
  132. package/esm/funcs/accounting-get-trial-balance.js +11 -1
  133. package/esm/funcs/accounting-get-trial-balance.js.map +1 -1
  134. package/esm/funcs/accounting-get-units.js +11 -1
  135. package/esm/funcs/accounting-get-units.js.map +1 -1
  136. package/esm/funcs/accounting-get-vendor-credits.js +11 -1
  137. package/esm/funcs/accounting-get-vendor-credits.js.map +1 -1
  138. package/esm/funcs/accounting-v2-get-contact-v2.js +11 -1
  139. package/esm/funcs/accounting-v2-get-contact-v2.js.map +1 -1
  140. package/esm/funcs/accounting-v2-get-contacts-v2.js +11 -1
  141. package/esm/funcs/accounting-v2-get-contacts-v2.js.map +1 -1
  142. package/esm/funcs/accounting-v2-get-dimensions-by-dimension.js +11 -1
  143. package/esm/funcs/accounting-v2-get-dimensions-by-dimension.js.map +1 -1
  144. package/esm/funcs/accounting-v2-get-dimensions-v2.js +11 -1
  145. package/esm/funcs/accounting-v2-get-dimensions-v2.js.map +1 -1
  146. package/esm/funcs/auth-callback.js +11 -1
  147. package/esm/funcs/auth-callback.js.map +1 -1
  148. package/esm/funcs/auth-get-companies-flow.js +11 -1
  149. package/esm/funcs/auth-get-companies-flow.js.map +1 -1
  150. package/esm/funcs/auth-get-companies.js +11 -1
  151. package/esm/funcs/auth-get-companies.js.map +1 -1
  152. package/esm/funcs/auth-get-environment-page.js +11 -1
  153. package/esm/funcs/auth-get-environment-page.js.map +1 -1
  154. package/esm/funcs/auth-get-environments.js +11 -1
  155. package/esm/funcs/auth-get-environments.js.map +1 -1
  156. package/esm/funcs/auth-get-submit-page.js +11 -1
  157. package/esm/funcs/auth-get-submit-page.js.map +1 -1
  158. package/esm/funcs/auth-long-token.js +11 -1
  159. package/esm/funcs/auth-long-token.js.map +1 -1
  160. package/esm/funcs/auth-system-login-url.js +11 -1
  161. package/esm/funcs/auth-system-login-url.js.map +1 -1
  162. package/esm/funcs/auth-test.js +11 -1
  163. package/esm/funcs/auth-test.js.map +1 -1
  164. package/esm/funcs/health-check.js +12 -2
  165. package/esm/funcs/health-check.js.map +1 -1
  166. package/esm/funcs/health-details.js +11 -1
  167. package/esm/funcs/health-details.js.map +1 -1
  168. package/esm/funcs/tenants-count-end-users-by-system.js +11 -1
  169. package/esm/funcs/tenants-count-end-users-by-system.js.map +1 -1
  170. package/esm/funcs/tenants-get-all-active-end-users.js +11 -1
  171. package/esm/funcs/tenants-get-all-active-end-users.js.map +1 -1
  172. package/esm/funcs/tenants-get-callback-url.js +11 -1
  173. package/esm/funcs/tenants-get-callback-url.js.map +1 -1
  174. package/esm/funcs/tenants-get-end-user-list.js +11 -1
  175. package/esm/funcs/tenants-get-end-user-list.js.map +1 -1
  176. package/esm/funcs/tenants-get-registered-systems-masked.js +11 -1
  177. package/esm/funcs/tenants-get-registered-systems-masked.js.map +1 -1
  178. package/esm/funcs/tenants-get-registered-systems.js +11 -1
  179. package/esm/funcs/tenants-get-registered-systems.js.map +1 -1
  180. package/esm/funcs/tenants-get-submission-page-style-by-key.js +11 -1
  181. package/esm/funcs/tenants-get-submission-page-style-by-key.js.map +1 -1
  182. package/esm/funcs/tenants-get-submission-page-style.js +11 -1
  183. package/esm/funcs/tenants-get-submission-page-style.js.map +1 -1
  184. package/esm/funcs/tenants-get-target-system-requirements.js +11 -1
  185. package/esm/funcs/tenants-get-target-system-requirements.js.map +1 -1
  186. package/esm/funcs/tenants-get-target-system-values.js +11 -1
  187. package/esm/funcs/tenants-get-target-system-values.js.map +1 -1
  188. package/esm/funcs/user-get-user-info.js +11 -1
  189. package/esm/funcs/user-get-user-info.js.map +1 -1
  190. package/esm/funcs/webhooks-get-webhooks.js +12 -2
  191. package/esm/funcs/webhooks-get-webhooks.js.map +1 -1
  192. package/esm/lib/config.d.ts +2 -2
  193. package/esm/lib/config.js +2 -2
  194. package/jsr.json +1 -1
  195. package/package.json +1 -1
  196. package/src/funcs/accounting-get-account.ts +11 -1
  197. package/src/funcs/accounting-get-accounts.ts +11 -1
  198. package/src/funcs/accounting-get-async-task-info.ts +11 -1
  199. package/src/funcs/accounting-get-bank-account.ts +11 -1
  200. package/src/funcs/accounting-get-bank-accounts.ts +11 -1
  201. package/src/funcs/accounting-get-bill-document.ts +11 -1
  202. package/src/funcs/accounting-get-bill-line-items.ts +11 -1
  203. package/src/funcs/accounting-get-bill.ts +11 -1
  204. package/src/funcs/accounting-get-bills.ts +11 -1
  205. package/src/funcs/accounting-get-booking-proposal-document.ts +11 -1
  206. package/src/funcs/accounting-get-booking-proposal.ts +11 -1
  207. package/src/funcs/accounting-get-booking-proposals.ts +11 -1
  208. package/src/funcs/accounting-get-contact.ts +11 -1
  209. package/src/funcs/accounting-get-contacts.ts +11 -1
  210. package/src/funcs/accounting-get-credit-note.ts +11 -1
  211. package/src/funcs/accounting-get-credit-notes.ts +11 -1
  212. package/src/funcs/accounting-get-customer.ts +11 -1
  213. package/src/funcs/accounting-get-customers.ts +11 -1
  214. package/src/funcs/accounting-get-dimensions.ts +11 -1
  215. package/src/funcs/accounting-get-document-extensions.ts +11 -1
  216. package/src/funcs/accounting-get-document-types.ts +11 -1
  217. package/src/funcs/accounting-get-expense.ts +11 -1
  218. package/src/funcs/accounting-get-expenses.ts +11 -1
  219. package/src/funcs/accounting-get-fiscal-year.ts +11 -1
  220. package/src/funcs/accounting-get-fiscal-years.ts +11 -1
  221. package/src/funcs/accounting-get-goods-receipt-line-item.ts +11 -1
  222. package/src/funcs/accounting-get-goods-receipt-line-items.ts +11 -1
  223. package/src/funcs/accounting-get-goods-receipt.ts +11 -1
  224. package/src/funcs/accounting-get-goods-receipts.ts +11 -1
  225. package/src/funcs/accounting-get-invoice-document.ts +11 -1
  226. package/src/funcs/accounting-get-invoice.ts +11 -1
  227. package/src/funcs/accounting-get-invoices.ts +11 -1
  228. package/src/funcs/accounting-get-item.ts +11 -1
  229. package/src/funcs/accounting-get-items.ts +11 -1
  230. package/src/funcs/accounting-get-journal-entries.ts +11 -1
  231. package/src/funcs/accounting-get-journal-entry-attachment-by-id.ts +11 -1
  232. package/src/funcs/accounting-get-journal-entry-attachments.ts +11 -1
  233. package/src/funcs/accounting-get-journal-entry.ts +11 -1
  234. package/src/funcs/accounting-get-journals.ts +11 -1
  235. package/src/funcs/accounting-get-line-item.ts +11 -1
  236. package/src/funcs/accounting-get-line-items.ts +11 -1
  237. package/src/funcs/accounting-get-offer-document.ts +11 -1
  238. package/src/funcs/accounting-get-offer-line-item.ts +11 -1
  239. package/src/funcs/accounting-get-offer-line-items.ts +11 -1
  240. package/src/funcs/accounting-get-offer.ts +11 -1
  241. package/src/funcs/accounting-get-offers.ts +11 -1
  242. package/src/funcs/accounting-get-open-items.ts +11 -1
  243. package/src/funcs/accounting-get-payment-term.ts +11 -1
  244. package/src/funcs/accounting-get-payment-terms.ts +11 -1
  245. package/src/funcs/accounting-get-payment.ts +11 -1
  246. package/src/funcs/accounting-get-payments.ts +11 -1
  247. package/src/funcs/accounting-get-profile.ts +11 -1
  248. package/src/funcs/accounting-get-project.ts +11 -1
  249. package/src/funcs/accounting-get-projects.ts +11 -1
  250. package/src/funcs/accounting-get-purchase-order-line-item.ts +11 -1
  251. package/src/funcs/accounting-get-purchase-order-line-items.ts +11 -1
  252. package/src/funcs/accounting-get-purchase-order.ts +11 -1
  253. package/src/funcs/accounting-get-purchase-orders.ts +11 -1
  254. package/src/funcs/accounting-get-sales-order-lines.ts +11 -1
  255. package/src/funcs/accounting-get-sales-order.ts +11 -1
  256. package/src/funcs/accounting-get-sales-orders.ts +11 -1
  257. package/src/funcs/accounting-get-supplier.ts +11 -1
  258. package/src/funcs/accounting-get-suppliers.ts +11 -1
  259. package/src/funcs/accounting-get-tax-rate.ts +11 -1
  260. package/src/funcs/accounting-get-tax-rates.ts +11 -1
  261. package/src/funcs/accounting-get-trial-balance.ts +11 -1
  262. package/src/funcs/accounting-get-units.ts +11 -1
  263. package/src/funcs/accounting-get-vendor-credits.ts +11 -1
  264. package/src/funcs/accounting-v2-get-contact-v2.ts +11 -1
  265. package/src/funcs/accounting-v2-get-contacts-v2.ts +11 -1
  266. package/src/funcs/accounting-v2-get-dimensions-by-dimension.ts +11 -1
  267. package/src/funcs/accounting-v2-get-dimensions-v2.ts +11 -1
  268. package/src/funcs/auth-callback.ts +11 -1
  269. package/src/funcs/auth-get-companies-flow.ts +11 -1
  270. package/src/funcs/auth-get-companies.ts +11 -1
  271. package/src/funcs/auth-get-environment-page.ts +11 -1
  272. package/src/funcs/auth-get-environments.ts +11 -1
  273. package/src/funcs/auth-get-submit-page.ts +11 -1
  274. package/src/funcs/auth-long-token.ts +11 -1
  275. package/src/funcs/auth-system-login-url.ts +11 -1
  276. package/src/funcs/auth-test.ts +11 -1
  277. package/src/funcs/health-check.ts +12 -2
  278. package/src/funcs/health-details.ts +11 -1
  279. package/src/funcs/tenants-count-end-users-by-system.ts +11 -1
  280. package/src/funcs/tenants-get-all-active-end-users.ts +11 -1
  281. package/src/funcs/tenants-get-callback-url.ts +11 -1
  282. package/src/funcs/tenants-get-end-user-list.ts +11 -1
  283. package/src/funcs/tenants-get-registered-systems-masked.ts +11 -1
  284. package/src/funcs/tenants-get-registered-systems.ts +11 -1
  285. package/src/funcs/tenants-get-submission-page-style-by-key.ts +11 -1
  286. package/src/funcs/tenants-get-submission-page-style.ts +11 -1
  287. package/src/funcs/tenants-get-target-system-requirements.ts +11 -1
  288. package/src/funcs/tenants-get-target-system-values.ts +11 -1
  289. package/src/funcs/user-get-user-info.ts +11 -1
  290. package/src/funcs/webhooks-get-webhooks.ts +12 -2
  291. package/src/lib/config.ts +2 -2
@@ -106,8 +106,18 @@ async function $do(
106
106
  securitySource: client._options.security,
107
107
  retryConfig: options?.retries
108
108
  || client._options.retryConfig
109
+ || {
110
+ strategy: "backoff",
111
+ backoff: {
112
+ initialInterval: 500,
113
+ maxInterval: 60000,
114
+ exponent: 1.5,
115
+ maxElapsedTime: 3600000,
116
+ },
117
+ retryConnectionErrors: true,
118
+ }
109
119
  || { strategy: "none" },
110
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
120
+ retryCodes: options?.retryCodes || ["5XX"],
111
121
  };
112
122
 
113
123
  const requestRes = client._createRequest(context, {
@@ -83,8 +83,18 @@ async function $do(
83
83
  securitySource: client._options.security,
84
84
  retryConfig: options?.retries
85
85
  || client._options.retryConfig
86
+ || {
87
+ strategy: "backoff",
88
+ backoff: {
89
+ initialInterval: 500,
90
+ maxInterval: 60000,
91
+ exponent: 1.5,
92
+ maxElapsedTime: 3600000,
93
+ },
94
+ retryConnectionErrors: true,
95
+ }
86
96
  || { strategy: "none" },
87
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
97
+ retryCodes: options?.retryCodes || ["5XX"],
88
98
  };
89
99
 
90
100
  const requestRes = client._createRequest(context, {
@@ -104,8 +104,18 @@ async function $do(
104
104
  securitySource: client._options.security,
105
105
  retryConfig: options?.retries
106
106
  || client._options.retryConfig
107
+ || {
108
+ strategy: "backoff",
109
+ backoff: {
110
+ initialInterval: 500,
111
+ maxInterval: 60000,
112
+ exponent: 1.5,
113
+ maxElapsedTime: 3600000,
114
+ },
115
+ retryConnectionErrors: true,
116
+ }
107
117
  || { strategy: "none" },
108
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
118
+ retryCodes: options?.retryCodes || ["5XX"],
109
119
  };
110
120
 
111
121
  const requestRes = client._createRequest(context, {
@@ -107,8 +107,18 @@ async function $do(
107
107
  securitySource: client._options.security,
108
108
  retryConfig: options?.retries
109
109
  || client._options.retryConfig
110
+ || {
111
+ strategy: "backoff",
112
+ backoff: {
113
+ initialInterval: 500,
114
+ maxInterval: 60000,
115
+ exponent: 1.5,
116
+ maxElapsedTime: 3600000,
117
+ },
118
+ retryConnectionErrors: true,
119
+ }
110
120
  || { strategy: "none" },
111
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
121
+ retryCodes: options?.retryCodes || ["5XX"],
112
122
  };
113
123
 
114
124
  const requestRes = client._createRequest(context, {
@@ -116,8 +116,18 @@ async function $do(
116
116
  securitySource: client._options.security,
117
117
  retryConfig: options?.retries
118
118
  || client._options.retryConfig
119
+ || {
120
+ strategy: "backoff",
121
+ backoff: {
122
+ initialInterval: 500,
123
+ maxInterval: 60000,
124
+ exponent: 1.5,
125
+ maxElapsedTime: 3600000,
126
+ },
127
+ retryConnectionErrors: true,
128
+ }
119
129
  || { strategy: "none" },
120
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
130
+ retryCodes: options?.retryCodes || ["5XX"],
121
131
  };
122
132
 
123
133
  const requestRes = client._createRequest(context, {
@@ -104,8 +104,18 @@ async function $do(
104
104
  securitySource: client._options.security,
105
105
  retryConfig: options?.retries
106
106
  || client._options.retryConfig
107
+ || {
108
+ strategy: "backoff",
109
+ backoff: {
110
+ initialInterval: 500,
111
+ maxInterval: 60000,
112
+ exponent: 1.5,
113
+ maxElapsedTime: 3600000,
114
+ },
115
+ retryConnectionErrors: true,
116
+ }
107
117
  || { strategy: "none" },
108
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
118
+ retryCodes: options?.retryCodes || ["5XX"],
109
119
  };
110
120
 
111
121
  const requestRes = client._createRequest(context, {
@@ -69,7 +69,7 @@ async function $do(
69
69
  APICall,
70
70
  ]
71
71
  > {
72
- const path = pathToFunc("/#5")();
72
+ const path = pathToFunc("/#6")();
73
73
 
74
74
  const headers = new Headers(compactMap({
75
75
  Accept: "application/json",
@@ -89,8 +89,18 @@ async function $do(
89
89
  securitySource: client._options.security,
90
90
  retryConfig: options?.retries
91
91
  || client._options.retryConfig
92
+ || {
93
+ strategy: "backoff",
94
+ backoff: {
95
+ initialInterval: 500,
96
+ maxInterval: 60000,
97
+ exponent: 1.5,
98
+ maxElapsedTime: 3600000,
99
+ },
100
+ retryConnectionErrors: true,
101
+ }
92
102
  || { strategy: "none" },
93
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
103
+ retryCodes: options?.retryCodes || ["5XX"],
94
104
  };
95
105
 
96
106
  const requestRes = client._createRequest(context, {
@@ -92,8 +92,18 @@ async function $do(
92
92
  securitySource: client._options.security,
93
93
  retryConfig: options?.retries
94
94
  || client._options.retryConfig
95
+ || {
96
+ strategy: "backoff",
97
+ backoff: {
98
+ initialInterval: 500,
99
+ maxInterval: 60000,
100
+ exponent: 1.5,
101
+ maxElapsedTime: 3600000,
102
+ },
103
+ retryConnectionErrors: true,
104
+ }
95
105
  || { strategy: "none" },
96
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
106
+ retryCodes: options?.retryCodes || ["5XX"],
97
107
  };
98
108
 
99
109
  const requestRes = client._createRequest(context, {
@@ -83,8 +83,18 @@ async function $do(
83
83
  securitySource: client._options.security,
84
84
  retryConfig: options?.retries
85
85
  || client._options.retryConfig
86
+ || {
87
+ strategy: "backoff",
88
+ backoff: {
89
+ initialInterval: 500,
90
+ maxInterval: 60000,
91
+ exponent: 1.5,
92
+ maxElapsedTime: 3600000,
93
+ },
94
+ retryConnectionErrors: true,
95
+ }
86
96
  || { strategy: "none" },
87
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
97
+ retryCodes: options?.retryCodes || ["5XX"],
88
98
  };
89
99
 
90
100
  const requestRes = client._createRequest(context, {
@@ -83,8 +83,18 @@ async function $do(
83
83
  securitySource: client._options.security,
84
84
  retryConfig: options?.retries
85
85
  || client._options.retryConfig
86
+ || {
87
+ strategy: "backoff",
88
+ backoff: {
89
+ initialInterval: 500,
90
+ maxInterval: 60000,
91
+ exponent: 1.5,
92
+ maxElapsedTime: 3600000,
93
+ },
94
+ retryConnectionErrors: true,
95
+ }
86
96
  || { strategy: "none" },
87
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
97
+ retryCodes: options?.retryCodes || ["5XX"],
88
98
  };
89
99
 
90
100
  const requestRes = client._createRequest(context, {
@@ -83,8 +83,18 @@ async function $do(
83
83
  securitySource: client._options.security,
84
84
  retryConfig: options?.retries
85
85
  || client._options.retryConfig
86
+ || {
87
+ strategy: "backoff",
88
+ backoff: {
89
+ initialInterval: 500,
90
+ maxInterval: 60000,
91
+ exponent: 1.5,
92
+ maxElapsedTime: 3600000,
93
+ },
94
+ retryConnectionErrors: true,
95
+ }
86
96
  || { strategy: "none" },
87
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
97
+ retryCodes: options?.retryCodes || ["5XX"],
88
98
  };
89
99
 
90
100
  const requestRes = client._createRequest(context, {
@@ -83,8 +83,18 @@ async function $do(
83
83
  securitySource: client._options.security,
84
84
  retryConfig: options?.retries
85
85
  || client._options.retryConfig
86
+ || {
87
+ strategy: "backoff",
88
+ backoff: {
89
+ initialInterval: 500,
90
+ maxInterval: 60000,
91
+ exponent: 1.5,
92
+ maxElapsedTime: 3600000,
93
+ },
94
+ retryConnectionErrors: true,
95
+ }
86
96
  || { strategy: "none" },
87
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
97
+ retryCodes: options?.retryCodes || ["5XX"],
88
98
  };
89
99
 
90
100
  const requestRes = client._createRequest(context, {
@@ -83,8 +83,18 @@ async function $do(
83
83
  securitySource: client._options.security,
84
84
  retryConfig: options?.retries
85
85
  || client._options.retryConfig
86
+ || {
87
+ strategy: "backoff",
88
+ backoff: {
89
+ initialInterval: 500,
90
+ maxInterval: 60000,
91
+ exponent: 1.5,
92
+ maxElapsedTime: 3600000,
93
+ },
94
+ retryConnectionErrors: true,
95
+ }
86
96
  || { strategy: "none" },
87
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
97
+ retryCodes: options?.retryCodes || ["5XX"],
88
98
  };
89
99
 
90
100
  const requestRes = client._createRequest(context, {
@@ -83,8 +83,18 @@ async function $do(
83
83
  securitySource: client._options.security,
84
84
  retryConfig: options?.retries
85
85
  || client._options.retryConfig
86
+ || {
87
+ strategy: "backoff",
88
+ backoff: {
89
+ initialInterval: 500,
90
+ maxInterval: 60000,
91
+ exponent: 1.5,
92
+ maxElapsedTime: 3600000,
93
+ },
94
+ retryConnectionErrors: true,
95
+ }
86
96
  || { strategy: "none" },
87
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
97
+ retryCodes: options?.retryCodes || ["5XX"],
88
98
  };
89
99
 
90
100
  const requestRes = client._createRequest(context, {
@@ -83,8 +83,18 @@ async function $do(
83
83
  securitySource: client._options.security,
84
84
  retryConfig: options?.retries
85
85
  || client._options.retryConfig
86
+ || {
87
+ strategy: "backoff",
88
+ backoff: {
89
+ initialInterval: 500,
90
+ maxInterval: 60000,
91
+ exponent: 1.5,
92
+ maxElapsedTime: 3600000,
93
+ },
94
+ retryConnectionErrors: true,
95
+ }
86
96
  || { strategy: "none" },
87
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
97
+ retryCodes: options?.retryCodes || ["5XX"],
88
98
  };
89
99
 
90
100
  const requestRes = client._createRequest(context, {
@@ -105,8 +105,18 @@ async function $do(
105
105
  securitySource: client._options.security,
106
106
  retryConfig: options?.retries
107
107
  || client._options.retryConfig
108
+ || {
109
+ strategy: "backoff",
110
+ backoff: {
111
+ initialInterval: 500,
112
+ maxInterval: 60000,
113
+ exponent: 1.5,
114
+ maxElapsedTime: 3600000,
115
+ },
116
+ retryConnectionErrors: true,
117
+ }
108
118
  || { strategy: "none" },
109
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
119
+ retryCodes: options?.retryCodes || ["5XX"],
110
120
  };
111
121
 
112
122
  const requestRes = client._createRequest(context, {
@@ -83,8 +83,18 @@ async function $do(
83
83
  securitySource: client._options.security,
84
84
  retryConfig: options?.retries
85
85
  || client._options.retryConfig
86
+ || {
87
+ strategy: "backoff",
88
+ backoff: {
89
+ initialInterval: 500,
90
+ maxInterval: 60000,
91
+ exponent: 1.5,
92
+ maxElapsedTime: 3600000,
93
+ },
94
+ retryConnectionErrors: true,
95
+ }
86
96
  || { strategy: "none" },
87
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
97
+ retryCodes: options?.retryCodes || ["5XX"],
88
98
  };
89
99
 
90
100
  const requestRes = client._createRequest(context, {
@@ -83,8 +83,18 @@ async function $do(
83
83
  securitySource: client._options.security,
84
84
  retryConfig: options?.retries
85
85
  || client._options.retryConfig
86
+ || {
87
+ strategy: "backoff",
88
+ backoff: {
89
+ initialInterval: 500,
90
+ maxInterval: 60000,
91
+ exponent: 1.5,
92
+ maxElapsedTime: 3600000,
93
+ },
94
+ retryConnectionErrors: true,
95
+ }
86
96
  || { strategy: "none" },
87
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
97
+ retryCodes: options?.retryCodes || ["5XX"],
88
98
  };
89
99
 
90
100
  const requestRes = client._createRequest(context, {
@@ -83,8 +83,18 @@ async function $do(
83
83
  securitySource: client._options.security,
84
84
  retryConfig: options?.retries
85
85
  || client._options.retryConfig
86
+ || {
87
+ strategy: "backoff",
88
+ backoff: {
89
+ initialInterval: 500,
90
+ maxInterval: 60000,
91
+ exponent: 1.5,
92
+ maxElapsedTime: 3600000,
93
+ },
94
+ retryConnectionErrors: true,
95
+ }
86
96
  || { strategy: "none" },
87
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
97
+ retryCodes: options?.retryCodes || ["5XX"],
88
98
  };
89
99
 
90
100
  const requestRes = client._createRequest(context, {
@@ -81,7 +81,7 @@ async function $do(
81
81
  const payload = parsed.value;
82
82
  const body = null;
83
83
 
84
- const path = pathToFunc("/#4")();
84
+ const path = pathToFunc("/#5")();
85
85
 
86
86
  const query = encodeFormQuery({
87
87
  "companyId": payload?.companyId,
@@ -107,8 +107,18 @@ async function $do(
107
107
  securitySource: client._options.security,
108
108
  retryConfig: options?.retries
109
109
  || client._options.retryConfig
110
+ || {
111
+ strategy: "backoff",
112
+ backoff: {
113
+ initialInterval: 500,
114
+ maxInterval: 60000,
115
+ exponent: 1.5,
116
+ maxElapsedTime: 3600000,
117
+ },
118
+ retryConnectionErrors: true,
119
+ }
110
120
  || { strategy: "none" },
111
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
121
+ retryCodes: options?.retryCodes || ["5XX"],
112
122
  };
113
123
 
114
124
  const requestRes = client._createRequest(context, {
package/src/lib/config.ts CHANGED
@@ -47,7 +47,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
47
47
  export const SDK_METADATA = {
48
48
  language: "typescript",
49
49
  openapiDocVersion: "1.0",
50
- sdkVersion: "0.3.0",
50
+ sdkVersion: "0.3.1",
51
51
  genVersion: "2.879.1",
52
- userAgent: "speakeasy-sdk/typescript 0.3.0 2.879.1 1.0 @maesn/typescript-sdk",
52
+ userAgent: "speakeasy-sdk/typescript 0.3.1 2.879.1 1.0 @maesn/typescript-sdk",
53
53
  } as const;