@pageproof/sdk-pr 289.0.1606100663454 → 290.0.1605822897220
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 +1 -13
- package/lib/api/Preferences.d.ts +1 -2
- package/lib/api/ProofsIntegrationReferences.d.ts +1 -2
- package/lib/api/ProofsIntegrationReferences.js +1 -1
- package/lib/enum/Preference.d.ts +0 -1
- package/lib/enum/Preference.js +1 -1
- package/lib/network/endpoints.json +1 -2
- package/lib/pageproof.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Released on the 23th of November 2020.
|
|
6
|
-
|
|
7
|
-
- [[#289](https://github.com/PageProofCom/sdk/pull/289)] Support for user preference of default reminder. See [Preferences](https://docs.pageproof.tech/@pageproof/sdk/beta/class/src/api/Preferences.js~Preferences.html).
|
|
8
|
-
|
|
9
|
-
## 2.0.0-beta.147
|
|
10
|
-
|
|
11
|
-
Released on the 23rd of November 2020.
|
|
12
|
-
|
|
13
|
-
- Allowed including parameters when retrieving options for proof integration references.
|
|
14
|
-
|
|
15
|
-
## 2.0.0-beta.146
|
|
3
|
+
# 2.0.0-beta.146
|
|
16
4
|
|
|
17
5
|
Released on the 20th of November 2020.
|
|
18
6
|
|
package/lib/api/Preferences.d.ts
CHANGED
|
@@ -25,9 +25,8 @@ declare class Preferences extends API {
|
|
|
25
25
|
* PageProof.Enum.Preference.DEFAULT_DUE_DATE,
|
|
26
26
|
* PageProof.Enum.Preference.DEFAULT_DUE_TIME,
|
|
27
27
|
* PageProof.Enum.Preference.DEFAULT_MESSAGE_TO_REVIEWERS,
|
|
28
|
-
* PageProof.Enum.Preference.DEFAULT_REMINDER,
|
|
29
28
|
* ]);
|
|
30
|
-
* const [dueDate, dueTime, messageToReviewers
|
|
29
|
+
* const [dueDate, dueTime, messageToReviewers] = preferences;
|
|
31
30
|
* console.log(messageToReviewers.getValueOrDefault());
|
|
32
31
|
*
|
|
33
32
|
* @example <caption>Retrieving a single preference</caption>
|
|
@@ -16,10 +16,9 @@ declare class ProofsIntegrationReferences extends API {
|
|
|
16
16
|
*
|
|
17
17
|
* @since 2.0.0-beta.144
|
|
18
18
|
* @param {string} integrationKey The unique identifier for the integration
|
|
19
|
-
* @param {object} [params] Any additional parameters required for retrieving the options
|
|
20
19
|
* @returns {Promise<Array<object>>}
|
|
21
20
|
*/
|
|
22
|
-
options(
|
|
21
|
+
options(key: any): Promise<any[]>;
|
|
23
22
|
/**
|
|
24
23
|
* Add an integration reference to a proof
|
|
25
24
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.__esModule=true;var
|
|
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 ProofsIntegrationReferences=function(_API){_inherits(ProofsIntegrationReferences,_API);function ProofsIntegrationReferences(){_classCallCheck(this,ProofsIntegrationReferences);return _possibleConstructorReturn(this,_API.apply(this,arguments))}ProofsIntegrationReferences.prototype.availableIntegrations=function availableIntegrations(){return this.client.request("integrations.get-available-reference-integrations").then(function(response){return response.data.integrations})};ProofsIntegrationReferences.prototype.options=function options(key){return this.client.request("integrations.get-available-reference-options",{integration_key:key}).then(function(response){return response.data.optionTypes})};ProofsIntegrationReferences.prototype.add=function add(proofId,integrationReference){return this.client.request("integrations.proof-integration-references.add",{proofId:proofId,integrationReference:integrationReference})};ProofsIntegrationReferences.prototype.remove=function remove(proofId,referenceId){return this.client.request("integrations.proof-integration-references.remove",{proofId:proofId,referenceId:referenceId})};return ProofsIntegrationReferences}(_API3.default);exports.default=ProofsIntegrationReferences;
|
package/lib/enum/Preference.d.ts
CHANGED
package/lib/enum/Preference.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.__esModule=true;var Preference={DEFAULT_DUE_DATE:"dueDate",DEFAULT_DUE_TIME:"dueTime",DEFAULT_MESSAGE_TO_REVIEWERS:"messageToReviewers",ENABLE_COLOR_BLIND_UI:"colorBlind"
|
|
1
|
+
"use strict";exports.__esModule=true;var Preference={DEFAULT_DUE_DATE:"dueDate",DEFAULT_DUE_TIME:"dueTime",DEFAULT_MESSAGE_TO_REVIEWERS:"messageToReviewers",ENABLE_COLOR_BLIND_UI:"colorBlind"};exports.default=Preference;
|
|
@@ -86,7 +86,6 @@
|
|
|
86
86
|
"query": ["preferences"]
|
|
87
87
|
},
|
|
88
88
|
"preferences.update": {
|
|
89
|
-
"version": 2,
|
|
90
89
|
"method": "POST",
|
|
91
90
|
"path": "/api/users/preferences/update",
|
|
92
91
|
"body": true
|
|
@@ -754,7 +753,7 @@
|
|
|
754
753
|
"integrations.get-available-reference-options": {
|
|
755
754
|
"method": "GET",
|
|
756
755
|
"path": "/api/integrations/reference/options",
|
|
757
|
-
"query": "
|
|
756
|
+
"query": ["integration_key"]
|
|
758
757
|
},
|
|
759
758
|
"integrations.proof-integration-references.add": {
|
|
760
759
|
"version": 2,
|