@tinywork/glass 0.0.29 → 0.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/dist/index.d.ts +7 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -108,7 +108,11 @@ export interface IGlassContext {
108
108
  /** 批量更新rule的本地数据 */
109
109
  saveExamples: (ruleId: string, examples: {
110
110
  id: string;
111
- example: any;
111
+ contentType?: string;
112
+ example?: string;
113
+ name?: string;
114
+ statusCode?: number;
115
+ status?: boolean;
112
116
  }[]) => Promise<{
113
117
  success: boolean;
114
118
  message?: string;
@@ -151,6 +155,8 @@ export interface IGlassExtension {
151
155
  deactivate?(context: IGlassContext): Promise<void>;
152
156
  uninstall?(context: IGlassContext): Promise<void>;
153
157
  onDocChange?(context: IGlassContext, doc: DocFullSchema | null, originDoc: DocFullSchema | null): Promise<boolean>;
158
+ /** glass cli拉取接口文档 */
159
+ onDocCliUpdate?(context: IGlassContext, id: string): Promise<void>;
154
160
  onGroupChange?(context: IGlassContext, group: GroupSchema | null, originGroup: GroupSchema | null): Promise<boolean>;
155
161
  getDefaultRule?(context: IGlassContext, docs: DocSchema[], log: NetLog, rule?: {
156
162
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "0.0.29",
3
+ "version": "0.0.31",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [