box-node-sdk 3.2.1 → 3.4.0
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.
- package/CHANGELOG.md +558 -0
- package/lib/api-request-manager.js +3 -1
- package/lib/api-request-manager.js.map +1 -1
- package/lib/api-request.d.ts +3 -4
- package/lib/api-request.js +3 -3
- package/lib/api-request.js.map +1 -1
- package/lib/box-node-sdk.d.ts +5 -5
- package/lib/box-node-sdk.js.map +1 -1
- package/lib/util/config.js +1 -0
- package/lib/util/config.js.map +1 -1
- package/package.json +3 -11
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,558 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
|
+
|
|
5
|
+
## [3.4.0](https://github.com/box/box-node-sdk/compare/v3.3.0...v3.4.0) (2023-11-03)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### New Features and Enhancements
|
|
9
|
+
|
|
10
|
+
* Add request option to skip `PassThrough` ([#863](https://github.com/box/box-node-sdk/issues/863)) ([726db45](https://github.com/box/box-node-sdk/commit/726db45cfbb992e545fe2865283df63c898656ac))
|
|
11
|
+
|
|
12
|
+
## [3.3.0](https://github.com/box/box-node-sdk/compare/v3.2.1...v3.3.0) (2023-10-26)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### New Features and Enhancements
|
|
16
|
+
|
|
17
|
+
* Replace `request` library with `@cypress/request` ([#860](https://github.com/box/box-node-sdk/issues/860)) ([d365ae8](https://github.com/box/box-node-sdk/commit/d365ae8368c549ecdceb7dd5b928904fd3c58978))
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* mark auth funs callbacks as optional ([#858](https://github.com/box/box-node-sdk/issues/858)) ([55f22fe](https://github.com/box/box-node-sdk/commit/55f22fec7d7d35e487f3fb51bc9bbd3e848842ab))
|
|
22
|
+
|
|
23
|
+
### [3.2.1](https://github.com/box/box-node-sdk/compare/v3.2.0...v3.2.1) (2023-10-06)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* Overrides tough-cookie dependency ([#852](https://github.com/box/box-node-sdk/issues/852)) ([99df873](https://github.com/box/box-node-sdk/commit/99df873e1a1dad4a0073d53b4ed57c0eeb859401))
|
|
29
|
+
|
|
30
|
+
## [3.2.0](https://github.com/box/box-node-sdk/compare/v3.1.1...v3.2.0) (2023-09-07)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### New Features and Enhancements
|
|
34
|
+
|
|
35
|
+
* Support sign template ([#848](https://github.com/box/box-node-sdk/issues/848)) ([18d3413](https://github.com/box/box-node-sdk/commit/18d3413afeddf43c62dfd0caf1279e61c99b6b83))
|
|
36
|
+
|
|
37
|
+
### [3.1.1](https://github.com/box/box-node-sdk/compare/v3.1.0...v3.1.1) (2023-07-19)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
## [3.1.0](https://github.com/box/box-node-sdk/compare/v3.0.0...v3.1.0) (2023-06-01)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### New Features and Enhancements
|
|
44
|
+
|
|
45
|
+
* Added support for integration mappings API ([#831](https://github.com/box/box-node-sdk/issues/831)) ([a525327](https://github.com/box/box-node-sdk/commit/a525327c1362628a0ffdb36cb4bf3346ca0e0153))
|
|
46
|
+
|
|
47
|
+
### Bug Fixes
|
|
48
|
+
|
|
49
|
+
* Correct types of `userId` and `groupId` for creating collaboration ([#833](https://github.com/box/box-node-sdk/issues/833)) ([f803ff8](https://github.com/box/box-node-sdk/commit/f803ff82330fd78a8dc4875452a21aab54686b2e)), closes [#832](https://github.com/box/box-node-sdk/issues/832)
|
|
50
|
+
|
|
51
|
+
## [3.0.0](https://github.com/box/box-node-sdk/compare/v2.10.0...v3.0.0) (2023-05-23)
|
|
52
|
+
|
|
53
|
+
The most important change in this release is **dropping support for Node versions below 12** and changing the **support environments from Node 12 to Node 16**.
|
|
54
|
+
|
|
55
|
+
### Breaking Changes
|
|
56
|
+
|
|
57
|
+
- Removed `use_index` usage. ([#812](https://github.com/box/box-node-sdk/pull/812)) ([d56799a](https://github.com/box/box-node-sdk/commit/d56799a61f42265d7785f99e92a449c58d125aef))
|
|
58
|
+
- Removed deprecated `BoxClient.batch()` and `BoxClient.batchExec()` method.
|
|
59
|
+
- Removed deprecated `CollaborationWhitelist` class, use `CollaborationAllowlist` instead.
|
|
60
|
+
- Removed deprecated `CollaborationAllowlist.getWhitelistedDomain()` method, use `CollaborationAllowlist.getAllowlistedDomain()` instead.
|
|
61
|
+
- Removed deprecated `CollaborationAllowlist.getAllWhitelistedDomains()` method, use `CollaborationAllowlist.getAllAllowlistedDomains()` instead.
|
|
62
|
+
- Remove deprecated `Files.getThumbnail(fileID: string, options?: Record<string, any>, callback?: Function)` method, use `Files.getRepresentationContent( fileID, representationType, options, callback)` instead.
|
|
63
|
+
|
|
64
|
+
Migration details can be found [here](https://github.com/box/box-node-sdk/blob/v3.0.0/docs/upgrade/2.x.x%20to%203.x.x.md)
|
|
65
|
+
|
|
66
|
+
### Dependency Upgrades
|
|
67
|
+
- Bumped `jsonwebtoken` from 8.5.1 to 9.0.0. ([#802](https://github.com/box/box-node-sdk/pull/802)) ([5b1d4e9](https://github.com/box/box-node-sdk/pull/828/commits/5b1d4e9ec557c14c1d27695733cc0bcae49061cb))
|
|
68
|
+
- Bumped `vm2` from 3.9.11 to 3.9.19 ([#826](https://github.com/box/box-node-sdk/pull/826)) ([220df76](https://github.com/box/box-node-sdk/commit/220df765080bc27c91daed51ac46620f6bc8b9ed))
|
|
69
|
+
|
|
70
|
+
## [2.10.0](https://github.com/box/box-node-sdk/compare/v2.9.0...v2.10.0) (2023-05-11)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
### New Features and Enhancements
|
|
74
|
+
|
|
75
|
+
* Added support for ethical wall API ([#822](https://github.com/box/box-node-sdk/issues/822)) ([4814af3](https://github.com/box/box-node-sdk/commit/4814af35c1741fbfe3fa03f8f0412ade8b38dfcc))
|
|
76
|
+
* Added `name` and `signature_color` fields to `SignRequest` and `SignRequestCreateRequest` types and `login_required` field to `SignRequestCreateSigner` type ([#822](https://github.com/box/box-node-sdk/issues/822)) ([4814af3](https://github.com/box/box-node-sdk/commit/4814af35c1741fbfe3fa03f8f0412ade8b38dfcc))
|
|
77
|
+
|
|
78
|
+
## [2.9.0](https://github.com/box/box-node-sdk/compare/v2.8.1...v2.9.0) (2023-04-19)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
### New Features and Enhancements
|
|
82
|
+
|
|
83
|
+
* New fields in `retention-policy` and `retention-policy-assignment` ([#803](https://github.com/box/box-node-sdk/issues/803)) ([f14ba84](https://github.com/box/box-node-sdk/commit/f14ba84013985513854ad396581d085d1d4f0255))
|
|
84
|
+
|
|
85
|
+
### Bug Fixes
|
|
86
|
+
|
|
87
|
+
* return empty object when `tos` status is not present ([#797](https://github.com/box/box-node-sdk/issues/797)) ([12fd9b0](https://github.com/box/box-node-sdk/commit/12fd9b053707471722f53cd1760c8cf59451fe8d))
|
|
88
|
+
|
|
89
|
+
### [2.8.1](https://github.com/box/box-node-sdk/compare/v2.8.0...v2.8.1) (2023-01-05)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### Bug Fixes
|
|
93
|
+
|
|
94
|
+
* Fix `getReadStream` delay reading ([#790](https://github.com/box/box-node-sdk/issues/790)) ([6bfc1ee](https://github.com/box/box-node-sdk/commit/6bfc1eebeb9a31606ff96127eeb1ad03d2f13d9c))
|
|
95
|
+
|
|
96
|
+
## [2.8.0](https://github.com/box/box-node-sdk/compare/v2.7.2...v2.8.0) (2022-12-21)
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
### New Features and Enhancements
|
|
100
|
+
|
|
101
|
+
* Session termination ([#782](https://github.com/box/box-node-sdk/issues/782)) ([7fb56c6](https://github.com/box/box-node-sdk/commit/7fb56c625f8eb03e6a5354b67a0debfd9e4ad7c8))
|
|
102
|
+
|
|
103
|
+
### [2.7.2](https://github.com/box/box-node-sdk/compare/v2.7.1...v2.7.2) (2022-11-10)
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### Bug Fixes
|
|
107
|
+
|
|
108
|
+
* Add `fields` query parameter to file and folder update ([#776](https://github.com/box/box-node-sdk/issues/776)) ([a327deb](https://github.com/box/box-node-sdk/commit/a327debc83d98a4190a5a16cf848417ea5714db9))
|
|
109
|
+
|
|
110
|
+
### [2.7.1](https://github.com/box/box-node-sdk/compare/v2.7.0...v2.7.1) (2022-10-28)
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
### Bug Fixes
|
|
114
|
+
|
|
115
|
+
* Export missing `RetentionType` ([#774](https://github.com/box/box-node-sdk/issues/774)) ([7e6b244](https://github.com/box/box-node-sdk/commit/7e6b244ba63d363ecc921be570140c9e1ed1d032))
|
|
116
|
+
|
|
117
|
+
## [2.7.0](https://github.com/box/box-node-sdk/compare/v2.6.0...v2.7.0) (2022-10-27)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
### New Features and Enhancements
|
|
121
|
+
|
|
122
|
+
* Add support for modifiable retention policies & enable deleting retention policy assignment ([#769](https://github.com/box/box-node-sdk/issues/769)) ([5e8c776](https://github.com/box/box-node-sdk/commit/5e8c776fc94e9dcf313cc15c96e42fbffaf36b74))
|
|
123
|
+
|
|
124
|
+
## [2.6.0](https://github.com/box/box-node-sdk/compare/v2.5.0...v2.6.0) (2022-09-23)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
### New Features and Enhancements
|
|
128
|
+
|
|
129
|
+
* Add `content_type`, `redirect_url` field to Sign Request ([#758](https://github.com/box/box-node-sdk/issues/758)) ([8abb9b6](https://github.com/box/box-node-sdk/commit/8abb9b602b13cd72c6c8de549d19756ae147b403))
|
|
130
|
+
* Add sign request webhook ([#760](https://github.com/box/box-node-sdk/issues/760)) ([e92d1ab](https://github.com/box/box-node-sdk/commit/e92d1abee5faf58166f4892d7b2e6bc3c6480ac6))
|
|
131
|
+
* Added support for Access Only Collaboration ([#759](https://github.com/box/box-node-sdk/issues/759)) ([dd8261f](https://github.com/box/box-node-sdk/commit/dd8261f970c207854058c3ed86ccabf9bec05ea8))
|
|
132
|
+
|
|
133
|
+
## [2.5.0](https://github.com/box/box-node-sdk/compare/v2.4.0...v2.5.0) (2022-08-09)
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
### New Features and Enhancements
|
|
137
|
+
|
|
138
|
+
* Added support update and remove user avatar ([#744](https://github.com/box/box-node-sdk/issues/744)) ([aaf6175](https://github.com/box/box-node-sdk/commit/aaf617528de5c61e19cfb25e28fe77c01532b9fa))
|
|
139
|
+
|
|
140
|
+
### Bug Fixes
|
|
141
|
+
|
|
142
|
+
* Fix error while generate token using oauth ([#750](https://github.com/box/box-node-sdk/issues/750)) ([f826291](https://github.com/box/box-node-sdk/commit/f82629108a1af6c4d160de1976fd01fdf0d8dde3)), closes [#286](https://github.com/box/box-node-sdk/issues/286)
|
|
143
|
+
* Fix lint error in test file ([#747](https://github.com/box/box-node-sdk/issues/747)) ([3b1e10d](https://github.com/box/box-node-sdk/commit/3b1e10d206aa88a8bf99989bb7ff85776a9864a4))
|
|
144
|
+
|
|
145
|
+
## [2.4.0](https://github.com/box/box-node-sdk/compare/v2.3.0...v2.4.0) (2022-07-13)
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
### New Features and Enhancements
|
|
149
|
+
|
|
150
|
+
* Added support for file requests ([#742](https://github.com/box/box-node-sdk/issues/742)) ([30b2e76](https://github.com/box/box-node-sdk/commit/30b2e767c6c3af68e1463cc801914f9889dc593c))
|
|
151
|
+
* Added support of `admin_logs_streaming` stream type ([#740](https://github.com/box/box-node-sdk/issues/740)) ([406950a](https://github.com/box/box-node-sdk/commit/406950a03af54a022427e0532e889a61e0d25152))
|
|
152
|
+
|
|
153
|
+
### Bug Fixes
|
|
154
|
+
|
|
155
|
+
* properly handle client errors in streams ([#736](https://github.com/box/box-node-sdk/issues/736)) ([12378d6](https://github.com/box/box-node-sdk/commit/12378d6755c2e3cddcb79439cdcbbe8e1e61df13))
|
|
156
|
+
|
|
157
|
+
## [2.3.0](https://github.com/box/box-node-sdk/compare/v2.2.0...v2.3.0) (2022-04-28)
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
### New Features and Enhancements
|
|
161
|
+
|
|
162
|
+
* Add `description` parameter to `uploadFile` methods ([#730](https://github.com/box/box-node-sdk/issues/730)) ([2596584](https://github.com/box/box-node-sdk/commit/2596584dffb44c1995c8b6b3faa67564f4d32499))
|
|
163
|
+
|
|
164
|
+
### Bug Fixes
|
|
165
|
+
|
|
166
|
+
* added missing `js-docs` on shared links ([#731](https://github.com/box/box-node-sdk/issues/731)) ([3554d41](https://github.com/box/box-node-sdk/commit/3554d41d9050e7a81224c35e3e2e257604a0b41b))
|
|
167
|
+
|
|
168
|
+
## [2.2.0](https://github.com/box/box-node-sdk/compare/v2.1.0...v2.2.0) (2022-04-20)
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
### New Features and Enhancements
|
|
172
|
+
|
|
173
|
+
* editable shared links ([#722](https://github.com/box/box-node-sdk/issues/722)) ([f0c0135](https://github.com/box/box-node-sdk/commit/f0c0135511fde46144e6c496432104321af443f6))
|
|
174
|
+
|
|
175
|
+
## [2.1.0](https://github.com/box/box-node-sdk/compare/v2.0.0...v2.1.0) (2022-03-28)
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
### New Features and Enhancements
|
|
179
|
+
|
|
180
|
+
* Client Credentials Grant authentication method ([#709](https://github.com/box/box-node-sdk/issues/709)) ([fbf4e80](https://github.com/box/box-node-sdk/commit/fbf4e80648821e38479b24bf489e7d222ae6c18f))
|
|
181
|
+
* Deprecating `index_name` when executing metadata query ([#686](https://github.com/box/box-node-sdk/issues/686)) ([e01cc65](https://github.com/box/box-node-sdk/commit/e01cc650e4e793955be543e93928ad82a3254492))
|
|
182
|
+
* **test:** add support for testing with Jest ([#676](https://github.com/box/box-node-sdk/issues/676)) ([1a11759](https://github.com/box/box-node-sdk/commit/1a11759db999510c69d6a27f7becd565620bb000))
|
|
183
|
+
|
|
184
|
+
### Bug Fixes
|
|
185
|
+
|
|
186
|
+
* Client Credentials Grant authentication method supports token down-scoping ([#710](https://github.com/box/box-node-sdk/issues/710)) ([730368f](https://github.com/box/box-node-sdk/commit/730368f410ff56e9a8c90feea2192b29c08df198))
|
|
187
|
+
* Fix JWT expiration field being float instead of integer ([#715](https://github.com/box/box-node-sdk/issues/715)) ([7e950f1](https://github.com/box/box-node-sdk/commit/7e950f1265a52ce251c42a186c8196089a9ed858)), closes [#713](https://github.com/box/box-node-sdk/issues/713)
|
|
188
|
+
|
|
189
|
+
## [2.0.0](https://github.com/box/box-node-sdk/compare/v1.39.0...v2.0.0) (2021-09-29)
|
|
190
|
+
|
|
191
|
+
### ⚠ BREAKING CHANGES
|
|
192
|
+
|
|
193
|
+
* Drop support for Node 6,7 ([#670](https://github.com/box/box-node-sdk/pull/670))
|
|
194
|
+
|
|
195
|
+
### New Features and Enhancements:
|
|
196
|
+
|
|
197
|
+
* Add support for is_external_collab_restricted User property ([#668](https://github.com/box/box-node-sdk/pull/668))
|
|
198
|
+
* Bump proxy-agent from 4.0.0 to 5.0.0 ([#664](https://github.com/box/box-node-sdk/pull/664))
|
|
199
|
+
|
|
200
|
+
## [1.39.0](https://github.com/box/box-node-sdk/compare/v1.38.0...v1.39.0) (2021-08-30)
|
|
201
|
+
|
|
202
|
+
### New Features and Enhancements:
|
|
203
|
+
|
|
204
|
+
* Add support for Box Sign API ([#658](https://github.com/box/box-node-sdk/pull/658))
|
|
205
|
+
* Enhance TS Imports ([#656](https://github.com/box/box-node-sdk/pull/656))
|
|
206
|
+
|
|
207
|
+
## [1.38.0](https://github.com/box/box-node-sdk/compare/v1.37.2...v1.38.0) (2021-08-05)
|
|
208
|
+
|
|
209
|
+
### New Features and Enhancements:
|
|
210
|
+
|
|
211
|
+
* Add sensitive-language event types for admin invites ([#648](https://github.com/box/box-node-sdk/pull/648))
|
|
212
|
+
* Use BetterDocs to adapt JSDocs to TypeScript ([#646](https://github.com/box/box-node-sdk/pull/646))
|
|
213
|
+
* Change ProxyAgent import to be dynamic ([#641](https://github.com/box/box-node-sdk/pull/641))
|
|
214
|
+
* New API for get files and file versions under retention ([#585](https://github.com/box/box-node-sdk/pull/585))
|
|
215
|
+
|
|
216
|
+
### Bug Fixes:
|
|
217
|
+
|
|
218
|
+
* Deeply freeze Config except Buffers and Readable streams ([#651](https://github.com/box/box-node-sdk/pull/651))
|
|
219
|
+
* Fix a typo in docs of src/managers/search.ts ([#649](https://github.com/box/box-node-sdk/pull/649))
|
|
220
|
+
* Update broken documentation link ([#647](https://github.com/box/box-node-sdk/pull/647))
|
|
221
|
+
* fix type annotations for exchangeToken functions ([#645](https://github.com/box/box-node-sdk/pull/645))
|
|
222
|
+
* Deprecate files getThumbnail API in favor of getRepresentationContent ([#627](https://github.com/box/box-node-sdk/pull/627))
|
|
223
|
+
|
|
224
|
+
## [1.37.2](https://github.com/box/box-node-sdk/compare/v1.37.1...v1.37.2) (2021-05-20)
|
|
225
|
+
|
|
226
|
+
### Bug Fixes:
|
|
227
|
+
|
|
228
|
+
* Fix backwards compatibility issue by moving some TypeScript @types as direct dependencies ([#630](https://github.com/box/box-node-sdk/pull/630))
|
|
229
|
+
|
|
230
|
+
## [1.37.1](https://github.com/box/box-node-sdk/compare/v1.37.0..v1.37.1) (2021-05-19)
|
|
231
|
+
|
|
232
|
+
### Bug Fixes:
|
|
233
|
+
|
|
234
|
+
* Insensitive language: replace whitelist with allowlist ([#625](https://github.com/box/box-node-sdk/pull/625))
|
|
235
|
+
|
|
236
|
+
## [1.37.0](https://github.com/box/box-node-sdk/compare/v1.36.0...v1.37.0) (2021-04-16)
|
|
237
|
+
|
|
238
|
+
### New Features and Enhancements:
|
|
239
|
+
|
|
240
|
+
* Add support for copyInstanceOnItemCopy field for metadata templates ([#572](https://github.com/box/box-node-sdk/pull/572))
|
|
241
|
+
|
|
242
|
+
### Bug Fixes:
|
|
243
|
+
|
|
244
|
+
* Fix webhook signature validation ([#568](https://github.com/box/box-node-sdk/pull/568))
|
|
245
|
+
* Update dependencies to patch security vulnerabilities ([#578](https://github.com/box/box-node-sdk/pull/578))
|
|
246
|
+
|
|
247
|
+
## [1.36.0](https://github.com/box/box-node-sdk/compare/v1.35.0...v1.36.0) (2021-01-27)
|
|
248
|
+
|
|
249
|
+
### New Features and Enhancements:
|
|
250
|
+
|
|
251
|
+
* Add folder lock functionality ([#560](https://github.com/box/box-node-sdk/pull/560))
|
|
252
|
+
* Add support for filtering groups by name ([#561](https://github.com/box/box-node-sdk/pull/561))
|
|
253
|
+
|
|
254
|
+
### Bug Fixes:
|
|
255
|
+
|
|
256
|
+
* Update proxy-agent to patch proxy support issue ([#563](https://github.com/box/box-node-sdk/pull/563))
|
|
257
|
+
* Update dependencies to patch security vulnerabilities ([#566](https://github.com/box/box-node-sdk/pull/566))
|
|
258
|
+
|
|
259
|
+
## [1.35.0](https://github.com/box/box-node-sdk/compare/v1.34.3...v1.35.0) (2020-11-02)
|
|
260
|
+
|
|
261
|
+
### New Features and Enhancements:
|
|
262
|
+
|
|
263
|
+
* Add support for search param to get shared link items ([#547](https://github.com/box/box-node-sdk/pull/547))
|
|
264
|
+
|
|
265
|
+
## [1.34.3](https://github.com/box/box-node-sdk/compare/v1.34.2...v1.34.3) (2020-10-02)
|
|
266
|
+
|
|
267
|
+
### Bug Fixes:
|
|
268
|
+
|
|
269
|
+
* Upgrade ajv dependency ([#545](https://github.com/box/box-node-sdk/pull/545))
|
|
270
|
+
|
|
271
|
+
## [1.34.2](https://github.com/box/box-node-sdk/compare/v1.34.1...v1.34.2) (2020-08-20)
|
|
272
|
+
|
|
273
|
+
* Make iterator bug fix for uploading files non breaking ([#534](https://github.com/box/box-node-sdk/pull/534))
|
|
274
|
+
|
|
275
|
+
## [1.34.1](https://github.com/box/box-node-sdk/compare/v1.34.0...v1.34.1) (2020-08-17)
|
|
276
|
+
|
|
277
|
+
* Fix iterator bug for uploading new file versions ([#531](https://github.com/box/box-node-sdk/pull/531))
|
|
278
|
+
|
|
279
|
+
## [1.34.0](https://github.com/box/box-node-sdk/compare/v1.33.0...v1.34.0) (2020-08-04)
|
|
280
|
+
|
|
281
|
+
* Add zip functionality ([#525](https://github.com/box/box-node-sdk/pull/525))
|
|
282
|
+
* Add proxy support for `http`, `https`, `socks` and `pac` protocols ([#529](https://github.com/box/box-node-sdk/pull/529))
|
|
283
|
+
|
|
284
|
+
## [1.33.0](https://github.com/box/box-node-sdk/compare/v1.32.0...v1.33.0) (2020-06-25)
|
|
285
|
+
|
|
286
|
+
* Add path parameter sanitization ([#505](https://github.com/box/box-node-sdk/pull/505))
|
|
287
|
+
* Add support for all streams for uploading files ([#519](https://github.com/box/box-node-sdk/pull/519))
|
|
288
|
+
|
|
289
|
+
## [1.32.0](https://github.com/box/box-node-sdk/compare/v1.31.0...v1.32.0) (2020-04-01)
|
|
290
|
+
|
|
291
|
+
* Temporarily removed Node 4 and Node 5 builds from Travis, due to tests not passing. Will investigate, going forward ([#495](https://github.com/box/box-node-sdk/pull/495)).
|
|
292
|
+
* Fixed an issue where an error is thrown during a retry when a response is not returned by the previous call ([#477](https://github.com/box/box-node-sdk/pull/477)).
|
|
293
|
+
* Added the ability to [query](./docs/metadata.md#query) Box items based on their metadata ([#487](https://github.com/box/box-node-sdk/pull/487)).
|
|
294
|
+
|
|
295
|
+
## [1.31.0](https://github.com/box/box-node-sdk/compare/v1.30.0...v1.31.0) (2020-02-13)
|
|
296
|
+
|
|
297
|
+
* Fixed Authentication Request Retries
|
|
298
|
+
* Added marker-based paging for users endpoints
|
|
299
|
+
* Added `getNextMarker()` to PagingIterator to get the next marker
|
|
300
|
+
|
|
301
|
+
## [1.30.0](https://github.com/box/box-node-sdk/compare/v1.29.1...v1.30.0) (2019-11-21)
|
|
302
|
+
|
|
303
|
+
* Deprecated Batch API methods
|
|
304
|
+
* Added support for [token exchange](./lib/box-client.js#L495) using shared links
|
|
305
|
+
|
|
306
|
+
## [1.29.1](https://github.com/box/box-node-sdk/compare/v1.29.0...v1.29.1) (2019-08-22)
|
|
307
|
+
|
|
308
|
+
* Fixed an issue where JWT authentication requests could fail after being rate limited
|
|
309
|
+
|
|
310
|
+
## [1.29.0](https://github.com/box/box-node-sdk/compare/v1.28.0...v1.29.0) (2019-04-25)
|
|
311
|
+
|
|
312
|
+
* Added convenience methods for setting metadata on [files](./docs/metadata.md#set-metadata-on-a-file)
|
|
313
|
+
and [folders](./docs/metadata.md#set-metadata-on-a-folder) ([#376](https://github.com/box/box-node-sdk/pull/376))
|
|
314
|
+
|
|
315
|
+
## [1.28.0](https://github.com/box/box-node-sdk/compare/v1.27.0...v1.28.0) (2019-03-28)
|
|
316
|
+
|
|
317
|
+
* Added methods for [moving](./docs/web-links.md#move-a-web-link) and [copying](./docs/web-links.md#move-a-web-link)
|
|
318
|
+
weblinks, as well as [adding or removing from a collection](./docs/web-links.md#add-web-link-to-a-collection)
|
|
319
|
+
|
|
320
|
+
## [1.27.0](https://github.com/box/box-node-sdk/compare/v1.26.2...v1.27.0) (2019-02-28)
|
|
321
|
+
|
|
322
|
+
* Added the trace ID from API response headers to error messages for easier debugging
|
|
323
|
+
* Added more safety checks in the error flow to protect against throwing when handling a malformed request
|
|
324
|
+
* Added support for [retrieving a user's avatar image](./docs/users.md#get-user-avatar)
|
|
325
|
+
|
|
326
|
+
## [1.26.2](https://github.com/box/box-node-sdk/compare/v1.26.1...v1.26.2) (2019-02-22)
|
|
327
|
+
|
|
328
|
+
* Fixed an error where under high request rates, code in the error handling logic could throw when handling a
|
|
329
|
+
malformed request
|
|
330
|
+
|
|
331
|
+
## [1.26.1](https://github.com/box/box-node-sdk/compare/v1.26.0...v1.26.1) (2019-02-12)
|
|
332
|
+
|
|
333
|
+
* Fixed an error where some methods could throw an error when constructing an iterator
|
|
334
|
+
|
|
335
|
+
## [1.26.0](https://github.com/box/box-node-sdk/compare/v1.25.0...v1.26.0) (2019-02-12)
|
|
336
|
+
|
|
337
|
+
* Added support for [replying to a comment](./docs/comments.md#reply-to-a-comment) (thanks @jpan-box!)
|
|
338
|
+
* Fixed an issue where calling `client.events.get()` could return an iterator that would only iterate over
|
|
339
|
+
the first chunk of events. This method will now always return the raw JSON data in order to enable manual
|
|
340
|
+
paging. For automatic paging through events, `client.events.getEventStream()` or
|
|
341
|
+
`client.events.getEnterpriseEventStream()` should be used instead.
|
|
342
|
+
|
|
343
|
+
## [1.25.0](https://github.com/box/box-node-sdk/compare/v1.24.1...v1.25.0) (2019-01-24)
|
|
344
|
+
|
|
345
|
+
* Added the `retryStrategy` config parameter to allow customizing how the SDK retries failing requests
|
|
346
|
+
|
|
347
|
+
## [1.24.1](https://github.com/box/box-node-sdk/compare/v1.24.0...v1.24.1) (2019-01-11)
|
|
348
|
+
|
|
349
|
+
* Fixed an issue where token expiration was not being correctly handled
|
|
350
|
+
|
|
351
|
+
## [1.24.0](https://github.com/box/box-node-sdk/compare/v1.23.0...v1.24.0) (2018-12-10)
|
|
352
|
+
|
|
353
|
+
* Added a configuration option for populating the first-party client analytics header information
|
|
354
|
+
|
|
355
|
+
## [1.23.0](https://github.com/box/box-node-sdk/compare/vA...v1.23.0) (2018-11-21)
|
|
356
|
+
|
|
357
|
+
* Added an `etag` option to common file and folder methods to allow handling race conditions
|
|
358
|
+
* [`client.files.update()`](./docs/files.md#update-a-files-information)
|
|
359
|
+
* [`client.files.delete()`](./docs/files.md#delete-a-file)
|
|
360
|
+
* [`client.files.deletePermanently()`](./docs/trash.md#delete-a-file-from-the-trash)
|
|
361
|
+
* [`client.files.deleteVersion()`](./docs/files.md#delete-a-previous-file-version)
|
|
362
|
+
* [`client.folders.update()`](./docs/folders.md#update-a-folders-information)
|
|
363
|
+
* [`client.folders.delete()`](./docs/folders.md#delete-a-folder)
|
|
364
|
+
* [`client.folders.deletePermanently()`](./docs/trash.md#delete-a-folder-from-the-trash)
|
|
365
|
+
|
|
366
|
+
## [1.22.1](https://github.com/box/box-node-sdk/compare/v1.22.0...v1.22.1) (2018-11-15)
|
|
367
|
+
|
|
368
|
+
* Fixed an issue where retrying JWT auth token requests would sometimes fail due to a non-unique `jti` claim
|
|
369
|
+
|
|
370
|
+
## [1.22.0](https://github.com/box/box-node-sdk/compare/v1.21.0...v1.22.0) (2018-09-17)
|
|
371
|
+
|
|
372
|
+
* Chunked Uploader methods now return promises for [simpler handling of chunked uploads](./docs/files.md#automatic-uploader)
|
|
373
|
+
* File attributes to set on the newly-uploaded file can now be
|
|
374
|
+
[passed via `options.fileAttributes`](./docs/files.md#automatic-uploader) when creating a Chunked Uploader
|
|
375
|
+
|
|
376
|
+
## [1.21.0](https://github.com/box/box-node-sdk/compare/v1.20.0...v1.21.0) (2018-09-13)
|
|
377
|
+
|
|
378
|
+
* Added the ability to close an Event Stream by calling `eventStream.destroy()` (thanks @boneskull!)
|
|
379
|
+
* Improved error messages related to certain authentication failure cases
|
|
380
|
+
|
|
381
|
+
## [1.20.0](https://github.com/box/box-node-sdk/compare/v1.19.0...v1.20.0) (2018-08-09)
|
|
382
|
+
|
|
383
|
+
* Added missing values to the `client.webhooks.triggerTypes` enum (thanks @MathersMax!)
|
|
384
|
+
* Added support for [Metadata Cascade Policies](./docs/metadata.md#create-cascade-policy)
|
|
385
|
+
|
|
386
|
+
## [1.19.0](https://github.com/box/box-node-sdk/compare/v1.18.0...v1.19.0) (2018-06-14)
|
|
387
|
+
|
|
388
|
+
* Added `generateRepresentations` option to [`files.getRepresentationContent()`](./docs/files.md#get-representation-content)
|
|
389
|
+
|
|
390
|
+
## [1.18.0](https://github.com/box/box-node-sdk/compare/v1.17.0...v1.18.0) (2018-05-24)
|
|
391
|
+
|
|
392
|
+
* Updated dependencies to resolve potential security issues:
|
|
393
|
+
* `request@2.87.0`
|
|
394
|
+
* Transitive dependencies of `jsonwebtoken@8.2.1`
|
|
395
|
+
* Added a static `BoxSDK.getBasicClient()` method to enable creating a client without needing
|
|
396
|
+
to specify a client ID and secret (thanks to @cbetta)
|
|
397
|
+
|
|
398
|
+
## [1.17.0](https://github.com/box/box-node-sdk/compare/v1.16.1...v1.17.0) (2018-05-10)
|
|
399
|
+
|
|
400
|
+
* Updated dependencies: `request@2.85.0`, `jsonwebtoken@8.2.1`
|
|
401
|
+
* Added support for [Storage Policies](./docs/storage-policies.md)
|
|
402
|
+
* Added the option to use a Token Store for caching tokens with App Auth using JWT
|
|
403
|
+
|
|
404
|
+
## [1.16.1](https://github.com/box/box-node-sdk/compare/v1.16.0...v1.16.1) (2018-04-26)
|
|
405
|
+
|
|
406
|
+
* Fixed a bug where metadata template deletion would not properly return results via callback
|
|
407
|
+
|
|
408
|
+
## [1.16.0](https://github.com/box/box-node-sdk/compare/v1.15.0...v1.16.0) (2018-04-10)
|
|
409
|
+
|
|
410
|
+
* Added support for [assigning Retention Policies to Metadata Templates](https://github.com/box/box-node-sdk/blob/main/docs/retention-policies.md#assign-retention-policy)
|
|
411
|
+
|
|
412
|
+
## [1.15.0](https://github.com/box/box-node-sdk/compare/v1.14.1...v1.15.0) (2018-03-29)
|
|
413
|
+
|
|
414
|
+
* Fixed [`client.webhooks.validateMessage() and `sdk.validateWebhookMessage()`](https://github.com/box/box-node-sdk/blob/main/docs/webhooks.md#validate-a-webhook-message)
|
|
415
|
+
to accept the request body as an `Object`
|
|
416
|
+
* Fixed `sdk.configure()` to correct reconfigure all options
|
|
417
|
+
* Improved error messages for API errors and added the request object as `error.request` for easier debugging
|
|
418
|
+
|
|
419
|
+
## [1.14.1](https://github.com/box/box-node-sdk/compare/v1.14.0...v1.14.1) (2018-03-13)
|
|
420
|
+
|
|
421
|
+
* Fixed a bug when `files.getReadStream()` was called with null options
|
|
422
|
+
|
|
423
|
+
## [1.14.0](https://github.com/box/box-node-sdk/compare/v1.13.0...v1.14.0) (2018-03-12)
|
|
424
|
+
|
|
425
|
+
* Added support for [getting a metadata template by ID](./docs/metadata.md#get-by-id)
|
|
426
|
+
* Added a `byteRange` option to [file download](./docs/files.md#download-a-file) to support partial file download
|
|
427
|
+
* Improved error messages when using promises and in authentication flows
|
|
428
|
+
|
|
429
|
+
## [1.13.0](https://github.com/box/box-node-sdk/compare/v1.12.1...v1.13.0) (2018-03-01)
|
|
430
|
+
|
|
431
|
+
* Added support for getting a [stream of file representation contents](./docs/files.md#get-representation-content)
|
|
432
|
+
* Switched to using exponential backoff for request retries
|
|
433
|
+
|
|
434
|
+
## [1.12.1](https://github.com/box/box-node-sdk/compare/v1.12.0...v1.12.1) (2018-01-25)
|
|
435
|
+
|
|
436
|
+
* Fixed an issue where chunked uploader would not work with response streams from the request library
|
|
437
|
+
(0e7014561f9cd0f7f38f98536b3f0c3946231d2e)
|
|
438
|
+
|
|
439
|
+
## [1.12.0](https://github.com/box/box-node-sdk/compare/v1.11.0...v1.12.0) (2018-01-11)
|
|
440
|
+
|
|
441
|
+
* Added support for [metadata template deletion](./docs/metadata.md#delete-metadata-template)
|
|
442
|
+
|
|
443
|
+
## [1.11.0](https://github.com/box/box-node-sdk/compare/v1.10.1...v1.11.0) (2017-12-12)
|
|
444
|
+
|
|
445
|
+
* Added options to preserve file timestamps on [file upload](./docs/files.md#upload-a-file)
|
|
446
|
+
and to rename a file or preserve modification timestamp on [new version upload](./docs/files.md#upload-a-new-version-of-a-file)
|
|
447
|
+
* Added [Collaboration Whitelist](./docs/collaboration-whitelist.md) functionality to allow enterprise admins
|
|
448
|
+
to control which external users can collaborate on their content
|
|
449
|
+
* Added an option to Token Exchange to generate [annotator tokens](./docs/authentication.md#annotator-tokens) for use with Box View
|
|
450
|
+
|
|
451
|
+
## [1.10.1](https://github.com/box/box-node-sdk/compare/v1.10.0...v1.10.1) (2017-11-28)
|
|
452
|
+
|
|
453
|
+
* Updated to jsonwebtoken@8.1.0 to fix an issue where some users were getting
|
|
454
|
+
an error when using App Auth
|
|
455
|
+
|
|
456
|
+
## [1.10.0](https://github.com/box/box-node-sdk/compare/v1.9.0...v1.10.0) (2017-01-14)
|
|
457
|
+
|
|
458
|
+
* Added support for [Terms of Service](./docs/terms-of-service.md) endpoints
|
|
459
|
+
* Fixed a bug where receiving a collection without paging parameters from the API
|
|
460
|
+
would cause the SDK to throw an exception when using the `iterators` SDK option.
|
|
461
|
+
Now, this will return an iterator over the items returned by the API.
|
|
462
|
+
* Fixed a bug in Token Exchange where passing multiple scopes would result in an error
|
|
463
|
+
* Added support for [getting Representations info on a file](./docs/files.md#get-representation-info)
|
|
464
|
+
|
|
465
|
+
## [1.9.0](https://github.com/box/box-node-sdk/compare/v1.8.0...v1.9.0) (2017-09-12)
|
|
466
|
+
|
|
467
|
+
* Fixed token methods to return bluebird Promises instead of native Promises
|
|
468
|
+
* Added support for the `notify` and `can_view_path` options on Collaborations
|
|
469
|
+
|
|
470
|
+
## [1.8.0](https://github.com/box/box-node-sdk/compare/v1.7.0...v1.8.0) (2017-08-21)
|
|
471
|
+
|
|
472
|
+
* Added support for [Batch API](./docs/client.md#batch-api)
|
|
473
|
+
* Fixed a bug where the Event Stream would make more API calls than necessary,
|
|
474
|
+
potentially hitting Box API rate limits
|
|
475
|
+
* Added Promise support to methods on the SDK object
|
|
476
|
+
* Added Node.js version to the User-Agent header that the SDK sends
|
|
477
|
+
* Fixed a bug where using multiple Persistent Clients instances could cause some
|
|
478
|
+
clients to end up with expired tokens
|
|
479
|
+
|
|
480
|
+
## [1.7.0](https://github.com/box/box-node-sdk/compare/v1.6.0...v1.7.0) (2017-07-19)
|
|
481
|
+
|
|
482
|
+
* Add support for passing IP to all token methods, and fixed a bug where a client's IP was not being correctly reported on token refreshes
|
|
483
|
+
|
|
484
|
+
## [1.6.0](https://github.com/box/box-node-sdk/compare/v1.5.1...v1.6.0) (2017-06-23)
|
|
485
|
+
|
|
486
|
+
* Added [Recent Items](./docs/recent-items.md) support
|
|
487
|
+
* Updated app auth expiration time default value and validation
|
|
488
|
+
|
|
489
|
+
## [1.5.1](https://github.com/box/box-node-sdk/compare/v1.5.0...v1.5.1) (2017-06-15)
|
|
490
|
+
|
|
491
|
+
* Revert deep-freezing Config properties, since it was causing errors
|
|
492
|
+
|
|
493
|
+
## [1.5.0](https://github.com/box/box-node-sdk/compare/v1.4.2...v1.5.0) (2017-06-15)
|
|
494
|
+
|
|
495
|
+
* Added support for [Token Exchange](./docs/authentication.md#token-exchange),
|
|
496
|
+
which allows a client to get downscoped tokens suitable for passing to a browser
|
|
497
|
+
app or worker process.
|
|
498
|
+
* Ensured deeply-nested Config properties are immutable
|
|
499
|
+
|
|
500
|
+
## [1.4.2](https://github.com/box/box-node-sdk/compare/v1.4.1...v1.4.2) (2017-05-22)
|
|
501
|
+
|
|
502
|
+
* Fixed `BoxSDK.getPreconfiguredInstance()` to configure webhook keys
|
|
503
|
+
|
|
504
|
+
## [1.4.1](https://github.com/box/box-node-sdk/compare/v1.4.0...v1.4.1) (2017-05-22)
|
|
505
|
+
|
|
506
|
+
* Fixed `BoxSDK.getPreconfiguredInstance()` when app auth setttings are not populated
|
|
507
|
+
|
|
508
|
+
## [1.4.0](https://github.com/box/box-node-sdk/compare/v1.3.0...v1.4.0) (2017-05-19)
|
|
509
|
+
|
|
510
|
+
* Added support for [file collaborations](./docs/collaborations.md#add-a-collaboration).
|
|
511
|
+
Users can now invite others to collaborate on single files.
|
|
512
|
+
See [the blog post](https://blog.box.com/blog/file-collaboration-api/) for more information.
|
|
513
|
+
* Fixed an issue where users were unable to use JWT Server Auth when their computers' clocks
|
|
514
|
+
were not synchronized with the Box API servers.
|
|
515
|
+
* All asynchronous client methods now return Promises in addition to taking a
|
|
516
|
+
(now-optional) callback parameter, so you can write more modern JS with the SDK.
|
|
517
|
+
* The SDK can now be preconfigured using a JSON blob that can be downloaded in the
|
|
518
|
+
Box Dev Console for JWT Server Authentication apps, making it easier to get started
|
|
519
|
+
developing!
|
|
520
|
+
* Added support for [chunked upload](./docs/files.md#chunked-upload), where a large
|
|
521
|
+
file can be uploaded one piece at a time. This makes large file uploads much faster
|
|
522
|
+
and more reliable, since parts can be uploaded in parallel and failed parts can be
|
|
523
|
+
retried in isolation.
|
|
524
|
+
* Added an `is_confirmed` option to [email alias creation](./docs/users.md#add-email-alias) for
|
|
525
|
+
admins to auto-confirm the alias.
|
|
526
|
+
* Added support for the [Enterprise Events stream](./docs/events.md#enterprise-events).
|
|
527
|
+
* Added an option to have collections methods (e.g. `folders.getItems()`,
|
|
528
|
+
`enterprise.getUsers()`, etc) return [async iterators](./README.md#iterators) that will automatically
|
|
529
|
+
page through the collection. This conforms to the [proposed async iteration spec](https://github.com/tc39/proposal-async-iteration),
|
|
530
|
+
which will eventually allow them to be used in ergonomic for-await-of loop syntax.
|
|
531
|
+
|
|
532
|
+
## [1.3.0](https://github.com/box/box-node-sdk/compare/v1.2.0...v1.3.0) (2017-01-24)
|
|
533
|
+
|
|
534
|
+
* Added `BoxSDK.validateWebhookMessage()` and `client.webhooks.validateMessage()` for validating webhook messages from Box
|
|
535
|
+
|
|
536
|
+
## [1.2.0](https://github.com/box/box-node-sdk/compare/v1.1.0...v1.2.0) (2016-12-12)
|
|
537
|
+
|
|
538
|
+
* Added methods for all API endpoints; we now have full API coverage :tada:
|
|
539
|
+
* Added support for renaming a file or folder on copy
|
|
540
|
+
* Added `client.asUser(userID)` and `client.asSelf()` to support making calls on behalf of managed users
|
|
541
|
+
* Fixed event streams so they don't go into an infinite error loop when auth expires
|
|
542
|
+
* Fixed an error where App Auth clients would not be able to authorize due to clock skew
|
|
543
|
+
* Fixed the `mdfilters` parameter in `client.search.query()` to support metadata search
|
|
544
|
+
* Cloned options objects to prevent modification of passed-in objects by the SDK
|
|
545
|
+
* Added better error messaging to the sample app
|
|
546
|
+
|
|
547
|
+
## [1.1.0](https://github.com/box/box-node-sdk/compare/v1.0.0...v1.1.0) (2016-09-27)
|
|
548
|
+
|
|
549
|
+
* Added endpoint to get a file's tasks
|
|
550
|
+
* Fixed issues with stream uploads
|
|
551
|
+
* Improved performance of file uploads
|
|
552
|
+
* Added endpoints to delete files and folders from trash
|
|
553
|
+
* Added endpoint to get a trashed folder
|
|
554
|
+
* Upgraded request dependency to fix ReDoS vulnerability
|
|
555
|
+
|
|
556
|
+
## [1.0.0] (2016-07-13)
|
|
557
|
+
|
|
558
|
+
Initial release.
|
|
@@ -66,7 +66,9 @@ var APIRequestManager = /** @class */ (function () {
|
|
|
66
66
|
// available before we can pipe it to the pass-through stream.
|
|
67
67
|
// If the stream is undefined, then the request failed and we should
|
|
68
68
|
// propagate the error.
|
|
69
|
-
if (stream
|
|
69
|
+
if (stream &&
|
|
70
|
+
requestConfig.disableStreamPassThrough !== true &&
|
|
71
|
+
options.disableStreamPassThrough !== true) {
|
|
70
72
|
var passThrough = new stream_1.PassThrough();
|
|
71
73
|
stream.pipe(passThrough);
|
|
72
74
|
return passThrough;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-request-manager.js","sourceRoot":"","sources":["../src/api-request-manager.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;AAEH,iFAAiF;AACjF,eAAe;AACf,iFAAiF;AAEjF,qCAAmC;AAEnC,yDAAmC;AACnC,iCAAqC;
|
|
1
|
+
{"version":3,"file":"api-request-manager.js","sourceRoot":"","sources":["../src/api-request-manager.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;AAEH,iFAAiF;AACjF,eAAe;AACf,iFAAiF;AAEjF,qCAAmC;AAEnC,yDAAmC;AACnC,iCAAqC;AAErC,IAAM,UAAU,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AAQ5C,iFAAiF;AACjF,UAAU;AACV,iFAAiF;AAEjF,iFAAiF;AACjF,SAAS;AACT,iFAAiF;AAEjF;;;;;;GAMG;AACH;IAIC,2BAAY,MAAc,EAAE,QAAsB;QACjD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC1B,CAAC;IAED;;;;;OAKG;IACH,uCAAW,GAAX,UAAY,OAAY,CAAC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ib/api-request.d.ts
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
/// <reference types="node" />
|
|
5
5
|
/// <reference types="node" />
|
|
6
6
|
import { EventEmitter } from 'events';
|
|
7
|
-
import request from 'request';
|
|
8
7
|
import Config from './util/config';
|
|
9
8
|
/**
|
|
10
9
|
* The API response object includes information about the request made and its response. The information attached is a subset
|
|
@@ -81,8 +80,8 @@ declare class APIRequest {
|
|
|
81
80
|
eventBus: EventEmitter;
|
|
82
81
|
isRetryable: boolean;
|
|
83
82
|
_callback?: APIRequestCallback;
|
|
84
|
-
request?:
|
|
85
|
-
stream?:
|
|
83
|
+
request?: any;
|
|
84
|
+
stream?: any;
|
|
86
85
|
numRetries?: number;
|
|
87
86
|
constructor(config: Config, eventBus: EventEmitter);
|
|
88
87
|
/**
|
|
@@ -101,7 +100,7 @@ declare class APIRequest {
|
|
|
101
100
|
*
|
|
102
101
|
* @returns {?ReadableStream} The response stream
|
|
103
102
|
*/
|
|
104
|
-
getResponseStream():
|
|
103
|
+
getResponseStream(): any;
|
|
105
104
|
/**
|
|
106
105
|
* Handle the request response in the callback case.
|
|
107
106
|
*
|
package/lib/api-request.js
CHANGED
|
@@ -14,9 +14,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
var assert_1 = __importDefault(require("assert"));
|
|
15
15
|
var events_1 = require("events");
|
|
16
16
|
var http_status_1 = __importDefault(require("http-status"));
|
|
17
|
-
var request_1 = __importDefault(require("request"));
|
|
18
17
|
var config_1 = __importDefault(require("./util/config"));
|
|
19
18
|
var exponential_backoff_1 = __importDefault(require("./util/exponential-backoff"));
|
|
19
|
+
var request = require('@cypress/request');
|
|
20
20
|
// ------------------------------------------------------------------------------
|
|
21
21
|
// Private
|
|
22
22
|
// ------------------------------------------------------------------------------
|
|
@@ -136,10 +136,10 @@ var APIRequest = /** @class */ (function () {
|
|
|
136
136
|
if (!asyncRequestTimer) {
|
|
137
137
|
asyncRequestTimer = process.hrtime();
|
|
138
138
|
}
|
|
139
|
-
this.request = (
|
|
139
|
+
this.request = request(this.config.request, this._handleResponse.bind(this));
|
|
140
140
|
}
|
|
141
141
|
else {
|
|
142
|
-
this.request = (
|
|
142
|
+
this.request = request(this.config.request);
|
|
143
143
|
this.stream = this.request;
|
|
144
144
|
this.stream.on('error', function (err) {
|
|
145
145
|
_this.eventBus.emit('response', err);
|
package/lib/api-request.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-request.js","sourceRoot":"","sources":["../src/api-request.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;AAEH,sGAAsG;AACtG,mGAAmG;AACnG,+EAA+E;AAE/E,iFAAiF;AACjF,eAAe;AACf,iFAAiF;AAEjF,kDAA4B;AAC5B,iCAAsC;AACtC,4DAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"api-request.js","sourceRoot":"","sources":["../src/api-request.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;AAEH,sGAAsG;AACtG,mGAAmG;AACnG,+EAA+E;AAE/E,iFAAiF;AACjF,eAAe;AACf,iFAAiF;AAEjF,kDAA4B;AAC5B,iCAAsC;AACtC,4DAA0C;AAC1C,yDAAmC;AACnC,mFAAyD;AAEzD,IAAM,OAAO,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;AAgF5C,iFAAiF;AACjF,UAAU;AACV,iFAAiF;AAEjF,yDAAyD;AACzD,IAAI,sBAAsB,GAAG,kBAAkB,CAAC;AAEhD,0CAA0C;AAC1C,IAAI,yCAAyC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAE3D,uGAAuG;AACvG,IAAI,iBAAmC,CAAC;AAExC,oEAAoE;AACpE,IAAI,oBAAoB,GAA4B,EAAE,CAAC;AACvD,oBAAoB,CAAC,qBAAe,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC;AAC7D,oBAAoB,CAAC,qBAAe,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC;AAE/D;;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AAC,SAAU,CAAC;QAC/B,OAAO,CAAC,QAAQ,CAAC;YAChB,IAAI,GAAG,EAAE;gBACR,QAAQ,CAAC,GAAG,CAAC,CAAC;gBACd,OAAO;aACP;YAED,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAC1B,CAAC,CAAC,CAAC;IACJ,CAAC;IACF,iBAAC;AAAD,CAAC,AA5MD,IA4MC;AAMD,iBAAS,UAAU,CAAC"}
|
package/lib/box-node-sdk.d.ts
CHANGED
|
@@ -179,7 +179,7 @@ declare class BoxSDKNode extends EventEmitter {
|
|
|
179
179
|
* @param {Function} [callback] - passed a TokenInfo object if tokens were granted successfully
|
|
180
180
|
* @returns {Promise<TokenInfo>} Promise resolving to the token info
|
|
181
181
|
*/
|
|
182
|
-
getTokensAuthorizationCodeGrant(authorizationCode: string, options
|
|
182
|
+
getTokensAuthorizationCodeGrant(authorizationCode: string, options?: TokenRequestOptions | null, callback?: Function): import("bluebird")<{
|
|
183
183
|
accessToken: any;
|
|
184
184
|
refreshToken: any;
|
|
185
185
|
accessTokenTTLMS: number;
|
|
@@ -193,7 +193,7 @@ declare class BoxSDKNode extends EventEmitter {
|
|
|
193
193
|
* @param {Function} [callback] - passed a TokenInfo object if tokens were granted successfully
|
|
194
194
|
* @returns {Promise<TokenInfo>} Promise resolving to the token info
|
|
195
195
|
*/
|
|
196
|
-
getTokensRefreshGrant(refreshToken: string, options
|
|
196
|
+
getTokensRefreshGrant(refreshToken: string, options?: TokenRequestOptions | Function | null, callback?: Function): import("bluebird")<{
|
|
197
197
|
accessToken: any;
|
|
198
198
|
refreshToken: any;
|
|
199
199
|
accessTokenTTLMS: number;
|
|
@@ -206,7 +206,7 @@ declare class BoxSDKNode extends EventEmitter {
|
|
|
206
206
|
* @param {Function} [callback] Passed the tokens if successful
|
|
207
207
|
* @returns {Promise<TokenInfo>} Promise resolving to the token info
|
|
208
208
|
*/
|
|
209
|
-
getEnterpriseAppAuthTokens(enterpriseID: string, options
|
|
209
|
+
getEnterpriseAppAuthTokens(enterpriseID: string, options?: TokenRequestOptions | Function | null, callback?: Function): import("bluebird")<any>;
|
|
210
210
|
/**
|
|
211
211
|
* Gets tokens for App Users via a JWT grant
|
|
212
212
|
* @param {string} userID The ID of the App User to generate a token for
|
|
@@ -214,7 +214,7 @@ declare class BoxSDKNode extends EventEmitter {
|
|
|
214
214
|
* @param {Function} [callback] Passed the tokens if successful
|
|
215
215
|
* @returns {Promise<TokentInfo>} Promise resolving to the token info
|
|
216
216
|
*/
|
|
217
|
-
getAppUserTokens(userID: string, options
|
|
217
|
+
getAppUserTokens(userID: string, options?: TokenRequestOptions | Function | null, callback?: Function): import("bluebird")<any>;
|
|
218
218
|
/**
|
|
219
219
|
* Revokes a token pair associated with a given access or refresh token.
|
|
220
220
|
*
|
|
@@ -223,7 +223,7 @@ declare class BoxSDKNode extends EventEmitter {
|
|
|
223
223
|
* @param {Function} [callback] - If err, revoke failed. Otherwise, revoke succeeded.
|
|
224
224
|
* @returns {Promise<TokenInfo>} Promise resolving to the token info
|
|
225
225
|
*/
|
|
226
|
-
revokeTokens(token: string, options
|
|
226
|
+
revokeTokens(token: string, options?: TokenRequestOptions | Function | null, callback?: Function): import("bluebird")<unknown>;
|
|
227
227
|
}
|
|
228
228
|
/** @module box-node-sdk/lib/box-node-sdk */
|
|
229
229
|
export = BoxSDKNode;
|
package/lib/box-node-sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"box-node-sdk.js","sourceRoot":"","sources":["../src/box-node-sdk.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,iFAAiF;AACjF,eAAe;AACf,iFAAiF;AAEjF,iCAAsC;AACtC,8CAAkC;AAClC,sDAAyD;AACzD,yDAA4D;AAC5D,wCAA2C;AAC3C,8CAAiD;AAEjD,IAAM,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,EACt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AC,YAAY,CAAC;IACjD,6BAAkB,GAAG,UAAU,CAAC,SAAS,CAAC,kBAAkB,CAAC;IAC7D,0BAAe,GAAG,UAAU,CAAC,SAAS,CAAC,eAAe,CAAC;IAE9D;;;;OAIG;IACI,iCAAsB,GAAG,QAAQ,CAAC,eAAe,CAAC;IAmX1D,iBAAC;CAAA,AA5YD,CAAyB,qBAAY,GA4YpC;AAED;;;;GAIG;AACH,UAAU,CAAC,SAAS,CAAC,YAAY,GAAG,SAAS,CAAC,SAAS,CAAC,YAAY,CAAC;AACrE,UAAU,CAAC,SAAS,CAAC,kBAAkB;IACtC,SAAS,CAAC,SAAS,CAAC,kBAAkB,CAAC;AACxC,UAAU,CAAC,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,SAAS,CAAC,eAAe,CAAC;AAG3E,iBAAS,UAAU,CAAC"}
|
package/lib/util/config.js
CHANGED
package/lib/util/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/util/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;AAEH,+BAAkC;AAClC,2CAA+B;AAC/B,uCAA2B;AAC3B,iCAAkC;AAElC,iFAAiF;AACjF,eAAe;AACf,iFAAiF;AACjF,IAAM,KAAK,GAAG,OAAO,CAAC,eAAe,CAAC,EACrC,UAAU,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC;AAEpD,iFAAiF;AACjF,UAAU;AACV,iFAAiF;AAEjF,IAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC;AA6DpC,IAAI,QAAQ,GAAG;IACd,QAAQ,EAAE,IAAI;IACd,YAAY,EAAE,IAAI;IAClB,UAAU,EAAE,qBAAqB;IACjC,gBAAgB,EAAE,4BAA4B;IAC9C,gBAAgB,EAAE,6BAA6B;IAC/C,UAAU,EAAE,KAAK;IACjB,sBAAsB,EAAE,KAAK;IAC7B,eAAe,EA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,EACjC,+CAA+C,CAC/C,CAAC;QAEF,sEAAsE;QACtE,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QACvC,kBAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAClC,qEAAqE;QACrE,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IAED;;;;OAIG;IACH,uBAAM,GAAN,UAAO,MAAgC;QACtC,IAAI,SAAS,GAAG,KAAK,CAAC,EAAE,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QAChD,OAAO,SAAS,CAAC,MAAM,CAAC;QACxB,OAAO,SAAS,CAAC,OAAO,CAAC;QACzB,OAAO,IAAI,MAAM,CAAC,SAAS,CAAC,CAAC;IAC9B,CAAC;IACF,aAAC;AAAD,CAAC,AAxCD,IAwCC;AAMD,iBAAS,MAAM,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "box-node-sdk",
|
|
3
3
|
"author": "Box <oss@box.com>",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.4.0",
|
|
5
5
|
"description": "Official SDK for Box Plaform APIs",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"changelog": "node node_modules/standard-version/bin/cli.js --skip.commit --skip.push --skip.tag --dry-run"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
+
"@cypress/request": "^3.0.1",
|
|
37
38
|
"@types/bluebird": "^3.5.35",
|
|
38
39
|
"@types/node": "^18.15.3",
|
|
39
40
|
"ajv": "^6.12.3",
|
|
@@ -43,7 +44,6 @@
|
|
|
43
44
|
"merge-options": "^1.0.1",
|
|
44
45
|
"promise-queue": "^2.2.3",
|
|
45
46
|
"proxy-agent": "^6.3.0",
|
|
46
|
-
"request": "^2.88.0",
|
|
47
47
|
"url-template": "^2.0.8",
|
|
48
48
|
"uuid": "^9.0.0"
|
|
49
49
|
},
|
|
@@ -53,7 +53,6 @@
|
|
|
53
53
|
"@types/lodash": "^4.14.172",
|
|
54
54
|
"@types/prettier": "^2.3.2",
|
|
55
55
|
"@types/promise-queue": "^2.2.0",
|
|
56
|
-
"@types/request": "^2.48.5",
|
|
57
56
|
"@types/shelljs": "^0.8.9",
|
|
58
57
|
"@types/url-template": "^2.0.28",
|
|
59
58
|
"@types/uuid": "^9.0.1",
|
|
@@ -75,7 +74,6 @@
|
|
|
75
74
|
"mocha": "^10.2.0",
|
|
76
75
|
"mockery": "^2.1.0",
|
|
77
76
|
"nock": "^13.3.1",
|
|
78
|
-
"npm-upgrade": "^3.0.0",
|
|
79
77
|
"nyc": "^14.0.0",
|
|
80
78
|
"prettier": "^2.3.2",
|
|
81
79
|
"shelljs": "^0.8.5",
|
|
@@ -89,11 +87,5 @@
|
|
|
89
87
|
"files": [
|
|
90
88
|
"config",
|
|
91
89
|
"lib"
|
|
92
|
-
]
|
|
93
|
-
"overrides": {
|
|
94
|
-
"leche": {
|
|
95
|
-
"mocha": "^10.2.0"
|
|
96
|
-
},
|
|
97
|
-
"tough-cookie": "^4.1.3"
|
|
98
|
-
}
|
|
90
|
+
]
|
|
99
91
|
}
|