box-node-sdk 1.38.0 → 1.39.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.
Files changed (53) hide show
  1. package/CHANGELOG.md +6 -1
  2. package/lib/box-client.d.ts +3 -1
  3. package/lib/box-client.js +55 -26
  4. package/lib/box-client.js.map +1 -1
  5. package/lib/managers/sign-requests.generated.d.ts +92 -0
  6. package/lib/managers/sign-requests.generated.js +97 -0
  7. package/lib/managers/sign-requests.generated.js.map +1 -0
  8. package/lib/schemas/file-base.generated.d.ts +32 -0
  9. package/lib/schemas/file-base.generated.js +3 -0
  10. package/lib/schemas/file-base.generated.js.map +1 -0
  11. package/lib/schemas/file-mini.generated.d.ts +41 -0
  12. package/lib/schemas/file-mini.generated.js +3 -0
  13. package/lib/schemas/file-mini.generated.js.map +1 -0
  14. package/lib/schemas/file-version-base.generated.d.ts +19 -0
  15. package/lib/schemas/file-version-base.generated.js +3 -0
  16. package/lib/schemas/file-version-base.generated.js.map +1 -0
  17. package/lib/schemas/file-version-mini.generated.d.ts +14 -0
  18. package/lib/schemas/file-version-mini.generated.js +3 -0
  19. package/lib/schemas/file-version-mini.generated.js.map +1 -0
  20. package/lib/schemas/folder-base.generated.d.ts +32 -0
  21. package/lib/schemas/folder-base.generated.js +3 -0
  22. package/lib/schemas/folder-base.generated.js.map +1 -0
  23. package/lib/schemas/folder-mini.generated.d.ts +31 -0
  24. package/lib/schemas/folder-mini.generated.js +3 -0
  25. package/lib/schemas/folder-mini.generated.js.map +1 -0
  26. package/lib/schemas/index.d.ts +13 -0
  27. package/lib/schemas/index.js +26 -0
  28. package/lib/schemas/index.js.map +1 -0
  29. package/lib/schemas/sign-request-create-request.generated.d.ts +62 -0
  30. package/lib/schemas/sign-request-create-request.generated.js +3 -0
  31. package/lib/schemas/sign-request-create-request.generated.js.map +1 -0
  32. package/lib/schemas/sign-request-create-signer.generated.d.ts +38 -0
  33. package/lib/schemas/sign-request-create-signer.generated.js +3 -0
  34. package/lib/schemas/sign-request-create-signer.generated.js.map +1 -0
  35. package/lib/schemas/sign-request-prefill-tag.generated.d.ts +28 -0
  36. package/lib/schemas/sign-request-prefill-tag.generated.js +3 -0
  37. package/lib/schemas/sign-request-prefill-tag.generated.js.map +1 -0
  38. package/lib/schemas/sign-request-signer-input.generated.d.ts +18 -0
  39. package/lib/schemas/sign-request-signer-input.generated.js +3 -0
  40. package/lib/schemas/sign-request-signer-input.generated.js.map +1 -0
  41. package/lib/schemas/sign-request-signer.generated.d.ts +23 -0
  42. package/lib/schemas/sign-request-signer.generated.js +3 -0
  43. package/lib/schemas/sign-request-signer.generated.js.map +1 -0
  44. package/lib/schemas/sign-request.generated.d.ts +50 -0
  45. package/lib/schemas/sign-request.generated.js +3 -0
  46. package/lib/schemas/sign-request.generated.js.map +1 -0
  47. package/lib/schemas/sign-requests.generated.d.ts +27 -0
  48. package/lib/schemas/sign-requests.generated.js +3 -0
  49. package/lib/schemas/sign-requests.generated.js.map +1 -0
  50. package/lib/util/serializable.d.ts +10 -0
  51. package/lib/util/serializable.js +18 -0
  52. package/lib/util/serializable.js.map +1 -0
  53. package/package.json +9 -1
package/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Changelog
2
2
 
3
- ## Next Release
3
+ ## 1.39.0 (2021-08-30)
4
+
5
+ **New Features and Enhancements:**
6
+
7
+ - Add support for Box Sign API ([#658](https://github.com/box/box-node-sdk/pull/658))
8
+ - Enhance TS Imports ([#656](https://github.com/box/box-node-sdk/pull/656))
4
9
 
5
10
  ## 1.38.0 (2021-08-05)
6
11
 
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * @fileoverview Box API Client
3
3
  */
4
+ import SignRequests from './managers/sign-requests.generated';
4
5
  /**
5
6
  * A collaboration role constant
6
7
  * @typedef {string} CollaborationRole
@@ -51,6 +52,7 @@ declare class BoxClient {
51
52
  collaborationAllowlist: any;
52
53
  termsOfService: any;
53
54
  storagePolicies: any;
55
+ signRequests: SignRequests;
54
56
  _batch: any;
55
57
  collaborationRoles: Record<string, CollaborationRole>;
56
58
  itemTypes: Record<string, ItemType>;
@@ -193,7 +195,7 @@ declare class BoxClient {
193
195
  * @param {APIRequest~Callback} callback - passed final API response or err if request failed
194
196
  * @returns {void}
195
197
  */
196
- del(path: string, params: object | null, callback: Function): any;
198
+ del(path: string, params: object | null, callback?: Function): any;
197
199
  /**
198
200
  * Makes an OPTIONS call to a Box API V2 endpoint
199
201
  *
package/lib/box-client.js CHANGED
@@ -2,13 +2,41 @@
2
2
  /**
3
3
  * @fileoverview Box API Client
4
4
  */
5
+ var __importDefault = (this && this.__importDefault) || function (mod) {
6
+ return (mod && mod.__esModule) ? mod : { "default": mod };
7
+ };
5
8
  var bluebird_1 = require("bluebird");
6
9
  // ------------------------------------------------------------------------------
10
+ // API Resource Managers
11
+ // ------------------------------------------------------------------------------
12
+ var collaboration_allowlist_1 = __importDefault(require("./managers/collaboration-allowlist"));
13
+ var collaborations_1 = __importDefault(require("./managers/collaborations"));
14
+ var collections_1 = __importDefault(require("./managers/collections"));
15
+ var comments_1 = __importDefault(require("./managers/comments"));
16
+ var device_pins_1 = __importDefault(require("./managers/device-pins"));
17
+ var enterprise_1 = __importDefault(require("./managers/enterprise"));
18
+ var events_1 = __importDefault(require("./managers/events"));
19
+ var files_1 = __importDefault(require("./managers/files"));
20
+ var folders_1 = __importDefault(require("./managers/folders"));
21
+ var groups_1 = __importDefault(require("./managers/groups"));
22
+ var legal_hold_policies_1 = __importDefault(require("./managers/legal-hold-policies"));
23
+ var metadata_1 = __importDefault(require("./managers/metadata"));
24
+ var recent_items_1 = __importDefault(require("./managers/recent-items"));
25
+ var retention_policies_1 = __importDefault(require("./managers/retention-policies"));
26
+ var search_1 = __importDefault(require("./managers/search"));
27
+ var shared_items_1 = __importDefault(require("./managers/shared-items"));
28
+ var sign_requests_generated_1 = __importDefault(require("./managers/sign-requests.generated"));
29
+ var storage_policies_1 = __importDefault(require("./managers/storage-policies"));
30
+ var tasks_1 = __importDefault(require("./managers/tasks"));
31
+ var terms_of_service_1 = __importDefault(require("./managers/terms-of-service"));
32
+ var trash_1 = __importDefault(require("./managers/trash"));
33
+ var users_1 = __importDefault(require("./managers/users"));
34
+ var web_links_1 = __importDefault(require("./managers/web-links"));
35
+ var webhooks_1 = __importDefault(require("./managers/webhooks"));
36
+ // ------------------------------------------------------------------------------
7
37
  // Requirements
8
38
  // ------------------------------------------------------------------------------
9
39
  var util = require('util'), qs = require('querystring'), errors = require('./util/errors'), httpStatusCodes = require('http-status'), isIP = require('net').isIP, merge = require('merge-options'), PagingIterator = require('./util/paging-iterator'), pkg = require('../package.json');
10
- // API Resource Managers
11
- var Users = require('./managers/users'), Files = require('./managers/files'), Folders = require('./managers/folders'), Collaborations = require('./managers/collaborations'), Groups = require('./managers/groups'), Comments = require('./managers/comments'), SharedItems = require('./managers/shared-items'), Metadata = require('./managers/metadata'), Collections = require('./managers/collections'), Events = require('./managers/events'), Search = require('./managers/search'), Tasks = require('./managers/tasks'), Trash = require('./managers/trash'), Enterprise = require('./managers/enterprise'), LegalHoldPolicies = require('./managers/legal-hold-policies'), WebLinks = require('./managers/web-links'), RetentionPolicies = require('./managers/retention-policies'), DevicePins = require('./managers/device-pins'), Webhooks = require('./managers/webhooks'), RecentItems = require('./managers/recent-items'), CollaborationAllowlist = require('./managers/collaboration-allowlist'), TermsOfService = require('./managers/terms-of-service'), StoragePolicies = require('./managers/storage-policies');
12
40
  // ------------------------------------------------------------------------------
13
41
  // Private
14
42
  // ------------------------------------------------------------------------------
@@ -192,29 +220,30 @@ var BoxClient = /** @class */ (function () {
192
220
  this._useIterators = config.iterators;
193
221
  this._analyticsClient = config.analyticsClient;
194
222
  // Attach API Resource Managers
195
- this.users = new Users(this);
196
- this.files = new Files(this);
197
- this.folders = new Folders(this);
198
- this.comments = new Comments(this);
199
- this.collaborations = new Collaborations(this);
200
- this.groups = new Groups(this);
201
- this.sharedItems = new SharedItems(this);
202
- this.metadata = new Metadata(this);
203
- this.collections = new Collections(this);
204
- this.events = new Events(this);
205
- this.search = new Search(this);
206
- this.tasks = new Tasks(this);
207
- this.trash = new Trash(this);
208
- this.enterprise = new Enterprise(this);
209
- this.legalHoldPolicies = new LegalHoldPolicies(this);
210
- this.weblinks = new WebLinks(this);
211
- this.retentionPolicies = new RetentionPolicies(this);
212
- this.devicePins = new DevicePins(this);
213
- this.webhooks = new Webhooks(this);
214
- this.recentItems = new RecentItems(this);
215
- this.collaborationAllowlist = new CollaborationAllowlist(this);
216
- this.termsOfService = new TermsOfService(this);
217
- this.storagePolicies = new StoragePolicies(this);
223
+ this.users = new users_1.default(this);
224
+ this.files = new files_1.default(this);
225
+ this.folders = new folders_1.default(this);
226
+ this.comments = new comments_1.default(this);
227
+ this.collaborations = new collaborations_1.default(this);
228
+ this.groups = new groups_1.default(this);
229
+ this.sharedItems = new shared_items_1.default(this);
230
+ this.metadata = new metadata_1.default(this);
231
+ this.collections = new collections_1.default(this);
232
+ this.events = new events_1.default(this);
233
+ this.search = new search_1.default(this);
234
+ this.tasks = new tasks_1.default(this);
235
+ this.trash = new trash_1.default(this);
236
+ this.enterprise = new enterprise_1.default(this);
237
+ this.legalHoldPolicies = new legal_hold_policies_1.default(this);
238
+ this.weblinks = new web_links_1.default(this);
239
+ this.retentionPolicies = new retention_policies_1.default(this);
240
+ this.devicePins = new device_pins_1.default(this);
241
+ this.webhooks = new webhooks_1.default(this);
242
+ this.recentItems = new recent_items_1.default(this);
243
+ this.collaborationAllowlist = new collaboration_allowlist_1.default(this);
244
+ this.termsOfService = new terms_of_service_1.default(this);
245
+ this.storagePolicies = new storage_policies_1.default(this);
246
+ this.signRequests = new sign_requests_generated_1.default(this);
218
247
  // Legacy insensitive language
219
248
  this.collaborationWhitelist = this.collaborationAllowlist;
220
249
  // Array of requests when in batch mode, null otherwise
@@ -637,6 +666,6 @@ BoxClient.prototype.accessLevels = {
637
666
  DISABLED: null,
638
667
  };
639
668
  /** @const {string} */
640
- BoxClient.prototype.CURRENT_USER_ID = Users.prototype.CURRENT_USER_ID;
669
+ BoxClient.prototype.CURRENT_USER_ID = users_1.default.prototype.CURRENT_USER_ID;
641
670
  module.exports = BoxClient;
642
671
  //# sourceMappingURL=box-client.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"box-client.js","sourceRoot":"","sources":["../src/box-client.ts"],"names":[],"mappings":";AAAA;;GAEG;AAEH,qCAAmC;AA2BnC,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,wBAAwB;AACxB,IAAI,KAAK,GAAG,OAAO,CAAC,kBAAkB,CAAC,EACtC,KAAK,GAAG,OAAO,CAAC,kBAAkB,CAAC,EACnC,OAAO,GAAG,OAAO,CAAC,oBAAoB,CAAC,EACvC,cAAc,GAAG,OAAO,CAAC,2BAA2B,CAAC,EACrD,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,EACrC,QAAQ,GAAG,OAAO,CAAC,qBAAqB,CAAC,EACzC,WAAW,GAAG,OAAO,CAAC,yBAAyB,CAAC,EAChD,QAAQ,GAAG,OAAO,CAAC,qBAAqB,CAAC,EACzC,WAAW,GAAG,OAAO,CAAC,wBAAwB,CAAC,EAC/C,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,EACrC,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,EACrC,KAAK,GAAG,OAAO,CAAC,kBAAkB,CAAC,EACnC,K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Q;IAChB,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;IACpB,kBAAkB,EAAE,oBAAoB;IACxC,eAAe,EAAE,iBAAiB;IAClC,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;CACd,CAAC;AAEF;;;;;GAKG;AACH,SAAS,CAAC,SAAS,CAAC,SAAS,GAAG;IAC/B,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;CAChB,CAAC;AAEF;;;;;;GAMG;AACH,SAAS,CAAC,SAAS,CAAC,YAAY,GAAG;IAClC,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;IACxB,aAAa,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE;IAC1C,OAAO,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;IAC9B,OAAO,EAAE,EAAE;IACX,QAAQ,EAAE,IAAI;CACd,CAAC;AAEF,sBAAsB;AACtB,SAAS,CAAC,SAAS,CAAC,eAAe,GAAG,eAAK,CAAC,SAAS,CAAC,eAAe,CAAC;AAUtE,iBAAS,SAAS,CAAC"}
@@ -0,0 +1,92 @@
1
+ import BoxClient from '../box-client';
2
+ import * as schemas from '../schemas';
3
+ /**
4
+ * Simple manager for interacting with all Sign Requests endpoints and actions.
5
+ */
6
+ declare class SignRequestsManager {
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 sign request by ID
14
+ *
15
+ * Gets a sign request by ID.
16
+ * @param {object} options Options for the request
17
+ * @param {string} options.sign_request_id The ID of the sign request
18
+ * @param {Function} [callback] Passed the result if successful, error otherwise
19
+ * @returns {Promise<schemas.SignRequest>} A promise resolving to the result or rejecting with an error
20
+ */
21
+ getById(options: {
22
+ /**
23
+ * The ID of the sign request
24
+ */
25
+ readonly sign_request_id: string;
26
+ }, callback?: Function): Promise<schemas.SignRequest>;
27
+ /**
28
+ * List sign requests
29
+ *
30
+ * Gets sign requests 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.SignRequests>} 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.SignRequests>;
50
+ /**
51
+ * Create sign request
52
+ *
53
+ * Creates a sign request. This involves preparing a document for signing and
54
+ * sending the sign request to signers.
55
+ * @param {schemas.SignRequestCreateRequest} body
56
+ * @param {object} [options] Options for the request
57
+ * @param {Function} [callback] Passed the result if successful, error otherwise
58
+ * @returns {Promise<schemas.SignRequest>} A promise resolving to the result or rejecting with an error
59
+ */
60
+ create(body: schemas.SignRequestCreateRequest, options?: {}, callback?: Function): Promise<schemas.SignRequest>;
61
+ /**
62
+ * Cancel sign request
63
+ *
64
+ * Cancels a sign request.
65
+ * @param {object} options Options for the request
66
+ * @param {string} options.sign_request_id The ID of the sign request
67
+ * @param {Function} [callback] Passed the result if successful, error otherwise
68
+ * @returns {Promise<schemas.SignRequest>} A promise resolving to the result or rejecting with an error
69
+ */
70
+ cancelById(options: {
71
+ /**
72
+ * The ID of the sign request
73
+ */
74
+ readonly sign_request_id: string;
75
+ }, callback?: Function): Promise<schemas.SignRequest>;
76
+ /**
77
+ * Resend sign request
78
+ *
79
+ * Resends a sign request email to all outstanding signers.
80
+ * @param {object} options Options for the request
81
+ * @param {string} options.sign_request_id The ID of the sign request
82
+ * @param {Function} [callback] Passed the result if successful, error otherwise
83
+ * @returns {Promise<object>} A promise resolving to the result or rejecting with an error
84
+ */
85
+ resendById(options: {
86
+ /**
87
+ * The ID of the sign request
88
+ */
89
+ readonly sign_request_id: string;
90
+ }, callback?: Function): Promise<object>;
91
+ }
92
+ export = SignRequestsManager;
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ var url_path_1 = __importDefault(require("../util/url-path"));
6
+ /**
7
+ * Simple manager for interacting with all Sign Requests endpoints and actions.
8
+ */
9
+ var SignRequestsManager = /** @class */ (function () {
10
+ /**
11
+ * @param {BoxClient} client The Box API Client that is responsible for making calls to the API
12
+ */
13
+ function SignRequestsManager(client) {
14
+ this.client = client;
15
+ }
16
+ /**
17
+ * Get sign request by ID
18
+ *
19
+ * Gets a sign request by ID.
20
+ * @param {object} options Options for the request
21
+ * @param {string} options.sign_request_id The ID of the sign request
22
+ * @param {Function} [callback] Passed the result if successful, error otherwise
23
+ * @returns {Promise<schemas.SignRequest>} A promise resolving to the result or rejecting with an error
24
+ */
25
+ SignRequestsManager.prototype.getById = function (options, callback) {
26
+ var apiPath = url_path_1.default('sign_requests', options.sign_request_id), params = {
27
+ qs: options,
28
+ };
29
+ return this.client.wrapWithDefaultHandler(this.client.get)(apiPath, params, callback);
30
+ };
31
+ /**
32
+ * List sign requests
33
+ *
34
+ * Gets sign requests created by a user.
35
+ * @param {object} [options] Options for the request
36
+ * @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`.
37
+ * @param {number} [options.limit] The maximum number of items to return per page.
38
+ * @param {Function} [callback] Passed the result if successful, error otherwise
39
+ * @returns {Promise<schemas.SignRequests>} A promise resolving to the result or rejecting with an error
40
+ */
41
+ SignRequestsManager.prototype.getAll = function (options, callback) {
42
+ var apiPath = url_path_1.default('sign_requests'), params = {
43
+ qs: options,
44
+ };
45
+ return this.client.wrapWithDefaultHandler(this.client.get)(apiPath, params, callback);
46
+ };
47
+ /**
48
+ * Create sign request
49
+ *
50
+ * Creates a sign request. This involves preparing a document for signing and
51
+ * sending the sign request to signers.
52
+ * @param {schemas.SignRequestCreateRequest} body
53
+ * @param {object} [options] Options for the request
54
+ * @param {Function} [callback] Passed the result if successful, error otherwise
55
+ * @returns {Promise<schemas.SignRequest>} A promise resolving to the result or rejecting with an error
56
+ */
57
+ SignRequestsManager.prototype.create = function (body, options, callback) {
58
+ var apiPath = url_path_1.default('sign_requests'), params = {
59
+ qs: options,
60
+ body: body,
61
+ };
62
+ return this.client.wrapWithDefaultHandler(this.client.post)(apiPath, params, callback);
63
+ };
64
+ /**
65
+ * Cancel sign request
66
+ *
67
+ * Cancels a sign request.
68
+ * @param {object} options Options for the request
69
+ * @param {string} options.sign_request_id The ID of the sign request
70
+ * @param {Function} [callback] Passed the result if successful, error otherwise
71
+ * @returns {Promise<schemas.SignRequest>} A promise resolving to the result or rejecting with an error
72
+ */
73
+ SignRequestsManager.prototype.cancelById = function (options, callback) {
74
+ var apiPath = url_path_1.default('sign_requests', options.sign_request_id, 'cancel'), params = {
75
+ qs: options,
76
+ };
77
+ return this.client.wrapWithDefaultHandler(this.client.post)(apiPath, params, callback);
78
+ };
79
+ /**
80
+ * Resend sign request
81
+ *
82
+ * Resends a sign request email to all outstanding signers.
83
+ * @param {object} options Options for the request
84
+ * @param {string} options.sign_request_id The ID of the sign request
85
+ * @param {Function} [callback] Passed the result if successful, error otherwise
86
+ * @returns {Promise<object>} A promise resolving to the result or rejecting with an error
87
+ */
88
+ SignRequestsManager.prototype.resendById = function (options, callback) {
89
+ var apiPath = url_path_1.default('sign_requests', options.sign_request_id, 'resend'), params = {
90
+ qs: options,
91
+ };
92
+ return this.client.wrapWithDefaultHandler(this.client.post)(apiPath, params, callback);
93
+ };
94
+ return SignRequestsManager;
95
+ }());
96
+ module.exports = SignRequestsManager;
97
+ //# sourceMappingURL=sign-requests.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sign-requests.generated.js","sourceRoot":"","sources":["../../src/managers/sign-requests.generated.ts"],"names":[],"mappings":";;;;AACA,8DAAuC;AAEvC;;GAEG;AACH;IAEC;;OAEG;IACH,6BAAY,MAAiB;QAC5B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IACD;;;;;;;;OAQG;IACH,qCAAO,GAAP,UACC,OAKC,EACD,QAAmB;QAEnB,IAAM,OAAO,GAAG,kBAAO,CAAC,eAAe,EAAE,OAAO,CAAC,eAAe,CAAC,EAChE,MAAM,GAAG;YACR,EAAE,EAAE,OAAO;SACX,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,oCAAM,GAAN,UACC,OAYC,EACD,QAAmB;QAEnB,IAAM,OAAO,GAAG,kBAAO,CAAC,eAAe,CAAC,EACvC,MAAM,GAAG;YACR,EAAE,EAAE,OAAO;SACX,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,oCAAM,GAAN,UACC,IAAsC,EACtC,OAAY,EACZ,QAAmB;QAEnB,IAAM,OAAO,GAAG,kBAAO,CAAC,eAAe,CAAC,EACvC,MAAM,GAAG;YACR,EAAE,EAAE,OAAO;YACX,IAAI,EAAE,IAAI;SACV,CAAC;QACH,OAAO,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAC1D,OAAO,EACP,MAAM,EACN,QAAQ,CACR,CAAC;IACH,CAAC;IACD;;;;;;;;OAQG;IACH,wCAAU,GAAV,UACC,OAKC,EACD,QAAmB;QAEnB,IAAM,OAAO,GAAG,kBAAO,CAAC,eAAe,EAAE,OAAO,CAAC,eAAe,EAAE,QAAQ,CAAC,EAC1E,MAAM,GAAG;YACR,EAAE,EAAE,OAAO;SACX,CAAC;QACH,OAAO,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAC1D,OAAO,EACP,MAAM,EACN,QAAQ,CACR,CAAC;IACH,CAAC;IACD;;;;;;;;OAQG;IACH,wCAAU,GAAV,UACC,OAKC,EACD,QAAmB;QAEnB,IAAM,OAAO,GAAG,kBAAO,CAAC,eAAe,EAAE,OAAO,CAAC,eAAe,EAAE,QAAQ,CAAC,EAC1E,MAAM,GAAG;YACR,EAAE,EAAE,OAAO;SACX,CAAC;QACH,OAAO,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAC1D,OAAO,EACP,MAAM,EACN,QAAQ,CACR,CAAC;IACH,CAAC;IACF,0BAAC;AAAD,CAAC,AA1JD,IA0JC;AACD,iBAAS,mBAAmB,CAAC"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * File (Base)
3
+ *
4
+ * The bare basic representation of a file, the minimal
5
+ * amount of fields returned when using the `fields` query
6
+ * parameter.
7
+ */
8
+ export interface FileBase {
9
+ /**
10
+ * The unique identifier that represent a file.
11
+ *
12
+ * The ID for any file can be determined
13
+ * by visiting a file in the web application
14
+ * and copying the ID from the URL. For example,
15
+ * for the URL `https://*.app.box.com/files/123`
16
+ * the `file_id` is `123`.
17
+ * Example: 12345
18
+ */
19
+ id: string;
20
+ /**
21
+ * The HTTP `etag` of this file. This can be used within some API
22
+ * endpoints in the `If-Match` and `If-None-Match` headers to only
23
+ * perform changes on the file if (no) changes have happened.
24
+ * Example: 1
25
+ */
26
+ etag?: string;
27
+ /**
28
+ * `file`
29
+ * Example: file
30
+ */
31
+ type: 'file';
32
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=file-base.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-base.generated.js","sourceRoot":"","sources":["../../src/schemas/file-base.generated.ts"],"names":[],"mappings":""}
@@ -0,0 +1,41 @@
1
+ import * as schemas from '.';
2
+ /**
3
+ * File (Mini)
4
+ *
5
+ * A mini representation of a file, used when
6
+ * nested under another resource.
7
+ */
8
+ export interface FileMini extends schemas.FileBase {
9
+ /**
10
+ * A numeric identifier that represents the most recent user event
11
+ * that has been applied to this item.
12
+ *
13
+ * This can be used in combination with the `GET /events`-endpoint
14
+ * to filter out user events that would have occurred before this
15
+ * identifier was read.
16
+ *
17
+ * An example would be where a Box Drive-like application
18
+ * would fetch an item via the API, and then listen to incoming
19
+ * user events for changes to the item. The application would
20
+ * ignore any user events where the `sequence_id` in the event
21
+ * is smaller than or equal to the `sequence_id` in the originally
22
+ * fetched resource.
23
+ * Example: 3
24
+ */
25
+ sequence_id?: string;
26
+ /**
27
+ * The name of the file
28
+ * Example: Contract.pdf
29
+ */
30
+ name?: string;
31
+ /**
32
+ * The SHA1 hash of the file. This can be used to compare the contents
33
+ * of a file on Box with a local file.
34
+ * Example: 85136C79CBF9FE36BB9D05D0639C70C265C18D37
35
+ */
36
+ sha1?: string;
37
+ /**
38
+ * The information about the current version of the file.
39
+ */
40
+ file_version?: schemas.FileVersionMini;
41
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=file-mini.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-mini.generated.js","sourceRoot":"","sources":["../../src/schemas/file-mini.generated.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * File version (Base)
3
+ *
4
+ * The bare basic representation of a file version, the minimal
5
+ * amount of fields returned when using the `fields` query
6
+ * parameter.
7
+ */
8
+ export interface FileVersionBase {
9
+ /**
10
+ * The unique identifier that represent a file version.
11
+ * Example: 12345
12
+ */
13
+ id?: string;
14
+ /**
15
+ * `file_version`
16
+ * Example: file_version
17
+ */
18
+ type?: 'file_version';
19
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=file-version-base.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-version-base.generated.js","sourceRoot":"","sources":["../../src/schemas/file-version-base.generated.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import * as schemas from '.';
2
+ /**
3
+ * File version (Mini)
4
+ *
5
+ * A mini representation of a file version, used when
6
+ * nested within another resource.
7
+ */
8
+ export interface FileVersionMini extends schemas.FileVersionBase {
9
+ /**
10
+ * The SHA1 hash of this version of the file.
11
+ * Example: 134b65991ed521fcfe4724b7d814ab8ded5185dc
12
+ */
13
+ sha1?: string;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=file-version-mini.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-version-mini.generated.js","sourceRoot":"","sources":["../../src/schemas/file-version-mini.generated.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Folder (Base)
3
+ *
4
+ * The bare basic representation of a folder, the minimal
5
+ * amount of fields returned when using the `fields` query
6
+ * parameter.
7
+ */
8
+ export interface FolderBase {
9
+ /**
10
+ * The unique identifier that represent a folder.
11
+ *
12
+ * The ID for any folder can be determined
13
+ * by visiting a folder in the web application
14
+ * and copying the ID from the URL. For example,
15
+ * for the URL `https://*.app.box.com/folders/123`
16
+ * the `folder_id` is `123`.
17
+ * Example: 12345
18
+ */
19
+ id: string;
20
+ /**
21
+ * The HTTP `etag` of this folder. This can be used within some API
22
+ * endpoints in the `If-Match` and `If-None-Match` headers to only
23
+ * perform changes on the folder if (no) changes have happened.
24
+ * Example: 1
25
+ */
26
+ etag?: string;
27
+ /**
28
+ * `folder`
29
+ * Example: folder
30
+ */
31
+ type: 'folder';
32
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=folder-base.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"folder-base.generated.js","sourceRoot":"","sources":["../../src/schemas/folder-base.generated.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ import * as schemas from '.';
2
+ /**
3
+ * Folder (Mini)
4
+ *
5
+ * A mini representation of a file version, used when
6
+ * nested under another resource.
7
+ */
8
+ export interface FolderMini extends schemas.FolderBase {
9
+ /**
10
+ * A numeric identifier that represents the most recent user event
11
+ * that has been applied to this item.
12
+ *
13
+ * This can be used in combination with the `GET /events`-endpoint
14
+ * to filter out user events that would have occurred before this
15
+ * identifier was read.
16
+ *
17
+ * An example would be where a Box Drive-like application
18
+ * would fetch an item via the API, and then listen to incoming
19
+ * user events for changes to the item. The application would
20
+ * ignore any user events where the `sequence_id` in the event
21
+ * is smaller than or equal to the `sequence_id` in the originally
22
+ * fetched resource.
23
+ * Example: 3
24
+ */
25
+ sequence_id?: string;
26
+ /**
27
+ * The name of the folder.
28
+ * Example: Contracts
29
+ */
30
+ name?: string;
31
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=folder-mini.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"folder-mini.generated.js","sourceRoot":"","sources":["../../src/schemas/folder-mini.generated.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ export * from './file-base.generated';
2
+ export * from './file-mini.generated';
3
+ export * from './file-version-base.generated';
4
+ export * from './file-version-mini.generated';
5
+ export * from './folder-base.generated';
6
+ export * from './folder-mini.generated';
7
+ export * from './sign-request.generated';
8
+ export * from './sign-request-create-request.generated';
9
+ export * from './sign-request-create-signer.generated';
10
+ export * from './sign-request-prefill-tag.generated';
11
+ export * from './sign-requests.generated';
12
+ export * from './sign-request-signer.generated';
13
+ export * from './sign-request-signer-input.generated';
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./file-base.generated"), exports);
14
+ __exportStar(require("./file-mini.generated"), exports);
15
+ __exportStar(require("./file-version-base.generated"), exports);
16
+ __exportStar(require("./file-version-mini.generated"), exports);
17
+ __exportStar(require("./folder-base.generated"), exports);
18
+ __exportStar(require("./folder-mini.generated"), exports);
19
+ __exportStar(require("./sign-request.generated"), exports);
20
+ __exportStar(require("./sign-request-create-request.generated"), exports);
21
+ __exportStar(require("./sign-request-create-signer.generated"), exports);
22
+ __exportStar(require("./sign-request-prefill-tag.generated"), exports);
23
+ __exportStar(require("./sign-requests.generated"), exports);
24
+ __exportStar(require("./sign-request-signer.generated"), exports);
25
+ __exportStar(require("./sign-request-signer-input.generated"), exports);
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wDAAsC;AACtC,wDAAsC;AACtC,gEAA8C;AAC9C,gEAA8C;AAC9C,0DAAwC;AACxC,0DAAwC;AACxC,2DAAyC;AACzC,0EAAwD;AACxD,yEAAuD;AACvD,uEAAqD;AACrD,4DAA0C;AAC1C,kEAAgD;AAChD,wEAAsD"}
@@ -0,0 +1,62 @@
1
+ import * as schemas from '.';
2
+ /**
3
+ * Create a sign request
4
+ *
5
+ * A request to create a sign request object
6
+ */
7
+ export interface SignRequestCreateRequest {
8
+ /**
9
+ * Indicates if the sender should receive a `prepare_url` in the response to complete document preparation via UI.
10
+ * Example: true
11
+ */
12
+ is_document_preparation_needed?: boolean;
13
+ /**
14
+ * Disables the usage of signatures generated by typing (text)
15
+ * Example: true
16
+ * @default true
17
+ */
18
+ are_text_signatures_enabled?: boolean;
19
+ /**
20
+ * Subject of sign request email. This is cleaned by sign request. If this field is not passed, a default subject will be used.
21
+ * Example: Sign Request from Acme
22
+ */
23
+ email_subject?: string;
24
+ /**
25
+ * Message to include in sign 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.
26
+ * Example: Hello! Please sign the document below
27
+ */
28
+ email_message?: string;
29
+ /**
30
+ * Reminds signers to sign a document on day 3, 8, 13 and 18. Reminders are only sent to outstanding signers.
31
+ * Example: true
32
+ */
33
+ are_reminders_enabled?: boolean;
34
+ /**
35
+ * Array of signers for the sign request. 35 is the max number of signers permitted.
36
+ */
37
+ signers: schemas.SignRequestCreateSigner[];
38
+ /**
39
+ * List of files to create a signing document from. This is currently limited to one file. Only the ID and type fields are required for each file.
40
+ */
41
+ source_files: schemas.FileMini[];
42
+ /**
43
+ * The destination folder to place final, signed document and signing
44
+ * log. Only `ID` and `type` fields are required. The root folder,
45
+ * folder ID `0`, cannot be used.
46
+ */
47
+ parent_folder: schemas.FolderMini;
48
+ /**
49
+ * When a document contains sign related tags in the content, you can prefill them using this `prefill_tags` by referencing the 'id' of the tag as the `external_id` field of the prefill tag.
50
+ */
51
+ prefill_tags?: schemas.SignRequestPrefillTag[];
52
+ /**
53
+ * Number of days after which this request will automatically expire if not completed
54
+ * Example: 2
55
+ */
56
+ days_valid?: number;
57
+ /**
58
+ * This can be used to reference an ID in an external system that the sign request is related to.
59
+ * Example: 123
60
+ */
61
+ external_id?: string;
62
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=sign-request-create-request.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sign-request-create-request.generated.js","sourceRoot":"","sources":["../../src/schemas/sign-request-create-request.generated.ts"],"names":[],"mappings":""}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Signer fields for Create Sign Request
3
+ *
4
+ * The schema for a Signer in a POST Sign Request request body
5
+ */
6
+ export interface SignRequestCreateSigner {
7
+ /**
8
+ * Email address of the signer
9
+ * Example: example@gmail.com
10
+ */
11
+ email: string;
12
+ /**
13
+ * Defines the role of the signer in the sign request. A `signer`
14
+ * must sign the document and an `approver` must approve the document. A
15
+ * `final_copy_reader` only receives the final signed document and signing
16
+ * log.
17
+ * Example: signer
18
+ * @default signer
19
+ */
20
+ role?: 'signer' | 'approver' | 'final_copy_reader';
21
+ /**
22
+ * Used in combination with an embed URL for a sender. After the
23
+ * sender signs, they will be redirected to the next `in_person` signer.
24
+ * Example: true
25
+ */
26
+ is_in_person?: boolean;
27
+ /**
28
+ * Order of the signer
29
+ * Example: 2
30
+ */
31
+ order?: number;
32
+ /**
33
+ * User ID for the signer in an external application responsible
34
+ * for authentication when accessing the embed URL.
35
+ * Example: 1234
36
+ */
37
+ embed_url_external_user_id?: string;
38
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=sign-request-create-signer.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sign-request-create-signer.generated.js","sourceRoot":"","sources":["../../src/schemas/sign-request-create-signer.generated.ts"],"names":[],"mappings":""}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Sign Request Prefill Tag
3
+ *
4
+ * Prefill tags are used to prefill placeholders with signer input data. Only
5
+ * one value field can be included.
6
+ */
7
+ export interface SignRequestPrefillTag {
8
+ /**
9
+ * This references the ID of a specific tag contained in a file of the sign request.
10
+ * Example: 1234
11
+ */
12
+ document_tag_id: string;
13
+ /**
14
+ * Text prefill value
15
+ * Example: text
16
+ */
17
+ text_value?: string;
18
+ /**
19
+ * Checkbox prefill value
20
+ * Example: true
21
+ */
22
+ checkbox_value?: boolean;
23
+ /**
24
+ * Date prefill value
25
+ * Example: 2021-04-26T08:12:13.982Z
26
+ */
27
+ date_value?: string;
28
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=sign-request-prefill-tag.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sign-request-prefill-tag.generated.js","sourceRoot":"","sources":["../../src/schemas/sign-request-prefill-tag.generated.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import * as schemas from '.';
2
+ /**
3
+ * Sign Request Signer Input
4
+ *
5
+ * Input created by a Signer on a Sign Request
6
+ */
7
+ export interface SignRequestSignerInput extends schemas.SignRequestPrefillTag {
8
+ /**
9
+ * Type of input
10
+ * Example: text
11
+ */
12
+ type?: 'signature' | 'date' | 'text' | 'checkbox';
13
+ /**
14
+ * Index of page that the input is on
15
+ * Example: 4
16
+ */
17
+ page_index: number;
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=sign-request-signer-input.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sign-request-signer-input.generated.js","sourceRoot":"","sources":["../../src/schemas/sign-request-signer-input.generated.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ import * as schemas from '.';
2
+ /**
3
+ * Signer fields for GET Sign Request response
4
+ *
5
+ * The schema for a Signer in a GET Sign Request request body
6
+ */
7
+ export interface SignRequestSigner extends schemas.SignRequestCreateSigner {
8
+ /**
9
+ * Set to `true` if the signer views the document
10
+ * Example: true
11
+ */
12
+ has_viewed_document?: boolean;
13
+ /**
14
+ * Final decision made by the signer
15
+ */
16
+ signer_decision?: object;
17
+ inputs?: schemas.SignRequestSignerInput[];
18
+ /**
19
+ * URL to direct a signer to for signing
20
+ * Example: https://example.com
21
+ */
22
+ embed_url?: string;
23
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=sign-request-signer.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sign-request-signer.generated.js","sourceRoot":"","sources":["../../src/schemas/sign-request-signer.generated.ts"],"names":[],"mappings":""}
@@ -0,0 +1,50 @@
1
+ import * as schemas from '.';
2
+ /**
3
+ * Sign Request
4
+ *
5
+ * A Sign Request Object
6
+ */
7
+ export interface SignRequest extends schemas.SignRequestCreateRequest {
8
+ /**
9
+ * object type
10
+ * Example: sign-request
11
+ */
12
+ type?: 'sign-request';
13
+ /**
14
+ * Array of signers for the sign request
15
+ */
16
+ signers: schemas.SignRequestSigner[];
17
+ /**
18
+ * Sign request ID
19
+ * Example: 12345
20
+ */
21
+ id: string;
22
+ /**
23
+ * This URL is returned if `is_document_preparation_needed` is
24
+ * set to `true` in the request. It is used to prepare the sign request
25
+ * via UI. The sign request is not sent until preparation is complete.
26
+ * Example: https://prepareurl.com
27
+ */
28
+ prepare_url?: string;
29
+ /**
30
+ * Reference to a file that holds a log of all signer activity for
31
+ * the request
32
+ */
33
+ signing_log?: schemas.FileMini;
34
+ /**
35
+ * Describes the status of the sign request
36
+ * Example: converting
37
+ */
38
+ status?: 'converting' | 'created' | 'sent' | 'viewed' | 'signed' | 'cancelled' | 'declined' | 'error_converting' | 'error_sending' | 'expired';
39
+ /**
40
+ * List of files that will be signed, which are copies of the original
41
+ * source files. A new version of these files are created as signers sign
42
+ * and can be downloaded at any point in the signing process.
43
+ */
44
+ sign_files?: object;
45
+ /**
46
+ * Uses `days_valid` to calculate the date and time, in GMT, the sign request will expire if unsigned.
47
+ * Example: 2021-04-26T08:12:13.982Z
48
+ */
49
+ auto_expire_at?: string;
50
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=sign-request.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sign-request.generated.js","sourceRoot":"","sources":["../../src/schemas/sign-request.generated.ts"],"names":[],"mappings":""}
@@ -0,0 +1,27 @@
1
+ import * as schemas from '.';
2
+ /**
3
+ * Box Sign
4
+ *
5
+ * The part of an API response that describes marker
6
+ * based pagination
7
+ */
8
+ export interface SignRequests {
9
+ /**
10
+ * The limit that was used for these entries. This will be the same as the
11
+ * `limit` query parameter unless that value exceeded the maximum value
12
+ * allowed. The maximum value varies by API.
13
+ * Example: 1000
14
+ */
15
+ limit?: number;
16
+ /**
17
+ * The marker for the start of the next page of results.
18
+ * Example: 3000
19
+ */
20
+ next_marker?: number;
21
+ /**
22
+ * The marker for the start of the previous page of results.
23
+ * Example: 1000
24
+ */
25
+ prev_marker?: number;
26
+ entries?: schemas.SignRequest[];
27
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=sign-requests.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sign-requests.generated.js","sourceRoot":"","sources":["../../src/schemas/sign-requests.generated.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ export declare class Serializable<T> {
2
+ constructor(options: {
3
+ serialize: (value: T) => any;
4
+ deserialize: (data: any) => T;
5
+ });
6
+ readonly serialize: (value: T | undefined) => any;
7
+ readonly deserialize: (data: any) => T;
8
+ serializeArray(value: T[] | undefined): any[];
9
+ deserializeArray(data: any[]): T[];
10
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Serializable = void 0;
4
+ var Serializable = /** @class */ (function () {
5
+ function Serializable(options) {
6
+ this.serialize = options.serialize;
7
+ this.deserialize = options.deserialize;
8
+ }
9
+ Serializable.prototype.serializeArray = function (value) {
10
+ return (value || []).map(this.serialize);
11
+ };
12
+ Serializable.prototype.deserializeArray = function (data) {
13
+ return data.map(this.deserialize);
14
+ };
15
+ return Serializable;
16
+ }());
17
+ exports.Serializable = Serializable;
18
+ //# sourceMappingURL=serializable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serializable.js","sourceRoot":"","sources":["../../src/util/serializable.ts"],"names":[],"mappings":";;;AAAA;IACC,sBAAY,OAGX;QACA,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAgB,CAAC;QAC1C,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IACxC,CAAC;IAKD,qCAAc,GAAd,UAAe,KAAsB;QACpC,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC1C,CAAC;IAED,uCAAgB,GAAhB,UAAiB,IAAW;QAC3B,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACnC,CAAC;IACF,mBAAC;AAAD,CAAC,AAnBD,IAmBC;AAnBY,oCAAY"}
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": "1.38.0",
4
+ "version": "1.39.0",
5
5
  "description": "Official SDK for Box Plaform APIs",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -24,9 +24,11 @@
24
24
  "scripts": {
25
25
  "test": "node Makefile.js",
26
26
  "build": "node Makefile.js build",
27
+ "codegen": "ts-node codegen/codegen.tsx",
27
28
  "lint": "node Makefile.js lint",
28
29
  "docs": "node Makefile.js docs",
29
30
  "docs-dev": "node Makefile.js docsDev",
31
+ "doctoc": "doctoc docs",
30
32
  "deps": "npm prune && npm install",
31
33
  "patch": "node Makefile.js patch",
32
34
  "minor": "node Makefile.js minor",
@@ -48,6 +50,8 @@
48
50
  },
49
51
  "devDependencies": {
50
52
  "@types/jsonwebtoken": "^8.5.1",
53
+ "@types/lodash": "^4.14.172",
54
+ "@types/prettier": "^2.3.2",
51
55
  "@types/promise-queue": "^2.2.0",
52
56
  "@types/request": "^2.48.5",
53
57
  "@types/url-template": "^2.0.28",
@@ -55,6 +59,7 @@
55
59
  "better-docs": "^2.3.2",
56
60
  "chai": "^4.2.0",
57
61
  "coveralls": "^3.1.0",
62
+ "doctoc": "^2.0.1",
58
63
  "eslint": "^4.19.1",
59
64
  "eslint-plugin-node": "^6.0.1",
60
65
  "eslint-plugin-promise": "^3.8.0",
@@ -64,6 +69,7 @@
64
69
  "jsonlint": "^1.6.3",
65
70
  "jsonlint2": "^1.7.1",
66
71
  "leche": "^2.3.0",
72
+ "lodash": "^4.17.21",
67
73
  "mocha": "^6.0.0",
68
74
  "mockery": "^2.1.0",
69
75
  "nock": "^9.6.1",
@@ -71,9 +77,11 @@
71
77
  "npm-force-resolutions": "0.0.3",
72
78
  "npm-upgrade": "^3.0.0",
73
79
  "nyc": "^14.0.0",
80
+ "prettier": "^2.3.2",
74
81
  "shelljs": "^0.8.3",
75
82
  "shelljs-nodecli": "^0.1.1",
76
83
  "sinon": "^7.5.0",
84
+ "ts-node": "^10.2.0",
77
85
  "typescript": "^4.2.4"
78
86
  },
79
87
  "files": [