@tinywork/glass 0.0.25 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -16,13 +16,10 @@ export type JSONPropertySchema = {
|
|
|
16
16
|
};
|
|
17
17
|
required?: string[];
|
|
18
18
|
};
|
|
19
|
-
export type JSONSchema = {
|
|
19
|
+
export type JSONSchema = JSONPropertySchema & {
|
|
20
20
|
$schema?: string;
|
|
21
21
|
$id?: string;
|
|
22
22
|
title?: string;
|
|
23
|
-
properties?: {
|
|
24
|
-
[key: string]: JSONPropertySchema;
|
|
25
|
-
};
|
|
26
23
|
};
|
|
27
24
|
export type DocSchema = {
|
|
28
25
|
apiId: string;
|
|
@@ -127,7 +124,7 @@ export interface IGlassExtension {
|
|
|
127
124
|
}): Promise<void>;
|
|
128
125
|
deactivate?(context: IGlassContext): Promise<void>;
|
|
129
126
|
uninstall?(context: IGlassContext): Promise<void>;
|
|
130
|
-
onDocChange?(context: IGlassContext, doc:
|
|
127
|
+
onDocChange?(context: IGlassContext, doc: DocFullSchema | null, originDoc: DocFullSchema | null): Promise<boolean>;
|
|
131
128
|
onGroupChange?(context: IGlassContext, group: GroupSchema | null, originGroup: GroupSchema | null): Promise<boolean>;
|
|
132
129
|
getDefaultRule?(context: IGlassContext, docs: DocSchema[], log: NetLog, rule?: {
|
|
133
130
|
id: string;
|