echoapi-converter 0.0.88 → 0.0.90
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 +86 -2
- package/dist/index.js +5129 -2314
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -90,11 +90,23 @@ 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
|
+
folderNameMap: any;
|
|
100
|
+
apisMap: any;
|
|
101
|
+
dbLinkmap: any;
|
|
102
|
+
commonScripts: any;
|
|
103
|
+
modelIdMap: any;
|
|
104
|
+
envsMap: any;
|
|
105
|
+
apifoxApiIdMap: any;
|
|
106
|
+
config: {
|
|
107
|
+
project_id: string;
|
|
108
|
+
unrelated_id: boolean;
|
|
109
|
+
};
|
|
98
110
|
constructor();
|
|
99
111
|
private validate;
|
|
100
112
|
private clear;
|
|
@@ -105,6 +117,7 @@ declare class ApifoxToApipost {
|
|
|
105
117
|
private completionEnv;
|
|
106
118
|
private completionServers;
|
|
107
119
|
private completionCustomRules;
|
|
120
|
+
private completionDataBase;
|
|
108
121
|
private initGlobal;
|
|
109
122
|
private recursionSchema;
|
|
110
123
|
private completionModels;
|
|
@@ -113,6 +126,7 @@ declare class ApifoxToApipost {
|
|
|
113
126
|
private completionApiRequestAuth;
|
|
114
127
|
private completionApiRequestParameter;
|
|
115
128
|
private completionApiRequestBody;
|
|
129
|
+
private completionTcpRequestBody;
|
|
116
130
|
private completionApiRequest;
|
|
117
131
|
private completionApiFolder;
|
|
118
132
|
private completionApiTargetMark;
|
|
@@ -121,7 +135,13 @@ declare class ApifoxToApipost {
|
|
|
121
135
|
private completionApiTarget;
|
|
122
136
|
private completionApiSample;
|
|
123
137
|
private completionApis;
|
|
138
|
+
private completionEventList;
|
|
139
|
+
private completionTestCases;
|
|
124
140
|
private initApis;
|
|
141
|
+
private initWebSocket;
|
|
142
|
+
private completionWebsockets;
|
|
143
|
+
private initSocketIo;
|
|
144
|
+
private completionSocketIo;
|
|
125
145
|
private completionDocs;
|
|
126
146
|
private initDoc;
|
|
127
147
|
private completionTcpClient;
|
|
@@ -129,7 +149,71 @@ declare class ApifoxToApipost {
|
|
|
129
149
|
private completionTcpMethod;
|
|
130
150
|
private completionTcp;
|
|
131
151
|
private initTcp;
|
|
132
|
-
|
|
152
|
+
private initTestCase;
|
|
153
|
+
convert(json: any, config?: {
|
|
154
|
+
project_id: string;
|
|
155
|
+
unrelated_id: boolean;
|
|
156
|
+
}): {
|
|
157
|
+
status: "error" | "success";
|
|
158
|
+
message: string;
|
|
159
|
+
data: any;
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
declare class ApifoxcliToApipost {
|
|
164
|
+
version: string;
|
|
165
|
+
project: any;
|
|
166
|
+
apis: any[];
|
|
167
|
+
eventList: any[];
|
|
168
|
+
models: any[];
|
|
169
|
+
global: any;
|
|
170
|
+
samples: any[];
|
|
171
|
+
serversMap: any;
|
|
172
|
+
modelMap: any;
|
|
173
|
+
apisMap: any;
|
|
174
|
+
foldersMap: any;
|
|
175
|
+
commonScripts: any;
|
|
176
|
+
modelIdMap: any;
|
|
177
|
+
config: {
|
|
178
|
+
project_id: string;
|
|
179
|
+
unrelated_id: boolean;
|
|
180
|
+
};
|
|
181
|
+
apifoxApiIdMap: any;
|
|
182
|
+
constructor();
|
|
183
|
+
private validate;
|
|
184
|
+
private clear;
|
|
185
|
+
private initProject;
|
|
186
|
+
private completionParameter;
|
|
187
|
+
private completionVarList;
|
|
188
|
+
private completionServerList;
|
|
189
|
+
private completionEnv;
|
|
190
|
+
private completionServers;
|
|
191
|
+
private initGlobal;
|
|
192
|
+
private recursionSchema;
|
|
193
|
+
private completionModels;
|
|
194
|
+
private initModels;
|
|
195
|
+
private completionApiRequestTasks;
|
|
196
|
+
private completionApiRequestAuth;
|
|
197
|
+
private completionApiRequestParameter;
|
|
198
|
+
private completionApiRequestBody;
|
|
199
|
+
private completionApiRequest;
|
|
200
|
+
private completionApiFolder;
|
|
201
|
+
private completionApiTargetMark;
|
|
202
|
+
private completionApiResponse;
|
|
203
|
+
private completionGraphqlRequestBody;
|
|
204
|
+
private completionApiTarget;
|
|
205
|
+
private completionApiSample;
|
|
206
|
+
private completionApis;
|
|
207
|
+
private initEventList;
|
|
208
|
+
private completionDocs;
|
|
209
|
+
private completionTcpClient;
|
|
210
|
+
private completionTcpMethodRequest;
|
|
211
|
+
private completionTcpMethod;
|
|
212
|
+
private completionTcp;
|
|
213
|
+
convert(json: any, config?: {
|
|
214
|
+
project_id: string;
|
|
215
|
+
unrelated_id: boolean;
|
|
216
|
+
}): {
|
|
133
217
|
status: "error" | "success";
|
|
134
218
|
message: string;
|
|
135
219
|
data: any;
|
|
@@ -297,4 +381,4 @@ declare const swaggerConverFormat: (json: any, baseConfig: ImportConfig, project
|
|
|
297
381
|
global: {};
|
|
298
382
|
};
|
|
299
383
|
|
|
300
|
-
export { ApipostToSwagger as ApiToSwagger, ApidocToApipost, ApifoxToApipost, ApipostToPostman, HarToApipost, InsomniaToApipost, PostmanToApipost, swaggerConverFormat as SwaggerConverFormat, SwaggerToApipost, ThunderToApipost, YapiToApipost };
|
|
384
|
+
export { ApipostToSwagger as ApiToSwagger, ApidocToApipost, ApifoxcliToApipost as ApifoxCliToApipost, ApifoxToApipost, ApipostToPostman, HarToApipost, InsomniaToApipost, PostmanToApipost, swaggerConverFormat as SwaggerConverFormat, SwaggerToApipost, ThunderToApipost, YapiToApipost };
|