increase 0.6.0 → 0.7.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 (182) hide show
  1. package/CHANGELOG.md +275 -0
  2. package/LICENSE +201 -0
  3. package/README.md +243 -0
  4. package/_shims/formdata.node.d.ts +1 -0
  5. package/core.d.ts +9 -1
  6. package/core.d.ts.map +1 -1
  7. package/core.js +61 -18
  8. package/core.js.map +1 -1
  9. package/core.mjs +59 -18
  10. package/core.mjs.map +1 -1
  11. package/error.d.ts +17 -0
  12. package/error.d.ts.map +1 -1
  13. package/error.js +24 -0
  14. package/error.js.map +1 -1
  15. package/error.mjs +20 -0
  16. package/error.mjs.map +1 -1
  17. package/index.d.mts +13 -1
  18. package/index.d.ts +13 -1
  19. package/index.d.ts.map +1 -1
  20. package/index.js +11 -1
  21. package/index.js.map +1 -1
  22. package/index.mjs +8 -0
  23. package/index.mjs.map +1 -1
  24. package/package.json +2 -2
  25. package/resources/account-transfers.d.ts +14 -0
  26. package/resources/account-transfers.d.ts.map +1 -1
  27. package/resources/account-transfers.js.map +1 -1
  28. package/resources/account-transfers.mjs.map +1 -1
  29. package/resources/ach-transfers.d.ts +42 -1
  30. package/resources/ach-transfers.d.ts.map +1 -1
  31. package/resources/ach-transfers.js.map +1 -1
  32. package/resources/ach-transfers.mjs.map +1 -1
  33. package/resources/bookkeeping-entry-sets.d.ts +2 -2
  34. package/resources/card-profiles.d.ts +46 -0
  35. package/resources/card-profiles.d.ts.map +1 -1
  36. package/resources/card-profiles.js.map +1 -1
  37. package/resources/card-profiles.mjs.map +1 -1
  38. package/resources/check-transfers.d.ts +14 -0
  39. package/resources/check-transfers.d.ts.map +1 -1
  40. package/resources/check-transfers.js.map +1 -1
  41. package/resources/check-transfers.mjs.map +1 -1
  42. package/resources/declined-transactions.d.ts +5 -0
  43. package/resources/declined-transactions.d.ts.map +1 -1
  44. package/resources/declined-transactions.js.map +1 -1
  45. package/resources/declined-transactions.mjs.map +1 -1
  46. package/resources/entities/entities.d.ts +55 -10
  47. package/resources/entities/entities.d.ts.map +1 -1
  48. package/resources/entities/entities.js.map +1 -1
  49. package/resources/entities/entities.mjs.map +1 -1
  50. package/resources/files.d.ts +10 -9
  51. package/resources/files.d.ts.map +1 -1
  52. package/resources/files.js.map +1 -1
  53. package/resources/files.mjs.map +1 -1
  54. package/resources/pending-transactions.d.ts +10 -0
  55. package/resources/pending-transactions.d.ts.map +1 -1
  56. package/resources/pending-transactions.js.map +1 -1
  57. package/resources/pending-transactions.mjs.map +1 -1
  58. package/resources/real-time-decisions.d.ts +5 -0
  59. package/resources/real-time-decisions.d.ts.map +1 -1
  60. package/resources/real-time-decisions.js.map +1 -1
  61. package/resources/real-time-decisions.mjs.map +1 -1
  62. package/resources/real-time-payments-transfers.d.ts +14 -0
  63. package/resources/real-time-payments-transfers.d.ts.map +1 -1
  64. package/resources/real-time-payments-transfers.js.map +1 -1
  65. package/resources/real-time-payments-transfers.mjs.map +1 -1
  66. package/resources/simulations/ach-transfers.d.ts +5 -0
  67. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  68. package/resources/simulations/ach-transfers.js.map +1 -1
  69. package/resources/simulations/ach-transfers.mjs.map +1 -1
  70. package/resources/simulations/cards.d.ts +19 -0
  71. package/resources/simulations/cards.d.ts.map +1 -1
  72. package/resources/simulations/cards.js.map +1 -1
  73. package/resources/simulations/cards.mjs.map +1 -1
  74. package/resources/simulations/inbound-funds-holds.d.ts +74 -0
  75. package/resources/simulations/inbound-funds-holds.d.ts.map +1 -0
  76. package/resources/simulations/inbound-funds-holds.js +19 -0
  77. package/resources/simulations/inbound-funds-holds.js.map +1 -0
  78. package/resources/simulations/inbound-funds-holds.mjs +13 -0
  79. package/resources/simulations/inbound-funds-holds.mjs.map +1 -0
  80. package/resources/simulations/index.d.ts +1 -0
  81. package/resources/simulations/index.d.ts.map +1 -1
  82. package/resources/simulations/index.js +8 -0
  83. package/resources/simulations/index.js.map +1 -1
  84. package/resources/simulations/index.mjs +1 -0
  85. package/resources/simulations/index.mjs.map +1 -1
  86. package/resources/simulations/real-time-payments-transfers.d.ts +5 -0
  87. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  88. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  89. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  90. package/resources/simulations/simulations.d.ts +4 -0
  91. package/resources/simulations/simulations.d.ts.map +1 -1
  92. package/resources/simulations/simulations.js +3 -0
  93. package/resources/simulations/simulations.js.map +1 -1
  94. package/resources/simulations/simulations.mjs +3 -0
  95. package/resources/simulations/simulations.mjs.map +1 -1
  96. package/resources/wire-transfers.d.ts +14 -0
  97. package/resources/wire-transfers.d.ts.map +1 -1
  98. package/resources/wire-transfers.js.map +1 -1
  99. package/resources/wire-transfers.mjs.map +1 -1
  100. package/src/_shims/fileFromPath.node.ts +1 -1
  101. package/src/_shims/fileFromPath.ts +1 -1
  102. package/src/_shims/formdata.node.d.ts +1 -0
  103. package/src/_shims/getMultipartRequestOptions.node.ts +1 -1
  104. package/src/_shims/getMultipartRequestOptions.ts +1 -1
  105. package/src/core.ts +63 -18
  106. package/src/error.ts +40 -0
  107. package/src/index.ts +16 -1
  108. package/src/resources/account-numbers.ts +5 -5
  109. package/src/resources/account-statements.ts +5 -5
  110. package/src/resources/account-transfers.ts +22 -5
  111. package/src/resources/accounts.ts +5 -5
  112. package/src/resources/ach-prenotifications.ts +5 -5
  113. package/src/resources/ach-transfers.ts +50 -6
  114. package/src/resources/balance-lookups.ts +3 -3
  115. package/src/resources/bookkeeping-accounts.ts +5 -5
  116. package/src/resources/bookkeeping-entries.ts +5 -5
  117. package/src/resources/bookkeeping-entry-sets.ts +5 -5
  118. package/src/resources/card-disputes.ts +5 -5
  119. package/src/resources/card-profiles.ts +60 -5
  120. package/src/resources/cards.ts +5 -5
  121. package/src/resources/check-deposits.ts +5 -5
  122. package/src/resources/check-transfers.ts +22 -5
  123. package/src/resources/declined-transactions.ts +12 -6
  124. package/src/resources/digital-wallet-tokens.ts +5 -5
  125. package/src/resources/documents.ts +5 -5
  126. package/src/resources/entities/entities.ts +70 -15
  127. package/src/resources/entities/supplemental-documents.ts +5 -5
  128. package/src/resources/event-subscriptions.ts +5 -5
  129. package/src/resources/events.ts +5 -5
  130. package/src/resources/exports.ts +5 -5
  131. package/src/resources/external-accounts.ts +5 -5
  132. package/src/resources/files.ts +16 -15
  133. package/src/resources/groups.ts +3 -3
  134. package/src/resources/inbound-ach-transfer-returns.ts +5 -5
  135. package/src/resources/inbound-wire-drawdown-requests.ts +5 -5
  136. package/src/resources/limits.ts +5 -5
  137. package/src/resources/oauth-connections.ts +5 -5
  138. package/src/resources/pending-transactions.ts +18 -6
  139. package/src/resources/programs.ts +5 -5
  140. package/src/resources/real-time-decisions.ts +10 -4
  141. package/src/resources/real-time-payments-transfers.ts +22 -5
  142. package/src/resources/routing-numbers.ts +4 -4
  143. package/src/resources/simulations/account-statements.ts +4 -4
  144. package/src/resources/simulations/account-transfers.ts +3 -3
  145. package/src/resources/simulations/ach-transfers.ts +11 -5
  146. package/src/resources/simulations/card-disputes.ts +4 -4
  147. package/src/resources/simulations/card-profiles.ts +3 -3
  148. package/src/resources/simulations/card-refunds.ts +4 -4
  149. package/src/resources/simulations/cards.ts +28 -5
  150. package/src/resources/simulations/check-deposits.ts +3 -3
  151. package/src/resources/simulations/check-transfers.ts +3 -3
  152. package/src/resources/simulations/digital-wallet-token-requests.ts +3 -3
  153. package/src/resources/simulations/documents.ts +4 -4
  154. package/src/resources/simulations/inbound-funds-holds.ts +88 -0
  155. package/src/resources/simulations/inbound-wire-drawdown-requests.ts +4 -4
  156. package/src/resources/simulations/index.ts +1 -0
  157. package/src/resources/simulations/interest-payments.ts +3 -3
  158. package/src/resources/simulations/programs.ts +4 -4
  159. package/src/resources/simulations/real-time-payments-transfers.ts +11 -5
  160. package/src/resources/simulations/simulations.ts +7 -2
  161. package/src/resources/simulations/wire-transfers.ts +3 -3
  162. package/src/resources/transactions.ts +5 -5
  163. package/src/resources/wire-drawdown-requests.ts +5 -5
  164. package/src/resources/wire-transfers.ts +22 -5
  165. package/src/uploads.ts +11 -10
  166. package/src/version.ts +1 -1
  167. package/uploads.d.ts +2 -2
  168. package/uploads.d.ts.map +1 -1
  169. package/uploads.js +3 -2
  170. package/uploads.js.map +1 -1
  171. package/uploads.mjs +3 -2
  172. package/uploads.mjs.map +1 -1
  173. package/version.d.ts +1 -1
  174. package/version.js +1 -1
  175. package/version.mjs +1 -1
  176. package/src/streaming.ts +0 -204
  177. package/streaming.d.ts +0 -14
  178. package/streaming.d.ts.map +0 -1
  179. package/streaming.js +0 -155
  180. package/streaming.js.map +0 -1
  181. package/streaming.mjs +0 -151
  182. package/streaming.mjs.map +0 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,275 @@
1
+ # Changelog
2
+
3
+ ## [0.7.1](https://github.com/Increase/increase-node/compare/v0.7.0...v0.7.1) (2023-07-17)
4
+
5
+
6
+ ### Features
7
+
8
+ * **api:** add physical_card_id ([#67](https://github.com/Increase/increase-node/issues/67)) ([b1f92d3](https://github.com/Increase/increase-node/commit/b1f92d350b44e51a33a7053666ec1396996008c4))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * fix errors with "named" client export in CJS ([#70](https://github.com/Increase/increase-node/issues/70)) ([2000849](https://github.com/Increase/increase-node/commit/200084971efad026e0ae309356a2367fed1adc73))
14
+
15
+
16
+ ### Documentation
17
+
18
+ * **readme:** improvements to formatting code snippets ([#64](https://github.com/Increase/increase-node/issues/64)) ([f7b65e9](https://github.com/Increase/increase-node/commit/f7b65e9ffa990f686c5699bc1fef0ca5b6c7fbe6))
19
+
20
+
21
+ ### Chores
22
+
23
+ * **internal:** add helper function for b64 ([#68](https://github.com/Increase/increase-node/issues/68)) ([9ac500a](https://github.com/Increase/increase-node/commit/9ac500a1e7086e6eb2ef379d4d1cf7c7ae201c46))
24
+ * **internal:** let `toFile` helper accept promises to objects with name/type properties ([#69](https://github.com/Increase/increase-node/issues/69)) ([b167997](https://github.com/Increase/increase-node/commit/b16799783a94103de0bd64508975a01bfcc12f25))
25
+ * **internal:** remove unused streaming implementation ([#66](https://github.com/Increase/increase-node/issues/66)) ([264a739](https://github.com/Increase/increase-node/commit/264a739869652468ede2a9e6b7b42d616986b8aa))
26
+
27
+ ## [0.7.0](https://github.com/Increase/increase-node/compare/v0.6.0...v0.7.0) (2023-07-12)
28
+
29
+
30
+ ### ⚠ BREAKING CHANGES
31
+
32
+ * **api:** add unique_identifier, driver's license backs, inbound funds holds, and more ([#62](https://github.com/Increase/increase-node/issues/62))
33
+
34
+ ### Features
35
+
36
+ * **api:** add unique_identifier, driver's license backs, inbound funds holds, and more ([#62](https://github.com/Increase/increase-node/issues/62)) ([e253f9c](https://github.com/Increase/increase-node/commit/e253f9c102cf0dc6ae9a8d410edeb5d9acc2ca1a))
37
+ * **client:** add support for passing a `signal` request option ([#61](https://github.com/Increase/increase-node/issues/61)) ([a6f79cf](https://github.com/Increase/increase-node/commit/a6f79cfbd172c1389e614b88ea903fcfe976ba2d))
38
+ * **client:** improve timeout handling to reuse agent ([#53](https://github.com/Increase/increase-node/issues/53)) ([06559f9](https://github.com/Increase/increase-node/commit/06559f9aa0dce45009612658eca8741c2384fc2c))
39
+ * **client:** support passing a custom `fetch` function ([#57](https://github.com/Increase/increase-node/issues/57)) ([7d974fe](https://github.com/Increase/increase-node/commit/7d974fe8a82d8283165ac5f5c14ad7112dab9eda))
40
+
41
+
42
+ ### Bug Fixes
43
+
44
+ * **client:** properly handle multi-byte characters in Content-Length ([#58](https://github.com/Increase/increase-node/issues/58)) ([d75d738](https://github.com/Increase/increase-node/commit/d75d7384d40656252f0021f08083e6b77ea82f0a))
45
+ * **examples:** avoid swallowing errors in example scripts ([#55](https://github.com/Increase/increase-node/issues/55)) ([c21fb83](https://github.com/Increase/increase-node/commit/c21fb83ed08b5b4352d634bd10d12cf2b61e809e))
46
+ * fix errors in package source files when users go to definition in VSCode ([#52](https://github.com/Increase/increase-node/issues/52)) ([1eeacd4](https://github.com/Increase/increase-node/commit/1eeacd4a52545ab310d35c12698919b8a6312493))
47
+ * include README.md, LICENSE and CHANGELOG.md in published package ([#49](https://github.com/Increase/increase-node/issues/49)) ([e0e3baa](https://github.com/Increase/increase-node/commit/e0e3baa15f2b9001eebfdf3e5cb0f8749298dbcd))
48
+ * **streaming:** do not abort successfully completed streams ([#60](https://github.com/Increase/increase-node/issues/60)) ([1505b16](https://github.com/Increase/increase-node/commit/1505b16f45fd00a4e87a4ed38237bf51f02e7b32))
49
+ * **streaming:** fix response body streaming in non-Chrome environments ([#54](https://github.com/Increase/increase-node/issues/54)) ([f45d825](https://github.com/Increase/increase-node/commit/f45d8256456b25d3b153bb9b514e87ccec8c9b7a))
50
+ * **streaming:** polyfill ReadableStream async iterator and text decoding ([#48](https://github.com/Increase/increase-node/issues/48)) ([fd21d9a](https://github.com/Increase/increase-node/commit/fd21d9a8fa0388765ac97515b758c6ecaf0af140))
51
+ * support `PromiseLike` input to `toFile` ([#51](https://github.com/Increase/increase-node/issues/51)) ([af64015](https://github.com/Increase/increase-node/commit/af64015afd02218cc2053a52fbc0940ea3a7ad9b))
52
+
53
+
54
+ ### Chores
55
+
56
+ * **internal:** fix release please version config ([#46](https://github.com/Increase/increase-node/issues/46)) ([12ed2c6](https://github.com/Increase/increase-node/commit/12ed2c6687f50b35ab48fb60ae346831d9a02879))
57
+
58
+
59
+ ### Refactors
60
+
61
+ * improve streaming implementation ([#50](https://github.com/Increase/increase-node/issues/50)) ([1b19296](https://github.com/Increase/increase-node/commit/1b192961cfff15c17e1c2d05983ecb39234f3c51))
62
+ * **streaming:** make response body streaming polyfill more spec-compliant ([#56](https://github.com/Increase/increase-node/issues/56)) ([d98e28e](https://github.com/Increase/increase-node/commit/d98e28ef0c88ca27370a7b401219618472f49ee9))
63
+
64
+
65
+ ### Documentation
66
+
67
+ * **readme:** minor improvements ([#59](https://github.com/Increase/increase-node/issues/59)) ([7bc48c1](https://github.com/Increase/increase-node/commit/7bc48c174b070af513bf84d15e001670d6499270))
68
+
69
+ ## [0.6.0](https://github.com/Increase/increase-node/compare/v0.5.0...v0.6.0) (2023-07-07)
70
+
71
+
72
+ ### ⚠ BREAKING CHANGES
73
+
74
+ * **api:** add card profiles simulation method ([#42](https://github.com/Increase/increase-node/issues/42))
75
+ * import issue with ESM ([#37](https://github.com/Increase/increase-node/issues/37))
76
+
77
+ ### Features
78
+
79
+ * **api:** add card profiles simulation method ([#42](https://github.com/Increase/increase-node/issues/42)) ([a756866](https://github.com/Increase/increase-node/commit/a756866b4e3200ba8bef94149e99bf050b83cfcd))
80
+ * **client:** add support for `defaultQuery` option ([#35](https://github.com/Increase/increase-node/issues/35)) ([eae9716](https://github.com/Increase/increase-node/commit/eae971676c567cb7c1ddba31aae0155e778179d2))
81
+
82
+
83
+ ### Bug Fixes
84
+
85
+ * import issue with ESM ([#37](https://github.com/Increase/increase-node/issues/37)) ([c321dd8](https://github.com/Increase/increase-node/commit/c321dd8593b9c33eb0a3422474cfd66339da2741))
86
+
87
+
88
+ ### Refactors
89
+
90
+ * mark `.responseHeaders` and `.response` as deprecated ([#41](https://github.com/Increase/increase-node/issues/41)) ([54ca3fa](https://github.com/Increase/increase-node/commit/54ca3faf33ade035d6c2be8d6931286b2ca4a0b6))
91
+ * move to src directory, improve ecosystem compatibility ([#33](https://github.com/Increase/increase-node/issues/33)) ([7961453](https://github.com/Increase/increase-node/commit/7961453587e1df95b0739f481a10cb5773173046))
92
+
93
+
94
+ ### Chores
95
+
96
+ * **internal:** fix tsc usage ([#40](https://github.com/Increase/increase-node/issues/40)) ([5411f7e](https://github.com/Increase/increase-node/commit/5411f7ea3f4f21900f12fdd6ccf44989c7214493))
97
+ * set `noEmit: true` in `tsconfig.json`, since it's for typechecking only ([#43](https://github.com/Increase/increase-node/issues/43)) ([2d40060](https://github.com/Increase/increase-node/commit/2d40060684c161d8eb61fc7230d6887859a856be))
98
+
99
+
100
+ ### Documentation
101
+
102
+ * **api.md:** add context to types exported in a different resource ([#44](https://github.com/Increase/increase-node/issues/44)) ([7204785](https://github.com/Increase/increase-node/commit/72047859b486cc374a8d49781ce342090c79f264))
103
+ * **api.md:** fix links not referencing `src` directory ([#36](https://github.com/Increase/increase-node/issues/36)) ([35cccbe](https://github.com/Increase/increase-node/commit/35cccbe76b89d7e8debda7d96e8209623a856f55))
104
+ * **client:** improve documentation for client options ([#38](https://github.com/Increase/increase-node/issues/38)) ([2133c8e](https://github.com/Increase/increase-node/commit/2133c8ee1777d4af86d0abf57631a5194e3673f2))
105
+ * **types:** add documentation for enum members ([#39](https://github.com/Increase/increase-node/issues/39)) ([aeca9c3](https://github.com/Increase/increase-node/commit/aeca9c370994cf9634d0bcab9513e47ecdb25776))
106
+
107
+ ## [0.5.0](https://github.com/Increase/increase-node/compare/v0.4.0...v0.5.0) (2023-06-29)
108
+
109
+
110
+ ### ⚠ BREAKING CHANGES
111
+
112
+ * **api:** remove many enum members from document category ([#27](https://github.com/Increase/increase-node/issues/27))
113
+ * **types:** singularize array item types ([#25](https://github.com/Increase/increase-node/issues/25))
114
+
115
+ ### Features
116
+
117
+ * **api/types:** mark more check transfer intention properties as nullable ([#26](https://github.com/Increase/increase-node/issues/26)) ([324580e](https://github.com/Increase/increase-node/commit/324580e75db774e8ca3c6561e288c217915b7722))
118
+ * support ESM and web platform runtimes; easier file uploads ([#28](https://github.com/Increase/increase-node/issues/28)) ([1d53a8d](https://github.com/Increase/increase-node/commit/1d53a8dd26cfa10c36a1813a9e8d5a78697439e4))
119
+ * **types:** export nested types through the root client export ([#23](https://github.com/Increase/increase-node/issues/23)) ([c68b1ae](https://github.com/Increase/increase-node/commit/c68b1ae49b52828121c5042303d74dc10f2960fc))
120
+
121
+
122
+ ### Bug Fixes
123
+
124
+ * **form-data:** strip out undefined properties ([#21](https://github.com/Increase/increase-node/issues/21)) ([dd73783](https://github.com/Increase/increase-node/commit/dd73783b3541ff86ac53e22f397d53a87872f925))
125
+
126
+
127
+ ### Refactors
128
+
129
+ * **api:** remove `other` from reason enum ([#24](https://github.com/Increase/increase-node/issues/24)) ([5d7206a](https://github.com/Increase/increase-node/commit/5d7206a911039f9f2b8c8f40db589777afbad113))
130
+ * **api:** remove many enum members from document category ([#27](https://github.com/Increase/increase-node/issues/27)) ([ddcd780](https://github.com/Increase/increase-node/commit/ddcd7807953bc64a4e9f055bb9cd1a671554eaa5))
131
+ * **types:** singularize array item types ([#25](https://github.com/Increase/increase-node/issues/25)) ([bb00a48](https://github.com/Increase/increase-node/commit/bb00a48c7c6aee72593c9e79decc9a4127873587))
132
+
133
+
134
+ ### Styles
135
+
136
+ * minor reordering of types and properties ([#29](https://github.com/Increase/increase-node/issues/29)) ([0e6dbc5](https://github.com/Increase/increase-node/commit/0e6dbc537b6a5ff9464de3f3ce2c164f00b79680))
137
+
138
+
139
+ ### Chores
140
+
141
+ * speed up build script slightly ([#30](https://github.com/Increase/increase-node/issues/30)) ([b8ad73c](https://github.com/Increase/increase-node/commit/b8ad73c54aacb5a582826a4d8cfb594f3e1450ee))
142
+
143
+
144
+ ### Documentation
145
+
146
+ * rearrange sections in api.md ([#31](https://github.com/Increase/increase-node/issues/31)) ([a8859f4](https://github.com/Increase/increase-node/commit/a8859f4fcca63820dc3568f7fd9c5a8c5b79c445))
147
+
148
+ ## [0.4.0](https://github.com/Increase/increase-node/compare/v0.3.0...v0.4.0) (2023-06-19)
149
+
150
+
151
+ ### ⚠ BREAKING CHANGES
152
+
153
+ * drop official support for EOL Node versions (Node 12, 13, 14, 15) ([#18](https://github.com/Increase/increase-node/issues/18))
154
+ * **api:** rename return reason enum member ([#12](https://github.com/Increase/increase-node/issues/12))
155
+ * change nested query parameters to be objects ([#8](https://github.com/Increase/increase-node/issues/8))
156
+
157
+
158
+ ### Features
159
+ * **client:** add support for specifying client-level default headers ([#5](https://github.com/Increase/increase-node/issues/5)) ([609c71a](https://github.com/Increase/increase-node/commit/609c71a7f657ec14fba3fa919d8b0dd4ff1ecb5d))
160
+ * **api:** add new endpoints + properties + enums ([#9](https://github.com/Increase/increase-node/issues/9)) ([8fd90c4](https://github.com/Increase/increase-node/commit/8fd90c4b8a50ce9f5a23cc17ee71508df6e34eca))
161
+
162
+
163
+ ### Bug Fixes
164
+
165
+ * **internal:** improve stream cancellation handling of abort controllers ([#17](https://github.com/Increase/increase-node/issues/17)) ([e8f15dd](https://github.com/Increase/increase-node/commit/e8f15dd5c2001dd6b3023266a2471c019ed96739))
166
+
167
+
168
+ ### Chores
169
+
170
+ * **internal:** improve SSE decoding of lines ([#14](https://github.com/Increase/increase-node/issues/14)) ([74b9bdc](https://github.com/Increase/increase-node/commit/74b9bdcaa44639cd99865d8a2701a2232314f0fd))
171
+ * **internal:** restructure core streaming implementation ([#7](https://github.com/Increase/increase-node/issues/7)) ([b97964b](https://github.com/Increase/increase-node/commit/b97964bd5e22ed7ce4ffdd8e4a8fe5005db40976))
172
+
173
+
174
+ ### Refactors
175
+
176
+ * **api:** remove unused properties and enum members ([#16](https://github.com/Increase/increase-node/issues/16)) ([51c8ab5](https://github.com/Increase/increase-node/commit/51c8ab5e5415d722768af8c53c5c8453398545a6))
177
+ * change nested query parameters to be objects ([#8](https://github.com/Increase/increase-node/issues/8)) ([fdcd3a4](https://github.com/Increase/increase-node/commit/fdcd3a47ff31cece47a646853086f9d9e024720c))
178
+ * **api:** rename return reason enum member ([#12](https://github.com/Increase/increase-node/issues/12)) ([51ba5d4](https://github.com/Increase/increase-node/commit/51ba5d42e07dbde522cf7ff49863fc0935c350bb))
179
+ * **docs:** cleanup api.md response types ([539848e](https://github.com/Increase/increase-node/commit/539848e9001e424f9492f60d82cfb861316cfcb2))
180
+ * move error type definitions to error.ts ([#15](https://github.com/Increase/increase-node/issues/15)) ([e50a9a1](https://github.com/Increase/increase-node/commit/e50a9a1f43e107ae989306f73f210e6b88493d60))
181
+
182
+
183
+ ### Documentation
184
+
185
+ * drop official support for EOL Node versions (Node 12, 13, 14, 15) ([#18](https://github.com/Increase/increase-node/issues/18)) ([f3be71b](https://github.com/Increase/increase-node/commit/f3be71b1191f72a6785f6be07dcf79b45b9640ac))
186
+ * point to github repo instead of email contact ([#13](https://github.com/Increase/increase-node/issues/13)) ([72d7fef](https://github.com/Increase/increase-node/commit/72d7fef408e625906e2ec59c29b9a63ea5a9d64c))
187
+ * slight improvement to file uploads example ([#10](https://github.com/Increase/increase-node/issues/10)) ([b134725](https://github.com/Increase/increase-node/commit/b1347253a900c1af41a66363bc225a2b09a9e4c3))
188
+
189
+
190
+ ### Build System
191
+
192
+ * add `.github` folder to `.npmignore` ([#19](https://github.com/Increase/increase-node/issues/19)) ([a263289](https://github.com/Increase/increase-node/commit/a263289da32b5e0d708c5c21a92a6a58faf74abc))
193
+
194
+ ## [0.3.0](https://github.com/Increase/increase-node/compare/increase-v0.2.0...increase-v0.3.0) (2023-05-31)
195
+
196
+
197
+ ### ⚠ BREAKING CHANGES
198
+
199
+ * **api:** `notification_of_change` has been removed in favor of the new `notifications_of_change` list field
200
+
201
+ ### Features
202
+
203
+ * add additional coercion functions ([5f106bf](https://github.com/Increase/increase-node/commit/5f106bf9d3e0ee1c5b5fc81d112677e2c7580b82))
204
+ * add internal support for streaming responses ([a1c321e](https://github.com/Increase/increase-node/commit/a1c321edc8fd648c9f318e047db5dafb7e37eabe))
205
+ * add internal support for streaming responses ([a1c321e](https://github.com/Increase/increase-node/commit/a1c321edc8fd648c9f318e047db5dafb7e37eabe))
206
+ * add webhook HMAC verification helper methods ([7a00853](https://github.com/Increase/increase-node/commit/7a00853a03b5b606df2c5c9095c53db2a4957af8))
207
+ * **api:** add `at_time` property for balance lookups ([0b6c0de](https://github.com/Increase/increase-node/commit/0b6c0de8d25b04fb95b16d902d90d116d617af76))
208
+ * **api:** add `collection_receivable` to transaction source category enum ([e743cc9](https://github.com/Increase/increase-node/commit/e743cc9ad5855d7c16b2c1f3a1a41dc06581d01d))
209
+ * **api:** add `expires_at` property ([c257707](https://github.com/Increase/increase-node/commit/c2577077bd280793bedf9ff8f802017784da7468))
210
+ * **api:** add `simulations.checkTransfers.return()` method ([e7d330a](https://github.com/Increase/increase-node/commit/e7d330ab5d899ed2305530c0f23fe1fe36eee1a8))
211
+ * **api:** add `simulations.checkTransfers.return()` method ([e7d330a](https://github.com/Increase/increase-node/commit/e7d330ab5d899ed2305530c0f23fe1fe36eee1a8))
212
+ * **api:** add bookkeeping accounts, entries, and entry sets, and several other changes ([d63d4e7](https://github.com/Increase/increase-node/commit/d63d4e71e0d10e70f8d9257ff3ad903b41c64fbe))
213
+ * **api:** add new endpoints ([7d4ebe6](https://github.com/Increase/increase-node/commit/7d4ebe6f0a38e7fade250ece8e50c8d9f6c6d653))
214
+ * **api:** add new endpoints, several params, fields, enum members, and documentation updates ([8ffb013](https://github.com/Increase/increase-node/commit/8ffb0130a53a90c5b00c314850f33bc5af4cb070))
215
+ * **api:** add new enum members ([0785f7a](https://github.com/Increase/increase-node/commit/0785f7a13f2c7194ed3f9f940a34b262c6b25027))
216
+ * **api:** add new fields ([3d9c69b](https://github.com/Increase/increase-node/commit/3d9c69bddf970739f0b91eb4962a058e9ee756c8))
217
+ * **api:** add new methods ([ca41987](https://github.com/Increase/increase-node/commit/ca41987401784ddb2266bd1a32b08f2f58864ceb))
218
+ * **api:** add optional `pending_transaction_id` field to pending transaction ([fa011e7](https://github.com/Increase/increase-node/commit/fa011e7adb44fb954efa3024b01f88aab3d789ed))
219
+ * **api:** add wire decline object ([2d2e77e](https://github.com/Increase/increase-node/commit/2d2e77eaf2c7244d7491153f32f70aae537a62c9))
220
+ * **api:** enum updates ([f09e25a](https://github.com/Increase/increase-node/commit/f09e25a7e4683beb2779fd76a46c2c629414810b))
221
+ * **api:** make routeType an enum & add ACHTransfer.effectiveDate ([77fd8ea](https://github.com/Increase/increase-node/commit/77fd8ea44236307fb6a8e7d464db55f8e3ba5fd9))
222
+ * **api:** make routeType an enum & add ACHTransfer.effectiveDate ([77fd8ea](https://github.com/Increase/increase-node/commit/77fd8ea44236307fb6a8e7d464db55f8e3ba5fd9))
223
+ * **api:** replace notification_of_change with a list, and add merchant_acceptor_id ([831e49e](https://github.com/Increase/increase-node/commit/831e49e0d1fbf8dd57ea204d89b1be2d69d1ee75))
224
+ * **api:** updates ([ad907d5](https://github.com/Increase/increase-node/commit/ad907d5bf9f6fd2ffe7c8fb89c884d5ba0065593))
225
+ * **api:** updates ([ca80997](https://github.com/Increase/increase-node/commit/ca80997fc7397066ac6149e8db65d6541bf012de))
226
+ * **api:** updates ([ca80997](https://github.com/Increase/increase-node/commit/ca80997fc7397066ac6149e8db65d6541bf012de))
227
+ * **api:** updates ([651bf76](https://github.com/Increase/increase-node/commit/651bf7670c167ffc41eb40c0e226fc76062a4305))
228
+ * **api:** updates ([e58e324](https://github.com/Increase/increase-node/commit/e58e3241015e95afac62550f5b0f1d152dba999b))
229
+ * **client:** handle trailing slash in base url properly ([a03d867](https://github.com/Increase/increase-node/commit/a03d86797fa71036cc45b241a1de1b5edb82e416))
230
+ * **docs:** add more doc comments ([b8bc790](https://github.com/Increase/increase-node/commit/b8bc790a3e06fa3b8a9e6a5299c9e8e1db0b671d))
231
+ * **docs:** updates ([6cea39c](https://github.com/Increase/increase-node/commit/6cea39cd892b2fdae5b7b2a171f9acbcab0e6f62))
232
+ * improve docs and add new property ([418fe83](https://github.com/Increase/increase-node/commit/418fe831af1fcb216ea938930a956b6f1d3083d7))
233
+ * improve error types ([db09c19](https://github.com/Increase/increase-node/commit/db09c19c6017817aba695bffd29c63cf5e31f5f3))
234
+ * improve error types ([db09c19](https://github.com/Increase/increase-node/commit/db09c19c6017817aba695bffd29c63cf5e31f5f3))
235
+ * **internal:** add support for positional params ([9cafda3](https://github.com/Increase/increase-node/commit/9cafda3db2f6d124839dabd66e4997826384d197))
236
+ * **internal:** add support for positional params ([9cafda3](https://github.com/Increase/increase-node/commit/9cafda3db2f6d124839dabd66e4997826384d197))
237
+ * **internal:** improve example generation ([e0fa5b3](https://github.com/Increase/increase-node/commit/e0fa5b3a5654d032d0ff98964ed055a27be4c5e7))
238
+ * **internal:** improve example generation ([e0fa5b3](https://github.com/Increase/increase-node/commit/e0fa5b3a5654d032d0ff98964ed055a27be4c5e7))
239
+ * **internal:** internal fixes ([4848450](https://github.com/Increase/increase-node/commit/4848450f8a0cbfa465097b154ccf866766146490))
240
+ * **internal:** internal fixes ([4848450](https://github.com/Increase/increase-node/commit/4848450f8a0cbfa465097b154ccf866766146490))
241
+ * **internal:** re-export `fileFromPath` helper util from the root ([09c0c79](https://github.com/Increase/increase-node/commit/09c0c795a42f8f15ae6008aa8e6baaaa22261dc2))
242
+ * **internal:** re-export `fileFromPath` helper util from the root ([09c0c79](https://github.com/Increase/increase-node/commit/09c0c795a42f8f15ae6008aa8e6baaaa22261dc2))
243
+ * send Idempotency-Key by default for POST requests ([4c15f76](https://github.com/Increase/increase-node/commit/4c15f76c2f04b92e0dd99045f4f801013c105afc))
244
+ * send Idempotency-Key by default for POST requests ([4c15f76](https://github.com/Increase/increase-node/commit/4c15f76c2f04b92e0dd99045f4f801013c105afc))
245
+ * **tsconfig:** set declarationMap: true ([50c755f](https://github.com/Increase/increase-node/commit/50c755f0f5df98074094175e71670d4f45366fb4))
246
+ * **tsconfig:** set declarationMap: true ([50c755f](https://github.com/Increase/increase-node/commit/50c755f0f5df98074094175e71670d4f45366fb4))
247
+ * update docs ([facb322](https://github.com/Increase/increase-node/commit/facb322b04c7951ea764b7db610902812cf5a7be))
248
+
249
+
250
+ ### Bug Fixes
251
+
252
+ * allow importing in typescript without manually installing @types/web ([d802d9e](https://github.com/Increase/increase-node/commit/d802d9e0d145e1b183d476b47764a48f0de08497))
253
+ * bump @types/node version ([7915638](https://github.com/Increase/increase-node/commit/7915638b2e4302a5ed0b9adc024916fccde742c4))
254
+ * change unknown type generation to `interface{}` ([532c5ec](https://github.com/Increase/increase-node/commit/532c5ec12522300e92b4a05f731f8911a6afd3ec))
255
+ * change unknown type generation to `interface{}` ([532c5ec](https://github.com/Increase/increase-node/commit/532c5ec12522300e92b4a05f731f8911a6afd3ec))
256
+ * **client:** properly expose `maxRetries` option ([dfdce20](https://github.com/Increase/increase-node/commit/dfdce20b7a485d0f15182546f47ae340c6280ae7))
257
+ * **internal:** fix TS error when setting global AbortController polyfill ([00c0df8](https://github.com/Increase/increase-node/commit/00c0df83c4ad058271e7207db244ed12c3fe856d))
258
+ * **internal:** fix TS error when setting global AbortController polyfill ([00c0df8](https://github.com/Increase/increase-node/commit/00c0df83c4ad058271e7207db244ed12c3fe856d))
259
+ * polyfill AbortController more safely ([71e0db3](https://github.com/Increase/increase-node/commit/71e0db32ccd0073e052edf6b33bd170e6c5bf7c8))
260
+ * polyfill AbortController more safely ([71e0db3](https://github.com/Increase/increase-node/commit/71e0db32ccd0073e052edf6b33bd170e6c5bf7c8))
261
+ * **sse:** handle server-sent events more robustly ([8dddf91](https://github.com/Increase/increase-node/commit/8dddf917c64db1623b7f4c756539abfe67ab4dd0))
262
+
263
+
264
+ ### Reverts
265
+
266
+ * remove `crypto` module import ([b82e4b7](https://github.com/Increase/increase-node/commit/b82e4b7b2755d9ae1556a0d2bb9d5f30218e56fd))
267
+ * remove `crypto` module import ([b82e4b7](https://github.com/Increase/increase-node/commit/b82e4b7b2755d9ae1556a0d2bb9d5f30218e56fd))
268
+
269
+
270
+ ### Refactors
271
+
272
+ * **docs:** cleanup api.md response types ([539848e](https://github.com/Increase/increase-node/commit/539848e9001e424f9492f60d82cfb861316cfcb2))
273
+ * remove ability to read the api key from the environment ([3051874](https://github.com/Increase/increase-node/commit/30518740b1c8226ee79d959febb32b517631d0bd))
274
+ * reorganize pagination class definitions ([972a30e](https://github.com/Increase/increase-node/commit/972a30e58fb19c4e46d38dddd2b2acd1288f1e36))
275
+ * reorganize pagination class definitions ([972a30e](https://github.com/Increase/increase-node/commit/972a30e58fb19c4e46d38dddd2b2acd1288f1e36))
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2023 Increase
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.