@tinywork/glass 0.0.44 → 0.0.45

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/dist/index.d.ts +20 -4
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -65,16 +65,26 @@ export type Version = {
65
65
  status: boolean;
66
66
  actived?: boolean;
67
67
  };
68
+ export type Plan = {
69
+ id: string;
70
+ versionId: string;
71
+ name: string;
72
+ desc?: string;
73
+ origin: string;
74
+ prefix: string;
75
+ params?: string;
76
+ headers?: string;
77
+ body?: string;
78
+ /** 校验结果的ts类型声明 */
79
+ assert?: string;
80
+ };
68
81
  export type MockMode = 'None' | 'Local' | 'Advance';
69
82
  export type ActionMode = 'Modify' | 'Add' | 'Remove';
70
83
  export type ActionTarget = 'Origin';
71
- export type ContextMenuType = 'log' | 'case' | 'group' | 'doc' | 'rule' | 'project' | 'version';
84
+ export type ContextMenuType = 'log' | 'group' | 'doc' | 'rule' | 'project' | 'version' | 'plan' | 'case';
72
85
  export type ContextMenuParams = {
73
86
  type: 'log';
74
87
  data: NetLog;
75
- } | {
76
- type: 'case';
77
- data: Case;
78
88
  } | {
79
89
  type: 'group';
80
90
  data: GroupSchema;
@@ -90,6 +100,12 @@ export type ContextMenuParams = {
90
100
  } | {
91
101
  type: 'version';
92
102
  data: Version;
103
+ } | {
104
+ type: 'plan';
105
+ data: Plan;
106
+ } | {
107
+ type: 'case';
108
+ data: Case;
93
109
  };
94
110
  export type MockModelSchema = {
95
111
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "0.0.44",
3
+ "version": "0.0.45",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [