UNPKG

@bitblit/ratchet-misc

Version:

Ratchet miscellaneous tooling that requires smallish dependant libraries

40 lines (39 loc) 1.28 kB
import type { RoleAccountableTo } from './RoleAccountableTo.js'; import type { RoleAssignmentsInner } from './RoleAssignmentsInner.js'; import type { RoleContributesTo } from './RoleContributesTo.js'; export interface Role { _id: string; _type?: RoleTypeEnum; _rootId: string; _createdOn?: Date; _createdBy: string; _updatedOn?: Date; _updatedBy?: string; _archivedOn?: Date; _archivedBy?: string; _deletedOn?: Date; _deletedBy?: string; _operationId?: string; _isPublic?: boolean; name: string; description?: string; templateId?: string; status?: RoleStatusEnum; userAllocationPercent?: number; contributesTo: RoleContributesTo; assignments?: Array<RoleAssignmentsInner>; accountableTo?: RoleAccountableTo; accountableFor?: Array<RoleAccountableTo>; } export declare enum RoleTypeEnum { role = "role" } export declare enum RoleStatusEnum { draft = "draft", active = "active", archived = "archived" } export declare function instanceOfRole(value: object): boolean; export declare function RoleFromJSON(json: any): Role; export declare function RoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Role; export declare function RoleToJSON(value?: Role | null): any;