mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-24 12:06:15 +01:00
premium api
This commit is contained in:
parent
3aebe1a09a
commit
93edd272dd
@ -62,6 +62,7 @@ export abstract class ApiService {
|
|||||||
getAccountRevisionDate: () => Promise<number>;
|
getAccountRevisionDate: () => Promise<number>;
|
||||||
postPasswordHint: (request: PasswordHintRequest) => Promise<any>;
|
postPasswordHint: (request: PasswordHintRequest) => Promise<any>;
|
||||||
postRegister: (request: RegisterRequest) => Promise<any>;
|
postRegister: (request: RegisterRequest) => Promise<any>;
|
||||||
|
postPremium: (data: FormData) => Promise<any>;
|
||||||
postFolder: (request: FolderRequest) => Promise<FolderResponse>;
|
postFolder: (request: FolderRequest) => Promise<FolderResponse>;
|
||||||
putFolder: (id: string, request: FolderRequest) => Promise<FolderResponse>;
|
putFolder: (id: string, request: FolderRequest) => Promise<FolderResponse>;
|
||||||
deleteFolder: (id: string) => Promise<any>;
|
deleteFolder: (id: string) => Promise<any>;
|
||||||
|
@ -184,6 +184,10 @@ export class ApiService implements ApiServiceAbstraction {
|
|||||||
return this.send('POST', '/accounts/register', request, false, false);
|
return this.send('POST', '/accounts/register', request, false, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
postPremium(data: FormData): Promise<any> {
|
||||||
|
return this.send('POST', '/accounts/premium', data, true, true);
|
||||||
|
}
|
||||||
|
|
||||||
// Folder APIs
|
// Folder APIs
|
||||||
|
|
||||||
async postFolder(request: FolderRequest): Promise<FolderResponse> {
|
async postFolder(request: FolderRequest): Promise<FolderResponse> {
|
||||||
|
Loading…
Reference in New Issue
Block a user