mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-04 02:26:19 +00:00
Fix lint issues
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
import { TOrgPermission } from "@app/lib/types";
|
import { TGenericPermission } from "@app/lib/types";
|
||||||
|
|
||||||
export type TCreateGroupDTO = {
|
export type TCreateGroupDTO = {
|
||||||
name: string;
|
name: string;
|
||||||
slug?: string;
|
slug?: string;
|
||||||
role: string;
|
role: string;
|
||||||
} & TOrgPermission;
|
} & TGenericPermission;
|
||||||
|
|
||||||
export type TUpdateGroupDTO = {
|
export type TUpdateGroupDTO = {
|
||||||
currentSlug: string;
|
currentSlug: string;
|
||||||
@@ -13,22 +13,22 @@ export type TUpdateGroupDTO = {
|
|||||||
slug: string;
|
slug: string;
|
||||||
role: string;
|
role: string;
|
||||||
}> &
|
}> &
|
||||||
TOrgPermission;
|
TGenericPermission;
|
||||||
|
|
||||||
export type TDeleteGroupDTO = {
|
export type TDeleteGroupDTO = {
|
||||||
groupSlug: string;
|
groupSlug: string;
|
||||||
} & TOrgPermission;
|
} & TGenericPermission;
|
||||||
|
|
||||||
export type TGetGroupUserMembershipsDTO = {
|
export type TGetGroupUserMembershipsDTO = {
|
||||||
groupSlug: string;
|
groupSlug: string;
|
||||||
} & TOrgPermission;
|
} & TGenericPermission;
|
||||||
|
|
||||||
export type TCreateGroupUserMembershipDTO = {
|
export type TCreateGroupUserMembershipDTO = {
|
||||||
groupSlug: string;
|
groupSlug: string;
|
||||||
username: string;
|
username: string;
|
||||||
} & TOrgPermission;
|
} & TGenericPermission;
|
||||||
|
|
||||||
export type TDeleteGroupUserMembershipDTO = {
|
export type TDeleteGroupUserMembershipDTO = {
|
||||||
groupSlug: string;
|
groupSlug: string;
|
||||||
username: string;
|
username: string;
|
||||||
} & TOrgPermission;
|
} & TGenericPermission;
|
||||||
|
|||||||
@@ -1,8 +1,21 @@
|
|||||||
import { ActorAuthMethod, ActorType } from "@app/services/auth/auth-type";
|
import { ActorAuthMethod, ActorType } from "@app/services/auth/auth-type";
|
||||||
|
|
||||||
|
export type TGenericPermission = {
|
||||||
|
actor: ActorType;
|
||||||
|
actorId: string;
|
||||||
|
actorAuthMethod: ActorAuthMethod;
|
||||||
|
actorOrgId: string | undefined;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TODO(dangtony98): ideally move service fns to use TGenericPermission
|
||||||
|
* because TOrgPermission [orgId] is not as relevant anymore with the
|
||||||
|
* introduction of organizationIds bound to all user tokens
|
||||||
|
*/
|
||||||
export type TOrgPermission = {
|
export type TOrgPermission = {
|
||||||
actor: ActorType;
|
actor: ActorType;
|
||||||
actorId: string;
|
actorId: string;
|
||||||
|
orgId: string;
|
||||||
actorAuthMethod: ActorAuthMethod;
|
actorAuthMethod: ActorAuthMethod;
|
||||||
actorOrgId: string | undefined;
|
actorOrgId: string | undefined;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user