@tinywork/glass 1.0.30 → 1.0.32

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 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -446,12 +446,25 @@ declare global {
446
446
  getRule(
447
447
  params: { apiId: string } | { ruleId: string }
448
448
  ): IGlassExtensionInvokeResponse<RuleSchema>;
449
+ transformDocToRule(
450
+ apiId: string
451
+ ): IGlassExtensionInvokeResponse<RuleSchema>;
452
+ saveRule(rule: RuleSchema): IGlassExtensionInvokeResponse<void>;
453
+ getCurrentVersion(): IGlassExtensionInvokeResponse<Version>;
454
+ getVersionDocs(
455
+ versionId: string
456
+ ): IGlassExtensionInvokeResponse<DocSchema[]>;
457
+ saveVersionDocs(
458
+ versionId: string,
459
+ apiIds: string[]
460
+ ): IGlassExtensionInvokeResponse<void>;
449
461
 
450
- getCases(versionId: string): IGlassExtensionInvokeResponse<Case[]>;
451
- saveCases(
462
+ getVersionCases(versionId: string): IGlassExtensionInvokeResponse<Case[]>;
463
+ saveVersionCases(
452
464
  versionId: string,
453
- cases: CaseData
465
+ cases: Case[]
454
466
  ): IGlassExtensionInvokeResponse<void>;
467
+ execVersionCases(versionId: string): IGlassExtensionInvokeResponse<void>;
455
468
 
456
469
  /** 批量保存文档 */
457
470
  saveDocs(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
4
4
  "description": "",
5
5
  "types": "index.d.ts",
6
6
  "files": [