@pageproof/sdk-pr 746.0.1793655460841 → 747.0.1793668777318
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/lib/api/Integrations.d.ts +19 -0
- package/lib/api/Integrations.js +1 -1
- package/lib/api/admin/TeamFeatures.d.ts +0 -1
- package/lib/api/admin/TeamFeatures.js +0 -3
- package/lib/models/TeamWorkflowFeatures.d.ts +0 -6
- package/lib/models/TeamWorkflowFeatures.js +1 -1
- package/lib/network/endpoints.json +6 -1
- package/lib/pageproof.js +1 -1
- package/package.json +1 -1
|
@@ -101,6 +101,25 @@ declare class Integrations extends API {
|
|
|
101
101
|
id: string;
|
|
102
102
|
name: string;
|
|
103
103
|
}>>;
|
|
104
|
+
/**
|
|
105
|
+
* Lists the folders inside the connected Box, for picking the folder approved
|
|
106
|
+
* proofs are delivered to.
|
|
107
|
+
*
|
|
108
|
+
* @example <caption>Listing the folders in All Files</caption>
|
|
109
|
+
* const admin = await client.admin();
|
|
110
|
+
* const folders = await admin.team.integrations.getBoxFolders();
|
|
111
|
+
*
|
|
112
|
+
* @example <caption>Listing the subfolders of a folder</caption>
|
|
113
|
+
* const folders = await admin.team.integrations.getBoxFolders(folderId);
|
|
114
|
+
*
|
|
115
|
+
* @since 2.32.0
|
|
116
|
+
* @param {string} [itemId] The id of the folder to list; omit for All Files
|
|
117
|
+
* @returns {Promise<Array<{ id: string, name: string }>>}
|
|
118
|
+
*/
|
|
119
|
+
getBoxFolders(itemId?: string): Promise<Array<{
|
|
120
|
+
id: string;
|
|
121
|
+
name: string;
|
|
122
|
+
}>>;
|
|
104
123
|
/**
|
|
105
124
|
* Gets everything needed to open the Google Picker so the user can choose the
|
|
106
125
|
* folder approved proofs are delivered to.
|
package/lib/api/Integrations.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.__esModule=true;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key]}}}return target};var _API2=require("./API");var _API3=_interopRequireDefault(_API2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass}var Integrations=function(_API){_inherits(Integrations,_API);function Integrations(client,level){_classCallCheck(this,Integrations);var _this=_possibleConstructorReturn(this,_API.call(this,client));_this.level=level;return _this}Integrations.prototype.configurations=function configurations(){var integrationKeys=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];return this.client.request("integrations.get-configurations",{level:this.level,integration_keys:integrationKeys.join(",")}).then(function(response){if(response.data){return response.data.integrations}return null})};Integrations.prototype.getSetupUrl=function getSetupUrl(integrationKey,params){return this.client.request("integrations.get-setup-url",{params:_extends({},params,{integration_key:integrationKey,level:this.level})}).then(function(response){return{url:response.data.url,windowFeatures:response.data.windowFeatures}})};Integrations.prototype.disable=function disable(integrationKey){return this.client.request("integrations.disable",{level:this.level,integration_key:integrationKey})};Integrations.prototype.updateConfiguration=function updateConfiguration(integrationKey,key,value){return this.client.request("integrations.update-configuration",{level:this.level,integrationKey:integrationKey,key:key,value:value})};Integrations.prototype.getOneDriveFolders=function getOneDriveFolders(itemId){return this.client.request("integrations.one-drive.get-folders",{level:this.level,itemId:itemId||""}).then(function(response){return response.data.folders})};Integrations.prototype.getDropboxFolders=function getDropboxFolders(itemId){return this.client.request("integrations.dropbox.get-folders",{level:this.level,itemId:itemId||""}).then(function(response){return response.data.folders})};Integrations.prototype.getGoogleDrivePickerToken=function getGoogleDrivePickerToken(){return this.client.request("integrations.google-drive.get-picker-token",{level:this.level}).then(function(response){return response.data.picker})};Integrations.prototype.getSharePointSites=function getSharePointSites(query){return this.client.request("integrations.sharepoint.get-sites",{level:this.level,query:query||""}).then(function(response){return response.data.sites})};Integrations.prototype.getSharePointLibraries=function getSharePointLibraries(siteId){return this.client.request("integrations.sharepoint.get-libraries",{level:this.level,siteId:siteId}).then(function(response){return response.data.libraries})};Integrations.prototype.getSharePointFolders=function getSharePointFolders(itemId){return this.client.request("integrations.sharepoint.get-folders",{level:this.level,itemId:itemId||""}).then(function(response){return response.data.folders})};Integrations.prototype.getJiraPendingConnection=function getJiraPendingConnection(pendingId){return this.client.request("integrations.jira.get-pending-connection",{pendingId:pendingId}).then(function(response){return response.data.sites})};Integrations.prototype.completeJiraPendingConnection=function completeJiraPendingConnection(pendingId,cloudId){return this.client.request("integrations.jira.complete-pending-connection",{pendingId:pendingId,cloudId:cloudId})};return Integrations}(_API3.default);exports.default=Integrations;
|
|
1
|
+
"use strict";exports.__esModule=true;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key]}}}return target};var _API2=require("./API");var _API3=_interopRequireDefault(_API2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass}var Integrations=function(_API){_inherits(Integrations,_API);function Integrations(client,level){_classCallCheck(this,Integrations);var _this=_possibleConstructorReturn(this,_API.call(this,client));_this.level=level;return _this}Integrations.prototype.configurations=function configurations(){var integrationKeys=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];return this.client.request("integrations.get-configurations",{level:this.level,integration_keys:integrationKeys.join(",")}).then(function(response){if(response.data){return response.data.integrations}return null})};Integrations.prototype.getSetupUrl=function getSetupUrl(integrationKey,params){return this.client.request("integrations.get-setup-url",{params:_extends({},params,{integration_key:integrationKey,level:this.level})}).then(function(response){return{url:response.data.url,windowFeatures:response.data.windowFeatures}})};Integrations.prototype.disable=function disable(integrationKey){return this.client.request("integrations.disable",{level:this.level,integration_key:integrationKey})};Integrations.prototype.updateConfiguration=function updateConfiguration(integrationKey,key,value){return this.client.request("integrations.update-configuration",{level:this.level,integrationKey:integrationKey,key:key,value:value})};Integrations.prototype.getOneDriveFolders=function getOneDriveFolders(itemId){return this.client.request("integrations.one-drive.get-folders",{level:this.level,itemId:itemId||""}).then(function(response){return response.data.folders})};Integrations.prototype.getDropboxFolders=function getDropboxFolders(itemId){return this.client.request("integrations.dropbox.get-folders",{level:this.level,itemId:itemId||""}).then(function(response){return response.data.folders})};Integrations.prototype.getBoxFolders=function getBoxFolders(itemId){return this.client.request("integrations.box.get-folders",{level:this.level,itemId:itemId||""}).then(function(response){return response.data.folders})};Integrations.prototype.getGoogleDrivePickerToken=function getGoogleDrivePickerToken(){return this.client.request("integrations.google-drive.get-picker-token",{level:this.level}).then(function(response){return response.data.picker})};Integrations.prototype.getSharePointSites=function getSharePointSites(query){return this.client.request("integrations.sharepoint.get-sites",{level:this.level,query:query||""}).then(function(response){return response.data.sites})};Integrations.prototype.getSharePointLibraries=function getSharePointLibraries(siteId){return this.client.request("integrations.sharepoint.get-libraries",{level:this.level,siteId:siteId}).then(function(response){return response.data.libraries})};Integrations.prototype.getSharePointFolders=function getSharePointFolders(itemId){return this.client.request("integrations.sharepoint.get-folders",{level:this.level,itemId:itemId||""}).then(function(response){return response.data.folders})};Integrations.prototype.getJiraPendingConnection=function getJiraPendingConnection(pendingId){return this.client.request("integrations.jira.get-pending-connection",{pendingId:pendingId}).then(function(response){return response.data.sites})};Integrations.prototype.completeJiraPendingConnection=function completeJiraPendingConnection(pendingId,cloudId){return this.client.request("integrations.jira.complete-pending-connection",{pendingId:pendingId,cloudId:cloudId})};return Integrations}(_API3.default);exports.default=Integrations;
|
|
@@ -56,7 +56,6 @@ declare class TeamFeatures extends API {
|
|
|
56
56
|
* @param {boolean} options.userGroups.enableUserGroups Whether the user groups feature is enabled for the team.
|
|
57
57
|
* @param {boolean} options.webhooks.enabled Whether the webhooks feature is enabled for the team, and the team's active will trigger.
|
|
58
58
|
* @param {boolean} options.workflows.enableViewOnlyReviewers Whether users in a workflow can be given the view only role.
|
|
59
|
-
* @param {boolean} options.workflows.restrictTemplateCreation Whether only team admins with the templates permission can create new workflow templates (enterprise only).
|
|
60
59
|
* @param {boolean} options.intelligence.enableIntelligence Whether PageProof intelligence is enabled for the team.
|
|
61
60
|
* @param {boolean} options.intelligence.licenseIntelligenceInsightsInProofing Whether PI Insights in Proofing is licensed for the team.
|
|
62
61
|
* @param {boolean} options.intelligence.enableIntelligenceInsightsInProofing Whether PI Insights in Proofing is enabled for the team.
|
|
@@ -94,7 +94,6 @@ var TeamFeatures = function (_API) {
|
|
|
94
94
|
* @param {boolean} options.userGroups.enableUserGroups Whether the user groups feature is enabled for the team.
|
|
95
95
|
* @param {boolean} options.webhooks.enabled Whether the webhooks feature is enabled for the team, and the team's active will trigger.
|
|
96
96
|
* @param {boolean} options.workflows.enableViewOnlyReviewers Whether users in a workflow can be given the view only role.
|
|
97
|
-
* @param {boolean} options.workflows.restrictTemplateCreation Whether only team admins with the templates permission can create new workflow templates (enterprise only).
|
|
98
97
|
* @param {boolean} options.intelligence.enableIntelligence Whether PageProof intelligence is enabled for the team.
|
|
99
98
|
* @param {boolean} options.intelligence.licenseIntelligenceInsightsInProofing Whether PI Insights in Proofing is licensed for the team.
|
|
100
99
|
* @param {boolean} options.intelligence.enableIntelligenceInsightsInProofing Whether PI Insights in Proofing is enabled for the team.
|
|
@@ -134,7 +133,6 @@ var TeamFeatures = function (_API) {
|
|
|
134
133
|
var enableCommentVisibility = comments && comments.enableCommentVisibility;
|
|
135
134
|
var defaultCommentVisibility = comments && comments.defaultCommentVisibility;
|
|
136
135
|
var enableViewOnlyReviewers = workflows && workflows.enableViewOnlyReviewers;
|
|
137
|
-
var restrictWorkflowTemplateCreation = workflows && workflows.restrictTemplateCreation;
|
|
138
136
|
var emailTitleTextColor = emails && emails.titleTextColor;
|
|
139
137
|
var emailLinkTextColor = emails && emails.linkTextColor;
|
|
140
138
|
var emailButtonBackgroundColor = emails && emails.buttonBackgroundColor;
|
|
@@ -186,7 +184,6 @@ var TeamFeatures = function (_API) {
|
|
|
186
184
|
enableCommentVisibility: enableCommentVisibility,
|
|
187
185
|
defaultCommentVisibility: defaultCommentVisibility,
|
|
188
186
|
enableViewOnlyReviewers: enableViewOnlyReviewers,
|
|
189
|
-
restrictWorkflowTemplateCreation: restrictWorkflowTemplateCreation,
|
|
190
187
|
emailTitleTextColor: emailTitleTextColor,
|
|
191
188
|
emailLinkTextColor: emailLinkTextColor,
|
|
192
189
|
emailButtonBackgroundColor: emailButtonBackgroundColor,
|
|
@@ -12,12 +12,6 @@ declare class TeamWorkflowFeatures {
|
|
|
12
12
|
* @type {boolean}
|
|
13
13
|
*/
|
|
14
14
|
enableViewOnlyReviewers: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Whether only team admins with the templates permission can create new workflow templates (enterprise only).
|
|
17
|
-
*
|
|
18
|
-
* @type {boolean}
|
|
19
|
-
*/
|
|
20
|
-
restrictTemplateCreation: boolean;
|
|
21
15
|
/** @private */
|
|
22
16
|
private fromTeamWorkflowFeatures;
|
|
23
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.__esModule=true;var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var TeamWorkflowFeatureSchema={configureViewOnlyReviewers:"LicenseViewOnlyReviewers",enableViewOnlyReviewers:"EnableViewOnlyReviewers"
|
|
1
|
+
"use strict";exports.__esModule=true;var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var TeamWorkflowFeatureSchema={configureViewOnlyReviewers:"LicenseViewOnlyReviewers",enableViewOnlyReviewers:"EnableViewOnlyReviewers"};var TeamWorkflowFeatures=function(){function TeamWorkflowFeatures(){_classCallCheck(this,TeamWorkflowFeatures)}TeamWorkflowFeatures.prototype.fromTeamWorkflowFeatures=function fromTeamWorkflowFeatures(teamWorkflowFeaturesData){(0,_transform2.default)(this,TeamWorkflowFeatureSchema,teamWorkflowFeaturesData);return this};return TeamWorkflowFeatures}();exports.default=TeamWorkflowFeatures;
|
|
@@ -921,7 +921,7 @@
|
|
|
921
921
|
"version": 2,
|
|
922
922
|
"method": "POST",
|
|
923
923
|
"path": "/api/admin/settings",
|
|
924
|
-
"body": ["displayComments", "generalComments", "privateComments", "enableWebhooks", "editComments", "ownerCanDeleteComments", "proofReference", "proofReferenceRequired", "displayTeamName", "emailTitleTextColor", "emailLinkTextColor", "emailButtonBackgroundColor", "emailButtonTextColor", "disableReplyingToCommentsInStatuses", "publicProofs", "defaultProofIsPublic", "messageToOwners", "allowedDecisions", "enableChecklists", "enableBulkNewVersions", "suggestionsIncludeTeamMembers", "enableUserGroups", "enableCommentVisibility", "defaultCommentVisibility", "usePreviousVersionDueDate", "addReviewersViaMention", "enableViewOnlyReviewers", "
|
|
924
|
+
"body": ["displayComments", "generalComments", "privateComments", "enableWebhooks", "editComments", "ownerCanDeleteComments", "proofReference", "proofReferenceRequired", "displayTeamName", "emailTitleTextColor", "emailLinkTextColor", "emailButtonBackgroundColor", "emailButtonTextColor", "disableReplyingToCommentsInStatuses", "publicProofs", "defaultProofIsPublic", "messageToOwners", "allowedDecisions", "enableChecklists", "enableBulkNewVersions", "suggestionsIncludeTeamMembers", "enableUserGroups", "enableCommentVisibility", "defaultCommentVisibility", "usePreviousVersionDueDate", "addReviewersViaMention", "enableViewOnlyReviewers", "enableIntelligence", "licenseIntelligenceInsightsInProofing", "enableIntelligenceInsightsInProofing", "defaultIntelligenceInsightsInProofing", "enableIntelligenceInsightsTeamOnlyVisibility", "enableIntelligenceInsightsCommentsInProofing", "defaultIntelligenceInsightsCommentsInProofing", "licenseIntelligenceInsightsOnDashboard", "defaultIntelligenceInsightsCommentsOnDashboard", "enableIntelligenceInsightsOnDashboard", "licenseIntelligenceInsightsInReports", "enableIntelligenceInsightsInReports", "enableIntelligenceSmartTags", "enableProofMagicAccess", "enableIntelligenceSmartCheckCr", "defaultGifOutput", "enableCelebrations", "licenseDigitalVerification", "enableDigitalVerification", "defaultDigitalVerification", "reauthentication", "enableProofSoftDeletion", "enableLabels"]
|
|
925
925
|
},
|
|
926
926
|
"admin.team.features.sender-email.set": {
|
|
927
927
|
"version": 2,
|
|
@@ -965,6 +965,11 @@
|
|
|
965
965
|
"path": "/api/integrations/dropbox/folders",
|
|
966
966
|
"query": ["level", "itemId"]
|
|
967
967
|
},
|
|
968
|
+
"integrations.box.get-folders": {
|
|
969
|
+
"method": "GET",
|
|
970
|
+
"path": "/api/integrations/box/folders",
|
|
971
|
+
"query": ["level", "itemId"]
|
|
972
|
+
},
|
|
968
973
|
"integrations.google-drive.get-picker-token": {
|
|
969
974
|
"method": "GET",
|
|
970
975
|
"path": "/api/integrations/googledrive/picker_token",
|