echoapi-converter 0.0.34 → 0.0.35

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.js +18 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3622,6 +3622,12 @@ class ApifoxToApipost {
3622
3622
  name: 'New Query',
3623
3623
  query: lodash.isString((_a = requestBody === null || requestBody === void 0 ? void 0 : requestBody.graphql) === null || _a === void 0 ? void 0 : _a.query) ? (_b = requestBody === null || requestBody === void 0 ? void 0 : requestBody.graphql) === null || _b === void 0 ? void 0 : _b.query : '',
3624
3624
  variables: lodash.isString((_c = requestBody === null || requestBody === void 0 ? void 0 : requestBody.graphql) === null || _c === void 0 ? void 0 : _c.variables) ? (_d = requestBody === null || requestBody === void 0 ? void 0 : requestBody.graphql) === null || _d === void 0 ? void 0 : _d.variables : '',
3625
+ response: {
3626
+ mode: 'json',
3627
+ raw: '',
3628
+ raw_parameter: [],
3629
+ raw_schema: { type: 'object' },
3630
+ },
3625
3631
  }],
3626
3632
  };
3627
3633
  }
@@ -4425,7 +4431,12 @@ class InsomniaToApipost {
4425
4431
  completionGraphqlRequestBody(body) {
4426
4432
  return {
4427
4433
  query_schema: {},
4428
- query_list: [Object.assign({ param_id: ATools.snowflakeId(), name: 'New Query' }, this.getGraphQLQuery(body === null || body === void 0 ? void 0 : body.text))],
4434
+ query_list: [Object.assign(Object.assign({ param_id: ATools.snowflakeId(), name: 'New Query' }, this.getGraphQLQuery(body === null || body === void 0 ? void 0 : body.text)), { response: {
4435
+ mode: 'json',
4436
+ raw: '',
4437
+ raw_parameter: [],
4438
+ raw_schema: { type: 'object' },
4439
+ } })],
4429
4440
  };
4430
4441
  }
4431
4442
  completionGraphqlTarget(item) {
@@ -4943,6 +4954,12 @@ class PostmanToApipost {
4943
4954
  name: 'New Query',
4944
4955
  query: lodash.isString((_k = (_j = request === null || request === void 0 ? void 0 : request.body) === null || _j === void 0 ? void 0 : _j.graphql) === null || _k === void 0 ? void 0 : _k.query) ? (_m = (_l = request === null || request === void 0 ? void 0 : request.body) === null || _l === void 0 ? void 0 : _l.graphql) === null || _m === void 0 ? void 0 : _m.query : '',
4945
4956
  variables: lodash.isString((_p = (_o = request === null || request === void 0 ? void 0 : request.body) === null || _o === void 0 ? void 0 : _o.graphql) === null || _p === void 0 ? void 0 : _p.variables) ? (_r = (_q = request === null || request === void 0 ? void 0 : request.body) === null || _q === void 0 ? void 0 : _q.graphql) === null || _r === void 0 ? void 0 : _r.variables : '',
4957
+ response: {
4958
+ mode: 'json',
4959
+ raw: '',
4960
+ raw_parameter: [],
4961
+ raw_schema: { type: 'object' },
4962
+ },
4946
4963
  }],
4947
4964
  },
4948
4965
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "echoapi-converter",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
4
4
  "description": "echoapi to swagger",
5
5
  "main": "dist/index.js",
6
6
  "files": [