mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-11 12:17:44 +02:00
move missing fix from platform
This commit is contained in:
@@ -225,6 +225,7 @@ export interface AccountClient {
|
||||
mergeSpecifiedAccounts: (primaryAccount: AccountUuid, secondaryAccount: AccountUuid) => Promise<void>
|
||||
addEmailSocialId: (email: string) => Promise<OtpInfo>
|
||||
addHulyAssistantSocialId: () => Promise<PersonId>
|
||||
refreshHulyAssistantToken: () => Promise<void>
|
||||
|
||||
setCookie: () => Promise<void>
|
||||
deleteCookie: () => Promise<void>
|
||||
@@ -1118,6 +1119,15 @@ class AccountClientImpl implements AccountClient {
|
||||
return await this.rpc(request)
|
||||
}
|
||||
|
||||
async refreshHulyAssistantToken (): Promise<void> {
|
||||
const request = {
|
||||
method: 'refreshHulyAssistantToken' as const,
|
||||
params: {}
|
||||
}
|
||||
|
||||
await this.rpc(request)
|
||||
}
|
||||
|
||||
async setCookie (): Promise<void> {
|
||||
const url = concatLink(this.url, '/cookie')
|
||||
const response = await fetch(url, { ...this.request, method: 'PUT' })
|
||||
|
||||
Reference in New Issue
Block a user