box-node-sdk 2.9.0 → 3.0.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 (101) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +7 -2
  3. package/lib/box-client.d.ts +10 -20
  4. package/lib/box-client.js +33 -119
  5. package/lib/box-client.js.map +1 -1
  6. package/lib/managers/collaboration-allowlist.d.ts +0 -4
  7. package/lib/managers/collaboration-allowlist.js +0 -5
  8. package/lib/managers/collaboration-allowlist.js.map +1 -1
  9. package/lib/managers/files.d.ts +2 -19
  10. package/lib/managers/files.js +6 -50
  11. package/lib/managers/files.js.map +1 -1
  12. package/lib/managers/metadata.d.ts +0 -4
  13. package/lib/managers/metadata.js +1 -16
  14. package/lib/managers/metadata.js.map +1 -1
  15. package/lib/managers/shield-information-barrier-reports.generated.d.ts +65 -0
  16. package/lib/managers/shield-information-barrier-reports.generated.js +77 -0
  17. package/lib/managers/shield-information-barrier-reports.generated.js.map +1 -0
  18. package/lib/managers/shield-information-barrier-segment-members.generated.d.ts +83 -0
  19. package/lib/managers/shield-information-barrier-segment-members.generated.js +95 -0
  20. package/lib/managers/shield-information-barrier-segment-members.generated.js.map +1 -0
  21. package/lib/managers/shield-information-barrier-segment-restrictions.generated.d.ts +84 -0
  22. package/lib/managers/shield-information-barrier-segment-restrictions.generated.js +96 -0
  23. package/lib/managers/shield-information-barrier-segment-restrictions.generated.js.map +1 -0
  24. package/lib/managers/shield-information-barrier-segments.generated.d.ts +98 -0
  25. package/lib/managers/shield-information-barrier-segments.generated.js +111 -0
  26. package/lib/managers/shield-information-barrier-segments.generated.js.map +1 -0
  27. package/lib/managers/shield-information-barriers.generated.d.ts +73 -0
  28. package/lib/managers/shield-information-barriers.generated.js +95 -0
  29. package/lib/managers/shield-information-barriers.generated.js.map +1 -0
  30. package/lib/managers/sign-requests.generated.d.ts +2 -2
  31. package/lib/managers/sign-requests.generated.js +1 -1
  32. package/lib/schemas/enterprise-base.generated.d.ts +18 -0
  33. package/lib/schemas/enterprise-base.generated.js +3 -0
  34. package/lib/schemas/enterprise-base.generated.js.map +1 -0
  35. package/lib/schemas/index.d.ts +1 -13
  36. package/lib/schemas/index.generated.d.ts +29 -0
  37. package/lib/schemas/index.generated.js +42 -0
  38. package/lib/schemas/index.generated.js.map +1 -0
  39. package/lib/schemas/index.js +1 -13
  40. package/lib/schemas/index.js.map +1 -1
  41. package/lib/schemas/shield-information-barrier-base.generated.d.ts +18 -0
  42. package/lib/schemas/shield-information-barrier-base.generated.js +3 -0
  43. package/lib/schemas/shield-information-barrier-base.generated.js.map +1 -0
  44. package/lib/schemas/shield-information-barrier-reference.generated.d.ts +9 -0
  45. package/lib/schemas/shield-information-barrier-reference.generated.js +3 -0
  46. package/lib/schemas/shield-information-barrier-reference.generated.js.map +1 -0
  47. package/lib/schemas/shield-information-barrier-report-base.generated.d.ts +18 -0
  48. package/lib/schemas/shield-information-barrier-report-base.generated.js +3 -0
  49. package/lib/schemas/shield-information-barrier-report-base.generated.js.map +1 -0
  50. package/lib/schemas/shield-information-barrier-report-details.generated.d.ts +9 -0
  51. package/lib/schemas/shield-information-barrier-report-details.generated.js +3 -0
  52. package/lib/schemas/shield-information-barrier-report-details.generated.js.map +1 -0
  53. package/lib/schemas/shield-information-barrier-report.generated.d.ts +32 -0
  54. package/lib/schemas/shield-information-barrier-report.generated.js +3 -0
  55. package/lib/schemas/shield-information-barrier-report.generated.js.map +1 -0
  56. package/lib/schemas/shield-information-barrier-segment-member-base.generated.d.ts +19 -0
  57. package/lib/schemas/shield-information-barrier-segment-member-base.generated.js +3 -0
  58. package/lib/schemas/shield-information-barrier-segment-member-base.generated.js.map +1 -0
  59. package/lib/schemas/shield-information-barrier-segment-member-mini.generated.d.ts +13 -0
  60. package/lib/schemas/shield-information-barrier-segment-member-mini.generated.js +3 -0
  61. package/lib/schemas/shield-information-barrier-segment-member-mini.generated.js.map +1 -0
  62. package/lib/schemas/shield-information-barrier-segment-member.generated.d.ts +39 -0
  63. package/lib/schemas/shield-information-barrier-segment-member.generated.js +3 -0
  64. package/lib/schemas/shield-information-barrier-segment-member.generated.js.map +1 -0
  65. package/lib/schemas/shield-information-barrier-segment-restriction-base.generated.d.ts +20 -0
  66. package/lib/schemas/shield-information-barrier-segment-restriction-base.generated.js +3 -0
  67. package/lib/schemas/shield-information-barrier-segment-restriction-base.generated.js.map +1 -0
  68. package/lib/schemas/shield-information-barrier-segment-restriction-mini.generated.d.ts +20 -0
  69. package/lib/schemas/shield-information-barrier-segment-restriction-mini.generated.js +3 -0
  70. package/lib/schemas/shield-information-barrier-segment-restriction-mini.generated.js.map +1 -0
  71. package/lib/schemas/shield-information-barrier-segment-restriction.generated.d.ts +33 -0
  72. package/lib/schemas/shield-information-barrier-segment-restriction.generated.js +3 -0
  73. package/lib/schemas/shield-information-barrier-segment-restriction.generated.js.map +1 -0
  74. package/lib/schemas/shield-information-barrier-segment.generated.d.ts +50 -0
  75. package/lib/schemas/shield-information-barrier-segment.generated.js +3 -0
  76. package/lib/schemas/shield-information-barrier-segment.generated.js.map +1 -0
  77. package/lib/schemas/shield-information-barrier.generated.d.ts +56 -0
  78. package/lib/schemas/shield-information-barrier.generated.js +3 -0
  79. package/lib/schemas/shield-information-barrier.generated.js.map +1 -0
  80. package/lib/schemas/sign-request-base.generated.d.ts +74 -0
  81. package/lib/schemas/sign-request-base.generated.js +3 -0
  82. package/lib/schemas/sign-request-base.generated.js.map +1 -0
  83. package/lib/schemas/sign-request-create-request.generated.d.ts +11 -71
  84. package/lib/schemas/sign-request-create-signer.generated.d.ts +8 -0
  85. package/lib/schemas/sign-request-signer-input.generated.d.ts +1 -1
  86. package/lib/schemas/sign-request.generated.d.ts +13 -4
  87. package/lib/schemas/user-base.generated.d.ts +18 -0
  88. package/lib/schemas/user-base.generated.js +3 -0
  89. package/lib/schemas/user-base.generated.js.map +1 -0
  90. package/lib/sessions/app-auth-session.js +1 -1
  91. package/lib/sessions/app-auth-session.js.map +1 -1
  92. package/lib/sessions/ccg-session.js +1 -1
  93. package/lib/sessions/ccg-session.js.map +1 -1
  94. package/lib/sessions/persistent-session.js +1 -1
  95. package/lib/sessions/persistent-session.js.map +1 -1
  96. package/lib/util/config.js +0 -1
  97. package/lib/util/config.js.map +1 -1
  98. package/package.json +5 -5
  99. package/lib/managers/collaboration-whitelist.d.ts +0 -3
  100. package/lib/managers/collaboration-whitelist.js +0 -11
  101. package/lib/managers/collaboration-whitelist.js.map +0 -1
@@ -0,0 +1,84 @@
1
+ import BoxClient from '../box-client';
2
+ import * as schemas from '../schemas';
3
+ /**
4
+ */
5
+ declare class ShieldInformationBarrierSegmentRestrictionsManager {
6
+ client: BoxClient;
7
+ /**
8
+ * @param {BoxClient} client The Box API Client that is responsible for making calls to the API
9
+ */
10
+ constructor(client: BoxClient);
11
+ /**
12
+ * Get shield information barrier segment restriction by ID
13
+ *
14
+ * Retrieves a shield information barrier segment
15
+ * restriction based on provided ID.
16
+ * @param {object} options Options for the request
17
+ * @param {string} options.shield_information_barrier_segment_restriction_id The ID of the shield information barrier segment Restriction.
18
+ * @param {Function} [callback] Passed the result if successful, error otherwise
19
+ * @returns {Promise<schemas.ShieldInformationBarrierSegmentRestriction>} A promise resolving to the result or rejecting with an error
20
+ */
21
+ getById(options: {
22
+ /**
23
+ * The ID of the shield information barrier segment Restriction.
24
+ */
25
+ readonly shield_information_barrier_segment_restriction_id: string;
26
+ }, callback?: Function): Promise<schemas.ShieldInformationBarrierSegmentRestriction>;
27
+ /**
28
+ * List shield information barrier segment restrictions
29
+ *
30
+ * Lists shield information barrier segment restrictions
31
+ * based on provided segment ID.
32
+ * @param {object} options Options for the request
33
+ * @param {string} options.shield_information_barrier_segment_id The ID of the shield information barrier segment.
34
+ * @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`.
35
+ * @param {number} [options.limit] The maximum number of items to return per page.
36
+ * @param {Function} [callback] Passed the result if successful, error otherwise
37
+ * @returns {Promise<object>} A promise resolving to the result or rejecting with an error
38
+ */
39
+ getAll(options: {
40
+ /**
41
+ * The ID of the shield information barrier segment.
42
+ */
43
+ readonly shield_information_barrier_segment_id: string;
44
+ /**
45
+ * Defines the position marker at which to begin returning results. This is
46
+ * used when paginating using marker-based pagination.
47
+ *
48
+ * This requires `usemarker` to be set to `true`.
49
+ */
50
+ readonly marker?: string;
51
+ /**
52
+ * The maximum number of items to return per page.
53
+ */
54
+ readonly limit?: number;
55
+ }, callback?: Function): Promise<object>;
56
+ /**
57
+ * Create shield information barrier segment restriction
58
+ *
59
+ * Creates a shield information barrier
60
+ * segment restriction object.
61
+ * @param {object} body
62
+ * @param {object} [options] Options for the request
63
+ * @param {Function} [callback] Passed the result if successful, error otherwise
64
+ * @returns {Promise<schemas.ShieldInformationBarrierSegmentRestriction>} A promise resolving to the result or rejecting with an error
65
+ */
66
+ create(body: object, options?: {}, callback?: Function): Promise<schemas.ShieldInformationBarrierSegmentRestriction>;
67
+ /**
68
+ * Delete shield information barrier segment restriction by ID
69
+ *
70
+ * Delete shield information barrier segment restriction
71
+ * based on provided ID.
72
+ * @param {object} options Options for the request
73
+ * @param {string} options.shield_information_barrier_segment_restriction_id The ID of the shield information barrier segment Restriction.
74
+ * @param {Function} [callback] Passed the result if successful, error otherwise
75
+ * @returns {Promise<void>} A promise resolving to the result or rejecting with an error
76
+ */
77
+ deleteById(options: {
78
+ /**
79
+ * The ID of the shield information barrier segment Restriction.
80
+ */
81
+ readonly shield_information_barrier_segment_restriction_id: string;
82
+ }, callback?: Function): Promise<void>;
83
+ }
84
+ export = ShieldInformationBarrierSegmentRestrictionsManager;
@@ -0,0 +1,96 @@
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
+ */
19
+ var ShieldInformationBarrierSegmentRestrictionsManager = /** @class */ (function () {
20
+ /**
21
+ * @param {BoxClient} client The Box API Client that is responsible for making calls to the API
22
+ */
23
+ function ShieldInformationBarrierSegmentRestrictionsManager(client) {
24
+ this.client = client;
25
+ }
26
+ /**
27
+ * Get shield information barrier segment restriction by ID
28
+ *
29
+ * Retrieves a shield information barrier segment
30
+ * restriction based on provided ID.
31
+ * @param {object} options Options for the request
32
+ * @param {string} options.shield_information_barrier_segment_restriction_id The ID of the shield information barrier segment Restriction.
33
+ * @param {Function} [callback] Passed the result if successful, error otherwise
34
+ * @returns {Promise<schemas.ShieldInformationBarrierSegmentRestriction>} A promise resolving to the result or rejecting with an error
35
+ */
36
+ ShieldInformationBarrierSegmentRestrictionsManager.prototype.getById = function (options, callback) {
37
+ var shieldInformationBarrierSegmentRestrictionId = options.shield_information_barrier_segment_restriction_id, queryParams = __rest(options, ["shield_information_barrier_segment_restriction_id"]), apiPath = (0, url_path_1.default)('shield_information_barrier_segment_restrictions', shieldInformationBarrierSegmentRestrictionId), params = {
38
+ qs: queryParams,
39
+ };
40
+ return this.client.wrapWithDefaultHandler(this.client.get)(apiPath, params, callback);
41
+ };
42
+ /**
43
+ * List shield information barrier segment restrictions
44
+ *
45
+ * Lists shield information barrier segment restrictions
46
+ * based on provided segment ID.
47
+ * @param {object} options Options for the request
48
+ * @param {string} options.shield_information_barrier_segment_id The ID of the shield information barrier segment.
49
+ * @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`.
50
+ * @param {number} [options.limit] The maximum number of items to return per page.
51
+ * @param {Function} [callback] Passed the result if successful, error otherwise
52
+ * @returns {Promise<object>} A promise resolving to the result or rejecting with an error
53
+ */
54
+ ShieldInformationBarrierSegmentRestrictionsManager.prototype.getAll = function (options, callback) {
55
+ var queryParams = __rest(options, []), apiPath = (0, url_path_1.default)('shield_information_barrier_segment_restrictions'), params = {
56
+ qs: queryParams,
57
+ };
58
+ return this.client.wrapWithDefaultHandler(this.client.get)(apiPath, params, callback);
59
+ };
60
+ /**
61
+ * Create shield information barrier segment restriction
62
+ *
63
+ * Creates a shield information barrier
64
+ * segment restriction object.
65
+ * @param {object} body
66
+ * @param {object} [options] Options for the request
67
+ * @param {Function} [callback] Passed the result if successful, error otherwise
68
+ * @returns {Promise<schemas.ShieldInformationBarrierSegmentRestriction>} A promise resolving to the result or rejecting with an error
69
+ */
70
+ ShieldInformationBarrierSegmentRestrictionsManager.prototype.create = function (body, options, callback) {
71
+ var queryParams = __rest(options, []), apiPath = (0, url_path_1.default)('shield_information_barrier_segment_restrictions'), params = {
72
+ qs: queryParams,
73
+ body: body,
74
+ };
75
+ return this.client.wrapWithDefaultHandler(this.client.post)(apiPath, params, callback);
76
+ };
77
+ /**
78
+ * Delete shield information barrier segment restriction by ID
79
+ *
80
+ * Delete shield information barrier segment restriction
81
+ * based on provided ID.
82
+ * @param {object} options Options for the request
83
+ * @param {string} options.shield_information_barrier_segment_restriction_id The ID of the shield information barrier segment Restriction.
84
+ * @param {Function} [callback] Passed the result if successful, error otherwise
85
+ * @returns {Promise<void>} A promise resolving to the result or rejecting with an error
86
+ */
87
+ ShieldInformationBarrierSegmentRestrictionsManager.prototype.deleteById = function (options, callback) {
88
+ var shieldInformationBarrierSegmentRestrictionId = options.shield_information_barrier_segment_restriction_id, queryParams = __rest(options, ["shield_information_barrier_segment_restriction_id"]), apiPath = (0, url_path_1.default)('shield_information_barrier_segment_restrictions', shieldInformationBarrierSegmentRestrictionId), params = {
89
+ qs: queryParams,
90
+ };
91
+ return this.client.wrapWithDefaultHandler(this.client.del)(apiPath, params, callback);
92
+ };
93
+ return ShieldInformationBarrierSegmentRestrictionsManager;
94
+ }());
95
+ module.exports = ShieldInformationBarrierSegmentRestrictionsManager;
96
+ //# sourceMappingURL=shield-information-barrier-segment-restrictions.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shield-information-barrier-segment-restrictions.generated.js","sourceRoot":"","sources":["../../src/managers/shield-information-barrier-segment-restrictions.generated.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,8DAAuC;AAEvC;GACG;AACH;IAEC;;OAEG;IACH,4DAAY,MAAiB;QAC5B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IACD;;;;;;;;;OASG;IACH,oEAAO,GAAP,UACC,OAKC,EACD,QAAmB;QAGjB,IACC,4CAA4C,GAE1C,OAAO,kDAFmC,EAC1C,WAAW,UACX,OAAO,EAJN,qDAIJ,CADc,EAEf,OAAO,GAAG,IAAA,kBAAO,EAChB,iDAAiD,EACjD,4CAA4C,CAC5C,EACD,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;;;;;;;;;;;OAWG;IACH,mEAAM,GAAN,UACC,OAgBC,EACD,QAAmB;QAEnB,IAAW,WAAW,UAAK,OAAO,EAA5B,EAAkB,CAAF,EACrB,OAAO,GAAG,IAAA,kBAAO,EAAC,iDAAiD,CAAC,EACpE,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,mEAAM,GAAN,UACC,IAAY,EACZ,OAAY,EACZ,QAAmB;QAEnB,IAAW,WAAW,UAAK,OAAO,EAA5B,EAAkB,CAAF,EACrB,OAAO,GAAG,IAAA,kBAAO,EAAC,iDAAiD,CAAC,EACpE,MAAM,GAAG;YACR,EAAE,EAAE,WAAW;YACf,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;;;;;;;;;OASG;IACH,uEAAU,GAAV,UACC,OAKC,EACD,QAAmB;QAGjB,IACC,4CAA4C,GAE1C,OAAO,kDAFmC,EAC1C,WAAW,UACX,OAAO,EAJN,qDAIJ,CADc,EAEf,OAAO,GAAG,IAAA,kBAAO,EAChB,iDAAiD,EACjD,4CAA4C,CAC5C,EACD,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,yDAAC;AAAD,CAAC,AAxJD,IAwJC;AACD,iBAAS,kDAAkD,CAAC"}
@@ -0,0 +1,98 @@
1
+ import BoxClient from '../box-client';
2
+ import * as schemas from '../schemas';
3
+ /**
4
+ */
5
+ declare class ShieldInformationBarrierSegmentsManager {
6
+ client: BoxClient;
7
+ /**
8
+ * @param {BoxClient} client The Box API Client that is responsible for making calls to the API
9
+ */
10
+ constructor(client: BoxClient);
11
+ /**
12
+ * Get shield information barrier segment with specified ID
13
+ *
14
+ * Retrieves shield information barrier segment based on provided ID..
15
+ * @param {object} options Options for the request
16
+ * @param {string} options.shield_information_barrier_segment_id The ID of the shield information barrier segment.
17
+ * @param {Function} [callback] Passed the result if successful, error otherwise
18
+ * @returns {Promise<schemas.ShieldInformationBarrierSegment>} A promise resolving to the result or rejecting with an error
19
+ */
20
+ getById(options: {
21
+ /**
22
+ * The ID of the shield information barrier segment.
23
+ */
24
+ readonly shield_information_barrier_segment_id: string;
25
+ }, callback?: Function): Promise<schemas.ShieldInformationBarrierSegment>;
26
+ /**
27
+ * List shield information barrier segments
28
+ *
29
+ * Retrieves a list of shield information barrier segment objects
30
+ * for the specified Information Barrier ID.
31
+ * @param {object} options Options for the request
32
+ * @param {string} options.shield_information_barrier_id The ID of the shield information barrier.
33
+ * @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`.
34
+ * @param {number} [options.limit] The maximum number of items to return per page.
35
+ * @param {Function} [callback] Passed the result if successful, error otherwise
36
+ * @returns {Promise<object>} A promise resolving to the result or rejecting with an error
37
+ */
38
+ getAll(options: {
39
+ /**
40
+ * The ID of the shield information barrier.
41
+ */
42
+ readonly shield_information_barrier_id: string;
43
+ /**
44
+ * Defines the position marker at which to begin returning results. This is
45
+ * used when paginating using marker-based pagination.
46
+ *
47
+ * This requires `usemarker` to be set to `true`.
48
+ */
49
+ readonly marker?: string;
50
+ /**
51
+ * The maximum number of items to return per page.
52
+ */
53
+ readonly limit?: number;
54
+ }, callback?: Function): Promise<object>;
55
+ /**
56
+ * Create shield information barrier segment
57
+ *
58
+ * Creates a shield information barrier segment.
59
+ * @param {object} body
60
+ * @param {object} [options] Options for the request
61
+ * @param {Function} [callback] Passed the result if successful, error otherwise
62
+ * @returns {Promise<schemas.ShieldInformationBarrierSegment>} A promise resolving to the result or rejecting with an error
63
+ */
64
+ create(body: object, options?: {}, callback?: Function): Promise<schemas.ShieldInformationBarrierSegment>;
65
+ /**
66
+ * Update shield information barrier segment with specified ID
67
+ *
68
+ * Updates the shield information barrier segment based on provided ID..
69
+ * @param {object} body
70
+ * @param {object} options Options for the request
71
+ * @param {string} options.shield_information_barrier_segment_id The ID of the shield information barrier segment.
72
+ * @param {Function} [callback] Passed the result if successful, error otherwise
73
+ * @returns {Promise<schemas.ShieldInformationBarrierSegment>} A promise resolving to the result or rejecting with an error
74
+ */
75
+ update(body: object, options: {
76
+ /**
77
+ * The ID of the shield information barrier segment.
78
+ */
79
+ readonly shield_information_barrier_segment_id: string;
80
+ }, callback?: Function): Promise<schemas.ShieldInformationBarrierSegment>;
81
+ /**
82
+ * Delete shield information barrier segment
83
+ *
84
+ * Deletes the shield information barrier segment
85
+ * based on provided ID.
86
+ * @param {object} options Options for the request
87
+ * @param {string} options.shield_information_barrier_segment_id The ID of the shield information barrier segment.
88
+ * @param {Function} [callback] Passed the result if successful, error otherwise
89
+ * @returns {Promise<void>} A promise resolving to the result or rejecting with an error
90
+ */
91
+ deleteById(options: {
92
+ /**
93
+ * The ID of the shield information barrier segment.
94
+ */
95
+ readonly shield_information_barrier_segment_id: string;
96
+ }, callback?: Function): Promise<void>;
97
+ }
98
+ export = ShieldInformationBarrierSegmentsManager;
@@ -0,0 +1,111 @@
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
+ */
19
+ var ShieldInformationBarrierSegmentsManager = /** @class */ (function () {
20
+ /**
21
+ * @param {BoxClient} client The Box API Client that is responsible for making calls to the API
22
+ */
23
+ function ShieldInformationBarrierSegmentsManager(client) {
24
+ this.client = client;
25
+ }
26
+ /**
27
+ * Get shield information barrier segment with specified ID
28
+ *
29
+ * Retrieves shield information barrier segment based on provided ID..
30
+ * @param {object} options Options for the request
31
+ * @param {string} options.shield_information_barrier_segment_id The ID of the shield information barrier segment.
32
+ * @param {Function} [callback] Passed the result if successful, error otherwise
33
+ * @returns {Promise<schemas.ShieldInformationBarrierSegment>} A promise resolving to the result or rejecting with an error
34
+ */
35
+ ShieldInformationBarrierSegmentsManager.prototype.getById = function (options, callback) {
36
+ var shieldInformationBarrierSegmentId = options.shield_information_barrier_segment_id, queryParams = __rest(options, ["shield_information_barrier_segment_id"]), apiPath = (0, url_path_1.default)('shield_information_barrier_segments', shieldInformationBarrierSegmentId), params = {
37
+ qs: queryParams,
38
+ };
39
+ return this.client.wrapWithDefaultHandler(this.client.get)(apiPath, params, callback);
40
+ };
41
+ /**
42
+ * List shield information barrier segments
43
+ *
44
+ * Retrieves a list of shield information barrier segment objects
45
+ * for the specified Information Barrier ID.
46
+ * @param {object} options Options for the request
47
+ * @param {string} options.shield_information_barrier_id The ID of the shield information barrier.
48
+ * @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`.
49
+ * @param {number} [options.limit] The maximum number of items to return per page.
50
+ * @param {Function} [callback] Passed the result if successful, error otherwise
51
+ * @returns {Promise<object>} A promise resolving to the result or rejecting with an error
52
+ */
53
+ ShieldInformationBarrierSegmentsManager.prototype.getAll = function (options, callback) {
54
+ var queryParams = __rest(options, []), apiPath = (0, url_path_1.default)('shield_information_barrier_segments'), params = {
55
+ qs: queryParams,
56
+ };
57
+ return this.client.wrapWithDefaultHandler(this.client.get)(apiPath, params, callback);
58
+ };
59
+ /**
60
+ * Create shield information barrier segment
61
+ *
62
+ * Creates a shield information barrier segment.
63
+ * @param {object} body
64
+ * @param {object} [options] Options for the request
65
+ * @param {Function} [callback] Passed the result if successful, error otherwise
66
+ * @returns {Promise<schemas.ShieldInformationBarrierSegment>} A promise resolving to the result or rejecting with an error
67
+ */
68
+ ShieldInformationBarrierSegmentsManager.prototype.create = function (body, options, callback) {
69
+ var queryParams = __rest(options, []), apiPath = (0, url_path_1.default)('shield_information_barrier_segments'), params = {
70
+ qs: queryParams,
71
+ body: body,
72
+ };
73
+ return this.client.wrapWithDefaultHandler(this.client.post)(apiPath, params, callback);
74
+ };
75
+ /**
76
+ * Update shield information barrier segment with specified ID
77
+ *
78
+ * Updates the shield information barrier segment based on provided ID..
79
+ * @param {object} body
80
+ * @param {object} options Options for the request
81
+ * @param {string} options.shield_information_barrier_segment_id The ID of the shield information barrier segment.
82
+ * @param {Function} [callback] Passed the result if successful, error otherwise
83
+ * @returns {Promise<schemas.ShieldInformationBarrierSegment>} A promise resolving to the result or rejecting with an error
84
+ */
85
+ ShieldInformationBarrierSegmentsManager.prototype.update = function (body, options, callback) {
86
+ var shieldInformationBarrierSegmentId = options.shield_information_barrier_segment_id, queryParams = __rest(options, ["shield_information_barrier_segment_id"]), apiPath = (0, url_path_1.default)('shield_information_barrier_segments', shieldInformationBarrierSegmentId), params = {
87
+ qs: queryParams,
88
+ body: body,
89
+ };
90
+ return this.client.wrapWithDefaultHandler(this.client.put)(apiPath, params, callback);
91
+ };
92
+ /**
93
+ * Delete shield information barrier segment
94
+ *
95
+ * Deletes the shield information barrier segment
96
+ * based on provided ID.
97
+ * @param {object} options Options for the request
98
+ * @param {string} options.shield_information_barrier_segment_id The ID of the shield information barrier segment.
99
+ * @param {Function} [callback] Passed the result if successful, error otherwise
100
+ * @returns {Promise<void>} A promise resolving to the result or rejecting with an error
101
+ */
102
+ ShieldInformationBarrierSegmentsManager.prototype.deleteById = function (options, callback) {
103
+ var shieldInformationBarrierSegmentId = options.shield_information_barrier_segment_id, queryParams = __rest(options, ["shield_information_barrier_segment_id"]), apiPath = (0, url_path_1.default)('shield_information_barrier_segments', shieldInformationBarrierSegmentId), params = {
104
+ qs: queryParams,
105
+ };
106
+ return this.client.wrapWithDefaultHandler(this.client.del)(apiPath, params, callback);
107
+ };
108
+ return ShieldInformationBarrierSegmentsManager;
109
+ }());
110
+ module.exports = ShieldInformationBarrierSegmentsManager;
111
+ //# sourceMappingURL=shield-information-barrier-segments.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shield-information-barrier-segments.generated.js","sourceRoot":"","sources":["../../src/managers/shield-information-barrier-segments.generated.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,8DAAuC;AAEvC;GACG;AACH;IAEC;;OAEG;IACH,iDAAY,MAAiB;QAC5B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IACD;;;;;;;;OAQG;IACH,yDAAO,GAAP,UACC,OAKC,EACD,QAAmB;QAGjB,IACC,iCAAiC,GAE/B,OAAO,sCAFwB,EAC/B,WAAW,UACX,OAAO,EAJN,yCAIJ,CADc,EAEf,OAAO,GAAG,IAAA,kBAAO,EAChB,qCAAqC,EACrC,iCAAiC,CACjC,EACD,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;;;;;;;;;;;OAWG;IACH,wDAAM,GAAN,UACC,OAgBC,EACD,QAAmB;QAEnB,IAAW,WAAW,UAAK,OAAO,EAA5B,EAAkB,CAAF,EACrB,OAAO,GAAG,IAAA,kBAAO,EAAC,qCAAqC,CAAC,EACxD,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;;;;;;;;OAQG;IACH,wDAAM,GAAN,UACC,IAAY,EACZ,OAAY,EACZ,QAAmB;QAEnB,IAAW,WAAW,UAAK,OAAO,EAA5B,EAAkB,CAAF,EACrB,OAAO,GAAG,IAAA,kBAAO,EAAC,qCAAqC,CAAC,EACxD,MAAM,GAAG;YACR,EAAE,EAAE,WAAW;YACf,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;;;;;;;;;OASG;IACH,wDAAM,GAAN,UACC,IAAY,EACZ,OAKC,EACD,QAAmB;QAGjB,IACC,iCAAiC,GAE/B,OAAO,sCAFwB,EAC/B,WAAW,UACX,OAAO,EAJN,yCAIJ,CADc,EAEf,OAAO,GAAG,IAAA,kBAAO,EAChB,qCAAqC,EACrC,iCAAiC,CACjC,EACD,MAAM,GAAG;YACR,EAAE,EAAE,WAAW;YACf,IAAI,EAAE,IAAI;SACV,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,4DAAU,GAAV,UACC,OAKC,EACD,QAAmB;QAGjB,IACC,iCAAiC,GAE/B,OAAO,sCAFwB,EAC/B,WAAW,UACX,OAAO,EAJN,yCAIJ,CADc,EAEf,OAAO,GAAG,IAAA,kBAAO,EAChB,qCAAqC,EACrC,iCAAiC,CACjC,EACD,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,8CAAC;AAAD,CAAC,AA7LD,IA6LC;AACD,iBAAS,uCAAuC,CAAC"}
@@ -0,0 +1,73 @@
1
+ import BoxClient from '../box-client';
2
+ import * as schemas from '../schemas';
3
+ /**
4
+ */
5
+ declare class ShieldInformationBarrierManager {
6
+ client: BoxClient;
7
+ /**
8
+ * @param {BoxClient} client The Box API Client that is responsible for making calls to the API
9
+ */
10
+ constructor(client: BoxClient);
11
+ /**
12
+ * Get shield information barrier with specified ID
13
+ *
14
+ * Get shield information barrier based on provided ID..
15
+ * @param {object} options Options for the request
16
+ * @param {string} options.shield_information_barrier_id The ID of the shield information barrier.
17
+ * @param {Function} [callback] Passed the result if successful, error otherwise
18
+ * @returns {Promise<schemas.ShieldInformationBarrier>} A promise resolving to the result or rejecting with an error
19
+ */
20
+ getById(options: {
21
+ /**
22
+ * The ID of the shield information barrier.
23
+ */
24
+ readonly shield_information_barrier_id: string;
25
+ }, callback?: Function): Promise<schemas.ShieldInformationBarrier>;
26
+ /**
27
+ * List shield information barriers
28
+ *
29
+ * Retrieves a list of shield information barrier objects
30
+ * for the enterprise of JWT.
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<object>} 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<object>;
50
+ /**
51
+ * Create shield information barrier
52
+ *
53
+ * Creates a shield information barrier to
54
+ * separate individuals/groups within the same
55
+ * firm and prevents confidential information passing between them.
56
+ * @param {schemas.ShieldInformationBarrier} body
57
+ * @param {object} [options] Options for the request
58
+ * @param {Function} [callback] Passed the result if successful, error otherwise
59
+ * @returns {Promise<schemas.ShieldInformationBarrier>} A promise resolving to the result or rejecting with an error
60
+ */
61
+ create(body: schemas.ShieldInformationBarrier, options?: {}, callback?: Function): Promise<schemas.ShieldInformationBarrier>;
62
+ /**
63
+ * Add changed status of shield information barrier with specified ID
64
+ *
65
+ * Change status of shield information barrier with the specified ID.
66
+ * @param {object} body
67
+ * @param {object} [options] Options for the request
68
+ * @param {Function} [callback] Passed the result if successful, error otherwise
69
+ * @returns {Promise<schemas.ShieldInformationBarrier>} A promise resolving to the result or rejecting with an error
70
+ */
71
+ changeStatusById(body: object, options?: {}, callback?: Function): Promise<schemas.ShieldInformationBarrier>;
72
+ }
73
+ export = ShieldInformationBarrierManager;
@@ -0,0 +1,95 @@
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
+ */
19
+ var ShieldInformationBarrierManager = /** @class */ (function () {
20
+ /**
21
+ * @param {BoxClient} client The Box API Client that is responsible for making calls to the API
22
+ */
23
+ function ShieldInformationBarrierManager(client) {
24
+ this.client = client;
25
+ }
26
+ /**
27
+ * Get shield information barrier with specified ID
28
+ *
29
+ * Get shield information barrier based on provided ID..
30
+ * @param {object} options Options for the request
31
+ * @param {string} options.shield_information_barrier_id The ID of the shield information barrier.
32
+ * @param {Function} [callback] Passed the result if successful, error otherwise
33
+ * @returns {Promise<schemas.ShieldInformationBarrier>} A promise resolving to the result or rejecting with an error
34
+ */
35
+ ShieldInformationBarrierManager.prototype.getById = function (options, callback) {
36
+ var shieldInformationBarrierId = options.shield_information_barrier_id, queryParams = __rest(options, ["shield_information_barrier_id"]), apiPath = (0, url_path_1.default)('shield_information_barriers', shieldInformationBarrierId), params = {
37
+ qs: queryParams,
38
+ };
39
+ return this.client.wrapWithDefaultHandler(this.client.get)(apiPath, params, callback);
40
+ };
41
+ /**
42
+ * List shield information barriers
43
+ *
44
+ * Retrieves a list of shield information barrier objects
45
+ * for the enterprise of JWT.
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<object>} A promise resolving to the result or rejecting with an error
51
+ */
52
+ ShieldInformationBarrierManager.prototype.getAll = function (options, callback) {
53
+ var queryParams = __rest(options, []), apiPath = (0, url_path_1.default)('shield_information_barriers'), params = {
54
+ qs: queryParams,
55
+ };
56
+ return this.client.wrapWithDefaultHandler(this.client.get)(apiPath, params, callback);
57
+ };
58
+ /**
59
+ * Create shield information barrier
60
+ *
61
+ * Creates a shield information barrier to
62
+ * separate individuals/groups within the same
63
+ * firm and prevents confidential information passing between them.
64
+ * @param {schemas.ShieldInformationBarrier} body
65
+ * @param {object} [options] Options for the request
66
+ * @param {Function} [callback] Passed the result if successful, error otherwise
67
+ * @returns {Promise<schemas.ShieldInformationBarrier>} A promise resolving to the result or rejecting with an error
68
+ */
69
+ ShieldInformationBarrierManager.prototype.create = function (body, options, callback) {
70
+ var queryParams = __rest(options, []), apiPath = (0, url_path_1.default)('shield_information_barriers'), params = {
71
+ qs: queryParams,
72
+ body: body,
73
+ };
74
+ return this.client.wrapWithDefaultHandler(this.client.post)(apiPath, params, callback);
75
+ };
76
+ /**
77
+ * Add changed status of shield information barrier with specified ID
78
+ *
79
+ * Change status of shield information barrier with the specified ID.
80
+ * @param {object} body
81
+ * @param {object} [options] Options for the request
82
+ * @param {Function} [callback] Passed the result if successful, error otherwise
83
+ * @returns {Promise<schemas.ShieldInformationBarrier>} A promise resolving to the result or rejecting with an error
84
+ */
85
+ ShieldInformationBarrierManager.prototype.changeStatusById = function (body, options, callback) {
86
+ var queryParams = __rest(options, []), apiPath = (0, url_path_1.default)('shield_information_barriers', 'change_status'), params = {
87
+ qs: queryParams,
88
+ body: body,
89
+ };
90
+ return this.client.wrapWithDefaultHandler(this.client.post)(apiPath, params, callback);
91
+ };
92
+ return ShieldInformationBarrierManager;
93
+ }());
94
+ module.exports = ShieldInformationBarrierManager;
95
+ //# sourceMappingURL=shield-information-barriers.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shield-information-barriers.generated.js","sourceRoot":"","sources":["../../src/managers/shield-information-barriers.generated.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,8DAAuC;AAEvC;GACG;AACH;IAEC;;OAEG;IACH,yCAAY,MAAiB;QAC5B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IACD;;;;;;;;OAQG;IACH,iDAAO,GAAP,UACC,OAKC,EACD,QAAmB;QAGjB,IAA+B,0BAA0B,GAEtD,OAAO,8BAF+C,EACtD,WAAW,UACX,OAAO,EAHN,iCAGJ,CADc,EAEf,OAAO,GAAG,IAAA,kBAAO,EAChB,6BAA6B,EAC7B,0BAA0B,CAC1B,EACD,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;;;;;;;;;;OAUG;IACH,gDAAM,GAAN,UACC,OAYC,EACD,QAAmB;QAEnB,IAAW,WAAW,UAAK,OAAO,EAA5B,EAAkB,CAAF,EACrB,OAAO,GAAG,IAAA,kBAAO,EAAC,6BAA6B,CAAC,EAChD,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;;;;;;;;;;OAUG;IACH,gDAAM,GAAN,UACC,IAAsC,EACtC,OAAY,EACZ,QAAmB;QAEnB,IAAW,WAAW,UAAK,OAAO,EAA5B,EAAkB,CAAF,EACrB,OAAO,GAAG,IAAA,kBAAO,EAAC,6BAA6B,CAAC,EAChD,MAAM,GAAG;YACR,EAAE,EAAE,WAAW;YACf,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,0DAAgB,GAAhB,UACC,IAAY,EACZ,OAAY,EACZ,QAAmB;QAEnB,IAAW,WAAW,UAAK,OAAO,EAA5B,EAAkB,CAAF,EACrB,OAAO,GAAG,IAAA,kBAAO,EAAC,6BAA6B,EAAE,eAAe,CAAC,EACjE,MAAM,GAAG;YACR,EAAE,EAAE,WAAW;YACf,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;IACF,sCAAC;AAAD,CAAC,AAvID,IAuIC;AACD,iBAAS,+BAA+B,CAAC"}
@@ -81,13 +81,13 @@ declare class SignRequestsManager {
81
81
  * @param {object} options Options for the request
82
82
  * @param {string} options.sign_request_id The ID of the sign request
83
83
  * @param {Function} [callback] Passed the result if successful, error otherwise
84
- * @returns {Promise<object>} A promise resolving to the result or rejecting with an error
84
+ * @returns {Promise<void>} A promise resolving to the result or rejecting with an error
85
85
  */
86
86
  resendById(options: {
87
87
  /**
88
88
  * The ID of the sign request
89
89
  */
90
90
  readonly sign_request_id: string;
91
- }, callback?: Function): Promise<object>;
91
+ }, callback?: Function): Promise<void>;
92
92
  }
93
93
  export = SignRequestsManager;
@@ -95,7 +95,7 @@ var SignRequestsManager = /** @class */ (function () {
95
95
  * @param {object} options Options for the request
96
96
  * @param {string} options.sign_request_id The ID of the sign request
97
97
  * @param {Function} [callback] Passed the result if successful, error otherwise
98
- * @returns {Promise<object>} A promise resolving to the result or rejecting with an error
98
+ * @returns {Promise<void>} A promise resolving to the result or rejecting with an error
99
99
  */
100
100
  SignRequestsManager.prototype.resendById = function (options, callback) {
101
101
  var signRequestId = options.sign_request_id, queryParams = __rest(options, ["sign_request_id"]), apiPath = (0, url_path_1.default)('sign_requests', signRequestId, 'resend'), params = {
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Enterprise (Base)
3
+ *
4
+ * A mini representation of a enterprise, used when
5
+ * nested within another resource.
6
+ */
7
+ export interface EnterpriseBase {
8
+ /**
9
+ * The unique identifier for this enterprise
10
+ * Example: 1910967
11
+ */
12
+ id?: string;
13
+ /**
14
+ * `enterprise`
15
+ * Example: enterprise
16
+ */
17
+ type?: 'enterprise';
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=enterprise-base.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enterprise-base.generated.js","sourceRoot":"","sources":["../../src/schemas/enterprise-base.generated.ts"],"names":[],"mappings":""}
@@ -1,16 +1,4 @@
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-create-request.generated';
8
- export * from './sign-request-create-signer.generated';
9
- export * from './sign-request-prefill-tag.generated';
10
- export * from './sign-request-signer-input.generated';
11
- export * from './sign-request-signer.generated';
12
- export * from './sign-request.generated';
13
- export * from './sign-requests.generated';
1
+ export * from './index.generated';
14
2
  export * from './file-request';
15
3
  export * from './user-mini';
16
4
  export * from './collaboration';