@platform-modules/foreign-ministry 1.2.16 → 1.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +17 -3
- package/dist/data-source.js +1 -11
- package/dist/index.d.ts +0 -6
- package/dist/index.js +0 -6
- package/dist/models/HelpContentMappedCategoriesModel.d.ts +6 -0
- package/dist/models/{DiplomaticClubCardChatModel.js → HelpContentMappedCategoriesModel.js} +16 -18
- package/dist/models/HelpContentMappedTagsModel.d.ts +6 -0
- package/dist/models/HelpContentMappedTagsModel.js +34 -0
- package/dist/models/HelpContentTagsModel.d.ts +5 -0
- package/dist/models/HelpContentTagsModel.js +29 -0
- package/dist/models/LeaveRequestModel.d.ts +9 -1
- package/dist/models/LeaveRequestModel.js +28 -3
- package/dist/models/questionTagsModel.d.ts +6 -0
- package/dist/models/questionTagsModel.js +34 -0
- package/dist/models/user.d.ts +2 -1
- package/dist/models/user.js +7 -2
- package/package.json +1 -1
- package/src/data-source.ts +1 -11
- package/src/index.ts +1 -7
- package/src/models/DiplomaticClubSubscriptionMasterModel.ts +26 -26
- package/src/models/DiplomaticRequestsModel.ts +154 -154
- package/src/models/LeaveRequestModel.ts +21 -1
- package/src/models/user.ts +5 -0
- package/dist/models/DiplomaticClubCardApprovalModel.d.ts +0 -16
- package/dist/models/DiplomaticClubCardApprovalModel.js +0 -58
- package/dist/models/DiplomaticClubCardAttachmentModel.d.ts +0 -9
- package/dist/models/DiplomaticClubCardAttachmentModel.js +0 -44
- package/dist/models/DiplomaticClubCardChatModel.d.ts +0 -7
- package/dist/models/DiplomaticClubCardMemberModel.d.ts +0 -13
- package/dist/models/DiplomaticClubCardMemberModel.js +0 -60
- package/dist/models/DiplomaticClubCardRequestModel.d.ts +0 -33
- package/dist/models/DiplomaticClubCardRequestModel.js +0 -98
- package/dist/models/DiplomaticClubCardWorkFlowModel.d.ts +0 -12
- package/dist/models/DiplomaticClubCardWorkFlowModel.js +0 -42
- package/dist/models/DiplomaticServiceDetailsModel.d.ts +0 -20
- package/dist/models/DiplomaticServiceDetailsModel.js +0 -65
- package/dist/models/DiplomaticSettingsModel.d.ts +0 -11
- package/dist/models/DiplomaticSettingsModel.js +0 -59
- package/dist/models/DiplomaticTitleModel.d.ts +0 -12
- package/dist/models/DiplomaticTitleModel.js +0 -45
- package/dist/models/EmployeeCardApprovalsModel.d.ts +0 -31
- package/dist/models/EmployeeCardApprovalsModel.js +0 -100
- package/dist/models/EmployeeCardAttachmentsModel.d.ts +0 -17
- package/dist/models/EmployeeCardAttachmentsModel.js +0 -69
- package/dist/models/EmployeeCardChatsModel.d.ts +0 -19
- package/dist/models/EmployeeCardChatsModel.js +0 -79
- package/dist/models/EmployeeCardRequestsModel.d.ts +0 -40
- package/dist/models/EmployeeCardRequestsModel.js +0 -126
- package/dist/models/EmployeeCardWorkFlowModel.d.ts +0 -34
- package/dist/models/EmployeeCardWorkFlowModel.js +0 -103
- package/dist/models/PassportRequestApprovalModel.d.ts +0 -22
- package/dist/models/PassportRequestApprovalModel.js +0 -91
- package/dist/models/PassportRequestAttachmentModel.d.ts +0 -10
- package/dist/models/PassportRequestAttachmentModel.js +0 -54
- package/dist/models/PassportRequestChatModel.d.ts +0 -8
- package/dist/models/PassportRequestChatModel.js +0 -44
- package/dist/models/PassportRequestDependentModel.d.ts +0 -20
- package/dist/models/PassportRequestDependentModel.js +0 -85
- package/dist/models/PassportRequestModel.d.ts +0 -40
- package/dist/models/PassportRequestModel.js +0 -128
- package/dist/models/PassportRequestWorkFlowModel.d.ts +0 -15
- package/dist/models/PassportRequestWorkFlowModel.js +0 -60
- package/dist/models/SubscriptionAmountModel.d.ts +0 -67
- package/dist/models/SubscriptionAmountModel.js +0 -114
- package/src/models/EmployeeCardApprovalsModel.ts +0 -87
- package/src/models/EmployeeCardAttachmentsModel.ts +0 -56
- package/src/models/EmployeeCardChatsModel.ts +0 -66
- package/src/models/EmployeeCardRequestsModel.ts +0 -115
- package/src/models/EmployeeCardWorkFlowModel.ts +0 -90
- /package/src/models/{LeaveConfigGradesModel.Ts → LeaveConfigGradesModel.ts} +0 -0
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Employee Card Chat/Communication Table
|
|
6
|
-
* Stores messages/comments between the requester and approvers
|
|
7
|
-
* Allows discussion regarding the employee card request
|
|
8
|
-
*/
|
|
9
|
-
@Entity({ name: 'employee_card_chats' })
|
|
10
|
-
export class EmployeeCardChat extends BaseModel {
|
|
11
|
-
|
|
12
|
-
@Column({ type: 'int', nullable: false })
|
|
13
|
-
employee_card_request_id: number; // Foreign key to employee_card_requests
|
|
14
|
-
|
|
15
|
-
@Column({ type: 'text', nullable: false })
|
|
16
|
-
content: string; // Chat message content
|
|
17
|
-
|
|
18
|
-
@Column({ type: 'int', nullable: false })
|
|
19
|
-
sender_user_id: number; // User who sent the message
|
|
20
|
-
|
|
21
|
-
@Column({ type: 'integer', nullable: true })
|
|
22
|
-
service_id: number | null; // Service context
|
|
23
|
-
|
|
24
|
-
@Column({ type: 'integer', nullable: true })
|
|
25
|
-
sub_service_id: number | null; // Sub-service context
|
|
26
|
-
|
|
27
|
-
@Column({ type: 'integer', nullable: true })
|
|
28
|
-
role_id: number | null; // Role of the sender
|
|
29
|
-
|
|
30
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
31
|
-
status: string | null; // Status of the request at the time of message
|
|
32
|
-
|
|
33
|
-
@Column({ type: 'integer', nullable: true })
|
|
34
|
-
department_id: number | null; // Department of the sender
|
|
35
|
-
|
|
36
|
-
@Column({ type: 'integer', nullable: true })
|
|
37
|
-
section_id: number | null; // Section of the sender
|
|
38
|
-
|
|
39
|
-
@Column({ type: 'boolean', default: false, nullable: true })
|
|
40
|
-
is_internal: boolean | null; // Flag to mark internal notes (visible only to approvers)
|
|
41
|
-
|
|
42
|
-
constructor(
|
|
43
|
-
employee_card_request_id: number,
|
|
44
|
-
content: string,
|
|
45
|
-
sender_user_id: number,
|
|
46
|
-
service_id: number | null,
|
|
47
|
-
sub_service_id: number | null,
|
|
48
|
-
role_id: number | null,
|
|
49
|
-
status: string | null,
|
|
50
|
-
department_id: number | null,
|
|
51
|
-
section_id: number | null,
|
|
52
|
-
is_internal: boolean | null
|
|
53
|
-
) {
|
|
54
|
-
super();
|
|
55
|
-
this.employee_card_request_id = employee_card_request_id;
|
|
56
|
-
this.content = content;
|
|
57
|
-
this.sender_user_id = sender_user_id;
|
|
58
|
-
this.service_id = service_id;
|
|
59
|
-
this.sub_service_id = sub_service_id;
|
|
60
|
-
this.role_id = role_id;
|
|
61
|
-
this.status = status;
|
|
62
|
-
this.department_id = department_id;
|
|
63
|
-
this.section_id = section_id;
|
|
64
|
-
this.is_internal = is_internal;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Employee Card Request Status Enum
|
|
6
|
-
*/
|
|
7
|
-
export enum EmployeeCardRequestStatus {
|
|
8
|
-
PENDING = "Pending",
|
|
9
|
-
APPROVED = "Approved",
|
|
10
|
-
REJECTED = "Rejected",
|
|
11
|
-
CANCELLED = "Cancelled"
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Access Type Enum - Normal or Special
|
|
16
|
-
*/
|
|
17
|
-
export enum AccessType {
|
|
18
|
-
NORMAL = "Normal",
|
|
19
|
-
SPECIAL = "Special"
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Main Employee Card Request Table (FM020)
|
|
24
|
-
* This table stores the primary employee card request data
|
|
25
|
-
*/
|
|
26
|
-
@Entity({ name: 'employee_card_requests' })
|
|
27
|
-
export class EmployeeCardRequests extends BaseModel {
|
|
28
|
-
|
|
29
|
-
// User and Department Information
|
|
30
|
-
@Column({ type: 'int', nullable: false })
|
|
31
|
-
user_id: number;
|
|
32
|
-
|
|
33
|
-
@Column({ type: 'int', nullable: true })
|
|
34
|
-
req_user_department_id: number | null;
|
|
35
|
-
|
|
36
|
-
@Column({ type: 'int', nullable: true })
|
|
37
|
-
req_user_section_id: number | null;
|
|
38
|
-
|
|
39
|
-
@Column({ type: 'int', nullable: true })
|
|
40
|
-
service_id: number | null;
|
|
41
|
-
|
|
42
|
-
@Column({ type: 'int', nullable: true })
|
|
43
|
-
sub_service_id: number | null;
|
|
44
|
-
|
|
45
|
-
// Request Status and Workflow
|
|
46
|
-
@Column({ type: 'enum', enum: EmployeeCardRequestStatus, default: EmployeeCardRequestStatus.PENDING, nullable: false })
|
|
47
|
-
status: EmployeeCardRequestStatus;
|
|
48
|
-
|
|
49
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
50
|
-
workflow_execution_id: string | null;
|
|
51
|
-
|
|
52
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
53
|
-
number: string | null;
|
|
54
|
-
|
|
55
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
56
|
-
name: string | null;
|
|
57
|
-
|
|
58
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
59
|
-
job_title: string | null;
|
|
60
|
-
|
|
61
|
-
@Column({ type: 'text', nullable: true })
|
|
62
|
-
reason_for_request: string | null;
|
|
63
|
-
|
|
64
|
-
@Column({ type: 'date', nullable: true })
|
|
65
|
-
date_of_joining: Date | null;
|
|
66
|
-
|
|
67
|
-
@Column({ type: 'date', nullable: true })
|
|
68
|
-
date_of_issue: Date | null;
|
|
69
|
-
@Column({ type: 'enum', enum: AccessType, default: AccessType.NORMAL, nullable: false })
|
|
70
|
-
access_type: AccessType; // Normal / Special (Radio Button)
|
|
71
|
-
|
|
72
|
-
// Photo from Profile (URL or reference)
|
|
73
|
-
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
74
|
-
photo_url: string | null; // Photo pulled from profile data
|
|
75
|
-
|
|
76
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
77
|
-
photo_file_name: string | null;
|
|
78
|
-
|
|
79
|
-
constructor(
|
|
80
|
-
user_id: number,
|
|
81
|
-
req_user_department_id: number | null,
|
|
82
|
-
req_user_section_id: number | null,
|
|
83
|
-
service_id: number | null,
|
|
84
|
-
sub_service_id: number | null,
|
|
85
|
-
status: EmployeeCardRequestStatus,
|
|
86
|
-
workflow_execution_id: string | null,
|
|
87
|
-
number: string | null,
|
|
88
|
-
name: string | null,
|
|
89
|
-
job_title: string | null,
|
|
90
|
-
reason_for_request: string | null,
|
|
91
|
-
date_of_joining: Date | null,
|
|
92
|
-
date_of_issue: Date | null,
|
|
93
|
-
access_type: AccessType,
|
|
94
|
-
photo_url: string | null,
|
|
95
|
-
photo_file_name: string | null
|
|
96
|
-
) {
|
|
97
|
-
super();
|
|
98
|
-
this.user_id = user_id;
|
|
99
|
-
this.req_user_department_id = req_user_department_id;
|
|
100
|
-
this.req_user_section_id = req_user_section_id;
|
|
101
|
-
this.service_id = service_id;
|
|
102
|
-
this.sub_service_id = sub_service_id;
|
|
103
|
-
this.status = status;
|
|
104
|
-
this.workflow_execution_id = workflow_execution_id;
|
|
105
|
-
this.number = number;
|
|
106
|
-
this.name = name;
|
|
107
|
-
this.job_title = job_title;
|
|
108
|
-
this.reason_for_request = reason_for_request;
|
|
109
|
-
this.date_of_joining = date_of_joining;
|
|
110
|
-
this.date_of_issue = date_of_issue;
|
|
111
|
-
this.access_type = access_type;
|
|
112
|
-
this.photo_url = photo_url;
|
|
113
|
-
this.photo_file_name = photo_file_name;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Workflow Status Enum
|
|
6
|
-
*/
|
|
7
|
-
export enum EmployeeCardWorkFlowStatus {
|
|
8
|
-
COMPLETED = "Completed",
|
|
9
|
-
NOT_YET_STARTED = "Not Yet Started",
|
|
10
|
-
PENDING = "Pending",
|
|
11
|
-
IN_PROGRESS = "In Progress"
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Employee Card Workflow Table
|
|
16
|
-
* Tracks the progress of the request through different workflow stages
|
|
17
|
-
* Provides a timeline/audit trail of the approval process
|
|
18
|
-
*
|
|
19
|
-
* Workflow paths:
|
|
20
|
-
* - Normal: Employee → Department Admin Office → Security
|
|
21
|
-
* - Special: Employee → Department Admin Office → US → Security
|
|
22
|
-
*/
|
|
23
|
-
@Entity({ name: 'employee_card_work_flows' })
|
|
24
|
-
export class EmployeeCardWorkFlow extends BaseModel {
|
|
25
|
-
|
|
26
|
-
@Column({ type: 'int', nullable: false })
|
|
27
|
-
employee_card_request_id: number; // Foreign key to employee_card_requests
|
|
28
|
-
|
|
29
|
-
@Column({ type: 'int', nullable: false, default: 0 })
|
|
30
|
-
employee_card_approval_details_id: number; // Foreign key to employee_card_approvals
|
|
31
|
-
|
|
32
|
-
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
33
|
-
content: string; // Description of the workflow step (e.g., "Pending Department Admin Office Approval")
|
|
34
|
-
|
|
35
|
-
@Column({ type: 'enum', enum: EmployeeCardWorkFlowStatus, default: EmployeeCardWorkFlowStatus.NOT_YET_STARTED, nullable: false })
|
|
36
|
-
status: EmployeeCardWorkFlowStatus; // Current status of this workflow step
|
|
37
|
-
|
|
38
|
-
@Column({ type: 'integer', nullable: true })
|
|
39
|
-
user_id: number | null; // User responsible for this step
|
|
40
|
-
|
|
41
|
-
@Column({ type: 'integer', nullable: true })
|
|
42
|
-
role_id: number | null; // Role responsible for this step
|
|
43
|
-
|
|
44
|
-
@Column({ type: 'integer', nullable: true })
|
|
45
|
-
department_id: number | null; // Department involved in this step
|
|
46
|
-
|
|
47
|
-
@Column({ type: 'integer', nullable: true })
|
|
48
|
-
section_id: number | null; // Section involved in this step
|
|
49
|
-
|
|
50
|
-
@Column({ type: 'integer', nullable: false, default: 1 })
|
|
51
|
-
level: number; // Workflow level (1: Dept Admin, 2: US/Security, 3: Security for Special)
|
|
52
|
-
|
|
53
|
-
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
54
|
-
access_type: string | null; // Normal or Special - to track workflow path
|
|
55
|
-
|
|
56
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
57
|
-
action_taken: string | null; // Action taken (e.g., "Approved", "Rejected", "Forwarded")
|
|
58
|
-
|
|
59
|
-
@Column({ type: 'timestamptz', nullable: true })
|
|
60
|
-
action_date: Date | null; // When the action was taken
|
|
61
|
-
|
|
62
|
-
constructor(
|
|
63
|
-
employee_card_request_id: number,
|
|
64
|
-
employee_card_approval_details_id: number,
|
|
65
|
-
content: string,
|
|
66
|
-
status: EmployeeCardWorkFlowStatus,
|
|
67
|
-
user_id: number | null,
|
|
68
|
-
role_id: number | null,
|
|
69
|
-
department_id: number | null,
|
|
70
|
-
section_id: number | null,
|
|
71
|
-
level: number,
|
|
72
|
-
access_type: string | null,
|
|
73
|
-
action_taken: string | null,
|
|
74
|
-
action_date: Date | null
|
|
75
|
-
) {
|
|
76
|
-
super();
|
|
77
|
-
this.employee_card_request_id = employee_card_request_id;
|
|
78
|
-
this.employee_card_approval_details_id = employee_card_approval_details_id;
|
|
79
|
-
this.content = content;
|
|
80
|
-
this.status = status;
|
|
81
|
-
this.user_id = user_id;
|
|
82
|
-
this.role_id = role_id;
|
|
83
|
-
this.department_id = department_id;
|
|
84
|
-
this.section_id = section_id;
|
|
85
|
-
this.level = level;
|
|
86
|
-
this.access_type = access_type;
|
|
87
|
-
this.action_taken = action_taken;
|
|
88
|
-
this.action_date = action_date;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
File without changes
|