@getjones/test-infra 2.11.1 → 2.11.2
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
|
@@ -49,7 +49,7 @@ const deleteByContractorId = (contractorId, context) => {
|
|
|
49
49
|
return requests.deleteRequestHandler(Endpoints.delete(contractorId), context);
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
const
|
|
52
|
+
const archiveRecord = (recordVerificationModel, context) => {
|
|
53
53
|
return requests.deleteRequestHandler(Endpoints.archive(recordVerificationModel.contractorId), context, {}, {}, recordVerificationModel);
|
|
54
54
|
};
|
|
55
55
|
|
|
@@ -146,7 +146,7 @@ module.exports = {
|
|
|
146
146
|
getContractorById,
|
|
147
147
|
getRecordHistory,
|
|
148
148
|
deleteByContractorId,
|
|
149
|
-
|
|
149
|
+
archiveRecord,
|
|
150
150
|
restoreRecord,
|
|
151
151
|
editContractor,
|
|
152
152
|
updateInviteDate,
|
|
@@ -28,9 +28,9 @@ const getRecordHistory = (contractorId, context) => {
|
|
|
28
28
|
return contractorsAPI.getRecordHistory(contractorId, context);
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
const
|
|
31
|
+
const archiveRecord = (recordVerificationModel, context) => {
|
|
32
32
|
validateType(recordVerificationModel, RecordModifyDateVerificationModel);
|
|
33
|
-
return contractorsAPI.
|
|
33
|
+
return contractorsAPI.archiveRecord(recordVerificationModel, context);
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
const restoreRecord = (recordVerificationModel, context) => {
|
|
@@ -173,7 +173,7 @@ module.exports = {
|
|
|
173
173
|
getContractorsByAccountId,
|
|
174
174
|
getContractorById,
|
|
175
175
|
getRecordHistory,
|
|
176
|
-
|
|
176
|
+
archiveRecord,
|
|
177
177
|
restoreRecord,
|
|
178
178
|
editContractor,
|
|
179
179
|
updateInviteDate,
|