@platform-modules/foreign-ministry 1.1.21 → 1.1.23
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 +11 -3
- package/dist/data-source.js +8 -16
- package/dist/index.d.ts +4 -8
- package/dist/index.js +4 -8
- package/dist/models/AttendanceModel.d.ts +2 -1
- package/dist/models/AttendanceModel.js +2 -1
- 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/LeaveApprovalsModel.d.ts +4 -1
- package/dist/models/LeaveApprovalsModel.js +9 -0
- package/dist/models/UpdateAttendanceApprovalModel.d.ts +21 -0
- package/dist/models/UpdateAttendanceApprovalModel.js +75 -0
- package/dist/models/UpdateAttendanceChatModel.d.ts +16 -0
- package/dist/models/UpdateAttendanceChatModel.js +52 -0
- package/dist/models/UpdateAttendanceRequestModel.d.ts +28 -0
- package/dist/models/UpdateAttendanceRequestModel.js +86 -0
- package/dist/models/UpdateAttendanceWorkflowModel.d.ts +13 -0
- package/dist/models/UpdateAttendanceWorkflowModel.js +46 -0
- package/dist/models/WorkflowTask.d.ts +5 -2
- package/dist/models/WorkflowTask.js +28 -4
- package/dist/models/WorkflowTaskNames.d.ts +12 -3
- package/dist/models/WorkflowTaskNames.js +28 -9
- package/dist/models/questionTagsModel.d.ts +6 -0
- package/dist/models/questionTagsModel.js +34 -0
- package/package.json +1 -1
- package/src/data-source.ts +8 -16
- package/src/index.ts +4 -8
- package/src/models/AttendanceModel.ts +2 -1
- package/src/models/LeaveApprovalsModel.ts +8 -1
- package/src/models/UpdateAttendanceApprovalModel.ts +50 -0
- package/src/models/UpdateAttendanceChatModel.ts +34 -0
- package/src/models/UpdateAttendanceRequestModel.ts +62 -0
- package/src/models/UpdateAttendanceWorkflowModel.ts +28 -0
- package/src/models/WorkflowTask.ts +31 -4
- package/src/models/WorkflowTaskNames.ts +27 -8
- 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/DiplomaticTitleModel.d.ts +0 -12
- package/dist/models/DiplomaticTitleModel.js +0 -45
- package/dist/models/SubscriptionAmountModel.d.ts +0 -10
- package/dist/models/SubscriptionAmountModel.js +0 -45
- package/src/models/DiplomaticClubCardApprovalModel.ts +0 -37
- package/src/models/DiplomaticClubCardAttachmentModel.ts +0 -25
- package/src/models/DiplomaticClubCardChatModel.ts +0 -19
- package/src/models/DiplomaticClubCardMemberModel.ts +0 -37
- package/src/models/DiplomaticClubCardRequestModel.ts +0 -70
- package/src/models/DiplomaticClubCardWorkFlowModel.ts +0 -25
- package/src/models/DiplomaticTitleModel.ts +0 -27
- package/src/models/SubscriptionAmountModel.ts +0 -26
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum MembershipType {
|
|
5
|
-
SINGLE = "Single",
|
|
6
|
-
FAMILY = "Family"
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export enum RequestStatus {
|
|
10
|
-
PENDING = "Pending",
|
|
11
|
-
APPROVED = "Approved",
|
|
12
|
-
REJECTED = "Rejected",
|
|
13
|
-
IN_PROGRESS = "In Progress"
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export enum RequestType {
|
|
17
|
-
EMPLOYEE_SELF = "Employee Self",
|
|
18
|
-
EMPLOYEE_FAMILY = "Employee Family",
|
|
19
|
-
NON_EMPLOYEE = "Non Employee"
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@Entity({ name: 'diplomatic_club_card_requests' })
|
|
23
|
-
export class DiplomaticClubCardRequests extends BaseModel {
|
|
24
|
-
|
|
25
|
-
@Column({ type: 'int', nullable: true })
|
|
26
|
-
user_id: number | null; // For employee requests, null for non-employee
|
|
27
|
-
|
|
28
|
-
@Column({ type: 'varchar', length: 50, nullable: false })
|
|
29
|
-
membership_type: MembershipType; // Single or Family
|
|
30
|
-
|
|
31
|
-
@Column({ type: 'enum', enum: RequestType, nullable: false })
|
|
32
|
-
request_type: RequestType; // Employee Self, Employee Family, Non Employee
|
|
33
|
-
|
|
34
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
35
|
-
member_name: string | null; // For single membership
|
|
36
|
-
|
|
37
|
-
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
38
|
-
membership_id: string | null; // Auto generated
|
|
39
|
-
|
|
40
|
-
@Column({ type: 'int', nullable: true })
|
|
41
|
-
diplomatic_title_id: number | null; // Reference to diplomatic_titles master
|
|
42
|
-
|
|
43
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
44
|
-
organization: string | null; // Auto filled as "Ministry" for employees, manual for non-employees
|
|
45
|
-
|
|
46
|
-
@Column({ type: 'date', nullable: true })
|
|
47
|
-
expiry_date: Date | null;
|
|
48
|
-
|
|
49
|
-
@Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
|
|
50
|
-
subscription_amount: number | null; // Pulled from master
|
|
51
|
-
|
|
52
|
-
@Column({ type: 'enum', enum: RequestStatus, default: RequestStatus.PENDING, nullable: false })
|
|
53
|
-
status: RequestStatus;
|
|
54
|
-
|
|
55
|
-
@Column({ type: 'int', nullable: true })
|
|
56
|
-
service_id: number | null;
|
|
57
|
-
|
|
58
|
-
@Column({ type: 'int', nullable: true })
|
|
59
|
-
sub_service_id: number | null;
|
|
60
|
-
|
|
61
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
62
|
-
workflow_execution_id: string | null;
|
|
63
|
-
|
|
64
|
-
@Column({ type: 'text', nullable: true })
|
|
65
|
-
notes: string | null;
|
|
66
|
-
|
|
67
|
-
@Column({ type: 'int', nullable: true })
|
|
68
|
-
registered_by_user_id: number | null; // For non-employee registration by diplomatic club staff
|
|
69
|
-
}
|
|
70
|
-
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum DiplomaticClubCardWorkFlowStatus {
|
|
5
|
-
COMPLETED = "Completed",
|
|
6
|
-
NOT_YET_STARTED = "Not Yet Started",
|
|
7
|
-
PENDING = "Pending"
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@Entity({ name: 'diplomatic_club_card_work_flows' })
|
|
11
|
-
export class DiplomaticClubCardWorkFlow extends BaseModel {
|
|
12
|
-
|
|
13
|
-
@Column({ type: 'int', nullable: false })
|
|
14
|
-
request_id: number; // Reference to diplomatic_club_card_requests
|
|
15
|
-
|
|
16
|
-
@Column({ type: 'int', nullable: false, default: 0 })
|
|
17
|
-
approval_details_id: number; // Reference to diplomatic_club_card_approvals
|
|
18
|
-
|
|
19
|
-
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
20
|
-
content: string;
|
|
21
|
-
|
|
22
|
-
@Column({ type: 'enum', enum: DiplomaticClubCardWorkFlowStatus, default: DiplomaticClubCardWorkFlowStatus.NOT_YET_STARTED, nullable: false })
|
|
23
|
-
status: DiplomaticClubCardWorkFlowStatus;
|
|
24
|
-
}
|
|
25
|
-
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum TitleCategory {
|
|
5
|
-
EMPLOYEE = "Employee",
|
|
6
|
-
NON_EMPLOYEE = "Non Employee"
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@Entity({ name: 'diplomatic_titles' })
|
|
10
|
-
export class DiplomaticTitles extends BaseModel {
|
|
11
|
-
|
|
12
|
-
@Column({ type: 'varchar', length: 100, nullable: false })
|
|
13
|
-
title_name: string; // Agent or Equivalent, Ambassador, etc.
|
|
14
|
-
|
|
15
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
16
|
-
title_name_arabic: string | null;
|
|
17
|
-
|
|
18
|
-
@Column({ type: 'enum', enum: TitleCategory, nullable: false })
|
|
19
|
-
category: TitleCategory; // Employee or Non Employee
|
|
20
|
-
|
|
21
|
-
@Column({ type: 'boolean', default: true, nullable: false })
|
|
22
|
-
is_active: boolean;
|
|
23
|
-
|
|
24
|
-
@Column({ type: 'int', nullable: true })
|
|
25
|
-
display_order: number | null;
|
|
26
|
-
}
|
|
27
|
-
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
import { MembershipType } from './DiplomaticClubCardRequestModel';
|
|
4
|
-
|
|
5
|
-
@Entity({ name: 'subscription_amounts' })
|
|
6
|
-
export class SubscriptionAmounts extends BaseModel {
|
|
7
|
-
|
|
8
|
-
@Column({ type: 'enum', enum: MembershipType, nullable: false })
|
|
9
|
-
membership_type: MembershipType; // Single or Family
|
|
10
|
-
|
|
11
|
-
@Column({ type: 'decimal', precision: 10, scale: 2, nullable: false })
|
|
12
|
-
amount: number;
|
|
13
|
-
|
|
14
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
15
|
-
description: string | null;
|
|
16
|
-
|
|
17
|
-
@Column({ type: 'boolean', default: true, nullable: false })
|
|
18
|
-
is_active: boolean;
|
|
19
|
-
|
|
20
|
-
@Column({ type: 'date', nullable: true })
|
|
21
|
-
effective_from: Date | null;
|
|
22
|
-
|
|
23
|
-
@Column({ type: 'date', nullable: true })
|
|
24
|
-
effective_to: Date | null;
|
|
25
|
-
}
|
|
26
|
-
|