@tinywork/glass 1.0.28 → 1.0.29

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 +14 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -437,6 +437,20 @@ declare global {
437
437
  apiId: string;
438
438
  ruleId?: string;
439
439
  }>;
440
+
441
+ getDoc(id: string): IGlassExtensionInvokeResponse<DocSchema>;
442
+ getGroup(
443
+ id: string
444
+ ): IGlassExtensionInvokeResponse<GroupSchema & { docs?: DocSchema[] }>;
445
+
446
+ getRule(ruleId: string): IGlassExtensionInvokeResponse<RuleSchema>;
447
+
448
+ getCases(versionId: string): IGlassExtensionInvokeResponse<Case[]>;
449
+ saveCases(
450
+ versionId: string,
451
+ cases: CaseData
452
+ ): IGlassExtensionInvokeResponse<void>;
453
+
440
454
  /** 批量保存文档 */
441
455
  saveDocs(
442
456
  docs: DocSchema[],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
4
4
  "description": "",
5
5
  "types": "index.d.ts",
6
6
  "files": [