Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.mdns.eu/nextcloud/passwords-client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarius David Wieschollek <passwords.public@mdns.eu>2020-04-23 19:11:22 +0300
committerMarius David Wieschollek <passwords.public@mdns.eu>2020-04-23 19:11:22 +0300
commit7453f5187bc654c5e47d2662488759c3eb65a9e3 (patch)
tree4fbb530cd9d348810d230f2da9e9da9fa8af271b /src
parent1ba8d822911ca448f86316c8e4f2358f3a86b7a9 (diff)
parent8799143ccfae388f8dcd47fe933f7c60ad2c4c6e (diff)
Merge branch 'testing' into stable
Diffstat (limited to 'src')
-rw-r--r--src/Classes/SimpleApi.js43
1 files changed, 42 insertions, 1 deletions
diff --git a/src/Classes/SimpleApi.js b/src/Classes/SimpleApi.js
index aeea663..5333948 100644
--- a/src/Classes/SimpleApi.js
+++ b/src/Classes/SimpleApi.js
@@ -72,7 +72,11 @@ export default class SimpleApi {
'service.avatar' : 'api/1.0/service/avatar/{user}/{size}',
'service.favicon' : 'api/1.0/service/favicon/{domain}/{size}',
'service.preview' : 'api/1.0/service/preview/{domain}/{view}/{width}/{height}',
- 'cron.sharing' : 'cron/sharing'
+ 'cron.sharing' : 'cron/sharing',
+ 'link.request' : 'link/connect/request',
+ 'link.await' : 'link/connect/await',
+ 'link.reject' : 'link/connect/reject',
+ 'link.confirm' : 'link/connect/confirm'
};
}
@@ -683,6 +687,43 @@ export default class SimpleApi {
/**
+ * Connect with PassLink
+ */
+
+ /**
+ * @returns {Promise}
+ */
+ passLinkConnectRequest() {
+ return this._sendRequest('link.request');
+ }
+
+ /**
+ * @returns {Promise}
+ */
+ passLinkConnectAwait() {
+ return this._sendRequest('link.await');
+ }
+
+ /**
+ * @returns {Promise}
+ */
+ passLinkConnectReject() {
+ return this._sendRequest('link.reject');
+ }
+
+ /**
+ * @returns {Promise}
+ */
+ passLinkConnectConfirm(label) {
+ if(label) {
+ return this._sendRequest('link.confirm', {label});
+ }
+
+ return this._sendRequest('link.confirm');
+ }
+
+
+ /**
* Internal
*/