@platform-modules/civil-aviation-authority 2.3.200 → 2.3.205
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 +7 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/models/ComplaintLostPropertyReportApprovalModel.d.ts +23 -0
- package/dist/models/ComplaintLostPropertyReportApprovalModel.js +88 -0
- package/dist/models/ComplaintLostPropertyReportAttachmentModel.d.ts +12 -0
- package/dist/models/ComplaintLostPropertyReportAttachmentModel.js +56 -0
- package/dist/models/ComplaintLostPropertyReportChatModel.d.ts +21 -0
- package/dist/models/ComplaintLostPropertyReportChatModel.js +78 -0
- package/dist/models/ComplaintLostPropertyReportRequestModel.d.ts +23 -0
- package/dist/models/ComplaintLostPropertyReportRequestModel.js +88 -0
- package/dist/models/ComplaintLostPropertyReportWorkflowModel.d.ts +18 -0
- package/dist/models/ComplaintLostPropertyReportWorkflowModel.js +80 -0
- package/dist/models/ContractServiceRequestModel.d.ts +23 -0
- package/dist/models/ContractServiceRequestModel.js +102 -0
- package/package.json +24 -24
- package/src/index.ts +437 -431
- package/src/models/ComplaintLostPropertyReportApprovalModel.ts +60 -0
- package/src/models/ComplaintLostPropertyReportAttachmentModel.ts +33 -0
- package/src/models/ComplaintLostPropertyReportChatModel.ts +53 -0
- package/src/models/ComplaintLostPropertyReportRequestModel.ts +60 -0
- package/src/models/ComplaintLostPropertyReportWorkflowModel.ts +51 -0
- package/src/models/ContractServiceRequestModel.ts +68 -0
- package/src/models/ImportExportMaterialApprovalModel.ts +87 -87
- package/src/models/ImportExportMaterialAttachmentModel.ts +50 -50
- package/src/models/ImportExportMaterialChatModel.ts +61 -61
- package/src/models/ImportExportMaterialRequestModel.ts +85 -85
- package/src/models/ImportExportMaterialWorkflowModel.ts +51 -51
- package/src/models/LegalComplaintApprovalModel.ts +64 -64
- package/src/models/ServiceExtensionAfter60ApprovalModel.ts +87 -87
- package/src/models/ServiceExtensionAfter60AttachmentModel.ts +50 -50
- package/src/models/ServiceExtensionAfter60ChatModel.ts +61 -61
- package/src/models/ServiceExtensionAfter60RequestModel.ts +75 -75
- package/src/models/ServiceExtensionAfter60WorkflowModel.ts +51 -51
- package/src/models/WorkingHoursExtensionApprovalModel.ts +87 -87
- package/src/models/WorkingHoursExtensionAttachmentModel.ts +50 -50
- package/src/models/WorkingHoursExtensionChatModel.ts +61 -61
- package/src/models/WorkingHoursExtensionRequestModel.ts +66 -66
- package/src/models/WorkingHoursExtensionWorkflowModel.ts +51 -51
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
export enum WorkingHoursExtensionApprovalStatus {
|
|
5
|
-
PENDING = "Pending",
|
|
6
|
-
IN_PROGRESS = "In Progress",
|
|
7
|
-
APPROVED = "Approved",
|
|
8
|
-
REJECTED = "Rejected"
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@Entity({ name: "working_hours_extension_approvals" })
|
|
12
|
-
export class WorkingHoursExtensionApproval 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: WorkingHoursExtensionApprovalStatus,
|
|
49
|
-
default: WorkingHoursExtensionApprovalStatus.PENDING,
|
|
50
|
-
nullable: false
|
|
51
|
-
})
|
|
52
|
-
approval_status: WorkingHoursExtensionApprovalStatus;
|
|
53
|
-
|
|
54
|
-
@Column({ type: "boolean", default: true, nullable: false })
|
|
55
|
-
is_allowed: boolean;
|
|
56
|
-
|
|
57
|
-
constructor(
|
|
58
|
-
request_id: number,
|
|
59
|
-
approver_role_id: number,
|
|
60
|
-
level: number,
|
|
61
|
-
comment: string,
|
|
62
|
-
approval_status: WorkingHoursExtensionApprovalStatus,
|
|
63
|
-
service_id?: number,
|
|
64
|
-
sub_service_id?: number,
|
|
65
|
-
department_id?: number | null,
|
|
66
|
-
section_id?: number | null,
|
|
67
|
-
approver_user_id?: number | null,
|
|
68
|
-
delegate_user_id?: number | null,
|
|
69
|
-
approved_by?: number | null,
|
|
70
|
-
is_allowed?: boolean
|
|
71
|
-
) {
|
|
72
|
-
super();
|
|
73
|
-
this.request_id = request_id;
|
|
74
|
-
this.service_id = service_id ?? null;
|
|
75
|
-
this.sub_service_id = sub_service_id ?? null;
|
|
76
|
-
this.level = level;
|
|
77
|
-
this.approver_role_id = approver_role_id;
|
|
78
|
-
this.department_id = department_id ?? null;
|
|
79
|
-
this.section_id = section_id ?? null;
|
|
80
|
-
this.approver_user_id = approver_user_id ?? null;
|
|
81
|
-
this.delegate_user_id = delegate_user_id ?? null;
|
|
82
|
-
this.approved_by = approved_by ?? null;
|
|
83
|
-
this.comment = comment;
|
|
84
|
-
this.approval_status = approval_status;
|
|
85
|
-
this.is_allowed = is_allowed !== undefined ? is_allowed : true;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum WorkingHoursExtensionApprovalStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: "working_hours_extension_approvals" })
|
|
12
|
+
export class WorkingHoursExtensionApproval 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: WorkingHoursExtensionApprovalStatus,
|
|
49
|
+
default: WorkingHoursExtensionApprovalStatus.PENDING,
|
|
50
|
+
nullable: false
|
|
51
|
+
})
|
|
52
|
+
approval_status: WorkingHoursExtensionApprovalStatus;
|
|
53
|
+
|
|
54
|
+
@Column({ type: "boolean", default: true, nullable: false })
|
|
55
|
+
is_allowed: boolean;
|
|
56
|
+
|
|
57
|
+
constructor(
|
|
58
|
+
request_id: number,
|
|
59
|
+
approver_role_id: number,
|
|
60
|
+
level: number,
|
|
61
|
+
comment: string,
|
|
62
|
+
approval_status: WorkingHoursExtensionApprovalStatus,
|
|
63
|
+
service_id?: number,
|
|
64
|
+
sub_service_id?: number,
|
|
65
|
+
department_id?: number | null,
|
|
66
|
+
section_id?: number | null,
|
|
67
|
+
approver_user_id?: number | null,
|
|
68
|
+
delegate_user_id?: number | null,
|
|
69
|
+
approved_by?: number | null,
|
|
70
|
+
is_allowed?: boolean
|
|
71
|
+
) {
|
|
72
|
+
super();
|
|
73
|
+
this.request_id = request_id;
|
|
74
|
+
this.service_id = service_id ?? null;
|
|
75
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
76
|
+
this.level = level;
|
|
77
|
+
this.approver_role_id = approver_role_id;
|
|
78
|
+
this.department_id = department_id ?? null;
|
|
79
|
+
this.section_id = section_id ?? null;
|
|
80
|
+
this.approver_user_id = approver_user_id ?? null;
|
|
81
|
+
this.delegate_user_id = delegate_user_id ?? null;
|
|
82
|
+
this.approved_by = approved_by ?? null;
|
|
83
|
+
this.comment = comment;
|
|
84
|
+
this.approval_status = approval_status;
|
|
85
|
+
this.is_allowed = is_allowed !== undefined ? is_allowed : true;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
@Entity({ name: "working_hours_extension_attachments" })
|
|
5
|
-
export class WorkingHoursExtensionAttachment 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
|
-
|
|
30
|
-
constructor(
|
|
31
|
-
request_id: number,
|
|
32
|
-
file_url: string,
|
|
33
|
-
service_id?: number,
|
|
34
|
-
sub_service_id?: number,
|
|
35
|
-
file_name?: string,
|
|
36
|
-
file_type?: string,
|
|
37
|
-
file_size?: number,
|
|
38
|
-
chat_id?: number
|
|
39
|
-
) {
|
|
40
|
-
super();
|
|
41
|
-
this.request_id = request_id;
|
|
42
|
-
this.service_id = service_id ?? null;
|
|
43
|
-
this.sub_service_id = sub_service_id ?? null;
|
|
44
|
-
this.file_url = file_url;
|
|
45
|
-
this.file_name = file_name ?? "";
|
|
46
|
-
this.file_type = file_type ?? "";
|
|
47
|
-
this.file_size = file_size ?? null;
|
|
48
|
-
this.chat_id = chat_id ?? null;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: "working_hours_extension_attachments" })
|
|
5
|
+
export class WorkingHoursExtensionAttachment 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
|
+
|
|
30
|
+
constructor(
|
|
31
|
+
request_id: number,
|
|
32
|
+
file_url: string,
|
|
33
|
+
service_id?: number,
|
|
34
|
+
sub_service_id?: number,
|
|
35
|
+
file_name?: string,
|
|
36
|
+
file_type?: string,
|
|
37
|
+
file_size?: number,
|
|
38
|
+
chat_id?: number
|
|
39
|
+
) {
|
|
40
|
+
super();
|
|
41
|
+
this.request_id = request_id;
|
|
42
|
+
this.service_id = service_id ?? null;
|
|
43
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
44
|
+
this.file_url = file_url;
|
|
45
|
+
this.file_name = file_name ?? "";
|
|
46
|
+
this.file_type = file_type ?? "";
|
|
47
|
+
this.file_size = file_size ?? null;
|
|
48
|
+
this.chat_id = chat_id ?? null;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
export enum WorkingHoursExtensionMessageType {
|
|
5
|
-
TEXT = "text",
|
|
6
|
-
IMAGE = "image",
|
|
7
|
-
VIDEO = "video",
|
|
8
|
-
FILE = "file",
|
|
9
|
-
LINK = "link"
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export enum WorkingHoursExtensionChatStatus {
|
|
13
|
-
Pending = "Pending",
|
|
14
|
-
Received = "Received",
|
|
15
|
-
Approved = "Approved",
|
|
16
|
-
Rejected = "Rejected",
|
|
17
|
-
InProgress = "In Progress"
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@Entity({ name: "working_hours_extension_chats" })
|
|
21
|
-
export class WorkingHoursExtensionChat extends BaseModel {
|
|
22
|
-
@Column({ type: "int", nullable: false })
|
|
23
|
-
request_id: number;
|
|
24
|
-
|
|
25
|
-
@Column({ type: "int", nullable: false })
|
|
26
|
-
service_id: number;
|
|
27
|
-
|
|
28
|
-
@Column({ type: "int", nullable: false })
|
|
29
|
-
sub_service_id: number;
|
|
30
|
-
|
|
31
|
-
@Column({ type: "int", nullable: false })
|
|
32
|
-
user_id: number;
|
|
33
|
-
|
|
34
|
-
@Column({ type: "text", nullable: false })
|
|
35
|
-
message: string;
|
|
36
|
-
|
|
37
|
-
@Column({ type: "int", nullable: true })
|
|
38
|
-
approver_role_id: number | null;
|
|
39
|
-
|
|
40
|
-
@Column({ type: "varchar", length: 255, nullable: false, default: "Pending" })
|
|
41
|
-
status: string;
|
|
42
|
-
|
|
43
|
-
@Column({
|
|
44
|
-
type: "enum",
|
|
45
|
-
enum: WorkingHoursExtensionMessageType,
|
|
46
|
-
default: WorkingHoursExtensionMessageType.TEXT,
|
|
47
|
-
nullable: false,
|
|
48
|
-
name: "message_type"
|
|
49
|
-
})
|
|
50
|
-
messageType: WorkingHoursExtensionMessageType;
|
|
51
|
-
|
|
52
|
-
@Column({ type: "boolean", nullable: false, default: false })
|
|
53
|
-
is_internal: boolean;
|
|
54
|
-
|
|
55
|
-
@Column({ type: "int", nullable: false })
|
|
56
|
-
created_by: number;
|
|
57
|
-
|
|
58
|
-
constructor() {
|
|
59
|
-
super();
|
|
60
|
-
}
|
|
61
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum WorkingHoursExtensionMessageType {
|
|
5
|
+
TEXT = "text",
|
|
6
|
+
IMAGE = "image",
|
|
7
|
+
VIDEO = "video",
|
|
8
|
+
FILE = "file",
|
|
9
|
+
LINK = "link"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export enum WorkingHoursExtensionChatStatus {
|
|
13
|
+
Pending = "Pending",
|
|
14
|
+
Received = "Received",
|
|
15
|
+
Approved = "Approved",
|
|
16
|
+
Rejected = "Rejected",
|
|
17
|
+
InProgress = "In Progress"
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@Entity({ name: "working_hours_extension_chats" })
|
|
21
|
+
export class WorkingHoursExtensionChat extends BaseModel {
|
|
22
|
+
@Column({ type: "int", nullable: false })
|
|
23
|
+
request_id: number;
|
|
24
|
+
|
|
25
|
+
@Column({ type: "int", nullable: false })
|
|
26
|
+
service_id: number;
|
|
27
|
+
|
|
28
|
+
@Column({ type: "int", nullable: false })
|
|
29
|
+
sub_service_id: number;
|
|
30
|
+
|
|
31
|
+
@Column({ type: "int", nullable: false })
|
|
32
|
+
user_id: number;
|
|
33
|
+
|
|
34
|
+
@Column({ type: "text", nullable: false })
|
|
35
|
+
message: string;
|
|
36
|
+
|
|
37
|
+
@Column({ type: "int", nullable: true })
|
|
38
|
+
approver_role_id: number | null;
|
|
39
|
+
|
|
40
|
+
@Column({ type: "varchar", length: 255, nullable: false, default: "Pending" })
|
|
41
|
+
status: string;
|
|
42
|
+
|
|
43
|
+
@Column({
|
|
44
|
+
type: "enum",
|
|
45
|
+
enum: WorkingHoursExtensionMessageType,
|
|
46
|
+
default: WorkingHoursExtensionMessageType.TEXT,
|
|
47
|
+
nullable: false,
|
|
48
|
+
name: "message_type"
|
|
49
|
+
})
|
|
50
|
+
messageType: WorkingHoursExtensionMessageType;
|
|
51
|
+
|
|
52
|
+
@Column({ type: "boolean", nullable: false, default: false })
|
|
53
|
+
is_internal: boolean;
|
|
54
|
+
|
|
55
|
+
@Column({ type: "int", nullable: false })
|
|
56
|
+
created_by: number;
|
|
57
|
+
|
|
58
|
+
constructor() {
|
|
59
|
+
super();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
export enum WorkingHoursExtensionRequestStatus {
|
|
5
|
-
PENDING = "Pending",
|
|
6
|
-
IN_PROGRESS = "In Progress",
|
|
7
|
-
APPROVED = "Approved",
|
|
8
|
-
REJECTED = "Rejected"
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@Entity({ name: "working_hours_extension_requests" })
|
|
12
|
-
export class WorkingHoursExtensionRequest extends BaseModel {
|
|
13
|
-
@Column({ type: "int", nullable: true })
|
|
14
|
-
req_user_department_id: number | null;
|
|
15
|
-
|
|
16
|
-
@Column({ type: "int", nullable: true })
|
|
17
|
-
req_user_section_id: number | null;
|
|
18
|
-
|
|
19
|
-
@Column({ type: "int", nullable: true })
|
|
20
|
-
service_id: number | null;
|
|
21
|
-
|
|
22
|
-
@Column({ type: "int", nullable: true })
|
|
23
|
-
sub_service_id: number | null;
|
|
24
|
-
|
|
25
|
-
@Column({ type: "int", nullable: false })
|
|
26
|
-
user_id: number;
|
|
27
|
-
|
|
28
|
-
@Column({
|
|
29
|
-
type: "enum",
|
|
30
|
-
enum: WorkingHoursExtensionRequestStatus,
|
|
31
|
-
default: WorkingHoursExtensionRequestStatus.PENDING,
|
|
32
|
-
nullable: false
|
|
33
|
-
})
|
|
34
|
-
status: WorkingHoursExtensionRequestStatus;
|
|
35
|
-
|
|
36
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
37
|
-
workflow_execution_id: string | null;
|
|
38
|
-
|
|
39
|
-
@Column({ type: "date", nullable: true })
|
|
40
|
-
extension_date: Date | null;
|
|
41
|
-
|
|
42
|
-
@Column({ type: "varchar", length: 16, nullable: true })
|
|
43
|
-
requested_start_time: string | null;
|
|
44
|
-
|
|
45
|
-
@Column({ type: "varchar", length: 16, nullable: true })
|
|
46
|
-
requested_end_time: string | null;
|
|
47
|
-
|
|
48
|
-
@Column({ type: "text", nullable: false })
|
|
49
|
-
reason: string;
|
|
50
|
-
|
|
51
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
52
|
-
room_area: string | null;
|
|
53
|
-
|
|
54
|
-
@Column({ type: "text", nullable: true })
|
|
55
|
-
description: string | null;
|
|
56
|
-
|
|
57
|
-
@Column({ type: "int", nullable: false })
|
|
58
|
-
created_by: number;
|
|
59
|
-
|
|
60
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
61
|
-
reference_number: string | null;
|
|
62
|
-
|
|
63
|
-
constructor() {
|
|
64
|
-
super();
|
|
65
|
-
}
|
|
66
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum WorkingHoursExtensionRequestStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: "working_hours_extension_requests" })
|
|
12
|
+
export class WorkingHoursExtensionRequest extends BaseModel {
|
|
13
|
+
@Column({ type: "int", nullable: true })
|
|
14
|
+
req_user_department_id: number | null;
|
|
15
|
+
|
|
16
|
+
@Column({ type: "int", nullable: true })
|
|
17
|
+
req_user_section_id: number | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: "int", nullable: true })
|
|
20
|
+
service_id: number | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: "int", nullable: true })
|
|
23
|
+
sub_service_id: number | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: "int", nullable: false })
|
|
26
|
+
user_id: number;
|
|
27
|
+
|
|
28
|
+
@Column({
|
|
29
|
+
type: "enum",
|
|
30
|
+
enum: WorkingHoursExtensionRequestStatus,
|
|
31
|
+
default: WorkingHoursExtensionRequestStatus.PENDING,
|
|
32
|
+
nullable: false
|
|
33
|
+
})
|
|
34
|
+
status: WorkingHoursExtensionRequestStatus;
|
|
35
|
+
|
|
36
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
37
|
+
workflow_execution_id: string | null;
|
|
38
|
+
|
|
39
|
+
@Column({ type: "date", nullable: true })
|
|
40
|
+
extension_date: Date | null;
|
|
41
|
+
|
|
42
|
+
@Column({ type: "varchar", length: 16, nullable: true })
|
|
43
|
+
requested_start_time: string | null;
|
|
44
|
+
|
|
45
|
+
@Column({ type: "varchar", length: 16, nullable: true })
|
|
46
|
+
requested_end_time: string | null;
|
|
47
|
+
|
|
48
|
+
@Column({ type: "text", nullable: false })
|
|
49
|
+
reason: string;
|
|
50
|
+
|
|
51
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
52
|
+
room_area: string | null;
|
|
53
|
+
|
|
54
|
+
@Column({ type: "text", nullable: true })
|
|
55
|
+
description: string | null;
|
|
56
|
+
|
|
57
|
+
@Column({ type: "int", nullable: false })
|
|
58
|
+
created_by: number;
|
|
59
|
+
|
|
60
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
61
|
+
reference_number: string | null;
|
|
62
|
+
|
|
63
|
+
constructor() {
|
|
64
|
+
super();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
@Entity({ name: "working_hours_extension_workflow" })
|
|
5
|
-
export class WorkingHoursExtensionWorkflow extends BaseModel {
|
|
6
|
-
@Column({ type: "int", nullable: false })
|
|
7
|
-
request_id: number;
|
|
8
|
-
|
|
9
|
-
@Column({ type: "int", nullable: true })
|
|
10
|
-
service_id: number;
|
|
11
|
-
|
|
12
|
-
@Column({ type: "int", nullable: true })
|
|
13
|
-
sub_service_id: number;
|
|
14
|
-
|
|
15
|
-
@Column({ type: "int", nullable: true })
|
|
16
|
-
workflow_definition_id: number;
|
|
17
|
-
|
|
18
|
-
@Column({ type: "int", nullable: true })
|
|
19
|
-
current_level: number;
|
|
20
|
-
|
|
21
|
-
@Column({ type: "varchar", length: 500, nullable: true })
|
|
22
|
-
content: string;
|
|
23
|
-
|
|
24
|
-
@Column({ type: "varchar", length: 50, nullable: false })
|
|
25
|
-
status: string;
|
|
26
|
-
|
|
27
|
-
@Column({ type: "int", nullable: true })
|
|
28
|
-
step_order: number;
|
|
29
|
-
|
|
30
|
-
@Column({ type: "int", nullable: true })
|
|
31
|
-
user_id: number;
|
|
32
|
-
|
|
33
|
-
@Column({ type: "int", nullable: true })
|
|
34
|
-
role_id: number;
|
|
35
|
-
|
|
36
|
-
@Column({ type: "int", nullable: true })
|
|
37
|
-
department_id: number;
|
|
38
|
-
|
|
39
|
-
@Column({ type: "int", nullable: true })
|
|
40
|
-
section_id: number;
|
|
41
|
-
|
|
42
|
-
@Column({ type: "text", nullable: true })
|
|
43
|
-
workflow_data: string;
|
|
44
|
-
|
|
45
|
-
@Column({ type: "int", nullable: false })
|
|
46
|
-
created_by: number;
|
|
47
|
-
|
|
48
|
-
constructor() {
|
|
49
|
-
super();
|
|
50
|
-
}
|
|
51
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: "working_hours_extension_workflow" })
|
|
5
|
+
export class WorkingHoursExtensionWorkflow extends BaseModel {
|
|
6
|
+
@Column({ type: "int", nullable: false })
|
|
7
|
+
request_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: "int", nullable: true })
|
|
10
|
+
service_id: number;
|
|
11
|
+
|
|
12
|
+
@Column({ type: "int", nullable: true })
|
|
13
|
+
sub_service_id: number;
|
|
14
|
+
|
|
15
|
+
@Column({ type: "int", nullable: true })
|
|
16
|
+
workflow_definition_id: number;
|
|
17
|
+
|
|
18
|
+
@Column({ type: "int", nullable: true })
|
|
19
|
+
current_level: number;
|
|
20
|
+
|
|
21
|
+
@Column({ type: "varchar", length: 500, nullable: true })
|
|
22
|
+
content: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: "varchar", length: 50, nullable: false })
|
|
25
|
+
status: string;
|
|
26
|
+
|
|
27
|
+
@Column({ type: "int", nullable: true })
|
|
28
|
+
step_order: number;
|
|
29
|
+
|
|
30
|
+
@Column({ type: "int", nullable: true })
|
|
31
|
+
user_id: number;
|
|
32
|
+
|
|
33
|
+
@Column({ type: "int", nullable: true })
|
|
34
|
+
role_id: number;
|
|
35
|
+
|
|
36
|
+
@Column({ type: "int", nullable: true })
|
|
37
|
+
department_id: number;
|
|
38
|
+
|
|
39
|
+
@Column({ type: "int", nullable: true })
|
|
40
|
+
section_id: number;
|
|
41
|
+
|
|
42
|
+
@Column({ type: "text", nullable: true })
|
|
43
|
+
workflow_data: string;
|
|
44
|
+
|
|
45
|
+
@Column({ type: "int", nullable: false })
|
|
46
|
+
created_by: number;
|
|
47
|
+
|
|
48
|
+
constructor() {
|
|
49
|
+
super();
|
|
50
|
+
}
|
|
51
|
+
}
|