@getjones/test-infra 1.4.0 → 1.4.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getjones/test-infra",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Providing internal and openapi interface",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -35,7 +35,7 @@ const archiveByContractorId = (contractorId, context) => {
35
35
  return requests.deleteRequestHandler(Endpoints.archive(contractorId), context);
36
36
  };
37
37
 
38
- const restoreByContractorId = (recordVerificationModel, context) => {
38
+ const restoreContractor = (recordVerificationModel, context) => {
39
39
  return requests.postRequestHandler(Endpoints.restore(recordVerificationModel.contractorId), recordVerificationModel, context);
40
40
  };
41
41
 
@@ -75,7 +75,7 @@ module.exports = {
75
75
  getContractorById,
76
76
  deleteByContractorId,
77
77
  archiveByContractorId,
78
- restoreByContractorId,
78
+ restoreContractor,
79
79
  editContractor,
80
80
  updateExpiryDate,
81
81
  assignMptToProperties,
@@ -29,9 +29,9 @@ const archiveByContractorId = (contractorId, context) => {
29
29
  return contractorsAPI.archiveByContractorId(contractorId, context);
30
30
  };
31
31
 
32
- const restoreByContractorId = (recordVerificationModel, context) => {
32
+ const restoreContractor = (recordVerificationModel, context) => {
33
33
  validateType(recordVerificationModel, RecordModifyDateVerificationModel);
34
- return contractorsAPI.restoreByContractorId(recordVerificationModel, context);
34
+ return contractorsAPI.restoreContractor(recordVerificationModel, context);
35
35
  };
36
36
 
37
37
  const editContractor = (editContractorModel, context) => {
@@ -62,7 +62,7 @@ module.exports = {
62
62
  getContractorById,
63
63
  deleteByContractorId,
64
64
  archiveByContractorId,
65
- restoreByContractorId,
65
+ restoreContractor,
66
66
  editContractor,
67
67
  updateExpiryDate,
68
68
  getContractorsByTabId,
@@ -1,7 +1,8 @@
1
1
  const createModel = require('./models/create.contractor.model');
2
2
  const editModel = require('./models/edit.contractor.model');
3
+ const verificationModel = require('./models/verification.contractor.model');
3
4
  const services = require('./api/contractors.service');
4
5
 
5
- const models = { create: createModel, edit: editModel };
6
+ const models = { create: createModel, edit: editModel, verification: verificationModel };
6
7
 
7
8
  module.exports = { services, models };