mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 15:23:33 +00:00
[AC-1202] Update enums filenames for admin-console/billing teams (#5169)
* refactor: add barrel file for admin-console enums, update references, refs AC-1202 * fix: lint/prettier updates, refs AC-1202 * refactor: add enum suffix, refs AC-1202 * refactor: add barrel file for billing enums, update imports to use it, refs AC-1202 * fix: prettier, refs AC-1202 * refactor: add enum suffix for billing enums, refs AC-1202
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { BaseResponse } from "../../../models/response/base.response";
|
||||
import { ScimProviderType } from "../../enums/scim-provider-type";
|
||||
import { ScimProviderType } from "../../enums";
|
||||
|
||||
export class ScimConfigApi extends BaseResponse {
|
||||
enabled: boolean;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { ProductType } from "../../../enums";
|
||||
import { OrganizationUserStatusType } from "../../enums/organization-user-status-type";
|
||||
import { OrganizationUserType } from "../../enums/organization-user-type";
|
||||
import { OrganizationUserStatusType, OrganizationUserType } from "../../enums";
|
||||
import { PermissionsApi } from "../api/permissions.api";
|
||||
import { ProfileOrganizationResponse } from "../response/profile-organization.response";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { PolicyType } from "../../enums/policy-type";
|
||||
import { PolicyType } from "../../enums";
|
||||
import { PolicyResponse } from "../response/policy.response";
|
||||
|
||||
export class PolicyData {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { ProviderUserStatusType } from "../../enums/provider-user-status-type";
|
||||
import { ProviderUserType } from "../../enums/provider-user-type";
|
||||
import { ProviderUserStatusType, ProviderUserType } from "../../enums";
|
||||
import { ProfileProviderResponse } from "../response/profile-provider.response";
|
||||
|
||||
export class ProviderData {
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import { Jsonify } from "type-fest";
|
||||
|
||||
import { ProductType } from "../../../enums";
|
||||
import { OrganizationUserStatusType } from "../../enums/organization-user-status-type";
|
||||
import { OrganizationUserType } from "../../enums/organization-user-type";
|
||||
import { OrganizationUserStatusType, OrganizationUserType } from "../../enums";
|
||||
import { PermissionsApi } from "../api/permissions.api";
|
||||
import { OrganizationData } from "../data/organization.data";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Domain from "../../../models/domain/domain-base";
|
||||
import { PolicyType } from "../../enums/policy-type";
|
||||
import { PolicyType } from "../../enums";
|
||||
import { PolicyData } from "../data/policy.data";
|
||||
|
||||
export class Policy extends Domain {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { SecretVerificationRequest } from "../../../auth/models/request/secret-verification.request";
|
||||
import { OrganizationApiKeyType } from "../../enums/organization-api-key-type";
|
||||
import { OrganizationApiKeyType } from "../../enums";
|
||||
|
||||
export class OrganizationApiKeyRequest extends SecretVerificationRequest {
|
||||
type: OrganizationApiKeyType = OrganizationApiKeyType.Default;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { BillingSyncConfigRequest } from "../../../billing/models/request/billing-sync-config.request";
|
||||
import { OrganizationConnectionType } from "../../enums/organization-connection-type";
|
||||
import { OrganizationConnectionType } from "../../enums";
|
||||
|
||||
import { ScimConfigRequest } from "./scim-config.request";
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { PaymentMethodType } from "../../../billing/enums/payment-method-type";
|
||||
import { PlanType } from "../../../billing/enums/plan-type";
|
||||
import { PaymentMethodType, PlanType } from "../../../billing/enums";
|
||||
|
||||
import { OrganizationKeysRequest } from "./organization-keys.request";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { PlanType } from "../../../billing/enums/plan-type";
|
||||
import { PlanType } from "../../../billing/enums";
|
||||
|
||||
import { OrganizationKeysRequest } from "./organization-keys.request";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { PlanSponsorshipType } from "../../../../billing/enums/plan-sponsorship-type";
|
||||
import { PlanSponsorshipType } from "../../../../billing/enums";
|
||||
|
||||
export class OrganizationSponsorshipCreateRequest {
|
||||
sponsoredEmail: string;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { PlanSponsorshipType } from "../../../../billing/enums/plan-sponsorship-type";
|
||||
import { PlanSponsorshipType } from "../../../../billing/enums";
|
||||
|
||||
export class OrganizationSponsorshipRedeemRequest {
|
||||
planSponsorshipType: PlanSponsorshipType;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { PolicyType } from "../../enums/policy-type";
|
||||
import { PolicyType } from "../../enums";
|
||||
|
||||
export class PolicyRequest {
|
||||
type: PolicyType;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProviderUserType } from "../../../enums/provider-user-type";
|
||||
import { ProviderUserType } from "../../../enums";
|
||||
|
||||
export class ProviderUserInviteRequest {
|
||||
emails: string[] = [];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProviderUserType } from "../../../enums/provider-user-type";
|
||||
import { ProviderUserType } from "../../../enums";
|
||||
|
||||
export class ProviderUserUpdateRequest {
|
||||
type: ProviderUserType;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ScimProviderType } from "../../enums/scim-provider-type";
|
||||
import { ScimProviderType } from "../../enums";
|
||||
|
||||
export class ScimConfigRequest {
|
||||
constructor(private enabled: boolean, private scimProvider: ScimProviderType = null) {}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { BaseResponse } from "../../../models/response/base.response";
|
||||
import { OrganizationApiKeyType } from "../../enums/organization-api-key-type";
|
||||
import { OrganizationApiKeyType } from "../../enums";
|
||||
|
||||
export class OrganizationApiKeyInformationResponse extends BaseResponse {
|
||||
keyType: OrganizationApiKeyType;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { BillingSyncConfigApi } from "../../../billing/models/api/billing-sync-config.api";
|
||||
import { BaseResponse } from "../../../models/response/base.response";
|
||||
import { OrganizationConnectionType } from "../../enums/organization-connection-type";
|
||||
import { OrganizationConnectionType } from "../../enums";
|
||||
import { ScimConfigApi } from "../api/scim-config.api";
|
||||
|
||||
/**API response config types for OrganizationConnectionResponse */
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { PlanType } from "../../../billing/enums/plan-type";
|
||||
import { PlanType } from "../../../billing/enums";
|
||||
import { PlanResponse } from "../../../billing/models/response/plan.response";
|
||||
import { BaseResponse } from "../../../models/response/base.response";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { BaseResponse } from "../../../models/response/base.response";
|
||||
import { PolicyType } from "../../enums/policy-type";
|
||||
import { PolicyType } from "../../enums";
|
||||
|
||||
export class PolicyResponse extends BaseResponse {
|
||||
id: string;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { ProductType } from "../../../enums";
|
||||
import { BaseResponse } from "../../../models/response/base.response";
|
||||
import { OrganizationUserStatusType } from "../../enums/organization-user-status-type";
|
||||
import { OrganizationUserType } from "../../enums/organization-user-type";
|
||||
import { OrganizationUserStatusType, OrganizationUserType } from "../../enums";
|
||||
import { PermissionsApi } from "../api/permissions.api";
|
||||
|
||||
export class ProfileOrganizationResponse extends BaseResponse {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { BaseResponse } from "../../../models/response/base.response";
|
||||
import { ProviderUserStatusType } from "../../enums/provider-user-status-type";
|
||||
import { ProviderUserType } from "../../enums/provider-user-type";
|
||||
import { ProviderUserStatusType, ProviderUserType } from "../../enums";
|
||||
import { PermissionsApi } from "../api/permissions.api";
|
||||
|
||||
export class ProfileProviderResponse extends BaseResponse {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { BaseResponse } from "../../../../models/response/base.response";
|
||||
import { ProviderUserStatusType } from "../../../enums/provider-user-status-type";
|
||||
import { ProviderUserType } from "../../../enums/provider-user-type";
|
||||
import { ProviderUserStatusType, ProviderUserType } from "../../../enums";
|
||||
import { PermissionsApi } from "../../api/permissions.api";
|
||||
|
||||
export class ProviderUserResponse extends BaseResponse {
|
||||
|
||||
Reference in New Issue
Block a user