@platform-modules/foreign-ministry 1.3.187 → 1.3.188
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.
- package/.env +6 -15
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/models/MissionTravelClassConfigModel.d.ts +10 -0
- package/dist/models/MissionTravelClassConfigModel.js +50 -0
- package/dist/models/MissionTravelPerdiemModel.d.ts +10 -0
- package/dist/models/MissionTravelPerdiemModel.js +54 -0
- package/dist/models/ProjectContactsModel.d.ts +10 -0
- package/dist/models/ProjectContactsModel.js +54 -0
- package/dist/models/ProjectFaqModel.d.ts +9 -0
- package/dist/models/ProjectFaqModel.js +49 -0
- package/dist/models/ProjectFaqReactionsModel.d.ts +8 -0
- package/dist/models/ProjectFaqReactionsModel.js +44 -0
- package/dist/models/ProjectInvoicesModel.d.ts +9 -0
- package/dist/models/ProjectInvoicesModel.js +49 -0
- package/dist/models/ProjectMilestonesModel.d.ts +15 -0
- package/dist/models/ProjectMilestonesModel.js +79 -0
- package/dist/models/ProjectModel.d.ts +9 -3
- package/dist/models/ProjectModel.js +39 -9
- package/dist/models/ProjectResourceUsersModel.d.ts +7 -0
- package/dist/models/{HelpContentMappedCategoriesModel.js → ProjectResourceUsersModel.js} +19 -14
- package/dist/models/ProjectResourcesModel.d.ts +9 -0
- package/dist/models/ProjectResourcesModel.js +49 -0
- package/dist/models/ProjectScopeModel.d.ts +19 -0
- package/dist/models/ProjectScopeModel.js +49 -0
- package/package.json +1 -1
- package/src/index.ts +8 -0
- package/src/models/DiplomaticAcademyRequestModel.ts +80 -80
- package/src/models/LanguageCourseRequestModel.ts +67 -67
- package/src/models/LeaveConfigModel.ts +71 -71
- package/src/models/MissionTravelApprovalModel.ts +101 -101
- package/src/models/MissionTravelAttachmentModel.ts +56 -56
- package/src/models/MissionTravelChatModel.ts +52 -52
- package/src/models/MissionTravelPersonModel.ts +105 -105
- package/src/models/MissionTravelWorkflowModel.ts +54 -54
- package/src/models/ProjectContactsModel.ts +40 -0
- package/src/models/ProjectFaqModel.ts +35 -0
- package/src/models/ProjectFaqReactionsModel.ts +30 -0
- package/src/models/ProjectInvoicesModel.ts +35 -0
- package/src/models/ProjectMilestonesModel.ts +65 -0
- package/src/models/ProjectModel.ts +41 -11
- package/src/models/ProjectResourceUsersModel.ts +21 -0
- package/src/models/ProjectResourcesModel.ts +35 -0
- package/src/models/ProjectScopeModel.ts +46 -0
- package/src/models/RegisterCandidateRequestModel.ts +183 -183
- package/src/models/SectionModel.ts +35 -35
- package/src/models/ServicesNotificationConfigsModel.ts +55 -55
- package/dist/models/HelpContentMappedCategoriesModel.d.ts +0 -6
- package/dist/models/HelpContentMappedTagsModel.d.ts +0 -6
- package/dist/models/HelpContentMappedTagsModel.js +0 -34
- package/dist/models/HelpContentTagsModel.d.ts +0 -5
- package/dist/models/HelpContentTagsModel.js +0 -29
- package/dist/models/questionTagsModel.d.ts +0 -6
- package/dist/models/questionTagsModel.js +0 -34
- /package/src/models/{LeaveConfigGradesModel.ts → LeaveConfigGradesModel.Ts} +0 -0
|
@@ -9,26 +9,31 @@ 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.
|
|
12
|
+
exports.ProjectResourceUsers = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let
|
|
16
|
-
constructor(
|
|
15
|
+
let ProjectResourceUsers = class ProjectResourceUsers extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(project_id, project_resource_id, user_id) {
|
|
17
17
|
super();
|
|
18
|
-
this.
|
|
19
|
-
|
|
18
|
+
this.project_id = project_id ?? 0;
|
|
19
|
+
this.project_resource_id = project_resource_id ?? 0;
|
|
20
|
+
this.user_id = user_id ?? 0;
|
|
20
21
|
}
|
|
21
22
|
};
|
|
22
|
-
exports.
|
|
23
|
+
exports.ProjectResourceUsers = ProjectResourceUsers;
|
|
23
24
|
__decorate([
|
|
24
|
-
(0, typeorm_1.Column)({
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
25
26
|
__metadata("design:type", Number)
|
|
26
|
-
],
|
|
27
|
+
], ProjectResourceUsers.prototype, "project_id", void 0);
|
|
27
28
|
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
29
30
|
__metadata("design:type", Number)
|
|
30
|
-
],
|
|
31
|
-
|
|
32
|
-
(0, typeorm_1.
|
|
33
|
-
__metadata("design:
|
|
34
|
-
],
|
|
31
|
+
], ProjectResourceUsers.prototype, "project_resource_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], ProjectResourceUsers.prototype, "user_id", void 0);
|
|
36
|
+
exports.ProjectResourceUsers = ProjectResourceUsers = __decorate([
|
|
37
|
+
(0, typeorm_1.Entity)({ name: 'project_resource_users' }),
|
|
38
|
+
__metadata("design:paramtypes", [Number, Number, Number])
|
|
39
|
+
], ProjectResourceUsers);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class ProjectResources extends BaseModel {
|
|
3
|
+
project_id: number;
|
|
4
|
+
project_manager_id: number;
|
|
5
|
+
estimate_startdate: Date | null;
|
|
6
|
+
estimate_enddate: Date | null;
|
|
7
|
+
is_collaboration_tool_key: boolean;
|
|
8
|
+
constructor(project_id?: number, project_manager_id?: number, estimate_startdate?: Date | null, estimate_enddate?: Date | null, is_collaboration_tool_key?: boolean);
|
|
9
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ProjectResources = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ProjectResources = class ProjectResources extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(project_id, project_manager_id, estimate_startdate, estimate_enddate, is_collaboration_tool_key) {
|
|
17
|
+
super();
|
|
18
|
+
this.project_id = project_id ?? 0;
|
|
19
|
+
this.project_manager_id = project_manager_id ?? 0;
|
|
20
|
+
this.estimate_startdate = estimate_startdate ?? null;
|
|
21
|
+
this.estimate_enddate = estimate_enddate ?? null;
|
|
22
|
+
this.is_collaboration_tool_key = is_collaboration_tool_key ?? false;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.ProjectResources = ProjectResources;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], ProjectResources.prototype, "project_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], ProjectResources.prototype, "project_manager_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], ProjectResources.prototype, "estimate_startdate", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], ProjectResources.prototype, "estimate_enddate", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
44
|
+
__metadata("design:type", Boolean)
|
|
45
|
+
], ProjectResources.prototype, "is_collaboration_tool_key", void 0);
|
|
46
|
+
exports.ProjectResources = ProjectResources = __decorate([
|
|
47
|
+
(0, typeorm_1.Entity)({ name: 'project_resources' }),
|
|
48
|
+
__metadata("design:paramtypes", [Number, Number, Object, Object, Boolean])
|
|
49
|
+
], ProjectResources);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export interface BudgetBreakdownItem {
|
|
3
|
+
phase?: string;
|
|
4
|
+
category?: string;
|
|
5
|
+
budget?: number;
|
|
6
|
+
fromdate?: string;
|
|
7
|
+
todate?: string;
|
|
8
|
+
estimated_cost?: number;
|
|
9
|
+
actual_cost?: number;
|
|
10
|
+
total_cost?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare class ProjectScopes extends BaseModel {
|
|
13
|
+
scope: string;
|
|
14
|
+
outscope: string;
|
|
15
|
+
project_id: number;
|
|
16
|
+
budget_breakdown: BudgetBreakdownItem[] | null;
|
|
17
|
+
subtotal: number;
|
|
18
|
+
constructor(project_id?: number, scope?: string, outscope?: string, budget_breakdown?: BudgetBreakdownItem[] | null, subtotal?: number);
|
|
19
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ProjectScopes = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ProjectScopes = class ProjectScopes extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(project_id, scope, outscope, budget_breakdown, subtotal) {
|
|
17
|
+
super();
|
|
18
|
+
this.project_id = project_id ?? 0;
|
|
19
|
+
this.scope = scope ?? '';
|
|
20
|
+
this.outscope = outscope ?? '';
|
|
21
|
+
this.budget_breakdown = budget_breakdown ?? null;
|
|
22
|
+
this.subtotal = subtotal ?? 0;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.ProjectScopes = ProjectScopes;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], ProjectScopes.prototype, "scope", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], ProjectScopes.prototype, "outscope", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], ProjectScopes.prototype, "project_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], ProjectScopes.prototype, "budget_breakdown", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 15, scale: 2, nullable: true }),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], ProjectScopes.prototype, "subtotal", void 0);
|
|
46
|
+
exports.ProjectScopes = ProjectScopes = __decorate([
|
|
47
|
+
(0, typeorm_1.Entity)({ name: 'project_scopes' }),
|
|
48
|
+
__metadata("design:paramtypes", [Number, String, String, Object, Number])
|
|
49
|
+
], ProjectScopes);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -302,6 +302,14 @@ export * from './models/GiftsModel';
|
|
|
302
302
|
export * from './models/GiftAttachmentModel';
|
|
303
303
|
export * from './models/ProjectModel';
|
|
304
304
|
export * from './models/TemplateModel';
|
|
305
|
+
export * from './models/ProjectScopeModel';
|
|
306
|
+
export * from './models/ProjectMilestonesModel';
|
|
307
|
+
export * from './models/ProjectInvoicesModel';
|
|
308
|
+
export * from './models/ProjectResourcesModel';
|
|
309
|
+
export * from './models/ProjectResourceUsersModel';
|
|
310
|
+
export * from './models/ProjectFaqModel';
|
|
311
|
+
export * from './models/ProjectFaqReactionsModel';
|
|
312
|
+
export * from './models/ProjectContactsModel';
|
|
305
313
|
|
|
306
314
|
// Employee Milestones Models
|
|
307
315
|
export * from './models/EmployeeMilestonesModel';
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum DiplomaticAcademyStatus {
|
|
5
|
-
SUBMITTED = "Submitted",
|
|
6
|
-
PENDING = "Pending",
|
|
7
|
-
ASSIGNED = "Assigned",
|
|
8
|
-
IN_PROGRESS = "In Progress",
|
|
9
|
-
APPROVED = "Approved",
|
|
10
|
-
REJECTED = "Rejected"
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@Entity({ name: 'diplomatic_academy_requests' })
|
|
14
|
-
export class DiplomaticAcademyRequests extends BaseModel {
|
|
15
|
-
|
|
16
|
-
// Common columns
|
|
17
|
-
@Column({ type: 'int', nullable: true })
|
|
18
|
-
req_user_department_id: number | null;
|
|
19
|
-
|
|
20
|
-
@Column({ type: 'int', nullable: true })
|
|
21
|
-
req_user_section_id: number | null;
|
|
22
|
-
|
|
23
|
-
@Column({ type: 'int', nullable: true })
|
|
24
|
-
service_id: number | null;
|
|
25
|
-
|
|
26
|
-
@Column({ type: 'int', nullable: true })
|
|
27
|
-
sub_service_id: number | null;
|
|
28
|
-
|
|
29
|
-
@Column({ type: 'int', nullable: false })
|
|
30
|
-
user_id: number;
|
|
31
|
-
|
|
32
|
-
// Diplomatic Academy specific columns
|
|
33
|
-
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
34
|
-
course_name: string;
|
|
35
|
-
|
|
36
|
-
@Column({ type: 'jsonb', nullable: true })
|
|
37
|
-
cost_details: {
|
|
38
|
-
material_price?: number;
|
|
39
|
-
transportation?: number;
|
|
40
|
-
accommodation?: number;
|
|
41
|
-
allowances?: number;
|
|
42
|
-
food?: number;
|
|
43
|
-
present?: number;
|
|
44
|
-
} | null;
|
|
45
|
-
|
|
46
|
-
@Column({ type: 'int', nullable: false })
|
|
47
|
-
estimated_participants: number;
|
|
48
|
-
|
|
49
|
-
@Column({ type: 'date', nullable: false })
|
|
50
|
-
timeline_date_from: Date;
|
|
51
|
-
|
|
52
|
-
@Column({ type: 'date', nullable: false })
|
|
53
|
-
timeline_date_to: Date;
|
|
54
|
-
|
|
55
|
-
@Column({ type: 'time', nullable: true })
|
|
56
|
-
timeline_time_from: string | null;
|
|
57
|
-
|
|
58
|
-
@Column({ type: 'time', nullable: true })
|
|
59
|
-
timeline_time_to: string | null;
|
|
60
|
-
|
|
61
|
-
@Column({ type: 'jsonb', nullable: false })
|
|
62
|
-
participants_details: Array<{
|
|
63
|
-
full_name: string;
|
|
64
|
-
passport: string;
|
|
65
|
-
age: number;
|
|
66
|
-
qualifications: string;
|
|
67
|
-
experience: string;
|
|
68
|
-
institution: string;
|
|
69
|
-
}>;
|
|
70
|
-
|
|
71
|
-
@Column({ type: 'enum', enum: DiplomaticAcademyStatus, default: DiplomaticAcademyStatus.PENDING, nullable: false })
|
|
72
|
-
status: DiplomaticAcademyStatus;
|
|
73
|
-
|
|
74
|
-
@Column({ type: 'int', nullable: true })
|
|
75
|
-
course_id: number | null;
|
|
76
|
-
|
|
77
|
-
@Column({ type: 'varchar', nullable: true })
|
|
78
|
-
workflow_execution_id: string | null;
|
|
79
|
-
|
|
80
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum DiplomaticAcademyStatus {
|
|
5
|
+
SUBMITTED = "Submitted",
|
|
6
|
+
PENDING = "Pending",
|
|
7
|
+
ASSIGNED = "Assigned",
|
|
8
|
+
IN_PROGRESS = "In Progress",
|
|
9
|
+
APPROVED = "Approved",
|
|
10
|
+
REJECTED = "Rejected"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@Entity({ name: 'diplomatic_academy_requests' })
|
|
14
|
+
export class DiplomaticAcademyRequests extends BaseModel {
|
|
15
|
+
|
|
16
|
+
// Common columns
|
|
17
|
+
@Column({ type: 'int', nullable: true })
|
|
18
|
+
req_user_department_id: number | null;
|
|
19
|
+
|
|
20
|
+
@Column({ type: 'int', nullable: true })
|
|
21
|
+
req_user_section_id: number | null;
|
|
22
|
+
|
|
23
|
+
@Column({ type: 'int', nullable: true })
|
|
24
|
+
service_id: number | null;
|
|
25
|
+
|
|
26
|
+
@Column({ type: 'int', nullable: true })
|
|
27
|
+
sub_service_id: number | null;
|
|
28
|
+
|
|
29
|
+
@Column({ type: 'int', nullable: false })
|
|
30
|
+
user_id: number;
|
|
31
|
+
|
|
32
|
+
// Diplomatic Academy specific columns
|
|
33
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
34
|
+
course_name: string;
|
|
35
|
+
|
|
36
|
+
@Column({ type: 'jsonb', nullable: true })
|
|
37
|
+
cost_details: {
|
|
38
|
+
material_price?: number;
|
|
39
|
+
transportation?: number;
|
|
40
|
+
accommodation?: number;
|
|
41
|
+
allowances?: number;
|
|
42
|
+
food?: number;
|
|
43
|
+
present?: number;
|
|
44
|
+
} | null;
|
|
45
|
+
|
|
46
|
+
@Column({ type: 'int', nullable: false })
|
|
47
|
+
estimated_participants: number;
|
|
48
|
+
|
|
49
|
+
@Column({ type: 'date', nullable: false })
|
|
50
|
+
timeline_date_from: Date;
|
|
51
|
+
|
|
52
|
+
@Column({ type: 'date', nullable: false })
|
|
53
|
+
timeline_date_to: Date;
|
|
54
|
+
|
|
55
|
+
@Column({ type: 'time', nullable: true })
|
|
56
|
+
timeline_time_from: string | null;
|
|
57
|
+
|
|
58
|
+
@Column({ type: 'time', nullable: true })
|
|
59
|
+
timeline_time_to: string | null;
|
|
60
|
+
|
|
61
|
+
@Column({ type: 'jsonb', nullable: false })
|
|
62
|
+
participants_details: Array<{
|
|
63
|
+
full_name: string;
|
|
64
|
+
passport: string;
|
|
65
|
+
age: number;
|
|
66
|
+
qualifications: string;
|
|
67
|
+
experience: string;
|
|
68
|
+
institution: string;
|
|
69
|
+
}>;
|
|
70
|
+
|
|
71
|
+
@Column({ type: 'enum', enum: DiplomaticAcademyStatus, default: DiplomaticAcademyStatus.PENDING, nullable: false })
|
|
72
|
+
status: DiplomaticAcademyStatus;
|
|
73
|
+
|
|
74
|
+
@Column({ type: 'int', nullable: true })
|
|
75
|
+
course_id: number | null;
|
|
76
|
+
|
|
77
|
+
@Column({ type: 'varchar', nullable: true })
|
|
78
|
+
workflow_execution_id: string | null;
|
|
79
|
+
|
|
80
|
+
}
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum LanguageCourseStatus {
|
|
5
|
-
SUBMITTED = "Submitted",
|
|
6
|
-
PENDING = "Pending",
|
|
7
|
-
ASSIGNED = "Assigned",
|
|
8
|
-
IN_PROGRESS = "In Progress",
|
|
9
|
-
APPROVED = "Approved",
|
|
10
|
-
REJECTED = "Rejected"
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@Entity({ name: 'language_course_requests' })
|
|
14
|
-
export class LanguageCourseRequests extends BaseModel {
|
|
15
|
-
|
|
16
|
-
// Common columns
|
|
17
|
-
@Column({ type: 'int', nullable: true })
|
|
18
|
-
req_user_department_id: number | null;
|
|
19
|
-
|
|
20
|
-
@Column({ type: 'int', nullable: true })
|
|
21
|
-
req_user_section_id: number | null;
|
|
22
|
-
|
|
23
|
-
@Column({ type: 'int', nullable: true })
|
|
24
|
-
service_id: number | null;
|
|
25
|
-
|
|
26
|
-
@Column({ type: 'int', nullable: true })
|
|
27
|
-
sub_service_id: number | null;
|
|
28
|
-
|
|
29
|
-
@Column({ type: 'int', nullable: false })
|
|
30
|
-
user_id: number;
|
|
31
|
-
|
|
32
|
-
// Language Course specific columns
|
|
33
|
-
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
34
|
-
course_name: string;
|
|
35
|
-
|
|
36
|
-
@Column({ type: 'varchar', length: 100, nullable: false })
|
|
37
|
-
course_level: string;
|
|
38
|
-
|
|
39
|
-
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
40
|
-
institution: string;
|
|
41
|
-
|
|
42
|
-
@Column({ type: 'text', nullable: false })
|
|
43
|
-
reason_of_course: string;
|
|
44
|
-
|
|
45
|
-
@Column({ type: 'int', nullable: false })
|
|
46
|
-
estimated_number_of_participants: number;
|
|
47
|
-
|
|
48
|
-
// Timeline
|
|
49
|
-
@Column({ type: 'date', nullable: false })
|
|
50
|
-
date_from: Date;
|
|
51
|
-
|
|
52
|
-
@Column({ type: 'date', nullable: false })
|
|
53
|
-
date_to: Date;
|
|
54
|
-
|
|
55
|
-
@Column({ type: 'time', nullable: false })
|
|
56
|
-
time_from: string;
|
|
57
|
-
|
|
58
|
-
@Column({ type: 'time', nullable: false })
|
|
59
|
-
time_to: string;
|
|
60
|
-
|
|
61
|
-
@Column({ type: 'enum', enum: LanguageCourseStatus, default: LanguageCourseStatus.PENDING, nullable: false })
|
|
62
|
-
status: LanguageCourseStatus;
|
|
63
|
-
|
|
64
|
-
@Column({ type: 'varchar', nullable: true })
|
|
65
|
-
workflow_execution_id: string | null;
|
|
66
|
-
|
|
67
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum LanguageCourseStatus {
|
|
5
|
+
SUBMITTED = "Submitted",
|
|
6
|
+
PENDING = "Pending",
|
|
7
|
+
ASSIGNED = "Assigned",
|
|
8
|
+
IN_PROGRESS = "In Progress",
|
|
9
|
+
APPROVED = "Approved",
|
|
10
|
+
REJECTED = "Rejected"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@Entity({ name: 'language_course_requests' })
|
|
14
|
+
export class LanguageCourseRequests extends BaseModel {
|
|
15
|
+
|
|
16
|
+
// Common columns
|
|
17
|
+
@Column({ type: 'int', nullable: true })
|
|
18
|
+
req_user_department_id: number | null;
|
|
19
|
+
|
|
20
|
+
@Column({ type: 'int', nullable: true })
|
|
21
|
+
req_user_section_id: number | null;
|
|
22
|
+
|
|
23
|
+
@Column({ type: 'int', nullable: true })
|
|
24
|
+
service_id: number | null;
|
|
25
|
+
|
|
26
|
+
@Column({ type: 'int', nullable: true })
|
|
27
|
+
sub_service_id: number | null;
|
|
28
|
+
|
|
29
|
+
@Column({ type: 'int', nullable: false })
|
|
30
|
+
user_id: number;
|
|
31
|
+
|
|
32
|
+
// Language Course specific columns
|
|
33
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
34
|
+
course_name: string;
|
|
35
|
+
|
|
36
|
+
@Column({ type: 'varchar', length: 100, nullable: false })
|
|
37
|
+
course_level: string;
|
|
38
|
+
|
|
39
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
40
|
+
institution: string;
|
|
41
|
+
|
|
42
|
+
@Column({ type: 'text', nullable: false })
|
|
43
|
+
reason_of_course: string;
|
|
44
|
+
|
|
45
|
+
@Column({ type: 'int', nullable: false })
|
|
46
|
+
estimated_number_of_participants: number;
|
|
47
|
+
|
|
48
|
+
// Timeline
|
|
49
|
+
@Column({ type: 'date', nullable: false })
|
|
50
|
+
date_from: Date;
|
|
51
|
+
|
|
52
|
+
@Column({ type: 'date', nullable: false })
|
|
53
|
+
date_to: Date;
|
|
54
|
+
|
|
55
|
+
@Column({ type: 'time', nullable: false })
|
|
56
|
+
time_from: string;
|
|
57
|
+
|
|
58
|
+
@Column({ type: 'time', nullable: false })
|
|
59
|
+
time_to: string;
|
|
60
|
+
|
|
61
|
+
@Column({ type: 'enum', enum: LanguageCourseStatus, default: LanguageCourseStatus.PENDING, nullable: false })
|
|
62
|
+
status: LanguageCourseStatus;
|
|
63
|
+
|
|
64
|
+
@Column({ type: 'varchar', nullable: true })
|
|
65
|
+
workflow_execution_id: string | null;
|
|
66
|
+
|
|
67
|
+
}
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum enumFrequency {
|
|
5
|
-
Monthly = 'Monthly',
|
|
6
|
-
Yearly = 'Yearly',
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
//This model is used to store the Financial Grade declaration on the Admin Side
|
|
10
|
-
@Entity({ name: 'leave_configuration' })
|
|
11
|
-
export class LeaveConfiguration extends BaseModel {
|
|
12
|
-
|
|
13
|
-
@Column({ type: 'varchar', nullable: true })
|
|
14
|
-
category: string;
|
|
15
|
-
|
|
16
|
-
@Column({ type: 'int', nullable: true })
|
|
17
|
-
MandC_id: number;
|
|
18
|
-
|
|
19
|
-
@Column({ type: 'int', nullable: true })
|
|
20
|
-
leave_type_id: number;
|
|
21
|
-
|
|
22
|
-
@Column({ type: 'varchar', nullable: true })
|
|
23
|
-
frequency: enumFrequency;
|
|
24
|
-
|
|
25
|
-
@Column({ type: 'varchar', nullable: true })
|
|
26
|
-
region: string;
|
|
27
|
-
|
|
28
|
-
@Column({ type: 'varchar', nullable: true })
|
|
29
|
-
country: string;
|
|
30
|
-
|
|
31
|
-
@Column({ type: 'varchar', nullable: true })
|
|
32
|
-
location: string;
|
|
33
|
-
|
|
34
|
-
@Column({ nullable: true, default: false })
|
|
35
|
-
is_carryforward: boolean;
|
|
36
|
-
|
|
37
|
-
@Column({ type: 'int', nullable: true, default: 0 })
|
|
38
|
-
carryforward_limit: number;
|
|
39
|
-
|
|
40
|
-
@Column({ type: 'date', nullable: true })
|
|
41
|
-
from_date: Date;
|
|
42
|
-
|
|
43
|
-
@Column({ type: 'date', nullable: true })
|
|
44
|
-
to_date: Date;
|
|
45
|
-
|
|
46
|
-
@Column({ type: 'varchar', nullable: true })
|
|
47
|
-
reason: string;
|
|
48
|
-
|
|
49
|
-
@Column({ type: 'int', nullable: true })
|
|
50
|
-
emergency_balance_days: number | null;
|
|
51
|
-
|
|
52
|
-
@Column({ type: 'date', nullable: true })
|
|
53
|
-
last_credited: Date | null;
|
|
54
|
-
|
|
55
|
-
constructor(category: string, MandC_id: number, leave_type_id: number, frequency: enumFrequency, region: string, country: string, location: string, is_carryforward: boolean, carryforward_limit: number, from_date: Date, to_date: Date, reason: string, emergency_balance_days?: number|null, last_credited?: Date|null) {
|
|
56
|
-
super();
|
|
57
|
-
this.category = category;
|
|
58
|
-
this.MandC_id = MandC_id;
|
|
59
|
-
this.leave_type_id = leave_type_id;
|
|
60
|
-
this.frequency = frequency;
|
|
61
|
-
this.region = region;
|
|
62
|
-
this.country = country;
|
|
63
|
-
this.location = location;
|
|
64
|
-
this.is_carryforward = is_carryforward;
|
|
65
|
-
this.carryforward_limit = carryforward_limit;
|
|
66
|
-
this.from_date = from_date;
|
|
67
|
-
this.to_date = to_date;
|
|
68
|
-
this.reason = reason;
|
|
69
|
-
this.emergency_balance_days = emergency_balance_days ?? null;
|
|
70
|
-
this.last_credited = last_credited ?? null;
|
|
71
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum enumFrequency {
|
|
5
|
+
Monthly = 'Monthly',
|
|
6
|
+
Yearly = 'Yearly',
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
//This model is used to store the Financial Grade declaration on the Admin Side
|
|
10
|
+
@Entity({ name: 'leave_configuration' })
|
|
11
|
+
export class LeaveConfiguration extends BaseModel {
|
|
12
|
+
|
|
13
|
+
@Column({ type: 'varchar', nullable: true })
|
|
14
|
+
category: string;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'int', nullable: true })
|
|
17
|
+
MandC_id: number;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'int', nullable: true })
|
|
20
|
+
leave_type_id: number;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'varchar', nullable: true })
|
|
23
|
+
frequency: enumFrequency;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'varchar', nullable: true })
|
|
26
|
+
region: string;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'varchar', nullable: true })
|
|
29
|
+
country: string;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'varchar', nullable: true })
|
|
32
|
+
location: string;
|
|
33
|
+
|
|
34
|
+
@Column({ nullable: true, default: false })
|
|
35
|
+
is_carryforward: boolean;
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'int', nullable: true, default: 0 })
|
|
38
|
+
carryforward_limit: number;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'date', nullable: true })
|
|
41
|
+
from_date: Date;
|
|
42
|
+
|
|
43
|
+
@Column({ type: 'date', nullable: true })
|
|
44
|
+
to_date: Date;
|
|
45
|
+
|
|
46
|
+
@Column({ type: 'varchar', nullable: true })
|
|
47
|
+
reason: string;
|
|
48
|
+
|
|
49
|
+
@Column({ type: 'int', nullable: true })
|
|
50
|
+
emergency_balance_days: number | null;
|
|
51
|
+
|
|
52
|
+
@Column({ type: 'date', nullable: true })
|
|
53
|
+
last_credited: Date | null;
|
|
54
|
+
|
|
55
|
+
constructor(category: string, MandC_id: number, leave_type_id: number, frequency: enumFrequency, region: string, country: string, location: string, is_carryforward: boolean, carryforward_limit: number, from_date: Date, to_date: Date, reason: string, emergency_balance_days?: number|null, last_credited?: Date|null) {
|
|
56
|
+
super();
|
|
57
|
+
this.category = category;
|
|
58
|
+
this.MandC_id = MandC_id;
|
|
59
|
+
this.leave_type_id = leave_type_id;
|
|
60
|
+
this.frequency = frequency;
|
|
61
|
+
this.region = region;
|
|
62
|
+
this.country = country;
|
|
63
|
+
this.location = location;
|
|
64
|
+
this.is_carryforward = is_carryforward;
|
|
65
|
+
this.carryforward_limit = carryforward_limit;
|
|
66
|
+
this.from_date = from_date;
|
|
67
|
+
this.to_date = to_date;
|
|
68
|
+
this.reason = reason;
|
|
69
|
+
this.emergency_balance_days = emergency_balance_days ?? null;
|
|
70
|
+
this.last_credited = last_credited ?? null;
|
|
71
|
+
}
|
|
72
72
|
}
|