mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 22:33:35 +00:00
Deprecate the Api Service (#4099)
This commit is contained in:
@@ -163,6 +163,11 @@ import { TwoFactorYubiKeyResponse } from "../models/response/two-factor-yubi-key
|
|||||||
import { UserKeyResponse } from "../models/response/user-key.response";
|
import { UserKeyResponse } from "../models/response/user-key.response";
|
||||||
import { SendAccessView } from "../models/view/send-access.view";
|
import { SendAccessView } from "../models/view/send-access.view";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated The `ApiService` class is deprecated and calls should be extracted into individual
|
||||||
|
* api services. The `send` method is still allowed to be used within api services. For background
|
||||||
|
* of this decision please read https://contributing.bitwarden.com/architecture/adr/refactor-api-service.
|
||||||
|
*/
|
||||||
export abstract class ApiService {
|
export abstract class ApiService {
|
||||||
send: (
|
send: (
|
||||||
method: "GET" | "POST" | "PUT" | "DELETE",
|
method: "GET" | "POST" | "PUT" | "DELETE",
|
||||||
|
|||||||
@@ -172,6 +172,11 @@ import { TwoFactorYubiKeyResponse } from "../models/response/two-factor-yubi-key
|
|||||||
import { UserKeyResponse } from "../models/response/user-key.response";
|
import { UserKeyResponse } from "../models/response/user-key.response";
|
||||||
import { SendAccessView } from "../models/view/send-access.view";
|
import { SendAccessView } from "../models/view/send-access.view";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated The `ApiService` class is deprecated and calls should be extracted into individual
|
||||||
|
* api services. The `send` method is still allowed to be used within api services. For background
|
||||||
|
* of this decision please read https://contributing.bitwarden.com/architecture/adr/refactor-api-service.
|
||||||
|
*/
|
||||||
export class ApiService implements ApiServiceAbstraction {
|
export class ApiService implements ApiServiceAbstraction {
|
||||||
private device: DeviceType;
|
private device: DeviceType;
|
||||||
private deviceType: string;
|
private deviceType: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user