box-node-sdk 3.1.1 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/lib/box-client.d.ts +2 -0
- package/lib/box-client.js +2 -0
- package/lib/box-client.js.map +1 -1
- package/lib/managers/sign-templates.generated.d.ts +51 -0
- package/lib/managers/sign-templates.generated.js +61 -0
- package/lib/managers/sign-templates.generated.js.map +1 -0
- package/lib/schemas/folder-mini.generated.d.ts +5 -5
- package/lib/schemas/index.generated.d.ts +4 -0
- package/lib/schemas/index.generated.js +4 -0
- package/lib/schemas/index.generated.js.map +1 -1
- package/lib/schemas/sign-request-base.generated.d.ts +7 -2
- package/lib/schemas/sign-request-create-request.generated.d.ts +2 -10
- package/lib/schemas/sign-request-signer.generated.d.ts +10 -0
- package/lib/schemas/sign-request.generated.d.ts +5 -5
- package/lib/schemas/sign-requests.generated.d.ts +3 -0
- package/lib/schemas/sign-template.generated.d.ts +88 -0
- package/lib/schemas/sign-template.generated.js +3 -0
- package/lib/schemas/sign-template.generated.js.map +1 -0
- package/lib/schemas/sign-templates.generated.d.ts +18 -0
- package/lib/schemas/sign-templates.generated.js +3 -0
- package/lib/schemas/sign-templates.generated.js.map +1 -0
- package/lib/schemas/template-signer-input.generated.d.ts +51 -0
- package/lib/schemas/template-signer-input.generated.js +3 -0
- package/lib/schemas/template-signer-input.generated.js.map +1 -0
- package/lib/schemas/template-signer.generated.d.ts +36 -0
- package/lib/schemas/template-signer.generated.js +3 -0
- package/lib/schemas/template-signer.generated.js.map +1 -0
- package/lib/schemas/user-base.generated.d.ts +1 -1
- package/package.json +4 -3
- package/CHANGELOG.md +0 -526
package/README.md
CHANGED
|
@@ -23,12 +23,15 @@ A Node.js interface to the [Box Content API](https://developer.box.com/reference
|
|
|
23
23
|
- [App Auth Client](#app-auth-client)
|
|
24
24
|
- [Using the Client to Make API Calls](#using-the-client-to-make-api-calls)
|
|
25
25
|
- [Constructing API Calls Manually](#constructing-api-calls-manually)
|
|
26
|
+
- [FIPS 140-2 Compliance](#fips-140-2-compliance)
|
|
26
27
|
- [Versions](#versions)
|
|
27
28
|
- [Supported Version](#supported-version)
|
|
28
29
|
- [Version schedule](#version-schedule)
|
|
29
30
|
- [Questions, Bugs, and Feature Requests?](#questions-bugs-and-feature-requests)
|
|
30
31
|
- [Contributing to the Box Node.js SDK](#contributing-to-the-box-nodejs-sdk)
|
|
31
32
|
- [Changelog](#changelog)
|
|
33
|
+
- [Upgrades](#upgrades)
|
|
34
|
+
- [Documentation](#documentation)
|
|
32
35
|
- [Copyright and License](#copyright-and-license)
|
|
33
36
|
|
|
34
37
|
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
|
@@ -224,6 +227,15 @@ client.del('/files/123');
|
|
|
224
227
|
.catch(error => { /* handle any errors */ });
|
|
225
228
|
```
|
|
226
229
|
|
|
230
|
+
## FIPS 140-2 Compliance
|
|
231
|
+
|
|
232
|
+
The Box Node SDK allows the use of FIPS 140-2 validated SSL libraries, such as OpenSSL 3.0.
|
|
233
|
+
However, some actions are required to enable this functionality.
|
|
234
|
+
|
|
235
|
+
By default, the version of OpenSSL Node.js includes is not FIPS enabled. Therefore, if you want to use OpenSSL 3.0 with FIPS, you need to [build OpenSSL 3.0 with FIPS enabled](https://github.com/openssl/openssl/blob/master/README-FIPS.md) and then build Node.js use the shared OpenSSL 3.0 library.
|
|
236
|
+
|
|
237
|
+
According to [Node.js OpenSSL Strategy](https://github.com/nodejs/TSC/blob/main/OpenSSL-Strategy.md) document, you can use the OpenSSL 3.0 from Node.js v16 or later.
|
|
238
|
+
|
|
227
239
|
## Versions
|
|
228
240
|
We use a modified version of [Semantic Versioning](https://semver.org/) for all changes. See [version strategy](VERSIONS.md) for details which is effective from 30 July 2022.
|
|
229
241
|
|
package/lib/box-client.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import Events from './managers/events';
|
|
|
6
6
|
import Files from './managers/files';
|
|
7
7
|
import Folders from './managers/folders';
|
|
8
8
|
import SignRequests from './managers/sign-requests.generated';
|
|
9
|
+
import SignTemplates from './managers/sign-templates.generated';
|
|
9
10
|
import Webhooks from './managers/webhooks';
|
|
10
11
|
import FileRequestsManager from "./managers/file-requests-manager";
|
|
11
12
|
import ShieldInformationBarriers from "./managers/shield-information-barriers.generated";
|
|
@@ -66,6 +67,7 @@ declare class BoxClient {
|
|
|
66
67
|
termsOfService: any;
|
|
67
68
|
storagePolicies: any;
|
|
68
69
|
signRequests: SignRequests;
|
|
70
|
+
signTemplates: SignTemplates;
|
|
69
71
|
shieldInformationBarriers: ShieldInformationBarriers;
|
|
70
72
|
shieldInformationBarrierSegments: ShieldInformationBarrierSegments;
|
|
71
73
|
shieldInformationBarrierSegmentMembers: ShieldInformationBarrierSegmentMembers;
|
package/lib/box-client.js
CHANGED
|
@@ -26,6 +26,7 @@ var retention_policies_1 = __importDefault(require("./managers/retention-policie
|
|
|
26
26
|
var search_1 = __importDefault(require("./managers/search"));
|
|
27
27
|
var shared_items_1 = __importDefault(require("./managers/shared-items"));
|
|
28
28
|
var sign_requests_generated_1 = __importDefault(require("./managers/sign-requests.generated"));
|
|
29
|
+
var sign_templates_generated_1 = __importDefault(require("./managers/sign-templates.generated"));
|
|
29
30
|
var storage_policies_1 = __importDefault(require("./managers/storage-policies"));
|
|
30
31
|
var tasks_1 = __importDefault(require("./managers/tasks"));
|
|
31
32
|
var terms_of_service_1 = __importDefault(require("./managers/terms-of-service"));
|
|
@@ -170,6 +171,7 @@ var BoxClient = /** @class */ (function () {
|
|
|
170
171
|
this.termsOfService = new terms_of_service_1.default(this);
|
|
171
172
|
this.storagePolicies = new storage_policies_1.default(this);
|
|
172
173
|
this.signRequests = new sign_requests_generated_1.default(this);
|
|
174
|
+
this.signTemplates = new sign_templates_generated_1.default(this);
|
|
173
175
|
this.shieldInformationBarriers = new shield_information_barriers_generated_1.default(this);
|
|
174
176
|
this.shieldInformationBarrierSegments = new shield_information_barrier_segments_generated_1.default(this);
|
|
175
177
|
this.shieldInformationBarrierSegmentMembers = new shield_information_barrier_segment_members_generated_1.default(this);
|
package/lib/box-client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"box-client.js","sourceRoot":"","sources":["../src/box-client.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;AAEH,qCAAmC;AACnC,iFAAiF;AACjF,wBAAwB;AACxB,iFAAiF;AACjF,+FAAwE;AACxE,6EAAuD;AACvD,uEAAiD;AACjD,iEAA2C;AAC3C,uEAAgD;AAChD,qEAA+C;AAC/C,6DAAuC;AACvC,2DAAqC;AACrC,+DAAyC;AACzC,6DAAuC;AACvC,uFAA+D;AAC/D,iEAA2C;AAC3C,yEAAkD;AAClD,qFAA8D;AAC9D,6DAAuC;AACvC,yEAAkD;AAClD,+FAA8D;AAC9D,iFAA0D;AAC1D,2DAAqC;AACrC,iFAAyD;AACzD,2DAAqC;AACrC,2DAAqC;AACrC,mEAA4C;AAC5C,iEAA2C;AAC3C,2FAAmE;AACnE,2HAAyF;AACzF,2IAAwG;AACxG,yJAAqH;AACrH,mKAA+H;AAC/H,yIAAsG;AACtG,yFAAkE;AA2BlE,iFAAiF;AACjF,eAAe;AACf,iFAAiF;AACjF,IAAI,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,EACzB,EAAE,GAAG,OAAO,CAAC,aAAa,CAAC,EAC3B,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,EACjC,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC,EACxC,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,EAC1B,KAAK,GAAG,OAAO,CAAC,eAAe,CAAC,EAChC,cAAc,GAAG,OAAO,CAAC,wBAAwB,CAAC,EAClD,GAAG,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAElC,iFAAiF;AACjF,UAAU;AACV,iFAAiF;AAEjF,iCAAiC;AACjC,IAAI,oBAAoB,GAAG,eAAe;AACzC,gEAAgE;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xClient from '../box-client';
|
|
2
|
+
import * as schemas from '../schemas';
|
|
3
|
+
/**
|
|
4
|
+
* Simple manager for interacting with all Sign Templates endpoints and actions.
|
|
5
|
+
*/
|
|
6
|
+
declare class SignTemplatesManager {
|
|
7
|
+
client: BoxClient;
|
|
8
|
+
/**
|
|
9
|
+
* @param {BoxClient} client The Box API Client that is responsible for making calls to the API
|
|
10
|
+
*/
|
|
11
|
+
constructor(client: BoxClient);
|
|
12
|
+
/**
|
|
13
|
+
* Get Box Sign template by ID
|
|
14
|
+
*
|
|
15
|
+
* Fetches details of a specific Box Sign template.
|
|
16
|
+
* @param {object} options Options for the request
|
|
17
|
+
* @param {string} options.template_id The ID of a Box Sign template.
|
|
18
|
+
* @param {Function} [callback] Passed the result if successful, error otherwise
|
|
19
|
+
* @returns {Promise<schemas.SignTemplate>} A promise resolving to the result or rejecting with an error
|
|
20
|
+
*/
|
|
21
|
+
getById(options: {
|
|
22
|
+
/**
|
|
23
|
+
* The ID of a Box Sign template.
|
|
24
|
+
*/
|
|
25
|
+
readonly template_id: string;
|
|
26
|
+
}, callback?: Function): Promise<schemas.SignTemplate>;
|
|
27
|
+
/**
|
|
28
|
+
* List Box Sign templates
|
|
29
|
+
*
|
|
30
|
+
* Gets Box Sign templates created by a user.
|
|
31
|
+
* @param {object} [options] Options for the request
|
|
32
|
+
* @param {string} [options.marker] Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires `usemarker` to be set to `true`.
|
|
33
|
+
* @param {number} [options.limit] The maximum number of items to return per page.
|
|
34
|
+
* @param {Function} [callback] Passed the result if successful, error otherwise
|
|
35
|
+
* @returns {Promise<schemas.SignTemplates>} A promise resolving to the result or rejecting with an error
|
|
36
|
+
*/
|
|
37
|
+
getAll(options?: {
|
|
38
|
+
/**
|
|
39
|
+
* Defines the position marker at which to begin returning results. This is
|
|
40
|
+
* used when paginating using marker-based pagination.
|
|
41
|
+
*
|
|
42
|
+
* This requires `usemarker` to be set to `true`.
|
|
43
|
+
*/
|
|
44
|
+
readonly marker?: string;
|
|
45
|
+
/**
|
|
46
|
+
* The maximum number of items to return per page.
|
|
47
|
+
*/
|
|
48
|
+
readonly limit?: number;
|
|
49
|
+
}, callback?: Function): Promise<schemas.SignTemplates>;
|
|
50
|
+
}
|
|
51
|
+
export = SignTemplatesManager;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
var url_path_1 = __importDefault(require("../util/url-path"));
|
|
17
|
+
/**
|
|
18
|
+
* Simple manager for interacting with all Sign Templates endpoints and actions.
|
|
19
|
+
*/
|
|
20
|
+
var SignTemplatesManager = /** @class */ (function () {
|
|
21
|
+
/**
|
|
22
|
+
* @param {BoxClient} client The Box API Client that is responsible for making calls to the API
|
|
23
|
+
*/
|
|
24
|
+
function SignTemplatesManager(client) {
|
|
25
|
+
this.client = client;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Get Box Sign template by ID
|
|
29
|
+
*
|
|
30
|
+
* Fetches details of a specific Box Sign template.
|
|
31
|
+
* @param {object} options Options for the request
|
|
32
|
+
* @param {string} options.template_id The ID of a Box Sign template.
|
|
33
|
+
* @param {Function} [callback] Passed the result if successful, error otherwise
|
|
34
|
+
* @returns {Promise<schemas.SignTemplate>} A promise resolving to the result or rejecting with an error
|
|
35
|
+
*/
|
|
36
|
+
SignTemplatesManager.prototype.getById = function (options, callback) {
|
|
37
|
+
var templateId = options.template_id, queryParams = __rest(options, ["template_id"]), apiPath = (0, url_path_1.default)('sign_templates', templateId), params = {
|
|
38
|
+
qs: queryParams,
|
|
39
|
+
};
|
|
40
|
+
return this.client.wrapWithDefaultHandler(this.client.get)(apiPath, params, callback);
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* List Box Sign templates
|
|
44
|
+
*
|
|
45
|
+
* Gets Box Sign templates created by a user.
|
|
46
|
+
* @param {object} [options] Options for the request
|
|
47
|
+
* @param {string} [options.marker] Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires `usemarker` to be set to `true`.
|
|
48
|
+
* @param {number} [options.limit] The maximum number of items to return per page.
|
|
49
|
+
* @param {Function} [callback] Passed the result if successful, error otherwise
|
|
50
|
+
* @returns {Promise<schemas.SignTemplates>} A promise resolving to the result or rejecting with an error
|
|
51
|
+
*/
|
|
52
|
+
SignTemplatesManager.prototype.getAll = function (options, callback) {
|
|
53
|
+
var queryParams = __rest(options, []), apiPath = (0, url_path_1.default)('sign_templates'), params = {
|
|
54
|
+
qs: queryParams,
|
|
55
|
+
};
|
|
56
|
+
return this.client.wrapWithDefaultHandler(this.client.get)(apiPath, params, callback);
|
|
57
|
+
};
|
|
58
|
+
return SignTemplatesManager;
|
|
59
|
+
}());
|
|
60
|
+
module.exports = SignTemplatesManager;
|
|
61
|
+
//# sourceMappingURL=sign-templates.generated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sign-templates.generated.js","sourceRoot":"","sources":["../../src/managers/sign-templates.generated.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,8DAAuC;AAEvC;;GAEG;AACH;IAEC;;OAEG;IACH,8BAAY,MAAiB;QAC5B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IACD;;;;;;;;OAQG;IACH,sCAAO,GAAP,UACC,OAKC,EACD,QAAmB;QAEX,IAAa,UAAU,GAAqB,OAAO,YAA5B,EAAK,WAAW,UAAK,OAAO,EAArD,eAA2C,CAAF,EAC9C,OAAO,GAAG,IAAA,kBAAO,EAAC,gBAAgB,EAAE,UAAU,CAAC,EAC/C,MAAM,GAAG;YACR,EAAE,EAAE,WAAW;SACf,CAAC;QACH,OAAO,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CACzD,OAAO,EACP,MAAM,EACN,QAAQ,CACR,CAAC;IACH,CAAC;IACD;;;;;;;;;OASG;IACH,qCAAM,GAAN,UACC,OAYC,EACD,QAAmB;QAEnB,IAAW,WAAW,UAAK,OAAO,EAA5B,EAAkB,CAAF,EACrB,OAAO,GAAG,IAAA,kBAAO,EAAC,gBAAgB,CAAC,EACnC,MAAM,GAAG;YACR,EAAE,EAAE,WAAW;SACf,CAAC;QACH,OAAO,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CACzD,OAAO,EACP,MAAM,EACN,QAAQ,CACR,CAAC;IACH,CAAC;IACF,2BAAC;AAAD,CAAC,AA1ED,IA0EC;AACD,iBAAS,oBAAoB,CAAC"}
|
|
@@ -6,6 +6,11 @@ import * as schemas from '.';
|
|
|
6
6
|
* nested under another resource.
|
|
7
7
|
*/
|
|
8
8
|
export interface FolderMini extends schemas.FolderBase {
|
|
9
|
+
/**
|
|
10
|
+
* The name of the folder.
|
|
11
|
+
* Example: Contracts
|
|
12
|
+
*/
|
|
13
|
+
name?: string;
|
|
9
14
|
/**
|
|
10
15
|
* A numeric identifier that represents the most recent user event
|
|
11
16
|
* that has been applied to this item.
|
|
@@ -23,9 +28,4 @@ export interface FolderMini extends schemas.FolderBase {
|
|
|
23
28
|
* Example: 3
|
|
24
29
|
*/
|
|
25
30
|
sequence_id?: string;
|
|
26
|
-
/**
|
|
27
|
-
* The name of the folder.
|
|
28
|
-
* Example: Contracts
|
|
29
|
-
*/
|
|
30
|
-
name?: string;
|
|
31
31
|
}
|
|
@@ -26,4 +26,8 @@ export * from './sign-request-signer-input.generated';
|
|
|
26
26
|
export * from './sign-request-signer.generated';
|
|
27
27
|
export * from './sign-request.generated';
|
|
28
28
|
export * from './sign-requests.generated';
|
|
29
|
+
export * from './sign-template.generated';
|
|
30
|
+
export * from './sign-templates.generated';
|
|
31
|
+
export * from './template-signer-input.generated';
|
|
32
|
+
export * from './template-signer.generated';
|
|
29
33
|
export * from './user-base.generated';
|
|
@@ -42,5 +42,9 @@ __exportStar(require("./sign-request-signer-input.generated"), exports);
|
|
|
42
42
|
__exportStar(require("./sign-request-signer.generated"), exports);
|
|
43
43
|
__exportStar(require("./sign-request.generated"), exports);
|
|
44
44
|
__exportStar(require("./sign-requests.generated"), exports);
|
|
45
|
+
__exportStar(require("./sign-template.generated"), exports);
|
|
46
|
+
__exportStar(require("./sign-templates.generated"), exports);
|
|
47
|
+
__exportStar(require("./template-signer-input.generated"), exports);
|
|
48
|
+
__exportStar(require("./template-signer.generated"), exports);
|
|
45
49
|
__exportStar(require("./user-base.generated"), exports);
|
|
46
50
|
//# sourceMappingURL=index.generated.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.generated.js","sourceRoot":"","sources":["../../src/schemas/index.generated.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,wDAAsC;AACtC,wDAAsC;AACtC,gEAA8C;AAC9C,gEAA8C;AAC9C,0DAAwC;AACxC,0DAAwC;AACxC,8EAA4D;AAC5D,mFAAiE;AACjE,qFAAmE;AACnE,wFAAsE;AACtE,gFAA8D;AAC9D,6FAA2E;AAC3E,6FAA2E;AAC3E,wFAAsE;AACtE,kGAAgF;AAChF,kGAAgF;AAChF,6FAA2E;AAC3E,iFAA+D;AAC/D,yEAAuD;AACvD,gEAA8C;AAC9C,0EAAwD;AACxD,yEAAuD;AACvD,uEAAqD;AACrD,wEAAsD;AACtD,kEAAgD;AAChD,2DAAyC;AACzC,4DAA0C;AAC1C,wDAAsC"}
|
|
1
|
+
{"version":3,"file":"index.generated.js","sourceRoot":"","sources":["../../src/schemas/index.generated.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,wDAAsC;AACtC,wDAAsC;AACtC,gEAA8C;AAC9C,gEAA8C;AAC9C,0DAAwC;AACxC,0DAAwC;AACxC,8EAA4D;AAC5D,mFAAiE;AACjE,qFAAmE;AACnE,wFAAsE;AACtE,gFAA8D;AAC9D,6FAA2E;AAC3E,6FAA2E;AAC3E,wFAAsE;AACtE,kGAAgF;AAChF,kGAAgF;AAChF,6FAA2E;AAC3E,iFAA+D;AAC/D,yEAAuD;AACvD,gEAA8C;AAC9C,0EAAwD;AACxD,yEAAuD;AACvD,uEAAqD;AACrD,wEAAsD;AACtD,kEAAgD;AAChD,2DAAyC;AACzC,4DAA0C;AAC1C,4DAA0C;AAC1C,6DAA2C;AAC3C,oEAAkD;AAClD,8DAA4C;AAC5C,wDAAsC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as schemas from '.';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Sign Request (Base)
|
|
4
4
|
*
|
|
5
5
|
* A request to create a sign request object
|
|
6
6
|
*/
|
|
@@ -57,7 +57,7 @@ export interface SignRequestBase {
|
|
|
57
57
|
*/
|
|
58
58
|
prefill_tags?: schemas.SignRequestPrefillTag[];
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
60
|
+
* Set the number of days after which the created signature request will automatically expire if not completed. By default, we do not apply any expiration date on signature requests, and the signature request does not expire.
|
|
61
61
|
* Example: 2
|
|
62
62
|
*/
|
|
63
63
|
days_valid?: number;
|
|
@@ -71,4 +71,9 @@ export interface SignRequestBase {
|
|
|
71
71
|
* Example: true
|
|
72
72
|
*/
|
|
73
73
|
is_phone_verification_required_to_view?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* When a signature request is created from a template this field will indicate the id of that template.
|
|
76
|
+
* Example: 123075213-af2c8822-3ef2-4952-8557-52d69c2fe9cb
|
|
77
|
+
*/
|
|
78
|
+
template_id?: string;
|
|
74
79
|
}
|
|
@@ -6,17 +6,9 @@ import * as schemas from '.';
|
|
|
6
6
|
*/
|
|
7
7
|
export interface SignRequestCreateRequest extends schemas.SignRequestBase {
|
|
8
8
|
/**
|
|
9
|
-
* List of files to create a signing document from. This is currently
|
|
10
|
-
* limited to 10 files. Only the ID and type fields are required
|
|
11
|
-
* for each file. The array will be empty if the `source_files`
|
|
12
|
-
* are deleted.
|
|
9
|
+
* List of files to create a signing document from. This is currently limited to ten files. Only the ID and type fields are required for each file.
|
|
13
10
|
*/
|
|
14
|
-
source_files?: schemas.
|
|
15
|
-
/**
|
|
16
|
-
* Force a specific signature color (blue, black, or red).
|
|
17
|
-
* Example: blue
|
|
18
|
-
*/
|
|
19
|
-
signature_color?: 'blue' | 'black' | 'red';
|
|
11
|
+
source_files?: schemas.FileBase[];
|
|
20
12
|
/**
|
|
21
13
|
* Array of signers for the sign request. 35 is the
|
|
22
14
|
* max number of signers permitted.
|
|
@@ -20,4 +20,14 @@ export interface SignRequestSigner extends schemas.SignRequestCreateSigner {
|
|
|
20
20
|
* Example: https://example.com
|
|
21
21
|
*/
|
|
22
22
|
embed_url?: string;
|
|
23
|
+
/**
|
|
24
|
+
* This URL is specifically designed for
|
|
25
|
+
* signing documents within an HTML `iframe` tag.
|
|
26
|
+
* It will be returned in the response
|
|
27
|
+
* only if the `embed_url_external_user_id`
|
|
28
|
+
* parameter was passed in the
|
|
29
|
+
* `create sign request` call.
|
|
30
|
+
* Example: https://app.box.com/embed/sign/document/gfhr4222-a331-494b-808b-79bc7f3992a3/f14d7098-a331-494b-808b-79bc7f3992a4
|
|
31
|
+
*/
|
|
32
|
+
iframeable_embed_url?: string;
|
|
23
33
|
}
|
|
@@ -10,6 +10,10 @@ export interface SignRequest extends schemas.SignRequestBase {
|
|
|
10
10
|
* Example: sign-request
|
|
11
11
|
*/
|
|
12
12
|
type?: 'sign-request';
|
|
13
|
+
/**
|
|
14
|
+
* List of files to create a signing document from. This is currently limited to ten files. Only the ID and type fields are required for each file.
|
|
15
|
+
*/
|
|
16
|
+
source_files?: schemas.FileBase[];
|
|
13
17
|
/**
|
|
14
18
|
* Array of signers for the sign request
|
|
15
19
|
*/
|
|
@@ -40,7 +44,7 @@ export interface SignRequest extends schemas.SignRequestBase {
|
|
|
40
44
|
* Describes the status of the sign request
|
|
41
45
|
* Example: converting
|
|
42
46
|
*/
|
|
43
|
-
status?: 'converting' | 'created' | 'sent' | 'viewed' | 'signed' | 'cancelled' | 'declined' | 'error_converting' | 'error_sending' | 'expired';
|
|
47
|
+
status?: 'converting' | 'created' | 'sent' | 'viewed' | 'signed' | 'cancelled' | 'declined' | 'error_converting' | 'error_sending' | 'expired' | 'finalizing' | 'error_finalizing';
|
|
44
48
|
/**
|
|
45
49
|
* List of files that will be signed, which are copies of the original
|
|
46
50
|
* source files. A new version of these files are created as signers sign
|
|
@@ -52,8 +56,4 @@ export interface SignRequest extends schemas.SignRequestBase {
|
|
|
52
56
|
* Example: 2021-04-26T08:12:13.982Z
|
|
53
57
|
*/
|
|
54
58
|
auto_expire_at?: string;
|
|
55
|
-
/**
|
|
56
|
-
* List of files to create a signing document from. Only the ID and type fields are required for each file. The array will be empty if the `source_files` are deleted.
|
|
57
|
-
*/
|
|
58
|
-
source_files?: schemas.FileMini[];
|
|
59
59
|
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import * as schemas from '.';
|
|
2
|
+
/**
|
|
3
|
+
* Box Sign template
|
|
4
|
+
*
|
|
5
|
+
* A Box Sign template object
|
|
6
|
+
*/
|
|
7
|
+
export interface SignTemplate {
|
|
8
|
+
/**
|
|
9
|
+
* object type
|
|
10
|
+
* Example: sign-template
|
|
11
|
+
*/
|
|
12
|
+
type?: 'sign-template';
|
|
13
|
+
/**
|
|
14
|
+
* Template identifier.
|
|
15
|
+
* Example: 4206996024-14944f75-c34b-478a-95a1-264b1ff80d35
|
|
16
|
+
*/
|
|
17
|
+
id?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The name of the template.
|
|
20
|
+
* Example: Official contract
|
|
21
|
+
*/
|
|
22
|
+
name?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Subject of signature request email. This is cleaned by sign request. If this field is not passed, a default subject will be used.
|
|
25
|
+
* Example: Sign Request from Acme
|
|
26
|
+
*/
|
|
27
|
+
email_subject?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Message to include in signature request email. The field is cleaned through sanitization of specific characters. However, some html tags are allowed. Links included in the message are also converted to hyperlinks in the email. The message may contain the following html tags including `a`, `abbr`, `acronym`, `b`, `blockquote`, `code`, `em`, `i`, `ul`, `li`, `ol`, and `strong`. Be aware that when the text to html ratio is too high, the email may end up in spam filters. Custom styles on these tags are not allowed. If this field is not passed, a default message will be used.
|
|
30
|
+
* Example: Hello! Please sign the document below
|
|
31
|
+
*/
|
|
32
|
+
email_message?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Set the number of days after which the created signature request will automatically expire if not completed. By default, we do not apply any expiration date on signature requests, and the signature request does not expire.
|
|
35
|
+
* Example: 2
|
|
36
|
+
*/
|
|
37
|
+
days_valid?: number;
|
|
38
|
+
/**
|
|
39
|
+
* The destination folder to place final, signed document and signing
|
|
40
|
+
* log. Only `ID` and `type` fields are required. The root folder,
|
|
41
|
+
* folder ID `0`, cannot be used.
|
|
42
|
+
*/
|
|
43
|
+
parent_folder?: schemas.FolderMini;
|
|
44
|
+
/**
|
|
45
|
+
* List of files to create a signing document from. Only the ID and type fields are required for each file.
|
|
46
|
+
*/
|
|
47
|
+
source_files?: schemas.FileMini[];
|
|
48
|
+
/**
|
|
49
|
+
* Indicates if the template input fields are editable or not.
|
|
50
|
+
*/
|
|
51
|
+
are_fields_locked?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Indicates if the template document options are editable or not, for example renaming the document.
|
|
54
|
+
* Example: true
|
|
55
|
+
*/
|
|
56
|
+
are_options_locked?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Indicates if the template signers are editable or not.
|
|
59
|
+
*/
|
|
60
|
+
are_recipients_locked?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Indicates if the template email settings are editable or not.
|
|
63
|
+
* Example: true
|
|
64
|
+
*/
|
|
65
|
+
are_email_settings_locked?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Indicates if the template files are editable or not. This includes deleting or renaming template files.
|
|
68
|
+
* Example: true
|
|
69
|
+
*/
|
|
70
|
+
are_files_locked?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Array of signers for the template.
|
|
73
|
+
*/
|
|
74
|
+
signers?: schemas.TemplateSigner[];
|
|
75
|
+
/**
|
|
76
|
+
* Additional information on which fields are required and which fields are not editable.
|
|
77
|
+
*/
|
|
78
|
+
additional_info?: object;
|
|
79
|
+
/**
|
|
80
|
+
* Box's ready-sign link feature enables you to create a link to a signature request that you've created from a template. Use this link when you want to post a signature request on a public form — such as an email, social media post, or web page — without knowing who the signers will be. Note: The ready-sign link feature is limited to Enterprise Plus customers and not available to Box Verified Enterprises.
|
|
81
|
+
*/
|
|
82
|
+
ready_sign_link?: object;
|
|
83
|
+
/**
|
|
84
|
+
* Custom branding applied to notifications
|
|
85
|
+
* and signature requests.
|
|
86
|
+
*/
|
|
87
|
+
custom_branding?: object;
|
|
88
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sign-template.generated.js","sourceRoot":"","sources":["../../src/schemas/sign-template.generated.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as schemas from '.';
|
|
2
|
+
/**
|
|
3
|
+
* Box Sign templates
|
|
4
|
+
*
|
|
5
|
+
* The part of an API response that describes marker
|
|
6
|
+
* based pagination
|
|
7
|
+
*/
|
|
8
|
+
export interface SignTemplates {
|
|
9
|
+
/**
|
|
10
|
+
* A list of templates.
|
|
11
|
+
*/
|
|
12
|
+
entries?: schemas.SignTemplate[];
|
|
13
|
+
/**
|
|
14
|
+
* The marker for the start of the previous page of results.
|
|
15
|
+
* Example: JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii
|
|
16
|
+
*/
|
|
17
|
+
prev_marker?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sign-templates.generated.js","sourceRoot":"","sources":["../../src/schemas/sign-templates.generated.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as schemas from '.';
|
|
2
|
+
/**
|
|
3
|
+
* Template Signer Input
|
|
4
|
+
*
|
|
5
|
+
* Input created by a Signer on a Template
|
|
6
|
+
*/
|
|
7
|
+
export interface TemplateSignerInput extends schemas.SignRequestPrefillTag {
|
|
8
|
+
/**
|
|
9
|
+
* Type of input
|
|
10
|
+
* Example: text
|
|
11
|
+
*/
|
|
12
|
+
type?: 'signature' | 'date' | 'text' | 'checkbox' | 'radio' | 'dropdown';
|
|
13
|
+
/**
|
|
14
|
+
* Content type of input
|
|
15
|
+
* Example: text
|
|
16
|
+
*/
|
|
17
|
+
content_type?: 'signature' | 'initial' | 'stamp' | 'date' | 'checkbox' | 'text' | 'full_name' | 'first_name' | 'last_name' | 'company' | 'title' | 'email' | 'attachment' | 'radio' | 'dropdown';
|
|
18
|
+
/**
|
|
19
|
+
* Whether or not the input is required.
|
|
20
|
+
* Example: true
|
|
21
|
+
*/
|
|
22
|
+
is_required?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Index of page that the input is on.
|
|
25
|
+
* Example: 4
|
|
26
|
+
*/
|
|
27
|
+
page_index: number;
|
|
28
|
+
/**
|
|
29
|
+
* Document identifier.
|
|
30
|
+
* Example: 123075213-eb54b537-8b25-445e-87c1-5a1c67d8cbd7
|
|
31
|
+
*/
|
|
32
|
+
document_id?: string;
|
|
33
|
+
/**
|
|
34
|
+
* When the input is of the type `dropdown` this values will be filled with all the dropdown options.
|
|
35
|
+
* Example: Yes,No,Maybe
|
|
36
|
+
*/
|
|
37
|
+
dropdown_choices?: string[];
|
|
38
|
+
/**
|
|
39
|
+
* When the input is of type `radio` they can be grouped to gather with this identifier.
|
|
40
|
+
* Example: da317330-225a-4c72-89ad-0d6dcaaf4df6
|
|
41
|
+
*/
|
|
42
|
+
group_id?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Where the input is located on a page.
|
|
45
|
+
*/
|
|
46
|
+
coordinates?: object;
|
|
47
|
+
/**
|
|
48
|
+
* The size of the input.
|
|
49
|
+
*/
|
|
50
|
+
dimensions?: object;
|
|
51
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-signer-input.generated.js","sourceRoot":"","sources":["../../src/schemas/template-signer-input.generated.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as schemas from '.';
|
|
2
|
+
/**
|
|
3
|
+
* Signer fields for Templates
|
|
4
|
+
*
|
|
5
|
+
* The schema for a Signer for Templates
|
|
6
|
+
*/
|
|
7
|
+
export interface TemplateSigner {
|
|
8
|
+
inputs?: schemas.TemplateSignerInput[];
|
|
9
|
+
/**
|
|
10
|
+
* Email address of the signer
|
|
11
|
+
* Example: example@mail.com
|
|
12
|
+
*/
|
|
13
|
+
email?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Defines the role of the signer in the signature request. A role of
|
|
16
|
+
* `signer` needs to sign the document, a role `approver`
|
|
17
|
+
* approves the document and
|
|
18
|
+
* a `final_copy_reader` role only
|
|
19
|
+
* receives the final signed document and signing log.
|
|
20
|
+
* Example: signer
|
|
21
|
+
* @default signer
|
|
22
|
+
*/
|
|
23
|
+
role?: 'signer' | 'approver' | 'final_copy_reader';
|
|
24
|
+
/**
|
|
25
|
+
* Used in combination with an embed URL for a sender.
|
|
26
|
+
* After the sender signs, they will be
|
|
27
|
+
* redirected to the next `in_person` signer.
|
|
28
|
+
* Example: true
|
|
29
|
+
*/
|
|
30
|
+
is_in_person?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Order of the signer
|
|
33
|
+
* Example: 2
|
|
34
|
+
*/
|
|
35
|
+
order?: number;
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-signer.generated.js","sourceRoot":"","sources":["../../src/schemas/template-signer.generated.ts"],"names":[],"mappings":""}
|
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.2.1",
|
|
5
5
|
"description": "Official SDK for Box Plaform APIs",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"ajv": "^6.12.3",
|
|
40
40
|
"bluebird": "^3.7.2",
|
|
41
41
|
"http-status": "^1.4.1",
|
|
42
|
-
"jsonwebtoken": "^9.0.
|
|
42
|
+
"jsonwebtoken": "^9.0.2",
|
|
43
43
|
"merge-options": "^1.0.1",
|
|
44
44
|
"promise-queue": "^2.2.3",
|
|
45
45
|
"proxy-agent": "^6.3.0",
|
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
"overrides": {
|
|
94
94
|
"leche": {
|
|
95
95
|
"mocha": "^10.2.0"
|
|
96
|
-
}
|
|
96
|
+
},
|
|
97
|
+
"tough-cookie": "^4.1.3"
|
|
97
98
|
}
|
|
98
99
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,526 +0,0 @@
|
|
|
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.1.1](https://github.com/box/box-node-sdk/compare/v3.1.0...v3.1.1) (2023-07-19)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
## [3.1.0](https://github.com/box/box-node-sdk/compare/v3.0.0...v3.1.0) (2023-06-01)
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
### New Features and Enhancements
|
|
12
|
-
|
|
13
|
-
* 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))
|
|
14
|
-
|
|
15
|
-
### Bug Fixes
|
|
16
|
-
|
|
17
|
-
* 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)
|
|
18
|
-
|
|
19
|
-
## [3.0.0](https://github.com/box/box-node-sdk/compare/v2.10.0...v3.0.0) (2023-05-23)
|
|
20
|
-
|
|
21
|
-
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**.
|
|
22
|
-
|
|
23
|
-
### Breaking Changes
|
|
24
|
-
|
|
25
|
-
- Removed `use_index` usage. ([#812](https://github.com/box/box-node-sdk/pull/812)) ([d56799a](https://github.com/box/box-node-sdk/commit/d56799a61f42265d7785f99e92a449c58d125aef))
|
|
26
|
-
- Removed deprecated `BoxClient.batch()` and `BoxClient.batchExec()` method.
|
|
27
|
-
- Removed deprecated `CollaborationWhitelist` class, use `CollaborationAllowlist` instead.
|
|
28
|
-
- Removed deprecated `CollaborationAllowlist.getWhitelistedDomain()` method, use `CollaborationAllowlist.getAllowlistedDomain()` instead.
|
|
29
|
-
- Removed deprecated `CollaborationAllowlist.getAllWhitelistedDomains()` method, use `CollaborationAllowlist.getAllAllowlistedDomains()` instead.
|
|
30
|
-
- Remove deprecated `Files.getThumbnail(fileID: string, options?: Record<string, any>, callback?: Function)` method, use `Files.getRepresentationContent( fileID, representationType, options, callback)` instead.
|
|
31
|
-
|
|
32
|
-
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)
|
|
33
|
-
|
|
34
|
-
### Dependency Upgrades
|
|
35
|
-
- 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))
|
|
36
|
-
- 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))
|
|
37
|
-
|
|
38
|
-
## [2.10.0](https://github.com/box/box-node-sdk/compare/v2.9.0...v2.10.0) (2023-05-11)
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
### New Features and Enhancements
|
|
42
|
-
|
|
43
|
-
* 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))
|
|
44
|
-
* 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))
|
|
45
|
-
|
|
46
|
-
## [2.9.0](https://github.com/box/box-node-sdk/compare/v2.8.1...v2.9.0) (2023-04-19)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
### New Features and Enhancements
|
|
50
|
-
|
|
51
|
-
* 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))
|
|
52
|
-
|
|
53
|
-
### Bug Fixes
|
|
54
|
-
|
|
55
|
-
* 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))
|
|
56
|
-
|
|
57
|
-
### [2.8.1](https://github.com/box/box-node-sdk/compare/v2.8.0...v2.8.1) (2023-01-05)
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
### Bug Fixes
|
|
61
|
-
|
|
62
|
-
* Fix `getReadStream` delay reading ([#790](https://github.com/box/box-node-sdk/issues/790)) ([6bfc1ee](https://github.com/box/box-node-sdk/commit/6bfc1eebeb9a31606ff96127eeb1ad03d2f13d9c))
|
|
63
|
-
|
|
64
|
-
## [2.8.0](https://github.com/box/box-node-sdk/compare/v2.7.2...v2.8.0) (2022-12-21)
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
### New Features and Enhancements
|
|
68
|
-
|
|
69
|
-
* Session termination ([#782](https://github.com/box/box-node-sdk/issues/782)) ([7fb56c6](https://github.com/box/box-node-sdk/commit/7fb56c625f8eb03e6a5354b67a0debfd9e4ad7c8))
|
|
70
|
-
|
|
71
|
-
### [2.7.2](https://github.com/box/box-node-sdk/compare/v2.7.1...v2.7.2) (2022-11-10)
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
### Bug Fixes
|
|
75
|
-
|
|
76
|
-
* 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))
|
|
77
|
-
|
|
78
|
-
### [2.7.1](https://github.com/box/box-node-sdk/compare/v2.7.0...v2.7.1) (2022-10-28)
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
### Bug Fixes
|
|
82
|
-
|
|
83
|
-
* Export missing `RetentionType` ([#774](https://github.com/box/box-node-sdk/issues/774)) ([7e6b244](https://github.com/box/box-node-sdk/commit/7e6b244ba63d363ecc921be570140c9e1ed1d032))
|
|
84
|
-
|
|
85
|
-
## [2.7.0](https://github.com/box/box-node-sdk/compare/v2.6.0...v2.7.0) (2022-10-27)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
### New Features and Enhancements
|
|
89
|
-
|
|
90
|
-
* 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))
|
|
91
|
-
|
|
92
|
-
## [2.6.0](https://github.com/box/box-node-sdk/compare/v2.5.0...v2.6.0) (2022-09-23)
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
### New Features and Enhancements
|
|
96
|
-
|
|
97
|
-
* 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))
|
|
98
|
-
* Add sign request webhook ([#760](https://github.com/box/box-node-sdk/issues/760)) ([e92d1ab](https://github.com/box/box-node-sdk/commit/e92d1abee5faf58166f4892d7b2e6bc3c6480ac6))
|
|
99
|
-
* 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))
|
|
100
|
-
|
|
101
|
-
## [2.5.0](https://github.com/box/box-node-sdk/compare/v2.4.0...v2.5.0) (2022-08-09)
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
### New Features and Enhancements
|
|
105
|
-
|
|
106
|
-
* 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))
|
|
107
|
-
|
|
108
|
-
### Bug Fixes
|
|
109
|
-
|
|
110
|
-
* 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)
|
|
111
|
-
* 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))
|
|
112
|
-
|
|
113
|
-
## [2.4.0](https://github.com/box/box-node-sdk/compare/v2.3.0...v2.4.0) (2022-07-13)
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
### New Features and Enhancements
|
|
117
|
-
|
|
118
|
-
* 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))
|
|
119
|
-
* 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))
|
|
120
|
-
|
|
121
|
-
### Bug Fixes
|
|
122
|
-
|
|
123
|
-
* 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))
|
|
124
|
-
|
|
125
|
-
## [2.3.0](https://github.com/box/box-node-sdk/compare/v2.2.0...v2.3.0) (2022-04-28)
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
### New Features and Enhancements
|
|
129
|
-
|
|
130
|
-
* 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))
|
|
131
|
-
|
|
132
|
-
### Bug Fixes
|
|
133
|
-
|
|
134
|
-
* 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))
|
|
135
|
-
|
|
136
|
-
## [2.2.0](https://github.com/box/box-node-sdk/compare/v2.1.0...v2.2.0) (2022-04-20)
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
### New Features and Enhancements
|
|
140
|
-
|
|
141
|
-
* editable shared links ([#722](https://github.com/box/box-node-sdk/issues/722)) ([f0c0135](https://github.com/box/box-node-sdk/commit/f0c0135511fde46144e6c496432104321af443f6))
|
|
142
|
-
|
|
143
|
-
## [2.1.0](https://github.com/box/box-node-sdk/compare/v2.0.0...v2.1.0) (2022-03-28)
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
### New Features and Enhancements
|
|
147
|
-
|
|
148
|
-
* 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))
|
|
149
|
-
* 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))
|
|
150
|
-
* **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))
|
|
151
|
-
|
|
152
|
-
### Bug Fixes
|
|
153
|
-
|
|
154
|
-
* 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))
|
|
155
|
-
* 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)
|
|
156
|
-
|
|
157
|
-
## [2.0.0](https://github.com/box/box-node-sdk/compare/v1.39.0...v2.0.0) (2021-09-29)
|
|
158
|
-
|
|
159
|
-
### ⚠ BREAKING CHANGES
|
|
160
|
-
|
|
161
|
-
* Drop support for Node 6,7 ([#670](https://github.com/box/box-node-sdk/pull/670))
|
|
162
|
-
|
|
163
|
-
### New Features and Enhancements:
|
|
164
|
-
|
|
165
|
-
* Add support for is_external_collab_restricted User property ([#668](https://github.com/box/box-node-sdk/pull/668))
|
|
166
|
-
* Bump proxy-agent from 4.0.0 to 5.0.0 ([#664](https://github.com/box/box-node-sdk/pull/664))
|
|
167
|
-
|
|
168
|
-
## [1.39.0](https://github.com/box/box-node-sdk/compare/v1.38.0...v1.39.0) (2021-08-30)
|
|
169
|
-
|
|
170
|
-
### New Features and Enhancements:
|
|
171
|
-
|
|
172
|
-
* Add support for Box Sign API ([#658](https://github.com/box/box-node-sdk/pull/658))
|
|
173
|
-
* Enhance TS Imports ([#656](https://github.com/box/box-node-sdk/pull/656))
|
|
174
|
-
|
|
175
|
-
## [1.38.0](https://github.com/box/box-node-sdk/compare/v1.37.2...v1.38.0) (2021-08-05)
|
|
176
|
-
|
|
177
|
-
### New Features and Enhancements:
|
|
178
|
-
|
|
179
|
-
* Add sensitive-language event types for admin invites ([#648](https://github.com/box/box-node-sdk/pull/648))
|
|
180
|
-
* Use BetterDocs to adapt JSDocs to TypeScript ([#646](https://github.com/box/box-node-sdk/pull/646))
|
|
181
|
-
* Change ProxyAgent import to be dynamic ([#641](https://github.com/box/box-node-sdk/pull/641))
|
|
182
|
-
* New API for get files and file versions under retention ([#585](https://github.com/box/box-node-sdk/pull/585))
|
|
183
|
-
|
|
184
|
-
### Bug Fixes:
|
|
185
|
-
|
|
186
|
-
* Deeply freeze Config except Buffers and Readable streams ([#651](https://github.com/box/box-node-sdk/pull/651))
|
|
187
|
-
* Fix a typo in docs of src/managers/search.ts ([#649](https://github.com/box/box-node-sdk/pull/649))
|
|
188
|
-
* Update broken documentation link ([#647](https://github.com/box/box-node-sdk/pull/647))
|
|
189
|
-
* fix type annotations for exchangeToken functions ([#645](https://github.com/box/box-node-sdk/pull/645))
|
|
190
|
-
* Deprecate files getThumbnail API in favor of getRepresentationContent ([#627](https://github.com/box/box-node-sdk/pull/627))
|
|
191
|
-
|
|
192
|
-
## [1.37.2](https://github.com/box/box-node-sdk/compare/v1.37.1...v1.37.2) (2021-05-20)
|
|
193
|
-
|
|
194
|
-
### Bug Fixes:
|
|
195
|
-
|
|
196
|
-
* Fix backwards compatibility issue by moving some TypeScript @types as direct dependencies ([#630](https://github.com/box/box-node-sdk/pull/630))
|
|
197
|
-
|
|
198
|
-
## [1.37.1](https://github.com/box/box-node-sdk/compare/v1.37.0..v1.37.1) (2021-05-19)
|
|
199
|
-
|
|
200
|
-
### Bug Fixes:
|
|
201
|
-
|
|
202
|
-
* Insensitive language: replace whitelist with allowlist ([#625](https://github.com/box/box-node-sdk/pull/625))
|
|
203
|
-
|
|
204
|
-
## [1.37.0](https://github.com/box/box-node-sdk/compare/v1.36.0...v1.37.0) (2021-04-16)
|
|
205
|
-
|
|
206
|
-
### New Features and Enhancements:
|
|
207
|
-
|
|
208
|
-
* Add support for copyInstanceOnItemCopy field for metadata templates ([#572](https://github.com/box/box-node-sdk/pull/572))
|
|
209
|
-
|
|
210
|
-
### Bug Fixes:
|
|
211
|
-
|
|
212
|
-
* Fix webhook signature validation ([#568](https://github.com/box/box-node-sdk/pull/568))
|
|
213
|
-
* Update dependencies to patch security vulnerabilities ([#578](https://github.com/box/box-node-sdk/pull/578))
|
|
214
|
-
|
|
215
|
-
## [1.36.0](https://github.com/box/box-node-sdk/compare/v1.35.0...v1.36.0) (2021-01-27)
|
|
216
|
-
|
|
217
|
-
### New Features and Enhancements:
|
|
218
|
-
|
|
219
|
-
* Add folder lock functionality ([#560](https://github.com/box/box-node-sdk/pull/560))
|
|
220
|
-
* Add support for filtering groups by name ([#561](https://github.com/box/box-node-sdk/pull/561))
|
|
221
|
-
|
|
222
|
-
### Bug Fixes:
|
|
223
|
-
|
|
224
|
-
* Update proxy-agent to patch proxy support issue ([#563](https://github.com/box/box-node-sdk/pull/563))
|
|
225
|
-
* Update dependencies to patch security vulnerabilities ([#566](https://github.com/box/box-node-sdk/pull/566))
|
|
226
|
-
|
|
227
|
-
## [1.35.0](https://github.com/box/box-node-sdk/compare/v1.34.3...v1.35.0) (2020-11-02)
|
|
228
|
-
|
|
229
|
-
### New Features and Enhancements:
|
|
230
|
-
|
|
231
|
-
* Add support for search param to get shared link items ([#547](https://github.com/box/box-node-sdk/pull/547))
|
|
232
|
-
|
|
233
|
-
## [1.34.3](https://github.com/box/box-node-sdk/compare/v1.34.2...v1.34.3) (2020-10-02)
|
|
234
|
-
|
|
235
|
-
### Bug Fixes:
|
|
236
|
-
|
|
237
|
-
* Upgrade ajv dependency ([#545](https://github.com/box/box-node-sdk/pull/545))
|
|
238
|
-
|
|
239
|
-
## [1.34.2](https://github.com/box/box-node-sdk/compare/v1.34.1...v1.34.2) (2020-08-20)
|
|
240
|
-
|
|
241
|
-
* Make iterator bug fix for uploading files non breaking ([#534](https://github.com/box/box-node-sdk/pull/534))
|
|
242
|
-
|
|
243
|
-
## [1.34.1](https://github.com/box/box-node-sdk/compare/v1.34.0...v1.34.1) (2020-08-17)
|
|
244
|
-
|
|
245
|
-
* Fix iterator bug for uploading new file versions ([#531](https://github.com/box/box-node-sdk/pull/531))
|
|
246
|
-
|
|
247
|
-
## [1.34.0](https://github.com/box/box-node-sdk/compare/v1.33.0...v1.34.0) (2020-08-04)
|
|
248
|
-
|
|
249
|
-
* Add zip functionality ([#525](https://github.com/box/box-node-sdk/pull/525))
|
|
250
|
-
* Add proxy support for `http`, `https`, `socks` and `pac` protocols ([#529](https://github.com/box/box-node-sdk/pull/529))
|
|
251
|
-
|
|
252
|
-
## [1.33.0](https://github.com/box/box-node-sdk/compare/v1.32.0...v1.33.0) (2020-06-25)
|
|
253
|
-
|
|
254
|
-
* Add path parameter sanitization ([#505](https://github.com/box/box-node-sdk/pull/505))
|
|
255
|
-
* Add support for all streams for uploading files ([#519](https://github.com/box/box-node-sdk/pull/519))
|
|
256
|
-
|
|
257
|
-
## [1.32.0](https://github.com/box/box-node-sdk/compare/v1.31.0...v1.32.0) (2020-04-01)
|
|
258
|
-
|
|
259
|
-
* 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)).
|
|
260
|
-
* 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)).
|
|
261
|
-
* 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)).
|
|
262
|
-
|
|
263
|
-
## [1.31.0](https://github.com/box/box-node-sdk/compare/v1.30.0...v1.31.0) (2020-02-13)
|
|
264
|
-
|
|
265
|
-
* Fixed Authentication Request Retries
|
|
266
|
-
* Added marker-based paging for users endpoints
|
|
267
|
-
* Added `getNextMarker()` to PagingIterator to get the next marker
|
|
268
|
-
|
|
269
|
-
## [1.30.0](https://github.com/box/box-node-sdk/compare/v1.29.1...v1.30.0) (2019-11-21)
|
|
270
|
-
|
|
271
|
-
* Deprecated Batch API methods
|
|
272
|
-
* Added support for [token exchange](./lib/box-client.js#L495) using shared links
|
|
273
|
-
|
|
274
|
-
## [1.29.1](https://github.com/box/box-node-sdk/compare/v1.29.0...v1.29.1) (2019-08-22)
|
|
275
|
-
|
|
276
|
-
* Fixed an issue where JWT authentication requests could fail after being rate limited
|
|
277
|
-
|
|
278
|
-
## [1.29.0](https://github.com/box/box-node-sdk/compare/v1.28.0...v1.29.0) (2019-04-25)
|
|
279
|
-
|
|
280
|
-
* Added convenience methods for setting metadata on [files](./docs/metadata.md#set-metadata-on-a-file)
|
|
281
|
-
and [folders](./docs/metadata.md#set-metadata-on-a-folder) ([#376](https://github.com/box/box-node-sdk/pull/376))
|
|
282
|
-
|
|
283
|
-
## [1.28.0](https://github.com/box/box-node-sdk/compare/v1.27.0...v1.28.0) (2019-03-28)
|
|
284
|
-
|
|
285
|
-
* Added methods for [moving](./docs/web-links.md#move-a-web-link) and [copying](./docs/web-links.md#move-a-web-link)
|
|
286
|
-
weblinks, as well as [adding or removing from a collection](./docs/web-links.md#add-web-link-to-a-collection)
|
|
287
|
-
|
|
288
|
-
## [1.27.0](https://github.com/box/box-node-sdk/compare/v1.26.2...v1.27.0) (2019-02-28)
|
|
289
|
-
|
|
290
|
-
* Added the trace ID from API response headers to error messages for easier debugging
|
|
291
|
-
* Added more safety checks in the error flow to protect against throwing when handling a malformed request
|
|
292
|
-
* Added support for [retrieving a user's avatar image](./docs/users.md#get-user-avatar)
|
|
293
|
-
|
|
294
|
-
## [1.26.2](https://github.com/box/box-node-sdk/compare/v1.26.1...v1.26.2) (2019-02-22)
|
|
295
|
-
|
|
296
|
-
* Fixed an error where under high request rates, code in the error handling logic could throw when handling a
|
|
297
|
-
malformed request
|
|
298
|
-
|
|
299
|
-
## [1.26.1](https://github.com/box/box-node-sdk/compare/v1.26.0...v1.26.1) (2019-02-12)
|
|
300
|
-
|
|
301
|
-
* Fixed an error where some methods could throw an error when constructing an iterator
|
|
302
|
-
|
|
303
|
-
## [1.26.0](https://github.com/box/box-node-sdk/compare/v1.25.0...v1.26.0) (2019-02-12)
|
|
304
|
-
|
|
305
|
-
* Added support for [replying to a comment](./docs/comments.md#reply-to-a-comment) (thanks @jpan-box!)
|
|
306
|
-
* Fixed an issue where calling `client.events.get()` could return an iterator that would only iterate over
|
|
307
|
-
the first chunk of events. This method will now always return the raw JSON data in order to enable manual
|
|
308
|
-
paging. For automatic paging through events, `client.events.getEventStream()` or
|
|
309
|
-
`client.events.getEnterpriseEventStream()` should be used instead.
|
|
310
|
-
|
|
311
|
-
## [1.25.0](https://github.com/box/box-node-sdk/compare/v1.24.1...v1.25.0) (2019-01-24)
|
|
312
|
-
|
|
313
|
-
* Added the `retryStrategy` config parameter to allow customizing how the SDK retries failing requests
|
|
314
|
-
|
|
315
|
-
## [1.24.1](https://github.com/box/box-node-sdk/compare/v1.24.0...v1.24.1) (2019-01-11)
|
|
316
|
-
|
|
317
|
-
* Fixed an issue where token expiration was not being correctly handled
|
|
318
|
-
|
|
319
|
-
## [1.24.0](https://github.com/box/box-node-sdk/compare/v1.23.0...v1.24.0) (2018-12-10)
|
|
320
|
-
|
|
321
|
-
* Added a configuration option for populating the first-party client analytics header information
|
|
322
|
-
|
|
323
|
-
## [1.23.0](https://github.com/box/box-node-sdk/compare/vA...v1.23.0) (2018-11-21)
|
|
324
|
-
|
|
325
|
-
* Added an `etag` option to common file and folder methods to allow handling race conditions
|
|
326
|
-
* [`client.files.update()`](./docs/files.md#update-a-files-information)
|
|
327
|
-
* [`client.files.delete()`](./docs/files.md#delete-a-file)
|
|
328
|
-
* [`client.files.deletePermanently()`](./docs/trash.md#delete-a-file-from-the-trash)
|
|
329
|
-
* [`client.files.deleteVersion()`](./docs/files.md#delete-a-previous-file-version)
|
|
330
|
-
* [`client.folders.update()`](./docs/folders.md#update-a-folders-information)
|
|
331
|
-
* [`client.folders.delete()`](./docs/folders.md#delete-a-folder)
|
|
332
|
-
* [`client.folders.deletePermanently()`](./docs/trash.md#delete-a-folder-from-the-trash)
|
|
333
|
-
|
|
334
|
-
## [1.22.1](https://github.com/box/box-node-sdk/compare/v1.22.0...v1.22.1) (2018-11-15)
|
|
335
|
-
|
|
336
|
-
* Fixed an issue where retrying JWT auth token requests would sometimes fail due to a non-unique `jti` claim
|
|
337
|
-
|
|
338
|
-
## [1.22.0](https://github.com/box/box-node-sdk/compare/v1.21.0...v1.22.0) (2018-09-17)
|
|
339
|
-
|
|
340
|
-
* Chunked Uploader methods now return promises for [simpler handling of chunked uploads](./docs/files.md#automatic-uploader)
|
|
341
|
-
* File attributes to set on the newly-uploaded file can now be
|
|
342
|
-
[passed via `options.fileAttributes`](./docs/files.md#automatic-uploader) when creating a Chunked Uploader
|
|
343
|
-
|
|
344
|
-
## [1.21.0](https://github.com/box/box-node-sdk/compare/v1.20.0...v1.21.0) (2018-09-13)
|
|
345
|
-
|
|
346
|
-
* Added the ability to close an Event Stream by calling `eventStream.destroy()` (thanks @boneskull!)
|
|
347
|
-
* Improved error messages related to certain authentication failure cases
|
|
348
|
-
|
|
349
|
-
## [1.20.0](https://github.com/box/box-node-sdk/compare/v1.19.0...v1.20.0) (2018-08-09)
|
|
350
|
-
|
|
351
|
-
* Added missing values to the `client.webhooks.triggerTypes` enum (thanks @MathersMax!)
|
|
352
|
-
* Added support for [Metadata Cascade Policies](./docs/metadata.md#create-cascade-policy)
|
|
353
|
-
|
|
354
|
-
## [1.19.0](https://github.com/box/box-node-sdk/compare/v1.18.0...v1.19.0) (2018-06-14)
|
|
355
|
-
|
|
356
|
-
* Added `generateRepresentations` option to [`files.getRepresentationContent()`](./docs/files.md#get-representation-content)
|
|
357
|
-
|
|
358
|
-
## [1.18.0](https://github.com/box/box-node-sdk/compare/v1.17.0...v1.18.0) (2018-05-24)
|
|
359
|
-
|
|
360
|
-
* Updated dependencies to resolve potential security issues:
|
|
361
|
-
* `request@2.87.0`
|
|
362
|
-
* Transitive dependencies of `jsonwebtoken@8.2.1`
|
|
363
|
-
* Added a static `BoxSDK.getBasicClient()` method to enable creating a client without needing
|
|
364
|
-
to specify a client ID and secret (thanks to @cbetta)
|
|
365
|
-
|
|
366
|
-
## [1.17.0](https://github.com/box/box-node-sdk/compare/v1.16.1...v1.17.0) (2018-05-10)
|
|
367
|
-
|
|
368
|
-
* Updated dependencies: `request@2.85.0`, `jsonwebtoken@8.2.1`
|
|
369
|
-
* Added support for [Storage Policies](./docs/storage-policies.md)
|
|
370
|
-
* Added the option to use a Token Store for caching tokens with App Auth using JWT
|
|
371
|
-
|
|
372
|
-
## [1.16.1](https://github.com/box/box-node-sdk/compare/v1.16.0...v1.16.1) (2018-04-26)
|
|
373
|
-
|
|
374
|
-
* Fixed a bug where metadata template deletion would not properly return results via callback
|
|
375
|
-
|
|
376
|
-
## [1.16.0](https://github.com/box/box-node-sdk/compare/v1.15.0...v1.16.0) (2018-04-10)
|
|
377
|
-
|
|
378
|
-
* 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)
|
|
379
|
-
|
|
380
|
-
## [1.15.0](https://github.com/box/box-node-sdk/compare/v1.14.1...v1.15.0) (2018-03-29)
|
|
381
|
-
|
|
382
|
-
* Fixed [`client.webhooks.validateMessage() and `sdk.validateWebhookMessage()`](https://github.com/box/box-node-sdk/blob/main/docs/webhooks.md#validate-a-webhook-message)
|
|
383
|
-
to accept the request body as an `Object`
|
|
384
|
-
* Fixed `sdk.configure()` to correct reconfigure all options
|
|
385
|
-
* Improved error messages for API errors and added the request object as `error.request` for easier debugging
|
|
386
|
-
|
|
387
|
-
## [1.14.1](https://github.com/box/box-node-sdk/compare/v1.14.0...v1.14.1) (2018-03-13)
|
|
388
|
-
|
|
389
|
-
* Fixed a bug when `files.getReadStream()` was called with null options
|
|
390
|
-
|
|
391
|
-
## [1.14.0](https://github.com/box/box-node-sdk/compare/v1.13.0...v1.14.0) (2018-03-12)
|
|
392
|
-
|
|
393
|
-
* Added support for [getting a metadata template by ID](./docs/metadata.md#get-by-id)
|
|
394
|
-
* Added a `byteRange` option to [file download](./docs/files.md#download-a-file) to support partial file download
|
|
395
|
-
* Improved error messages when using promises and in authentication flows
|
|
396
|
-
|
|
397
|
-
## [1.13.0](https://github.com/box/box-node-sdk/compare/v1.12.1...v1.13.0) (2018-03-01)
|
|
398
|
-
|
|
399
|
-
* Added support for getting a [stream of file representation contents](./docs/files.md#get-representation-content)
|
|
400
|
-
* Switched to using exponential backoff for request retries
|
|
401
|
-
|
|
402
|
-
## [1.12.1](https://github.com/box/box-node-sdk/compare/v1.12.0...v1.12.1) (2018-01-25)
|
|
403
|
-
|
|
404
|
-
* Fixed an issue where chunked uploader would not work with response streams from the request library
|
|
405
|
-
(0e7014561f9cd0f7f38f98536b3f0c3946231d2e)
|
|
406
|
-
|
|
407
|
-
## [1.12.0](https://github.com/box/box-node-sdk/compare/v1.11.0...v1.12.0) (2018-01-11)
|
|
408
|
-
|
|
409
|
-
* Added support for [metadata template deletion](./docs/metadata.md#delete-metadata-template)
|
|
410
|
-
|
|
411
|
-
## [1.11.0](https://github.com/box/box-node-sdk/compare/v1.10.1...v1.11.0) (2017-12-12)
|
|
412
|
-
|
|
413
|
-
* Added options to preserve file timestamps on [file upload](./docs/files.md#upload-a-file)
|
|
414
|
-
and to rename a file or preserve modification timestamp on [new version upload](./docs/files.md#upload-a-new-version-of-a-file)
|
|
415
|
-
* Added [Collaboration Whitelist](./docs/collaboration-whitelist.md) functionality to allow enterprise admins
|
|
416
|
-
to control which external users can collaborate on their content
|
|
417
|
-
* Added an option to Token Exchange to generate [annotator tokens](./docs/authentication.md#annotator-tokens) for use with Box View
|
|
418
|
-
|
|
419
|
-
## [1.10.1](https://github.com/box/box-node-sdk/compare/v1.10.0...v1.10.1) (2017-11-28)
|
|
420
|
-
|
|
421
|
-
* Updated to jsonwebtoken@8.1.0 to fix an issue where some users were getting
|
|
422
|
-
an error when using App Auth
|
|
423
|
-
|
|
424
|
-
## [1.10.0](https://github.com/box/box-node-sdk/compare/v1.9.0...v1.10.0) (2017-01-14)
|
|
425
|
-
|
|
426
|
-
* Added support for [Terms of Service](./docs/terms-of-service.md) endpoints
|
|
427
|
-
* Fixed a bug where receiving a collection without paging parameters from the API
|
|
428
|
-
would cause the SDK to throw an exception when using the `iterators` SDK option.
|
|
429
|
-
Now, this will return an iterator over the items returned by the API.
|
|
430
|
-
* Fixed a bug in Token Exchange where passing multiple scopes would result in an error
|
|
431
|
-
* Added support for [getting Representations info on a file](./docs/files.md#get-representation-info)
|
|
432
|
-
|
|
433
|
-
## [1.9.0](https://github.com/box/box-node-sdk/compare/v1.8.0...v1.9.0) (2017-09-12)
|
|
434
|
-
|
|
435
|
-
* Fixed token methods to return bluebird Promises instead of native Promises
|
|
436
|
-
* Added support for the `notify` and `can_view_path` options on Collaborations
|
|
437
|
-
|
|
438
|
-
## [1.8.0](https://github.com/box/box-node-sdk/compare/v1.7.0...v1.8.0) (2017-08-21)
|
|
439
|
-
|
|
440
|
-
* Added support for [Batch API](./docs/client.md#batch-api)
|
|
441
|
-
* Fixed a bug where the Event Stream would make more API calls than necessary,
|
|
442
|
-
potentially hitting Box API rate limits
|
|
443
|
-
* Added Promise support to methods on the SDK object
|
|
444
|
-
* Added Node.js version to the User-Agent header that the SDK sends
|
|
445
|
-
* Fixed a bug where using multiple Persistent Clients instances could cause some
|
|
446
|
-
clients to end up with expired tokens
|
|
447
|
-
|
|
448
|
-
## [1.7.0](https://github.com/box/box-node-sdk/compare/v1.6.0...v1.7.0) (2017-07-19)
|
|
449
|
-
|
|
450
|
-
* 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
|
|
451
|
-
|
|
452
|
-
## [1.6.0](https://github.com/box/box-node-sdk/compare/v1.5.1...v1.6.0) (2017-06-23)
|
|
453
|
-
|
|
454
|
-
* Added [Recent Items](./docs/recent-items.md) support
|
|
455
|
-
* Updated app auth expiration time default value and validation
|
|
456
|
-
|
|
457
|
-
## [1.5.1](https://github.com/box/box-node-sdk/compare/v1.5.0...v1.5.1) (2017-06-15)
|
|
458
|
-
|
|
459
|
-
* Revert deep-freezing Config properties, since it was causing errors
|
|
460
|
-
|
|
461
|
-
## [1.5.0](https://github.com/box/box-node-sdk/compare/v1.4.2...v1.5.0) (2017-06-15)
|
|
462
|
-
|
|
463
|
-
* Added support for [Token Exchange](./docs/authentication.md#token-exchange),
|
|
464
|
-
which allows a client to get downscoped tokens suitable for passing to a browser
|
|
465
|
-
app or worker process.
|
|
466
|
-
* Ensured deeply-nested Config properties are immutable
|
|
467
|
-
|
|
468
|
-
## [1.4.2](https://github.com/box/box-node-sdk/compare/v1.4.1...v1.4.2) (2017-05-22)
|
|
469
|
-
|
|
470
|
-
* Fixed `BoxSDK.getPreconfiguredInstance()` to configure webhook keys
|
|
471
|
-
|
|
472
|
-
## [1.4.1](https://github.com/box/box-node-sdk/compare/v1.4.0...v1.4.1) (2017-05-22)
|
|
473
|
-
|
|
474
|
-
* Fixed `BoxSDK.getPreconfiguredInstance()` when app auth setttings are not populated
|
|
475
|
-
|
|
476
|
-
## [1.4.0](https://github.com/box/box-node-sdk/compare/v1.3.0...v1.4.0) (2017-05-19)
|
|
477
|
-
|
|
478
|
-
* Added support for [file collaborations](./docs/collaborations.md#add-a-collaboration).
|
|
479
|
-
Users can now invite others to collaborate on single files.
|
|
480
|
-
See [the blog post](https://blog.box.com/blog/file-collaboration-api/) for more information.
|
|
481
|
-
* Fixed an issue where users were unable to use JWT Server Auth when their computers' clocks
|
|
482
|
-
were not synchronized with the Box API servers.
|
|
483
|
-
* All asynchronous client methods now return Promises in addition to taking a
|
|
484
|
-
(now-optional) callback parameter, so you can write more modern JS with the SDK.
|
|
485
|
-
* The SDK can now be preconfigured using a JSON blob that can be downloaded in the
|
|
486
|
-
Box Dev Console for JWT Server Authentication apps, making it easier to get started
|
|
487
|
-
developing!
|
|
488
|
-
* Added support for [chunked upload](./docs/files.md#chunked-upload), where a large
|
|
489
|
-
file can be uploaded one piece at a time. This makes large file uploads much faster
|
|
490
|
-
and more reliable, since parts can be uploaded in parallel and failed parts can be
|
|
491
|
-
retried in isolation.
|
|
492
|
-
* Added an `is_confirmed` option to [email alias creation](./docs/users.md#add-email-alias) for
|
|
493
|
-
admins to auto-confirm the alias.
|
|
494
|
-
* Added support for the [Enterprise Events stream](./docs/events.md#enterprise-events).
|
|
495
|
-
* Added an option to have collections methods (e.g. `folders.getItems()`,
|
|
496
|
-
`enterprise.getUsers()`, etc) return [async iterators](./README.md#iterators) that will automatically
|
|
497
|
-
page through the collection. This conforms to the [proposed async iteration spec](https://github.com/tc39/proposal-async-iteration),
|
|
498
|
-
which will eventually allow them to be used in ergonomic for-await-of loop syntax.
|
|
499
|
-
|
|
500
|
-
## [1.3.0](https://github.com/box/box-node-sdk/compare/v1.2.0...v1.3.0) (2017-01-24)
|
|
501
|
-
|
|
502
|
-
* Added `BoxSDK.validateWebhookMessage()` and `client.webhooks.validateMessage()` for validating webhook messages from Box
|
|
503
|
-
|
|
504
|
-
## [1.2.0](https://github.com/box/box-node-sdk/compare/v1.1.0...v1.2.0) (2016-12-12)
|
|
505
|
-
|
|
506
|
-
* Added methods for all API endpoints; we now have full API coverage :tada:
|
|
507
|
-
* Added support for renaming a file or folder on copy
|
|
508
|
-
* Added `client.asUser(userID)` and `client.asSelf()` to support making calls on behalf of managed users
|
|
509
|
-
* Fixed event streams so they don't go into an infinite error loop when auth expires
|
|
510
|
-
* Fixed an error where App Auth clients would not be able to authorize due to clock skew
|
|
511
|
-
* Fixed the `mdfilters` parameter in `client.search.query()` to support metadata search
|
|
512
|
-
* Cloned options objects to prevent modification of passed-in objects by the SDK
|
|
513
|
-
* Added better error messaging to the sample app
|
|
514
|
-
|
|
515
|
-
## [1.1.0](https://github.com/box/box-node-sdk/compare/v1.0.0...v1.1.0) (2016-09-27)
|
|
516
|
-
|
|
517
|
-
* Added endpoint to get a file's tasks
|
|
518
|
-
* Fixed issues with stream uploads
|
|
519
|
-
* Improved performance of file uploads
|
|
520
|
-
* Added endpoints to delete files and folders from trash
|
|
521
|
-
* Added endpoint to get a trashed folder
|
|
522
|
-
* Upgraded request dependency to fix ReDoS vulnerability
|
|
523
|
-
|
|
524
|
-
## [1.0.0] (2016-07-13)
|
|
525
|
-
|
|
526
|
-
Initial release.
|