@getjones/test-infra 1.1.9 → 1.1.10

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.1.9",
3
+ "version": "1.1.10",
4
4
  "description": "Providing internal and openapi interface",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -59,7 +59,7 @@ const assignMptToProperties = async (assignToMptModel, context) => {
59
59
  return response;
60
60
  };
61
61
 
62
- const getContractorsByTabId = async (tabId, activityStatus, context) => {
62
+ const getContractorsByTabId = async (tabId, context, activityStatus) => {
63
63
  const body = { tabId, activityStatus };
64
64
  const response = await requests.postRequestHandler(Endpoints.get, body, context);
65
65
  return response.data;
@@ -42,7 +42,7 @@ const updateExpiryDate = (contractorId, expiryDate, policyName) => {
42
42
  };
43
43
 
44
44
  const getContractorsByTabId = (tabId, context, activityStatus = 'ACTIVE') => {
45
- return contractorsAPI.getContractorsByTabId(tabId, activityStatus, context);
45
+ return contractorsAPI.getContractorsByTabId(tabId, context, activityStatus);
46
46
  };
47
47
 
48
48
  const assignMptToProperties = (assignToMptModel, context) => {
@@ -1,11 +1,11 @@
1
1
  const { validateType } = require('../../../../common/validations/typeValidations');
2
2
 
3
- function CreateContractorModel(requirementId, inviterEmail, vendorsInfo, { tabId = null } = {}) {
3
+ function CreateContractorModel(requirementId, inviterEmail, vendorsInfo, { tabId = null, disableMail = true, sendCovid19Form = false } = {}) {
4
4
  this.reqId = requirementId;
5
5
  this.inviterEmail = inviterEmail;
6
6
  this.vendorInfo = vendorsInfo;
7
- this.disableMail = true;
8
- this.sendCovid19Form = false;
7
+ this.disableMail = disableMail;
8
+ this.sendCovid19Form = sendCovid19Form;
9
9
  this.tabId = tabId;
10
10
 
11
11
  validateType(vendorsInfo, Array);
@@ -5,7 +5,7 @@ const CreateProjectModel = require('../../models/core/create.project.model');
5
5
  const UpdateProjectModel = require('../../models/core/update.project.model');
6
6
 
7
7
  const getProjectsByAccountName = async (accountName, context) => {
8
- const accountId = accounts.getAccountId(accountName, context);
8
+ const accountId = await accounts.getAccountId(accountName, context);
9
9
  return getProjectsByAccountId(accountId, context);
10
10
  };
11
11