box-node-sdk 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/lib/box-client.d.ts +2 -0
- package/lib/box-client.js +2 -0
- package/lib/box-client.js.map +1 -1
- package/lib/managers/collaborations.d.ts +4 -4
- package/lib/managers/collaborations.js +2 -2
- package/lib/managers/collaborations.js.map +1 -1
- package/lib/managers/integration-mappings.d.ts +116 -0
- package/lib/managers/integration-mappings.js +113 -0
- package/lib/managers/integration-mappings.js.map +1 -0
- package/lib/schemas/file-mini.generated.d.ts +2 -2
- package/lib/schemas/index.d.ts +8 -0
- package/lib/schemas/index.js +8 -0
- package/lib/schemas/index.js.map +1 -1
- package/lib/schemas/integration-mapping-base.d.ts +23 -0
- package/lib/schemas/integration-mapping-base.js +3 -0
- package/lib/schemas/integration-mapping-base.js.map +1 -0
- package/lib/schemas/integration-mapping-box-item-slack.d.ts +17 -0
- package/lib/schemas/integration-mapping-box-item-slack.js +3 -0
- package/lib/schemas/integration-mapping-box-item-slack.js.map +1 -0
- package/lib/schemas/integration-mapping-partner-item-slack.d.ts +27 -0
- package/lib/schemas/integration-mapping-partner-item-slack.js +3 -0
- package/lib/schemas/integration-mapping-partner-item-slack.js.map +1 -0
- package/lib/schemas/integration-mapping-slack-create-request.d.ts +12 -0
- package/lib/schemas/integration-mapping-slack-create-request.js +3 -0
- package/lib/schemas/integration-mapping-slack-create-request.js.map +1 -0
- package/lib/schemas/integration-mapping-slack-options.d.ts +16 -0
- package/lib/schemas/integration-mapping-slack-options.js +3 -0
- package/lib/schemas/integration-mapping-slack-options.js.map +1 -0
- package/lib/schemas/integration-mapping.d.ts +55 -0
- package/lib/schemas/integration-mapping.js +3 -0
- package/lib/schemas/integration-mapping.js.map +1 -0
- package/lib/schemas/integration-mappings.d.ts +27 -0
- package/lib/schemas/integration-mappings.js +3 -0
- package/lib/schemas/integration-mappings.js.map +1 -0
- package/lib/schemas/user-integration-mappings.d.ts +19 -0
- package/lib/schemas/user-integration-mappings.js +3 -0
- package/lib/schemas/user-integration-mappings.js.map +1 -0
- package/lib/token-manager.js +4 -4
- package/lib/token-manager.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [3.1.0](https://github.com/box/box-node-sdk/compare/v3.0.0...v3.1.0) (2023-06-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### New Features and Enhancements
|
|
9
|
+
|
|
10
|
+
* Added support for integration mappings API ([#831](https://github.com/box/box-node-sdk/issues/831)) ([a525327](https://github.com/box/box-node-sdk/commit/a525327c1362628a0ffdb36cb4bf3346ca0e0153))
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* Correct types of `userId` and `groupId` for creating collaboration ([#833](https://github.com/box/box-node-sdk/issues/833)) ([f803ff8](https://github.com/box/box-node-sdk/commit/f803ff82330fd78a8dc4875452a21aab54686b2e)), closes [#832](https://github.com/box/box-node-sdk/issues/832)
|
|
15
|
+
|
|
5
16
|
## [3.0.0](https://github.com/box/box-node-sdk/compare/v2.10.0...v3.0.0) (2023-05-23)
|
|
6
17
|
|
|
7
18
|
The most important change in this release is **dropping support for Node versions below 12** and changing the **support environments from Node 12 to Node 16**.
|
package/lib/box-client.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import ShieldInformationBarrierSegments from "./managers/shield-information-barr
|
|
|
13
13
|
import ShieldInformationBarrierSegmentMembers from "./managers/shield-information-barrier-segment-members.generated";
|
|
14
14
|
import ShieldInformationBarrierSegmentRestrictions from "./managers/shield-information-barrier-segment-restrictions.generated";
|
|
15
15
|
import ShieldInformationBarrierReports from "./managers/shield-information-barrier-reports.generated";
|
|
16
|
+
import IntegrationMappings from "./managers/integration-mappings";
|
|
16
17
|
/**
|
|
17
18
|
* A collaboration role constant
|
|
18
19
|
* @typedef {string} CollaborationRole
|
|
@@ -70,6 +71,7 @@ declare class BoxClient {
|
|
|
70
71
|
shieldInformationBarrierSegmentMembers: ShieldInformationBarrierSegmentMembers;
|
|
71
72
|
shieldInformationBarrierSegmentRestrictions: ShieldInformationBarrierSegmentRestrictions;
|
|
72
73
|
shieldInformationBarrierReports: ShieldInformationBarrierReports;
|
|
74
|
+
integrationMappings: IntegrationMappings;
|
|
73
75
|
collaborationRoles: Record<string, CollaborationRole>;
|
|
74
76
|
itemTypes: Record<string, ItemType>;
|
|
75
77
|
accessLevels: Record<string, AccessLevel>;
|
package/lib/box-client.js
CHANGED
|
@@ -39,6 +39,7 @@ var shield_information_barrier_segments_generated_1 = __importDefault(require(".
|
|
|
39
39
|
var shield_information_barrier_segment_members_generated_1 = __importDefault(require("./managers/shield-information-barrier-segment-members.generated"));
|
|
40
40
|
var shield_information_barrier_segment_restrictions_generated_1 = __importDefault(require("./managers/shield-information-barrier-segment-restrictions.generated"));
|
|
41
41
|
var shield_information_barrier_reports_generated_1 = __importDefault(require("./managers/shield-information-barrier-reports.generated"));
|
|
42
|
+
var integration_mappings_1 = __importDefault(require("./managers/integration-mappings"));
|
|
42
43
|
// ------------------------------------------------------------------------------
|
|
43
44
|
// Requirements
|
|
44
45
|
// ------------------------------------------------------------------------------
|
|
@@ -174,6 +175,7 @@ var BoxClient = /** @class */ (function () {
|
|
|
174
175
|
this.shieldInformationBarrierSegmentMembers = new shield_information_barrier_segment_members_generated_1.default(this);
|
|
175
176
|
this.shieldInformationBarrierSegmentRestrictions = new shield_information_barrier_segment_restrictions_generated_1.default(this);
|
|
176
177
|
this.shieldInformationBarrierReports = new shield_information_barrier_reports_generated_1.default(this);
|
|
178
|
+
this.integrationMappings = new integration_mappings_1.default(this);
|
|
177
179
|
}
|
|
178
180
|
/**
|
|
179
181
|
* Returns an object containing the given headers as well as other headers (like the authorization header and
|
package/lib/box-client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"box-client.js","sourceRoot":"","sources":["../src/box-client.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;AAEH,qCAAmC;AACnC,iFAAiF;AACjF,wBAAwB;AACxB,iFAAiF;AACjF,+FAAwE;AACxE,6EAAuD;AACvD,uEAAiD;AACjD,iEAA2C;AAC3C,uEAAgD;AAChD,qEAA+C;AAC/C,6DAAuC;AACvC,2DAAqC;AACrC,+DAAyC;AACzC,6DAAuC;AACvC,uFAA+D;AAC/D,iEAA2C;AAC3C,yEAAkD;AAClD,qFAA8D;AAC9D,6DAAuC;AACvC,yEAAkD;AAClD,+FAA8D;AAC9D,iFAA0D;AAC1D,2DAAqC;AACrC,iFAAyD;AACzD,2DAAqC;AACrC,2DAAqC;AACrC,mEAA4C;AAC5C,iEAA2C;AAC3C,2FAAmE;AACnE,2HAAyF;AACzF,2IAAwG;AACxG,yJAAqH;AACrH,mKAA+H;AAC/H,yIAAsG;AA2BtG,iFAAiF;AACjF,eAAe;AACf,iFAAiF;AACjF,IAAI,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,EACzB,EAAE,GAAG,OAAO,CAAC,aAAa,CAAC,EAC3B,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,EACjC,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC,EACxC,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,EAC1B,KAAK,GAAG,OAAO,CAAC,eAAe,CAAC,EAChC,cAAc,GAAG,OAAO,CAAC,wBAAwB,CAAC,EAClD,GAAG,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAElC,iFAAiF;AACjF,UAAU;AACV,iFAAiF;AAEjF,iCAAiC;AACjC,IAAI,oBAAoB,GAAG,eAAe;AACzC,gEAAgE;AAChE,2BAA2B,GAAG,SAAS;AACvC,4BAA4B;AAC5B,aAAa,GAAG,QAAQ;AACxB,kGA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AAC,CAAC;IAC7C,CAAC;IACF,gBAAC;AAAD,CAAC,AAhjBD,IAgjBC;AAED,iFAAiF;AACjF,SAAS;AACT,iFAAiF;AAEjF;;;;;GAKG;AACH,SAAS,CAAC,SAAS,CAAC,kBAAkB,GAAG;IACxC,MAAM,EAAE,QAAQ;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"}
|
|
@@ -97,7 +97,7 @@ declare class Collaborations {
|
|
|
97
97
|
* API Endpoint: '/collaborations
|
|
98
98
|
* Method: POST
|
|
99
99
|
*
|
|
100
|
-
* @param {int} userID - The ID of the user you'll invite as a collaborator
|
|
100
|
+
* @param {int | string} userID - The ID of the user you'll invite as a collaborator
|
|
101
101
|
* @param {string} itemID - Box ID of the item to which the user should be invited
|
|
102
102
|
* @param {CollaborationRole} role - The role which the invited collaborator should have
|
|
103
103
|
* @param {Object} [options] - Optional parameters for the collaboration
|
|
@@ -107,7 +107,7 @@ declare class Collaborations {
|
|
|
107
107
|
* @param {Function} [callback] - Called with the new collaboration if successful
|
|
108
108
|
* @returns {Promise<Collaboration>} A promise resolving to the created collaboration object
|
|
109
109
|
*/
|
|
110
|
-
createWithUserID(userID: number, itemID: string, role: CollaborationRole, options?: {
|
|
110
|
+
createWithUserID(userID: number | string, itemID: string, role: CollaborationRole, options?: {
|
|
111
111
|
type?: ItemType;
|
|
112
112
|
notify?: boolean;
|
|
113
113
|
can_view_path?: boolean;
|
|
@@ -139,7 +139,7 @@ declare class Collaborations {
|
|
|
139
139
|
* API Endpoint: '/collaborations
|
|
140
140
|
* Method: POST
|
|
141
141
|
*
|
|
142
|
-
* @param {int} groupID - The ID of the group you'll invite as a collaborator
|
|
142
|
+
* @param {int | string} groupID - The ID of the group you'll invite as a collaborator
|
|
143
143
|
* @param {string} itemID - Box ID of the item to which the group should be invited
|
|
144
144
|
* @param {CollaborationRole} role - The role which the invited collaborator should have
|
|
145
145
|
* @param {Object} [options] - Optional parameters for the collaboration
|
|
@@ -149,7 +149,7 @@ declare class Collaborations {
|
|
|
149
149
|
* @param {Function} [callback] - Called with the new collaboration if successful
|
|
150
150
|
* @returns {Promise<Collaboration>} A promise resolving to the created collaboration object
|
|
151
151
|
*/
|
|
152
|
-
createWithGroupID(groupID: number, itemID: string, role: CollaborationRole, options?: {
|
|
152
|
+
createWithGroupID(groupID: number | string, itemID: string, role: CollaborationRole, options?: {
|
|
153
153
|
type?: ItemType;
|
|
154
154
|
notify?: boolean;
|
|
155
155
|
can_view_path?: boolean;
|
|
@@ -158,7 +158,7 @@ var Collaborations = /** @class */ (function () {
|
|
|
158
158
|
* API Endpoint: '/collaborations
|
|
159
159
|
* Method: POST
|
|
160
160
|
*
|
|
161
|
-
* @param {int} userID - The ID of the user you'll invite as a collaborator
|
|
161
|
+
* @param {int | string} userID - The ID of the user you'll invite as a collaborator
|
|
162
162
|
* @param {string} itemID - Box ID of the item to which the user should be invited
|
|
163
163
|
* @param {CollaborationRole} role - The role which the invited collaborator should have
|
|
164
164
|
* @param {Object} [options] - Optional parameters for the collaboration
|
|
@@ -212,7 +212,7 @@ var Collaborations = /** @class */ (function () {
|
|
|
212
212
|
* API Endpoint: '/collaborations
|
|
213
213
|
* Method: POST
|
|
214
214
|
*
|
|
215
|
-
* @param {int} groupID - The ID of the group you'll invite as a collaborator
|
|
215
|
+
* @param {int | string} groupID - The ID of the group you'll invite as a collaborator
|
|
216
216
|
* @param {string} itemID - Box ID of the item to which the group should be invited
|
|
217
217
|
* @param {CollaborationRole} role - The role which the invited collaborator should have
|
|
218
218
|
* @param {Object} [options] - Optional parameters for the collaboration
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collaborations.js","sourceRoot":"","sources":["../../src/managers/collaborations.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;AAOH,8DAAuC;AAevC,iFAAiF;AACjF,UAAU;AACV,iFAAiF;AACjF,IAAM,SAAS,GAAG,iBAAiB,CAAC;AAEpC,iFAAiF;AACjF,SAAS;AACT,iFAAiF;AAEjF;;;;;;GAMG;AACH;IAGC,wBAAY,MAAiB;QAC5B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IAED;;;;;;;;;;OAUG;IACH,4BAAG,GAAH,UACC,eAAuB,EACvB,OAA6B,EAC7B,QAAmB;QAEnB,IAAM,MAAM,GAAG;YACd,EAAE,EAAE,OAAO;SACX,CAAC;QACF,IAAM,OAAO,GAAG,IAAA,kBAAO,EAAC,SAAS,EAAE,eAAe,CAAC,CAAC;QACpD,OAAO,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CACzD,OAAO,EACP,MAAM,EACN,QAAQ,CACR,CAAC;IACH,CAAC;IAED;;;;;;;;OAQG;IACH,mCAAU,GAAV,UAAW,QAAmB;QAC7B,IAAM,MAAM,GAAG;YACd,EAAE,EAAE;gBACH,MAAM,EAAE,SAAS;aACjB;SACD,CAAC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,GAGR;YACH,IAAI,EAAE;gBACL,IAAI,EAAE;oBACL,IAAI,EAAE,OAAO,CAAC,IAAI;oBAClB,EAAE,EAAE,MAAM;iBACV;gBACD,aAAa,EAAE,YAAY;gBAC3B,IAAI,MAAA;aACJ;SACD,CAAC;QAEF,IAAI,OAAO,OAAO,CAAC,aAAa,KAAK,SAAS,EAAE;YAC/C,MAAM,CAAC,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;SAClD;QAED,IAAI,OAAO,OAAO,CAAC,MAAM,KAAK,SAAS,EAAE;YACxC,MAAM,CAAC,EAAE,GAAG;gBACX,MAAM,EAAE,OAAO,CAAC,MAAM;aACtB,CAAC;SACF;QAED,IAAG,OAAO,OAAO,CAAC,cAAc,KAAK,SAAS,EAAE;YAC/C,MAAM,CAAC,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;SACpD;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAC1D,SAAS,EACT,MAAM,EACN,QAAQ,CACR,CAAC;IACH,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,yCAAgB,GAAhB,UACC,
|
|
1
|
+
{"version":3,"file":"collaborations.js","sourceRoot":"","sources":["../../src/managers/collaborations.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;AAOH,8DAAuC;AAevC,iFAAiF;AACjF,UAAU;AACV,iFAAiF;AACjF,IAAM,SAAS,GAAG,iBAAiB,CAAC;AAEpC,iFAAiF;AACjF,SAAS;AACT,iFAAiF;AAEjF;;;;;;GAMG;AACH;IAGC,wBAAY,MAAiB;QAC5B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IAED;;;;;;;;;;OAUG;IACH,4BAAG,GAAH,UACC,eAAuB,EACvB,OAA6B,EAC7B,QAAmB;QAEnB,IAAM,MAAM,GAAG;YACd,EAAE,EAAE,OAAO;SACX,CAAC;QACF,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AAC,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CACzD,OAAO,EACP,IAAI,EACJ,QAAQ,CACR,CAAC;IACH,CAAC;IACF,qBAAC;AAAD,CAAC,AArVD,IAqVC;AAMD,iBAAS,cAAc,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import BoxClient from '../box-client';
|
|
2
|
+
import * as schemas from '../schemas';
|
|
3
|
+
/**
|
|
4
|
+
*/
|
|
5
|
+
declare class IntegrationMappingsManager {
|
|
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
|
+
* List Slack integration mappings
|
|
13
|
+
*
|
|
14
|
+
* Lists [Slack integration mappings](https://support.box.com/hc/en-us/articles/4415585987859-Box-as-the-Content-Layer-for-Slack) in a users' enterprise.
|
|
15
|
+
*
|
|
16
|
+
* You need Admin or Co-Admin role to
|
|
17
|
+
* use this endpoint.
|
|
18
|
+
* @param {object} [options] Options for the request
|
|
19
|
+
* @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`.
|
|
20
|
+
* @param {number} [options.limit] The maximum number of items to return per page.
|
|
21
|
+
* @param {"channel"} [options.partner_item_type] Mapped item type, for which the mapping should be returned
|
|
22
|
+
* @param {string} [options.partner_item_id] ID of the mapped item, for which the mapping should be returned
|
|
23
|
+
* @param {string} [options.box_item_id] Box item ID, for which the mappings should be returned
|
|
24
|
+
* @param {"folder"} [options.box_item_type] Box item type, for which the mappings should be returned
|
|
25
|
+
* @param {boolean} [options.is_manually_created] Whether the mapping has been manually created
|
|
26
|
+
* @param {Function} [callback] Passed the result if successful, error otherwise
|
|
27
|
+
* @returns {Promise<schemas.IntegrationMappings>} A promise resolving to the result or rejecting with an error
|
|
28
|
+
*/
|
|
29
|
+
getSlackIntegrationMappings(options?: {
|
|
30
|
+
/**
|
|
31
|
+
* Defines the position marker at which to begin returning results. This is
|
|
32
|
+
* used when paginating using marker-based pagination.
|
|
33
|
+
*
|
|
34
|
+
* This requires `usemarker` to be set to `true`.
|
|
35
|
+
*/
|
|
36
|
+
readonly marker?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The maximum number of items to return per page.
|
|
39
|
+
*/
|
|
40
|
+
readonly limit?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Mapped item type, for which the mapping should be returned
|
|
43
|
+
*/
|
|
44
|
+
readonly partner_item_type?: 'channel';
|
|
45
|
+
/**
|
|
46
|
+
* ID of the mapped item, for which the mapping should be returned
|
|
47
|
+
*/
|
|
48
|
+
readonly partner_item_id?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Box item ID, for which the mappings should be returned
|
|
51
|
+
*/
|
|
52
|
+
readonly box_item_id?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Box item type, for which the mappings should be returned
|
|
55
|
+
*/
|
|
56
|
+
readonly box_item_type?: 'folder';
|
|
57
|
+
/**
|
|
58
|
+
* Whether the mapping has been manually created
|
|
59
|
+
*/
|
|
60
|
+
readonly is_manually_created?: boolean;
|
|
61
|
+
}, callback?: Function): Promise<schemas.IntegrationMappings>;
|
|
62
|
+
/**
|
|
63
|
+
* Create Slack integration mapping
|
|
64
|
+
*
|
|
65
|
+
* Creates a [Slack integration mapping](https://support.box.com/hc/en-us/articles/4415585987859-Box-as-the-Content-Layer-for-Slack)
|
|
66
|
+
* by mapping a Slack channel to a Box item.
|
|
67
|
+
*
|
|
68
|
+
* You need Admin or Co-Admin role to
|
|
69
|
+
* use this endpoint.
|
|
70
|
+
* @param {schemas.IntegrationMappingSlackCreateRequest} body
|
|
71
|
+
* @param {object} [options] Options for the request
|
|
72
|
+
* @param {Function} [callback] Passed the result if successful, error otherwise
|
|
73
|
+
* @returns {Promise<schemas.IntegrationMapping>} A promise resolving to the result or rejecting with an error
|
|
74
|
+
*/
|
|
75
|
+
createSlackIntegrationMapping(body: schemas.IntegrationMappingSlackCreateRequest, options?: {}, callback?: Function): Promise<schemas.IntegrationMapping>;
|
|
76
|
+
/**
|
|
77
|
+
* Update Slack integration mapping
|
|
78
|
+
*
|
|
79
|
+
* Updates a [Slack integration mapping](https://support.box.com/hc/en-us/articles/4415585987859-Box-as-the-Content-Layer-for-Slack).
|
|
80
|
+
* Supports updating the Box folder ID and options.
|
|
81
|
+
*
|
|
82
|
+
* You need Admin or Co-Admin role to
|
|
83
|
+
* use this endpoint.
|
|
84
|
+
* @param {object} body
|
|
85
|
+
* @param {object} options Options for the request
|
|
86
|
+
* @param {string} options.integration_mapping_id An ID of an integration mapping
|
|
87
|
+
* @param {Function} [callback] Passed the result if successful, error otherwise
|
|
88
|
+
* @returns {Promise<schemas.IntegrationMapping>} A promise resolving to the result or rejecting with an error
|
|
89
|
+
*/
|
|
90
|
+
updateSlackIntegrationMapping(body: object, options: {
|
|
91
|
+
/**
|
|
92
|
+
* An ID of an integration mapping
|
|
93
|
+
*/
|
|
94
|
+
readonly integration_mapping_id: string;
|
|
95
|
+
}, callback?: Function): Promise<schemas.IntegrationMapping>;
|
|
96
|
+
/**
|
|
97
|
+
* Delete Slack integration mapping
|
|
98
|
+
*
|
|
99
|
+
* Deletes a [Slack integration mapping](https://support.box.com/hc/en-us/articles/4415585987859-Box-as-the-Content-Layer-for-Slack).
|
|
100
|
+
*
|
|
101
|
+
*
|
|
102
|
+
* You need Admin or Co-Admin role to
|
|
103
|
+
* use this endpoint.
|
|
104
|
+
* @param {object} options Options for the request
|
|
105
|
+
* @param {string} options.integration_mapping_id An ID of an integration mapping
|
|
106
|
+
* @param {Function} [callback] Passed the result if successful, error otherwise
|
|
107
|
+
* @returns {Promise<void>} A promise resolving to the result or rejecting with an error
|
|
108
|
+
*/
|
|
109
|
+
deleteSlackIntegrationMappingById(options: {
|
|
110
|
+
/**
|
|
111
|
+
* An ID of an integration mapping
|
|
112
|
+
*/
|
|
113
|
+
readonly integration_mapping_id: string;
|
|
114
|
+
}, callback?: Function): Promise<void>;
|
|
115
|
+
}
|
|
116
|
+
export = IntegrationMappingsManager;
|
|
@@ -0,0 +1,113 @@
|
|
|
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 IntegrationMappingsManager = /** @class */ (function () {
|
|
20
|
+
/**
|
|
21
|
+
* @param {BoxClient} client The Box API Client that is responsible for making calls to the API
|
|
22
|
+
*/
|
|
23
|
+
function IntegrationMappingsManager(client) {
|
|
24
|
+
this.client = client;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* List Slack integration mappings
|
|
28
|
+
*
|
|
29
|
+
* Lists [Slack integration mappings](https://support.box.com/hc/en-us/articles/4415585987859-Box-as-the-Content-Layer-for-Slack) in a users' enterprise.
|
|
30
|
+
*
|
|
31
|
+
* You need Admin or Co-Admin role to
|
|
32
|
+
* use this endpoint.
|
|
33
|
+
* @param {object} [options] Options for the request
|
|
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 {"channel"} [options.partner_item_type] Mapped item type, for which the mapping should be returned
|
|
37
|
+
* @param {string} [options.partner_item_id] ID of the mapped item, for which the mapping should be returned
|
|
38
|
+
* @param {string} [options.box_item_id] Box item ID, for which the mappings should be returned
|
|
39
|
+
* @param {"folder"} [options.box_item_type] Box item type, for which the mappings should be returned
|
|
40
|
+
* @param {boolean} [options.is_manually_created] Whether the mapping has been manually created
|
|
41
|
+
* @param {Function} [callback] Passed the result if successful, error otherwise
|
|
42
|
+
* @returns {Promise<schemas.IntegrationMappings>} A promise resolving to the result or rejecting with an error
|
|
43
|
+
*/
|
|
44
|
+
IntegrationMappingsManager.prototype.getSlackIntegrationMappings = function (options, callback) {
|
|
45
|
+
var queryParams = __rest(options, []), apiPath = (0, url_path_1.default)('integration_mappings', 'slack'), params = {
|
|
46
|
+
qs: queryParams,
|
|
47
|
+
};
|
|
48
|
+
return this.client.wrapWithDefaultHandler(this.client.get)(apiPath, params, callback);
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Create Slack integration mapping
|
|
52
|
+
*
|
|
53
|
+
* Creates a [Slack integration mapping](https://support.box.com/hc/en-us/articles/4415585987859-Box-as-the-Content-Layer-for-Slack)
|
|
54
|
+
* by mapping a Slack channel to a Box item.
|
|
55
|
+
*
|
|
56
|
+
* You need Admin or Co-Admin role to
|
|
57
|
+
* use this endpoint.
|
|
58
|
+
* @param {schemas.IntegrationMappingSlackCreateRequest} body
|
|
59
|
+
* @param {object} [options] Options for the request
|
|
60
|
+
* @param {Function} [callback] Passed the result if successful, error otherwise
|
|
61
|
+
* @returns {Promise<schemas.IntegrationMapping>} A promise resolving to the result or rejecting with an error
|
|
62
|
+
*/
|
|
63
|
+
IntegrationMappingsManager.prototype.createSlackIntegrationMapping = function (body, options, callback) {
|
|
64
|
+
var queryParams = __rest(options, []), apiPath = (0, url_path_1.default)('integration_mappings', 'slack'), params = {
|
|
65
|
+
qs: queryParams,
|
|
66
|
+
body: body,
|
|
67
|
+
};
|
|
68
|
+
return this.client.wrapWithDefaultHandler(this.client.post)(apiPath, params, callback);
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Update Slack integration mapping
|
|
72
|
+
*
|
|
73
|
+
* Updates a [Slack integration mapping](https://support.box.com/hc/en-us/articles/4415585987859-Box-as-the-Content-Layer-for-Slack).
|
|
74
|
+
* Supports updating the Box folder ID and options.
|
|
75
|
+
*
|
|
76
|
+
* You need Admin or Co-Admin role to
|
|
77
|
+
* use this endpoint.
|
|
78
|
+
* @param {object} body
|
|
79
|
+
* @param {object} options Options for the request
|
|
80
|
+
* @param {string} options.integration_mapping_id An ID of an integration mapping
|
|
81
|
+
* @param {Function} [callback] Passed the result if successful, error otherwise
|
|
82
|
+
* @returns {Promise<schemas.IntegrationMapping>} A promise resolving to the result or rejecting with an error
|
|
83
|
+
*/
|
|
84
|
+
IntegrationMappingsManager.prototype.updateSlackIntegrationMapping = function (body, options, callback) {
|
|
85
|
+
var integrationMappingId = options.integration_mapping_id, queryParams = __rest(options, ["integration_mapping_id"]), apiPath = (0, url_path_1.default)('integration_mappings', 'slack', integrationMappingId), params = {
|
|
86
|
+
qs: queryParams,
|
|
87
|
+
body: body,
|
|
88
|
+
};
|
|
89
|
+
return this.client.wrapWithDefaultHandler(this.client.put)(apiPath, params, callback);
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Delete Slack integration mapping
|
|
93
|
+
*
|
|
94
|
+
* Deletes a [Slack integration mapping](https://support.box.com/hc/en-us/articles/4415585987859-Box-as-the-Content-Layer-for-Slack).
|
|
95
|
+
*
|
|
96
|
+
*
|
|
97
|
+
* You need Admin or Co-Admin role to
|
|
98
|
+
* use this endpoint.
|
|
99
|
+
* @param {object} options Options for the request
|
|
100
|
+
* @param {string} options.integration_mapping_id An ID of an integration mapping
|
|
101
|
+
* @param {Function} [callback] Passed the result if successful, error otherwise
|
|
102
|
+
* @returns {Promise<void>} A promise resolving to the result or rejecting with an error
|
|
103
|
+
*/
|
|
104
|
+
IntegrationMappingsManager.prototype.deleteSlackIntegrationMappingById = function (options, callback) {
|
|
105
|
+
var integrationMappingId = options.integration_mapping_id, queryParams = __rest(options, ["integration_mapping_id"]), apiPath = (0, url_path_1.default)('integration_mappings', 'slack', integrationMappingId), params = {
|
|
106
|
+
qs: queryParams,
|
|
107
|
+
};
|
|
108
|
+
return this.client.wrapWithDefaultHandler(this.client.del)(apiPath, params, callback);
|
|
109
|
+
};
|
|
110
|
+
return IntegrationMappingsManager;
|
|
111
|
+
}());
|
|
112
|
+
module.exports = IntegrationMappingsManager;
|
|
113
|
+
//# sourceMappingURL=integration-mappings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration-mappings.js","sourceRoot":"","sources":["../../src/managers/integration-mappings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,8DAAuC;AAEvC;GACG;AACH;IAEC;;OAEG;IACH,oCAAY,MAAiB;QAC5B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IACD;;;;;;;;;;;;;;;;;OAiBG;IACH,gEAA2B,GAA3B,UACC,OAgCC,EACD,QAAmB;QAEnB,IAAW,WAAW,UAAK,OAAO,EAA5B,EAAkB,CAAF,EACrB,OAAO,GAAG,IAAA,kBAAO,EAAC,sBAAsB,EAAE,OAAO,CAAC,EAClD,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;;;;;;;;;;;;OAYG;IACH,kEAA6B,GAA7B,UACC,IAAkD,EAClD,OAAY,EACZ,QAAmB;QAEnB,IAAW,WAAW,UAAK,OAAO,EAA5B,EAAkB,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B,CAAC"}
|
|
@@ -22,7 +22,7 @@ export interface FileMini extends schemas.FileBase {
|
|
|
22
22
|
* fetched resource.
|
|
23
23
|
* Example: 3
|
|
24
24
|
*/
|
|
25
|
-
sequence_id
|
|
25
|
+
sequence_id?: string;
|
|
26
26
|
/**
|
|
27
27
|
* The name of the file
|
|
28
28
|
* Example: Contract.pdf
|
|
@@ -33,7 +33,7 @@ export interface FileMini extends schemas.FileBase {
|
|
|
33
33
|
* of a file on Box with a local file.
|
|
34
34
|
* Example: 85136C79CBF9FE36BB9D05D0639C70C265C18D37
|
|
35
35
|
*/
|
|
36
|
-
sha1
|
|
36
|
+
sha1?: string;
|
|
37
37
|
/**
|
|
38
38
|
* The information about the current version of the file.
|
|
39
39
|
*/
|
package/lib/schemas/index.d.ts
CHANGED
|
@@ -5,3 +5,11 @@ export * from './collaboration';
|
|
|
5
5
|
export * from './collaborations';
|
|
6
6
|
export * from './collaboration-create';
|
|
7
7
|
export * from './collaboration-update';
|
|
8
|
+
export * from './integration-mapping-base';
|
|
9
|
+
export * from './integration-mapping-box-item-slack';
|
|
10
|
+
export * from './integration-mapping-partner-item-slack';
|
|
11
|
+
export * from './integration-mapping-slack-create-request';
|
|
12
|
+
export * from './integration-mapping-slack-options';
|
|
13
|
+
export * from './integration-mapping';
|
|
14
|
+
export * from './integration-mappings';
|
|
15
|
+
export * from './user-integration-mappings';
|
package/lib/schemas/index.js
CHANGED
|
@@ -17,4 +17,12 @@ __exportStar(require("./collaboration"), exports);
|
|
|
17
17
|
__exportStar(require("./collaborations"), exports);
|
|
18
18
|
__exportStar(require("./collaboration-create"), exports);
|
|
19
19
|
__exportStar(require("./collaboration-update"), exports);
|
|
20
|
+
__exportStar(require("./integration-mapping-base"), exports);
|
|
21
|
+
__exportStar(require("./integration-mapping-box-item-slack"), exports);
|
|
22
|
+
__exportStar(require("./integration-mapping-partner-item-slack"), exports);
|
|
23
|
+
__exportStar(require("./integration-mapping-slack-create-request"), exports);
|
|
24
|
+
__exportStar(require("./integration-mapping-slack-options"), exports);
|
|
25
|
+
__exportStar(require("./integration-mapping"), exports);
|
|
26
|
+
__exportStar(require("./integration-mappings"), exports);
|
|
27
|
+
__exportStar(require("./user-integration-mappings"), exports);
|
|
20
28
|
//# sourceMappingURL=index.js.map
|
package/lib/schemas/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAkC;AAClC,iDAA+B;AAC/B,8CAA4B;AAC5B,kDAAgC;AAChC,mDAAiC;AACjC,yDAAuC;AACvC,yDAAuC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAkC;AAClC,iDAA+B;AAC/B,8CAA4B;AAC5B,kDAAgC;AAChC,mDAAiC;AACjC,yDAAuC;AACvC,yDAAuC;AACvC,6DAA2C;AAC3C,uEAAqD;AACrD,2EAAyD;AACzD,6EAA2D;AAC3D,sEAAoD;AACpD,wDAAsC;AACtC,yDAAuC;AACvC,8DAA4C"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Integration mapping (Base)
|
|
3
|
+
*
|
|
4
|
+
* A base representation of an
|
|
5
|
+
* integration mapping object.
|
|
6
|
+
*/
|
|
7
|
+
export interface IntegrationMappingBase {
|
|
8
|
+
/**
|
|
9
|
+
* A unique identifier of a folder mapping
|
|
10
|
+
* (part of a composite key together
|
|
11
|
+
* with `integration_type`)
|
|
12
|
+
* Example: 12345
|
|
13
|
+
*/
|
|
14
|
+
id?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Identifies the Box partner app,
|
|
17
|
+
* with which the mapping is associated.
|
|
18
|
+
* Currently only supports Slack.
|
|
19
|
+
* (part of the composite key together with `id`)
|
|
20
|
+
* Example: slack
|
|
21
|
+
*/
|
|
22
|
+
integration_type?: 'slack';
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration-mapping-base.js","sourceRoot":"","sources":["../../src/schemas/integration-mapping-base.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Integration mapping Box item schema for type Slack
|
|
3
|
+
*
|
|
4
|
+
* The schema for an integration mapping Box item object for type Slack
|
|
5
|
+
*/
|
|
6
|
+
export interface IntegrationMappingBoxItemSlack {
|
|
7
|
+
/**
|
|
8
|
+
* Type of the mapped item referenced in `id`
|
|
9
|
+
* Example: folder
|
|
10
|
+
*/
|
|
11
|
+
type: 'folder';
|
|
12
|
+
/**
|
|
13
|
+
* ID of the mapped item (of type referenced in `type`)
|
|
14
|
+
* Example: 1234567891
|
|
15
|
+
*/
|
|
16
|
+
id: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration-mapping-box-item-slack.js","sourceRoot":"","sources":["../../src/schemas/integration-mapping-box-item-slack.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Integration mapping mapped item schema for type Slack
|
|
3
|
+
*
|
|
4
|
+
* The schema for an integration mapping mapped item object for type Slack
|
|
5
|
+
*/
|
|
6
|
+
export interface IntegrationMappingPartnerItemSlack {
|
|
7
|
+
/**
|
|
8
|
+
* Type of the mapped item referenced in `id`
|
|
9
|
+
* Example: channel
|
|
10
|
+
*/
|
|
11
|
+
type: 'channel';
|
|
12
|
+
/**
|
|
13
|
+
* ID of the mapped item (of type referenced in `type`)
|
|
14
|
+
* Example: C12378991223
|
|
15
|
+
*/
|
|
16
|
+
id: string;
|
|
17
|
+
/**
|
|
18
|
+
* ID of the Slack workspace with which the item is associated
|
|
19
|
+
* Example: T12352314
|
|
20
|
+
*/
|
|
21
|
+
slack_workspace_id?: string;
|
|
22
|
+
/**
|
|
23
|
+
* ID of the Slack organization with which the item is associated
|
|
24
|
+
* Example: E1234567
|
|
25
|
+
*/
|
|
26
|
+
slack_org_id?: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration-mapping-partner-item-slack.js","sourceRoot":"","sources":["../../src/schemas/integration-mapping-partner-item-slack.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as schemas from '.';
|
|
2
|
+
/**
|
|
3
|
+
* Create integration mapping request
|
|
4
|
+
*
|
|
5
|
+
* A request to create a
|
|
6
|
+
* Slack Integration Mapping object
|
|
7
|
+
*/
|
|
8
|
+
export interface IntegrationMappingSlackCreateRequest {
|
|
9
|
+
partner_item: schemas.IntegrationMappingPartnerItemSlack;
|
|
10
|
+
box_item: schemas.IntegrationMappingBoxItemSlack;
|
|
11
|
+
options?: schemas.IntegrationMappingSlackOptions;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration-mapping-slack-create-request.js","sourceRoot":"","sources":["../../src/schemas/integration-mapping-slack-create-request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Integration mapping options for type Slack
|
|
3
|
+
*
|
|
4
|
+
* The schema for an integration mapping options object for Slack type.
|
|
5
|
+
*/
|
|
6
|
+
export interface IntegrationMappingSlackOptions {
|
|
7
|
+
/**
|
|
8
|
+
* Indicates whether or not channel member
|
|
9
|
+
* access to the underlying box item
|
|
10
|
+
* should be automatically managed.
|
|
11
|
+
* Depending on type of channel, access is managed
|
|
12
|
+
* through creating collaborations or shared links.
|
|
13
|
+
* Example: true
|
|
14
|
+
*/
|
|
15
|
+
is_access_management_disabled?: boolean;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration-mapping-slack-options.js","sourceRoot":"","sources":["../../src/schemas/integration-mapping-slack-options.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as schemas from '.';
|
|
2
|
+
/**
|
|
3
|
+
* Integration mapping
|
|
4
|
+
*
|
|
5
|
+
* A standard representation of an integration
|
|
6
|
+
* mapping object.
|
|
7
|
+
*/
|
|
8
|
+
export interface IntegrationMapping extends schemas.IntegrationMappingBase {
|
|
9
|
+
/**
|
|
10
|
+
* Mapping type
|
|
11
|
+
* Example: integration_mapping
|
|
12
|
+
*/
|
|
13
|
+
type: 'integration_mapping';
|
|
14
|
+
/**
|
|
15
|
+
* Mapped item object for Slack
|
|
16
|
+
*/
|
|
17
|
+
partner_item: schemas.IntegrationMappingPartnerItemSlack;
|
|
18
|
+
/**
|
|
19
|
+
* The Box folder, to which the object from the
|
|
20
|
+
* partner app domain (referenced in `partner_item_id`) is mapped
|
|
21
|
+
*/
|
|
22
|
+
box_item: schemas.FolderMini;
|
|
23
|
+
/**
|
|
24
|
+
* Identifies whether the mapping has
|
|
25
|
+
* been manually set
|
|
26
|
+
* (as opposed to being automatically created)
|
|
27
|
+
* Example: true
|
|
28
|
+
*/
|
|
29
|
+
is_manually_created?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Integration mapping options for Slack
|
|
32
|
+
* Example: [object Object]
|
|
33
|
+
*/
|
|
34
|
+
options?: schemas.IntegrationMappingSlackOptions;
|
|
35
|
+
/**
|
|
36
|
+
* An object representing the user who
|
|
37
|
+
* created the integration mapping
|
|
38
|
+
*/
|
|
39
|
+
created_by?: schemas.UserIntegrationMappings;
|
|
40
|
+
/**
|
|
41
|
+
* The user who
|
|
42
|
+
* last modified the integration mapping
|
|
43
|
+
*/
|
|
44
|
+
modified_by?: schemas.UserIntegrationMappings;
|
|
45
|
+
/**
|
|
46
|
+
* When the integration mapping object was created
|
|
47
|
+
* Example: 2012-12-12T10:53:43-08:00
|
|
48
|
+
*/
|
|
49
|
+
created_at?: string;
|
|
50
|
+
/**
|
|
51
|
+
* When the integration mapping object was last modified
|
|
52
|
+
* Example: 2012-12-12T10:53:43-08:00
|
|
53
|
+
*/
|
|
54
|
+
modified_at?: string;
|
|
55
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration-mapping.js","sourceRoot":"","sources":["../../src/schemas/integration-mapping.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as schemas from '.';
|
|
2
|
+
/**
|
|
3
|
+
* Integration mappings
|
|
4
|
+
*
|
|
5
|
+
* The part of an API response that describes marker
|
|
6
|
+
* based pagination
|
|
7
|
+
*/
|
|
8
|
+
export interface IntegrationMappings {
|
|
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.IntegrationMapping[];
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration-mappings.js","sourceRoot":"","sources":["../../src/schemas/integration-mappings.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as schemas from '.';
|
|
2
|
+
/**
|
|
3
|
+
* User (Integration Mappings)
|
|
4
|
+
*
|
|
5
|
+
* A user representation for integration mappings
|
|
6
|
+
* API purposes. Fields name and login are not required.
|
|
7
|
+
*/
|
|
8
|
+
export interface UserIntegrationMappings extends schemas.UserBase {
|
|
9
|
+
/**
|
|
10
|
+
* The display name of this user
|
|
11
|
+
* Example: Aaron Levie
|
|
12
|
+
*/
|
|
13
|
+
name?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The primary email address of this user
|
|
16
|
+
* Example: ceo@example.com
|
|
17
|
+
*/
|
|
18
|
+
login?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-integration-mappings.js","sourceRoot":"","sources":["../../src/schemas/user-integration-mappings.ts"],"names":[],"mappings":""}
|
package/lib/token-manager.js
CHANGED
|
@@ -11,7 +11,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
11
11
|
var bluebird_1 = __importDefault(require("bluebird"));
|
|
12
12
|
var http_status_1 = __importDefault(require("http-status"));
|
|
13
13
|
var jsonwebtoken_1 = __importDefault(require("jsonwebtoken"));
|
|
14
|
-
var uuid_1 =
|
|
14
|
+
var uuid_1 = require("uuid");
|
|
15
15
|
var errors_1 = __importDefault(require("./util/errors"));
|
|
16
16
|
var exponential_backoff_1 = __importDefault(require("./util/exponential-backoff"));
|
|
17
17
|
/**
|
|
@@ -273,7 +273,7 @@ var TokenManager = /** @class */ (function () {
|
|
|
273
273
|
audience: BOX_JWT_AUDIENCE,
|
|
274
274
|
subject: id,
|
|
275
275
|
issuer: this.config.clientID,
|
|
276
|
-
jwtid: uuid_1.
|
|
276
|
+
jwtid: (0, uuid_1.v4)(),
|
|
277
277
|
noTimestamp: !this.config.appAuth.verifyTimestamp,
|
|
278
278
|
keyid: this.config.appAuth.keyID,
|
|
279
279
|
};
|
|
@@ -355,7 +355,7 @@ var TokenManager = /** @class */ (function () {
|
|
|
355
355
|
}
|
|
356
356
|
// Add length of retry timeout to current expiration time to calculate the expiration time for the JTI claim.
|
|
357
357
|
claims.exp = Math.ceil(time + this.config.appAuth.expirationTime + retryTimeoutinSeconds);
|
|
358
|
-
jwtOptions.jwtid = uuid_1.
|
|
358
|
+
jwtOptions.jwtid = (0, uuid_1.v4)();
|
|
359
359
|
try {
|
|
360
360
|
params.assertion = jsonwebtoken_1.default.sign(claims, keyParams, jwtOptions);
|
|
361
361
|
}
|
|
@@ -413,7 +413,7 @@ var TokenManager = /** @class */ (function () {
|
|
|
413
413
|
algorithm: 'none',
|
|
414
414
|
expiresIn: '1m',
|
|
415
415
|
noTimestamp: true,
|
|
416
|
-
jwtid: uuid_1.
|
|
416
|
+
jwtid: (0, uuid_1.v4)(),
|
|
417
417
|
};
|
|
418
418
|
var token;
|
|
419
419
|
try {
|
package/lib/token-manager.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-manager.js","sourceRoot":"","sources":["../src/token-manager.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;AAEH,iFAAiF;AACjF,eAAe;AACf,iFAAiF;AAEjF,sDAA+B;AAC/B,4DAA0C;AAC1C,8DAA+B;AAC/B,8CAAwB;AAExB,yDAAmC;AACnC,mFAAyD;AA8DzD;;;;GAIG;AACH,SAAS,uBAAuB,CAAC,GAAQ,CAAC,WAAW;IACpD,IACC,GAAG,CAAC,WAAW;QACf,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI;QACzB,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACvD,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EACxD;QACD,OAAO,IAAI,CAAC;KACZ;SAAM,IAAI,GAAG,CAAC,UAAU,KAAK,GAAG,IAAI,GAAG,CAAC,UAAU,IAAI,GAAG,EAAE;QAC3D,OAAO,IAAI,CAAC;KACZ;IACD,OAAO,KAAK,CAAC;AACd,CAAC;AAED,iFAAiF;AACjF,YAAY;AACZ,iFAAiF;AAEjF;;;;;GAKG;AACH,IAAI,UAAU,GAAG;IAChB,kBAAkB,EAAE,oBAAoB;IACxC,aAAa,EAAE,eAAe;IAC9B,kBAAkB,EAAE,oB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
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1.0",
|
|
5
5
|
"description": "Official SDK for Box Plaform APIs",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"proxy-agent": "^5.0.0",
|
|
46
46
|
"request": "^2.88.0",
|
|
47
47
|
"url-template": "^2.0.8",
|
|
48
|
-
"uuid": "^
|
|
48
|
+
"uuid": "^9.0.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/jest": "^27.1.5",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@types/request": "^2.48.5",
|
|
57
57
|
"@types/shelljs": "^0.8.9",
|
|
58
58
|
"@types/url-template": "^2.0.28",
|
|
59
|
-
"@types/uuid": "^
|
|
59
|
+
"@types/uuid": "^9.0.1",
|
|
60
60
|
"better-docs": "^2.7.2",
|
|
61
61
|
"chai": "^4.2.0",
|
|
62
62
|
"doctoc": "^2.2.1",
|