UNPKG

wfm-mobile-core

Version:

WFM Mobile Core

41 lines (40 loc) 1.41 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Schedule = void 0; var EStatus_1 = require("../enums/EStatus"); var ETypesOfEvents_1 = require("../enums/ETypesOfEvents"); var Schedule = /** @class */ (function () { function Schedule(type, status, daylong, startDateTime, endDateTime, commentText, links, employeePositions, position, aliasCode) { this.type = ETypesOfEvents_1.ETypesOfEvents.SHIFT; this.status = EStatus_1.EStatus.NOT_APPROVED; this.daylong = false; this.aliasCode = ''; this.dateTimeInterval = { startDateTime: '', endDateTime: '', }; this._links = { employee: {}, employeePositions: {}, position: {}, self: {}, }; this.type = type; this.status = status; this.daylong = daylong; this.aliasCode = aliasCode; this.dateTimeInterval = { startDateTime: startDateTime, endDateTime: endDateTime, }; this.commentText = commentText; this._links = { employee: employeePositions._embedded.employee._links.self, employeePositions: employeePositions._links.self, position: { href: position }, self: links.scheduleRequests, }; } return Schedule; }()); exports.Schedule = Schedule;