@pageproof/sdk-pr 706.0.1782988793631 → 707.0.1783295646906
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 +0 -6
- package/lib/api/Integrations.d.ts +0 -19
- package/lib/api/Integrations.js +1 -1
- package/lib/api/ProofsAudit.d.ts +14 -0
- package/lib/api/ProofsAudit.js +1 -1
- package/lib/network/endpoints.json +6 -5
- package/lib/pageproof.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -63,25 +63,6 @@ declare class Integrations extends API {
|
|
|
63
63
|
* @returns {Promise}
|
|
64
64
|
*/
|
|
65
65
|
updateConfiguration(integrationKey: string, key: string, value: string): Promise<any>;
|
|
66
|
-
/**
|
|
67
|
-
* Lists the folders inside the connected OneDrive, for picking the folder
|
|
68
|
-
* approved proofs are delivered to.
|
|
69
|
-
*
|
|
70
|
-
* @example <caption>Listing the folders in the drive root</caption>
|
|
71
|
-
* const admin = await client.admin();
|
|
72
|
-
* const folders = await admin.team.integrations.getOneDriveFolders();
|
|
73
|
-
*
|
|
74
|
-
* @example <caption>Listing the subfolders of a folder</caption>
|
|
75
|
-
* const folders = await admin.team.integrations.getOneDriveFolders(folderId);
|
|
76
|
-
*
|
|
77
|
-
* @since 2.22.0
|
|
78
|
-
* @param {string} [itemId] The id of the folder to list; omit for the drive root
|
|
79
|
-
* @returns {Promise<Array<{ id: string, name: string }>>}
|
|
80
|
-
*/
|
|
81
|
-
getOneDriveFolders(itemId?: string): Promise<Array<{
|
|
82
|
-
id: string;
|
|
83
|
-
name: string;
|
|
84
|
-
}>>;
|
|
85
66
|
/**
|
|
86
67
|
* Gets the list of Jira sites associated with a pending connection so the user
|
|
87
68
|
* can pick which one to finalise the integration against.
|
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.
|
|
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.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;
|
package/lib/api/ProofsAudit.d.ts
CHANGED
|
@@ -13,5 +13,19 @@ declare class ProofsAudit extends API {
|
|
|
13
13
|
* @returns {Promise<ProofAuditSummary>}
|
|
14
14
|
*/
|
|
15
15
|
summary(proofId: string): Promise<any>;
|
|
16
|
+
/**
|
|
17
|
+
* Generates a chronological audit of every comment, reply, label and status
|
|
18
|
+
* change on the proof.
|
|
19
|
+
*
|
|
20
|
+
* Non-enterprise proof teams only receive comment status change events; the
|
|
21
|
+
* full comment history is an enterprise feature.
|
|
22
|
+
*
|
|
23
|
+
* @param {string} proofId The proof ID
|
|
24
|
+
* @returns {Promise<{summary: Array, isEnterprise: boolean}>}
|
|
25
|
+
*/
|
|
26
|
+
comments(proofId: string): Promise<{
|
|
27
|
+
summary: Array;
|
|
28
|
+
isEnterprise: boolean;
|
|
29
|
+
}>;
|
|
16
30
|
}
|
|
17
31
|
import API from "./API";
|
package/lib/api/ProofsAudit.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.__esModule=true;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 ProofsAudit=function(_API){_inherits(ProofsAudit,_API);function ProofsAudit(){_classCallCheck(this,ProofsAudit);return _possibleConstructorReturn(this,_API.apply(this,arguments))}ProofsAudit.prototype.summary=function summary(proofId){return this.client.request("proofs.audit.summary",{proofId:proofId}).then(function(response){return response.data.summary})};return ProofsAudit}(_API3.default);exports.default=ProofsAudit;
|
|
1
|
+
"use strict";exports.__esModule=true;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 ProofsAudit=function(_API){_inherits(ProofsAudit,_API);function ProofsAudit(){_classCallCheck(this,ProofsAudit);return _possibleConstructorReturn(this,_API.apply(this,arguments))}ProofsAudit.prototype.summary=function summary(proofId){return this.client.request("proofs.audit.summary",{proofId:proofId}).then(function(response){return response.data.summary})};ProofsAudit.prototype.comments=function comments(proofId){return this.client.request("proofs.audit.comments",{proofId:proofId}).then(function(response){return response.data})};return ProofsAudit}(_API3.default);exports.default=ProofsAudit;
|
|
@@ -955,11 +955,6 @@
|
|
|
955
955
|
"path": "/api/integrations/configuration/update",
|
|
956
956
|
"body": ["level", "integrationKey", "key", "value"]
|
|
957
957
|
},
|
|
958
|
-
"integrations.one-drive.get-folders": {
|
|
959
|
-
"method": "GET",
|
|
960
|
-
"path": "/api/integrations/onedrive/folders",
|
|
961
|
-
"query": ["level", "itemId"]
|
|
962
|
-
},
|
|
963
958
|
"integrations.jira.get-pending-connection": {
|
|
964
959
|
"method": "GET",
|
|
965
960
|
"path": "/api/integrations/jira/pending-connection",
|
|
@@ -1125,6 +1120,12 @@
|
|
|
1125
1120
|
"path": "/api/proofs/audit/summary",
|
|
1126
1121
|
"chain": ["proofId"]
|
|
1127
1122
|
},
|
|
1123
|
+
"proofs.audit.comments": {
|
|
1124
|
+
"version": 2,
|
|
1125
|
+
"method": "GET",
|
|
1126
|
+
"path": "/api/proofs/audit/comments",
|
|
1127
|
+
"chain": ["proofId"]
|
|
1128
|
+
},
|
|
1128
1129
|
"brian.rekey-users-proofs": {
|
|
1129
1130
|
"version": 2,
|
|
1130
1131
|
"method": "GET",
|