feat: update console sdk
This commit is contained in:
parent
4ad47061dd
commit
7c1eb0bc96
9 changed files with 34 additions and 13 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
5
public/dist/scripts/app-all.js
vendored
5
public/dist/scripts/app-all.js
vendored
File diff suppressed because one or more lines are too long
5
public/dist/scripts/app-dep.js
vendored
5
public/dist/scripts/app-dep.js
vendored
File diff suppressed because one or more lines are too long
|
@ -764,6 +764,25 @@
|
||||||
'content-type': 'application/json',
|
'content-type': 'application/json',
|
||||||
}, payload);
|
}, payload);
|
||||||
}),
|
}),
|
||||||
|
/**
|
||||||
|
* Update Session (Refresh Tokens)
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @param {string} sessionId
|
||||||
|
* @throws {AppwriteException}
|
||||||
|
* @returns {Promise}
|
||||||
|
*/
|
||||||
|
updateSession: (sessionId) => __awaiter(this, void 0, void 0, function* () {
|
||||||
|
if (typeof sessionId === 'undefined') {
|
||||||
|
throw new AppwriteException('Missing required parameter: "sessionId"');
|
||||||
|
}
|
||||||
|
let path = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId);
|
||||||
|
let payload = {};
|
||||||
|
const uri = new URL(this.config.endpoint + path);
|
||||||
|
return yield this.call('patch', uri, {
|
||||||
|
'content-type': 'application/json',
|
||||||
|
}, payload);
|
||||||
|
}),
|
||||||
/**
|
/**
|
||||||
* Delete Account Session
|
* Delete Account Session
|
||||||
*
|
*
|
||||||
|
@ -1463,9 +1482,9 @@
|
||||||
* @param {string} collectionId
|
* @param {string} collectionId
|
||||||
* @param {string} key
|
* @param {string} key
|
||||||
* @param {boolean} required
|
* @param {boolean} required
|
||||||
* @param {string} min
|
* @param {number} min
|
||||||
* @param {string} max
|
* @param {number} max
|
||||||
* @param {string} xdefault
|
* @param {number} xdefault
|
||||||
* @param {boolean} array
|
* @param {boolean} array
|
||||||
* @throws {AppwriteException}
|
* @throws {AppwriteException}
|
||||||
* @returns {Promise}
|
* @returns {Promise}
|
||||||
|
|
Loading…
Reference in a new issue