@studyportals/sp-lurch-interface
Advanced tools
Comparing version 2.2.3 to 2.3.0
{ | ||
"name": "@studyportals/sp-lurch-interface", | ||
"version": "2.2.3", | ||
"version": "2.3.0", | ||
"description": "Contains Data Transfer Objects required or provided by Lurch through its interface.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -10,3 +10,3 @@ import { IRequestSender, ISuperAgentRequestFactory } from "@studyportals/mb-platform-http-requests"; | ||
retrieveAllInputBatches(): Promise<IInputBatch[]>; | ||
approveInputBatch(inputBatchIdentity: string): Promise<void>; | ||
approveInputBatch(inputBatchIdentity: string, representativeIdentity: string): Promise<void>; | ||
private createGetRequest; | ||
@@ -13,0 +13,0 @@ private createPostRequest; |
@@ -27,6 +27,6 @@ "use strict"; | ||
} | ||
approveInputBatch(inputBatchIdentity) { | ||
approveInputBatch(inputBatchIdentity, representativeIdentity) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const request = this.createPostRequest('/input-batch/approve'); | ||
request.send({ inputBatchIdentity }); | ||
request.send({ inputBatchIdentity, representativeIdentity }); | ||
yield this.requestSender.send(request); | ||
@@ -33,0 +33,0 @@ }); |
@@ -81,3 +81,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
yield this.testInstance.approveInputBatch(typemoq_1.It.isAny()); | ||
yield this.testInstance.approveInputBatch(typemoq_1.It.isAny(), typemoq_1.It.isAny()); | ||
this.mockedTestInstance.verify(_ => _["createPostRequest"]("/input-batch/approve"), typemoq_1.Times.once()); | ||
@@ -89,4 +89,5 @@ }); | ||
const inputBatchIdentity = "InputBatchIdentity"; | ||
yield this.testInstance.approveInputBatch(inputBatchIdentity); | ||
this.mockedRequest.verify(_ => _.send(typemoq_1.It.isObjectWith({ inputBatchIdentity: inputBatchIdentity })), typemoq_1.Times.once()); | ||
const representativeIdentity = "RepresentativeIdentity"; | ||
yield this.testInstance.approveInputBatch(inputBatchIdentity, representativeIdentity); | ||
this.mockedRequest.verify(_ => _.send(typemoq_1.It.isObjectWith({ inputBatchIdentity: inputBatchIdentity, representativeIdentity: representativeIdentity })), typemoq_1.Times.once()); | ||
}); | ||
@@ -100,3 +101,3 @@ } | ||
; | ||
yield this.testInstance.approveInputBatch(typemoq_1.It.isAny()); | ||
yield this.testInstance.approveInputBatch(typemoq_1.It.isAny(), typemoq_1.It.isAny()); | ||
this.mockedRequestSender.verify(_ => _.send(this.request), typemoq_1.Times.once()); | ||
@@ -103,0 +104,0 @@ chai_1.assert.isTrue(awaited); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
95479
1316