@egova/egova-api 1.0.32 → 1.0.36

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.
@@ -3,5 +3,5 @@ import PreExecutionSetting from "../pre-execution-setting";
3
3
  export default class AfterExecutionScript extends PreExecutionSetting {
4
4
  key: "postScripts" | "preScripts";
5
5
  model: PostScript;
6
- description: string;
6
+ getScript(): Promise<void>;
7
7
  }
@@ -1,12 +1,15 @@
1
1
  import BaseEditorSetting from "../base-editor-setting";
2
2
  import { InterfaceModel, PreScript } from "../interface-settings/model";
3
3
  import "./index.scss";
4
+ import ApiService from "../service";
4
5
  export default class PreExecutionSetting extends BaseEditorSetting {
5
6
  interfaceModel: InterfaceModel;
7
+ service: ApiService;
8
+ scriptData: any;
6
9
  model: PreScript;
7
- description: string;
8
10
  key: "postScripts" | "preScripts";
9
- quickList: Array<any>;
11
+ mounted(): void;
12
+ getScript(): Promise<void>;
10
13
  onClickItem(item: any): void;
11
14
  get script(): string;
12
15
  set script(value: string);
@@ -10,6 +10,7 @@ export declare class Response {
10
10
  responseHeaders: any;
11
11
  cookies: any;
12
12
  errorMessage: string;
13
+ output: string;
13
14
  }
14
15
  export default class ResponsePanel extends BaseEditorSetting {
15
16
  responseSettingTypeList: Array<any>;
@@ -20,6 +21,7 @@ export default class ResponsePanel extends BaseEditorSetting {
20
21
  active: any;
21
22
  onClickResponseSettingTpye(type: any): void;
22
23
  get content(): string;
24
+ get output(): string;
23
25
  get responseHeaders(): {
24
26
  key: string;
25
27
  value: any;
@@ -9,4 +9,6 @@ export default class ApiService extends CommonService {
9
9
  run(apiId: string, apiInfo: InterfaceModel): Promise<any>;
10
10
  saveApiInfo(apiInfo: InterfaceModel): Promise<any>;
11
11
  parseResponse2Fields(originalJson: string, convertRoot?: string, collapse?: boolean): Promise<any>;
12
+ preScript(): Promise<any>;
13
+ postScript(): Promise<any>;
12
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@egova/egova-api",
3
- "version": "1.0.32",
3
+ "version": "1.0.36",
4
4
  "description": "api",
5
5
  "author": "egova",
6
6
  "publishConfig": {
@@ -77,5 +77,5 @@
77
77
  "last 2 versions",
78
78
  "not ie <= 8"
79
79
  ],
80
- "gitHead": "a70dc790b801a08c819b1b7c6fe0b9a14d5737b2"
80
+ "gitHead": "6c9b91387f1c54eff2f5faeb0a71738fc3b71f42"
81
81
  }