@tinywork/glass 0.0.50 → 0.0.51

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 +11 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -49,6 +49,7 @@ export type DocFullSchema = DocSchema & {
49
49
  export type GroupSchema = {
50
50
  id: string;
51
51
  orgId?: string | null;
52
+ teamId?: string | null;
52
53
  parentId: string | null;
53
54
  name: string;
54
55
  desc?: string;
@@ -60,10 +61,12 @@ export type GroupSchema = {
60
61
  export type Project = {
61
62
  id: string;
62
63
  orgId?: string | null;
64
+ teamId?: string | null;
63
65
  name: string;
64
66
  desc?: string;
65
67
  status: boolean;
66
68
  actived?: boolean;
69
+ hash?: string;
67
70
  };
68
71
  export type Version = {
69
72
  id: string;
@@ -72,6 +75,7 @@ export type Version = {
72
75
  desc?: string;
73
76
  status: boolean;
74
77
  actived?: boolean;
78
+ hash?: string;
75
79
  };
76
80
  export type Plan = {
77
81
  id: string;
@@ -85,10 +89,12 @@ export type Plan = {
85
89
  body?: string;
86
90
  /** 校验结果的ts类型声明 */
87
91
  assert?: string;
92
+ hash?: string;
88
93
  };
89
94
  export type Case = {
90
95
  id: string;
91
96
  versionId: string;
97
+ planId?: string;
92
98
  name: string;
93
99
  desc?: string;
94
100
  origin: string;
@@ -100,6 +106,7 @@ export type Case = {
100
106
  apiId?: string;
101
107
  /** 校验结果的ts类型声明 */
102
108
  assert?: string;
109
+ hash?: string;
103
110
  };
104
111
  export type CaseData = Omit<Case, "params" | "headers" | "body"> & {
105
112
  params?: string;
@@ -110,6 +117,7 @@ export type Association = {
110
117
  versionId: string;
111
118
  apiId: string;
112
119
  tags?: string[];
120
+ hash?: string;
113
121
  };
114
122
  export type MockMode = "None" | "Local" | "Advance";
115
123
  export type ActionMode = "Modify" | "Add" | "Remove";
@@ -194,13 +202,15 @@ export type FilterSchema = {
194
202
  };
195
203
  export type RuleSchema = FilterSchema & {
196
204
  id: string;
205
+ orgId?: string | null;
206
+ teamId?: string | null;
197
207
  mode?: MockMode;
198
208
  name?: string;
199
209
  apiId?: string;
200
210
  throttle?: number;
201
211
  localOptions?: MockModelSchema[];
202
212
  actions?: RewriteActionSchema[];
203
- updatedAt?: Date;
213
+ hash?: string;
204
214
  };
205
215
  export type NetLog = {
206
216
  uid: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "0.0.50",
3
+ "version": "0.0.51",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [