src/shared/configurations/types.ts
import type { MessageDescriptor } from "@lingui/core";
export interface IAppConfigurationBag {
requireEntity?: true;
defaultValue: unknown;
guest?: true;
label: MessageDescriptor;
}
export interface IEntityCrudSettings {
create: boolean;
details: boolean;
update: boolean;
delete: boolean;
}
export type CrudViewsKeys = keyof IEntityCrudSettings | "table";
export enum DataActionType {
Create = "create",
Details = "details",
Update = "update",
Delete = "delete",
List = "list",
Table = "table",
Count = "count",
Reference = "reference",
}