increase 0.8.1 → 0.9.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 (279) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +31 -11
  3. package/_shims/fetch.d.ts +8 -1
  4. package/_shims/fetch.node.d.ts +11 -1
  5. package/core.d.ts +76 -28
  6. package/core.d.ts.map +1 -1
  7. package/core.js +123 -55
  8. package/core.js.map +1 -1
  9. package/core.mjs +119 -55
  10. package/core.mjs.map +1 -1
  11. package/index.js +3 -2
  12. package/index.js.map +1 -1
  13. package/index.mjs +3 -2
  14. package/index.mjs.map +1 -1
  15. package/package.json +1 -1
  16. package/pagination.d.ts +2 -2
  17. package/pagination.d.ts.map +1 -1
  18. package/pagination.js +4 -4
  19. package/pagination.js.map +1 -1
  20. package/pagination.mjs +4 -4
  21. package/pagination.mjs.map +1 -1
  22. package/resources/account-numbers.d.ts +8 -8
  23. package/resources/account-numbers.d.ts.map +1 -1
  24. package/resources/account-numbers.js.map +1 -1
  25. package/resources/account-numbers.mjs.map +1 -1
  26. package/resources/account-statements.d.ts +3 -6
  27. package/resources/account-statements.d.ts.map +1 -1
  28. package/resources/account-statements.js.map +1 -1
  29. package/resources/account-statements.mjs.map +1 -1
  30. package/resources/account-transfers.d.ts +6 -18
  31. package/resources/account-transfers.d.ts.map +1 -1
  32. package/resources/account-transfers.js.map +1 -1
  33. package/resources/account-transfers.mjs.map +1 -1
  34. package/resources/accounts.d.ts +6 -6
  35. package/resources/accounts.d.ts.map +1 -1
  36. package/resources/ach-prenotifications.d.ts +51 -7
  37. package/resources/ach-prenotifications.d.ts.map +1 -1
  38. package/resources/ach-prenotifications.js.map +1 -1
  39. package/resources/ach-prenotifications.mjs.map +1 -1
  40. package/resources/ach-transfers.d.ts +16 -9
  41. package/resources/ach-transfers.d.ts.map +1 -1
  42. package/resources/ach-transfers.js.map +1 -1
  43. package/resources/ach-transfers.mjs.map +1 -1
  44. package/resources/balance-lookups.d.ts +1 -1
  45. package/resources/balance-lookups.d.ts.map +1 -1
  46. package/resources/bookkeeping-accounts.d.ts +3 -3
  47. package/resources/bookkeeping-accounts.d.ts.map +1 -1
  48. package/resources/bookkeeping-entries.d.ts +2 -2
  49. package/resources/bookkeeping-entries.d.ts.map +1 -1
  50. package/resources/bookkeeping-entry-sets.d.ts +1 -1
  51. package/resources/bookkeeping-entry-sets.d.ts.map +1 -1
  52. package/resources/card-disputes.d.ts +7 -7
  53. package/resources/card-disputes.d.ts.map +1 -1
  54. package/resources/card-disputes.js.map +1 -1
  55. package/resources/card-disputes.mjs.map +1 -1
  56. package/resources/card-profiles.d.ts +15 -7
  57. package/resources/card-profiles.d.ts.map +1 -1
  58. package/resources/card-profiles.js +6 -0
  59. package/resources/card-profiles.js.map +1 -1
  60. package/resources/card-profiles.mjs +6 -0
  61. package/resources/card-profiles.mjs.map +1 -1
  62. package/resources/card-purchase-supplements.d.ts +3 -3
  63. package/resources/card-purchase-supplements.d.ts.map +1 -1
  64. package/resources/cards.d.ts +6 -13
  65. package/resources/cards.d.ts.map +1 -1
  66. package/resources/cards.js.map +1 -1
  67. package/resources/cards.mjs.map +1 -1
  68. package/resources/check-deposits.d.ts +7 -7
  69. package/resources/check-deposits.d.ts.map +1 -1
  70. package/resources/check-deposits.js.map +1 -1
  71. package/resources/check-deposits.mjs.map +1 -1
  72. package/resources/check-transfers.d.ts +15 -10
  73. package/resources/check-transfers.d.ts.map +1 -1
  74. package/resources/check-transfers.js.map +1 -1
  75. package/resources/check-transfers.mjs.map +1 -1
  76. package/resources/declined-transactions.d.ts +25 -28
  77. package/resources/declined-transactions.d.ts.map +1 -1
  78. package/resources/declined-transactions.js.map +1 -1
  79. package/resources/declined-transactions.mjs.map +1 -1
  80. package/resources/digital-wallet-tokens.d.ts +3 -6
  81. package/resources/digital-wallet-tokens.d.ts.map +1 -1
  82. package/resources/digital-wallet-tokens.js.map +1 -1
  83. package/resources/digital-wallet-tokens.mjs.map +1 -1
  84. package/resources/documents.d.ts +3 -3
  85. package/resources/documents.d.ts.map +1 -1
  86. package/resources/entities/beneficial-owners.d.ts +4 -8
  87. package/resources/entities/beneficial-owners.d.ts.map +1 -1
  88. package/resources/entities/beneficial-owners.js.map +1 -1
  89. package/resources/entities/beneficial-owners.mjs.map +1 -1
  90. package/resources/entities/entities.d.ts +11 -11
  91. package/resources/entities/entities.d.ts.map +1 -1
  92. package/resources/entities/entities.js +6 -0
  93. package/resources/entities/entities.js.map +1 -1
  94. package/resources/entities/entities.mjs +6 -0
  95. package/resources/entities/entities.mjs.map +1 -1
  96. package/resources/entities/supplemental-documents.d.ts +2 -2
  97. package/resources/entities/supplemental-documents.d.ts.map +1 -1
  98. package/resources/event-subscriptions.d.ts +5 -8
  99. package/resources/event-subscriptions.d.ts.map +1 -1
  100. package/resources/event-subscriptions.js.map +1 -1
  101. package/resources/event-subscriptions.mjs.map +1 -1
  102. package/resources/events.d.ts +7 -5
  103. package/resources/events.d.ts.map +1 -1
  104. package/resources/events.js.map +1 -1
  105. package/resources/events.mjs.map +1 -1
  106. package/resources/exports.d.ts +4 -4
  107. package/resources/exports.d.ts.map +1 -1
  108. package/resources/external-accounts.d.ts +5 -11
  109. package/resources/external-accounts.d.ts.map +1 -1
  110. package/resources/external-accounts.js.map +1 -1
  111. package/resources/external-accounts.mjs.map +1 -1
  112. package/resources/files.d.ts +9 -4
  113. package/resources/files.d.ts.map +1 -1
  114. package/resources/files.js +2 -2
  115. package/resources/files.js.map +1 -1
  116. package/resources/files.mjs +2 -2
  117. package/resources/files.mjs.map +1 -1
  118. package/resources/groups.d.ts +1 -1
  119. package/resources/groups.d.ts.map +1 -1
  120. package/resources/inbound-ach-transfer-returns.d.ts +6 -4
  121. package/resources/inbound-ach-transfer-returns.d.ts.map +1 -1
  122. package/resources/inbound-ach-transfer-returns.js.map +1 -1
  123. package/resources/inbound-ach-transfer-returns.mjs.map +1 -1
  124. package/resources/inbound-wire-drawdown-requests.d.ts +5 -3
  125. package/resources/inbound-wire-drawdown-requests.d.ts.map +1 -1
  126. package/resources/inbound-wire-drawdown-requests.js.map +1 -1
  127. package/resources/inbound-wire-drawdown-requests.mjs.map +1 -1
  128. package/resources/limits.d.ts +5 -9
  129. package/resources/limits.d.ts.map +1 -1
  130. package/resources/limits.js.map +1 -1
  131. package/resources/limits.mjs.map +1 -1
  132. package/resources/oauth-connections.d.ts +3 -6
  133. package/resources/oauth-connections.d.ts.map +1 -1
  134. package/resources/oauth-connections.js.map +1 -1
  135. package/resources/oauth-connections.mjs.map +1 -1
  136. package/resources/pending-transactions.d.ts +28 -37
  137. package/resources/pending-transactions.d.ts.map +1 -1
  138. package/resources/pending-transactions.js.map +1 -1
  139. package/resources/pending-transactions.mjs.map +1 -1
  140. package/resources/programs.d.ts +3 -3
  141. package/resources/programs.d.ts.map +1 -1
  142. package/resources/real-time-decisions.d.ts +2 -5
  143. package/resources/real-time-decisions.d.ts.map +1 -1
  144. package/resources/real-time-decisions.js.map +1 -1
  145. package/resources/real-time-decisions.mjs.map +1 -1
  146. package/resources/real-time-payments-transfers.d.ts +6 -4
  147. package/resources/real-time-payments-transfers.d.ts.map +1 -1
  148. package/resources/real-time-payments-transfers.js.map +1 -1
  149. package/resources/real-time-payments-transfers.mjs.map +1 -1
  150. package/resources/routing-numbers.d.ts +4 -1
  151. package/resources/routing-numbers.d.ts.map +1 -1
  152. package/resources/routing-numbers.js.map +1 -1
  153. package/resources/routing-numbers.mjs.map +1 -1
  154. package/resources/simulations/account-statements.d.ts +1 -1
  155. package/resources/simulations/account-statements.d.ts.map +1 -1
  156. package/resources/simulations/account-transfers.d.ts +1 -1
  157. package/resources/simulations/account-transfers.d.ts.map +1 -1
  158. package/resources/simulations/ach-transfers.d.ts +124 -138
  159. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  160. package/resources/simulations/ach-transfers.js.map +1 -1
  161. package/resources/simulations/ach-transfers.mjs.map +1 -1
  162. package/resources/simulations/card-disputes.d.ts +1 -1
  163. package/resources/simulations/card-disputes.d.ts.map +1 -1
  164. package/resources/simulations/card-profiles.d.ts +1 -4
  165. package/resources/simulations/card-profiles.d.ts.map +1 -1
  166. package/resources/simulations/card-profiles.js.map +1 -1
  167. package/resources/simulations/card-profiles.mjs.map +1 -1
  168. package/resources/simulations/card-refunds.d.ts +1 -1
  169. package/resources/simulations/card-refunds.d.ts.map +1 -1
  170. package/resources/simulations/cards.d.ts +49 -58
  171. package/resources/simulations/cards.d.ts.map +1 -1
  172. package/resources/simulations/cards.js.map +1 -1
  173. package/resources/simulations/cards.mjs.map +1 -1
  174. package/resources/simulations/check-deposits.d.ts +3 -12
  175. package/resources/simulations/check-deposits.d.ts.map +1 -1
  176. package/resources/simulations/check-transfers.d.ts +2 -2
  177. package/resources/simulations/check-transfers.d.ts.map +1 -1
  178. package/resources/simulations/digital-wallet-token-requests.d.ts +1 -1
  179. package/resources/simulations/digital-wallet-token-requests.d.ts.map +1 -1
  180. package/resources/simulations/documents.d.ts +1 -4
  181. package/resources/simulations/documents.d.ts.map +1 -1
  182. package/resources/simulations/documents.js.map +1 -1
  183. package/resources/simulations/documents.mjs.map +1 -1
  184. package/resources/simulations/inbound-funds-holds.d.ts +1 -1
  185. package/resources/simulations/inbound-funds-holds.d.ts.map +1 -1
  186. package/resources/simulations/inbound-wire-drawdown-requests.d.ts +1 -1
  187. package/resources/simulations/inbound-wire-drawdown-requests.d.ts.map +1 -1
  188. package/resources/simulations/interest-payments.d.ts +100 -108
  189. package/resources/simulations/interest-payments.d.ts.map +1 -1
  190. package/resources/simulations/interest-payments.js.map +1 -1
  191. package/resources/simulations/interest-payments.mjs.map +1 -1
  192. package/resources/simulations/programs.d.ts +1 -4
  193. package/resources/simulations/programs.d.ts.map +1 -1
  194. package/resources/simulations/programs.js.map +1 -1
  195. package/resources/simulations/programs.mjs.map +1 -1
  196. package/resources/simulations/real-time-payments-transfers.d.ts +123 -134
  197. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  198. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  199. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  200. package/resources/simulations/wire-transfers.d.ts +100 -108
  201. package/resources/simulations/wire-transfers.d.ts.map +1 -1
  202. package/resources/simulations/wire-transfers.js.map +1 -1
  203. package/resources/simulations/wire-transfers.mjs.map +1 -1
  204. package/resources/transactions.d.ts +105 -110
  205. package/resources/transactions.d.ts.map +1 -1
  206. package/resources/transactions.js.map +1 -1
  207. package/resources/transactions.mjs.map +1 -1
  208. package/resources/wire-drawdown-requests.d.ts +4 -4
  209. package/resources/wire-drawdown-requests.d.ts.map +1 -1
  210. package/resources/wire-transfers.d.ts +11 -11
  211. package/resources/wire-transfers.d.ts.map +1 -1
  212. package/resources/wire-transfers.js.map +1 -1
  213. package/resources/wire-transfers.mjs.map +1 -1
  214. package/src/_shims/fetch.d.ts +8 -1
  215. package/src/_shims/fetch.node.d.ts +11 -1
  216. package/src/core.ts +176 -76
  217. package/src/index.ts +2 -2
  218. package/src/pagination.ts +5 -5
  219. package/src/resources/account-numbers.ts +9 -9
  220. package/src/resources/account-statements.ts +4 -7
  221. package/src/resources/account-transfers.ts +7 -19
  222. package/src/resources/accounts.ts +7 -7
  223. package/src/resources/ach-prenotifications.ts +56 -8
  224. package/src/resources/ach-transfers.ts +18 -10
  225. package/src/resources/balance-lookups.ts +1 -1
  226. package/src/resources/bookkeeping-accounts.ts +4 -4
  227. package/src/resources/bookkeeping-entries.ts +3 -3
  228. package/src/resources/bookkeeping-entry-sets.ts +1 -1
  229. package/src/resources/card-disputes.ts +8 -8
  230. package/src/resources/card-profiles.ts +20 -8
  231. package/src/resources/card-purchase-supplements.ts +4 -4
  232. package/src/resources/cards.ts +7 -14
  233. package/src/resources/check-deposits.ts +8 -8
  234. package/src/resources/check-transfers.ts +17 -11
  235. package/src/resources/declined-transactions.ts +26 -29
  236. package/src/resources/digital-wallet-tokens.ts +4 -7
  237. package/src/resources/documents.ts +4 -4
  238. package/src/resources/entities/beneficial-owners.ts +4 -8
  239. package/src/resources/entities/entities.ts +15 -12
  240. package/src/resources/entities/supplemental-documents.ts +2 -2
  241. package/src/resources/event-subscriptions.ts +6 -9
  242. package/src/resources/events.ts +8 -6
  243. package/src/resources/exports.ts +5 -5
  244. package/src/resources/external-accounts.ts +6 -12
  245. package/src/resources/files.ts +11 -6
  246. package/src/resources/groups.ts +1 -1
  247. package/src/resources/inbound-ach-transfer-returns.ts +7 -5
  248. package/src/resources/inbound-wire-drawdown-requests.ts +6 -4
  249. package/src/resources/limits.ts +6 -10
  250. package/src/resources/oauth-connections.ts +4 -7
  251. package/src/resources/pending-transactions.ts +29 -38
  252. package/src/resources/programs.ts +4 -4
  253. package/src/resources/real-time-decisions.ts +2 -5
  254. package/src/resources/real-time-payments-transfers.ts +7 -5
  255. package/src/resources/routing-numbers.ts +4 -1
  256. package/src/resources/simulations/account-statements.ts +1 -1
  257. package/src/resources/simulations/account-transfers.ts +1 -1
  258. package/src/resources/simulations/ach-transfers.ts +124 -138
  259. package/src/resources/simulations/card-disputes.ts +1 -1
  260. package/src/resources/simulations/card-profiles.ts +1 -4
  261. package/src/resources/simulations/card-refunds.ts +1 -1
  262. package/src/resources/simulations/cards.ts +49 -58
  263. package/src/resources/simulations/check-deposits.ts +3 -3
  264. package/src/resources/simulations/check-transfers.ts +2 -2
  265. package/src/resources/simulations/digital-wallet-token-requests.ts +1 -1
  266. package/src/resources/simulations/documents.ts +1 -4
  267. package/src/resources/simulations/inbound-funds-holds.ts +1 -1
  268. package/src/resources/simulations/inbound-wire-drawdown-requests.ts +1 -1
  269. package/src/resources/simulations/interest-payments.ts +100 -108
  270. package/src/resources/simulations/programs.ts +1 -4
  271. package/src/resources/simulations/real-time-payments-transfers.ts +123 -134
  272. package/src/resources/simulations/wire-transfers.ts +100 -108
  273. package/src/resources/transactions.ts +106 -111
  274. package/src/resources/wire-drawdown-requests.ts +5 -5
  275. package/src/resources/wire-transfers.ts +12 -12
  276. package/src/version.ts +1 -1
  277. package/version.d.ts +1 -1
  278. package/version.js +1 -1
  279. package/version.mjs +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,47 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.9.1](https://github.com/Increase/increase-node/compare/v0.9.0...v0.9.1) (2023-08-16)
4
+
5
+
6
+ ### Features
7
+
8
+ * allow a default timeout to be set for clients ([#111](https://github.com/Increase/increase-node/issues/111)) ([3c477d6](https://github.com/Increase/increase-node/commit/3c477d6df3b9b2eb27c493c5d9cb4f449be188dd))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **client:** fix TypeError when a request gets retried ([#116](https://github.com/Increase/increase-node/issues/116)) ([dbdc423](https://github.com/Increase/increase-node/commit/dbdc423a3b739b30b81115a253848672cdffa0ac))
14
+
15
+
16
+ ### Chores
17
+
18
+ * assign default reviewers to release PRs ([#113](https://github.com/Increase/increase-node/issues/113)) ([3411dd3](https://github.com/Increase/increase-node/commit/3411dd38827118a537b1a7234dec8ed4679fe394))
19
+ * **internal:** fix error happening in CloudFlare pages ([#114](https://github.com/Increase/increase-node/issues/114)) ([c191d46](https://github.com/Increase/increase-node/commit/c191d46464d2bd22cf2919a06f3f137cd96e7180))
20
+ * **internal:** improve error message when option is missing ([#115](https://github.com/Increase/increase-node/issues/115)) ([6a24a7e](https://github.com/Increase/increase-node/commit/6a24a7e4a76b63143b6f1861db4889cbeb6674d2))
21
+
22
+ ## [0.9.0](https://github.com/Increase/increase-node/compare/v0.8.1...v0.9.0) (2023-08-11)
23
+
24
+
25
+ ### ⚠ BREAKING CHANGES
26
+
27
+ * **client:** support accessing raw response + remove deprecated features ([#104](https://github.com/Increase/increase-node/issues/104))
28
+
29
+ ### Features
30
+
31
+ * **api:** updates ([#106](https://github.com/Increase/increase-node/issues/106)) ([3ba4626](https://github.com/Increase/increase-node/commit/3ba46267c7f1f56f141b0ebaef9f92cf2d3bf3fd))
32
+ * **client:** support accessing raw response + remove deprecated features ([#104](https://github.com/Increase/increase-node/issues/104)) ([b4f3164](https://github.com/Increase/increase-node/commit/b4f3164ed9a134dc95e1e0a62e86f414c7e9e3d1))
33
+
34
+
35
+ ### Documentation
36
+
37
+ * **api:** change description of various fields ([#107](https://github.com/Increase/increase-node/issues/107)) ([54903db](https://github.com/Increase/increase-node/commit/54903db4061f080c7618e2d2348dcad4dc1c5db9))
38
+ * **readme:** minor updates ([#108](https://github.com/Increase/increase-node/issues/108)) ([a5558bc](https://github.com/Increase/increase-node/commit/a5558bca6f934285a33344abc4b5383cca0a2a06))
39
+
40
+
41
+ ### Chores
42
+
43
+ * **internal:** conditionally include bin during build output ([#109](https://github.com/Increase/increase-node/issues/109)) ([ae76bb5](https://github.com/Increase/increase-node/commit/ae76bb539f3fe3352005bb16a9025d03252624a8))
44
+
3
45
  ## [0.8.1](https://github.com/Increase/increase-node/compare/v0.8.0...v0.8.1) (2023-08-08)
4
46
 
5
47
 
package/README.md CHANGED
@@ -2,10 +2,7 @@
2
2
 
3
3
  [![NPM version](https://img.shields.io/npm/v/increase.svg)](https://npmjs.org/package/increase)
4
4
 
5
- The Increase Node library provides convenient access to the Increase REST API from applications written in server-side JavaScript.
6
- It includes TypeScript definitions for all request params and response fields.
7
-
8
- ## Documentation
5
+ This library provides convenient access to the Increase Node REST API from server-side TypeScript or JavaScript.
9
6
 
10
7
  The API documentation can be found [here](https://increase.com/documentation).
11
8
 
@@ -36,10 +33,9 @@ async function main() {
36
33
  main();
37
34
  ```
38
35
 
39
- ### Usage with TypeScript
36
+ ### Request & Response types
40
37
 
41
- Importing, instantiating, and interacting with the library are the same as above.
42
- If you like, you may reference our types directly:
38
+ This library includes TypeScript definitions for all request params and response fields. You may import and use them like so:
43
39
 
44
40
  ```ts
45
41
  import Increase from 'increase';
@@ -151,13 +147,13 @@ await increase.accounts.create({ name: 'Jack' }, {
151
147
 
152
148
  ### Timeouts
153
149
 
154
- Requests time out after 60 seconds by default. You can configure this with a `timeout` option:
150
+ Requests time out after 1 minute by default. You can configure this with a `timeout` option:
155
151
 
156
152
  <!-- prettier-ignore -->
157
153
  ```ts
158
154
  // Configure the default for all requests:
159
155
  const increase = new Increase({
160
- timeout: 20 * 1000, // 20 seconds (default is 60s)
156
+ timeout: 20 * 1000, // 20 seconds (default is 1 minute)
161
157
  });
162
158
 
163
159
  // Override per-request:
@@ -201,6 +197,28 @@ while (page.hasNextPage()) {
201
197
  }
202
198
  ```
203
199
 
200
+ ## Advanced Usage
201
+
202
+ ### Accessing raw Response data (e.g., headers)
203
+
204
+ The "raw" `Response` returned by `fetch()` can be accessed through the `.asResponse()` method on the `APIPromise` type that all methods return.
205
+
206
+ You can also use the `.withResponse()` method to get the raw `Response` along with the parsed data.
207
+
208
+ ```ts
209
+ const increase = new Increase();
210
+
211
+ const response = await increase.accounts.create({ name: 'My First Increase Account' }).asResponse();
212
+ console.log(response.headers.get('X-My-Header'));
213
+ console.log(response.statusText); // access the underlying Response object
214
+
215
+ const { data: accounts, response: raw } = await increase.accounts
216
+ .create({ name: 'My First Increase Account' })
217
+ .withResponse();
218
+ console.log(raw.headers.get('X-My-Header'));
219
+ console.log(accounts.id);
220
+ ```
221
+
204
222
  ## Configuring an HTTP(S) Agent (e.g., for proxies)
205
223
 
206
224
  By default, this library uses a stable agent for all http/https requests to reuse TCP connections, eliminating many TCP & TLS handshakes and shaving around 100ms off most requests.
@@ -241,7 +259,9 @@ We are keen for your feedback; please open an [issue](https://www.github.com/inc
241
259
  The following runtimes are supported:
242
260
 
243
261
  - Node.js 16 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.
244
- - Deno v1.28.0 or higher (experimental).
245
- Use `import Increase from "npm:increase"`.
262
+ - Deno v1.28.0 or higher, using `import Increase from "npm:increase"`.
263
+ Deno Deploy is not yet supported.
264
+ - Cloudflare Workers.
265
+ - Vercel Edge Runtime.
246
266
 
247
267
  If you are interested in other runtime environments, please open or upvote an issue on GitHub.
package/_shims/fetch.d.ts CHANGED
@@ -26,6 +26,8 @@ type _Response = unknown extends Response ? never : Response;
26
26
  // @ts-ignore
27
27
  type _ResponseInit = unknown extends ResponseInit ? never : ResponseInit;
28
28
  // @ts-ignore
29
+ type _ResponseType = unknown extends ResponseType ? never : ResponseType;
30
+ // @ts-ignore
29
31
  type _BodyInit = unknown extends BodyInit ? never : BodyInit;
30
32
  // @ts-ignore
31
33
  type _Headers = unknown extends Headers ? never : Headers;
@@ -49,4 +51,9 @@ declare const _Headers: {
49
51
  export const isPolyfilled = false;
50
52
 
51
53
  export { _fetch as fetch, _Request as Request, _Response as Response, _Headers as Headers };
52
- export type { _RequestInit as RequestInit, _RequestInfo as RequestInfo, _BodyInit as BodyInit };
54
+ export type {
55
+ _RequestInit as RequestInit,
56
+ _RequestInfo as RequestInfo,
57
+ _ResponseType as ResponseType,
58
+ _BodyInit as BodyInit,
59
+ };
@@ -26,6 +26,11 @@ type _RequestInit = unknown extends RequestInit ? nf.RequestInit : RequestInit;
26
26
  type _Response = unknown extends Response ? nf.Response : Response;
27
27
  // @ts-ignore
28
28
  type _ResponseInit = unknown extends ResponseInit ? nf.ResponseInit : ResponseInit;
29
+ type _ResponseType =
30
+ // @ts-ignore
31
+ unknown extends ResponseType ? 'basic' | 'cors' | 'default' | 'error' | 'opaque' | 'opaqueredirect'
32
+ : // @ts-ignore
33
+ ResponseType;
29
34
  // @ts-ignore
30
35
  type _BodyInit = unknown extends BodyInit ? nf.BodyInit : BodyInit;
31
36
  // @ts-ignore
@@ -50,4 +55,9 @@ declare const _Headers: {
50
55
  export const isPolyfilled = false;
51
56
 
52
57
  export { _fetch as fetch, _Request as Request, _Response as Response, _Headers as Headers };
53
- export type { _RequestInit as RequestInit, _RequestInfo as RequestInfo, _BodyInit as BodyInit };
58
+ export type {
59
+ _RequestInit as RequestInit,
60
+ _RequestInfo as RequestInfo,
61
+ _ResponseType as ResponseType,
62
+ _BodyInit as BodyInit,
63
+ };
package/core.d.ts CHANGED
@@ -2,6 +2,7 @@ import { APIError } from './error.js';
2
2
  import type { Readable } from 'increase/_shims/node-readable';
3
3
  import { type Agent } from 'increase/_shims/agent';
4
4
  import { type RequestInfo, type RequestInit, type Response } from 'increase/_shims/fetch';
5
+ export { type Response };
5
6
  export {
6
7
  maybeMultipartFormRequestOptions,
7
8
  multipartFormRequestOptions,
@@ -9,6 +10,53 @@ export {
9
10
  type Uploadable,
10
11
  } from './uploads.js';
11
12
  export type Fetch = (url: RequestInfo, init?: RequestInit) => Promise<Response>;
13
+ type PromiseOrValue<T> = T | Promise<T>;
14
+ type APIResponseProps = {
15
+ response: Response;
16
+ options: FinalRequestOptions;
17
+ controller: AbortController;
18
+ };
19
+ /**
20
+ * A subclass of `Promise` providing additional helper methods
21
+ * for interacting with the SDK.
22
+ */
23
+ export declare class APIPromise<T> extends Promise<T> {
24
+ private responsePromise;
25
+ private parseResponse;
26
+ private parsedPromise;
27
+ constructor(
28
+ responsePromise: Promise<APIResponseProps>,
29
+ parseResponse?: (props: APIResponseProps) => PromiseOrValue<T>,
30
+ );
31
+ _thenUnwrap<U>(transform: (data: T) => U): APIPromise<U>;
32
+ /**
33
+ * Gets the raw `Response` instance instead of parsing the response
34
+ * data.
35
+ *
36
+ * If you want to parse the response body but still get the `Response`
37
+ * instance, you can use {@link withResponse()}.
38
+ */
39
+ asResponse(): Promise<Response>;
40
+ /**
41
+ * Gets the parsed response data and the raw `Response` instance.
42
+ *
43
+ * If you just want to get the raw `Response` instance without parsing it,
44
+ * you can use {@link asResponse()}.
45
+ */
46
+ withResponse(): Promise<{
47
+ data: T;
48
+ response: Response;
49
+ }>;
50
+ private parse;
51
+ then<TResult1 = T, TResult2 = never>(
52
+ onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null,
53
+ onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null,
54
+ ): Promise<TResult1 | TResult2>;
55
+ catch<TResult = never>(
56
+ onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null,
57
+ ): Promise<T | TResult>;
58
+ finally(onfinally?: (() => void) | undefined | null): Promise<T>;
59
+ }
12
60
  export declare abstract class APIClient {
13
61
  baseURL: string;
14
62
  maxRetries: number;
@@ -19,7 +67,7 @@ export declare abstract class APIClient {
19
67
  constructor({
20
68
  baseURL,
21
69
  maxRetries,
22
- timeout, // 60s
70
+ timeout, // 1 minute
23
71
  httpAgent,
24
72
  fetch: overridenFetch,
25
73
  }: {
@@ -45,16 +93,17 @@ export declare abstract class APIClient {
45
93
  */
46
94
  protected validateHeaders(headers: Headers, customHeaders: Headers): void;
47
95
  protected defaultIdempotencyKey(): string;
48
- get<Req extends {}, Rsp>(path: string, opts?: RequestOptions<Req>): Promise<Rsp>;
49
- post<Req extends {}, Rsp>(path: string, opts?: RequestOptions<Req>): Promise<Rsp>;
50
- patch<Req extends {}, Rsp>(path: string, opts?: RequestOptions<Req>): Promise<Rsp>;
51
- put<Req extends {}, Rsp>(path: string, opts?: RequestOptions<Req>): Promise<Rsp>;
52
- delete<Req extends {}, Rsp>(path: string, opts?: RequestOptions<Req>): Promise<Rsp>;
96
+ get<Req extends {}, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp>;
97
+ post<Req extends {}, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp>;
98
+ patch<Req extends {}, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp>;
99
+ put<Req extends {}, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp>;
100
+ delete<Req extends {}, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp>;
101
+ private methodRequest;
53
102
  getAPIList<Item, PageClass extends AbstractPage<Item> = AbstractPage<Item>>(
54
103
  path: string,
55
104
  Page: new (...args: any[]) => PageClass,
56
105
  opts?: RequestOptions<any>,
57
- ): PagePromise<PageClass>;
106
+ ): PagePromise<PageClass, Item>;
58
107
  private calculateContentLength;
59
108
  buildRequest<Req extends {}>(
60
109
  options: FinalRequestOptions<Req>,
@@ -84,13 +133,14 @@ export declare abstract class APIClient {
84
133
  headers: Headers | undefined,
85
134
  ): APIError;
86
135
  request<Req extends {}, Rsp>(
87
- options: FinalRequestOptions<Req>,
88
- retriesRemaining?: number,
89
- ): Promise<APIResponse<Rsp>>;
136
+ options: PromiseOrValue<FinalRequestOptions<Req>>,
137
+ remainingRetries?: number | null,
138
+ ): APIPromise<Rsp>;
139
+ private makeRequest;
90
140
  requestAPIList<Item = unknown, PageClass extends AbstractPage<Item> = AbstractPage<Item>>(
91
141
  Page: new (...args: ConstructorParameters<typeof AbstractPage>) => PageClass,
92
142
  options: FinalRequestOptions,
93
- ): PagePromise<PageClass>;
143
+ ): PagePromise<PageClass, Item>;
94
144
  buildURL<Req>(path: string, query: Req | undefined): string;
95
145
  protected stringifyQuery(query: Record<string, unknown>): string;
96
146
  fetchWithTimeout(
@@ -104,7 +154,6 @@ export declare abstract class APIClient {
104
154
  private retryRequest;
105
155
  private calculateRetryTimeoutSeconds;
106
156
  private getUserAgent;
107
- private debug;
108
157
  }
109
158
  export declare class APIResource {
110
159
  protected client: APIClient;
@@ -126,7 +175,9 @@ export type PageInfo =
126
175
  export declare abstract class AbstractPage<Item> implements AsyncIterable<Item> {
127
176
  #private;
128
177
  protected options: FinalRequestOptions;
129
- constructor(client: APIClient, response: APIResponse<unknown>, options: FinalRequestOptions);
178
+ protected response: Response;
179
+ protected body: unknown;
180
+ constructor(client: APIClient, response: Response, body: unknown, options: FinalRequestOptions);
130
181
  /**
131
182
  * @deprecated Use nextPageInfo instead
132
183
  */
@@ -138,27 +189,27 @@ export declare abstract class AbstractPage<Item> implements AsyncIterable<Item>
138
189
  iterPages(): AsyncGenerator<AbstractPage<Item>, void, unknown>;
139
190
  [Symbol.asyncIterator](): AsyncGenerator<Awaited<Item>, void, unknown>;
140
191
  }
192
+ /**
193
+ * This subclass of Promise will resolve to an instantiated Page once the request completes.
194
+ *
195
+ * It also implements AsyncIterable to allow auto-paginating iteration on an unawaited list call, eg:
196
+ *
197
+ * for await (const item of client.items.list()) {
198
+ * console.log(item)
199
+ * }
200
+ */
141
201
  export declare class PagePromise<
142
202
  PageClass extends AbstractPage<Item>,
143
203
  Item = ReturnType<PageClass['getPaginatedItems']>[number],
144
204
  >
145
- extends Promise<PageClass>
205
+ extends APIPromise<PageClass>
146
206
  implements AsyncIterable<Item>
147
207
  {
148
- /**
149
- * This subclass of Promise will resolve to an instantiated Page once the request completes.
150
- */
151
208
  constructor(
152
209
  client: APIClient,
153
- requestPromise: Promise<APIResponse<unknown>>,
154
- options: FinalRequestOptions,
210
+ request: Promise<APIResponseProps>,
155
211
  Page: new (...args: ConstructorParameters<typeof AbstractPage>) => PageClass,
156
212
  );
157
- /**
158
- * Enable subclassing Promise.
159
- * Ref: https://stackoverflow.com/a/60328122
160
- */
161
- static get [Symbol.species](): PromiseConstructor;
162
213
  /**
163
214
  * Allow auto-paginating iteration on an unawaited list call, eg:
164
215
  *
@@ -200,10 +251,6 @@ export type FinalRequestOptions<Req extends {} = Record<string, unknown> | Reada
200
251
  method: HTTPMethod;
201
252
  path: string;
202
253
  };
203
- export type APIResponse<T> = T & {
204
- /** @deprecated - we plan to add a different way to access raw response information shortly. */
205
- responseHeaders: Headers;
206
- };
207
254
  export declare const safeJSON: (text: string) => any;
208
255
  export declare const castToError: (err: any) => Error;
209
256
  export declare const ensurePresent: <T>(value: T | null | undefined) => T;
@@ -221,6 +268,7 @@ export declare const maybeCoerceFloat: (value: unknown) => number | undefined;
221
268
  export declare const maybeCoerceBoolean: (value: unknown) => boolean | undefined;
222
269
  export declare function isEmptyObj(obj: Object | null | undefined): boolean;
223
270
  export declare function hasOwn(obj: Object, key: string): boolean;
271
+ export declare function debug(action: string, ...args: any[]): void;
224
272
  export declare const isRunningInBrowser: () => boolean;
225
273
  export interface HeadersProtocol {
226
274
  get: (header: string) => string | null | undefined;
package/core.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","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