@tinywork/glass 1.0.27 → 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 +16 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -247,6 +247,7 @@ declare global {
247
247
  statusCode?: number;
248
248
  status?: boolean;
249
249
  updatedAt?: string;
250
+ cache?: boolean;
250
251
  };
251
252
 
252
253
  type RewriteActionSchema = {
@@ -260,6 +261,7 @@ declare global {
260
261
  regex?: boolean;
261
262
  status?: boolean;
262
263
  updatedAt?: string;
264
+ cache?: boolean;
263
265
  };
264
266
 
265
267
  type FilterSchema = {
@@ -435,6 +437,20 @@ declare global {
435
437
  apiId: string;
436
438
  ruleId?: string;
437
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
+
438
454
  /** 批量保存文档 */
439
455
  saveDocs(
440
456
  docs: DocSchema[],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "description": "",
5
5
  "types": "index.d.ts",
6
6
  "files": [