think/packages/domains/lib/models/auth.d.ts

27 lines
575 B
TypeScript
Raw Normal View History

2022-06-30 00:03:02 +08:00
import { IOrganization } from './organization';
export declare enum AuthEnum {
creator = "creator",
admin = "admin",
member = "member",
noAccess = "noAccess"
}
export declare const AuthEnumTextMap: {
creator: string;
admin: string;
member: string;
noAccess: string;
};
export declare const AuthEnumArray: {
label: any;
value: string;
}[];
export interface IAuth {
id: string;
type: AuthEnum;
organizationId: IOrganization['id'];
wikiId?: string;
documentId?: string;
createdAt: string;
updatedAt: string;
}