@tinywork/glass 1.0.28 → 1.0.30

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 +16 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -437,6 +437,22 @@ 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(
447
+ params: { apiId: string } | { ruleId: string }
448
+ ): IGlassExtensionInvokeResponse<RuleSchema>;
449
+
450
+ getCases(versionId: string): IGlassExtensionInvokeResponse<Case[]>;
451
+ saveCases(
452
+ versionId: string,
453
+ cases: CaseData
454
+ ): IGlassExtensionInvokeResponse<void>;
455
+
440
456
  /** 批量保存文档 */
441
457
  saveDocs(
442
458
  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.30",
4
4
  "description": "",
5
5
  "types": "index.d.ts",
6
6
  "files": [