@platform-modules/foreign-ministry 1.3.12 → 1.3.40
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/dist/data-source.js +0 -12
- package/dist/index.d.ts +0 -10
- package/dist/index.js +1 -17
- package/dist/models/DiplomaticWorkFlowModel.d.ts +0 -1
- package/dist/models/DiplomaticWorkFlowModel.js +0 -4
- 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/RetiredCardRequestsModel.d.ts +1 -2
- package/dist/models/RetiredCardRequestsModel.js +2 -7
- package/package.json +1 -1
- package/src/data-source.ts +0 -12
- package/src/index.ts +0 -11
- package/src/models/DiplomaticClubSubscriptionMasterModel.ts +26 -26
- package/src/models/DiplomaticRequestsModel.ts +157 -157
- package/src/models/DiplomaticWorkFlowModel.ts +0 -3
- package/src/models/LeaveConfigModel.ts +71 -71
- package/src/models/MissionTravelApprovalModel.ts +100 -100
- 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/RetiredCardRequestsModel.ts +1 -7
- 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/DiplomaticClubCardChatModel.js +0 -36
- 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/GatePassApprovalsModel.d.ts +0 -33
- package/dist/models/GatePassApprovalsModel.js +0 -110
- package/dist/models/GatePassAttachmentsModel.d.ts +0 -16
- package/dist/models/GatePassAttachmentsModel.js +0 -60
- package/dist/models/GatePassChatsModel.d.ts +0 -26
- package/dist/models/GatePassChatsModel.js +0 -84
- package/dist/models/GatePassRequestsModel.d.ts +0 -46
- package/dist/models/GatePassRequestsModel.js +0 -148
- package/dist/models/GatePassVisitorsModel.d.ts +0 -27
- package/dist/models/GatePassVisitorsModel.js +0 -115
- package/dist/models/GatePassWorkFlowModel.d.ts +0 -33
- package/dist/models/GatePassWorkFlowModel.js +0 -93
- 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/GatePassApprovalsModel.ts +0 -98
- package/src/models/GatePassAttachmentsModel.ts +0 -38
- package/src/models/GatePassChatsModel.ts +0 -72
- package/src/models/GatePassRequestsModel.ts +0 -139
- package/src/models/GatePassVisitorsModel.ts +0 -100
- package/src/models/GatePassWorkFlowModel.ts +0 -66
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Gate Pass Visitors Table
|
|
6
|
-
* Stores visitor information for each gate pass request
|
|
7
|
-
* One request can have multiple visitors
|
|
8
|
-
*/
|
|
9
|
-
@Entity({ name: 'gate_pass_visitors' })
|
|
10
|
-
export class GatePassVisitors extends BaseModel {
|
|
11
|
-
|
|
12
|
-
@Column({ type: 'int', nullable: false })
|
|
13
|
-
gate_pass_request_id: number; // Foreign key to gate_pass_requests
|
|
14
|
-
|
|
15
|
-
@Column({ type: 'int', nullable: true })
|
|
16
|
-
service_id: number | null;
|
|
17
|
-
|
|
18
|
-
@Column({ type: 'int', nullable: true })
|
|
19
|
-
sub_service_id: number | null;
|
|
20
|
-
|
|
21
|
-
// Visitor Information Fields (from requirements)
|
|
22
|
-
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
23
|
-
visitor_name: string; // اسم الزائر (Visitor Name)
|
|
24
|
-
|
|
25
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
26
|
-
visitor_id_passport_no: string | null; // رقم هوية الزائر / جواز السفر (Visitor ID / Passport No)
|
|
27
|
-
|
|
28
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
29
|
-
nationality: string | null; // الجنسية (Nationality)
|
|
30
|
-
|
|
31
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
32
|
-
job_title: string | null; // الوظيفة (The Job)
|
|
33
|
-
|
|
34
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
35
|
-
represented_entity: string | null; // الجهة التي يمثلها (The Represented Entity)
|
|
36
|
-
|
|
37
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
38
|
-
visitor_email_address: string | null; // عنوان البريد الإلكتروني للزائر (Visitor email Address)
|
|
39
|
-
|
|
40
|
-
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
41
|
-
visitor_mobile_number: string | null; // رقم هاتف الزائر (Visitor Mobile Number)
|
|
42
|
-
|
|
43
|
-
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
44
|
-
visitor_photo_url: string | null; // صورة الزائر (Visitor Photo) - Required for Long Term Gate pass
|
|
45
|
-
|
|
46
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
47
|
-
visitor_photo_file_name: string | null;
|
|
48
|
-
|
|
49
|
-
// QR Code for Gate Pass
|
|
50
|
-
@Column({ type: 'text', nullable: true })
|
|
51
|
-
qr_code_url: string | null; // QR code URL for this visitor (data URL can be 6000+ characters)
|
|
52
|
-
|
|
53
|
-
@Column({ type: 'text', nullable: true })
|
|
54
|
-
qr_code_data: string | null; // QR code data (JSON string)
|
|
55
|
-
|
|
56
|
-
// Gate Pass Generation
|
|
57
|
-
@Column({ type: 'boolean', default: false, nullable: false })
|
|
58
|
-
gate_pass_generated: boolean; // Whether gate pass has been generated
|
|
59
|
-
|
|
60
|
-
@Column({ type: 'timestamptz', nullable: true })
|
|
61
|
-
gate_pass_generated_at: Date | null; // When gate pass was generated
|
|
62
|
-
|
|
63
|
-
@Column({ type: 'boolean', default: false, nullable: false })
|
|
64
|
-
email_sent: boolean; // Whether email has been sent to visitor
|
|
65
|
-
|
|
66
|
-
@Column({ type: 'timestamptz', nullable: true })
|
|
67
|
-
email_sent_at: Date | null; // When email was sent
|
|
68
|
-
|
|
69
|
-
constructor(
|
|
70
|
-
gate_pass_request_id: number,
|
|
71
|
-
visitor_name: string,
|
|
72
|
-
service_id: number | null,
|
|
73
|
-
sub_service_id: number | null,
|
|
74
|
-
visitor_id_passport_no: string | null,
|
|
75
|
-
nationality: string | null,
|
|
76
|
-
job_title: string | null,
|
|
77
|
-
represented_entity: string | null,
|
|
78
|
-
visitor_email_address: string | null,
|
|
79
|
-
visitor_mobile_number: string | null,
|
|
80
|
-
visitor_photo_url: string | null,
|
|
81
|
-
visitor_photo_file_name: string | null
|
|
82
|
-
) {
|
|
83
|
-
super();
|
|
84
|
-
this.gate_pass_request_id = gate_pass_request_id;
|
|
85
|
-
this.service_id = service_id;
|
|
86
|
-
this.sub_service_id = sub_service_id;
|
|
87
|
-
this.visitor_name = visitor_name;
|
|
88
|
-
this.visitor_id_passport_no = visitor_id_passport_no;
|
|
89
|
-
this.nationality = nationality;
|
|
90
|
-
this.job_title = job_title;
|
|
91
|
-
this.represented_entity = represented_entity;
|
|
92
|
-
this.visitor_email_address = visitor_email_address;
|
|
93
|
-
this.visitor_mobile_number = visitor_mobile_number;
|
|
94
|
-
this.visitor_photo_url = visitor_photo_url;
|
|
95
|
-
this.visitor_photo_file_name = visitor_photo_file_name;
|
|
96
|
-
this.gate_pass_generated = false;
|
|
97
|
-
this.email_sent = false;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Gate Pass Workflow Status Enum
|
|
6
|
-
*/
|
|
7
|
-
export enum GatePassWorkFlowStatus {
|
|
8
|
-
COMPLETED = "Completed",
|
|
9
|
-
NOT_YET_STARTED = "Not Yet Started",
|
|
10
|
-
PENDING = "Pending",
|
|
11
|
-
IN_PROGRESS = "In Progress"
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Gate Pass Workflow Table
|
|
16
|
-
* Tracks the progress of the request through different workflow stages
|
|
17
|
-
* Provides a timeline/audit trail of the process
|
|
18
|
-
*
|
|
19
|
-
* Workflow: Employee → Department Admin Office → Security Department
|
|
20
|
-
*/
|
|
21
|
-
@Entity({ name: 'gate_pass_workflows' })
|
|
22
|
-
export class GatePassWorkFlow extends BaseModel {
|
|
23
|
-
|
|
24
|
-
@Column({ type: 'int', nullable: false })
|
|
25
|
-
gate_pass_request_id: number; // Foreign key to gate_pass_requests
|
|
26
|
-
|
|
27
|
-
@Column({ type: 'int', nullable: false, default: 0 })
|
|
28
|
-
gate_pass_approval_details_id: number; // Foreign key to gate_pass_approvals
|
|
29
|
-
|
|
30
|
-
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
31
|
-
content: string; // Description of the workflow step
|
|
32
|
-
|
|
33
|
-
@Column({ type: 'enum', enum: GatePassWorkFlowStatus, default: GatePassWorkFlowStatus.NOT_YET_STARTED, nullable: false })
|
|
34
|
-
status: GatePassWorkFlowStatus; // Current status of this workflow step
|
|
35
|
-
|
|
36
|
-
@Column({ type: 'integer', nullable: true })
|
|
37
|
-
user_id: number | null; // User responsible for this step
|
|
38
|
-
|
|
39
|
-
@Column({ type: 'integer', nullable: true })
|
|
40
|
-
role_id: number | null; // Role responsible for this step
|
|
41
|
-
|
|
42
|
-
@Column({ type: 'integer', nullable: true })
|
|
43
|
-
department_id: number | null; // Department involved in this step
|
|
44
|
-
|
|
45
|
-
@Column({ type: 'integer', nullable: true })
|
|
46
|
-
section_id: number | null; // Section involved in this step
|
|
47
|
-
|
|
48
|
-
@Column({ type: 'integer', nullable: false, default: 1 })
|
|
49
|
-
level: number; // Workflow level
|
|
50
|
-
|
|
51
|
-
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
52
|
-
access_type: string | null; // Normal - to track workflow path
|
|
53
|
-
|
|
54
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
55
|
-
action_taken: string | null; // Action taken
|
|
56
|
-
|
|
57
|
-
@Column({ type: 'timestamptz', nullable: true })
|
|
58
|
-
action_date: Date | null; // Date when action was taken
|
|
59
|
-
|
|
60
|
-
@Column({ type: 'integer', nullable: true })
|
|
61
|
-
service_id: number | null;
|
|
62
|
-
|
|
63
|
-
@Column({ type: 'integer', nullable: true })
|
|
64
|
-
sub_service_id: number | null;
|
|
65
|
-
}
|
|
66
|
-
|