echoapi-converter 0.0.87 → 0.0.89
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 +67 -2
- package/dist/index.js +4579 -2201
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -90,11 +90,17 @@ declare class ApifoxToApipost {
|
|
|
90
90
|
project: any;
|
|
91
91
|
apis: any[];
|
|
92
92
|
models: any[];
|
|
93
|
+
test_cases: any[];
|
|
93
94
|
global: any;
|
|
94
95
|
samples: any[];
|
|
95
96
|
serversMap: any;
|
|
96
97
|
modelMap: any;
|
|
97
98
|
foldersMap: any;
|
|
99
|
+
apisMap: any;
|
|
100
|
+
dbLinkmap: any;
|
|
101
|
+
commonScripts: any;
|
|
102
|
+
modelIdMap: any;
|
|
103
|
+
envsMap: any;
|
|
98
104
|
constructor();
|
|
99
105
|
private validate;
|
|
100
106
|
private clear;
|
|
@@ -105,6 +111,7 @@ declare class ApifoxToApipost {
|
|
|
105
111
|
private completionEnv;
|
|
106
112
|
private completionServers;
|
|
107
113
|
private completionCustomRules;
|
|
114
|
+
private completionDataBase;
|
|
108
115
|
private initGlobal;
|
|
109
116
|
private recursionSchema;
|
|
110
117
|
private completionModels;
|
|
@@ -121,6 +128,8 @@ declare class ApifoxToApipost {
|
|
|
121
128
|
private completionApiTarget;
|
|
122
129
|
private completionApiSample;
|
|
123
130
|
private completionApis;
|
|
131
|
+
private completionEventList;
|
|
132
|
+
private completionTestCases;
|
|
124
133
|
private initApis;
|
|
125
134
|
private completionDocs;
|
|
126
135
|
private initDoc;
|
|
@@ -129,6 +138,59 @@ declare class ApifoxToApipost {
|
|
|
129
138
|
private completionTcpMethod;
|
|
130
139
|
private completionTcp;
|
|
131
140
|
private initTcp;
|
|
141
|
+
private initTestCase;
|
|
142
|
+
convert(json: any, project_id: string): {
|
|
143
|
+
status: "error" | "success";
|
|
144
|
+
message: string;
|
|
145
|
+
data: any;
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
declare class ApifoxcliToApipost {
|
|
150
|
+
version: string;
|
|
151
|
+
project: any;
|
|
152
|
+
apis: any[];
|
|
153
|
+
eventList: any[];
|
|
154
|
+
models: any[];
|
|
155
|
+
global: any;
|
|
156
|
+
samples: any[];
|
|
157
|
+
serversMap: any;
|
|
158
|
+
modelMap: any;
|
|
159
|
+
apisMap: any;
|
|
160
|
+
foldersMap: any;
|
|
161
|
+
commonScripts: any;
|
|
162
|
+
modelIdMap: any;
|
|
163
|
+
constructor();
|
|
164
|
+
private validate;
|
|
165
|
+
private clear;
|
|
166
|
+
private initProject;
|
|
167
|
+
private completionParameter;
|
|
168
|
+
private completionVarList;
|
|
169
|
+
private completionServerList;
|
|
170
|
+
private completionEnv;
|
|
171
|
+
private completionServers;
|
|
172
|
+
private initGlobal;
|
|
173
|
+
private recursionSchema;
|
|
174
|
+
private completionModels;
|
|
175
|
+
private initModels;
|
|
176
|
+
private completionApiRequestTasks;
|
|
177
|
+
private completionApiRequestAuth;
|
|
178
|
+
private completionApiRequestParameter;
|
|
179
|
+
private completionApiRequestBody;
|
|
180
|
+
private completionApiRequest;
|
|
181
|
+
private completionApiFolder;
|
|
182
|
+
private completionApiTargetMark;
|
|
183
|
+
private completionApiResponse;
|
|
184
|
+
private completionGraphqlRequestBody;
|
|
185
|
+
private completionApiTarget;
|
|
186
|
+
private completionApiSample;
|
|
187
|
+
private completionApis;
|
|
188
|
+
private initEventList;
|
|
189
|
+
private completionDocs;
|
|
190
|
+
private completionTcpClient;
|
|
191
|
+
private completionTcpMethodRequest;
|
|
192
|
+
private completionTcpMethod;
|
|
193
|
+
private completionTcp;
|
|
132
194
|
convert(json: any, project_id: string): {
|
|
133
195
|
status: "error" | "success";
|
|
134
196
|
message: string;
|
|
@@ -205,6 +267,7 @@ declare class PostmanToApipost {
|
|
|
205
267
|
apis: any;
|
|
206
268
|
project: any;
|
|
207
269
|
source: 'vscode' | 'workbench' | string;
|
|
270
|
+
file_parsing_rules: 'normal' | 'use_case' | string;
|
|
208
271
|
constructor();
|
|
209
272
|
private clear;
|
|
210
273
|
private completionApiRequestAuth;
|
|
@@ -214,12 +277,14 @@ declare class PostmanToApipost {
|
|
|
214
277
|
private completionApiRequest;
|
|
215
278
|
private completionApiResponse;
|
|
216
279
|
private completionApiFolder;
|
|
280
|
+
private completionApiCase;
|
|
217
281
|
private completionApiTarget;
|
|
218
282
|
private completionApis;
|
|
219
283
|
private initApis;
|
|
220
284
|
private initProject;
|
|
221
285
|
convert(json: any, project_id: string, option?: {
|
|
222
|
-
source
|
|
286
|
+
source?: string;
|
|
287
|
+
file_parsing_rules?: string;
|
|
223
288
|
}): {
|
|
224
289
|
status: "error" | "success";
|
|
225
290
|
message: string;
|
|
@@ -294,4 +359,4 @@ declare const swaggerConverFormat: (json: any, baseConfig: ImportConfig, project
|
|
|
294
359
|
global: {};
|
|
295
360
|
};
|
|
296
361
|
|
|
297
|
-
export { ApipostToSwagger as ApiToSwagger, ApidocToApipost, ApifoxToApipost, ApipostToPostman, HarToApipost, InsomniaToApipost, PostmanToApipost, swaggerConverFormat as SwaggerConverFormat, SwaggerToApipost, ThunderToApipost, YapiToApipost };
|
|
362
|
+
export { ApipostToSwagger as ApiToSwagger, ApidocToApipost, ApifoxcliToApipost as ApifoxCliToApipost, ApifoxToApipost, ApipostToPostman, HarToApipost, InsomniaToApipost, PostmanToApipost, swaggerConverFormat as SwaggerConverFormat, SwaggerToApipost, ThunderToApipost, YapiToApipost };
|