@platform-modules/civil-aviation-authority 2.3.96 → 2.3.99
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 +16 -10
- package/dist/data-source.js +2 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +13 -0
- package/dist/models/AnnualIncrementRequestEmployeeModel.d.ts +16 -0
- package/dist/models/AnnualIncrementRequestEmployeeModel.js +80 -0
- package/dist/models/AnnualIncrementRequestModel.d.ts +5 -4
- package/dist/models/AnnualIncrementRequestModel.js +17 -12
- package/dist/models/CashAllowanceLeaveRequestModel.d.ts +1 -0
- package/dist/models/CashAllowanceLeaveRequestModel.js +5 -0
- package/dist/models/DocumentMetadataModel.d.ts +45 -0
- package/dist/models/DocumentMetadataModel.js +171 -0
- package/dist/models/DocumentationDepartmentsModel.d.ts +13 -0
- package/dist/models/DocumentationDepartmentsModel.js +53 -0
- package/dist/models/FolderModel.d.ts +16 -0
- package/dist/models/FolderModel.js +85 -0
- package/dist/models/HousingContractCancelApprovalModel.d.ts +23 -0
- package/dist/models/HousingContractCancelApprovalModel.js +88 -0
- package/dist/models/HousingContractCancelAttachmentModel.d.ts +12 -0
- package/dist/models/HousingContractCancelAttachmentModel.js +56 -0
- package/dist/models/HousingContractCancelChatModel.d.ts +18 -0
- package/dist/models/HousingContractCancelChatModel.js +60 -0
- package/dist/models/HousingContractCancelRequestModel.d.ts +31 -0
- package/dist/models/HousingContractCancelRequestModel.js +107 -0
- package/dist/models/HousingContractCancelWorkflowModel.d.ts +25 -0
- package/dist/models/HousingContractCancelWorkflowModel.js +88 -0
- package/dist/models/HousingContractRenewalApprovalModel.d.ts +23 -0
- package/dist/models/HousingContractRenewalApprovalModel.js +88 -0
- package/dist/models/HousingContractRenewalAttachmentModel.d.ts +12 -0
- package/dist/models/HousingContractRenewalAttachmentModel.js +56 -0
- package/dist/models/HousingContractRenewalChatModel.d.ts +18 -0
- package/dist/models/HousingContractRenewalChatModel.js +60 -0
- package/dist/models/HousingContractRenewalRequestModel.d.ts +32 -0
- package/dist/models/HousingContractRenewalRequestModel.js +107 -0
- package/dist/models/HousingContractRenewalWorkflowModel.d.ts +25 -0
- package/dist/models/HousingContractRenewalWorkflowModel.js +88 -0
- package/dist/models/PermissionModel.d.ts +18 -0
- package/dist/models/PermissionModel.js +68 -0
- package/dist/models/PromotionRequestModel.d.ts +1 -0
- package/dist/models/PromotionRequestModel.js +5 -0
- package/dist/models/ShiftAllowanceRequestModel.d.ts +1 -0
- package/dist/models/ShiftAllowanceRequestModel.js +6 -1
- package/dist/models/UUIDBaseModel.d.ts +14 -0
- package/dist/models/UUIDBaseModel.js +66 -0
- package/package.json +1 -1
- package/src/data-source.ts +2 -0
- package/src/index.ts +16 -1
- package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -0
- package/src/models/AnnualIncrementRequestModel.ts +16 -12
- package/src/models/CashAllowanceLeaveRequestModel.ts +4 -0
- package/src/models/DepartmentsModel.ts +25 -25
- package/src/models/HousingContractCancelApprovalModel.ts +61 -0
- package/src/models/HousingContractCancelAttachmentModel.ts +34 -0
- package/src/models/HousingContractCancelChatModel.ts +39 -0
- package/src/models/HousingContractCancelRequestModel.ts +76 -0
- package/src/models/HousingContractCancelWorkflowModel.ts +60 -0
- package/src/models/HousingContractRenewalApprovalModel.ts +61 -0
- package/src/models/HousingContractRenewalAttachmentModel.ts +34 -0
- package/src/models/HousingContractRenewalChatModel.ts +39 -0
- package/src/models/HousingContractRenewalRequestModel.ts +77 -0
- package/src/models/HousingContractRenewalWorkflowModel.ts +60 -0
- package/src/models/ITRequestChatModel.ts +62 -62
- package/src/models/ItApprovalsModel.ts +84 -84
- package/src/models/ItWorkflowModel.ts +55 -55
- package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
- package/src/models/PromotionRequestModel.ts +4 -0
- package/src/models/ServicesNotificationConfigModel.ts +55 -55
- package/src/models/ShiftAllowanceRequestModel.ts +5 -1
- package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
@Entity({ name: "mission_travel_passport_expiry_notification_configs" })
|
|
6
|
-
export class MissionTravelPassportExpiryNotificationConfig extends BaseModel {
|
|
7
|
-
@Column({ type: "integer", nullable: false })
|
|
8
|
-
department_id: number;
|
|
9
|
-
|
|
10
|
-
@Column({ type: "integer", nullable: true })
|
|
11
|
-
section_id: number | null;
|
|
12
|
-
|
|
13
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
14
|
-
frequency: string | null;
|
|
15
|
-
|
|
16
|
-
@Column({ type: "integer", nullable: true })
|
|
17
|
-
repeat_interval_days: number | null; // Repeating after every N days (default 10)
|
|
18
|
-
|
|
19
|
-
@Column({ type: "boolean", nullable: false, default: true })
|
|
20
|
-
is_active: boolean;
|
|
21
|
-
|
|
22
|
-
constructor(
|
|
23
|
-
department_id: number,
|
|
24
|
-
section_id: number | null = null,
|
|
25
|
-
frequency: string | null = null,
|
|
26
|
-
repeat_interval_days: number = 10,
|
|
27
|
-
is_active: boolean = true
|
|
28
|
-
) {
|
|
29
|
-
super();
|
|
30
|
-
this.department_id = department_id;
|
|
31
|
-
this.section_id = section_id;
|
|
32
|
-
this.frequency = frequency;
|
|
33
|
-
this.repeat_interval_days = repeat_interval_days;
|
|
34
|
-
this.is_active = is_active;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
@Entity({ name: "mission_travel_passport_expiry_notification_configs" })
|
|
6
|
+
export class MissionTravelPassportExpiryNotificationConfig extends BaseModel {
|
|
7
|
+
@Column({ type: "integer", nullable: false })
|
|
8
|
+
department_id: number;
|
|
9
|
+
|
|
10
|
+
@Column({ type: "integer", nullable: true })
|
|
11
|
+
section_id: number | null;
|
|
12
|
+
|
|
13
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
14
|
+
frequency: string | null;
|
|
15
|
+
|
|
16
|
+
@Column({ type: "integer", nullable: true })
|
|
17
|
+
repeat_interval_days: number | null; // Repeating after every N days (default 10)
|
|
18
|
+
|
|
19
|
+
@Column({ type: "boolean", nullable: false, default: true })
|
|
20
|
+
is_active: boolean;
|
|
21
|
+
|
|
22
|
+
constructor(
|
|
23
|
+
department_id: number,
|
|
24
|
+
section_id: number | null = null,
|
|
25
|
+
frequency: string | null = null,
|
|
26
|
+
repeat_interval_days: number = 10,
|
|
27
|
+
is_active: boolean = true
|
|
28
|
+
) {
|
|
29
|
+
super();
|
|
30
|
+
this.department_id = department_id;
|
|
31
|
+
this.section_id = section_id;
|
|
32
|
+
this.frequency = frequency;
|
|
33
|
+
this.repeat_interval_days = repeat_interval_days;
|
|
34
|
+
this.is_active = is_active;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -48,6 +48,9 @@ export class PromotionRequest extends BaseModel {
|
|
|
48
48
|
@Column({ type: "varchar", length: 255, nullable: true })
|
|
49
49
|
workflow_execution_id: string | null;
|
|
50
50
|
|
|
51
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
52
|
+
reference_number: string | null;
|
|
53
|
+
|
|
51
54
|
// Promotion Decision specific fields
|
|
52
55
|
@Column({ type: "varchar", length: 255, nullable: false })
|
|
53
56
|
employee_name: string;
|
|
@@ -108,6 +111,7 @@ export class PromotionRequest extends BaseModel {
|
|
|
108
111
|
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
109
112
|
this.assigned_at = assigned_at || null;
|
|
110
113
|
this.workflow_execution_id = workflow_execution_id || null;
|
|
114
|
+
this.reference_number = null;
|
|
111
115
|
this.employee_name = employee_name || "";
|
|
112
116
|
this.employee_id = employee_id || "";
|
|
113
117
|
this.current_job_title = current_job_title || "";
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
export enum ServicesNotificationTriggerType {
|
|
5
|
-
FINAL_APPROVAL = "final_approval",
|
|
6
|
-
EVERY_APPROVAL = "every_approval"
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@Entity({ name: "services_notification_configs" })
|
|
10
|
-
export class ServicesNotificationConfigs extends BaseModel {
|
|
11
|
-
@Column({ type: "integer", nullable: false })
|
|
12
|
-
service_id: number;
|
|
13
|
-
|
|
14
|
-
@Column({ type: "integer", nullable: false })
|
|
15
|
-
sub_service_id: number;
|
|
16
|
-
|
|
17
|
-
@Column({ type: "integer", nullable: false })
|
|
18
|
-
department_id: number;
|
|
19
|
-
|
|
20
|
-
@Column({ type: "integer", nullable: true })
|
|
21
|
-
section_id: number | null;
|
|
22
|
-
|
|
23
|
-
@Column({ type: "integer", nullable: true })
|
|
24
|
-
role_id: number | null;
|
|
25
|
-
|
|
26
|
-
@Column({
|
|
27
|
-
type: "enum",
|
|
28
|
-
enum: ServicesNotificationTriggerType,
|
|
29
|
-
nullable: false,
|
|
30
|
-
default: ServicesNotificationTriggerType.FINAL_APPROVAL
|
|
31
|
-
})
|
|
32
|
-
trigger: ServicesNotificationTriggerType;
|
|
33
|
-
|
|
34
|
-
@Column({ type: "boolean", nullable: false, default: true })
|
|
35
|
-
is_active: boolean;
|
|
36
|
-
|
|
37
|
-
constructor(
|
|
38
|
-
service_id: number,
|
|
39
|
-
sub_service_id: number,
|
|
40
|
-
department_id: number,
|
|
41
|
-
section_id: number | null = null,
|
|
42
|
-
role_id: number | null = null,
|
|
43
|
-
trigger: ServicesNotificationTriggerType = ServicesNotificationTriggerType.FINAL_APPROVAL,
|
|
44
|
-
is_active: boolean = true
|
|
45
|
-
) {
|
|
46
|
-
super();
|
|
47
|
-
this.service_id = service_id;
|
|
48
|
-
this.sub_service_id = sub_service_id;
|
|
49
|
-
this.department_id = department_id;
|
|
50
|
-
this.section_id = section_id;
|
|
51
|
-
this.role_id = role_id;
|
|
52
|
-
this.trigger = trigger;
|
|
53
|
-
this.is_active = is_active;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum ServicesNotificationTriggerType {
|
|
5
|
+
FINAL_APPROVAL = "final_approval",
|
|
6
|
+
EVERY_APPROVAL = "every_approval"
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@Entity({ name: "services_notification_configs" })
|
|
10
|
+
export class ServicesNotificationConfigs extends BaseModel {
|
|
11
|
+
@Column({ type: "integer", nullable: false })
|
|
12
|
+
service_id: number;
|
|
13
|
+
|
|
14
|
+
@Column({ type: "integer", nullable: false })
|
|
15
|
+
sub_service_id: number;
|
|
16
|
+
|
|
17
|
+
@Column({ type: "integer", nullable: false })
|
|
18
|
+
department_id: number;
|
|
19
|
+
|
|
20
|
+
@Column({ type: "integer", nullable: true })
|
|
21
|
+
section_id: number | null;
|
|
22
|
+
|
|
23
|
+
@Column({ type: "integer", nullable: true })
|
|
24
|
+
role_id: number | null;
|
|
25
|
+
|
|
26
|
+
@Column({
|
|
27
|
+
type: "enum",
|
|
28
|
+
enum: ServicesNotificationTriggerType,
|
|
29
|
+
nullable: false,
|
|
30
|
+
default: ServicesNotificationTriggerType.FINAL_APPROVAL
|
|
31
|
+
})
|
|
32
|
+
trigger: ServicesNotificationTriggerType;
|
|
33
|
+
|
|
34
|
+
@Column({ type: "boolean", nullable: false, default: true })
|
|
35
|
+
is_active: boolean;
|
|
36
|
+
|
|
37
|
+
constructor(
|
|
38
|
+
service_id: number,
|
|
39
|
+
sub_service_id: number,
|
|
40
|
+
department_id: number,
|
|
41
|
+
section_id: number | null = null,
|
|
42
|
+
role_id: number | null = null,
|
|
43
|
+
trigger: ServicesNotificationTriggerType = ServicesNotificationTriggerType.FINAL_APPROVAL,
|
|
44
|
+
is_active: boolean = true
|
|
45
|
+
) {
|
|
46
|
+
super();
|
|
47
|
+
this.service_id = service_id;
|
|
48
|
+
this.sub_service_id = sub_service_id;
|
|
49
|
+
this.department_id = department_id;
|
|
50
|
+
this.section_id = section_id;
|
|
51
|
+
this.role_id = role_id;
|
|
52
|
+
this.trigger = trigger;
|
|
53
|
+
this.is_active = is_active;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -54,6 +54,9 @@ export class ShiftAllowanceRequest extends BaseModel {
|
|
|
54
54
|
@Column({ type: "varchar", length: 255, nullable: true })
|
|
55
55
|
workflow_execution_id: string | null;
|
|
56
56
|
|
|
57
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
58
|
+
reference_number: string | null;
|
|
59
|
+
|
|
57
60
|
// Shift Allowance specific fields
|
|
58
61
|
@Column({ type: "varchar", length: 255, nullable: false })
|
|
59
62
|
employee_name: string;
|
|
@@ -73,7 +76,7 @@ export class ShiftAllowanceRequest extends BaseModel {
|
|
|
73
76
|
@Column({ type: "date", nullable: false })
|
|
74
77
|
shift_start_date: Date;
|
|
75
78
|
|
|
76
|
-
@Column({ type: "date", nullable:
|
|
79
|
+
@Column({ type: "date", nullable: true })
|
|
77
80
|
shift_end_date: Date;
|
|
78
81
|
|
|
79
82
|
@Column({ type: "time", nullable: true })
|
|
@@ -122,6 +125,7 @@ export class ShiftAllowanceRequest extends BaseModel {
|
|
|
122
125
|
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
123
126
|
this.assigned_at = assigned_at || null;
|
|
124
127
|
this.workflow_execution_id = workflow_execution_id || null;
|
|
128
|
+
this.reference_number = null;
|
|
125
129
|
this.employee_name = employee_name || "";
|
|
126
130
|
this.employee_id = employee_id || "";
|
|
127
131
|
this.job_title = job_title || "";
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
export enum NotificationFrequency {
|
|
5
|
-
YEARLY = "yearly",
|
|
6
|
-
SIX_MONTHS_BEFORE = "6_months_before"
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@Entity({ name: "training_room_notification_configs" })
|
|
10
|
-
export class TrainingRoomNotificationConfig extends BaseModel {
|
|
11
|
-
@Column({ type: "integer", nullable: false })
|
|
12
|
-
department_id: number;
|
|
13
|
-
|
|
14
|
-
@Column({ type: "integer", nullable: true })
|
|
15
|
-
section_id: number | null;
|
|
16
|
-
|
|
17
|
-
@Column({ type: "boolean", nullable: false, default: true })
|
|
18
|
-
is_active: boolean;
|
|
19
|
-
|
|
20
|
-
constructor(
|
|
21
|
-
department_id: number,
|
|
22
|
-
section_id: number | null = null,
|
|
23
|
-
is_active: boolean = true
|
|
24
|
-
) {
|
|
25
|
-
super();
|
|
26
|
-
this.department_id = department_id;
|
|
27
|
-
this.section_id = section_id;
|
|
28
|
-
this.is_active = is_active;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum NotificationFrequency {
|
|
5
|
+
YEARLY = "yearly",
|
|
6
|
+
SIX_MONTHS_BEFORE = "6_months_before"
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@Entity({ name: "training_room_notification_configs" })
|
|
10
|
+
export class TrainingRoomNotificationConfig extends BaseModel {
|
|
11
|
+
@Column({ type: "integer", nullable: false })
|
|
12
|
+
department_id: number;
|
|
13
|
+
|
|
14
|
+
@Column({ type: "integer", nullable: true })
|
|
15
|
+
section_id: number | null;
|
|
16
|
+
|
|
17
|
+
@Column({ type: "boolean", nullable: false, default: true })
|
|
18
|
+
is_active: boolean;
|
|
19
|
+
|
|
20
|
+
constructor(
|
|
21
|
+
department_id: number,
|
|
22
|
+
section_id: number | null = null,
|
|
23
|
+
is_active: boolean = true
|
|
24
|
+
) {
|
|
25
|
+
super();
|
|
26
|
+
this.department_id = department_id;
|
|
27
|
+
this.section_id = section_id;
|
|
28
|
+
this.is_active = is_active;
|
|
29
|
+
}
|
|
30
|
+
}
|