|
| 1 | +import { ApplicationSchemaBase, JobSchema, MaterialSchema, WorkflowSchema } from "@mat3ra/esse/lib/js/types"; |
| 2 | +import { InMemoryEntity } from "../entity"; |
| 3 | +type Constructor<T = any> = new (...args: any[]) => T; |
| 4 | +export declare function ApplicationContextMixin<T extends Constructor>(superclass: T): { |
| 5 | + new (...args: any): { |
| 6 | + [x: string]: any; |
| 7 | + _application: ApplicationSchemaBase; |
| 8 | + readonly application: ApplicationSchemaBase; |
| 9 | + }; |
| 10 | +} & T; |
| 11 | +type Material = InMemoryEntity & MaterialSchema & { |
| 12 | + hash: string; |
| 13 | +}; |
| 14 | +export declare function MaterialContextMixin<T extends Constructor>(superclass: T): { |
| 15 | + new (...args: any): { |
| 16 | + [x: string]: any; |
| 17 | + _material: Material; |
| 18 | + extraData?: { |
| 19 | + materialHash: string; |
| 20 | + } | undefined; |
| 21 | + isEdited?: boolean | undefined; |
| 22 | + readonly isEditedIsSetToFalseOnMaterialUpdate: boolean; |
| 23 | + updateMaterialHash(): void; |
| 24 | + readonly isMaterialCreatedDefault: boolean; |
| 25 | + readonly isMaterialUpdated: boolean; |
| 26 | + readonly material: Material; |
| 27 | + }; |
| 28 | +} & T; |
| 29 | +export declare function MaterialsSetContextMixin<T extends Constructor>(superclass: T): { |
| 30 | + new (...params: any): { |
| 31 | + [x: string]: any; |
| 32 | + _materialsSet: any; |
| 33 | + readonly materialsSet: any; |
| 34 | + sortMaterialsByIndexInSet(materials?: never[]): never[]; |
| 35 | + }; |
| 36 | +} & T; |
| 37 | +export declare function MaterialsContextMixin<T extends Constructor>(superclass: T): { |
| 38 | + new (...params: any): { |
| 39 | + [x: string]: any; |
| 40 | + _materials: any; |
| 41 | + readonly materials: any; |
| 42 | + }; |
| 43 | +} & T; |
| 44 | +export declare function MethodDataContextMixin<T extends Constructor>(superclass: T): { |
| 45 | + new (...params: any): { |
| 46 | + [x: string]: any; |
| 47 | + _methodData: any; |
| 48 | + isEdited: boolean; |
| 49 | + methodDataHash?: string | undefined; |
| 50 | + extraData?: { |
| 51 | + methodDataHash?: string | undefined; |
| 52 | + } | undefined; |
| 53 | + _initMethodDataHash(): void; |
| 54 | + readonly methodData: any; |
| 55 | + readonly isMethodDataUpdated: boolean; |
| 56 | + }; |
| 57 | +} & T; |
| 58 | +export declare function WorkflowContextMixin<T extends Constructor>(superclass: T): { |
| 59 | + new (...params: any): { |
| 60 | + [x: string]: any; |
| 61 | + _workflow: WorkflowSchema; |
| 62 | + isEdited: boolean; |
| 63 | + readonly workflow: WorkflowSchema; |
| 64 | + }; |
| 65 | +} & T; |
| 66 | +export declare function JobContextMixin<T extends Constructor>(superclass: T): { |
| 67 | + new (...params: any): { |
| 68 | + [x: string]: any; |
| 69 | + _job: JobSchema; |
| 70 | + isEdited: boolean; |
| 71 | + readonly job: JobSchema; |
| 72 | + }; |
| 73 | +} & T; |
| 74 | +export {}; |
0 commit comments