@tinywork/glass 1.0.44 → 1.0.46

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 +7 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -195,7 +195,7 @@ declare global {
195
195
 
196
196
  type MockMode = "None" | "Local" | "Advance";
197
197
  type ActionMode = "Modify" | "Add" | "Remove";
198
- type ActionTarget = "Origin";
198
+ type ActionTarget = "Origin" | "Headers";
199
199
  type ContextMenuType =
200
200
  | "log"
201
201
  | "group"
@@ -248,7 +248,6 @@ declare global {
248
248
  statusCode?: number;
249
249
  status?: boolean;
250
250
  updatedAt?: string;
251
- cache?: boolean;
252
251
  };
253
252
 
254
253
  type RewriteActionSchema = {
@@ -262,7 +261,7 @@ declare global {
262
261
  regex?: boolean;
263
262
  status?: boolean;
264
263
  updatedAt?: string;
265
- cache?: boolean;
264
+ sync?: boolean;
266
265
  };
267
266
 
268
267
  type FilterSchema = {
@@ -422,6 +421,7 @@ declare global {
422
421
  saveGroup(group: GroupSchema): IGlassExtensionInvokeResponse<void>;
423
422
  /** 批量保存文档组 */
424
423
  saveGroups(groups: GroupSchema[]): IGlassExtensionInvokeResponse<void>;
424
+ updateGroup(params: { id: string }): IGlassExtensionInvokeResponse<void>;
425
425
  /** 保存文档 */
426
426
  saveDoc(
427
427
  doc: DocSchema,
@@ -462,6 +462,10 @@ declare global {
462
462
  },
463
463
  ): IGlassExtensionInvokeResponse<void>;
464
464
 
465
+ updateDoc(
466
+ params: { apiId: string } | { pathname: string },
467
+ ): IGlassExtensionInvokeResponse<void>;
468
+
465
469
  getDoc(
466
470
  params: { apiId: string } | { pathname: string },
467
471
  ): IGlassExtensionInvokeResponse<DocSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "1.0.44",
3
+ "version": "1.0.46",
4
4
  "description": "",
5
5
  "types": "index.d.ts",
6
6
  "files": [