@tinywork/glass 1.0.45 → 1.0.47

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.
Files changed (2) hide show
  1. package/index.d.ts +10 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -361,6 +361,11 @@ declare global {
361
361
  deactivate?: IGlassExtensionEvent<void>;
362
362
  uninstall?: IGlassExtensionEvent<void>;
363
363
 
364
+ onDocSearch?: IGlassExtensionEvent<{
365
+ pathname: string;
366
+ apiIds: string[];
367
+ }>;
368
+
364
369
  onDocChange?: IGlassExtensionEvent<{
365
370
  doc: DocFullSchema | null;
366
371
  originDoc: DocFullSchema | null;
@@ -421,6 +426,7 @@ declare global {
421
426
  saveGroup(group: GroupSchema): IGlassExtensionInvokeResponse<void>;
422
427
  /** 批量保存文档组 */
423
428
  saveGroups(groups: GroupSchema[]): IGlassExtensionInvokeResponse<void>;
429
+ updateGroup(params: { id: string }): IGlassExtensionInvokeResponse<void>;
424
430
  /** 保存文档 */
425
431
  saveDoc(
426
432
  doc: DocSchema,
@@ -461,6 +467,10 @@ declare global {
461
467
  },
462
468
  ): IGlassExtensionInvokeResponse<void>;
463
469
 
470
+ updateDoc(
471
+ params: { apiId: string } | { pathname: string },
472
+ ): IGlassExtensionInvokeResponse<void>;
473
+
464
474
  getDoc(
465
475
  params: { apiId: string } | { pathname: string },
466
476
  ): IGlassExtensionInvokeResponse<DocSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "1.0.45",
3
+ "version": "1.0.47",
4
4
  "description": "",
5
5
  "types": "index.d.ts",
6
6
  "files": [