@platform-modules/foreign-ministry 1.3.257 → 1.3.258
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 +15 -3
- package/dist/index.d.ts +0 -6
- package/dist/index.js +0 -6
- package/dist/models/RecruitmentDomesticWorkersDetailsModel.d.ts +3 -0
- package/dist/models/RecruitmentDomesticWorkersDetailsModel.js +12 -0
- package/dist/models/ResignationTerminationRequestModel.d.ts +0 -1
- package/dist/models/ResignationTerminationRequestModel.js +0 -4
- package/dist/models/TransferAllowanceRequestModel.d.ts +1 -0
- package/dist/models/TransferAllowanceRequestModel.js +4 -0
- package/dist/models/TransferSalaryBankAccountRequestModel.d.ts +7 -3
- package/dist/models/TransferSalaryBankAccountRequestModel.js +21 -5
- package/package.json +1 -1
- package/src/index.ts +415 -421
- package/src/models/FinancialWorkFlowModel.ts +15 -15
- package/src/models/GatePassVisitorsModel.ts +7 -7
- package/src/models/PollOptionsModel.ts +26 -26
- package/src/models/PollVotesModel.ts +37 -37
- package/src/models/PollsModel.ts +49 -49
- package/src/models/RecruitmentDomesticWorkersDetailsModel.ts +9 -0
- package/src/models/ResignationTerminationApprovalModel.ts +9 -9
- package/src/models/ResignationTerminationRequestModel.ts +14 -17
- package/src/models/TelephoneDirectoryModel.ts +20 -20
- package/src/models/TransferAllowanceRequestModel.ts +3 -0
- package/src/models/TransferSalaryBankAccountRequestModel.ts +17 -5
- package/dist/models/AnnualTravelTicketRequestModel.d.ts +0 -40
- package/dist/models/AnnualTravelTicketRequestModel.js +0 -115
- package/dist/models/EmbassyMasterModel.d.ts +0 -16
- package/dist/models/EmbassyMasterModel.js +0 -75
- package/dist/models/MissionBankAccountApprovalModel.d.ts +0 -22
- package/dist/models/MissionBankAccountApprovalModel.js +0 -79
- package/dist/models/MissionBankAccountAttachmentModel.d.ts +0 -11
- package/dist/models/MissionBankAccountAttachmentModel.js +0 -52
- package/dist/models/MissionBankAccountChatModel.d.ts +0 -18
- package/dist/models/MissionBankAccountChatModel.js +0 -65
- package/dist/models/MissionBankAccountRequestModel.d.ts +0 -29
- package/dist/models/MissionBankAccountRequestModel.js +0 -90
- package/dist/models/MissionBankAccountWorkflowModel.d.ts +0 -17
- package/dist/models/MissionBankAccountWorkflowModel.js +0 -62
- package/dist/models/UserDependentsModel.d.ts +0 -18
- package/dist/models/UserDependentsModel.js +0 -94
- package/src/models/AnnualTravelTicketRequestModel.ts +0 -87
- package/src/models/MissionBankAccountApprovalModel.ts +0 -51
- package/src/models/MissionBankAccountAttachmentModel.ts +0 -30
- package/src/models/MissionBankAccountChatModel.ts +0 -43
- package/src/models/MissionBankAccountRequestModel.ts +0 -62
- package/src/models/MissionBankAccountWorkflowModel.ts +0 -38
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from 'typeorm';
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum AnnualTravelTicketPermanentResidence {
|
|
5
|
-
SALALAH = 'Salalah',
|
|
6
|
-
MUSANDAM = 'Musandam',
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
/** Aligns with mission bank account request lifecycle for shared workflow UI. */
|
|
10
|
-
export enum AnnualTravelTicketRequestStatus {
|
|
11
|
-
PENDING = 'Pending',
|
|
12
|
-
ASSIGNED = 'Assigned',
|
|
13
|
-
IN_PROGRESS = 'In Progress',
|
|
14
|
-
APPROVED = 'Approved',
|
|
15
|
-
REJECTED = 'Rejected',
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@Entity({ name: 'annual_travel_ticket_requests' })
|
|
19
|
-
export class AnnualTravelTicketRequests extends BaseModel {
|
|
20
|
-
@Column({ type: 'int', nullable: true })
|
|
21
|
-
req_user_department_id: number | null;
|
|
22
|
-
|
|
23
|
-
@Column({ type: 'int', nullable: true })
|
|
24
|
-
req_user_section_id: number | null;
|
|
25
|
-
|
|
26
|
-
@Column({ type: 'int', nullable: true })
|
|
27
|
-
service_id: number | null;
|
|
28
|
-
|
|
29
|
-
@Column({ type: 'int', nullable: true })
|
|
30
|
-
sub_service_id: number | null;
|
|
31
|
-
|
|
32
|
-
@Column({ type: 'int', nullable: false })
|
|
33
|
-
user_id: number;
|
|
34
|
-
|
|
35
|
-
/** Applicant / primary traveler name as entered on the form. */
|
|
36
|
-
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
37
|
-
applicant_name: string;
|
|
38
|
-
|
|
39
|
-
@Column({ type: 'varchar', length: 120, nullable: false })
|
|
40
|
-
civil_id_or_passport_number: string;
|
|
41
|
-
|
|
42
|
-
@Column({ type: 'enum', enum: AnnualTravelTicketPermanentResidence, nullable: false })
|
|
43
|
-
permanent_residence: AnnualTravelTicketPermanentResidence;
|
|
44
|
-
|
|
45
|
-
/** Free-text family context (dependents covered by the request). */
|
|
46
|
-
@Column({ type: 'text', nullable: true })
|
|
47
|
-
family_details: string | null;
|
|
48
|
-
|
|
49
|
-
@Column({ type: 'decimal', precision: 12, scale: 2, nullable: true })
|
|
50
|
-
children_ticket_price: string | number | null;
|
|
51
|
-
|
|
52
|
-
@Column({ type: 'decimal', precision: 12, scale: 2, nullable: true })
|
|
53
|
-
employee_spouse_ticket_price: string | number | null;
|
|
54
|
-
|
|
55
|
-
@Column({ type: 'varchar', length: 100, nullable: false })
|
|
56
|
-
bank_account_number: string;
|
|
57
|
-
|
|
58
|
-
@Column({ type: 'text', nullable: false })
|
|
59
|
-
travel_details: string;
|
|
60
|
-
|
|
61
|
-
/** Calendar year this entitlement applies to (one ticket per person per year). */
|
|
62
|
-
@Column({ type: 'int', nullable: false })
|
|
63
|
-
ticket_entitlement_year: number;
|
|
64
|
-
|
|
65
|
-
/** Optional structured travelers (e.g. children) for age rules; JSON array. */
|
|
66
|
-
@Column({ type: 'jsonb', nullable: true })
|
|
67
|
-
children_travelers_json: Record<string, unknown>[] | null;
|
|
68
|
-
|
|
69
|
-
/** Client confirms dependents match HR/profile before submit. */
|
|
70
|
-
@Column({ type: 'boolean', default: false, nullable: false })
|
|
71
|
-
profile_children_synced_with_profile: boolean;
|
|
72
|
-
|
|
73
|
-
/** Notes on unused ticket carry-forward (max 7 years; children until age 21). */
|
|
74
|
-
@Column({ type: 'text', nullable: true })
|
|
75
|
-
carry_forward_notes: string | null;
|
|
76
|
-
|
|
77
|
-
@Column({
|
|
78
|
-
type: 'enum',
|
|
79
|
-
enum: AnnualTravelTicketRequestStatus,
|
|
80
|
-
default: AnnualTravelTicketRequestStatus.PENDING,
|
|
81
|
-
nullable: false,
|
|
82
|
-
})
|
|
83
|
-
status: AnnualTravelTicketRequestStatus;
|
|
84
|
-
|
|
85
|
-
@Column({ type: 'varchar', nullable: true })
|
|
86
|
-
workflow_execution_id: string | null;
|
|
87
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum MissionBankAccountApprovalStatus {
|
|
5
|
-
PENDING = "Pending",
|
|
6
|
-
IN_PROGRESS = "In Progress",
|
|
7
|
-
APPROVED = "Approved",
|
|
8
|
-
REJECTED = "Rejected"
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@Entity({ name: 'mission_bank_account_approvals' })
|
|
12
|
-
export class MissionBankAccountApprovalDetails 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: false })
|
|
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({ type: 'enum', enum: MissionBankAccountApprovalStatus, default: MissionBankAccountApprovalStatus.PENDING, nullable: false })
|
|
47
|
-
approval_status: MissionBankAccountApprovalStatus;
|
|
48
|
-
|
|
49
|
-
@Column({ type: 'boolean', default: true, nullable: false })
|
|
50
|
-
is_allowed: boolean;
|
|
51
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'mission_bank_account_attachments' })
|
|
5
|
-
export class MissionBankAccountRequestAttachment extends BaseModel {
|
|
6
|
-
|
|
7
|
-
@Column({ type: 'integer', nullable: false })
|
|
8
|
-
request_id: number;
|
|
9
|
-
|
|
10
|
-
@Column({ type: 'integer', nullable: true })
|
|
11
|
-
service_id: number | null;
|
|
12
|
-
|
|
13
|
-
@Column({ type: 'integer', nullable: true })
|
|
14
|
-
sub_service_id: number | null;
|
|
15
|
-
|
|
16
|
-
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
17
|
-
file_url: string;
|
|
18
|
-
|
|
19
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
20
|
-
file_name: string;
|
|
21
|
-
|
|
22
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
23
|
-
file_type: string;
|
|
24
|
-
|
|
25
|
-
@Column({ type: 'bigint', nullable: true })
|
|
26
|
-
file_size: number | null;
|
|
27
|
-
|
|
28
|
-
@Column({ type: 'integer', nullable: true })
|
|
29
|
-
chat_id: number | null;
|
|
30
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum MissionBankAccountMessageType {
|
|
5
|
-
TEXT = "text",
|
|
6
|
-
IMAGE = "image",
|
|
7
|
-
VIDEO = "video",
|
|
8
|
-
FILE = "file",
|
|
9
|
-
LINK = "link"
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@Entity({ name: 'mission_bank_account_chats' })
|
|
13
|
-
export class MissionBankAccountRequestChat extends BaseModel {
|
|
14
|
-
|
|
15
|
-
@Column({ type: 'integer', nullable: false })
|
|
16
|
-
request_id: number;
|
|
17
|
-
|
|
18
|
-
@Column({ type: 'integer', nullable: true })
|
|
19
|
-
service_id: number | null;
|
|
20
|
-
|
|
21
|
-
@Column({ type: 'integer', nullable: true })
|
|
22
|
-
sub_service_id: number | null;
|
|
23
|
-
|
|
24
|
-
@Column({ type: 'integer', nullable: false })
|
|
25
|
-
user_id: number;
|
|
26
|
-
|
|
27
|
-
@Column({ type: 'integer', nullable: true })
|
|
28
|
-
role_id: number | null;
|
|
29
|
-
|
|
30
|
-
@Column({ type: 'text', nullable: false })
|
|
31
|
-
message: string;
|
|
32
|
-
|
|
33
|
-
@Column({
|
|
34
|
-
type: 'enum',
|
|
35
|
-
enum: MissionBankAccountMessageType,
|
|
36
|
-
default: MissionBankAccountMessageType.TEXT,
|
|
37
|
-
nullable: false
|
|
38
|
-
})
|
|
39
|
-
messageType: MissionBankAccountMessageType;
|
|
40
|
-
|
|
41
|
-
@Column({ type: 'text', nullable: true })
|
|
42
|
-
status: string;
|
|
43
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum MissionBankAccountRequestType {
|
|
5
|
-
OPEN = "Open",
|
|
6
|
-
CLOSE = "Close",
|
|
7
|
-
CHANGE = "Change"
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export enum MissionBankAccountRequestStatus {
|
|
11
|
-
PENDING = "Pending",
|
|
12
|
-
ASSIGNED = "Assigned",
|
|
13
|
-
IN_PROGRESS = "In Progress",
|
|
14
|
-
APPROVED = "Approved",
|
|
15
|
-
REJECTED = "Rejected"
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@Entity({ name: 'mission_bank_account_requests' })
|
|
19
|
-
export class MissionBankAccountRequests extends BaseModel {
|
|
20
|
-
|
|
21
|
-
@Column({ type: 'int', nullable: true })
|
|
22
|
-
req_user_department_id: number | null;
|
|
23
|
-
|
|
24
|
-
@Column({ type: 'int', nullable: true })
|
|
25
|
-
req_user_section_id: number | null;
|
|
26
|
-
|
|
27
|
-
@Column({ type: 'int', nullable: true })
|
|
28
|
-
service_id: number | null;
|
|
29
|
-
|
|
30
|
-
@Column({ type: 'int', nullable: true })
|
|
31
|
-
sub_service_id: number | null;
|
|
32
|
-
|
|
33
|
-
@Column({ type: 'int', nullable: false })
|
|
34
|
-
user_id: number;
|
|
35
|
-
|
|
36
|
-
@Column({ type: 'enum', enum: MissionBankAccountRequestType, nullable: false })
|
|
37
|
-
request_type: MissionBankAccountRequestType;
|
|
38
|
-
|
|
39
|
-
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
40
|
-
bank_name: string;
|
|
41
|
-
|
|
42
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
43
|
-
branch: string | null;
|
|
44
|
-
|
|
45
|
-
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
46
|
-
location_of_mc: string | null;
|
|
47
|
-
|
|
48
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
49
|
-
account_number: string | null;
|
|
50
|
-
|
|
51
|
-
@Column({ type: 'date', nullable: true })
|
|
52
|
-
opening_closing_date: Date | string | null;
|
|
53
|
-
|
|
54
|
-
@Column({ type: 'text', nullable: false })
|
|
55
|
-
reason: string;
|
|
56
|
-
|
|
57
|
-
@Column({ type: 'enum', enum: MissionBankAccountRequestStatus, default: MissionBankAccountRequestStatus.PENDING, nullable: false })
|
|
58
|
-
status: MissionBankAccountRequestStatus;
|
|
59
|
-
|
|
60
|
-
@Column({ type: 'varchar', nullable: true })
|
|
61
|
-
workflow_execution_id: string | null;
|
|
62
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum MissionBankAccountWorkFlowStatus {
|
|
5
|
-
COMPLETED = "Completed",
|
|
6
|
-
NOT_YET_STARTED = "Not Yet Started",
|
|
7
|
-
PENDING = "Pending"
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@Entity({ name: 'mission_bank_account_workflows' })
|
|
11
|
-
export class MissionBankAccountWorkFlow extends BaseModel {
|
|
12
|
-
@Column({ type: 'integer', nullable: false })
|
|
13
|
-
request_id: number;
|
|
14
|
-
|
|
15
|
-
@Column({ type: 'integer', nullable: true })
|
|
16
|
-
service_id: number | null;
|
|
17
|
-
|
|
18
|
-
@Column({ type: 'integer', nullable: true })
|
|
19
|
-
sub_service_id: number | null;
|
|
20
|
-
|
|
21
|
-
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
22
|
-
content: string;
|
|
23
|
-
|
|
24
|
-
@Column({ type: 'enum', enum: MissionBankAccountWorkFlowStatus, default: MissionBankAccountWorkFlowStatus.NOT_YET_STARTED, nullable: false })
|
|
25
|
-
status: MissionBankAccountWorkFlowStatus;
|
|
26
|
-
|
|
27
|
-
@Column({ type: 'integer', nullable: true })
|
|
28
|
-
user_id: number | null;
|
|
29
|
-
|
|
30
|
-
@Column({ type: 'integer', nullable: true })
|
|
31
|
-
role_id: number | null;
|
|
32
|
-
|
|
33
|
-
@Column({ type: 'integer', nullable: true })
|
|
34
|
-
department_id: number | null;
|
|
35
|
-
|
|
36
|
-
@Column({ type: 'integer', nullable: true })
|
|
37
|
-
section_id: number | null;
|
|
38
|
-
}
|