UNPKG

@minimaltech/node-infra

Version:

Minimal Technology NodeJS Infrastructure - Loopback 4 Framework

174 lines (173 loc) 5.53 kB
import { AnyObject } from '../../../common'; export declare const defineUser: () => { new (data?: Partial<{ realm?: string; status: string; userType?: string; activatedAt?: Date; lastLoginAt?: Date; parentId: number; createdAt: Date; modifiedAt: Date; getId: () => any; getIdObject: () => Object; toJSON: () => Object; toObject: (options?: import("@loopback/repository").Options) => Object; id: number; }>): { realm?: string; status: string; userType?: string; activatedAt?: Date; lastLoginAt?: Date; parentId: number; createdAt: Date; modifiedAt: Date; getId: () => any; getIdObject: () => Object; toJSON: () => Object; toObject: (options?: import("@loopback/repository").Options) => Object; id: number; }; getIdProperties(): string[]; getIdOf(entityOrData: import("@loopback/repository").AnyObject): any; buildWhereForId(id: any): any; readonly modelName: string; definition: import("@loopback/repository").ModelDefinition; }; export declare const defineRole: () => { new (data?: Partial<{ identifier: string; name: string; description?: string; priority: number; status: string; createdAt: Date; modifiedAt: Date; getId: () => any; getIdObject: () => Object; toJSON: () => Object; toObject: (options?: import("@loopback/repository").Options) => Object; id: number; }>): { identifier: string; name: string; description?: string; priority: number; status: string; createdAt: Date; modifiedAt: Date; getId: () => any; getIdObject: () => Object; toJSON: () => Object; toObject: (options?: import("@loopback/repository").Options) => Object; id: number; }; getIdProperties(): string[]; getIdOf(entityOrData: import("@loopback/repository").AnyObject): any; buildWhereForId(id: any): any; readonly modelName: string; definition: import("@loopback/repository").ModelDefinition; }; export declare const definePermission: <T extends AnyObject = AnyObject>() => { new (data?: Partial<{ code: string; name: string; subject: string; pType: string; action: string; scope?: string; parentId: number; details: T; createdAt: Date; modifiedAt: Date; getId: () => any; getIdObject: () => Object; toJSON: () => Object; toObject: (options?: import("@loopback/repository").Options) => Object; id: number; }>): { code: string; name: string; subject: string; pType: string; action: string; scope?: string; parentId: number; details: T; createdAt: Date; modifiedAt: Date; getId: () => any; getIdObject: () => Object; toJSON: () => Object; toObject: (options?: import("@loopback/repository").Options) => Object; id: number; }; getIdProperties(): string[]; getIdOf(entityOrData: import("@loopback/repository").AnyObject): any; buildWhereForId(id: any): any; readonly modelName: string; definition: import("@loopback/repository").ModelDefinition; }; export declare const definePermissionMapping: () => { new (data?: Partial<{ userId?: number; roleId: number; permissionId: number; effect: string; createdAt: Date; modifiedAt: Date; getId: () => any; getIdObject: () => Object; toJSON: () => Object; toObject: (options?: import("@loopback/repository").Options) => Object; id: number; }>): { userId?: number; roleId: number; permissionId: number; effect: string; createdAt: Date; modifiedAt: Date; getId: () => any; getIdObject: () => Object; toJSON: () => Object; toObject: (options?: import("@loopback/repository").Options) => Object; id: number; }; getIdProperties(): string[]; getIdOf(entityOrData: import("@loopback/repository").AnyObject): any; buildWhereForId(id: any): any; readonly modelName: string; definition: import("@loopback/repository").ModelDefinition; }; export declare const defineUserRole: () => { new (data?: Partial<{ userId: number; principalType?: string; principalId?: import("../../../common").IdType; getId: () => any; getIdObject: () => Object; toJSON: () => Object; toObject: (options?: import("@loopback/repository").Options) => Object; createdAt: Date; modifiedAt: Date; id: number; }>): { userId: number; principalType?: string; principalId?: import("../../../common").IdType; getId: () => any; getIdObject: () => Object; toJSON: () => Object; toObject: (options?: import("@loopback/repository").Options) => Object; createdAt: Date; modifiedAt: Date; id: number; }; getIdProperties(): string[]; getIdOf(entityOrData: import("@loopback/repository").AnyObject): any; buildWhereForId(id: any): any; readonly modelName: string; definition: import("@loopback/repository").ModelDefinition; };