echoapi-converter 0.0.12 → 0.0.14
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.
- package/dist/index.d.ts +30 -3
- package/dist/index.js +2186 -1135
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ApipostObj } from '@/types/index';
|
|
|
3
3
|
declare class ApipostToSwagger {
|
|
4
4
|
apiToSwaggerOrigin: Partial<ApipostObj>;
|
|
5
5
|
apiToSwaggerResult: any;
|
|
6
|
-
apiToSwaggerVersion:
|
|
6
|
+
apiToSwaggerVersion: "2.0" | "3.0";
|
|
7
7
|
constructor();
|
|
8
8
|
private handleProject;
|
|
9
9
|
private handleModels;
|
|
@@ -13,7 +13,7 @@ declare class ApipostToSwagger {
|
|
|
13
13
|
private array2NamePathObj;
|
|
14
14
|
private array2TreeExport;
|
|
15
15
|
private handleApis;
|
|
16
|
-
apiToswagger(apipostObj: ApipostObj, version:
|
|
16
|
+
apiToswagger(apipostObj: ApipostObj, version: "2.0" | "3.0"): {
|
|
17
17
|
status: "error" | "success";
|
|
18
18
|
message: string;
|
|
19
19
|
data: any;
|
|
@@ -237,4 +237,31 @@ declare class YapiToApipost {
|
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
|
|
240
|
+
declare class ThunderToApipost {
|
|
241
|
+
apis: any;
|
|
242
|
+
folders: any;
|
|
243
|
+
project: any;
|
|
244
|
+
global: any;
|
|
245
|
+
constructor();
|
|
246
|
+
private clear;
|
|
247
|
+
private initProject;
|
|
248
|
+
private completionApiFolder;
|
|
249
|
+
private completionApiRequestParameter;
|
|
250
|
+
private completionApiRequestAuth;
|
|
251
|
+
private completionScript;
|
|
252
|
+
private diyScript;
|
|
253
|
+
private completionTests;
|
|
254
|
+
private completionApiRequest;
|
|
255
|
+
private completionApiTarget;
|
|
256
|
+
private completionApis;
|
|
257
|
+
private initApis;
|
|
258
|
+
private initGlobal;
|
|
259
|
+
private buildFolderApiTree;
|
|
260
|
+
convert(json: any, project_id: string): {
|
|
261
|
+
status: "error" | "success";
|
|
262
|
+
message: string;
|
|
263
|
+
data: any;
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export { ApipostToSwagger as ApiToSwagger, ApidocToApipost, ApifoxToApipost, ApipostToPostman, HarToApipost, InsomniaToApipost, PostmanToApipost, SwaggerToApipost, ThunderToApipost, YapiToApipost };
|