testit-js-commons 2.0.2 → 2.1.1

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.
@@ -19,7 +19,7 @@ class BaseConverter {
19
19
  return testit_api_client_1.LinkType[linkType];
20
20
  }
21
21
  toOriginLink(link) {
22
- return Object.assign(Object.assign({}, link), { type: link.type ? this.toOriginLinkType(link.type) : undefined });
22
+ return Object.assign(Object.assign({}, link), { type: link.type ? this.toOriginLinkType(link.type) : undefined, hasInfo: true });
23
23
  }
24
24
  toLocalLink(link) {
25
25
  var _a, _b;
@@ -78,9 +78,14 @@ class AutotestsService extends base_service_1.BaseService {
78
78
  projectIds: [this.config.projectId],
79
79
  isDeleted: false,
80
80
  };
81
+ const includesModel = {
82
+ includeSteps: false,
83
+ includeLinks: false,
84
+ includeLabels: false
85
+ };
81
86
  const requestModel = {
82
87
  filter: filterModel,
83
- includes: undefined
88
+ includes: includesModel
84
89
  };
85
90
  return yield this._client.apiV2AutoTestsSearchPost(undefined, undefined, undefined, undefined, undefined, requestModel)
86
91
  .then(({ body }) => body[0])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testit-js-commons",
3
- "version": "2.0.2",
3
+ "version": "2.1.1",
4
4
  "description": "JavaScript commons for Test IT",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "dotenv": "^16.0.3",
27
- "testit-api-client": "^4.0.0"
27
+ "testit-api-client": "^4.1.0"
28
28
  },
29
29
  "files": [
30
30
  "lib"