@getjones/test-infra 1.1.8 → 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/README.md CHANGED
@@ -283,7 +283,7 @@ const updateProjectSettingsInput = {
283
283
  Tenants: false,
284
284
  Vendors: false,
285
285
  },
286
- autoRenewels: false,
286
+ autoRenewals: false,
287
287
  marketplace: {
288
288
  marketplaceEnabled: false,
289
289
  marketplacePreApproved: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getjones/test-infra",
3
- "version": "1.1.8",
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);
@@ -42,11 +42,10 @@ function ContractorDetailsModel({
42
42
  this.state = state;
43
43
  this.zipCode = zipCode;
44
44
  this.phoneNumber = phoneNumber;
45
- this.recordId = agreementNumber;
45
+ this.externalRecordId = agreementNumber;
46
46
  this.descriptionOfOperations = projectDescription;
47
47
  this.startDate = startDate;
48
48
  this.endDate = endDate;
49
- this.tenantRecord = tenantRecord;
50
49
 
51
50
  if (tenantRecord && Object.keys(tenantRecord).length > 0){
52
51
  validateType(tenantRecord, TenantRecordModel);
@@ -78,4 +77,4 @@ module.exports = {
78
77
  VendorTabModel,
79
78
  ContractorDetailsModel,
80
79
  MptModel
81
- };
80
+ };
@@ -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
 
@@ -1,7 +1,7 @@
1
1
 
2
2
  function UpdateProjectSettingsModel({
3
3
  autoGaps = defaultAutoGaps,
4
- autoRenewels = false,
4
+ autoRenewals = false,
5
5
  marketplace = defaultMarketplace,
6
6
  ocrEnabled = false,
7
7
  onboardingPhase = false,
@@ -11,7 +11,7 @@ function UpdateProjectSettingsModel({
11
11
 
12
12
  }) {
13
13
  this.autoGaps = autoGaps;
14
- this.autoRenewels = autoRenewels;
14
+ this.autoRenewals = autoRenewals;
15
15
  this.marketplace = marketplace;
16
16
  this.ocrEnabled = ocrEnabled;
17
17
  this.onboardingPhase = onboardingPhase;