@platform-modules/foreign-ministry 1.3.243 → 1.3.246
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 +5 -12
- package/dist/data-source.js +40 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +20 -0
- package/dist/models/HousingRentalAccommodationApprovalModel.d.ts +22 -0
- package/dist/models/HousingRentalAccommodationApprovalModel.js +84 -0
- package/dist/models/HousingRentalAccommodationAttachmentModel.d.ts +11 -0
- package/dist/models/HousingRentalAccommodationAttachmentModel.js +52 -0
- package/dist/models/HousingRentalAccommodationChatModel.d.ts +18 -0
- package/dist/models/HousingRentalAccommodationChatModel.js +65 -0
- package/dist/models/HousingRentalAccommodationRequestModel.d.ts +20 -0
- package/dist/models/HousingRentalAccommodationRequestModel.js +70 -0
- package/dist/models/HousingRentalAccommodationWorkflowModel.d.ts +17 -0
- package/dist/models/HousingRentalAccommodationWorkflowModel.js +67 -0
- package/dist/models/HousingRentalVehicleApprovalModel.d.ts +22 -0
- package/dist/models/HousingRentalVehicleApprovalModel.js +84 -0
- package/dist/models/HousingRentalVehicleAttachmentModel.d.ts +11 -0
- package/dist/models/HousingRentalVehicleAttachmentModel.js +52 -0
- package/dist/models/HousingRentalVehicleChatModel.d.ts +18 -0
- package/dist/models/HousingRentalVehicleChatModel.js +65 -0
- package/dist/models/HousingRentalVehicleRequestModel.d.ts +22 -0
- package/dist/models/HousingRentalVehicleRequestModel.js +78 -0
- package/dist/models/HousingRentalVehicleWorkflowModel.d.ts +17 -0
- package/dist/models/HousingRentalVehicleWorkflowModel.js +67 -0
- package/dist/models/MissionContractsApprovalModel.d.ts +22 -0
- package/dist/models/MissionContractsApprovalModel.js +84 -0
- package/dist/models/MissionContractsAttachmentModel.d.ts +11 -0
- package/dist/models/MissionContractsAttachmentModel.js +52 -0
- package/dist/models/MissionContractsChatModel.d.ts +18 -0
- package/dist/models/MissionContractsChatModel.js +65 -0
- package/dist/models/MissionContractsRequestModel.d.ts +26 -0
- package/dist/models/MissionContractsRequestModel.js +90 -0
- package/dist/models/MissionContractsWorkflowModel.d.ts +17 -0
- package/dist/models/MissionContractsWorkflowModel.js +67 -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/NationalDayCelebrationsApprovalModel.d.ts +22 -0
- package/dist/models/NationalDayCelebrationsApprovalModel.js +84 -0
- package/dist/models/NationalDayCelebrationsAttachmentModel.d.ts +11 -0
- package/dist/models/NationalDayCelebrationsAttachmentModel.js +52 -0
- package/dist/models/NationalDayCelebrationsChatModel.d.ts +18 -0
- package/dist/models/NationalDayCelebrationsChatModel.js +65 -0
- package/dist/models/NationalDayCelebrationsRequestModel.d.ts +20 -0
- package/dist/models/NationalDayCelebrationsRequestModel.js +70 -0
- package/dist/models/NationalDayCelebrationsWorkflowModel.d.ts +17 -0
- package/dist/models/NationalDayCelebrationsWorkflowModel.js +67 -0
- package/dist/models/ProjectContactsModel.d.ts +3 -1
- package/dist/models/ProjectContactsModel.js +7 -2
- package/package.json +24 -24
- package/src/data-source.ts +550 -510
- package/src/index.ts +402 -382
- package/src/models/DiplomaticAcademyRequestModel.ts +80 -80
- package/src/models/HousingRentalAccommodationApprovalModel.ts +56 -0
- package/src/models/HousingRentalAccommodationAttachmentModel.ts +29 -0
- package/src/models/HousingRentalAccommodationChatModel.ts +42 -0
- package/src/models/HousingRentalAccommodationRequestModel.ts +46 -0
- package/src/models/HousingRentalAccommodationWorkflowModel.ts +43 -0
- package/src/models/HousingRentalVehicleApprovalModel.ts +56 -0
- package/src/models/HousingRentalVehicleAttachmentModel.ts +29 -0
- package/src/models/HousingRentalVehicleChatModel.ts +42 -0
- package/src/models/HousingRentalVehicleRequestModel.ts +52 -0
- package/src/models/HousingRentalVehicleWorkflowModel.ts +43 -0
- package/src/models/LMSExternalEntityTrainedPersonModel.ts +45 -45
- package/src/models/LanguageCourseRequestModel.ts +67 -67
- package/src/models/LeaveConfigModel.ts +71 -71
- package/src/models/MissionContractsApprovalModel.ts +56 -0
- package/src/models/MissionContractsAttachmentModel.ts +29 -0
- package/src/models/MissionContractsChatModel.ts +42 -0
- package/src/models/MissionContractsRequestModel.ts +62 -0
- package/src/models/MissionContractsWorkflowModel.ts +43 -0
- 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/NationalDayCelebrationsApprovalModel.ts +56 -0
- package/src/models/NationalDayCelebrationsAttachmentModel.ts +29 -0
- package/src/models/NationalDayCelebrationsChatModel.ts +42 -0
- package/src/models/NationalDayCelebrationsRequestModel.ts +46 -0
- package/src/models/NationalDayCelebrationsWorkflowModel.ts +43 -0
- package/src/models/ProjectContactsModel.ts +7 -1
- package/src/models/ProjectFaqModel.ts +36 -36
- package/src/models/ProjectInvoicesModel.ts +41 -41
- package/src/models/ProjectModel.ts +75 -75
- package/src/models/SectionModel.ts +35 -35
- package/src/models/ServicesNotificationConfigsModel.ts +55 -55
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* One person/trainee per row; multiple rows per request (Request for Individual Training).
|
|
6
|
-
*/
|
|
7
|
-
@Entity({ name: 'lms_external_entity_trained_people' })
|
|
8
|
-
export class LMSExternalEntityTrainedPerson extends BaseModel {
|
|
9
|
-
|
|
10
|
-
@Column({ type: 'int', nullable: false })
|
|
11
|
-
request_id: number;
|
|
12
|
-
|
|
13
|
-
@Column({ type: 'int', nullable: true })
|
|
14
|
-
service_id: number | null;
|
|
15
|
-
|
|
16
|
-
@Column({ type: 'int', nullable: true })
|
|
17
|
-
sub_service_id: number | null;
|
|
18
|
-
|
|
19
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
20
|
-
full_name: string | null;
|
|
21
|
-
|
|
22
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
23
|
-
employee_id: string | null;
|
|
24
|
-
|
|
25
|
-
@Column({ type: 'int', nullable: true })
|
|
26
|
-
age: number | null;
|
|
27
|
-
|
|
28
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
29
|
-
university: string | null;
|
|
30
|
-
|
|
31
|
-
@Column({ type: 'text', nullable: true })
|
|
32
|
-
qualification: string | null;
|
|
33
|
-
|
|
34
|
-
@Column({ type: 'text', nullable: true })
|
|
35
|
-
learning_curriculum: string | null;
|
|
36
|
-
|
|
37
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
38
|
-
training_period: string | null;
|
|
39
|
-
|
|
40
|
-
@Column({ type: 'boolean', default: false })
|
|
41
|
-
is_selected: boolean;
|
|
42
|
-
|
|
43
|
-
@Column({ type: 'int', default: 0 })
|
|
44
|
-
display_order: number;
|
|
45
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* One person/trainee per row; multiple rows per request (Request for Individual Training).
|
|
6
|
+
*/
|
|
7
|
+
@Entity({ name: 'lms_external_entity_trained_people' })
|
|
8
|
+
export class LMSExternalEntityTrainedPerson extends BaseModel {
|
|
9
|
+
|
|
10
|
+
@Column({ type: 'int', nullable: false })
|
|
11
|
+
request_id: number;
|
|
12
|
+
|
|
13
|
+
@Column({ type: 'int', nullable: true })
|
|
14
|
+
service_id: number | null;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'int', nullable: true })
|
|
17
|
+
sub_service_id: number | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
20
|
+
full_name: string | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
23
|
+
employee_id: string | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'int', nullable: true })
|
|
26
|
+
age: number | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
29
|
+
university: string | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'text', nullable: true })
|
|
32
|
+
qualification: string | null;
|
|
33
|
+
|
|
34
|
+
@Column({ type: 'text', nullable: true })
|
|
35
|
+
learning_curriculum: string | null;
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
38
|
+
training_period: string | null;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'boolean', default: false })
|
|
41
|
+
is_selected: boolean;
|
|
42
|
+
|
|
43
|
+
@Column({ type: 'int', default: 0 })
|
|
44
|
+
display_order: number;
|
|
45
|
+
}
|
|
@@ -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
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum MissionContractsApprovalStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
IN_PROGRESS = 'In Progress',
|
|
7
|
+
APPROVED = 'Approved',
|
|
8
|
+
REJECTED = 'Rejected',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'mission_contracts_approvals' })
|
|
12
|
+
export class MissionContractsApprovalDetails extends BaseModel {
|
|
13
|
+
@Column({ type: 'integer', nullable: false })
|
|
14
|
+
request_id: number;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'integer', nullable: true })
|
|
17
|
+
service_id: number | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'integer', nullable: true })
|
|
20
|
+
sub_service_id: number | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'integer', nullable: false })
|
|
23
|
+
level: number;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'integer', nullable: true })
|
|
26
|
+
approver_role_id: number;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'integer', nullable: true })
|
|
29
|
+
department_id: number | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'integer', nullable: true })
|
|
32
|
+
section_id: number | null;
|
|
33
|
+
|
|
34
|
+
@Column({ type: 'integer', nullable: true })
|
|
35
|
+
approver_user_id: number | null;
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'integer', nullable: true })
|
|
38
|
+
delegate_user_id: number | null;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'integer', nullable: true })
|
|
41
|
+
approved_by: number | null;
|
|
42
|
+
|
|
43
|
+
@Column({ type: 'varchar', length: 500, nullable: true, default: '' })
|
|
44
|
+
comment: string;
|
|
45
|
+
|
|
46
|
+
@Column({
|
|
47
|
+
type: 'enum',
|
|
48
|
+
enum: MissionContractsApprovalStatus,
|
|
49
|
+
default: MissionContractsApprovalStatus.PENDING,
|
|
50
|
+
nullable: false,
|
|
51
|
+
})
|
|
52
|
+
approval_status: MissionContractsApprovalStatus;
|
|
53
|
+
|
|
54
|
+
@Column({ type: 'boolean', default: true, nullable: false })
|
|
55
|
+
is_allowed: boolean;
|
|
56
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'mission_contracts_attachments' })
|
|
5
|
+
export class MissionContractsRequestAttachment extends BaseModel {
|
|
6
|
+
@Column({ type: 'integer', nullable: false })
|
|
7
|
+
request_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'integer', nullable: true })
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'integer', nullable: true })
|
|
13
|
+
sub_service_id: number | null;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
16
|
+
file_url: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
19
|
+
file_name: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
22
|
+
file_type: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'bigint', nullable: true })
|
|
25
|
+
file_size: number | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'integer', nullable: true })
|
|
28
|
+
chat_id: number | null;
|
|
29
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum MissionContractsMessageType {
|
|
5
|
+
TEXT = 'text',
|
|
6
|
+
IMAGE = 'image',
|
|
7
|
+
VIDEO = 'video',
|
|
8
|
+
FILE = 'file',
|
|
9
|
+
LINK = 'link',
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: 'mission_contracts_chats' })
|
|
13
|
+
export class MissionContractsRequestChat extends BaseModel {
|
|
14
|
+
@Column({ type: 'integer', nullable: false })
|
|
15
|
+
request_id: number;
|
|
16
|
+
|
|
17
|
+
@Column({ type: 'integer', nullable: true })
|
|
18
|
+
service_id: number | null;
|
|
19
|
+
|
|
20
|
+
@Column({ type: 'integer', nullable: true })
|
|
21
|
+
sub_service_id: number | null;
|
|
22
|
+
|
|
23
|
+
@Column({ type: 'integer', nullable: false })
|
|
24
|
+
user_id: number;
|
|
25
|
+
|
|
26
|
+
@Column({ type: 'integer', nullable: true })
|
|
27
|
+
role_id: number;
|
|
28
|
+
|
|
29
|
+
@Column({ type: 'text', nullable: false })
|
|
30
|
+
message: string;
|
|
31
|
+
|
|
32
|
+
@Column({
|
|
33
|
+
type: 'enum',
|
|
34
|
+
enum: MissionContractsMessageType,
|
|
35
|
+
default: MissionContractsMessageType.TEXT,
|
|
36
|
+
nullable: false,
|
|
37
|
+
})
|
|
38
|
+
messageType: MissionContractsMessageType;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'text', nullable: true })
|
|
41
|
+
status: string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum MissionContractsRequestStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
ASSIGNED = 'Assigned',
|
|
7
|
+
IN_PROGRESS = 'In Progress',
|
|
8
|
+
APPROVED = 'Approved',
|
|
9
|
+
REJECTED = 'Rejected',
|
|
10
|
+
CANCELLED = 'Cancelled',
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@Entity({ name: 'mission_contracts_requests' })
|
|
14
|
+
export class MissionContractsRequests extends BaseModel {
|
|
15
|
+
@Column({ type: 'int', nullable: true })
|
|
16
|
+
req_user_department_id: number | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'int', nullable: true })
|
|
19
|
+
req_user_section_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'int', nullable: true })
|
|
22
|
+
service_id: number | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'int', nullable: true })
|
|
25
|
+
sub_service_id: number | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'int', nullable: false })
|
|
28
|
+
user_id: number;
|
|
29
|
+
|
|
30
|
+
@Column({
|
|
31
|
+
type: 'enum',
|
|
32
|
+
enum: MissionContractsRequestStatus,
|
|
33
|
+
default: MissionContractsRequestStatus.PENDING,
|
|
34
|
+
nullable: false,
|
|
35
|
+
})
|
|
36
|
+
status: MissionContractsRequestStatus;
|
|
37
|
+
|
|
38
|
+
@Column({ type: 'varchar', nullable: true })
|
|
39
|
+
workflow_execution_id: string | null;
|
|
40
|
+
|
|
41
|
+
/** New Contract | Renewal */
|
|
42
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
43
|
+
contract_category: string | null;
|
|
44
|
+
|
|
45
|
+
@Column({ type: 'text', nullable: true })
|
|
46
|
+
reason: string | null;
|
|
47
|
+
|
|
48
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
49
|
+
company_name: string | null;
|
|
50
|
+
|
|
51
|
+
@Column({ type: 'varchar', length: 200, nullable: true })
|
|
52
|
+
contract_type: string | null;
|
|
53
|
+
|
|
54
|
+
@Column({ type: 'int', nullable: true })
|
|
55
|
+
contract_duration_years: number | null;
|
|
56
|
+
|
|
57
|
+
@Column({ type: 'decimal', precision: 15, scale: 2, nullable: true })
|
|
58
|
+
amount: string | null;
|
|
59
|
+
|
|
60
|
+
@Column({ type: 'text', nullable: true })
|
|
61
|
+
notes: string | null;
|
|
62
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum MissionContractsWorkFlowStatus {
|
|
5
|
+
COMPLETED = 'Completed',
|
|
6
|
+
NOT_YET_STARTED = 'Not Yet Started',
|
|
7
|
+
PENDING = 'Pending',
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@Entity({ name: 'mission_contracts_workflows' })
|
|
11
|
+
export class MissionContractsWorkFlow extends BaseModel {
|
|
12
|
+
@Column({ type: 'integer', nullable: false })
|
|
13
|
+
request_id: number;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'integer', nullable: true })
|
|
16
|
+
service_id: number | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'integer', nullable: true })
|
|
19
|
+
sub_service_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
22
|
+
content: string;
|
|
23
|
+
|
|
24
|
+
@Column({
|
|
25
|
+
type: 'enum',
|
|
26
|
+
enum: MissionContractsWorkFlowStatus,
|
|
27
|
+
default: MissionContractsWorkFlowStatus.NOT_YET_STARTED,
|
|
28
|
+
nullable: false,
|
|
29
|
+
})
|
|
30
|
+
status: MissionContractsWorkFlowStatus;
|
|
31
|
+
|
|
32
|
+
@Column({ type: 'integer', nullable: true })
|
|
33
|
+
user_id: number | null;
|
|
34
|
+
|
|
35
|
+
@Column({ type: 'integer', nullable: true })
|
|
36
|
+
role_id: number | null;
|
|
37
|
+
|
|
38
|
+
@Column({ type: 'integer', nullable: true })
|
|
39
|
+
department_id: number | null;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'integer', nullable: true })
|
|
42
|
+
section_id: number | null;
|
|
43
|
+
}
|