Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@studyportals/sp-lurch-interface

Package Overview
Dependencies
Maintainers
19
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@studyportals/sp-lurch-interface - npm Package Compare versions

Comparing version 2.2.3 to 2.3.0

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc