@studyportals/sp-lurch-interface
Advanced tools
Comparing version 2.1.1 to 2.1.2
{ | ||
"name": "@studyportals/sp-lurch-interface", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Contains Data Transfer Objects required or provided by Lurch through its interface.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
import { IInputBatch } from "./interfaces/i-input-batch.interface"; | ||
export declare class InputBatchDto implements IInputBatch { | ||
readonly identity: string; | ||
readonly creationTime: string; | ||
readonly creationTimeIso: string; | ||
readonly status: number; | ||
@@ -13,3 +13,3 @@ readonly organisationIdentity: string; | ||
readonly __i_input_batch__: true; | ||
constructor(identity: string, creationTime: string, status: number, organisationIdentity: string, intakeMonth: number, intakeYear: number, targetIntakeStageType: number, inputSize: number, matchesSize: number); | ||
constructor(identity: string, creationTimeIso: string, status: number, organisationIdentity: string, intakeMonth: number, intakeYear: number, targetIntakeStageType: number, inputSize: number, matchesSize: number); | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
class InputBatchDto { | ||
constructor(identity, creationTime, status, organisationIdentity, intakeMonth, intakeYear, targetIntakeStageType, inputSize, matchesSize) { | ||
constructor(identity, creationTimeIso, status, organisationIdentity, intakeMonth, intakeYear, targetIntakeStageType, inputSize, matchesSize) { | ||
this.identity = identity; | ||
this.creationTime = creationTime; | ||
this.creationTimeIso = creationTimeIso; | ||
this.status = status; | ||
@@ -8,0 +8,0 @@ this.organisationIdentity = organisationIdentity; |
export interface IInputBatch { | ||
readonly __i_input_batch__: true; | ||
readonly identity: string; | ||
readonly creationTime: string; | ||
readonly creationTimeIso: string; | ||
readonly status: number; | ||
@@ -6,0 +6,0 @@ readonly organisationIdentity: string; |
@@ -32,3 +32,3 @@ "use strict"; | ||
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.creationTime, value); | ||
chai_1.assert.equal(deserialized.creationTimeIso, value); | ||
} | ||
@@ -35,0 +35,0 @@ serialization__StatusSerialized() { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
64179