@pageproof/sdk-pr 277.0.1603421532239 → 277.0.1603873457226
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 +8 -0
- package/lib/api/Integrations.d.ts +3 -2
- package/lib/api/Integrations.js +1 -1
- package/lib/api/admin/TeamFeatures.d.ts +7 -0
- package/lib/api/admin/TeamFeatures.js +5 -0
- package/lib/models/TeamAccountFeatures.d.ts +26 -0
- package/lib/models/TeamAccountFeatures.js +1 -0
- package/lib/models/TeamEmailFeatures.d.ts +8 -1
- package/lib/models/TeamEmailFeatures.js +1 -1
- package/lib/models/TeamFeatures.d.ts +8 -0
- package/lib/models/TeamFeatures.js +1 -1
- package/lib/network/Request.js +1 -1
- package/lib/network/endpoints.json +2 -2
- package/lib/pageproof.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.0.0-beta.143
|
|
4
|
+
|
|
5
|
+
Released on the 27th of October 2020.
|
|
6
|
+
|
|
7
|
+
- [[#283](https://github.com/PageProofCom/sdk/pull/283)]
|
|
8
|
+
- Support for updating whether using the team name should be used, instead of "PageProof Team" as the from name in emails. See [TeamEmailFeatures](https://docs.pageproof.tech/@pageproof/sdk/beta/class/src/models/TeamEmailFeatures.js~TeamEmailFeatures.html).
|
|
9
|
+
- Support for team account information in team admin API. see [TeamAccountFeatures](https://docs.pageproof.tech/@pageproof/sdk/beta/class/src/models/TeamAccountFeatures.js~TeamAccountFeatures.html).
|
|
10
|
+
|
|
3
11
|
## 2.0.0-beta.142
|
|
4
12
|
|
|
5
13
|
Released on the 22nd of October 2020.
|
|
@@ -29,10 +29,11 @@ declare class Integrations extends API {
|
|
|
29
29
|
* const { url, windowFeatures } = await client.profile.integrations.getSetupUrl('monday.com');
|
|
30
30
|
*
|
|
31
31
|
* @since 2.0.0-beta.141
|
|
32
|
-
* @param {string
|
|
32
|
+
* @param {string} integrationKey The unique identifier/identifiers for the integration/integrations
|
|
33
|
+
* @param {object} params Any additional parameters required for building the setup url
|
|
33
34
|
* @returns {Promise<{ url: string, windowFeatures: string}>}
|
|
34
35
|
*/
|
|
35
|
-
getSetupUrl(integrationKey: string
|
|
36
|
+
getSetupUrl(integrationKey: string, params: any): Promise<{
|
|
36
37
|
url: string;
|
|
37
38
|
windowFeatures: string;
|
|
38
39
|
}>;
|
package/lib/api/Integrations.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 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(){return this.client.request("integrations.get-configurations",{level:this.level}).then(function(response){if(response.data){return response.data.integrations}return null})};Integrations.prototype.getSetupUrl=function getSetupUrl(integrationKey){return this.client.request("integrations.get-setup-url",{integration_key:integrationKey}).then(function(response){return{url:response.data.url,windowFeatures:response.data.windowFeatures}})};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(){return this.client.request("integrations.get-configurations",{level:this.level}).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})}).then(function(response){return{url:response.data.url,windowFeatures:response.data.windowFeatures}})};return Integrations}(_API3.default);exports.default=Integrations;
|
|
@@ -23,17 +23,24 @@ declare class TeamFeatures extends API {
|
|
|
23
23
|
* @param {object} options
|
|
24
24
|
* @param {object} options.emails The emails features
|
|
25
25
|
* @param {boolean} options.emails.displayComments Whether the comment should display in emails or not
|
|
26
|
+
* @param {boolean} options.emails.displayTeamName Whether using the team name or ’PageProof Team’ as the ‘from’ name in Email.
|
|
26
27
|
* @param {object} options.comments The comments features
|
|
27
28
|
* @param {boolean} options.comments.editComments Whether the comments/replies can be edited by other users or not
|
|
29
|
+
* @param {object} options.proofs The proofs features
|
|
30
|
+
* @param {boolean} options.proofs.reference Whether showing the reference field on a proof
|
|
28
31
|
* @returns {Promise}
|
|
29
32
|
*/
|
|
30
33
|
update({ emails, comments, proofs, }: {
|
|
31
34
|
emails: {
|
|
32
35
|
displayComments: boolean;
|
|
36
|
+
displayTeamName: boolean;
|
|
33
37
|
};
|
|
34
38
|
comments: {
|
|
35
39
|
editComments: boolean;
|
|
36
40
|
};
|
|
41
|
+
proofs: {
|
|
42
|
+
reference: boolean;
|
|
43
|
+
};
|
|
37
44
|
}): Promise<any>;
|
|
38
45
|
}
|
|
39
46
|
import API from "../API";
|
|
@@ -61,8 +61,11 @@ var TeamFeatures = function (_API) {
|
|
|
61
61
|
* @param {object} options
|
|
62
62
|
* @param {object} options.emails The emails features
|
|
63
63
|
* @param {boolean} options.emails.displayComments Whether the comment should display in emails or not
|
|
64
|
+
* @param {boolean} options.emails.displayTeamName Whether using the team name or ’PageProof Team’ as the ‘from’ name in Email.
|
|
64
65
|
* @param {object} options.comments The comments features
|
|
65
66
|
* @param {boolean} options.comments.editComments Whether the comments/replies can be edited by other users or not
|
|
67
|
+
* @param {object} options.proofs The proofs features
|
|
68
|
+
* @param {boolean} options.proofs.reference Whether showing the reference field on a proof
|
|
66
69
|
* @returns {Promise}
|
|
67
70
|
*/
|
|
68
71
|
|
|
@@ -73,10 +76,12 @@ var TeamFeatures = function (_API) {
|
|
|
73
76
|
proofs = _ref.proofs;
|
|
74
77
|
|
|
75
78
|
var displayComments = emails && emails.displayComments;
|
|
79
|
+
var displayTeamName = emails && emails.displayTeamName;
|
|
76
80
|
var editComments = comments && comments.editComments;
|
|
77
81
|
var proofReference = proofs && proofs.reference;
|
|
78
82
|
return this.client.request('admin.team.features.update', {
|
|
79
83
|
displayComments: displayComments,
|
|
84
|
+
displayTeamName: displayTeamName,
|
|
80
85
|
editComments: editComments,
|
|
81
86
|
proofReference: proofReference
|
|
82
87
|
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default TeamAccountFeatures;
|
|
2
|
+
declare class TeamAccountFeatures {
|
|
3
|
+
/**
|
|
4
|
+
* Team id
|
|
5
|
+
*
|
|
6
|
+
* @since v2.0.0-beta.143
|
|
7
|
+
* @type {string}
|
|
8
|
+
*/
|
|
9
|
+
teamId: string;
|
|
10
|
+
/**
|
|
11
|
+
* Team name
|
|
12
|
+
*
|
|
13
|
+
* @since v2.0.0-beta.143
|
|
14
|
+
* @type {string}
|
|
15
|
+
*/
|
|
16
|
+
teamName: string;
|
|
17
|
+
/**
|
|
18
|
+
* Team account type
|
|
19
|
+
*
|
|
20
|
+
* @since v2.0.0-beta.143
|
|
21
|
+
* @type {string}
|
|
22
|
+
*/
|
|
23
|
+
teamType: string;
|
|
24
|
+
/** @private */
|
|
25
|
+
fromTeamAccountFeatures(teamAccountFeaturesData: any): TeamAccountFeatures;
|
|
26
|
+
}
|
|
@@ -0,0 +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 TeamAccountFeatureSchema={teamId:"Id",teamName:"Name",teamType:"Type"};var TeamAccountFeatures=function(){function TeamAccountFeatures(){_classCallCheck(this,TeamAccountFeatures)}TeamAccountFeatures.prototype.fromTeamAccountFeatures=function fromTeamAccountFeatures(teamAccountFeaturesData){(0,_transform2.default)(this,TeamAccountFeatureSchema,teamAccountFeaturesData);return this};return TeamAccountFeatures}();exports.default=TeamAccountFeatures;
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
export default TeamEmailFeatures;
|
|
2
2
|
declare class TeamEmailFeatures {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Whether emails should contain a preview of raw (decrypted) comments.
|
|
5
5
|
*
|
|
6
6
|
* @since v2.0.0-beta.75
|
|
7
7
|
* @type {boolean}
|
|
8
8
|
*/
|
|
9
9
|
displayComments: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Whether using the team name or ’PageProof Team’ as the ‘from’ name in Email.
|
|
12
|
+
*
|
|
13
|
+
* @since v2.0.0-beta.143
|
|
14
|
+
* @type {boolean}
|
|
15
|
+
*/
|
|
16
|
+
displayTeamName: boolean;
|
|
10
17
|
/** @private */
|
|
11
18
|
fromTeamEmailFeatures(teamEmailFeaturesData: any): TeamEmailFeatures;
|
|
12
19
|
}
|
|
@@ -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 TeamEmailFeatureSchema={displayComments:"DisplayComments"};var TeamEmailFeatures=function(){function TeamEmailFeatures(){_classCallCheck(this,TeamEmailFeatures)}TeamEmailFeatures.prototype.fromTeamEmailFeatures=function fromTeamEmailFeatures(teamEmailFeaturesData){(0,_transform2.default)(this,TeamEmailFeatureSchema,teamEmailFeaturesData);return this};return TeamEmailFeatures}();exports.default=TeamEmailFeatures;
|
|
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 TeamEmailFeatureSchema={displayComments:"DisplayComments",displayTeamName:"DisplayTeamName"};var TeamEmailFeatures=function(){function TeamEmailFeatures(){_classCallCheck(this,TeamEmailFeatures)}TeamEmailFeatures.prototype.fromTeamEmailFeatures=function fromTeamEmailFeatures(teamEmailFeaturesData){(0,_transform2.default)(this,TeamEmailFeatureSchema,teamEmailFeaturesData);return this};return TeamEmailFeatures}();exports.default=TeamEmailFeatures;
|
|
@@ -21,9 +21,17 @@ declare class TeamFeatures {
|
|
|
21
21
|
* @type {TeamProofFeatures}
|
|
22
22
|
*/
|
|
23
23
|
proofs: TeamProofFeatures;
|
|
24
|
+
/**
|
|
25
|
+
* Account features.
|
|
26
|
+
*
|
|
27
|
+
* @since v2.0.0-beta.143
|
|
28
|
+
* @type {TeamAccountFeatures}
|
|
29
|
+
*/
|
|
30
|
+
accounts: TeamAccountFeatures;
|
|
24
31
|
/** @private */
|
|
25
32
|
fromTeamFeatures(teamFeaturesData: any): TeamFeatures;
|
|
26
33
|
}
|
|
27
34
|
import TeamEmailFeatures from "./TeamEmailFeatures";
|
|
28
35
|
import TeamCommentFeatures from "./TeamCommentFeatures";
|
|
29
36
|
import TeamProofFeatures from "./TeamProofFeatures";
|
|
37
|
+
import TeamAccountFeatures from "./TeamAccountFeatures";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.__esModule=true;var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);var _TeamEmailFeatures=require("./TeamEmailFeatures");var _TeamEmailFeatures2=_interopRequireDefault(_TeamEmailFeatures);var _TeamCommentFeatures=require("./TeamCommentFeatures");var _TeamCommentFeatures2=_interopRequireDefault(_TeamCommentFeatures);var _TeamProofFeatures=require("./TeamProofFeatures");var _TeamProofFeatures2=_interopRequireDefault(_TeamProofFeatures);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 teamFeaturesSchema={emails:function emails(data){return(new _TeamEmailFeatures2.default).fromTeamEmailFeatures(data)},comments:function comments(data){return(new _TeamCommentFeatures2.default).fromTeamCommentFeatures(data)},proofs:function proofs(data){return(new _TeamProofFeatures2.default).fromTeamProofFeatures(data)}};var TeamFeatures=function(){function TeamFeatures(){_classCallCheck(this,TeamFeatures)}TeamFeatures.prototype.fromTeamFeatures=function fromTeamFeatures(teamFeaturesData){(0,_transform2.default)(this,teamFeaturesSchema,teamFeaturesData);return this};return TeamFeatures}();exports.default=TeamFeatures;
|
|
1
|
+
"use strict";exports.__esModule=true;var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);var _TeamEmailFeatures=require("./TeamEmailFeatures");var _TeamEmailFeatures2=_interopRequireDefault(_TeamEmailFeatures);var _TeamCommentFeatures=require("./TeamCommentFeatures");var _TeamCommentFeatures2=_interopRequireDefault(_TeamCommentFeatures);var _TeamProofFeatures=require("./TeamProofFeatures");var _TeamProofFeatures2=_interopRequireDefault(_TeamProofFeatures);var _TeamAccountFeatures=require("./TeamAccountFeatures");var _TeamAccountFeatures2=_interopRequireDefault(_TeamAccountFeatures);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 teamFeaturesSchema={emails:function emails(data){return(new _TeamEmailFeatures2.default).fromTeamEmailFeatures(data)},comments:function comments(data){return(new _TeamCommentFeatures2.default).fromTeamCommentFeatures(data)},proofs:function proofs(data){return(new _TeamProofFeatures2.default).fromTeamProofFeatures(data)},accounts:function accounts(data){return(new _TeamAccountFeatures2.default).fromTeamAccountFeatures(data)}};var TeamFeatures=function(){function TeamFeatures(){_classCallCheck(this,TeamFeatures)}TeamFeatures.prototype.fromTeamFeatures=function fromTeamFeatures(teamFeaturesData){(0,_transform2.default)(this,teamFeaturesSchema,teamFeaturesData);return this};return TeamFeatures}();exports.default=TeamFeatures;
|
package/lib/network/Request.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 _endpoints=require("./endpoints.json");var _endpoints2=_interopRequireDefault(_endpoints);var _isObject=require("../util/isObject");var _isObject2=_interopRequireDefault(_isObject);var _version=require("../util/version");var _version2=_interopRequireDefault(_version);var _constants=require("../util/constants");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 Request=function(){function Request(host,name,params){_classCallCheck(this,Request);this.host=host;this.name=name;this.endpoint=_endpoints2.default[name];if(!this.endpoint){throw new Error('Unknown request endpoint "'+name+'".')}this.params={};this.addParams(params);this.headers={}}Request.prototype.addHeaders=function addHeaders(headers){this.headers=_extends({},this.headers,headers);return this};Request.prototype.addHeader=function addHeader(name,value){this.headers[name]=value;return this};Request.prototype.addParams=function addParams(params){this.params=_extends({},this.params,params);return this};Request.prototype.addParam=function addParam(name,value){this.params[name]=value};Request.prototype.getPath=function getPath(){var _this=this;var SEPARATOR="/";var _endpoint=this.endpoint,path=_endpoint.path,chain=_endpoint.chain,trailing=_endpoint.trailing;var url=path;if(chain){chain.forEach(function(name){if(url[url.length-1]!==SEPARATOR){url+=SEPARATOR}url+=_this.params[name]})}if(trailing){if(url[url.length-1]!==SEPARATOR){url+=SEPARATOR}}return url};Request.prototype.getQuery=function getQuery(){var _this2=this;var query=this.endpoint.query;if(query){var
|
|
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 _endpoints=require("./endpoints.json");var _endpoints2=_interopRequireDefault(_endpoints);var _isObject=require("../util/isObject");var _isObject2=_interopRequireDefault(_isObject);var _version=require("../util/version");var _version2=_interopRequireDefault(_version);var _constants=require("../util/constants");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 Request=function(){function Request(host,name,params){_classCallCheck(this,Request);this.host=host;this.name=name;this.endpoint=_endpoints2.default[name];if(!this.endpoint){throw new Error('Unknown request endpoint "'+name+'".')}this.params={};this.addParams(params);this.headers={}}Request.prototype.addHeaders=function addHeaders(headers){this.headers=_extends({},this.headers,headers);return this};Request.prototype.addHeader=function addHeader(name,value){this.headers[name]=value;return this};Request.prototype.addParams=function addParams(params){this.params=_extends({},this.params,params);return this};Request.prototype.addParam=function addParam(name,value){this.params[name]=value};Request.prototype.getPath=function getPath(){var _this=this;var SEPARATOR="/";var _endpoint=this.endpoint,path=_endpoint.path,chain=_endpoint.chain,trailing=_endpoint.trailing;var url=path;if(chain){chain.forEach(function(name){if(url[url.length-1]!==SEPARATOR){url+=SEPARATOR}url+=_this.params[name]})}if(trailing){if(url[url.length-1]!==SEPARATOR){url+=SEPARATOR}}return url};Request.prototype.getQuery=function getQuery(){var _this2=this;var query=this.endpoint.query;if(query){var searchValues=[];if(typeof query==="string"){var value=this.params[query];if((0,_isObject2.default)(value)){Object.keys(value).forEach(function(name){if(typeof value[name]!=="undefined"){searchValues.push(name+"="+encodeURIComponent(value[name]))}})}}else{query.forEach(function(name){if(typeof _this2.params[name]!=="undefined"){searchValues.push(name+"="+encodeURIComponent(_this2.params[name]))}})}if(searchValues.length){return"?"+searchValues.filter(Boolean).join("&")}}return""};Request.prototype.getHeaders=function getHeaders(){var _extends2;var headers=_extends({},this.headers,(_extends2={},_extends2[_constants.SDK_VERSION_HEADER]=_version2.default,_extends2));if(this.endpoint.method==="POST"||this.endpoint.method==="PATCH"||this.endpoint.method==="PUT"){switch(this.endpoint.version){case 2:{headers["Content-Type"]="application/json";break}case 1:default:{headers["Content-Type"]="application/x-www-form-urlencoded";break}}}return headers};Request.prototype.getBody=function getBody(){var _this3=this;var endpoint=this.endpoint;if(endpoint.body){if(typeof endpoint.body==="string"){var value=this.params[endpoint.body];if((0,_isObject2.default)(value)){value=JSON.stringify(value)}else{value=String(value)}return value}else{var names=endpoint.body===true?Object.keys(this.params):endpoint.body;var map={};names.forEach(function(name){var value=_this3.params[name];if(typeof value!=="undefined"){map[name]=value}});switch(endpoint.version){case 2:{return JSON.stringify(map)}case 1:default:{return Object.keys(map).map(function(name){return name+"="+encodeURIComponent(_this3.params[name])}).join("&")}}}}return null};Request.prototype.getMethod=function getMethod(){return(this.endpoint.method||"GET").toUpperCase()};Request.prototype.isWithCredentials=function isWithCredentials(){return this.endpoint.credentials===true};Request.prototype.build=function build(){return{host:this.host,method:this.getMethod(),path:this.getPath(),query:this.getQuery(),body:this.getBody(),headers:this.getHeaders(),credentials:this.isWithCredentials()}};return Request}();exports.default=Request;
|
|
@@ -724,12 +724,12 @@
|
|
|
724
724
|
"admin.team.features.update": {
|
|
725
725
|
"method": "POST",
|
|
726
726
|
"path": "/api/admin/settings",
|
|
727
|
-
"body": ["displayComments", "editComments", "proofReference"]
|
|
727
|
+
"body": ["displayComments", "editComments", "proofReference", "displayTeamName"]
|
|
728
728
|
},
|
|
729
729
|
"integrations.get-setup-url": {
|
|
730
730
|
"method": "GET",
|
|
731
731
|
"path": "/api/integrations/setup_url",
|
|
732
|
-
"query":
|
|
732
|
+
"query": "params"
|
|
733
733
|
},
|
|
734
734
|
"integrations.get-configurations": {
|
|
735
735
|
"method": "GET",
|