@pageproof/sdk-pr 280.0.1604526415503 → 281.0.1602190868209
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 -41
- package/lib/adapters/SchedulerCryptoAdapter.d.ts +1 -3
- package/lib/adapters/SchedulerCryptoAdapter.js +1 -1
- package/lib/adapters/SyncCryptoAdapter.d.ts +1 -3
- package/lib/adapters/SyncCryptoAdapter.js +1 -1
- package/lib/api/Encryption.d.ts +0 -219
- package/lib/api/Encryption.js +1 -1
- package/lib/api/Files.d.ts +2 -0
- package/lib/api/Files.js +1 -1
- package/lib/api/Profile.d.ts +0 -8
- package/lib/api/Profile.js +1 -1
- package/lib/api/Proofs.d.ts +1 -8
- package/lib/api/Proofs.js +1 -1
- package/lib/api/ProofsCustomTools.d.ts +5 -6
- package/lib/api/Workflows.d.ts +2 -24
- package/lib/api/Workflows.js +1 -1
- package/lib/api/admin/Team.d.ts +4 -18
- package/lib/api/admin/Team.js +4 -29
- package/lib/api/admin/TeamFeatures.d.ts +0 -7
- package/lib/api/admin/TeamFeatures.js +0 -5
- package/lib/api/admin/TeamIntegrations.d.ts +10 -0
- package/lib/api/admin/{TeamWorkflows.js → TeamIntegrations.js} +16 -32
- package/lib/api/admin/TeamMondayDotCom.d.ts +15 -0
- package/lib/api/admin/{TeamCustomTools.js → TeamMondayDotCom.js} +18 -29
- package/lib/crypto/envelopes.d.ts +1 -2
- package/lib/crypto/envelopes.js +1 -1
- package/lib/crypto/index.d.ts +1 -2
- package/lib/crypto/index.js +1 -1
- package/lib/models/Proof.d.ts +0 -7
- package/lib/models/Proof.js +1 -1
- package/lib/models/TeamEmailFeatures.d.ts +1 -8
- package/lib/models/TeamEmailFeatures.js +1 -1
- package/lib/models/TeamFeatures.d.ts +0 -8
- package/lib/models/TeamFeatures.js +1 -1
- package/lib/models/Workflow.d.ts +0 -21
- package/lib/models/Workflow.js +1 -1
- package/lib/network/Request.js +1 -1
- package/lib/network/endpoints.json +4 -60
- package/lib/pageproof.js +1 -1
- package/lib/sync-crypto-adapter.js +1 -1
- package/lib/util/constants.d.ts +0 -2
- package/lib/util/constants.js +1 -1
- package/lib/worker-crypto-adapter.js +1 -1
- package/lib/worker.33813125.js +2 -0
- package/package.json +1 -1
- package/lib/api/Integrations.d.ts +0 -56
- package/lib/api/Integrations.js +0 -1
- package/lib/api/ProofsIntegrationReferences.d.ts +0 -41
- package/lib/api/ProofsIntegrationReferences.js +0 -1
- package/lib/api/admin/TeamCustomTools.d.ts +0 -22
- package/lib/api/admin/TeamWorkflows.d.ts +0 -19
- package/lib/crypto/transformFile.d.ts +0 -2
- package/lib/crypto/transformFile.js +0 -1
- package/lib/models/ProofIntegrationReference.d.ts +0 -33
- package/lib/models/ProofIntegrationReference.js +0 -1
- package/lib/models/TeamAccountFeatures.d.ts +0 -26
- package/lib/models/TeamAccountFeatures.js +0 -1
- package/lib/util/encryptionVersions.json +0 -52
- package/lib/worker.a2f0a156.js +0 -2
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 search=query.map(function(name){return typeof _this2.params[name]!=="undefined"?name+"="+encodeURIComponent(_this2.params[name]):null}).filter(Boolean).join("&");if(search){return"?"+search}}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;
|
|
@@ -447,11 +447,6 @@
|
|
|
447
447
|
"path": "/api/media/getimage/thumb",
|
|
448
448
|
"chain": ["fileId"]
|
|
449
449
|
},
|
|
450
|
-
"files.thumbnails": {
|
|
451
|
-
"method": "GET",
|
|
452
|
-
"path": "/api/proofs/assets/thumbnails",
|
|
453
|
-
"query": ["fileIds"]
|
|
454
|
-
},
|
|
455
450
|
"files.import.generic": {
|
|
456
451
|
"method": "POST",
|
|
457
452
|
"path": "/api/media/filedropbox",
|
|
@@ -518,12 +513,7 @@
|
|
|
518
513
|
"version": 2,
|
|
519
514
|
"method": "POST",
|
|
520
515
|
"path": "/api/v2/workflows/create",
|
|
521
|
-
"body": ["title"
|
|
522
|
-
},
|
|
523
|
-
"workflows.update": {
|
|
524
|
-
"method": "POST",
|
|
525
|
-
"path": "/api/workflows/update",
|
|
526
|
-
"body": ["workflowId", "title", "ownedByTeam"]
|
|
516
|
+
"body": ["title"]
|
|
527
517
|
},
|
|
528
518
|
"workflows.load": {
|
|
529
519
|
"version": 2,
|
|
@@ -734,43 +724,11 @@
|
|
|
734
724
|
"admin.team.features.update": {
|
|
735
725
|
"method": "POST",
|
|
736
726
|
"path": "/api/admin/settings",
|
|
737
|
-
"body": ["displayComments", "editComments", "proofReference"
|
|
727
|
+
"body": ["displayComments", "editComments", "proofReference"]
|
|
738
728
|
},
|
|
739
|
-
"integrations.get-
|
|
729
|
+
"admin.team.integrations.monday-dot-com.get-request-url": {
|
|
740
730
|
"method": "GET",
|
|
741
|
-
"path": "/api/integrations/
|
|
742
|
-
"query": "params"
|
|
743
|
-
},
|
|
744
|
-
"integrations.get-configurations": {
|
|
745
|
-
"method": "GET",
|
|
746
|
-
"path": "/api/integrations/configuration",
|
|
747
|
-
"query": ["level"]
|
|
748
|
-
},
|
|
749
|
-
"integrations.disable": {
|
|
750
|
-
"method": "POST",
|
|
751
|
-
"path": "/api/integrations/disable",
|
|
752
|
-
"query": ["level", "integration_key"]
|
|
753
|
-
},
|
|
754
|
-
"integrations.get-available-reference-integrations": {
|
|
755
|
-
"method": "GET",
|
|
756
|
-
"path": "/api/integrations/reference/available_integrations"
|
|
757
|
-
},
|
|
758
|
-
"integrations.get-available-reference-options": {
|
|
759
|
-
"method": "GET",
|
|
760
|
-
"path": "/api/integrations/reference/options",
|
|
761
|
-
"query": ["integration_key"]
|
|
762
|
-
},
|
|
763
|
-
"integrations.proof-integration-references.add": {
|
|
764
|
-
"version": 2,
|
|
765
|
-
"method": "POST",
|
|
766
|
-
"path": "/api/integrations/reference/proof_integration_references",
|
|
767
|
-
"body": ["proofId", "integrationReference"]
|
|
768
|
-
},
|
|
769
|
-
"integrations.proof-integration-references.remove": {
|
|
770
|
-
"version": 2,
|
|
771
|
-
"method": "POST",
|
|
772
|
-
"path": "/api/integrations/reference/proof_integration_references/remove",
|
|
773
|
-
"body": ["proofId", "referenceId"]
|
|
731
|
+
"path": "/api/integrations/monday-dot-com/oauth/requesturl"
|
|
774
732
|
},
|
|
775
733
|
"admin.team.preferences.notifications.load": {
|
|
776
734
|
"method": "GET",
|
|
@@ -782,20 +740,6 @@
|
|
|
782
740
|
"path": "/api/admin/preferences/notifications/set",
|
|
783
741
|
"body": ["ownerAddedByAdmin"]
|
|
784
742
|
},
|
|
785
|
-
"admin.team.workflows.owned": {
|
|
786
|
-
"method": "GET",
|
|
787
|
-
"path": "/api/admin/workflows/templates"
|
|
788
|
-
},
|
|
789
|
-
"admin.team.custom-tools.load": {
|
|
790
|
-
"method": "GET",
|
|
791
|
-
"path": "/api/custom-tools/admin/team"
|
|
792
|
-
},
|
|
793
|
-
"admin.team.custom-tools.update": {
|
|
794
|
-
"version": 2,
|
|
795
|
-
"method": "PATCH",
|
|
796
|
-
"path": "/api/custom-tools/admin/team",
|
|
797
|
-
"body": "updates"
|
|
798
|
-
},
|
|
799
743
|
"sessions.check": {
|
|
800
744
|
"method": "GET",
|
|
801
745
|
"path": "/api/sessions/check"
|