box-node-sdk 3.2.1 → 3.3.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 ADDED
@@ -0,0 +1,551 @@
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.3.0](https://github.com/box/box-node-sdk/compare/v3.2.1...v3.3.0) (2023-10-26)
6
+
7
+
8
+ ### New Features and Enhancements
9
+
10
+ * 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))
11
+
12
+ ### Bug Fixes
13
+
14
+ * 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))
15
+
16
+ ### [3.2.1](https://github.com/box/box-node-sdk/compare/v3.2.0...v3.2.1) (2023-10-06)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * Overrides tough-cookie dependency ([#852](https://github.com/box/box-node-sdk/issues/852)) ([99df873](https://github.com/box/box-node-sdk/commit/99df873e1a1dad4a0073d53b4ed57c0eeb859401))
22
+
23
+ ## [3.2.0](https://github.com/box/box-node-sdk/compare/v3.1.1...v3.2.0) (2023-09-07)
24
+
25
+
26
+ ### New Features and Enhancements
27
+
28
+ * Support sign template ([#848](https://github.com/box/box-node-sdk/issues/848)) ([18d3413](https://github.com/box/box-node-sdk/commit/18d3413afeddf43c62dfd0caf1279e61c99b6b83))
29
+
30
+ ### [3.1.1](https://github.com/box/box-node-sdk/compare/v3.1.0...v3.1.1) (2023-07-19)
31
+
32
+
33
+ ## [3.1.0](https://github.com/box/box-node-sdk/compare/v3.0.0...v3.1.0) (2023-06-01)
34
+
35
+
36
+ ### New Features and Enhancements
37
+
38
+ * 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))
39
+
40
+ ### Bug Fixes
41
+
42
+ * 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)
43
+
44
+ ## [3.0.0](https://github.com/box/box-node-sdk/compare/v2.10.0...v3.0.0) (2023-05-23)
45
+
46
+ 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**.
47
+
48
+ ### Breaking Changes
49
+
50
+ - Removed `use_index` usage. ([#812](https://github.com/box/box-node-sdk/pull/812)) ([d56799a](https://github.com/box/box-node-sdk/commit/d56799a61f42265d7785f99e92a449c58d125aef))
51
+ - Removed deprecated `BoxClient.batch()` and `BoxClient.batchExec()` method.
52
+ - Removed deprecated `CollaborationWhitelist` class, use `CollaborationAllowlist` instead.
53
+ - Removed deprecated `CollaborationAllowlist.getWhitelistedDomain()` method, use `CollaborationAllowlist.getAllowlistedDomain()` instead.
54
+ - Removed deprecated `CollaborationAllowlist.getAllWhitelistedDomains()` method, use `CollaborationAllowlist.getAllAllowlistedDomains()` instead.
55
+ - Remove deprecated `Files.getThumbnail(fileID: string, options?: Record<string, any>, callback?: Function)` method, use `Files.getRepresentationContent( fileID, representationType, options, callback)` instead.
56
+
57
+ 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)
58
+
59
+ ### Dependency Upgrades
60
+ - 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))
61
+ - 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))
62
+
63
+ ## [2.10.0](https://github.com/box/box-node-sdk/compare/v2.9.0...v2.10.0) (2023-05-11)
64
+
65
+
66
+ ### New Features and Enhancements
67
+
68
+ * 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))
69
+ * 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))
70
+
71
+ ## [2.9.0](https://github.com/box/box-node-sdk/compare/v2.8.1...v2.9.0) (2023-04-19)
72
+
73
+
74
+ ### New Features and Enhancements
75
+
76
+ * 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))
77
+
78
+ ### Bug Fixes
79
+
80
+ * 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))
81
+
82
+ ### [2.8.1](https://github.com/box/box-node-sdk/compare/v2.8.0...v2.8.1) (2023-01-05)
83
+
84
+
85
+ ### Bug Fixes
86
+
87
+ * Fix `getReadStream` delay reading ([#790](https://github.com/box/box-node-sdk/issues/790)) ([6bfc1ee](https://github.com/box/box-node-sdk/commit/6bfc1eebeb9a31606ff96127eeb1ad03d2f13d9c))
88
+
89
+ ## [2.8.0](https://github.com/box/box-node-sdk/compare/v2.7.2...v2.8.0) (2022-12-21)
90
+
91
+
92
+ ### New Features and Enhancements
93
+
94
+ * Session termination ([#782](https://github.com/box/box-node-sdk/issues/782)) ([7fb56c6](https://github.com/box/box-node-sdk/commit/7fb56c625f8eb03e6a5354b67a0debfd9e4ad7c8))
95
+
96
+ ### [2.7.2](https://github.com/box/box-node-sdk/compare/v2.7.1...v2.7.2) (2022-11-10)
97
+
98
+
99
+ ### Bug Fixes
100
+
101
+ * 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))
102
+
103
+ ### [2.7.1](https://github.com/box/box-node-sdk/compare/v2.7.0...v2.7.1) (2022-10-28)
104
+
105
+
106
+ ### Bug Fixes
107
+
108
+ * Export missing `RetentionType` ([#774](https://github.com/box/box-node-sdk/issues/774)) ([7e6b244](https://github.com/box/box-node-sdk/commit/7e6b244ba63d363ecc921be570140c9e1ed1d032))
109
+
110
+ ## [2.7.0](https://github.com/box/box-node-sdk/compare/v2.6.0...v2.7.0) (2022-10-27)
111
+
112
+
113
+ ### New Features and Enhancements
114
+
115
+ * 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))
116
+
117
+ ## [2.6.0](https://github.com/box/box-node-sdk/compare/v2.5.0...v2.6.0) (2022-09-23)
118
+
119
+
120
+ ### New Features and Enhancements
121
+
122
+ * 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))
123
+ * Add sign request webhook ([#760](https://github.com/box/box-node-sdk/issues/760)) ([e92d1ab](https://github.com/box/box-node-sdk/commit/e92d1abee5faf58166f4892d7b2e6bc3c6480ac6))
124
+ * 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))
125
+
126
+ ## [2.5.0](https://github.com/box/box-node-sdk/compare/v2.4.0...v2.5.0) (2022-08-09)
127
+
128
+
129
+ ### New Features and Enhancements
130
+
131
+ * 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))
132
+
133
+ ### Bug Fixes
134
+
135
+ * 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)
136
+ * 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))
137
+
138
+ ## [2.4.0](https://github.com/box/box-node-sdk/compare/v2.3.0...v2.4.0) (2022-07-13)
139
+
140
+
141
+ ### New Features and Enhancements
142
+
143
+ * 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))
144
+ * 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))
145
+
146
+ ### Bug Fixes
147
+
148
+ * 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))
149
+
150
+ ## [2.3.0](https://github.com/box/box-node-sdk/compare/v2.2.0...v2.3.0) (2022-04-28)
151
+
152
+
153
+ ### New Features and Enhancements
154
+
155
+ * 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))
156
+
157
+ ### Bug Fixes
158
+
159
+ * 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))
160
+
161
+ ## [2.2.0](https://github.com/box/box-node-sdk/compare/v2.1.0...v2.2.0) (2022-04-20)
162
+
163
+
164
+ ### New Features and Enhancements
165
+
166
+ * editable shared links ([#722](https://github.com/box/box-node-sdk/issues/722)) ([f0c0135](https://github.com/box/box-node-sdk/commit/f0c0135511fde46144e6c496432104321af443f6))
167
+
168
+ ## [2.1.0](https://github.com/box/box-node-sdk/compare/v2.0.0...v2.1.0) (2022-03-28)
169
+
170
+
171
+ ### New Features and Enhancements
172
+
173
+ * 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))
174
+ * 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))
175
+ * **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))
176
+
177
+ ### Bug Fixes
178
+
179
+ * 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))
180
+ * 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)
181
+
182
+ ## [2.0.0](https://github.com/box/box-node-sdk/compare/v1.39.0...v2.0.0) (2021-09-29)
183
+
184
+ ### ⚠ BREAKING CHANGES
185
+
186
+ * Drop support for Node 6,7 ([#670](https://github.com/box/box-node-sdk/pull/670))
187
+
188
+ ### New Features and Enhancements:
189
+
190
+ * Add support for is_external_collab_restricted User property ([#668](https://github.com/box/box-node-sdk/pull/668))
191
+ * Bump proxy-agent from 4.0.0 to 5.0.0 ([#664](https://github.com/box/box-node-sdk/pull/664))
192
+
193
+ ## [1.39.0](https://github.com/box/box-node-sdk/compare/v1.38.0...v1.39.0) (2021-08-30)
194
+
195
+ ### New Features and Enhancements:
196
+
197
+ * Add support for Box Sign API ([#658](https://github.com/box/box-node-sdk/pull/658))
198
+ * Enhance TS Imports ([#656](https://github.com/box/box-node-sdk/pull/656))
199
+
200
+ ## [1.38.0](https://github.com/box/box-node-sdk/compare/v1.37.2...v1.38.0) (2021-08-05)
201
+
202
+ ### New Features and Enhancements:
203
+
204
+ * Add sensitive-language event types for admin invites ([#648](https://github.com/box/box-node-sdk/pull/648))
205
+ * Use BetterDocs to adapt JSDocs to TypeScript ([#646](https://github.com/box/box-node-sdk/pull/646))
206
+ * Change ProxyAgent import to be dynamic ([#641](https://github.com/box/box-node-sdk/pull/641))
207
+ * New API for get files and file versions under retention ([#585](https://github.com/box/box-node-sdk/pull/585))
208
+
209
+ ### Bug Fixes:
210
+
211
+ * Deeply freeze Config except Buffers and Readable streams ([#651](https://github.com/box/box-node-sdk/pull/651))
212
+ * Fix a typo in docs of src/managers/search.ts ([#649](https://github.com/box/box-node-sdk/pull/649))
213
+ * Update broken documentation link ([#647](https://github.com/box/box-node-sdk/pull/647))
214
+ * fix type annotations for exchangeToken functions ([#645](https://github.com/box/box-node-sdk/pull/645))
215
+ * Deprecate files getThumbnail API in favor of getRepresentationContent ([#627](https://github.com/box/box-node-sdk/pull/627))
216
+
217
+ ## [1.37.2](https://github.com/box/box-node-sdk/compare/v1.37.1...v1.37.2) (2021-05-20)
218
+
219
+ ### Bug Fixes:
220
+
221
+ * Fix backwards compatibility issue by moving some TypeScript @types as direct dependencies ([#630](https://github.com/box/box-node-sdk/pull/630))
222
+
223
+ ## [1.37.1](https://github.com/box/box-node-sdk/compare/v1.37.0..v1.37.1) (2021-05-19)
224
+
225
+ ### Bug Fixes:
226
+
227
+ * Insensitive language: replace whitelist with allowlist ([#625](https://github.com/box/box-node-sdk/pull/625))
228
+
229
+ ## [1.37.0](https://github.com/box/box-node-sdk/compare/v1.36.0...v1.37.0) (2021-04-16)
230
+
231
+ ### New Features and Enhancements:
232
+
233
+ * Add support for copyInstanceOnItemCopy field for metadata templates ([#572](https://github.com/box/box-node-sdk/pull/572))
234
+
235
+ ### Bug Fixes:
236
+
237
+ * Fix webhook signature validation ([#568](https://github.com/box/box-node-sdk/pull/568))
238
+ * Update dependencies to patch security vulnerabilities ([#578](https://github.com/box/box-node-sdk/pull/578))
239
+
240
+ ## [1.36.0](https://github.com/box/box-node-sdk/compare/v1.35.0...v1.36.0) (2021-01-27)
241
+
242
+ ### New Features and Enhancements:
243
+
244
+ * Add folder lock functionality ([#560](https://github.com/box/box-node-sdk/pull/560))
245
+ * Add support for filtering groups by name ([#561](https://github.com/box/box-node-sdk/pull/561))
246
+
247
+ ### Bug Fixes:
248
+
249
+ * Update proxy-agent to patch proxy support issue ([#563](https://github.com/box/box-node-sdk/pull/563))
250
+ * Update dependencies to patch security vulnerabilities ([#566](https://github.com/box/box-node-sdk/pull/566))
251
+
252
+ ## [1.35.0](https://github.com/box/box-node-sdk/compare/v1.34.3...v1.35.0) (2020-11-02)
253
+
254
+ ### New Features and Enhancements:
255
+
256
+ * Add support for search param to get shared link items ([#547](https://github.com/box/box-node-sdk/pull/547))
257
+
258
+ ## [1.34.3](https://github.com/box/box-node-sdk/compare/v1.34.2...v1.34.3) (2020-10-02)
259
+
260
+ ### Bug Fixes:
261
+
262
+ * Upgrade ajv dependency ([#545](https://github.com/box/box-node-sdk/pull/545))
263
+
264
+ ## [1.34.2](https://github.com/box/box-node-sdk/compare/v1.34.1...v1.34.2) (2020-08-20)
265
+
266
+ * Make iterator bug fix for uploading files non breaking ([#534](https://github.com/box/box-node-sdk/pull/534))
267
+
268
+ ## [1.34.1](https://github.com/box/box-node-sdk/compare/v1.34.0...v1.34.1) (2020-08-17)
269
+
270
+ * Fix iterator bug for uploading new file versions ([#531](https://github.com/box/box-node-sdk/pull/531))
271
+
272
+ ## [1.34.0](https://github.com/box/box-node-sdk/compare/v1.33.0...v1.34.0) (2020-08-04)
273
+
274
+ * Add zip functionality ([#525](https://github.com/box/box-node-sdk/pull/525))
275
+ * Add proxy support for `http`, `https`, `socks` and `pac` protocols ([#529](https://github.com/box/box-node-sdk/pull/529))
276
+
277
+ ## [1.33.0](https://github.com/box/box-node-sdk/compare/v1.32.0...v1.33.0) (2020-06-25)
278
+
279
+ * Add path parameter sanitization ([#505](https://github.com/box/box-node-sdk/pull/505))
280
+ * Add support for all streams for uploading files ([#519](https://github.com/box/box-node-sdk/pull/519))
281
+
282
+ ## [1.32.0](https://github.com/box/box-node-sdk/compare/v1.31.0...v1.32.0) (2020-04-01)
283
+
284
+ * 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)).
285
+ * 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)).
286
+ * 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)).
287
+
288
+ ## [1.31.0](https://github.com/box/box-node-sdk/compare/v1.30.0...v1.31.0) (2020-02-13)
289
+
290
+ * Fixed Authentication Request Retries
291
+ * Added marker-based paging for users endpoints
292
+ * Added `getNextMarker()` to PagingIterator to get the next marker
293
+
294
+ ## [1.30.0](https://github.com/box/box-node-sdk/compare/v1.29.1...v1.30.0) (2019-11-21)
295
+
296
+ * Deprecated Batch API methods
297
+ * Added support for [token exchange](./lib/box-client.js#L495) using shared links
298
+
299
+ ## [1.29.1](https://github.com/box/box-node-sdk/compare/v1.29.0...v1.29.1) (2019-08-22)
300
+
301
+ * Fixed an issue where JWT authentication requests could fail after being rate limited
302
+
303
+ ## [1.29.0](https://github.com/box/box-node-sdk/compare/v1.28.0...v1.29.0) (2019-04-25)
304
+
305
+ * Added convenience methods for setting metadata on [files](./docs/metadata.md#set-metadata-on-a-file)
306
+ and [folders](./docs/metadata.md#set-metadata-on-a-folder) ([#376](https://github.com/box/box-node-sdk/pull/376))
307
+
308
+ ## [1.28.0](https://github.com/box/box-node-sdk/compare/v1.27.0...v1.28.0) (2019-03-28)
309
+
310
+ * Added methods for [moving](./docs/web-links.md#move-a-web-link) and [copying](./docs/web-links.md#move-a-web-link)
311
+ weblinks, as well as [adding or removing from a collection](./docs/web-links.md#add-web-link-to-a-collection)
312
+
313
+ ## [1.27.0](https://github.com/box/box-node-sdk/compare/v1.26.2...v1.27.0) (2019-02-28)
314
+
315
+ * Added the trace ID from API response headers to error messages for easier debugging
316
+ * Added more safety checks in the error flow to protect against throwing when handling a malformed request
317
+ * Added support for [retrieving a user's avatar image](./docs/users.md#get-user-avatar)
318
+
319
+ ## [1.26.2](https://github.com/box/box-node-sdk/compare/v1.26.1...v1.26.2) (2019-02-22)
320
+
321
+ * Fixed an error where under high request rates, code in the error handling logic could throw when handling a
322
+ malformed request
323
+
324
+ ## [1.26.1](https://github.com/box/box-node-sdk/compare/v1.26.0...v1.26.1) (2019-02-12)
325
+
326
+ * Fixed an error where some methods could throw an error when constructing an iterator
327
+
328
+ ## [1.26.0](https://github.com/box/box-node-sdk/compare/v1.25.0...v1.26.0) (2019-02-12)
329
+
330
+ * Added support for [replying to a comment](./docs/comments.md#reply-to-a-comment) (thanks @jpan-box!)
331
+ * Fixed an issue where calling `client.events.get()` could return an iterator that would only iterate over
332
+ the first chunk of events. This method will now always return the raw JSON data in order to enable manual
333
+ paging. For automatic paging through events, `client.events.getEventStream()` or
334
+ `client.events.getEnterpriseEventStream()` should be used instead.
335
+
336
+ ## [1.25.0](https://github.com/box/box-node-sdk/compare/v1.24.1...v1.25.0) (2019-01-24)
337
+
338
+ * Added the `retryStrategy` config parameter to allow customizing how the SDK retries failing requests
339
+
340
+ ## [1.24.1](https://github.com/box/box-node-sdk/compare/v1.24.0...v1.24.1) (2019-01-11)
341
+
342
+ * Fixed an issue where token expiration was not being correctly handled
343
+
344
+ ## [1.24.0](https://github.com/box/box-node-sdk/compare/v1.23.0...v1.24.0) (2018-12-10)
345
+
346
+ * Added a configuration option for populating the first-party client analytics header information
347
+
348
+ ## [1.23.0](https://github.com/box/box-node-sdk/compare/vA...v1.23.0) (2018-11-21)
349
+
350
+ * Added an `etag` option to common file and folder methods to allow handling race conditions
351
+ * [`client.files.update()`](./docs/files.md#update-a-files-information)
352
+ * [`client.files.delete()`](./docs/files.md#delete-a-file)
353
+ * [`client.files.deletePermanently()`](./docs/trash.md#delete-a-file-from-the-trash)
354
+ * [`client.files.deleteVersion()`](./docs/files.md#delete-a-previous-file-version)
355
+ * [`client.folders.update()`](./docs/folders.md#update-a-folders-information)
356
+ * [`client.folders.delete()`](./docs/folders.md#delete-a-folder)
357
+ * [`client.folders.deletePermanently()`](./docs/trash.md#delete-a-folder-from-the-trash)
358
+
359
+ ## [1.22.1](https://github.com/box/box-node-sdk/compare/v1.22.0...v1.22.1) (2018-11-15)
360
+
361
+ * Fixed an issue where retrying JWT auth token requests would sometimes fail due to a non-unique `jti` claim
362
+
363
+ ## [1.22.0](https://github.com/box/box-node-sdk/compare/v1.21.0...v1.22.0) (2018-09-17)
364
+
365
+ * Chunked Uploader methods now return promises for [simpler handling of chunked uploads](./docs/files.md#automatic-uploader)
366
+ * File attributes to set on the newly-uploaded file can now be
367
+ [passed via `options.fileAttributes`](./docs/files.md#automatic-uploader) when creating a Chunked Uploader
368
+
369
+ ## [1.21.0](https://github.com/box/box-node-sdk/compare/v1.20.0...v1.21.0) (2018-09-13)
370
+
371
+ * Added the ability to close an Event Stream by calling `eventStream.destroy()` (thanks @boneskull!)
372
+ * Improved error messages related to certain authentication failure cases
373
+
374
+ ## [1.20.0](https://github.com/box/box-node-sdk/compare/v1.19.0...v1.20.0) (2018-08-09)
375
+
376
+ * Added missing values to the `client.webhooks.triggerTypes` enum (thanks @MathersMax!)
377
+ * Added support for [Metadata Cascade Policies](./docs/metadata.md#create-cascade-policy)
378
+
379
+ ## [1.19.0](https://github.com/box/box-node-sdk/compare/v1.18.0...v1.19.0) (2018-06-14)
380
+
381
+ * Added `generateRepresentations` option to [`files.getRepresentationContent()`](./docs/files.md#get-representation-content)
382
+
383
+ ## [1.18.0](https://github.com/box/box-node-sdk/compare/v1.17.0...v1.18.0) (2018-05-24)
384
+
385
+ * Updated dependencies to resolve potential security issues:
386
+ * `request@2.87.0`
387
+ * Transitive dependencies of `jsonwebtoken@8.2.1`
388
+ * Added a static `BoxSDK.getBasicClient()` method to enable creating a client without needing
389
+ to specify a client ID and secret (thanks to @cbetta)
390
+
391
+ ## [1.17.0](https://github.com/box/box-node-sdk/compare/v1.16.1...v1.17.0) (2018-05-10)
392
+
393
+ * Updated dependencies: `request@2.85.0`, `jsonwebtoken@8.2.1`
394
+ * Added support for [Storage Policies](./docs/storage-policies.md)
395
+ * Added the option to use a Token Store for caching tokens with App Auth using JWT
396
+
397
+ ## [1.16.1](https://github.com/box/box-node-sdk/compare/v1.16.0...v1.16.1) (2018-04-26)
398
+
399
+ * Fixed a bug where metadata template deletion would not properly return results via callback
400
+
401
+ ## [1.16.0](https://github.com/box/box-node-sdk/compare/v1.15.0...v1.16.0) (2018-04-10)
402
+
403
+ * 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)
404
+
405
+ ## [1.15.0](https://github.com/box/box-node-sdk/compare/v1.14.1...v1.15.0) (2018-03-29)
406
+
407
+ * Fixed [`client.webhooks.validateMessage() and `sdk.validateWebhookMessage()`](https://github.com/box/box-node-sdk/blob/main/docs/webhooks.md#validate-a-webhook-message)
408
+ to accept the request body as an `Object`
409
+ * Fixed `sdk.configure()` to correct reconfigure all options
410
+ * Improved error messages for API errors and added the request object as `error.request` for easier debugging
411
+
412
+ ## [1.14.1](https://github.com/box/box-node-sdk/compare/v1.14.0...v1.14.1) (2018-03-13)
413
+
414
+ * Fixed a bug when `files.getReadStream()` was called with null options
415
+
416
+ ## [1.14.0](https://github.com/box/box-node-sdk/compare/v1.13.0...v1.14.0) (2018-03-12)
417
+
418
+ * Added support for [getting a metadata template by ID](./docs/metadata.md#get-by-id)
419
+ * Added a `byteRange` option to [file download](./docs/files.md#download-a-file) to support partial file download
420
+ * Improved error messages when using promises and in authentication flows
421
+
422
+ ## [1.13.0](https://github.com/box/box-node-sdk/compare/v1.12.1...v1.13.0) (2018-03-01)
423
+
424
+ * Added support for getting a [stream of file representation contents](./docs/files.md#get-representation-content)
425
+ * Switched to using exponential backoff for request retries
426
+
427
+ ## [1.12.1](https://github.com/box/box-node-sdk/compare/v1.12.0...v1.12.1) (2018-01-25)
428
+
429
+ * Fixed an issue where chunked uploader would not work with response streams from the request library
430
+ (0e7014561f9cd0f7f38f98536b3f0c3946231d2e)
431
+
432
+ ## [1.12.0](https://github.com/box/box-node-sdk/compare/v1.11.0...v1.12.0) (2018-01-11)
433
+
434
+ * Added support for [metadata template deletion](./docs/metadata.md#delete-metadata-template)
435
+
436
+ ## [1.11.0](https://github.com/box/box-node-sdk/compare/v1.10.1...v1.11.0) (2017-12-12)
437
+
438
+ * Added options to preserve file timestamps on [file upload](./docs/files.md#upload-a-file)
439
+ and to rename a file or preserve modification timestamp on [new version upload](./docs/files.md#upload-a-new-version-of-a-file)
440
+ * Added [Collaboration Whitelist](./docs/collaboration-whitelist.md) functionality to allow enterprise admins
441
+ to control which external users can collaborate on their content
442
+ * Added an option to Token Exchange to generate [annotator tokens](./docs/authentication.md#annotator-tokens) for use with Box View
443
+
444
+ ## [1.10.1](https://github.com/box/box-node-sdk/compare/v1.10.0...v1.10.1) (2017-11-28)
445
+
446
+ * Updated to jsonwebtoken@8.1.0 to fix an issue where some users were getting
447
+ an error when using App Auth
448
+
449
+ ## [1.10.0](https://github.com/box/box-node-sdk/compare/v1.9.0...v1.10.0) (2017-01-14)
450
+
451
+ * Added support for [Terms of Service](./docs/terms-of-service.md) endpoints
452
+ * Fixed a bug where receiving a collection without paging parameters from the API
453
+ would cause the SDK to throw an exception when using the `iterators` SDK option.
454
+ Now, this will return an iterator over the items returned by the API.
455
+ * Fixed a bug in Token Exchange where passing multiple scopes would result in an error
456
+ * Added support for [getting Representations info on a file](./docs/files.md#get-representation-info)
457
+
458
+ ## [1.9.0](https://github.com/box/box-node-sdk/compare/v1.8.0...v1.9.0) (2017-09-12)
459
+
460
+ * Fixed token methods to return bluebird Promises instead of native Promises
461
+ * Added support for the `notify` and `can_view_path` options on Collaborations
462
+
463
+ ## [1.8.0](https://github.com/box/box-node-sdk/compare/v1.7.0...v1.8.0) (2017-08-21)
464
+
465
+ * Added support for [Batch API](./docs/client.md#batch-api)
466
+ * Fixed a bug where the Event Stream would make more API calls than necessary,
467
+ potentially hitting Box API rate limits
468
+ * Added Promise support to methods on the SDK object
469
+ * Added Node.js version to the User-Agent header that the SDK sends
470
+ * Fixed a bug where using multiple Persistent Clients instances could cause some
471
+ clients to end up with expired tokens
472
+
473
+ ## [1.7.0](https://github.com/box/box-node-sdk/compare/v1.6.0...v1.7.0) (2017-07-19)
474
+
475
+ * 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
476
+
477
+ ## [1.6.0](https://github.com/box/box-node-sdk/compare/v1.5.1...v1.6.0) (2017-06-23)
478
+
479
+ * Added [Recent Items](./docs/recent-items.md) support
480
+ * Updated app auth expiration time default value and validation
481
+
482
+ ## [1.5.1](https://github.com/box/box-node-sdk/compare/v1.5.0...v1.5.1) (2017-06-15)
483
+
484
+ * Revert deep-freezing Config properties, since it was causing errors
485
+
486
+ ## [1.5.0](https://github.com/box/box-node-sdk/compare/v1.4.2...v1.5.0) (2017-06-15)
487
+
488
+ * Added support for [Token Exchange](./docs/authentication.md#token-exchange),
489
+ which allows a client to get downscoped tokens suitable for passing to a browser
490
+ app or worker process.
491
+ * Ensured deeply-nested Config properties are immutable
492
+
493
+ ## [1.4.2](https://github.com/box/box-node-sdk/compare/v1.4.1...v1.4.2) (2017-05-22)
494
+
495
+ * Fixed `BoxSDK.getPreconfiguredInstance()` to configure webhook keys
496
+
497
+ ## [1.4.1](https://github.com/box/box-node-sdk/compare/v1.4.0...v1.4.1) (2017-05-22)
498
+
499
+ * Fixed `BoxSDK.getPreconfiguredInstance()` when app auth setttings are not populated
500
+
501
+ ## [1.4.0](https://github.com/box/box-node-sdk/compare/v1.3.0...v1.4.0) (2017-05-19)
502
+
503
+ * Added support for [file collaborations](./docs/collaborations.md#add-a-collaboration).
504
+ Users can now invite others to collaborate on single files.
505
+ See [the blog post](https://blog.box.com/blog/file-collaboration-api/) for more information.
506
+ * Fixed an issue where users were unable to use JWT Server Auth when their computers' clocks
507
+ were not synchronized with the Box API servers.
508
+ * All asynchronous client methods now return Promises in addition to taking a
509
+ (now-optional) callback parameter, so you can write more modern JS with the SDK.
510
+ * The SDK can now be preconfigured using a JSON blob that can be downloaded in the
511
+ Box Dev Console for JWT Server Authentication apps, making it easier to get started
512
+ developing!
513
+ * Added support for [chunked upload](./docs/files.md#chunked-upload), where a large
514
+ file can be uploaded one piece at a time. This makes large file uploads much faster
515
+ and more reliable, since parts can be uploaded in parallel and failed parts can be
516
+ retried in isolation.
517
+ * Added an `is_confirmed` option to [email alias creation](./docs/users.md#add-email-alias) for
518
+ admins to auto-confirm the alias.
519
+ * Added support for the [Enterprise Events stream](./docs/events.md#enterprise-events).
520
+ * Added an option to have collections methods (e.g. `folders.getItems()`,
521
+ `enterprise.getUsers()`, etc) return [async iterators](./README.md#iterators) that will automatically
522
+ page through the collection. This conforms to the [proposed async iteration spec](https://github.com/tc39/proposal-async-iteration),
523
+ which will eventually allow them to be used in ergonomic for-await-of loop syntax.
524
+
525
+ ## [1.3.0](https://github.com/box/box-node-sdk/compare/v1.2.0...v1.3.0) (2017-01-24)
526
+
527
+ * Added `BoxSDK.validateWebhookMessage()` and `client.webhooks.validateMessage()` for validating webhook messages from Box
528
+
529
+ ## [1.2.0](https://github.com/box/box-node-sdk/compare/v1.1.0...v1.2.0) (2016-12-12)
530
+
531
+ * Added methods for all API endpoints; we now have full API coverage :tada:
532
+ * Added support for renaming a file or folder on copy
533
+ * Added `client.asUser(userID)` and `client.asSelf()` to support making calls on behalf of managed users
534
+ * Fixed event streams so they don't go into an infinite error loop when auth expires
535
+ * Fixed an error where App Auth clients would not be able to authorize due to clock skew
536
+ * Fixed the `mdfilters` parameter in `client.search.query()` to support metadata search
537
+ * Cloned options objects to prevent modification of passed-in objects by the SDK
538
+ * Added better error messaging to the sample app
539
+
540
+ ## [1.1.0](https://github.com/box/box-node-sdk/compare/v1.0.0...v1.1.0) (2016-09-27)
541
+
542
+ * Added endpoint to get a file's tasks
543
+ * Fixed issues with stream uploads
544
+ * Improved performance of file uploads
545
+ * Added endpoints to delete files and folders from trash
546
+ * Added endpoint to get a trashed folder
547
+ * Upgraded request dependency to fix ReDoS vulnerability
548
+
549
+ ## [1.0.0] (2016-07-13)
550
+
551
+ Initial release.
@@ -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;AAGrC,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,u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AO,EAAE,CAAC;QACrB,IAAI,MAAM,GAAG,UAAU,CAAC,iBAAiB,EAAE,CAAC;QAE5C,uEAAuE;QACvE,8DAA8D;QAC9D,oEAAoE;QACpE,uBAAuB;QACvB,IAAI,MAAM,EAAE;YACX,IAAI,WAAW,GAAG,IAAI,oBAAW,EAAE,CAAC;YACpC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACzB,OAAO,WAAW,CAAC;SACnB;QACD,OAAO,MAAM,CAAC;IACf,CAAC;IACF,wBAAC;AAAD,CAAC,AAxDD,IAwDC;AAMD,iBAAS,iBAAiB,CAAC"}
@@ -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?: request.Request;
85
- stream?: request.Request;
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(): request.Request | undefined;
103
+ getResponseStream(): any;
105
104
  /**
106
105
  * Handle the request response in the callback case.
107
106
  *
@@ -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 = (0, request_1.default)(this.config.request, this._handleResponse.bind(this));
139
+ this.request = request(this.config.request, this._handleResponse.bind(this));
140
140
  }
141
141
  else {
142
- this.request = (0, request_1.default)(this.config.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);
@@ -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,oDAA8B;AAC9B,yDAAmC;AACnC,mFAAyD;AAgFzD,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;;;;;;;;GAQG;AACH,SAAS,gBAAgB,CAAC,QAAkC;IAC3D,IAAI,UAAU,GAAG,QAAQ,CAAC,UAAU,CAAC;IAErC,+GAA+G;IAC/G,8GAA8G;IAC9G,uCAAuC;IACvC,IACC,UAAU,KAAK,qBAAe,CAAC,oBAAoB;QACnD,UAAU,IAAI,yCAAyC,CAAC,CAAC,CAAC;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AAC;qBACnB;oBACD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;oBAClB,OAAO;iBACP;aACD;iBAAM,IACN,GAAG,CAAC,cAAc,CAAC,UAAU,CAAC;gBAC9B,GAAG,CAAC,QAAQ,CAAC,cAAc,CAAC,SAAS,CAAC;gBACtC,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,cAAc,CAAC,aAAa,CAAC,EACjD;gBACD,YAAY,GAAG,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC;aAC1D;iBAAM;gBACN,YAAY,GAAG,IAAA,6BAAe,EAC7B,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,MAAM,CAAC,eAAe,CAC3B,CAAC;aACF;YACD,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,YAAY,CAAC,CAAC;SAClD;aAAM;YACN,GAAG,CAAC,kBAAkB,GAAG,IAAI,CAAC;YAC9B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;SAClB;IACF,CAAC;IAED;;;;;;;OAOG;IACH,4BAAO,GAAP,UAAQ,GAAS,EAAE,QAAmC;QACrD,IAAI,QAAQ,GAAG,IAAI,CAAC,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"}
@@ -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: TokenRequestOptions | null, callback: Function): import("bluebird")<{
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: TokenRequestOptions | Function | null, callback: Function): import("bluebird")<{
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: TokenRequestOptions | Function | null, callback: Function): import("bluebird")<any>;
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: TokenRequestOptions | Function | null, callback: Function): import("bluebird")<any>;
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: TokenRequestOptions | Function | null, callback: Function): import("bluebird")<unknown>;
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;
@@ -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,EACtC,eAAe,GAAG,OAAO,CAAC,0BAA0B,CAAC,EACrD,oBAAoB,GAAG,OAAO,CAAC,+BAA+B,CAAC,EAC/D,cAAc,GAAG,OAAO,CAAC,6BAA6B,CAAC,EACvD,QAAQ,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AA2C3C,iFAAiF;AACjF,UAAU;AACV,iFAAiF;AAEjF,iFAAiF;AACjF,SAAS;AACT,iFAAiF;AAEjF;;;;;;;;;;;;GAYG;AACH;IAAyB,8BAAY;IA2BpC,oBAAY,MAAgC;QAA5C,YACC,iBAAO,SAeP;QAbA,IAAM,QAAQ,GAAG,IAAI,qBAAY,EAAE,CAAC;QAEpC,IAAM,IAAI,GAAG,KAAI,CAAC;QAClB,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE;YACvB,IAAM,IAAI,CAAM,WAAW,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACvD,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;Y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AC;IAED;;;;;;;OAOG;IACH,iCAAY,GAAZ,UACC,KAAa,EACb,OAA+C,EAC/C,QAAmB;QAEnB,IAAI,OAAO,OAAO,KAAK,UAAU,EAAE;YAClC,QAAQ,GAAG,OAAO,CAAC;YACnB,OAAO,GAAG,IAAI,CAAC;SACf;QAED,OAAO,IAAI,CAAC,YAAY;aACtB,YAAY,CAAC,KAAK,EAAE,OAAc,CAAC,WAAW,CAAC;aAC/C,UAAU,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;IAhYD;;;;OAIG;IACI,uBAAY,GAAG,UAAU,CAAC,SAAS,CAAC,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/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.2.1",
4
+ "version": "3.3.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
  }