@tinywork/glass 1.0.36 → 1.0.38

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 +8 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -425,6 +425,8 @@ declare global {
425
425
  options?: {
426
426
  /** 是否触发缓存更新 */
427
427
  hooks?: boolean;
428
+ /** 是否出发插件emit */
429
+ emit?: boolean;
428
430
  /** 是否根据文档自动生成rule规则 */
429
431
  defaultRule?: Partial<{
430
432
  name: string;
@@ -437,8 +439,13 @@ declare global {
437
439
  apiId: string;
438
440
  ruleId?: string;
439
441
  }>;
442
+ /** 新增文档 */
443
+ addDoc(doc: DocSchema): IGlassExtensionInvokeResponse<void>;
444
+ deleteDoc(apiId: string): IGlassExtensionInvokeResponse<void>;
440
445
 
441
- getDoc(id: string): IGlassExtensionInvokeResponse<DocSchema>;
446
+ getDoc(
447
+ params: { apiId: string } | { pathname: string },
448
+ ): IGlassExtensionInvokeResponse<DocSchema>;
442
449
  getGroup(
443
450
  id: string,
444
451
  ): IGlassExtensionInvokeResponse<GroupSchema & { docs?: DocSchema[] }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "1.0.36",
3
+ "version": "1.0.38",
4
4
  "description": "",
5
5
  "types": "index.d.ts",
6
6
  "files": [