@platform-modules/foreign-ministry 1.2.17 → 1.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11,6 +11,10 @@ export declare enum status {
|
|
|
11
11
|
CANCELLED = "Cancelled",
|
|
12
12
|
RETURNED = "Returned"
|
|
13
13
|
}
|
|
14
|
+
export declare enum location {
|
|
15
|
+
INSIDE = "Inside",
|
|
16
|
+
OUTSIDE = "Outside"
|
|
17
|
+
}
|
|
14
18
|
export declare class LeaveRequests extends BaseModel {
|
|
15
19
|
user_id: string;
|
|
16
20
|
leave_for: Leave_For;
|
|
@@ -48,5 +52,9 @@ export declare class LeaveRequests extends BaseModel {
|
|
|
48
52
|
actual_leave_end_date: Date | null;
|
|
49
53
|
actual_leave_duration: string | null;
|
|
50
54
|
no_of_days_delayed: number | null;
|
|
51
|
-
|
|
55
|
+
type_of_representation: string | null;
|
|
56
|
+
location: location;
|
|
57
|
+
exam_start_date: Date;
|
|
58
|
+
exam_end_date: Date;
|
|
59
|
+
constructor(user_id: string, location: location, exam_start_date: Date, exam_end_date: Date, leave_for: Leave_For, leave_type: number, study_leave_degree: number, department: string, status: status, leave_start_date: Date, leave_end_date: Date, leave_duration: number, remaining_leave_balance: number, contact_number_during_leave: string, address_during_leave: string, notes: string, delegated_to: string, number_of_escort_instances_per_year: number, accompanying_the_patient: boolean, treatment_place: string, emergency_leaves_available: number, unpaid_leave_type: string, country_or_state_being_visited: string, leave_balance_summary: string, representation: string, activity_title: string, relationship: string, mounring_leave_relation: number, service_id: number, sub_service_id: number, workflow_execution_id: string, type_of_representation: string);
|
|
52
60
|
}
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.LeaveRequests = exports.status = exports.Leave_For = void 0;
|
|
12
|
+
exports.LeaveRequests = exports.location = exports.status = exports.Leave_For = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
//This model is used to store the Leave Request
|
|
@@ -27,8 +27,13 @@ var status;
|
|
|
27
27
|
status["CANCELLED"] = "Cancelled";
|
|
28
28
|
status["RETURNED"] = "Returned";
|
|
29
29
|
})(status || (exports.status = status = {}));
|
|
30
|
+
var location;
|
|
31
|
+
(function (location) {
|
|
32
|
+
location["INSIDE"] = "Inside";
|
|
33
|
+
location["OUTSIDE"] = "Outside";
|
|
34
|
+
})(location || (exports.location = location = {}));
|
|
30
35
|
let LeaveRequests = class LeaveRequests extends BaseModel_1.BaseModel {
|
|
31
|
-
constructor(user_id, leave_for, leave_type, study_leave_degree, department, status, leave_start_date, leave_end_date, leave_duration, remaining_leave_balance, contact_number_during_leave, address_during_leave, notes, delegated_to, number_of_escort_instances_per_year, accompanying_the_patient, treatment_place, emergency_leaves_available, unpaid_leave_type, country_or_state_being_visited, leave_balance_summary, representation, activity_title, relationship, mounring_leave_relation, service_id, sub_service_id, workflow_execution_id) {
|
|
36
|
+
constructor(user_id, location, exam_start_date, exam_end_date, leave_for, leave_type, study_leave_degree, department, status, leave_start_date, leave_end_date, leave_duration, remaining_leave_balance, contact_number_during_leave, address_during_leave, notes, delegated_to, number_of_escort_instances_per_year, accompanying_the_patient, treatment_place, emergency_leaves_available, unpaid_leave_type, country_or_state_being_visited, leave_balance_summary, representation, activity_title, relationship, mounring_leave_relation, service_id, sub_service_id, workflow_execution_id, type_of_representation) {
|
|
32
37
|
super();
|
|
33
38
|
this.user_id = user_id;
|
|
34
39
|
this.leave_for = leave_for;
|
|
@@ -58,6 +63,10 @@ let LeaveRequests = class LeaveRequests extends BaseModel_1.BaseModel {
|
|
|
58
63
|
this.service_id = service_id;
|
|
59
64
|
this.sub_service_id = sub_service_id;
|
|
60
65
|
this.workflow_execution_id = workflow_execution_id;
|
|
66
|
+
this.type_of_representation = type_of_representation;
|
|
67
|
+
this.location = location;
|
|
68
|
+
this.exam_start_date = exam_start_date;
|
|
69
|
+
this.exam_end_date = exam_end_date;
|
|
61
70
|
}
|
|
62
71
|
};
|
|
63
72
|
exports.LeaveRequests = LeaveRequests;
|
|
@@ -205,7 +214,23 @@ __decorate([
|
|
|
205
214
|
(0, typeorm_1.Column)({ type: 'int', nullable: true, default: null }),
|
|
206
215
|
__metadata("design:type", Object)
|
|
207
216
|
], LeaveRequests.prototype, "no_of_days_delayed", void 0);
|
|
217
|
+
__decorate([
|
|
218
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true, default: null }),
|
|
219
|
+
__metadata("design:type", Object)
|
|
220
|
+
], LeaveRequests.prototype, "type_of_representation", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
(0, typeorm_1.Column)({ type: "enum", enum: location, default: location.INSIDE, nullable: true }),
|
|
223
|
+
__metadata("design:type", String)
|
|
224
|
+
], LeaveRequests.prototype, "location", void 0);
|
|
225
|
+
__decorate([
|
|
226
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
227
|
+
__metadata("design:type", Date)
|
|
228
|
+
], LeaveRequests.prototype, "exam_start_date", void 0);
|
|
229
|
+
__decorate([
|
|
230
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
231
|
+
__metadata("design:type", Date)
|
|
232
|
+
], LeaveRequests.prototype, "exam_end_date", void 0);
|
|
208
233
|
exports.LeaveRequests = LeaveRequests = __decorate([
|
|
209
234
|
(0, typeorm_1.Entity)({ name: 'leave_requests' }),
|
|
210
|
-
__metadata("design:paramtypes", [String, String, Number, Number, String, String, Date, Date, Number, Number, String, String, String, String, Number, Boolean, String, Number, String, String, String, String, String, String, Number, Number, Number, String])
|
|
235
|
+
__metadata("design:paramtypes", [String, String, Date, Date, String, Number, Number, String, String, Date, Date, Number, Number, String, String, String, String, Number, Boolean, String, Number, String, String, String, String, String, String, Number, Number, Number, String, String])
|
|
211
236
|
], LeaveRequests);
|
package/package.json
CHANGED
|
@@ -14,6 +14,11 @@ export enum status {
|
|
|
14
14
|
CANCELLED = "Cancelled",
|
|
15
15
|
RETURNED = "Returned"
|
|
16
16
|
}
|
|
17
|
+
export enum location {
|
|
18
|
+
INSIDE = "Inside",
|
|
19
|
+
OUTSIDE = "Outside",
|
|
20
|
+
}
|
|
21
|
+
|
|
17
22
|
@Entity({ name: 'leave_requests' })
|
|
18
23
|
export class LeaveRequests extends BaseModel {
|
|
19
24
|
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
@@ -125,8 +130,19 @@ export class LeaveRequests extends BaseModel {
|
|
|
125
130
|
@Column({ type: 'int', nullable: true ,default: null})
|
|
126
131
|
no_of_days_delayed: number | null;
|
|
127
132
|
|
|
133
|
+
@Column({ type: 'varchar', length: 255, nullable: true, default: null})
|
|
134
|
+
type_of_representation: string | null;
|
|
135
|
+
|
|
136
|
+
@Column({ type: "enum", enum: location, default: location.INSIDE, nullable: true })
|
|
137
|
+
location: location;
|
|
138
|
+
|
|
139
|
+
@Column({ type: 'date', nullable: true })
|
|
140
|
+
exam_start_date: Date;
|
|
141
|
+
|
|
142
|
+
@Column({ type: 'date', nullable: true })
|
|
143
|
+
exam_end_date: Date;
|
|
128
144
|
|
|
129
|
-
constructor(user_id: string, leave_for: Leave_For, leave_type: number, study_leave_degree: number, department: string, status: status, leave_start_date: Date, leave_end_date: Date, leave_duration: number, remaining_leave_balance: number, contact_number_during_leave: string, address_during_leave: string, notes: string, delegated_to: string, number_of_escort_instances_per_year: number, accompanying_the_patient: boolean, treatment_place: string, emergency_leaves_available: number, unpaid_leave_type: string, country_or_state_being_visited: string, leave_balance_summary: string, representation: string, activity_title: string, relationship: string, mounring_leave_relation: number, service_id: number, sub_service_id: number, workflow_execution_id: string) {
|
|
145
|
+
constructor(user_id: string, location: location, exam_start_date: Date, exam_end_date: Date, leave_for: Leave_For, leave_type: number, study_leave_degree: number, department: string, status: status, leave_start_date: Date, leave_end_date: Date, leave_duration: number, remaining_leave_balance: number, contact_number_during_leave: string, address_during_leave: string, notes: string, delegated_to: string, number_of_escort_instances_per_year: number, accompanying_the_patient: boolean, treatment_place: string, emergency_leaves_available: number, unpaid_leave_type: string, country_or_state_being_visited: string, leave_balance_summary: string, representation: string, activity_title: string, relationship: string, mounring_leave_relation: number, service_id: number, sub_service_id: number, workflow_execution_id: string, type_of_representation: string) {
|
|
130
146
|
super();
|
|
131
147
|
this.user_id = user_id;
|
|
132
148
|
this.leave_for = leave_for;
|
|
@@ -156,5 +172,9 @@ export class LeaveRequests extends BaseModel {
|
|
|
156
172
|
this.service_id = service_id;
|
|
157
173
|
this.sub_service_id = sub_service_id;
|
|
158
174
|
this.workflow_execution_id = workflow_execution_id;
|
|
175
|
+
this.type_of_representation = type_of_representation;
|
|
176
|
+
this.location = location;
|
|
177
|
+
this.exam_start_date = exam_start_date;
|
|
178
|
+
this.exam_end_date = exam_end_date;
|
|
159
179
|
}
|
|
160
180
|
}
|