box-node-sdk 1.38.0 → 2.1.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 +228 -196
- package/README.md +42 -18
- package/lib/api-request.js +5 -5
- package/lib/api-request.js.map +1 -1
- package/lib/box-client.d.ts +3 -1
- package/lib/box-client.js +55 -26
- package/lib/box-client.js.map +1 -1
- package/lib/box-node-sdk.d.ts +23 -10
- package/lib/box-node-sdk.js +40 -11
- package/lib/box-node-sdk.js.map +1 -1
- package/lib/managers/collaboration-allowlist.js +8 -8
- package/lib/managers/collaboration-allowlist.js.map +1 -1
- package/lib/managers/collaborations.js +3 -3
- package/lib/managers/collaborations.js.map +1 -1
- package/lib/managers/collections.js +1 -1
- package/lib/managers/collections.js.map +1 -1
- package/lib/managers/comments.js +3 -3
- package/lib/managers/comments.js.map +1 -1
- package/lib/managers/device-pins.js +3 -3
- package/lib/managers/device-pins.js.map +1 -1
- package/lib/managers/enterprise.d.ts +2 -0
- package/lib/managers/enterprise.js +6 -5
- package/lib/managers/enterprise.js.map +1 -1
- package/lib/managers/events.js +3 -3
- package/lib/managers/events.js.map +1 -1
- package/lib/managers/files.js +39 -39
- package/lib/managers/files.js.map +1 -1
- package/lib/managers/folders.js +19 -19
- package/lib/managers/folders.js.map +1 -1
- package/lib/managers/groups.js +11 -11
- package/lib/managers/groups.js.map +1 -1
- package/lib/managers/legal-hold-policies.js +11 -11
- package/lib/managers/legal-hold-policies.js.map +1 -1
- package/lib/managers/metadata.d.ts +4 -2
- package/lib/managers/metadata.js +28 -14
- package/lib/managers/metadata.js.map +1 -1
- package/lib/managers/recent-items.js +1 -1
- package/lib/managers/recent-items.js.map +1 -1
- package/lib/managers/retention-policies.js +11 -11
- package/lib/managers/retention-policies.js.map +1 -1
- package/lib/managers/search.js +1 -1
- package/lib/managers/search.js.map +1 -1
- package/lib/managers/sign-requests.generated.d.ts +92 -0
- package/lib/managers/sign-requests.generated.js +108 -0
- package/lib/managers/sign-requests.generated.js.map +1 -0
- package/lib/managers/storage-policies.js +7 -7
- package/lib/managers/storage-policies.js.map +1 -1
- package/lib/managers/tasks.js +10 -10
- package/lib/managers/tasks.js.map +1 -1
- package/lib/managers/terms-of-service.js +8 -8
- package/lib/managers/terms-of-service.js.map +1 -1
- package/lib/managers/trash.js +1 -1
- package/lib/managers/trash.js.map +1 -1
- package/lib/managers/users.js +8 -8
- package/lib/managers/users.js.map +1 -1
- package/lib/managers/web-links.js +6 -6
- package/lib/managers/web-links.js.map +1 -1
- package/lib/managers/webhooks.js +5 -5
- package/lib/managers/webhooks.js.map +1 -1
- package/lib/schemas/file-base.generated.d.ts +32 -0
- package/lib/schemas/file-base.generated.js +3 -0
- package/lib/schemas/file-base.generated.js.map +1 -0
- package/lib/schemas/file-mini.generated.d.ts +41 -0
- package/lib/schemas/file-mini.generated.js +3 -0
- package/lib/schemas/file-mini.generated.js.map +1 -0
- package/lib/schemas/file-version-base.generated.d.ts +19 -0
- package/lib/schemas/file-version-base.generated.js +3 -0
- package/lib/schemas/file-version-base.generated.js.map +1 -0
- package/lib/schemas/file-version-mini.generated.d.ts +14 -0
- package/lib/schemas/file-version-mini.generated.js +3 -0
- package/lib/schemas/file-version-mini.generated.js.map +1 -0
- package/lib/schemas/folder-base.generated.d.ts +32 -0
- package/lib/schemas/folder-base.generated.js +3 -0
- package/lib/schemas/folder-base.generated.js.map +1 -0
- package/lib/schemas/folder-mini.generated.d.ts +31 -0
- package/lib/schemas/folder-mini.generated.js +3 -0
- package/lib/schemas/folder-mini.generated.js.map +1 -0
- package/lib/schemas/index.d.ts +13 -0
- package/lib/schemas/index.js +26 -0
- package/lib/schemas/index.js.map +1 -0
- package/lib/schemas/sign-request-create-request.generated.d.ts +62 -0
- package/lib/schemas/sign-request-create-request.generated.js +3 -0
- package/lib/schemas/sign-request-create-request.generated.js.map +1 -0
- package/lib/schemas/sign-request-create-signer.generated.d.ts +38 -0
- package/lib/schemas/sign-request-create-signer.generated.js +3 -0
- package/lib/schemas/sign-request-create-signer.generated.js.map +1 -0
- package/lib/schemas/sign-request-prefill-tag.generated.d.ts +28 -0
- package/lib/schemas/sign-request-prefill-tag.generated.js +3 -0
- package/lib/schemas/sign-request-prefill-tag.generated.js.map +1 -0
- package/lib/schemas/sign-request-signer-input.generated.d.ts +18 -0
- package/lib/schemas/sign-request-signer-input.generated.js +3 -0
- package/lib/schemas/sign-request-signer-input.generated.js.map +1 -0
- package/lib/schemas/sign-request-signer.generated.d.ts +23 -0
- package/lib/schemas/sign-request-signer.generated.js +3 -0
- package/lib/schemas/sign-request-signer.generated.js.map +1 -0
- package/lib/schemas/sign-request.generated.d.ts +50 -0
- package/lib/schemas/sign-request.generated.js +3 -0
- package/lib/schemas/sign-request.generated.js.map +1 -0
- package/lib/schemas/sign-requests.generated.d.ts +27 -0
- package/lib/schemas/sign-requests.generated.js +3 -0
- package/lib/schemas/sign-requests.generated.js.map +1 -0
- package/lib/sessions/app-auth-session.js +1 -1
- package/lib/sessions/app-auth-session.js.map +1 -1
- package/lib/sessions/{anonymous-session.d.ts → ccg-session.d.ts} +18 -15
- package/lib/sessions/{anonymous-session.js → ccg-session.js} +23 -23
- package/lib/sessions/ccg-session.js.map +1 -0
- package/lib/sessions/persistent-session.js +2 -2
- package/lib/sessions/persistent-session.js.map +1 -1
- package/lib/token-manager.js +11 -10
- package/lib/token-manager.js.map +1 -1
- package/lib/util/serializable.d.ts +10 -0
- package/lib/util/serializable.js +18 -0
- package/lib/util/serializable.js.map +1 -0
- package/package.json +19 -9
- package/lib/sessions/anonymous-session.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,356 +1,388 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
|
|
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
4
|
|
|
5
|
-
## 1.
|
|
5
|
+
## [2.1.0](https://github.com/box/box-node-sdk/compare/v2.0.0...v2.1.0) (2022-03-28)
|
|
6
6
|
|
|
7
|
-
**New Features and Enhancements:**
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
- Use BetterDocs to adapt JSDocs to TypeScript ([#646](https://github.com/box/box-node-sdk/pull/646))
|
|
11
|
-
- Change ProxyAgent import to be dynamic ([#641](https://github.com/box/box-node-sdk/pull/641))
|
|
12
|
-
- New API for get files and file versions under retention ([#585](https://github.com/box/box-node-sdk/pull/585))
|
|
8
|
+
### New Features and Enhancements
|
|
13
9
|
|
|
14
|
-
|
|
10
|
+
* 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))
|
|
11
|
+
* 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))
|
|
12
|
+
* **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))
|
|
15
13
|
|
|
16
|
-
|
|
17
|
-
- Fix a typo in docs of src/managers/search.ts ([#649](https://github.com/box/box-node-sdk/pull/649))
|
|
18
|
-
- Update broken documentation link ([#647](https://github.com/box/box-node-sdk/pull/647))
|
|
19
|
-
- fix type annotations for exchangeToken functions ([#645](https://github.com/box/box-node-sdk/pull/645))
|
|
20
|
-
- Deprecate files getThumbnail API in favor of getRepresentationContent ([#627](https://github.com/box/box-node-sdk/pull/627))
|
|
14
|
+
### Bug Fixes
|
|
21
15
|
|
|
22
|
-
|
|
16
|
+
* 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))
|
|
17
|
+
* 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)
|
|
23
18
|
|
|
24
|
-
|
|
19
|
+
## [2.0.0](https://github.com/box/box-node-sdk/compare/v1.39.0...v2.0.0) (2021-09-29)
|
|
25
20
|
|
|
26
|
-
|
|
21
|
+
### ⚠ BREAKING CHANGES
|
|
27
22
|
|
|
28
|
-
|
|
23
|
+
* Drop support for Node 6,7 ([#670](https://github.com/box/box-node-sdk/pull/670))
|
|
29
24
|
|
|
30
|
-
|
|
25
|
+
### New Features and Enhancements:
|
|
31
26
|
|
|
32
|
-
|
|
27
|
+
* Add support for is_external_collab_restricted User property ([#668](https://github.com/box/box-node-sdk/pull/668))
|
|
28
|
+
* Bump proxy-agent from 4.0.0 to 5.0.0 ([#664](https://github.com/box/box-node-sdk/pull/664))
|
|
33
29
|
|
|
34
|
-
## 1.
|
|
30
|
+
## [1.39.0](https://github.com/box/box-node-sdk/compare/v1.38.0...v1.39.0) (2021-08-30)
|
|
35
31
|
|
|
36
|
-
|
|
32
|
+
### New Features and Enhancements:
|
|
37
33
|
|
|
38
|
-
|
|
34
|
+
* Add support for Box Sign API ([#658](https://github.com/box/box-node-sdk/pull/658))
|
|
35
|
+
* Enhance TS Imports ([#656](https://github.com/box/box-node-sdk/pull/656))
|
|
39
36
|
|
|
40
|
-
|
|
37
|
+
## [1.38.0](https://github.com/box/box-node-sdk/compare/v1.37.2...v1.38.0) (2021-08-05)
|
|
41
38
|
|
|
42
|
-
|
|
43
|
-
- Update dependencies to patch security vulnerabilities ([#578](https://github.com/box/box-node-sdk/pull/578))
|
|
39
|
+
### New Features and Enhancements:
|
|
44
40
|
|
|
45
|
-
|
|
41
|
+
* Add sensitive-language event types for admin invites ([#648](https://github.com/box/box-node-sdk/pull/648))
|
|
42
|
+
* Use BetterDocs to adapt JSDocs to TypeScript ([#646](https://github.com/box/box-node-sdk/pull/646))
|
|
43
|
+
* Change ProxyAgent import to be dynamic ([#641](https://github.com/box/box-node-sdk/pull/641))
|
|
44
|
+
* New API for get files and file versions under retention ([#585](https://github.com/box/box-node-sdk/pull/585))
|
|
46
45
|
|
|
47
|
-
|
|
46
|
+
### Bug Fixes:
|
|
48
47
|
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
* Deeply freeze Config except Buffers and Readable streams ([#651](https://github.com/box/box-node-sdk/pull/651))
|
|
49
|
+
* Fix a typo in docs of src/managers/search.ts ([#649](https://github.com/box/box-node-sdk/pull/649))
|
|
50
|
+
* Update broken documentation link ([#647](https://github.com/box/box-node-sdk/pull/647))
|
|
51
|
+
* fix type annotations for exchangeToken functions ([#645](https://github.com/box/box-node-sdk/pull/645))
|
|
52
|
+
* Deprecate files getThumbnail API in favor of getRepresentationContent ([#627](https://github.com/box/box-node-sdk/pull/627))
|
|
51
53
|
|
|
52
|
-
|
|
54
|
+
## [1.37.2](https://github.com/box/box-node-sdk/compare/v1.37.1...v1.37.2) (2021-05-20)
|
|
53
55
|
|
|
54
|
-
|
|
55
|
-
- Update dependencies to patch security vulnerabilities ([#566](https://github.com/box/box-node-sdk/pull/566))
|
|
56
|
+
### Bug Fixes:
|
|
56
57
|
|
|
57
|
-
|
|
58
|
+
* Fix backwards compatibility issue by moving some TypeScript @types as direct dependencies ([#630](https://github.com/box/box-node-sdk/pull/630))
|
|
58
59
|
|
|
59
|
-
|
|
60
|
+
## [1.37.1](https://github.com/box/box-node-sdk/compare/v1.37.0..v1.37.1) (2021-05-19)
|
|
60
61
|
|
|
61
|
-
|
|
62
|
+
### Bug Fixes:
|
|
62
63
|
|
|
63
|
-
|
|
64
|
+
* Insensitive language: replace whitelist with allowlist ([#625](https://github.com/box/box-node-sdk/pull/625))
|
|
64
65
|
|
|
65
|
-
|
|
66
|
+
## [1.37.0](https://github.com/box/box-node-sdk/compare/v1.36.0...v1.37.0) (2021-04-16)
|
|
66
67
|
|
|
67
|
-
|
|
68
|
+
### New Features and Enhancements:
|
|
68
69
|
|
|
69
|
-
|
|
70
|
+
* Add support for copyInstanceOnItemCopy field for metadata templates ([#572](https://github.com/box/box-node-sdk/pull/572))
|
|
70
71
|
|
|
71
|
-
|
|
72
|
+
### Bug Fixes:
|
|
72
73
|
|
|
73
|
-
|
|
74
|
+
* Fix webhook signature validation ([#568](https://github.com/box/box-node-sdk/pull/568))
|
|
75
|
+
* Update dependencies to patch security vulnerabilities ([#578](https://github.com/box/box-node-sdk/pull/578))
|
|
74
76
|
|
|
75
|
-
|
|
77
|
+
## [1.36.0](https://github.com/box/box-node-sdk/compare/v1.35.0...v1.36.0) (2021-01-27)
|
|
76
78
|
|
|
77
|
-
|
|
79
|
+
### New Features and Enhancements:
|
|
78
80
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
+
* Add folder lock functionality ([#560](https://github.com/box/box-node-sdk/pull/560))
|
|
82
|
+
* Add support for filtering groups by name ([#561](https://github.com/box/box-node-sdk/pull/561))
|
|
81
83
|
|
|
82
|
-
|
|
84
|
+
### Bug Fixes:
|
|
83
85
|
|
|
84
|
-
-
|
|
85
|
-
|
|
86
|
+
* Update proxy-agent to patch proxy support issue ([#563](https://github.com/box/box-node-sdk/pull/563))
|
|
87
|
+
* Update dependencies to patch security vulnerabilities ([#566](https://github.com/box/box-node-sdk/pull/566))
|
|
86
88
|
|
|
87
|
-
## 1.
|
|
89
|
+
## [1.35.0](https://github.com/box/box-node-sdk/compare/v1.34.3...v1.35.0) (2020-11-02)
|
|
88
90
|
|
|
89
|
-
|
|
90
|
-
- 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)).
|
|
91
|
-
- 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)).
|
|
91
|
+
### New Features and Enhancements:
|
|
92
92
|
|
|
93
|
-
|
|
93
|
+
* Add support for search param to get shared link items ([#547](https://github.com/box/box-node-sdk/pull/547))
|
|
94
94
|
|
|
95
|
-
-
|
|
96
|
-
- Added marker-based paging for users endpoints
|
|
97
|
-
- Added `getNextMarker()` to PagingIterator to get the next marker
|
|
95
|
+
## [1.34.3](https://github.com/box/box-node-sdk/compare/v1.34.2...v1.34.3) (2020-10-02)
|
|
98
96
|
|
|
99
|
-
|
|
97
|
+
### Bug Fixes:
|
|
100
98
|
|
|
101
|
-
|
|
102
|
-
- Added support for [token exchange](./lib/box-client.js#L495) using shared links
|
|
99
|
+
* Upgrade ajv dependency ([#545](https://github.com/box/box-node-sdk/pull/545))
|
|
103
100
|
|
|
104
|
-
## 1.
|
|
101
|
+
## [1.34.2](https://github.com/box/box-node-sdk/compare/v1.34.1...v1.34.2) (2020-08-20)
|
|
105
102
|
|
|
106
|
-
|
|
103
|
+
* Make iterator bug fix for uploading files non breaking ([#534](https://github.com/box/box-node-sdk/pull/534))
|
|
107
104
|
|
|
108
|
-
## 1.
|
|
105
|
+
## [1.34.1](https://github.com/box/box-node-sdk/compare/v1.34.0...v1.34.1) (2020-08-17)
|
|
109
106
|
|
|
110
|
-
|
|
107
|
+
* Fix iterator bug for uploading new file versions ([#531](https://github.com/box/box-node-sdk/pull/531))
|
|
108
|
+
|
|
109
|
+
## [1.34.0](https://github.com/box/box-node-sdk/compare/v1.33.0...v1.34.0) (2020-08-04)
|
|
110
|
+
|
|
111
|
+
* Add zip functionality ([#525](https://github.com/box/box-node-sdk/pull/525))
|
|
112
|
+
* Add proxy support for `http`, `https`, `socks` and `pac` protocols ([#529](https://github.com/box/box-node-sdk/pull/529))
|
|
113
|
+
|
|
114
|
+
## [1.33.0](https://github.com/box/box-node-sdk/compare/v1.32.0...v1.33.0) (2020-06-25)
|
|
115
|
+
|
|
116
|
+
* Add path parameter sanitization ([#505](https://github.com/box/box-node-sdk/pull/505))
|
|
117
|
+
* Add support for all streams for uploading files ([#519](https://github.com/box/box-node-sdk/pull/519))
|
|
118
|
+
|
|
119
|
+
## [1.32.0](https://github.com/box/box-node-sdk/compare/v1.31.0...v1.32.0) (2020-04-01)
|
|
120
|
+
|
|
121
|
+
* 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)).
|
|
122
|
+
* 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)).
|
|
123
|
+
* 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)).
|
|
124
|
+
|
|
125
|
+
## [1.31.0](https://github.com/box/box-node-sdk/compare/v1.30.0...v1.31.0) (2020-02-13)
|
|
126
|
+
|
|
127
|
+
* Fixed Authentication Request Retries
|
|
128
|
+
* Added marker-based paging for users endpoints
|
|
129
|
+
* Added `getNextMarker()` to PagingIterator to get the next marker
|
|
130
|
+
|
|
131
|
+
## [1.30.0](https://github.com/box/box-node-sdk/compare/v1.29.1...v1.30.0) (2019-11-21)
|
|
132
|
+
|
|
133
|
+
* Deprecated Batch API methods
|
|
134
|
+
* Added support for [token exchange](./lib/box-client.js#L495) using shared links
|
|
135
|
+
|
|
136
|
+
## [1.29.1](https://github.com/box/box-node-sdk/compare/v1.29.0...v1.29.1) (2019-08-22)
|
|
137
|
+
|
|
138
|
+
* Fixed an issue where JWT authentication requests could fail after being rate limited
|
|
139
|
+
|
|
140
|
+
## [1.29.0](https://github.com/box/box-node-sdk/compare/v1.28.0...v1.29.0) (2019-04-25)
|
|
141
|
+
|
|
142
|
+
* Added convenience methods for setting metadata on [files](./docs/metadata.md#set-metadata-on-a-file)
|
|
111
143
|
and [folders](./docs/metadata.md#set-metadata-on-a-folder) ([#376](https://github.com/box/box-node-sdk/pull/376))
|
|
112
144
|
|
|
113
|
-
## 1.28.0
|
|
145
|
+
## [1.28.0](https://github.com/box/box-node-sdk/compare/v1.27.0...v1.28.0) (2019-03-28)
|
|
114
146
|
|
|
115
|
-
|
|
147
|
+
* Added methods for [moving](./docs/web-links.md#move-a-web-link) and [copying](./docs/web-links.md#move-a-web-link)
|
|
116
148
|
weblinks, as well as [adding or removing from a collection](./docs/web-links.md#add-web-link-to-a-collection)
|
|
117
149
|
|
|
118
|
-
## 1.27.0
|
|
150
|
+
## [1.27.0](https://github.com/box/box-node-sdk/compare/v1.26.2...v1.27.0) (2019-02-28)
|
|
119
151
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
152
|
+
* Added the trace ID from API response headers to error messages for easier debugging
|
|
153
|
+
* Added more safety checks in the error flow to protect against throwing when handling a malformed request
|
|
154
|
+
* Added support for [retrieving a user's avatar image](./docs/users.md#get-user-avatar)
|
|
123
155
|
|
|
124
|
-
## 1.26.2
|
|
156
|
+
## [1.26.2](https://github.com/box/box-node-sdk/compare/v1.26.1...v1.26.2) (2019-02-22)
|
|
125
157
|
|
|
126
|
-
|
|
158
|
+
* Fixed an error where under high request rates, code in the error handling logic could throw when handling a
|
|
127
159
|
malformed request
|
|
128
160
|
|
|
129
|
-
## 1.26.1
|
|
161
|
+
## [1.26.1](https://github.com/box/box-node-sdk/compare/v1.26.0...v1.26.1) (2019-02-12)
|
|
130
162
|
|
|
131
|
-
|
|
163
|
+
* Fixed an error where some methods could throw an error when constructing an iterator
|
|
132
164
|
|
|
133
|
-
## 1.26.0
|
|
165
|
+
## [1.26.0](https://github.com/box/box-node-sdk/compare/v1.25.0...v1.26.0) (2019-02-12)
|
|
134
166
|
|
|
135
|
-
|
|
136
|
-
|
|
167
|
+
* Added support for [replying to a comment](./docs/comments.md#reply-to-a-comment) (thanks @jpan-box!)
|
|
168
|
+
* Fixed an issue where calling `client.events.get()` could return an iterator that would only iterate over
|
|
137
169
|
the first chunk of events. This method will now always return the raw JSON data in order to enable manual
|
|
138
170
|
paging. For automatic paging through events, `client.events.getEventStream()` or
|
|
139
171
|
`client.events.getEnterpriseEventStream()` should be used instead.
|
|
140
172
|
|
|
141
|
-
## 1.25.0
|
|
173
|
+
## [1.25.0](https://github.com/box/box-node-sdk/compare/v1.24.1...v1.25.0) (2019-01-24)
|
|
142
174
|
|
|
143
|
-
|
|
175
|
+
* Added the `retryStrategy` config parameter to allow customizing how the SDK retries failing requests
|
|
144
176
|
|
|
145
|
-
## 1.24.1
|
|
177
|
+
## [1.24.1](https://github.com/box/box-node-sdk/compare/v1.24.0...v1.24.1) (2019-01-11)
|
|
146
178
|
|
|
147
|
-
|
|
179
|
+
* Fixed an issue where token expiration was not being correctly handled
|
|
148
180
|
|
|
149
|
-
## 1.24.0
|
|
181
|
+
## [1.24.0](https://github.com/box/box-node-sdk/compare/v1.23.0...v1.24.0) (2018-12-10)
|
|
150
182
|
|
|
151
|
-
|
|
183
|
+
* Added a configuration option for populating the first-party client analytics header information
|
|
152
184
|
|
|
153
|
-
## 1.23.0
|
|
185
|
+
## [1.23.0](https://github.com/box/box-node-sdk/compare/vA...v1.23.0) (2018-11-21)
|
|
154
186
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
187
|
+
* Added an `etag` option to common file and folder methods to allow handling race conditions
|
|
188
|
+
* [`client.files.update()`](./docs/files.md#update-a-files-information)
|
|
189
|
+
* [`client.files.delete()`](./docs/files.md#delete-a-file)
|
|
190
|
+
* [`client.files.deletePermanently()`](./docs/trash.md#delete-a-file-from-the-trash)
|
|
191
|
+
* [`client.files.deleteVersion()`](./docs/files.md#delete-a-previous-file-version)
|
|
192
|
+
* [`client.folders.update()`](./docs/folders.md#update-a-folders-information)
|
|
193
|
+
* [`client.folders.delete()`](./docs/folders.md#delete-a-folder)
|
|
194
|
+
* [`client.folders.deletePermanently()`](./docs/trash.md#delete-a-folder-from-the-trash)
|
|
163
195
|
|
|
164
|
-
## 1.22.1
|
|
196
|
+
## [1.22.1](https://github.com/box/box-node-sdk/compare/v1.22.0...v1.22.1) (2018-11-15)
|
|
165
197
|
|
|
166
|
-
|
|
198
|
+
* Fixed an issue where retrying JWT auth token requests would sometimes fail due to a non-unique `jti` claim
|
|
167
199
|
|
|
168
|
-
## 1.22.0
|
|
200
|
+
## [1.22.0](https://github.com/box/box-node-sdk/compare/v1.21.0...v1.22.0) (2018-09-17)
|
|
169
201
|
|
|
170
|
-
|
|
171
|
-
|
|
202
|
+
* Chunked Uploader methods now return promises for [simpler handling of chunked uploads](./docs/files.md#automatic-uploader)
|
|
203
|
+
* File attributes to set on the newly-uploaded file can now be
|
|
172
204
|
[passed via `options.fileAttributes`](./docs/files.md#automatic-uploader) when creating a Chunked Uploader
|
|
173
205
|
|
|
174
|
-
## 1.21.0
|
|
206
|
+
## [1.21.0](https://github.com/box/box-node-sdk/compare/v1.20.0...v1.21.0) (2018-09-13)
|
|
175
207
|
|
|
176
|
-
|
|
177
|
-
|
|
208
|
+
* Added the ability to close an Event Stream by calling `eventStream.destroy()` (thanks @boneskull!)
|
|
209
|
+
* Improved error messages related to certain authentication failure cases
|
|
178
210
|
|
|
179
|
-
## 1.20.0
|
|
211
|
+
## [1.20.0](https://github.com/box/box-node-sdk/compare/v1.19.0...v1.20.0) (2018-08-09)
|
|
180
212
|
|
|
181
|
-
|
|
182
|
-
|
|
213
|
+
* Added missing values to the `client.webhooks.triggerTypes` enum (thanks @MathersMax!)
|
|
214
|
+
* Added support for [Metadata Cascade Policies](./docs/metadata.md#create-cascade-policy)
|
|
183
215
|
|
|
184
|
-
## 1.19.0
|
|
216
|
+
## [1.19.0](https://github.com/box/box-node-sdk/compare/v1.18.0...v1.19.0) (2018-06-14)
|
|
185
217
|
|
|
186
|
-
|
|
218
|
+
* Added `generateRepresentations` option to [`files.getRepresentationContent()`](./docs/files.md#get-representation-content)
|
|
187
219
|
|
|
188
|
-
## 1.18.0
|
|
220
|
+
## [1.18.0](https://github.com/box/box-node-sdk/compare/v1.17.0...v1.18.0) (2018-05-24)
|
|
189
221
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
222
|
+
* Updated dependencies to resolve potential security issues:
|
|
223
|
+
* `request@2.87.0`
|
|
224
|
+
* Transitive dependencies of `jsonwebtoken@8.2.1`
|
|
225
|
+
* Added a static `BoxSDK.getBasicClient()` method to enable creating a client without needing
|
|
194
226
|
to specify a client ID and secret (thanks to @cbetta)
|
|
195
227
|
|
|
196
|
-
## 1.17.0
|
|
228
|
+
## [1.17.0](https://github.com/box/box-node-sdk/compare/v1.16.1...v1.17.0) (2018-05-10)
|
|
197
229
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
230
|
+
* Updated dependencies: `request@2.85.0`, `jsonwebtoken@8.2.1`
|
|
231
|
+
* Added support for [Storage Policies](./docs/storage-policies.md)
|
|
232
|
+
* Added the option to use a Token Store for caching tokens with App Auth using JWT
|
|
201
233
|
|
|
202
|
-
## 1.16.1
|
|
234
|
+
## [1.16.1](https://github.com/box/box-node-sdk/compare/v1.16.0...v1.16.1) (2018-04-26)
|
|
203
235
|
|
|
204
|
-
|
|
236
|
+
* Fixed a bug where metadata template deletion would not properly return results via callback
|
|
205
237
|
|
|
206
|
-
## 1.16.0
|
|
238
|
+
## [1.16.0](https://github.com/box/box-node-sdk/compare/v1.15.0...v1.16.0) (2018-04-10)
|
|
207
239
|
|
|
208
|
-
|
|
240
|
+
* 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)
|
|
209
241
|
|
|
210
|
-
## 1.15.0
|
|
242
|
+
## [1.15.0](https://github.com/box/box-node-sdk/compare/v1.14.1...v1.15.0) (2018-03-29)
|
|
211
243
|
|
|
212
|
-
|
|
244
|
+
* Fixed [`client.webhooks.validateMessage() and `sdk.validateWebhookMessage()`](https://github.com/box/box-node-sdk/blob/main/docs/webhooks.md#validate-a-webhook-message)
|
|
213
245
|
to accept the request body as an `Object`
|
|
214
|
-
|
|
215
|
-
|
|
246
|
+
* Fixed `sdk.configure()` to correct reconfigure all options
|
|
247
|
+
* Improved error messages for API errors and added the request object as `error.request` for easier debugging
|
|
216
248
|
|
|
217
|
-
## 1.14.1
|
|
249
|
+
## [1.14.1](https://github.com/box/box-node-sdk/compare/v1.14.0...v1.14.1) (2018-03-13)
|
|
218
250
|
|
|
219
|
-
|
|
251
|
+
* Fixed a bug when `files.getReadStream()` was called with null options
|
|
220
252
|
|
|
221
|
-
## 1.14.0
|
|
253
|
+
## [1.14.0](https://github.com/box/box-node-sdk/compare/v1.13.0...v1.14.0) (2018-03-12)
|
|
222
254
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
255
|
+
* Added support for [getting a metadata template by ID](./docs/metadata.md#get-by-id)
|
|
256
|
+
* Added a `byteRange` option to [file download](./docs/files.md#download-a-file) to support partial file download
|
|
257
|
+
* Improved error messages when using promises and in authentication flows
|
|
226
258
|
|
|
227
|
-
## 1.13.0
|
|
259
|
+
## [1.13.0](https://github.com/box/box-node-sdk/compare/v1.12.1...v1.13.0) (2018-03-01)
|
|
228
260
|
|
|
229
|
-
|
|
230
|
-
|
|
261
|
+
* Added support for getting a [stream of file representation contents](./docs/files.md#get-representation-content)
|
|
262
|
+
* Switched to using exponential backoff for request retries
|
|
231
263
|
|
|
232
|
-
## 1.12.1
|
|
264
|
+
## [1.12.1](https://github.com/box/box-node-sdk/compare/v1.12.0...v1.12.1) (2018-01-25)
|
|
233
265
|
|
|
234
|
-
|
|
266
|
+
* Fixed an issue where chunked uploader would not work with response streams from the request library
|
|
235
267
|
(0e7014561f9cd0f7f38f98536b3f0c3946231d2e)
|
|
236
268
|
|
|
237
|
-
## 1.12.0
|
|
269
|
+
## [1.12.0](https://github.com/box/box-node-sdk/compare/v1.11.0...v1.12.0) (2018-01-11)
|
|
238
270
|
|
|
239
|
-
|
|
271
|
+
* Added support for [metadata template deletion](./docs/metadata.md#delete-metadata-template)
|
|
240
272
|
|
|
241
|
-
## 1.11.0
|
|
273
|
+
## [1.11.0](https://github.com/box/box-node-sdk/compare/v1.10.1...v1.11.0) (2017-12-12)
|
|
242
274
|
|
|
243
|
-
|
|
275
|
+
* Added options to preserve file timestamps on [file upload](./docs/files.md#upload-a-file)
|
|
244
276
|
and to rename a file or preserve modification timestamp on [new version upload](./docs/files.md#upload-a-new-version-of-a-file)
|
|
245
|
-
|
|
277
|
+
* Added [Collaboration Whitelist](./docs/collaboration-whitelist.md) functionality to allow enterprise admins
|
|
246
278
|
to control which external users can collaborate on their content
|
|
247
|
-
|
|
279
|
+
* Added an option to Token Exchange to generate [annotator tokens](./docs/authentication.md#annotator-tokens) for use with Box View
|
|
248
280
|
|
|
249
|
-
## 1.10.1
|
|
281
|
+
## [1.10.1](https://github.com/box/box-node-sdk/compare/v1.10.0...v1.10.1) (2017-11-28)
|
|
250
282
|
|
|
251
|
-
|
|
283
|
+
* Updated to jsonwebtoken@8.1.0 to fix an issue where some users were getting
|
|
252
284
|
an error when using App Auth
|
|
253
285
|
|
|
254
|
-
## 1.10.0
|
|
286
|
+
## [1.10.0](https://github.com/box/box-node-sdk/compare/v1.9.0...v1.10.0) (2017-01-14)
|
|
255
287
|
|
|
256
|
-
|
|
257
|
-
|
|
288
|
+
* Added support for [Terms of Service](./docs/terms-of-service.md) endpoints
|
|
289
|
+
* Fixed a bug where receiving a collection without paging parameters from the API
|
|
258
290
|
would cause the SDK to throw an exception when using the `iterators` SDK option.
|
|
259
291
|
Now, this will return an iterator over the items returned by the API.
|
|
260
|
-
|
|
261
|
-
|
|
292
|
+
* Fixed a bug in Token Exchange where passing multiple scopes would result in an error
|
|
293
|
+
* Added support for [getting Representations info on a file](./docs/files.md#get-representation-info)
|
|
262
294
|
|
|
263
|
-
## 1.9.0
|
|
295
|
+
## [1.9.0](https://github.com/box/box-node-sdk/compare/v1.8.0...v1.9.0) (2017-09-12)
|
|
264
296
|
|
|
265
|
-
|
|
266
|
-
|
|
297
|
+
* Fixed token methods to return bluebird Promises instead of native Promises
|
|
298
|
+
* Added support for the `notify` and `can_view_path` options on Collaborations
|
|
267
299
|
|
|
268
|
-
## 1.8.0
|
|
300
|
+
## [1.8.0](https://github.com/box/box-node-sdk/compare/v1.7.0...v1.8.0) (2017-08-21)
|
|
269
301
|
|
|
270
|
-
|
|
271
|
-
|
|
302
|
+
* Added support for [Batch API](./docs/client.md#batch-api)
|
|
303
|
+
* Fixed a bug where the Event Stream would make more API calls than necessary,
|
|
272
304
|
potentially hitting Box API rate limits
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
305
|
+
* Added Promise support to methods on the SDK object
|
|
306
|
+
* Added Node.js version to the User-Agent header that the SDK sends
|
|
307
|
+
* Fixed a bug where using multiple Persistent Clients instances could cause some
|
|
276
308
|
clients to end up with expired tokens
|
|
277
309
|
|
|
278
|
-
## 1.7.0
|
|
310
|
+
## [1.7.0](https://github.com/box/box-node-sdk/compare/v1.6.0...v1.7.0) (2017-07-19)
|
|
279
311
|
|
|
280
|
-
|
|
312
|
+
* 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
|
|
281
313
|
|
|
282
|
-
## 1.6.0
|
|
314
|
+
## [1.6.0](https://github.com/box/box-node-sdk/compare/v1.5.1...v1.6.0) (2017-06-23)
|
|
283
315
|
|
|
284
|
-
|
|
285
|
-
|
|
316
|
+
* Added [Recent Items](./docs/recent-items.md) support
|
|
317
|
+
* Updated app auth expiration time default value and validation
|
|
286
318
|
|
|
287
|
-
## 1.5.1
|
|
319
|
+
## [1.5.1](https://github.com/box/box-node-sdk/compare/v1.5.0...v1.5.1) (2017-06-15)
|
|
288
320
|
|
|
289
|
-
|
|
321
|
+
* Revert deep-freezing Config properties, since it was causing errors
|
|
290
322
|
|
|
291
|
-
## 1.5.0
|
|
323
|
+
## [1.5.0](https://github.com/box/box-node-sdk/compare/v1.4.2...v1.5.0) (2017-06-15)
|
|
292
324
|
|
|
293
|
-
|
|
325
|
+
* Added support for [Token Exchange](./docs/authentication.md#token-exchange),
|
|
294
326
|
which allows a client to get downscoped tokens suitable for passing to a browser
|
|
295
327
|
app or worker process.
|
|
296
|
-
|
|
328
|
+
* Ensured deeply-nested Config properties are immutable
|
|
297
329
|
|
|
298
|
-
## 1.4.2
|
|
330
|
+
## [1.4.2](https://github.com/box/box-node-sdk/compare/v1.4.1...v1.4.2) (2017-05-22)
|
|
299
331
|
|
|
300
|
-
|
|
332
|
+
* Fixed `BoxSDK.getPreconfiguredInstance()` to configure webhook keys
|
|
301
333
|
|
|
302
|
-
## 1.4.1
|
|
334
|
+
## [1.4.1](https://github.com/box/box-node-sdk/compare/v1.4.0...v1.4.1) (2017-05-22)
|
|
303
335
|
|
|
304
|
-
|
|
336
|
+
* Fixed `BoxSDK.getPreconfiguredInstance()` when app auth setttings are not populated
|
|
305
337
|
|
|
306
|
-
## 1.4.0
|
|
338
|
+
## [1.4.0](https://github.com/box/box-node-sdk/compare/v1.3.0...v1.4.0) (2017-05-19)
|
|
307
339
|
|
|
308
|
-
|
|
340
|
+
* Added support for [file collaborations](./docs/collaborations.md#add-a-collaboration).
|
|
309
341
|
Users can now invite others to collaborate on single files.
|
|
310
342
|
See [the blog post](https://blog.box.com/blog/file-collaboration-api/) for more information.
|
|
311
|
-
|
|
343
|
+
* Fixed an issue where users were unable to use JWT Server Auth when their computers' clocks
|
|
312
344
|
were not synchronized with the Box API servers.
|
|
313
|
-
|
|
345
|
+
* All asynchronous client methods now return Promises in addition to taking a
|
|
314
346
|
(now-optional) callback parameter, so you can write more modern JS with the SDK.
|
|
315
|
-
|
|
347
|
+
* The SDK can now be preconfigured using a JSON blob that can be downloaded in the
|
|
316
348
|
Box Dev Console for JWT Server Authentication apps, making it easier to get started
|
|
317
349
|
developing!
|
|
318
|
-
|
|
350
|
+
* Added support for [chunked upload](./docs/files.md#chunked-upload), where a large
|
|
319
351
|
file can be uploaded one piece at a time. This makes large file uploads much faster
|
|
320
352
|
and more reliable, since parts can be uploaded in parallel and failed parts can be
|
|
321
353
|
retried in isolation.
|
|
322
|
-
|
|
354
|
+
* Added an `is_confirmed` option to [email alias creation](./docs/users.md#add-email-alias) for
|
|
323
355
|
admins to auto-confirm the alias.
|
|
324
|
-
|
|
325
|
-
|
|
356
|
+
* Added support for the [Enterprise Events stream](./docs/events.md#enterprise-events).
|
|
357
|
+
* Added an option to have collections methods (e.g. `folders.getItems()`,
|
|
326
358
|
`enterprise.getUsers()`, etc) return [async iterators](./README.md#iterators) that will automatically
|
|
327
359
|
page through the collection. This conforms to the [proposed async iteration spec](https://github.com/tc39/proposal-async-iteration),
|
|
328
360
|
which will eventually allow them to be used in ergonomic for-await-of loop syntax.
|
|
329
361
|
|
|
330
|
-
## 1.3.0
|
|
362
|
+
## [1.3.0](https://github.com/box/box-node-sdk/compare/v1.2.0...v1.3.0) (2017-01-24)
|
|
331
363
|
|
|
332
|
-
|
|
364
|
+
* Added `BoxSDK.validateWebhookMessage()` and `client.webhooks.validateMessage()` for validating webhook messages from Box
|
|
333
365
|
|
|
334
|
-
## 1.2.0
|
|
366
|
+
## [1.2.0](https://github.com/box/box-node-sdk/compare/v1.1.0...v1.2.0) (2016-12-12)
|
|
335
367
|
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
368
|
+
* Added methods for all API endpoints; we now have full API coverage :tada:
|
|
369
|
+
* Added support for renaming a file or folder on copy
|
|
370
|
+
* Added `client.asUser(userID)` and `client.asSelf()` to support making calls on behalf of managed users
|
|
371
|
+
* Fixed event streams so they don't go into an infinite error loop when auth expires
|
|
372
|
+
* Fixed an error where App Auth clients would not be able to authorize due to clock skew
|
|
373
|
+
* Fixed the `mdfilters` parameter in `client.search.query()` to support metadata search
|
|
374
|
+
* Cloned options objects to prevent modification of passed-in objects by the SDK
|
|
375
|
+
* Added better error messaging to the sample app
|
|
344
376
|
|
|
345
|
-
## 1.1.0
|
|
377
|
+
## [1.1.0](https://github.com/box/box-node-sdk/compare/v1.0.0...v1.1.0) (2016-09-27)
|
|
346
378
|
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
379
|
+
* Added endpoint to get a file's tasks
|
|
380
|
+
* Fixed issues with stream uploads
|
|
381
|
+
* Improved performance of file uploads
|
|
382
|
+
* Added endpoints to delete files and folders from trash
|
|
383
|
+
* Added endpoint to get a trashed folder
|
|
384
|
+
* Upgraded request dependency to fix ReDoS vulnerability
|
|
353
385
|
|
|
354
|
-
## 1.0.0
|
|
386
|
+
## [1.0.0] (2016-07-13)
|
|
355
387
|
|
|
356
388
|
Initial release.
|