@getjones/test-infra 1.2.11 → 1.2.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getjones/test-infra",
3
- "version": "1.2.11",
3
+ "version": "1.2.12",
4
4
  "description": "Providing internal and openapi interface",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -12,7 +12,7 @@ const Endpoints = {
12
12
 
13
13
  const audit = async (contractorId, auditRequestModel, context) => {
14
14
  await requests.getRequestHandler(Endpoints.preAudit(contractorId), {}, context);
15
- return requests.postRequestHandler(Endpoints.audit, auditRequestModel, context);
15
+ return requests.postRequestHandler(Endpoints.audit, auditRequestModel, context).then(res => res.data);
16
16
  };
17
17
 
18
18
  const isReaudit = (contractorId, context) => {
@@ -20,15 +20,15 @@ const isReaudit = (contractorId, context) => {
20
20
  };
21
21
 
22
22
  const getAuditorContractorList = (page, accountId, context) => {
23
- return requests.getRequestHandler(Endpoints.auditorContractorList, { page, accountId }, context);
23
+ return requests.getRequestHandler(Endpoints.auditorContractorList, { page, accountId }, context).then(res => res.data);
24
24
  };
25
25
 
26
26
  const getContractorDetailsForAudit = (contractorId, context) => {
27
- return requests.getRequestHandler(Endpoints.contractorDetailsForAudit(contractorId), {}, context);
27
+ return requests.getRequestHandler(Endpoints.contractorDetailsForAudit(contractorId), {}, context).then(res => res.data);
28
28
  };
29
29
 
30
30
  const getRequirementDetailsForAudit = (contractorId, context) => {
31
- return requests.getRequestHandler(Endpoints.requirementDetailsForAudit(contractorId), {}, context);
31
+ return requests.getRequestHandler(Endpoints.requirementDetailsForAudit(contractorId), {}, context).then(res => res.data);
32
32
  };
33
33
 
34
34
  module.exports = {