@tinywork/glass 1.0.29 → 1.0.31

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 +17 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -443,10 +443,24 @@ declare global {
443
443
  id: string
444
444
  ): IGlassExtensionInvokeResponse<GroupSchema & { docs?: DocSchema[] }>;
445
445
 
446
- getRule(ruleId: string): IGlassExtensionInvokeResponse<RuleSchema>;
446
+ getRule(
447
+ params: { apiId: string } | { ruleId: string }
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>;
447
461
 
448
- getCases(versionId: string): IGlassExtensionInvokeResponse<Case[]>;
449
- saveCases(
462
+ getVersionCases(versionId: string): IGlassExtensionInvokeResponse<Case[]>;
463
+ saveVersionCases(
450
464
  versionId: string,
451
465
  cases: CaseData
452
466
  ): IGlassExtensionInvokeResponse<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "1.0.29",
3
+ "version": "1.0.31",
4
4
  "description": "",
5
5
  "types": "index.d.ts",
6
6
  "files": [