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
0
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.15.0 to 3.0.0-2

0

index.d.ts

@@ -0,0 +0,0 @@ import { InputBatchDto } from './src/input-batches/input-batch-dto.class';

49

index.js

@@ -1,34 +0,17 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RetrieveOrganisationsResult = exports.MicrositeStudentProfileResult = exports.LurchClient = exports.IntakeStageType = exports.InputBatchStatus = exports.RetrieveInputBatchesResult = exports.RetrieveInputBatchResult = exports.RetrieveIntakeResult = exports.RetrieveIntakesResult = exports.DiscardInputBatchresult = exports.SubmitMatchesResult = exports.InputBatchDto = exports.OrganisationDto = exports.MatchDto = exports.IntakeDto = void 0;
const input_batch_dto_class_1 = require("./src/input-batches/input-batch-dto.class");
Object.defineProperty(exports, "InputBatchDto", { enumerable: true, get: function () { return input_batch_dto_class_1.InputBatchDto; } });
const input_batch_status_1 = require("./src/input-batches/input-batch-status");
Object.defineProperty(exports, "InputBatchStatus", { enumerable: true, get: function () { return input_batch_status_1.InputBatchStatus; } });
const intake_dto_class_1 = require("./src/intakes/intake-dto.class");
Object.defineProperty(exports, "IntakeDto", { enumerable: true, get: function () { return intake_dto_class_1.IntakeDto; } });
const intake_stage_type_1 = require("./src/intakes/intake-stage-type");
Object.defineProperty(exports, "IntakeStageType", { enumerable: true, get: function () { return intake_stage_type_1.IntakeStageType; } });
const match_dto_class_1 = require("./src/intakes/match-dto.class");
Object.defineProperty(exports, "MatchDto", { enumerable: true, get: function () { return match_dto_class_1.MatchDto; } });
const retrieve_input_batch_result_class_1 = require("./src/results/retrieve-input-batch-result.class");
Object.defineProperty(exports, "RetrieveInputBatchResult", { enumerable: true, get: function () { return retrieve_input_batch_result_class_1.RetrieveInputBatchResult; } });
const retrieve_input_batches_result_class_1 = require("./src/results/retrieve-input-batches-result.class");
Object.defineProperty(exports, "RetrieveInputBatchesResult", { enumerable: true, get: function () { return retrieve_input_batches_result_class_1.RetrieveInputBatchesResult; } });
const retrieve_intake_result_class_1 = require("./src/results/retrieve-intake-result.class");
Object.defineProperty(exports, "RetrieveIntakeResult", { enumerable: true, get: function () { return retrieve_intake_result_class_1.RetrieveIntakeResult; } });
const retrieve_intakes_result_class_1 = require("./src/results/retrieve-intakes-result.class");
Object.defineProperty(exports, "RetrieveIntakesResult", { enumerable: true, get: function () { return retrieve_intakes_result_class_1.RetrieveIntakesResult; } });
const submit_matches_result_class_1 = require("./src/results/submit-matches-result.class");
Object.defineProperty(exports, "SubmitMatchesResult", { enumerable: true, get: function () { return submit_matches_result_class_1.SubmitMatchesResult; } });
const discard_input_batch_result_class_1 = require("./src/results/discard-input-batch-result.class");
Object.defineProperty(exports, "DiscardInputBatchresult", { enumerable: true, get: function () { return discard_input_batch_result_class_1.DiscardInputBatchresult; } });
const lurch_client_1 = require("./src/lurch-client");
Object.defineProperty(exports, "LurchClient", { enumerable: true, get: function () { return lurch_client_1.LurchClient; } });
const microsite_student_profile_result_class_1 = require("./src/results/microsite-student-profile-result.class");
Object.defineProperty(exports, "MicrositeStudentProfileResult", { enumerable: true, get: function () { return microsite_student_profile_result_class_1.MicrositeStudentProfileResult; } });
const retrieve_organisations_result_class_1 = require("./src/results/retrieve-organisations-result.class");
Object.defineProperty(exports, "RetrieveOrganisationsResult", { enumerable: true, get: function () { return retrieve_organisations_result_class_1.RetrieveOrganisationsResult; } });
const organisation_dto_class_1 = require("./src/entities/organisation/organisation-dto.class");
Object.defineProperty(exports, "OrganisationDto", { enumerable: true, get: function () { return organisation_dto_class_1.OrganisationDto; } });
import { InputBatchDto } from './src/input-batches/input-batch-dto.class';
import { InputBatchStatus } from './src/input-batches/input-batch-status';
import { IntakeDto } from './src/intakes/intake-dto.class';
import { IntakeStageType } from './src/intakes/intake-stage-type';
import { MatchDto } from './src/intakes/match-dto.class';
import { RetrieveInputBatchResult } from './src/results/retrieve-input-batch-result.class';
import { RetrieveInputBatchesResult } from './src/results/retrieve-input-batches-result.class';
import { RetrieveIntakeResult } from './src/results/retrieve-intake-result.class';
import { RetrieveIntakesResult } from './src/results/retrieve-intakes-result.class';
import { SubmitMatchesResult } from './src/results/submit-matches-result.class';
import { DiscardInputBatchresult } from './src/results/discard-input-batch-result.class';
import { LurchClient } from './src/lurch-client';
import { MicrositeStudentProfileResult } from './src/results/microsite-student-profile-result.class';
import { RetrieveOrganisationsResult } from './src/results/retrieve-organisations-result.class';
import { OrganisationDto } from './src/entities/organisation/organisation-dto.class';
export { IntakeDto, MatchDto, OrganisationDto, InputBatchDto, SubmitMatchesResult, DiscardInputBatchresult, RetrieveIntakesResult, RetrieveIntakeResult, RetrieveInputBatchResult, RetrieveInputBatchesResult, InputBatchStatus, IntakeStageType, LurchClient, MicrositeStudentProfileResult, RetrieveOrganisationsResult };
//# sourceMappingURL=index.js.map
{
"name": "@studyportals/sp-lurch-interface",
"version": "2.15.0",
"version": "3.0.0-2",
"type": "module",
"description": "Contains Data Transfer Objects required or provided by Lurch through its interface.",
"scripts": {
"test": "tsc && npm run test-u-o && nyc report --reporter=text",
"test-u": "tsc && npm run test-u-o",
"test-u-o": "npx --all --silent mocha \"bin/tests-u/**/*.test.js\"",
"prepare-deployment": "cp package.json bin/package.json",
"deploy": "npm test && npm run prepare-deployment && npm publish bin --otp=226422",
"test": "npm run test-u-o",
"test-u": "npm run test-u-o",
"test-u-o": "nyc mocha",
"prepare-deployment": "cp package.json ./bin/package.json",
"deploy": "npm test && tsc && npm run prepare-deployment && npm publish ./bin",
"lint": "tslint 'src/**/*.ts'",

@@ -16,3 +17,4 @@ "lint-fix": "tslint --fix 'src/**/*.ts'",

"deploy-minor": "npm run prepare-deployment && npm version minor && npm run deploy",
"deploy-major": "npm run prepare-deployment && npm version major && npm run deploy"
"deploy-major": "npm run prepare-deployment && npm version major && npm run deploy",
"deploy-beta": "npm test && npm version prerelease && npm run deploy -- --tag beta"
},

@@ -22,19 +24,19 @@ "author": "SPAF",

"devDependencies": {
"@types/chai": "^4.0.4",
"@types/superagent": "^3.8.7",
"chai": "^4.1.2",
"mocha": "4.0.1",
"mocha-typescript": "1.1.10",
"nyc": "11.4.1",
"ts-node": "^8.0.3",
"tslint": "^5.9.1",
"typemoq": "2.1.0",
"typescript": "^3.7.x"
"@testdeck/mocha": "^0.3.3",
"@types/chai": "^4.3.16",
"@types/superagent": "^8.1.7",
"chai": "^5.1.1",
"mocha": "^10.6.0",
"nyc": "^17.0.0",
"ts-node": "^10.9.2",
"tslint": "^6.1.3",
"typemoq": "^2.1.0",
"typescript": "^5.5.3"
},
"dependencies": {
"@studyportals/mb-platform-http-requests": "^1.0.4",
"@studyportals/sp-r2d2-interface": "^2.0.0",
"@studyportals/sp-thing-interface": "^1.4.0",
"superagent": "^3.8.3"
"@studyportals/mb-platform-http-requests": "^2.7.0",
"@studyportals/sp-r2d2-interface": "^2.2.0",
"@studyportals/sp-thing-interface": "^1.4.1-4",
"superagent": "^9.0.2"
}
}

@@ -0,0 +0,0 @@ export interface IOrganisation {

@@ -1,3 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export {};
//# sourceMappingURL=i-organisation.interface.js.map

@@ -0,0 +0,0 @@ import { IOrganisation } from "./i-organisation.interface";

@@ -1,5 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OrganisationDto = void 0;
class OrganisationDto {
export class OrganisationDto {
constructor(identity, name) {

@@ -11,3 +8,2 @@ this.identity = identity;

}
exports.OrganisationDto = OrganisationDto;
//# sourceMappingURL=organisation-dto.class.js.map

@@ -0,0 +0,0 @@ import { IOrganisation } from "./i-organisation.interface";

@@ -1,5 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OrganisationsDto = void 0;
class OrganisationsDto {
export class OrganisationsDto {
constructor(userId, organisations) {

@@ -10,3 +7,2 @@ this.userId = userId;

}
exports.OrganisationsDto = OrganisationsDto;
//# sourceMappingURL=organisations-dto.js.map

@@ -0,0 +0,0 @@ import { IInputBatch } from "./interfaces/i-input-batch.interface";

@@ -1,5 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InputBatchDto = void 0;
class InputBatchDto {
export class InputBatchDto {
constructor(identity, creationTimeIso, status, organisationIdentity, intakeMonth, intakeYear, targetIntakeStageType, inputSize, matchesCount, representativeIdentity) {

@@ -19,3 +16,2 @@ this.identity = identity;

}
exports.InputBatchDto = InputBatchDto;
//# sourceMappingURL=input-batch-dto.class.js.map

@@ -0,0 +0,0 @@ export declare enum InputBatchStatus {

@@ -1,5 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InputBatchStatus = void 0;
var InputBatchStatus;
export var InputBatchStatus;
(function (InputBatchStatus) {

@@ -9,3 +6,3 @@ InputBatchStatus[InputBatchStatus["SUBMITTED"] = 0] = "SUBMITTED";

InputBatchStatus[InputBatchStatus["DISCARDED"] = 2] = "DISCARDED";
})(InputBatchStatus = exports.InputBatchStatus || (exports.InputBatchStatus = {}));
})(InputBatchStatus || (InputBatchStatus = {}));
//# sourceMappingURL=input-batch-status.js.map

@@ -0,0 +0,0 @@ export interface IInputBatch {

@@ -1,3 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export {};
//# sourceMappingURL=i-input-batch.interface.js.map

@@ -0,0 +0,0 @@ import { IIntake } from "./interfaces/i-intake.interface";

@@ -1,5 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IntakeDto = void 0;
class IntakeDto {
export class IntakeDto {
constructor(identity, organisationId, intakeMonth, intakeYear, applications, accepted, enrolments, leads) {

@@ -17,3 +14,2 @@ this.identity = identity;

}
exports.IntakeDto = IntakeDto;
//# sourceMappingURL=intake-dto.class.js.map

@@ -0,0 +0,0 @@ export declare enum IntakeStageType {

@@ -1,5 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IntakeStageType = void 0;
var IntakeStageType;
export var IntakeStageType;
(function (IntakeStageType) {

@@ -10,3 +7,3 @@ IntakeStageType[IntakeStageType["APPLICATION"] = 0] = "APPLICATION";

IntakeStageType[IntakeStageType["LEAD"] = 3] = "LEAD";
})(IntakeStageType = exports.IntakeStageType || (exports.IntakeStageType = {}));
})(IntakeStageType || (IntakeStageType = {}));
//# sourceMappingURL=intake-stage-type.js.map

@@ -0,0 +0,0 @@ import { IMatch } from "./i-match.interface";

@@ -1,3 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export {};
//# sourceMappingURL=i-intake.interface.js.map

@@ -0,0 +0,0 @@ export interface IMatch {

@@ -1,3 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export {};
//# sourceMappingURL=i-match.interface.js.map

@@ -0,0 +0,0 @@ import { IMatch } from "./interfaces/i-match.interface";

@@ -1,5 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MatchDto = void 0;
class MatchDto {
export class MatchDto {
constructor(studentId) {

@@ -10,3 +7,2 @@ this.studentId = studentId;

}
exports.MatchDto = MatchDto;
//# sourceMappingURL=match-dto.class.js.map

@@ -0,0 +0,0 @@ import { IRequestSender, ISuperAgentRequestFactory } from "@studyportals/mb-platform-http-requests";

@@ -1,2 +0,1 @@

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

@@ -11,6 +10,7 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }

};
Object.defineProperty(exports, "__esModule", { value: true });
exports.LurchClient = void 0;
const organisations_dto_1 = require("./entities/organisation/organisations-dto");
class LurchClient {
import { OrganisationsDto } from "./entities/organisation/organisations-dto";
export class LurchClient {
get baseUrl() {
return this._baseUrl;
}
constructor(superAgentRequestFactory, requestSender, baseUrl = '') {

@@ -21,5 +21,2 @@ this.superAgentRequestFactory = superAgentRequestFactory;

}
get baseUrl() {
return this._baseUrl;
}
retrieveAllInputBatches() {

@@ -48,3 +45,3 @@ return __awaiter(this, void 0, void 0, function* () {

return __awaiter(this, void 0, void 0, function* () {
const request = this.createPostRequest('/submit-enrollments');
const request = this.createPostRequest('submit-enrollments');
request.send({

@@ -66,3 +63,3 @@ organisationId,

const result = yield this.requestSender.sendAndExtractBody(request);
return new organisations_dto_1.OrganisationsDto(result.userId, result.organisations);
return new OrganisationsDto(result.userId, result.organisations);
});

@@ -80,3 +77,2 @@ }

}
exports.LurchClient = LurchClient;
//# sourceMappingURL=lurch-client.js.map

@@ -0,0 +0,0 @@ import { SuccessResult } from "@studyportals/sp-r2d2-interface";

@@ -1,6 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DiscardInputBatchresult = void 0;
const sp_r2d2_interface_1 = require("@studyportals/sp-r2d2-interface");
class DiscardInputBatchresult extends sp_r2d2_interface_1.SuccessResult {
import { SuccessResult } from "@studyportals/sp-r2d2-interface";
export class DiscardInputBatchresult extends SuccessResult {
constructor() {

@@ -16,3 +13,2 @@ super();

}
exports.DiscardInputBatchresult = DiscardInputBatchresult;
//# sourceMappingURL=discard-input-batch-result.class.js.map

@@ -0,0 +0,0 @@ import { SuccessResult } from "@studyportals/sp-r2d2-interface";

@@ -1,6 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MicrositeStudentProfileResult = void 0;
const sp_r2d2_interface_1 = require("@studyportals/sp-r2d2-interface");
class MicrositeStudentProfileResult extends sp_r2d2_interface_1.SuccessResult {
import { SuccessResult } from "@studyportals/sp-r2d2-interface";
export class MicrositeStudentProfileResult extends SuccessResult {
constructor(studentProfile) {

@@ -18,3 +15,2 @@ super();

}
exports.MicrositeStudentProfileResult = MicrositeStudentProfileResult;
//# sourceMappingURL=microsite-student-profile-result.class.js.map

@@ -0,0 +0,0 @@ import { SuccessResult } from "@studyportals/sp-r2d2-interface";

@@ -1,6 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RetrieveInputBatchResult = void 0;
const sp_r2d2_interface_1 = require("@studyportals/sp-r2d2-interface");
class RetrieveInputBatchResult extends sp_r2d2_interface_1.SuccessResult {
import { SuccessResult } from "@studyportals/sp-r2d2-interface";
export class RetrieveInputBatchResult extends SuccessResult {
constructor(inputBatch) {

@@ -18,3 +15,2 @@ super();

}
exports.RetrieveInputBatchResult = RetrieveInputBatchResult;
//# sourceMappingURL=retrieve-input-batch-result.class.js.map

@@ -0,0 +0,0 @@ import { SuccessResult } from "@studyportals/sp-r2d2-interface";

@@ -1,6 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RetrieveInputBatchesResult = void 0;
const sp_r2d2_interface_1 = require("@studyportals/sp-r2d2-interface");
class RetrieveInputBatchesResult extends sp_r2d2_interface_1.SuccessResult {
import { SuccessResult } from "@studyportals/sp-r2d2-interface";
export class RetrieveInputBatchesResult extends SuccessResult {
constructor(inputBatches) {

@@ -18,3 +15,2 @@ super();

}
exports.RetrieveInputBatchesResult = RetrieveInputBatchesResult;
//# sourceMappingURL=retrieve-input-batches-result.class.js.map

@@ -0,0 +0,0 @@ import { SuccessResult } from "@studyportals/sp-r2d2-interface";

@@ -1,6 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RetrieveIntakeResult = void 0;
const sp_r2d2_interface_1 = require("@studyportals/sp-r2d2-interface");
class RetrieveIntakeResult extends sp_r2d2_interface_1.SuccessResult {
import { SuccessResult } from "@studyportals/sp-r2d2-interface";
export class RetrieveIntakeResult extends SuccessResult {
constructor(intake) {

@@ -18,3 +15,2 @@ super();

}
exports.RetrieveIntakeResult = RetrieveIntakeResult;
//# sourceMappingURL=retrieve-intake-result.class.js.map

@@ -0,0 +0,0 @@ import { SuccessResult } from "@studyportals/sp-r2d2-interface";

@@ -1,6 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RetrieveIntakesResult = void 0;
const sp_r2d2_interface_1 = require("@studyportals/sp-r2d2-interface");
class RetrieveIntakesResult extends sp_r2d2_interface_1.SuccessResult {
import { SuccessResult } from "@studyportals/sp-r2d2-interface";
export class RetrieveIntakesResult extends SuccessResult {
constructor(intakes) {

@@ -18,3 +15,2 @@ super();

}
exports.RetrieveIntakesResult = RetrieveIntakesResult;
//# sourceMappingURL=retrieve-intakes-result.class.js.map

@@ -0,0 +0,0 @@ import { SuccessResult } from "@studyportals/sp-r2d2-interface";

@@ -1,6 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RetrieveOrganisationsResult = void 0;
const sp_r2d2_interface_1 = require("@studyportals/sp-r2d2-interface");
class RetrieveOrganisationsResult extends sp_r2d2_interface_1.SuccessResult {
import { SuccessResult } from "@studyportals/sp-r2d2-interface";
export class RetrieveOrganisationsResult extends SuccessResult {
constructor(organisations, userId) {

@@ -20,3 +17,2 @@ super();

}
exports.RetrieveOrganisationsResult = RetrieveOrganisationsResult;
//# sourceMappingURL=retrieve-organisations-result.class.js.map

@@ -0,0 +0,0 @@ import { SuccessResult } from "@studyportals/sp-r2d2-interface";

@@ -1,6 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SubmitMatchesResult = void 0;
const sp_r2d2_interface_1 = require("@studyportals/sp-r2d2-interface");
class SubmitMatchesResult extends sp_r2d2_interface_1.SuccessResult {
import { SuccessResult } from "@studyportals/sp-r2d2-interface";
export class SubmitMatchesResult extends SuccessResult {
constructor(confirmedMatchesCount) {

@@ -16,3 +13,2 @@ super();

}
exports.SubmitMatchesResult = SubmitMatchesResult;
//# sourceMappingURL=submit-matches-result.class.js.map

@@ -0,0 +0,0 @@ export interface IMicrositeStudentProfile {

@@ -1,3 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export {};
//# sourceMappingURL=I-microsite-student-profile.interface.js.map

@@ -1,2 +0,1 @@

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -11,28 +10,27 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
const chai_1 = require("chai");
const mocha_typescript_1 = require("mocha-typescript");
const organisation_dto_class_1 = require("../../../src/entities/organisation/organisation-dto.class");
import { assert } from "chai";
import { suite, test } from "@testdeck/mocha";
import { OrganisationDto } from "../../../src/entities/organisation/organisation-dto.class";
let OrganisationDtoTest = class OrganisationDtoTest {
constructor__TypeGuardSet() {
const testInstance = new organisation_dto_class_1.OrganisationDto("", "");
chai_1.assert.isTrue(testInstance.__i_organisation__);
const testInstance = new OrganisationDto("", "");
assert.isTrue(testInstance.__i_organisation__);
}
serialization__TypeGuardSerialized() {
const deserialized = JSON.parse(JSON.stringify(new organisation_dto_class_1.OrganisationDto("", "")));
chai_1.assert.isTrue(deserialized.__i_organisation__);
const deserialized = JSON.parse(JSON.stringify(new OrganisationDto("", "")));
assert.isTrue(deserialized.__i_organisation__);
}
serialization__IdentitySerialized() {
const value = "SomeValue";
const deserialized = JSON.parse(JSON.stringify(new organisation_dto_class_1.OrganisationDto(value, "")));
chai_1.assert.equal(deserialized.identity, value);
const deserialized = JSON.parse(JSON.stringify(new OrganisationDto(value, "")));
assert.equal(deserialized.identity, value);
}
serialization__NameSerialized() {
const value = "SomeValue";
const deserialized = JSON.parse(JSON.stringify(new organisation_dto_class_1.OrganisationDto("", value)));
chai_1.assert.equal(deserialized.name, value);
const deserialized = JSON.parse(JSON.stringify(new OrganisationDto("", value)));
assert.equal(deserialized.name, value);
}
};
__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -43,3 +41,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -50,3 +48,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -57,3 +55,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -64,4 +62,4 @@ __metadata("design:paramtypes", []),

OrganisationDtoTest = __decorate([
mocha_typescript_1.suite
suite
], OrganisationDtoTest);
//# sourceMappingURL=organisation-dto.test.js.map

@@ -1,2 +0,1 @@

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -11,68 +10,67 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
const chai_1 = require("chai");
const mocha_typescript_1 = require("mocha-typescript");
const input_batch_dto_class_1 = require("../../src/input-batches/input-batch-dto.class");
import { assert } from "chai";
import { suite, test } from "@testdeck/mocha";
import { InputBatchDto } from "../../src/input-batches/input-batch-dto.class";
let InputBatchDtoTest = class InputBatchDtoTest {
constructor__TypeGuardSet() {
const testInstance = new input_batch_dto_class_1.InputBatchDto("", "", 0, "", 0, 0, 0, 0, 0, "");
chai_1.assert.isTrue(testInstance.__i_input_batch__);
const testInstance = new InputBatchDto("", "", 0, "", 0, 0, 0, 0, 0, "");
assert.isTrue(testInstance.__i_input_batch__);
}
serialization__TypeGuardSerialized() {
const deserialized = JSON.parse(JSON.stringify(new input_batch_dto_class_1.InputBatchDto("", "", 0, "", 0, 0, 0, 0, 0, "")));
chai_1.assert.isTrue(deserialized.__i_input_batch__);
const deserialized = JSON.parse(JSON.stringify(new InputBatchDto("", "", 0, "", 0, 0, 0, 0, 0, "")));
assert.isTrue(deserialized.__i_input_batch__);
}
serialization__IdentitySerialized() {
const value = "SomeValue";
const deserialized = JSON.parse(JSON.stringify(new input_batch_dto_class_1.InputBatchDto(value, "", 0, "", 0, 0, 0, 0, 0, "")));
chai_1.assert.equal(deserialized.identity, value);
const deserialized = JSON.parse(JSON.stringify(new InputBatchDto(value, "", 0, "", 0, 0, 0, 0, 0, "")));
assert.equal(deserialized.identity, value);
}
serialization__CreationTimeSerialized() {
const value = "SomeValue";
const deserialized = JSON.parse(JSON.stringify(new input_batch_dto_class_1.InputBatchDto("", value, 0, "", 0, 0, 0, 0, 0, "")));
chai_1.assert.equal(deserialized.creationTimeIso, value);
const deserialized = JSON.parse(JSON.stringify(new InputBatchDto("", value, 0, "", 0, 0, 0, 0, 0, "")));
assert.equal(deserialized.creationTimeIso, value);
}
serialization__StatusSerialized() {
const value = 0;
const deserialized = JSON.parse(JSON.stringify(new input_batch_dto_class_1.InputBatchDto("", "", value, "", 0, 0, 0, 0, 0, "")));
chai_1.assert.equal(deserialized.status, value);
const deserialized = JSON.parse(JSON.stringify(new InputBatchDto("", "", value, "", 0, 0, 0, 0, 0, "")));
assert.equal(deserialized.status, value);
}
serialization__OrganisationIdSerialized() {
const value = "SomeValue";
const deserialized = JSON.parse(JSON.stringify(new input_batch_dto_class_1.InputBatchDto("", "", 0, value, 0, 0, 0, 0, 0, "")));
chai_1.assert.equal(deserialized.organisationIdentity, value);
const deserialized = JSON.parse(JSON.stringify(new InputBatchDto("", "", 0, value, 0, 0, 0, 0, 0, "")));
assert.equal(deserialized.organisationIdentity, value);
}
serialization__IntakeMonthSerialized() {
const value = 1;
const deserialized = JSON.parse(JSON.stringify(new input_batch_dto_class_1.InputBatchDto("", "", 0, "", value, 0, 0, 0, 0, "")));
chai_1.assert.equal(deserialized.intakeMonth, value);
const deserialized = JSON.parse(JSON.stringify(new InputBatchDto("", "", 0, "", value, 0, 0, 0, 0, "")));
assert.equal(deserialized.intakeMonth, value);
}
serialization__IntakeYearSerialized() {
const value = 1;
const deserialized = JSON.parse(JSON.stringify(new input_batch_dto_class_1.InputBatchDto("", "", 0, "", 0, value, 0, 0, 0, "")));
chai_1.assert.equal(deserialized.intakeYear, value);
const deserialized = JSON.parse(JSON.stringify(new InputBatchDto("", "", 0, "", 0, value, 0, 0, 0, "")));
assert.equal(deserialized.intakeYear, value);
}
serialization__TargetIntakeStageTypeSerialized() {
const value = "SomeValue";
const deserialized = JSON.parse(JSON.stringify(new input_batch_dto_class_1.InputBatchDto("", "", 0, "", 0, 0, value, 0, 0, "")));
chai_1.assert.equal(deserialized.targetIntakeStageType, value);
const deserialized = JSON.parse(JSON.stringify(new InputBatchDto("", "", 0, "", 0, 0, value, 0, 0, "")));
assert.equal(deserialized.targetIntakeStageType, value);
}
serialization__InputSizeSerialized() {
const value = "SomeValue";
const deserialized = JSON.parse(JSON.stringify(new input_batch_dto_class_1.InputBatchDto("", "", 0, "", 0, 0, 0, value, 0, "")));
chai_1.assert.equal(deserialized.inputSize, value);
const deserialized = JSON.parse(JSON.stringify(new InputBatchDto("", "", 0, "", 0, 0, 0, value, 0, "")));
assert.equal(deserialized.inputSize, value);
}
serialization__MatchesCountSerialized() {
const value = "SomeValue";
const deserialized = JSON.parse(JSON.stringify(new input_batch_dto_class_1.InputBatchDto("", "", 0, "", 0, 0, 0, 0, value, "")));
chai_1.assert.equal(deserialized.matchesCount, value);
const deserialized = JSON.parse(JSON.stringify(new InputBatchDto("", "", 0, "", 0, 0, 0, 0, value, "")));
assert.equal(deserialized.matchesCount, value);
}
serialization__RepresentativeIdentitySerialized() {
const value = "SomeValue";
const deserialized = JSON.parse(JSON.stringify(new input_batch_dto_class_1.InputBatchDto("", "", 0, "", 0, 0, 0, 0, 0, value)));
chai_1.assert.equal(deserialized.representativeIdentity, value);
const deserialized = JSON.parse(JSON.stringify(new InputBatchDto("", "", 0, "", 0, 0, 0, 0, 0, value)));
assert.equal(deserialized.representativeIdentity, value);
}
};
__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -83,3 +81,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -90,3 +88,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -97,3 +95,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -104,3 +102,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -111,3 +109,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -118,3 +116,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -125,3 +123,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -132,3 +130,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -139,3 +137,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -146,3 +144,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -153,3 +151,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -160,4 +158,4 @@ __metadata("design:paramtypes", []),

InputBatchDtoTest = __decorate([
mocha_typescript_1.suite
suite
], InputBatchDtoTest);
//# sourceMappingURL=input-batch-dto.test.js.map

@@ -1,2 +0,1 @@

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -11,19 +10,18 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
const chai_1 = require("chai");
const mocha_typescript_1 = require("mocha-typescript");
const __1 = require("../..");
import { assert } from 'chai';
import { suite, test } from 'mocha-typescript';
import { InputBatchStatus } from '../..';
let InputBatchStatusTest = class InputBatchStatusTest {
submitted_0() {
chai_1.assert.equal(__1.InputBatchStatus.SUBMITTED, 0);
assert.equal(InputBatchStatus.SUBMITTED, 0);
}
approved_1() {
chai_1.assert.equal(__1.InputBatchStatus.APPROVED, 1);
assert.equal(InputBatchStatus.APPROVED, 1);
}
discarded_2() {
chai_1.assert.equal(__1.InputBatchStatus.DISCARDED, 2);
assert.equal(InputBatchStatus.DISCARDED, 2);
}
};
__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -34,3 +32,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -41,3 +39,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -48,4 +46,4 @@ __metadata("design:paramtypes", []),

InputBatchStatusTest = __decorate([
mocha_typescript_1.suite
suite
], InputBatchStatusTest);
//# sourceMappingURL=input-batch-status.test.js.map

@@ -1,2 +0,1 @@

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -11,58 +10,57 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
const chai_1 = require("chai");
const mocha_typescript_1 = require("mocha-typescript");
const intake_dto_class_1 = require("../../src/intakes/intake-dto.class");
import { assert } from "chai";
import { suite, test } from "@testdeck/mocha";
import { IntakeDto } from "../../src/intakes/intake-dto.class";
let IntakeDtoTest = class IntakeDtoTest {
constructor__TypeGuardSet() {
const testInstance = new intake_dto_class_1.IntakeDto("", "", 0, 0, [], [], [], []);
chai_1.assert.isTrue(testInstance.__i_intake__);
const testInstance = new IntakeDto("", "", 0, 0, [], [], [], []);
assert.isTrue(testInstance.__i_intake__);
}
serialization__TypeGuardSerialized() {
const deserialized = JSON.parse(JSON.stringify(new intake_dto_class_1.IntakeDto("", "", 0, 0, [], [], [], [])));
chai_1.assert.isTrue(deserialized.__i_intake__);
const deserialized = JSON.parse(JSON.stringify(new IntakeDto("", "", 0, 0, [], [], [], [])));
assert.isTrue(deserialized.__i_intake__);
}
serialization__IdentitySerialized() {
const value = "SomeValue";
const deserialized = JSON.parse(JSON.stringify(new intake_dto_class_1.IntakeDto(value, "", 0, 0, [], [], [], [])));
chai_1.assert.equal(deserialized.identity, value);
const deserialized = JSON.parse(JSON.stringify(new IntakeDto(value, "", 0, 0, [], [], [], [])));
assert.equal(deserialized.identity, value);
}
serialization__OrganisationIdSerialized() {
const value = "SomeValue";
const deserialized = JSON.parse(JSON.stringify(new intake_dto_class_1.IntakeDto("", value, 0, 0, [], [], [], [])));
chai_1.assert.equal(deserialized.organisationId, value);
const deserialized = JSON.parse(JSON.stringify(new IntakeDto("", value, 0, 0, [], [], [], [])));
assert.equal(deserialized.organisationId, value);
}
serialization__IntakeMonthSerialized() {
const value = 1;
const deserialized = JSON.parse(JSON.stringify(new intake_dto_class_1.IntakeDto("", "", value, 0, [], [], [], [])));
chai_1.assert.equal(deserialized.intakeMonth, value);
const deserialized = JSON.parse(JSON.stringify(new IntakeDto("", "", value, 0, [], [], [], [])));
assert.equal(deserialized.intakeMonth, value);
}
serialization__IntakeYearSerialized() {
const value = 1;
const deserialized = JSON.parse(JSON.stringify(new intake_dto_class_1.IntakeDto("", "", 0, value, [], [], [], [])));
chai_1.assert.equal(deserialized.intakeYear, value);
const deserialized = JSON.parse(JSON.stringify(new IntakeDto("", "", 0, value, [], [], [], [])));
assert.equal(deserialized.intakeYear, value);
}
serialization__ApplicationsSerialized() {
const value = "SomeValue";
const deserialized = JSON.parse(JSON.stringify(new intake_dto_class_1.IntakeDto("", "", 0, 0, value, [], [], [])));
chai_1.assert.equal(deserialized.applications, value);
const deserialized = JSON.parse(JSON.stringify(new IntakeDto("", "", 0, 0, value, [], [], [])));
assert.equal(deserialized.applications, value);
}
serialization__AcceptedSerialized() {
const value = "SomeValue";
const deserialized = JSON.parse(JSON.stringify(new intake_dto_class_1.IntakeDto("", "", 0, 0, [], value, [], [])));
chai_1.assert.equal(deserialized.accepted, value);
const deserialized = JSON.parse(JSON.stringify(new IntakeDto("", "", 0, 0, [], value, [], [])));
assert.equal(deserialized.accepted, value);
}
serialization__EnrolmentsSerialized() {
const value = "SomeValue";
const deserialized = JSON.parse(JSON.stringify(new intake_dto_class_1.IntakeDto("", "", 0, 0, [], [], value, [])));
chai_1.assert.equal(deserialized.enrolments, value);
const deserialized = JSON.parse(JSON.stringify(new IntakeDto("", "", 0, 0, [], [], value, [])));
assert.equal(deserialized.enrolments, value);
}
serialization__LeadsSerialized() {
const value = "SomeValue";
const deserialized = JSON.parse(JSON.stringify(new intake_dto_class_1.IntakeDto("", "", 0, 0, [], [], [], value)));
chai_1.assert.equal(deserialized.leads, value);
const deserialized = JSON.parse(JSON.stringify(new IntakeDto("", "", 0, 0, [], [], [], value)));
assert.equal(deserialized.leads, value);
}
};
__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -73,3 +71,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -80,3 +78,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -87,3 +85,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -94,3 +92,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -101,3 +99,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -108,3 +106,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -115,3 +113,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -122,3 +120,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -129,3 +127,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -136,4 +134,4 @@ __metadata("design:paramtypes", []),

IntakeDtoTest = __decorate([
mocha_typescript_1.suite
suite
], IntakeDtoTest);
//# sourceMappingURL=intake-dto.test.js.map

@@ -1,2 +0,1 @@

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -11,22 +10,21 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
const chai_1 = require("chai");
const mocha_typescript_1 = require("mocha-typescript");
const intake_stage_type_1 = require("../../src/intakes/intake-stage-type");
import { assert } from 'chai';
import { suite, test } from 'mocha-typescript';
import { IntakeStageType } from '../../src/intakes/intake-stage-type';
let IntakeStageTypeTest = class IntakeStageTypeTest {
application_0() {
chai_1.assert.equal(intake_stage_type_1.IntakeStageType.APPLICATION, 0);
assert.equal(IntakeStageType.APPLICATION, 0);
}
accepted_1() {
chai_1.assert.equal(intake_stage_type_1.IntakeStageType.ACCEPTED, 1);
assert.equal(IntakeStageType.ACCEPTED, 1);
}
enrolment_2() {
chai_1.assert.equal(intake_stage_type_1.IntakeStageType.ENROLMENT, 2);
assert.equal(IntakeStageType.ENROLMENT, 2);
}
lead_3() {
chai_1.assert.equal(intake_stage_type_1.IntakeStageType.LEAD, 3);
assert.equal(IntakeStageType.LEAD, 3);
}
};
__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -37,3 +35,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -44,3 +42,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -51,3 +49,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -58,4 +56,4 @@ __metadata("design:paramtypes", []),

IntakeStageTypeTest = __decorate([
mocha_typescript_1.suite
suite
], IntakeStageTypeTest);
//# sourceMappingURL=intake-stage-type.test.js.map

@@ -1,2 +0,1 @@

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -11,23 +10,22 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
const chai_1 = require("chai");
const mocha_typescript_1 = require("mocha-typescript");
const match_dto_class_1 = require("../../src/intakes/match-dto.class");
import { assert } from "chai";
import { suite, test } from "@testdeck/mocha";
import { MatchDto } from "../../src/intakes/match-dto.class";
let MatchDtoTest = class MatchDtoTest {
constructor__TypeGuardSet() {
const testInstance = new match_dto_class_1.MatchDto("");
chai_1.assert.isTrue(testInstance.__i_match__);
const testInstance = new MatchDto("");
assert.isTrue(testInstance.__i_match__);
}
serialization__TypeGuardSerialized() {
const deserialization = JSON.parse(JSON.stringify(new match_dto_class_1.MatchDto("")));
chai_1.assert.isTrue(deserialization.__i_match__);
const deserialization = JSON.parse(JSON.stringify(new MatchDto("")));
assert.isTrue(deserialization.__i_match__);
}
serialization__StudentIdSerialized() {
const value = "SomeValue";
const deserialization = JSON.parse(JSON.stringify(new match_dto_class_1.MatchDto(value)));
chai_1.assert.equal(deserialization.studentId, value);
const deserialization = JSON.parse(JSON.stringify(new MatchDto(value)));
assert.equal(deserialization.studentId, value);
}
};
__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -38,3 +36,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -45,3 +43,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -52,4 +50,4 @@ __metadata("design:paramtypes", []),

MatchDtoTest = __decorate([
mocha_typescript_1.suite
suite
], MatchDtoTest);
//# sourceMappingURL=match-dto.test.js.map

@@ -1,2 +0,1 @@

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -20,8 +19,7 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
const chai_1 = require("chai");
const mocha_typescript_1 = require("mocha-typescript");
const typemoq_1 = require("typemoq");
const __1 = require("../");
const organisations_dto_1 = require("../src/entities/organisation/organisations-dto");
import { assert } from "chai";
import { suite, test } from "@testdeck/mocha";
import { It, Mock, Times, } from "typemoq";
import { LurchClient, RetrieveInputBatchesResult } from "../";
import { OrganisationsDto } from "../src/entities/organisation/organisations-dto";
let LurchClientTest = class LurchClientTest {

@@ -41,10 +39,10 @@ get superAgentRequestFactory() {

before() {
this.mockedSuperAgentRequestFactory = typemoq_1.Mock.ofType();
this.mockedRequest = typemoq_1.Mock.ofType();
this.mockedRequestSender = typemoq_1.Mock.ofType();
this.mockedSuperAgentRequestFactory = Mock.ofType();
this.mockedRequest = Mock.ofType();
this.mockedRequestSender = Mock.ofType();
const { mockedTestInstance } = this.createTestInstance();
this.mockedTestInstance = mockedTestInstance;
this.mockedTestInstance.setup(_ => _["createGetRequest"](typemoq_1.It.isAny()))
this.mockedTestInstance.setup(_ => _["createGetRequest"](It.isAny()))
.returns(() => this.request);
this.mockedTestInstance.setup(_ => _["createPostRequest"](typemoq_1.It.isAny()))
this.mockedTestInstance.setup(_ => _["createPostRequest"](It.isAny()))
.returns(() => this.request);

@@ -58,9 +56,9 @@ }

const result = this.testInstance["buildUrl"](relativePath);
chai_1.assert.equal(result, expectedResult);
assert.equal(result, expectedResult);
}
retrieveAllInputBatches__GetRequestCreatedForCorrectPath() {
return __awaiter(this, void 0, void 0, function* () {
this.mockedRequestSender.setup(_ => _.sendAndExtractBody(typemoq_1.It.isAny())).returns(() => ({}));
this.mockedRequestSender.setup(_ => _.sendAndExtractBody(It.isAny())).returns(() => ({}));
yield this.testInstance.retrieveAllInputBatches();
this.mockedTestInstance.verify(_ => _["createGetRequest"]("/input-batches"), typemoq_1.Times.once());
this.mockedTestInstance.verify(_ => _["createGetRequest"]("/input-batches"), Times.once());
});

@@ -70,5 +68,5 @@ }

return __awaiter(this, void 0, void 0, function* () {
this.mockedRequestSender.setup(_ => _.sendAndExtractBody(typemoq_1.It.isAny())).returns(() => ({}));
this.mockedRequestSender.setup(_ => _.sendAndExtractBody(It.isAny())).returns(() => ({}));
yield this.testInstance.retrieveAllInputBatches();
this.mockedRequestSender.verify(_ => _.sendAndExtractBody(this.request), typemoq_1.Times.once());
this.mockedRequestSender.verify(_ => _.sendAndExtractBody(this.request), Times.once());
});

@@ -79,6 +77,6 @@ }

const inputBatches = "SomeInputBatches";
const retrieveInputBatchesResult = new __1.RetrieveInputBatchesResult(inputBatches);
this.mockedRequestSender.setup(_ => _.sendAndExtractBody(typemoq_1.It.isAny())).returns(() => __awaiter(this, void 0, void 0, function* () { return retrieveInputBatchesResult; }));
const retrieveInputBatchesResult = new RetrieveInputBatchesResult(inputBatches);
this.mockedRequestSender.setup(_ => _.sendAndExtractBody(It.isAny())).returns(() => __awaiter(this, void 0, void 0, function* () { return retrieveInputBatchesResult; }));
const result = yield this.testInstance.retrieveAllInputBatches();
chai_1.assert.equal(result, inputBatches);
assert.equal(result, inputBatches);
});

@@ -88,4 +86,4 @@ }

return __awaiter(this, void 0, void 0, function* () {
yield this.testInstance.approveInputBatch(typemoq_1.It.isAny());
this.mockedTestInstance.verify(_ => _["createPostRequest"]("/input-batch/approve"), typemoq_1.Times.once());
yield this.testInstance.approveInputBatch(It.isAny());
this.mockedTestInstance.verify(_ => _["createPostRequest"]("/input-batch/approve"), Times.once());
});

@@ -97,3 +95,3 @@ }

yield this.testInstance.approveInputBatch(inputBatchIdentity);
this.mockedRequest.verify(_ => _.send(typemoq_1.It.isObjectWith({ inputBatchIdentity: inputBatchIdentity })), typemoq_1.Times.once());
this.mockedRequest.verify(_ => _.send(It.isObjectWith({ inputBatchIdentity: inputBatchIdentity })), Times.once());
});

@@ -104,8 +102,11 @@ }

let awaited = false;
this.mockedRequestSender.setup(_ => _.send(typemoq_1.It.isAny()))
.returns(() => new Promise(_ => setImmediate(() => { awaited = true; _(); })));
this.mockedRequestSender.setup(_ => _.send(It.isAny()))
.returns(() => __awaiter(this, void 0, void 0, function* () {
awaited = true;
return {};
}));
;
yield this.testInstance.approveInputBatch(typemoq_1.It.isAny());
this.mockedRequestSender.verify(_ => _.send(this.request), typemoq_1.Times.once());
chai_1.assert.isTrue(awaited);
yield this.testInstance.approveInputBatch(It.isAny());
this.mockedRequestSender.verify(_ => _.send(this.request), Times.once());
assert.isTrue(awaited);
});

@@ -115,4 +116,4 @@ }

return __awaiter(this, void 0, void 0, function* () {
yield this.testInstance.discardInputBatch(typemoq_1.It.isAny());
this.mockedTestInstance.verify(_ => _["createPostRequest"]("/input-batch/discard"), typemoq_1.Times.once());
yield this.testInstance.discardInputBatch(It.isAny());
this.mockedTestInstance.verify(_ => _["createPostRequest"]("/input-batch/discard"), Times.once());
});

@@ -124,3 +125,3 @@ }

yield this.testInstance.discardInputBatch(inputBatchIdentity);
this.mockedRequest.verify(_ => _.send(typemoq_1.It.isObjectWith({ inputBatchIdentity: inputBatchIdentity })), typemoq_1.Times.once());
this.mockedRequest.verify(_ => _.send(It.isObjectWith({ inputBatchIdentity: inputBatchIdentity })), Times.once());
});

@@ -131,8 +132,7 @@ }

let awaited = false;
this.mockedRequestSender.setup(_ => _.send(typemoq_1.It.isAny()))
.returns(() => new Promise(_ => setImmediate(() => { awaited = true; _(); })));
;
yield this.testInstance.discardInputBatch(typemoq_1.It.isAny());
this.mockedRequestSender.verify(_ => _.send(this.request), typemoq_1.Times.once());
chai_1.assert.isTrue(awaited);
this.mockedRequestSender.setup(_ => _.send(It.isAny()))
.returns(() => __awaiter(this, void 0, void 0, function* () { awaited = true; return {}; }));
yield this.testInstance.discardInputBatch(It.isAny());
this.mockedRequestSender.verify(_ => _.send(this.request), Times.once());
assert.isTrue(awaited);
});

@@ -144,5 +144,5 @@ }

const url = "SomeUrl";
mockedTestInstance.setup(_ => _["buildUrl"](typemoq_1.It.isAny())).returns(() => url);
mockedTestInstance.setup(_ => _["buildUrl"](It.isAny())).returns(() => url);
testInstance["createGetRequest"](relativePath);
mockedTestInstance.verify(_ => _["buildUrl"](relativePath), typemoq_1.Times.once());
mockedTestInstance.verify(_ => _["buildUrl"](relativePath), Times.once());
}

@@ -153,7 +153,7 @@ createGetRequest__GetRequestCreatedAndProvided() {

const request = "SomeRequest";
this.mockedSuperAgentRequestFactory.setup(_ => _.get(typemoq_1.It.isAny())).returns(() => request);
mockedTestInstance.setup(_ => _["buildUrl"](typemoq_1.It.isAny())).returns(() => url);
this.mockedSuperAgentRequestFactory.setup(_ => _.get(It.isAny())).returns(() => request);
mockedTestInstance.setup(_ => _["buildUrl"](It.isAny())).returns(() => url);
const result = testInstance["createGetRequest"]("");
chai_1.assert.equal(result, request);
this.mockedSuperAgentRequestFactory.verify(_ => _.get(url), typemoq_1.Times.once());
assert.equal(result, request);
this.mockedSuperAgentRequestFactory.verify(_ => _.get(url), Times.once());
}

@@ -164,5 +164,5 @@ createPostRequest__UrlCorrectlyBuilt() {

const url = "SomeUrl";
mockedTestInstance.setup(_ => _["buildUrl"](typemoq_1.It.isAny())).returns(() => url);
mockedTestInstance.setup(_ => _["buildUrl"](It.isAny())).returns(() => url);
testInstance["createPostRequest"](relativePath);
mockedTestInstance.verify(_ => _["buildUrl"](relativePath), typemoq_1.Times.once());
mockedTestInstance.verify(_ => _["buildUrl"](relativePath), Times.once());
}

@@ -173,13 +173,13 @@ createPostRequest__PostRequestCreatedAndProvided() {

const request = "SomeRequest";
this.mockedSuperAgentRequestFactory.setup(_ => _.post(typemoq_1.It.isAny())).returns(() => request);
mockedTestInstance.setup(_ => _["buildUrl"](typemoq_1.It.isAny())).returns(() => url);
this.mockedSuperAgentRequestFactory.setup(_ => _.post(It.isAny())).returns(() => request);
mockedTestInstance.setup(_ => _["buildUrl"](It.isAny())).returns(() => url);
const result = testInstance["createPostRequest"]("");
chai_1.assert.equal(result, request);
this.mockedSuperAgentRequestFactory.verify(_ => _.post(url), typemoq_1.Times.once());
assert.equal(result, request);
this.mockedSuperAgentRequestFactory.verify(_ => _.post(url), Times.once());
}
retrieveOrganisationsFromUser__GetRequestCreatedForCorrectPath() {
return __awaiter(this, void 0, void 0, function* () {
this.mockedRequestSender.setup(_ => _.sendAndExtractBody(typemoq_1.It.isAny())).returns(() => ({}));
this.mockedRequestSender.setup(_ => _.sendAndExtractBody(It.isAny())).returns(() => ({}));
yield this.testInstance.retrieveOrganisationsFromUser();
this.mockedTestInstance.verify(_ => _["createGetRequest"]("/organisations-for-user"), typemoq_1.Times.once());
this.mockedTestInstance.verify(_ => _["createGetRequest"]("/organisations-for-user"), Times.once());
});

@@ -189,5 +189,5 @@ }

return __awaiter(this, void 0, void 0, function* () {
this.mockedRequestSender.setup(_ => _.sendAndExtractBody(typemoq_1.It.isAny())).returns(() => ({}));
this.mockedRequestSender.setup(_ => _.sendAndExtractBody(It.isAny())).returns(() => ({}));
yield this.testInstance.retrieveOrganisationsFromUser();
this.mockedRequestSender.verify(_ => _.sendAndExtractBody(this.request), typemoq_1.Times.once());
this.mockedRequestSender.verify(_ => _.sendAndExtractBody(this.request), Times.once());
});

@@ -199,10 +199,10 @@ }

const organisations = "SomeOrganisations";
const organisationDto = new organisations_dto_1.OrganisationsDto(userId, organisations);
this.mockedRequestSender.setup(_ => _.sendAndExtractBody(typemoq_1.It.isAny())).returns(() => __awaiter(this, void 0, void 0, function* () { return organisationDto; }));
const organisationDto = new OrganisationsDto(userId, organisations);
this.mockedRequestSender.setup(_ => _.sendAndExtractBody(It.isAny())).returns(() => __awaiter(this, void 0, void 0, function* () { return organisationDto; }));
const result = yield this.testInstance.retrieveOrganisationsFromUser();
chai_1.assert.deepEqual(result, organisationDto);
assert.deepEqual(result, organisationDto);
});
}
createTestInstance() {
const mockedTestInstance = typemoq_1.Mock.ofType(__1.LurchClient);
const mockedTestInstance = Mock.ofType(LurchClient);
const testInstance = mockedTestInstance.object;

@@ -216,3 +216,3 @@ mockedTestInstance.callBase = true;

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -223,3 +223,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -230,3 +230,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -237,3 +237,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -244,3 +244,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -251,3 +251,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -258,3 +258,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -265,3 +265,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -272,3 +272,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -279,3 +279,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -286,3 +286,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -293,3 +293,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -300,3 +300,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -307,3 +307,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -314,3 +314,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -321,3 +321,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -328,3 +328,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -335,4 +335,4 @@ __metadata("design:paramtypes", []),

LurchClientTest = __decorate([
mocha_typescript_1.suite
suite
], LurchClientTest);
//# sourceMappingURL=lurch-client.test.js.map

@@ -1,2 +0,1 @@

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -11,18 +10,17 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
const chai_1 = require("chai");
const mocha_typescript_1 = require("mocha-typescript");
const __1 = require("../..");
import { assert } from "chai";
import { suite, test } from "@testdeck/mocha";
import { DiscardInputBatchresult } from "../..";
let DiscardInputBatchResultTest = class DiscardInputBatchResultTest {
constructor__TypeGuardInitialized() {
const testInstance = new __1.DiscardInputBatchresult();
chai_1.assert.isTrue(testInstance.__discard_input_batch_result__);
const testInstance = new DiscardInputBatchresult();
assert.isTrue(testInstance.__discard_input_batch_result__);
}
serialization__TypeGuardSerialized() {
const deserialization = JSON.parse(JSON.stringify(new __1.DiscardInputBatchresult()));
chai_1.assert.isTrue(deserialization.__discard_input_batch_result__);
const deserialization = JSON.parse(JSON.stringify(new DiscardInputBatchresult()));
assert.isTrue(deserialization.__discard_input_batch_result__);
}
};
__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -33,3 +31,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -40,4 +38,4 @@ __metadata("design:paramtypes", []),

DiscardInputBatchResultTest = __decorate([
mocha_typescript_1.suite
suite
], DiscardInputBatchResultTest);
//# sourceMappingURL=discard-input-batch-result.test.js.map

@@ -1,2 +0,1 @@

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -11,23 +10,22 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
const chai_1 = require("chai");
const mocha_typescript_1 = require("mocha-typescript");
const retrieve_input_batch_result_class_1 = require("../../src/results/retrieve-input-batch-result.class");
import { assert } from "chai";
import { suite, test } from "@testdeck/mocha";
import { RetrieveInputBatchResult } from "../../src/results/retrieve-input-batch-result.class";
let RetrieveInputBatchResultTest = class RetrieveInputBatchResultTest {
constructor__TypeGuardInitialized() {
const testInstance = new retrieve_input_batch_result_class_1.RetrieveInputBatchResult(null);
chai_1.assert.isTrue(testInstance.__retrieve_input_batch_result__);
const testInstance = new RetrieveInputBatchResult(null);
assert.isTrue(testInstance.__retrieve_input_batch_result__);
}
serialization__TypeGuardSerialized() {
const deserialization = JSON.parse(JSON.stringify(new retrieve_input_batch_result_class_1.RetrieveInputBatchResult(null)));
chai_1.assert.isTrue(deserialization.__retrieve_input_batch_result__);
const deserialization = JSON.parse(JSON.stringify(new RetrieveInputBatchResult(null)));
assert.isTrue(deserialization.__retrieve_input_batch_result__);
}
serialization__InputBatchSerialized() {
const value = "SomeValue";
const deserialization = JSON.parse(JSON.stringify(new retrieve_input_batch_result_class_1.RetrieveInputBatchResult(value)));
chai_1.assert.equal(deserialization.inputBatch, value);
const deserialization = JSON.parse(JSON.stringify(new RetrieveInputBatchResult(value)));
assert.equal(deserialization.inputBatch, value);
}
};
__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -38,3 +36,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -45,3 +43,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -52,4 +50,4 @@ __metadata("design:paramtypes", []),

RetrieveInputBatchResultTest = __decorate([
mocha_typescript_1.suite
suite
], RetrieveInputBatchResultTest);
//# sourceMappingURL=retrieve-input-batch-result.test.js.map

@@ -1,2 +0,1 @@

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -11,23 +10,22 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
const chai_1 = require("chai");
const mocha_typescript_1 = require("mocha-typescript");
const retrieve_input_batches_result_class_1 = require("../../src/results/retrieve-input-batches-result.class");
import { assert } from "chai";
import { suite, test } from "@testdeck/mocha";
import { RetrieveInputBatchesResult } from "../../src/results/retrieve-input-batches-result.class";
let RetrieveInputBatchesResultTest = class RetrieveInputBatchesResultTest {
constructor__TypeGuardInitialized() {
const testInstance = new retrieve_input_batches_result_class_1.RetrieveInputBatchesResult([]);
chai_1.assert.isTrue(testInstance.__retrieve_input_batches_result__);
const testInstance = new RetrieveInputBatchesResult([]);
assert.isTrue(testInstance.__retrieve_input_batches_result__);
}
serialization__TypeGuardSerialized() {
const deserialization = JSON.parse(JSON.stringify(new retrieve_input_batches_result_class_1.RetrieveInputBatchesResult([])));
chai_1.assert.isTrue(deserialization.__retrieve_input_batches_result__);
const deserialization = JSON.parse(JSON.stringify(new RetrieveInputBatchesResult([])));
assert.isTrue(deserialization.__retrieve_input_batches_result__);
}
serialization__InputBatchesSerialized() {
const value = "SomeValue";
const deserialization = JSON.parse(JSON.stringify(new retrieve_input_batches_result_class_1.RetrieveInputBatchesResult(value)));
chai_1.assert.equal(deserialization.inputBatches, value);
const deserialization = JSON.parse(JSON.stringify(new RetrieveInputBatchesResult(value)));
assert.equal(deserialization.inputBatches, value);
}
};
__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -38,3 +36,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -45,3 +43,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -52,4 +50,4 @@ __metadata("design:paramtypes", []),

RetrieveInputBatchesResultTest = __decorate([
mocha_typescript_1.suite
suite
], RetrieveInputBatchesResultTest);
//# sourceMappingURL=retrieve-input-batches-result.test.js.map

@@ -1,2 +0,1 @@

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -11,23 +10,22 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
const chai_1 = require("chai");
const mocha_typescript_1 = require("mocha-typescript");
const retrieve_intake_result_class_1 = require("../../src/results/retrieve-intake-result.class");
import { assert } from "chai";
import { suite, test } from "@testdeck/mocha";
import { RetrieveIntakeResult } from "../../src/results/retrieve-intake-result.class";
let RetrieveIntakeResultTest = class RetrieveIntakeResultTest {
constructor__TypeGuardInitialized() {
const testInstance = new retrieve_intake_result_class_1.RetrieveIntakeResult(null);
chai_1.assert.isTrue(testInstance.__retrieve_intake_result__);
const testInstance = new RetrieveIntakeResult(null);
assert.isTrue(testInstance.__retrieve_intake_result__);
}
serialization__TypeGuardSerialized() {
const deserialization = JSON.parse(JSON.stringify(new retrieve_intake_result_class_1.RetrieveIntakeResult(null)));
chai_1.assert.isTrue(deserialization.__retrieve_intake_result__);
const deserialization = JSON.parse(JSON.stringify(new RetrieveIntakeResult(null)));
assert.isTrue(deserialization.__retrieve_intake_result__);
}
serialization__IntakeSerialized() {
const value = "SomeValue";
const deserialization = JSON.parse(JSON.stringify(new retrieve_intake_result_class_1.RetrieveIntakeResult(value)));
chai_1.assert.equal(deserialization.intake, value);
const deserialization = JSON.parse(JSON.stringify(new RetrieveIntakeResult(value)));
assert.equal(deserialization.intake, value);
}
};
__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -38,3 +36,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -45,3 +43,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -52,4 +50,4 @@ __metadata("design:paramtypes", []),

RetrieveIntakeResultTest = __decorate([
mocha_typescript_1.suite
suite
], RetrieveIntakeResultTest);
//# sourceMappingURL=retrieve-intake-result.test.js.map

@@ -1,2 +0,1 @@

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -11,23 +10,22 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
const chai_1 = require("chai");
const mocha_typescript_1 = require("mocha-typescript");
const retrieve_intakes_result_class_1 = require("../../src/results/retrieve-intakes-result.class");
import { assert } from "chai";
import { suite, test } from "@testdeck/mocha";
import { RetrieveIntakesResult } from "../../src/results/retrieve-intakes-result.class";
let RetrieveIntakesResultTest = class RetrieveIntakesResultTest {
constructor__TypeGuardInitialized() {
const testInstance = new retrieve_intakes_result_class_1.RetrieveIntakesResult([]);
chai_1.assert.isTrue(testInstance.__retrieve_intakes_result__);
const testInstance = new RetrieveIntakesResult([]);
assert.isTrue(testInstance.__retrieve_intakes_result__);
}
serialization__TypeGuardSerialized() {
const deserialization = JSON.parse(JSON.stringify(new retrieve_intakes_result_class_1.RetrieveIntakesResult([])));
chai_1.assert.isTrue(deserialization.__retrieve_intakes_result__);
const deserialization = JSON.parse(JSON.stringify(new RetrieveIntakesResult([])));
assert.isTrue(deserialization.__retrieve_intakes_result__);
}
serialization__IntakesSerialized() {
const value = "SomeValue";
const deserialization = JSON.parse(JSON.stringify(new retrieve_intakes_result_class_1.RetrieveIntakesResult(value)));
chai_1.assert.equal(deserialization.intakes, value);
const deserialization = JSON.parse(JSON.stringify(new RetrieveIntakesResult(value)));
assert.equal(deserialization.intakes, value);
}
};
__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -38,3 +36,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -45,3 +43,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -52,4 +50,4 @@ __metadata("design:paramtypes", []),

RetrieveIntakesResultTest = __decorate([
mocha_typescript_1.suite
suite
], RetrieveIntakesResultTest);
//# sourceMappingURL=retrieve-intakes-result.test.js.map

@@ -1,2 +0,1 @@

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -11,14 +10,13 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
const chai_1 = require("chai");
const mocha_typescript_1 = require("mocha-typescript");
const retrieve_organisations_result_class_1 = require("../../src/results/retrieve-organisations-result.class");
import { assert } from "chai";
import { suite, test } from "@testdeck/mocha";
import { RetrieveOrganisationsResult } from "../../src/results/retrieve-organisations-result.class";
let RetrieveOrganisationsResultTest = class RetrieveOrganisationsResultTest {
constructor__TypeGuardInitialized() {
const testInstance = new retrieve_organisations_result_class_1.RetrieveOrganisationsResult([], 0);
chai_1.assert.isTrue(testInstance.__retrieve_organisation_result__);
const testInstance = new RetrieveOrganisationsResult([], 0);
assert.isTrue(testInstance.__retrieve_organisation_result__);
}
serialization__TypeGuardSerialized() {
const deserialization = JSON.parse(JSON.stringify(new retrieve_organisations_result_class_1.RetrieveOrganisationsResult([], 0)));
chai_1.assert.isTrue(deserialization.__retrieve_organisation_result__);
const deserialization = JSON.parse(JSON.stringify(new RetrieveOrganisationsResult([], 0)));
assert.isTrue(deserialization.__retrieve_organisation_result__);
}

@@ -28,9 +26,9 @@ serialization__OrganisationsSerialized() {

const userId = 1;
const deserialization = JSON.parse(JSON.stringify(new retrieve_organisations_result_class_1.RetrieveOrganisationsResult(value, userId)));
chai_1.assert.equal(deserialization.organisations, value);
chai_1.assert.equal(deserialization.userId, userId);
const deserialization = JSON.parse(JSON.stringify(new RetrieveOrganisationsResult(value, userId)));
assert.equal(deserialization.organisations, value);
assert.equal(deserialization.userId, userId);
}
};
__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -41,3 +39,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -48,3 +46,3 @@ __metadata("design:paramtypes", []),

__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -55,4 +53,4 @@ __metadata("design:paramtypes", []),

RetrieveOrganisationsResultTest = __decorate([
mocha_typescript_1.suite
suite
], RetrieveOrganisationsResultTest);
//# sourceMappingURL=retrieve-organisation-result.test.js.map

@@ -1,2 +0,1 @@

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -11,15 +10,14 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

};
Object.defineProperty(exports, "__esModule", { value: true });
const chai_1 = require("chai");
const mocha_typescript_1 = require("mocha-typescript");
const submit_matches_result_class_1 = require("../../src/results/submit-matches-result.class");
import { assert } from "chai";
import { suite, test } from "@testdeck/mocha";
import { SubmitMatchesResult } from "../../src/results/submit-matches-result.class";
let SubmitMatchesResultTest = class SubmitMatchesResultTest {
serialization__ConfirmedMatchesCountSerialized() {
const value = "SomeValue";
const deserialization = JSON.parse(JSON.stringify(new submit_matches_result_class_1.SubmitMatchesResult(value)));
chai_1.assert.equal(deserialization.confirmedMatchesCount, value);
const deserialization = JSON.parse(JSON.stringify(new SubmitMatchesResult(value)));
assert.equal(deserialization.confirmedMatchesCount, value);
}
};
__decorate([
mocha_typescript_1.test,
test,
__metadata("design:type", Function),

@@ -30,4 +28,4 @@ __metadata("design:paramtypes", []),

SubmitMatchesResultTest = __decorate([
mocha_typescript_1.suite
suite
], SubmitMatchesResultTest);
//# sourceMappingURL=submit-matches-result.test.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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