@platform-modules/foreign-ministry 1.3.75 → 1.3.78
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 +1 -6
- package/dist/index.d.ts +1 -5
- package/dist/index.js +3 -7
- package/dist/models/DiplomaticClubCardApprovalModel.d.ts +16 -0
- package/dist/models/DiplomaticClubCardApprovalModel.js +58 -0
- package/dist/models/DiplomaticClubCardAttachmentModel.d.ts +9 -0
- package/dist/models/DiplomaticClubCardAttachmentModel.js +44 -0
- package/dist/models/DiplomaticClubCardChatModel.d.ts +7 -0
- package/dist/models/DiplomaticClubCardChatModel.js +36 -0
- package/dist/models/DiplomaticClubCardMemberModel.d.ts +13 -0
- package/dist/models/DiplomaticClubCardMemberModel.js +60 -0
- package/dist/models/DiplomaticClubCardRequestModel.d.ts +33 -0
- package/dist/models/DiplomaticClubCardRequestModel.js +98 -0
- package/dist/models/DiplomaticClubCardWorkFlowModel.d.ts +12 -0
- package/dist/models/DiplomaticClubCardWorkFlowModel.js +42 -0
- package/dist/models/DiplomaticServiceDetailsModel.d.ts +20 -0
- package/dist/models/DiplomaticServiceDetailsModel.js +65 -0
- package/dist/models/DiplomaticSettingsModel.d.ts +11 -0
- package/dist/models/DiplomaticSettingsModel.js +59 -0
- package/dist/models/DiplomaticTitleModel.d.ts +12 -0
- package/dist/models/DiplomaticTitleModel.js +45 -0
- package/dist/models/PassportRequestApprovalModel.d.ts +22 -0
- package/dist/models/PassportRequestApprovalModel.js +91 -0
- package/dist/models/PassportRequestAttachmentModel.d.ts +10 -0
- package/dist/models/PassportRequestAttachmentModel.js +54 -0
- package/dist/models/PassportRequestChatModel.d.ts +8 -0
- package/dist/models/PassportRequestChatModel.js +44 -0
- package/dist/models/PassportRequestDependentModel.d.ts +20 -0
- package/dist/models/PassportRequestDependentModel.js +85 -0
- package/dist/models/PassportRequestModel.d.ts +40 -0
- package/dist/models/PassportRequestModel.js +128 -0
- package/dist/models/PassportRequestWorkFlowModel.d.ts +15 -0
- package/dist/models/PassportRequestWorkFlowModel.js +60 -0
- package/dist/models/RetiredCardRequestsModel.d.ts +2 -1
- package/dist/models/RetiredCardRequestsModel.js +1 -0
- package/dist/models/SubscriptionAmountModel.d.ts +67 -0
- package/dist/models/SubscriptionAmountModel.js +114 -0
- package/dist/models/TelephoneDirectoryModel.d.ts +3 -1
- package/dist/models/TelephoneDirectoryModel.js +12 -2
- package/dist/models/UserEmploymentDetailsModel.d.ts +0 -5
- package/dist/models/UserEmploymentDetailsModel.js +0 -20
- package/dist/models/UserPersonalDetailsModel.d.ts +0 -11
- package/dist/models/UserPersonalDetailsModel.js +0 -44
- package/package.json +1 -1
- package/src/index.ts +220 -225
- package/src/models/DiplomaticClubCardMembersModel.ts +75 -75
- package/src/models/DiplomaticClubSubscriptionMasterModel.ts +26 -26
- package/src/models/DiplomaticRequestsModel.ts +157 -157
- 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 +2 -1
- package/src/models/SectionModel.ts +35 -35
- package/src/models/TelephoneDirectoryModel.ts +8 -1
- package/src/models/UserEmploymentDetailsModel.ts +0 -15
- package/src/models/UserPersonalDetailsModel.ts +0 -32
- package/dist/models/DocumentTranslationApprovalModel.d.ts +0 -22
- package/dist/models/DocumentTranslationApprovalModel.js +0 -79
- package/dist/models/DocumentTranslationAttachmentModel.d.ts +0 -11
- package/dist/models/DocumentTranslationAttachmentModel.js +0 -52
- package/dist/models/DocumentTranslationChatModel.d.ts +0 -19
- package/dist/models/DocumentTranslationChatModel.js +0 -78
- package/dist/models/DocumentTranslationRequestModel.d.ts +0 -25
- package/dist/models/DocumentTranslationRequestModel.js +0 -74
- package/dist/models/DocumentTranslationWorkflowModel.d.ts +0 -17
- package/dist/models/DocumentTranslationWorkflowModel.js +0 -62
- package/dist/models/MissionTravelClassConfigModel.d.ts +0 -10
- package/dist/models/MissionTravelClassConfigModel.js +0 -50
- package/dist/models/MissionTravelPerdiemModel.d.ts +0 -10
- package/dist/models/MissionTravelPerdiemModel.js +0 -54
- package/src/models/DocumentTranslationApprovalModel.ts +0 -52
- package/src/models/DocumentTranslationAttachmentModel.ts +0 -31
- package/src/models/DocumentTranslationChatModel.ts +0 -66
- package/src/models/DocumentTranslationRequestModel.ts +0 -54
- package/src/models/DocumentTranslationWorkflowModel.ts +0 -39
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum MissionTravelWorkFlowStatus {
|
|
5
|
-
COMPLETED = "Completed",
|
|
6
|
-
NOT_YET_STARTED = "Not Yet Started",
|
|
7
|
-
PENDING = "Pending"
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@Entity({ name: 'mission_travel_workflows' })
|
|
11
|
-
export class MissionTravelWorkFlow extends BaseModel {
|
|
12
|
-
@Column({ type: 'int', nullable: false })
|
|
13
|
-
request_id: number;
|
|
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
|
-
@Column({ type: 'int', nullable: true })
|
|
22
|
-
order: number | null;
|
|
23
|
-
|
|
24
|
-
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
25
|
-
content: string;
|
|
26
|
-
|
|
27
|
-
@Column({ type: 'enum', enum: MissionTravelWorkFlowStatus, default: MissionTravelWorkFlowStatus.NOT_YET_STARTED, nullable: false })
|
|
28
|
-
status: MissionTravelWorkFlowStatus;
|
|
29
|
-
|
|
30
|
-
@Column({ type: 'integer', nullable: true })
|
|
31
|
-
user_id: number | null;
|
|
32
|
-
|
|
33
|
-
@Column({ type: 'integer', nullable: true })
|
|
34
|
-
role_id: number | null;
|
|
35
|
-
|
|
36
|
-
@Column({ type: 'integer', nullable: true })
|
|
37
|
-
department_id: number | null;
|
|
38
|
-
|
|
39
|
-
@Column({ type: 'integer', nullable: true })
|
|
40
|
-
section_id: number | null;
|
|
41
|
-
|
|
42
|
-
constructor(request_id: number, content: string, status: MissionTravelWorkFlowStatus, order?: number, service_id?: number | null, sub_service_id?: number | null, user_id?: number | null, role_id?: number | null, department_id?: number | null, section_id?: number | null) {
|
|
43
|
-
super();
|
|
44
|
-
this.request_id = request_id;
|
|
45
|
-
this.content = content;
|
|
46
|
-
this.status = status;
|
|
47
|
-
this.order = order || null;
|
|
48
|
-
this.service_id = service_id ?? null;
|
|
49
|
-
this.sub_service_id = sub_service_id ?? null;
|
|
50
|
-
this.user_id = user_id || null;
|
|
51
|
-
this.role_id = role_id || null;
|
|
52
|
-
this.department_id = department_id || null;
|
|
53
|
-
this.section_id = section_id || null;
|
|
54
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum MissionTravelWorkFlowStatus {
|
|
5
|
+
COMPLETED = "Completed",
|
|
6
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
7
|
+
PENDING = "Pending"
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@Entity({ name: 'mission_travel_workflows' })
|
|
11
|
+
export class MissionTravelWorkFlow extends BaseModel {
|
|
12
|
+
@Column({ type: 'int', nullable: false })
|
|
13
|
+
request_id: number;
|
|
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
|
+
@Column({ type: 'int', nullable: true })
|
|
22
|
+
order: number | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
25
|
+
content: string;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'enum', enum: MissionTravelWorkFlowStatus, default: MissionTravelWorkFlowStatus.NOT_YET_STARTED, nullable: false })
|
|
28
|
+
status: MissionTravelWorkFlowStatus;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'integer', nullable: true })
|
|
31
|
+
user_id: number | null;
|
|
32
|
+
|
|
33
|
+
@Column({ type: 'integer', nullable: true })
|
|
34
|
+
role_id: number | null;
|
|
35
|
+
|
|
36
|
+
@Column({ type: 'integer', nullable: true })
|
|
37
|
+
department_id: number | null;
|
|
38
|
+
|
|
39
|
+
@Column({ type: 'integer', nullable: true })
|
|
40
|
+
section_id: number | null;
|
|
41
|
+
|
|
42
|
+
constructor(request_id: number, content: string, status: MissionTravelWorkFlowStatus, order?: number, service_id?: number | null, sub_service_id?: number | null, user_id?: number | null, role_id?: number | null, department_id?: number | null, section_id?: number | null) {
|
|
43
|
+
super();
|
|
44
|
+
this.request_id = request_id;
|
|
45
|
+
this.content = content;
|
|
46
|
+
this.status = status;
|
|
47
|
+
this.order = order || null;
|
|
48
|
+
this.service_id = service_id ?? null;
|
|
49
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
50
|
+
this.user_id = user_id || null;
|
|
51
|
+
this.role_id = role_id || null;
|
|
52
|
+
this.department_id = department_id || null;
|
|
53
|
+
this.section_id = section_id || null;
|
|
54
|
+
}
|
|
55
55
|
}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'sections' })
|
|
5
|
-
export class Sections extends BaseModel {
|
|
6
|
-
|
|
7
|
-
@Column({ type: 'varchar', length: 64, nullable: false })
|
|
8
|
-
section_name: string;
|
|
9
|
-
|
|
10
|
-
@Column({ type: 'varchar', length: 64, nullable: false })
|
|
11
|
-
section_code: string;
|
|
12
|
-
|
|
13
|
-
@Column({ nullable: false })
|
|
14
|
-
section_description: string;
|
|
15
|
-
|
|
16
|
-
@Column({ type: 'bigint', nullable: true })
|
|
17
|
-
department_id: number;
|
|
18
|
-
|
|
19
|
-
@Column({ nullable: true , default: false})
|
|
20
|
-
is_followup_sec?: boolean;
|
|
21
|
-
|
|
22
|
-
constructor(
|
|
23
|
-
section_name: string,
|
|
24
|
-
section_code: string,
|
|
25
|
-
section_description: string,
|
|
26
|
-
department_id: number,
|
|
27
|
-
is_followup_sec: boolean
|
|
28
|
-
) {
|
|
29
|
-
super();
|
|
30
|
-
this.section_name = section_name
|
|
31
|
-
this.section_code = section_code
|
|
32
|
-
this.section_description = section_description
|
|
33
|
-
this.department_id = department_id
|
|
34
|
-
this.is_followup_sec = is_followup_sec
|
|
35
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'sections' })
|
|
5
|
+
export class Sections extends BaseModel {
|
|
6
|
+
|
|
7
|
+
@Column({ type: 'varchar', length: 64, nullable: false })
|
|
8
|
+
section_name: string;
|
|
9
|
+
|
|
10
|
+
@Column({ type: 'varchar', length: 64, nullable: false })
|
|
11
|
+
section_code: string;
|
|
12
|
+
|
|
13
|
+
@Column({ nullable: false })
|
|
14
|
+
section_description: string;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'bigint', nullable: true })
|
|
17
|
+
department_id: number;
|
|
18
|
+
|
|
19
|
+
@Column({ nullable: true , default: false})
|
|
20
|
+
is_followup_sec?: boolean;
|
|
21
|
+
|
|
22
|
+
constructor(
|
|
23
|
+
section_name: string,
|
|
24
|
+
section_code: string,
|
|
25
|
+
section_description: string,
|
|
26
|
+
department_id: number,
|
|
27
|
+
is_followup_sec: boolean
|
|
28
|
+
) {
|
|
29
|
+
super();
|
|
30
|
+
this.section_name = section_name
|
|
31
|
+
this.section_code = section_code
|
|
32
|
+
this.section_description = section_description
|
|
33
|
+
this.department_id = department_id
|
|
34
|
+
this.is_followup_sec = is_followup_sec
|
|
35
|
+
}
|
|
36
36
|
}
|
|
@@ -35,6 +35,8 @@ export class TelephoneDirectory extends BaseModel {
|
|
|
35
35
|
@Column({ type: "varchar", length: 10, nullable: true })
|
|
36
36
|
extension_number: string; // Extension Number - can be generic or linked to employee
|
|
37
37
|
|
|
38
|
+
@Column({ type: "varchar", length: 20, nullable: true })
|
|
39
|
+
fax_number: string; // Fax Number
|
|
38
40
|
|
|
39
41
|
@Column({ type: "varchar", length: 255, nullable: true })
|
|
40
42
|
location: string; // Optional
|
|
@@ -47,6 +49,9 @@ export class TelephoneDirectory extends BaseModel {
|
|
|
47
49
|
@Column({ type: "int", nullable: true })
|
|
48
50
|
employee_id: number | null; // If extension is linked to employee profile
|
|
49
51
|
|
|
52
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
53
|
+
street: string; // Street address
|
|
54
|
+
|
|
50
55
|
@Column({ type: "varchar", length: 100, nullable: true })
|
|
51
56
|
city: string;
|
|
52
57
|
|
|
@@ -69,7 +74,7 @@ export class TelephoneDirectory extends BaseModel {
|
|
|
69
74
|
@Column({ type: "int", nullable: true })
|
|
70
75
|
sub_service_id: number;
|
|
71
76
|
|
|
72
|
-
constructor(category?: "FM" | "Embassy", name?: string, position?: string, diplomatic_title?: string, embassy_id?: number | null, contextual_search?: string | null, email?: string, contact_number?: string, extension_number?: string, location?: string, department_id?: number, employee_id?: number, city?: string, state?: string, zip_code?: string, country?: string, photo_url?: string, service_id?: number, sub_service_id?: number) {
|
|
77
|
+
constructor(category?: "FM" | "Embassy", name?: string, position?: string, diplomatic_title?: string, embassy_id?: number | null, contextual_search?: string | null, email?: string, contact_number?: string, extension_number?: string, fax_number?: string, location?: string, department_id?: number, employee_id?: number, street?: string, city?: string, state?: string, zip_code?: string, country?: string, photo_url?: string, service_id?: number, sub_service_id?: number) {
|
|
73
78
|
super();
|
|
74
79
|
this.category = category || "FM";
|
|
75
80
|
this.name = name || "";
|
|
@@ -80,9 +85,11 @@ export class TelephoneDirectory extends BaseModel {
|
|
|
80
85
|
this.email = email || "";
|
|
81
86
|
this.contact_number = contact_number || "";
|
|
82
87
|
this.extension_number = extension_number || "";
|
|
88
|
+
this.fax_number = fax_number || "";
|
|
83
89
|
this.location = location || "";
|
|
84
90
|
this.department_id = department_id || 0;
|
|
85
91
|
this.employee_id = employee_id || 0;
|
|
92
|
+
this.street = street || "";
|
|
86
93
|
this.city = city || "";
|
|
87
94
|
this.state = state || "";
|
|
88
95
|
this.zip_code = zip_code || "";
|
|
@@ -12,9 +12,6 @@ export class UserEmploymentDetails extends BaseModel {
|
|
|
12
12
|
user_id: number; // Foreign key to users table
|
|
13
13
|
|
|
14
14
|
// Job Information
|
|
15
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
16
|
-
job_title: string | null;
|
|
17
|
-
|
|
18
15
|
@Column({ type: 'date', nullable: true })
|
|
19
16
|
date_of_decree_issuance: Date | null;
|
|
20
17
|
|
|
@@ -24,9 +21,6 @@ export class UserEmploymentDetails extends BaseModel {
|
|
|
24
21
|
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
25
22
|
information_number: string | null;
|
|
26
23
|
|
|
27
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
28
|
-
manpower_number: string | null;
|
|
29
|
-
|
|
30
24
|
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
31
25
|
computer_number: string | null;
|
|
32
26
|
|
|
@@ -80,9 +74,6 @@ export class UserEmploymentDetails extends BaseModel {
|
|
|
80
74
|
job_description: string | null;
|
|
81
75
|
|
|
82
76
|
// Appointment Information
|
|
83
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
84
|
-
country_appointment: string | null;
|
|
85
|
-
|
|
86
77
|
@Column({ type: 'date', nullable: true })
|
|
87
78
|
date_of_appointment: Date | null;
|
|
88
79
|
|
|
@@ -98,15 +89,9 @@ export class UserEmploymentDetails extends BaseModel {
|
|
|
98
89
|
@Column({ type: 'boolean', nullable: true })
|
|
99
90
|
mc_work: boolean | null; // M&C Work
|
|
100
91
|
|
|
101
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
102
|
-
office: string | null;
|
|
103
|
-
|
|
104
92
|
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
105
93
|
governorate_name: string | null;
|
|
106
94
|
|
|
107
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
108
|
-
department: string | null;
|
|
109
|
-
|
|
110
95
|
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
111
96
|
works_in_department: string | null;
|
|
112
97
|
|
|
@@ -34,33 +34,13 @@ export class UserPersonalDetails extends BaseModel {
|
|
|
34
34
|
previous_name: string | null;
|
|
35
35
|
|
|
36
36
|
// Personal Information
|
|
37
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
38
|
-
religion: string | null;
|
|
39
|
-
|
|
40
37
|
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
41
38
|
sect: string | null;
|
|
42
39
|
|
|
43
|
-
@Column({ type: 'date', nullable: true })
|
|
44
|
-
date_of_birth: Date | null;
|
|
45
|
-
|
|
46
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
47
|
-
place_of_birth: string | null;
|
|
48
|
-
|
|
49
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
50
|
-
nationality: string | null;
|
|
51
|
-
|
|
52
|
-
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
53
|
-
gender: string | null;
|
|
54
|
-
|
|
55
|
-
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
56
|
-
marital_status: string | null;
|
|
57
|
-
|
|
58
40
|
@Column({ type: 'int', nullable: true })
|
|
59
41
|
number_of_dependents: number | null;
|
|
60
42
|
|
|
61
43
|
// Passport Information
|
|
62
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
63
|
-
passport_number: string | null;
|
|
64
44
|
|
|
65
45
|
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
66
46
|
passport_type: string | null;
|
|
@@ -112,22 +92,10 @@ export class UserPersonalDetails extends BaseModel {
|
|
|
112
92
|
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
113
93
|
locality: string | null;
|
|
114
94
|
|
|
115
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
116
|
-
country: string | null;
|
|
117
|
-
|
|
118
95
|
// Contact Information
|
|
119
|
-
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
120
|
-
phone_number: string | null;
|
|
121
|
-
|
|
122
96
|
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
123
97
|
fax_number: string | null;
|
|
124
98
|
|
|
125
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
126
|
-
email: string | null;
|
|
127
|
-
|
|
128
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
129
|
-
email_address_personal: string | null; // Email Address (Personal)
|
|
130
|
-
|
|
131
99
|
// Additional Personal Information
|
|
132
100
|
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
133
101
|
sheikh_name: string | null; // Sheikh's Name
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum DocumentTranslationApprovalStatus {
|
|
3
|
-
PENDING = "Pending",
|
|
4
|
-
IN_PROGRESS = "In Progress",
|
|
5
|
-
APPROVED = "Approved",
|
|
6
|
-
REJECTED = "Rejected"
|
|
7
|
-
}
|
|
8
|
-
export declare class DocumentTranslationApprovalDetails extends BaseModel {
|
|
9
|
-
request_id: number;
|
|
10
|
-
service_id: number | null;
|
|
11
|
-
sub_service_id: number | null;
|
|
12
|
-
level: number;
|
|
13
|
-
approver_role_id: number;
|
|
14
|
-
department_id: number | null;
|
|
15
|
-
section_id: number | null;
|
|
16
|
-
approver_user_id: number | null;
|
|
17
|
-
delegate_user_id: number | null;
|
|
18
|
-
approved_by: number | null;
|
|
19
|
-
comment: string;
|
|
20
|
-
approval_status: DocumentTranslationApprovalStatus;
|
|
21
|
-
is_allowed: boolean;
|
|
22
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.DocumentTranslationApprovalDetails = exports.DocumentTranslationApprovalStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var DocumentTranslationApprovalStatus;
|
|
16
|
-
(function (DocumentTranslationApprovalStatus) {
|
|
17
|
-
DocumentTranslationApprovalStatus["PENDING"] = "Pending";
|
|
18
|
-
DocumentTranslationApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
-
DocumentTranslationApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
-
DocumentTranslationApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
-
})(DocumentTranslationApprovalStatus || (exports.DocumentTranslationApprovalStatus = DocumentTranslationApprovalStatus = {}));
|
|
22
|
-
let DocumentTranslationApprovalDetails = class DocumentTranslationApprovalDetails extends BaseModel_1.BaseModel {
|
|
23
|
-
};
|
|
24
|
-
exports.DocumentTranslationApprovalDetails = DocumentTranslationApprovalDetails;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
27
|
-
__metadata("design:type", Number)
|
|
28
|
-
], DocumentTranslationApprovalDetails.prototype, "request_id", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
31
|
-
__metadata("design:type", Object)
|
|
32
|
-
], DocumentTranslationApprovalDetails.prototype, "service_id", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
35
|
-
__metadata("design:type", Object)
|
|
36
|
-
], DocumentTranslationApprovalDetails.prototype, "sub_service_id", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
39
|
-
__metadata("design:type", Number)
|
|
40
|
-
], DocumentTranslationApprovalDetails.prototype, "level", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
-
__metadata("design:type", Number)
|
|
44
|
-
], DocumentTranslationApprovalDetails.prototype, "approver_role_id", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
-
__metadata("design:type", Object)
|
|
48
|
-
], DocumentTranslationApprovalDetails.prototype, "department_id", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
51
|
-
__metadata("design:type", Object)
|
|
52
|
-
], DocumentTranslationApprovalDetails.prototype, "section_id", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
55
|
-
__metadata("design:type", Object)
|
|
56
|
-
], DocumentTranslationApprovalDetails.prototype, "approver_user_id", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
-
__metadata("design:type", Object)
|
|
60
|
-
], DocumentTranslationApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
|
-
__metadata("design:type", Object)
|
|
64
|
-
], DocumentTranslationApprovalDetails.prototype, "approved_by", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true, default: '' }),
|
|
67
|
-
__metadata("design:type", String)
|
|
68
|
-
], DocumentTranslationApprovalDetails.prototype, "comment", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: DocumentTranslationApprovalStatus, default: DocumentTranslationApprovalStatus.PENDING, nullable: false }),
|
|
71
|
-
__metadata("design:type", String)
|
|
72
|
-
], DocumentTranslationApprovalDetails.prototype, "approval_status", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
75
|
-
__metadata("design:type", Boolean)
|
|
76
|
-
], DocumentTranslationApprovalDetails.prototype, "is_allowed", void 0);
|
|
77
|
-
exports.DocumentTranslationApprovalDetails = DocumentTranslationApprovalDetails = __decorate([
|
|
78
|
-
(0, typeorm_1.Entity)({ name: 'document_translation_approvals' })
|
|
79
|
-
], DocumentTranslationApprovalDetails);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare class DocumentTranslationRequestAttachment extends BaseModel {
|
|
3
|
-
request_id: number;
|
|
4
|
-
service_id: number | null;
|
|
5
|
-
sub_service_id: number | null;
|
|
6
|
-
file_url: string;
|
|
7
|
-
file_name: string;
|
|
8
|
-
file_type: string;
|
|
9
|
-
file_size: number | null;
|
|
10
|
-
chat_id: number | null;
|
|
11
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.DocumentTranslationRequestAttachment = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let DocumentTranslationRequestAttachment = class DocumentTranslationRequestAttachment extends BaseModel_1.BaseModel {
|
|
16
|
-
};
|
|
17
|
-
exports.DocumentTranslationRequestAttachment = DocumentTranslationRequestAttachment;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
20
|
-
__metadata("design:type", Number)
|
|
21
|
-
], DocumentTranslationRequestAttachment.prototype, "request_id", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
24
|
-
__metadata("design:type", Object)
|
|
25
|
-
], DocumentTranslationRequestAttachment.prototype, "service_id", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
28
|
-
__metadata("design:type", Object)
|
|
29
|
-
], DocumentTranslationRequestAttachment.prototype, "sub_service_id", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], DocumentTranslationRequestAttachment.prototype, "file_url", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], DocumentTranslationRequestAttachment.prototype, "file_name", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], DocumentTranslationRequestAttachment.prototype, "file_type", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
44
|
-
__metadata("design:type", Object)
|
|
45
|
-
], DocumentTranslationRequestAttachment.prototype, "file_size", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
48
|
-
__metadata("design:type", Object)
|
|
49
|
-
], DocumentTranslationRequestAttachment.prototype, "chat_id", void 0);
|
|
50
|
-
exports.DocumentTranslationRequestAttachment = DocumentTranslationRequestAttachment = __decorate([
|
|
51
|
-
(0, typeorm_1.Entity)({ name: 'document_translation_attachments' })
|
|
52
|
-
], DocumentTranslationRequestAttachment);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum DocumentTranslationMessageType {
|
|
3
|
-
TEXT = "text",
|
|
4
|
-
IMAGE = "image",
|
|
5
|
-
VIDEO = "video",
|
|
6
|
-
FILE = "file",
|
|
7
|
-
LINK = "link"
|
|
8
|
-
}
|
|
9
|
-
export declare class DocumentTranslationRequestChat extends BaseModel {
|
|
10
|
-
request_id: number;
|
|
11
|
-
service_id: number | null;
|
|
12
|
-
sub_service_id: number | null;
|
|
13
|
-
user_id: number;
|
|
14
|
-
role_id: number;
|
|
15
|
-
message: string;
|
|
16
|
-
messageType: DocumentTranslationMessageType;
|
|
17
|
-
status: string;
|
|
18
|
-
constructor(request_id: number, user_id: number, role_id: number, message: string, service_id?: number, sub_service_id?: number, messageType?: DocumentTranslationMessageType, status?: string);
|
|
19
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.DocumentTranslationRequestChat = exports.DocumentTranslationMessageType = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
const DocumentTranslationApprovalModel_1 = require("./DocumentTranslationApprovalModel");
|
|
16
|
-
var DocumentTranslationMessageType;
|
|
17
|
-
(function (DocumentTranslationMessageType) {
|
|
18
|
-
DocumentTranslationMessageType["TEXT"] = "text";
|
|
19
|
-
DocumentTranslationMessageType["IMAGE"] = "image";
|
|
20
|
-
DocumentTranslationMessageType["VIDEO"] = "video";
|
|
21
|
-
DocumentTranslationMessageType["FILE"] = "file";
|
|
22
|
-
DocumentTranslationMessageType["LINK"] = "link";
|
|
23
|
-
})(DocumentTranslationMessageType || (exports.DocumentTranslationMessageType = DocumentTranslationMessageType = {}));
|
|
24
|
-
let DocumentTranslationRequestChat = class DocumentTranslationRequestChat extends BaseModel_1.BaseModel {
|
|
25
|
-
constructor(request_id, user_id, role_id, message, service_id, sub_service_id, messageType, status) {
|
|
26
|
-
super();
|
|
27
|
-
this.request_id = request_id;
|
|
28
|
-
this.service_id = service_id || null;
|
|
29
|
-
this.sub_service_id = sub_service_id || null;
|
|
30
|
-
this.user_id = user_id;
|
|
31
|
-
this.role_id = role_id;
|
|
32
|
-
this.message = message;
|
|
33
|
-
this.messageType = messageType || DocumentTranslationMessageType.TEXT;
|
|
34
|
-
this.status = status || DocumentTranslationApprovalModel_1.DocumentTranslationApprovalStatus.PENDING;
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
exports.DocumentTranslationRequestChat = DocumentTranslationRequestChat;
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
40
|
-
__metadata("design:type", Number)
|
|
41
|
-
], DocumentTranslationRequestChat.prototype, "request_id", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
44
|
-
__metadata("design:type", Object)
|
|
45
|
-
], DocumentTranslationRequestChat.prototype, "service_id", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
48
|
-
__metadata("design:type", Object)
|
|
49
|
-
], DocumentTranslationRequestChat.prototype, "sub_service_id", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
52
|
-
__metadata("design:type", Number)
|
|
53
|
-
], DocumentTranslationRequestChat.prototype, "user_id", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
56
|
-
__metadata("design:type", Number)
|
|
57
|
-
], DocumentTranslationRequestChat.prototype, "role_id", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
60
|
-
__metadata("design:type", String)
|
|
61
|
-
], DocumentTranslationRequestChat.prototype, "message", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, typeorm_1.Column)({
|
|
64
|
-
type: 'enum',
|
|
65
|
-
enum: DocumentTranslationMessageType,
|
|
66
|
-
default: DocumentTranslationMessageType.TEXT,
|
|
67
|
-
nullable: false
|
|
68
|
-
}),
|
|
69
|
-
__metadata("design:type", String)
|
|
70
|
-
], DocumentTranslationRequestChat.prototype, "messageType", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], DocumentTranslationRequestChat.prototype, "status", void 0);
|
|
75
|
-
exports.DocumentTranslationRequestChat = DocumentTranslationRequestChat = __decorate([
|
|
76
|
-
(0, typeorm_1.Entity)({ name: 'document_translation_chats' }),
|
|
77
|
-
__metadata("design:paramtypes", [Number, Number, Number, String, Number, Number, String, String])
|
|
78
|
-
], DocumentTranslationRequestChat);
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum DocumentTranslationStatus {
|
|
3
|
-
SUBMITTED = "Submitted",
|
|
4
|
-
PENDING = "Pending",
|
|
5
|
-
ASSIGNED = "Assigned",
|
|
6
|
-
IN_PROGRESS = "In Progress",
|
|
7
|
-
APPROVED = "Approved",
|
|
8
|
-
REJECTED = "Rejected"
|
|
9
|
-
}
|
|
10
|
-
export declare enum DocumentClassificationType {
|
|
11
|
-
NORMAL = "Normal",
|
|
12
|
-
CONFIDENTIAL = "Confidential"
|
|
13
|
-
}
|
|
14
|
-
export declare class DocumentTranslationRequests extends BaseModel {
|
|
15
|
-
req_user_department_id: number | null;
|
|
16
|
-
req_user_section_id: number | null;
|
|
17
|
-
service_id: number | null;
|
|
18
|
-
sub_service_id: number | null;
|
|
19
|
-
user_id: number;
|
|
20
|
-
document_type: string;
|
|
21
|
-
document_name: string;
|
|
22
|
-
document_classification: DocumentClassificationType;
|
|
23
|
-
status: DocumentTranslationStatus;
|
|
24
|
-
workflow_execution_id: string | null;
|
|
25
|
-
}
|