mirror of
https://github.com/bitwarden/browser
synced 2026-02-11 22:13:32 +00:00
The first pass of the integration logic mixed names between "integration" and "extension". For example, the remote service has an "IntegrationId" whereas the part of the password manager it extended has an "ExtensionPointId". The new types have a more consistent approach. The remote service now distinguishes the integrated product from the vendor providing it, and the logic within the password manager is now all the "extension". The specific location being extended is now called the "site" or "extension site". The main reason "extension" was chosen over "integration" is simply so that the new and old types remain distinct in the folder hierarchy.
35 lines
758 B
TypeScript
35 lines
758 B
TypeScript
export const Site = Object.freeze({
|
|
forwarder: "forwarder",
|
|
} as const);
|
|
|
|
export const Field = Object.freeze({
|
|
token: "token",
|
|
baseUrl: "baseUrl",
|
|
domain: "domain",
|
|
prefix: "prefix",
|
|
} as const);
|
|
|
|
export const FieldsBySite = {
|
|
[Site.forwarder]: [Field.token, Field.baseUrl, Field.domain, Field.prefix],
|
|
} as const;
|
|
|
|
export const Vendor = Object.freeze({
|
|
anonaddy: "anonaddy",
|
|
duckduckgo: "duckduckgo",
|
|
fastmail: "fastmail",
|
|
mozilla: "mozilla",
|
|
forwardemail: "forwardemail",
|
|
simplelogin: "simplelogin",
|
|
} as const);
|
|
|
|
export const VendorsByExtension = {
|
|
[Site.forwarder]: [
|
|
Vendor.anonaddy,
|
|
Vendor.duckduckgo,
|
|
Vendor.fastmail,
|
|
Vendor.mozilla,
|
|
Vendor.forwardemail,
|
|
Vendor.simplelogin,
|
|
] as const,
|
|
} as const;
|