@platform-modules/foreign-ministry 1.3.255 → 1.3.257
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 +10 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +11 -0
- package/dist/models/AnnualTravelTicketRequestModel.d.ts +40 -0
- package/dist/models/AnnualTravelTicketRequestModel.js +115 -0
- package/dist/models/AssistanceCitizensAbroadApprovalModel.d.ts +22 -0
- package/dist/models/AssistanceCitizensAbroadApprovalModel.js +84 -0
- package/dist/models/AssistanceCitizensAbroadAttachmentModel.d.ts +11 -0
- package/dist/models/AssistanceCitizensAbroadAttachmentModel.js +52 -0
- package/dist/models/AssistanceCitizensAbroadChatModel.d.ts +19 -0
- package/dist/models/AssistanceCitizensAbroadChatModel.js +78 -0
- package/dist/models/AssistanceCitizensAbroadRequestModel.d.ts +32 -0
- package/dist/models/AssistanceCitizensAbroadRequestModel.js +102 -0
- package/dist/models/AssistanceCitizensAbroadWorkflowModel.d.ts +17 -0
- package/dist/models/AssistanceCitizensAbroadWorkflowModel.js +67 -0
- package/dist/models/MissionBankAccountApprovalModel.d.ts +22 -0
- package/dist/models/MissionBankAccountApprovalModel.js +79 -0
- package/dist/models/MissionBankAccountAttachmentModel.d.ts +11 -0
- package/dist/models/MissionBankAccountAttachmentModel.js +52 -0
- package/dist/models/MissionBankAccountChatModel.d.ts +18 -0
- package/dist/models/MissionBankAccountChatModel.js +65 -0
- package/dist/models/MissionBankAccountRequestModel.d.ts +29 -0
- package/dist/models/MissionBankAccountRequestModel.js +90 -0
- package/dist/models/MissionBankAccountWorkflowModel.d.ts +17 -0
- package/dist/models/MissionBankAccountWorkflowModel.js +62 -0
- package/dist/models/ResignationTerminationRequestModel.d.ts +1 -0
- package/dist/models/ResignationTerminationRequestModel.js +4 -0
- package/package.json +1 -1
- package/src/data-source.ts +10 -0
- package/src/index.ts +421 -410
- package/src/models/AnnualTravelTicketRequestModel.ts +87 -0
- package/src/models/AssistanceCitizensAbroadApprovalModel.ts +56 -0
- package/src/models/AssistanceCitizensAbroadAttachmentModel.ts +29 -0
- package/src/models/AssistanceCitizensAbroadChatModel.ts +64 -0
- package/src/models/AssistanceCitizensAbroadRequestModel.ts +73 -0
- package/src/models/AssistanceCitizensAbroadWorkflowModel.ts +43 -0
- package/src/models/MissionBankAccountApprovalModel.ts +51 -0
- package/src/models/MissionBankAccountAttachmentModel.ts +30 -0
- package/src/models/MissionBankAccountChatModel.ts +43 -0
- package/src/models/MissionBankAccountRequestModel.ts +62 -0
- package/src/models/MissionBankAccountWorkflowModel.ts +38 -0
- package/src/models/ResignationTerminationRequestModel.ts +8 -5
|
@@ -0,0 +1,87 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum AssistanceCitizensAbroadApprovalStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
IN_PROGRESS = 'In Progress',
|
|
7
|
+
APPROVED = 'Approved',
|
|
8
|
+
REJECTED = 'Rejected',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'assistance_citizens_abroad_approvals' })
|
|
12
|
+
export class AssistanceCitizensAbroadApprovalDetails 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: true })
|
|
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({
|
|
47
|
+
type: 'enum',
|
|
48
|
+
enum: AssistanceCitizensAbroadApprovalStatus,
|
|
49
|
+
default: AssistanceCitizensAbroadApprovalStatus.PENDING,
|
|
50
|
+
nullable: false,
|
|
51
|
+
})
|
|
52
|
+
approval_status: AssistanceCitizensAbroadApprovalStatus;
|
|
53
|
+
|
|
54
|
+
@Column({ type: 'boolean', default: true, nullable: false })
|
|
55
|
+
is_allowed: boolean;
|
|
56
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'assistance_citizens_abroad_attachments' })
|
|
5
|
+
export class AssistanceCitizensAbroadRequestAttachment extends BaseModel {
|
|
6
|
+
@Column({ type: 'integer', nullable: false })
|
|
7
|
+
request_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'integer', nullable: true })
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'integer', nullable: true })
|
|
13
|
+
sub_service_id: number | null;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
16
|
+
file_url: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
19
|
+
file_name: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
22
|
+
file_type: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'bigint', nullable: true })
|
|
25
|
+
file_size: number | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'integer', nullable: true })
|
|
28
|
+
chat_id: number | null;
|
|
29
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
import { AssistanceCitizensAbroadApprovalStatus } from './AssistanceCitizensAbroadApprovalModel';
|
|
4
|
+
|
|
5
|
+
export enum AssistanceCitizensAbroadMessageType {
|
|
6
|
+
TEXT = 'text',
|
|
7
|
+
IMAGE = 'image',
|
|
8
|
+
VIDEO = 'video',
|
|
9
|
+
FILE = 'file',
|
|
10
|
+
LINK = 'link',
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@Entity({ name: 'assistance_citizens_abroad_chats' })
|
|
14
|
+
export class AssistanceCitizensAbroadRequestChat extends BaseModel {
|
|
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;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'text', nullable: false })
|
|
31
|
+
message: string;
|
|
32
|
+
|
|
33
|
+
@Column({
|
|
34
|
+
type: 'enum',
|
|
35
|
+
enum: AssistanceCitizensAbroadMessageType,
|
|
36
|
+
default: AssistanceCitizensAbroadMessageType.TEXT,
|
|
37
|
+
nullable: false,
|
|
38
|
+
})
|
|
39
|
+
messageType: AssistanceCitizensAbroadMessageType;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'text', nullable: true })
|
|
42
|
+
status: string;
|
|
43
|
+
|
|
44
|
+
constructor(
|
|
45
|
+
request_id: number,
|
|
46
|
+
user_id: number,
|
|
47
|
+
role_id: number,
|
|
48
|
+
message: string,
|
|
49
|
+
service_id?: number,
|
|
50
|
+
sub_service_id?: number,
|
|
51
|
+
messageType?: AssistanceCitizensAbroadMessageType,
|
|
52
|
+
status?: string
|
|
53
|
+
) {
|
|
54
|
+
super();
|
|
55
|
+
this.request_id = request_id;
|
|
56
|
+
this.service_id = service_id || null;
|
|
57
|
+
this.sub_service_id = sub_service_id || null;
|
|
58
|
+
this.user_id = user_id;
|
|
59
|
+
this.role_id = role_id;
|
|
60
|
+
this.message = message;
|
|
61
|
+
this.messageType = messageType || AssistanceCitizensAbroadMessageType.TEXT;
|
|
62
|
+
this.status = status || AssistanceCitizensAbroadApprovalStatus.PENDING;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum AssistanceCitizensAbroadStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
ASSIGNED = 'Assigned',
|
|
7
|
+
IN_PROGRESS = 'In Progress',
|
|
8
|
+
APPROVED = 'Approved',
|
|
9
|
+
REJECTED = 'Rejected',
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Matches product: Tickets / Lawyer / Release / Cash Assistance / Other */
|
|
13
|
+
export enum AssistanceCitizensAbroadTypeOfAssistance {
|
|
14
|
+
TICKETS = 'Tickets',
|
|
15
|
+
LAWYER = 'Lawyer',
|
|
16
|
+
RELEASE = 'Release',
|
|
17
|
+
CASH_ASSISTANCE = 'Cash Assistance',
|
|
18
|
+
OTHER = 'Other',
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@Entity({ name: 'assistance_citizens_abroad_requests' })
|
|
22
|
+
export class AssistanceCitizensAbroadRequests extends BaseModel {
|
|
23
|
+
@Column({ type: 'int', nullable: true })
|
|
24
|
+
req_user_department_id: number | null;
|
|
25
|
+
|
|
26
|
+
@Column({ type: 'int', nullable: true })
|
|
27
|
+
req_user_section_id: number | null;
|
|
28
|
+
|
|
29
|
+
@Column({ type: 'int', nullable: true })
|
|
30
|
+
service_id: number | null;
|
|
31
|
+
|
|
32
|
+
@Column({ type: 'int', nullable: true })
|
|
33
|
+
sub_service_id: number | null;
|
|
34
|
+
|
|
35
|
+
@Column({ type: 'int', nullable: false })
|
|
36
|
+
user_id: number;
|
|
37
|
+
|
|
38
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
39
|
+
citizen_name: string | null;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
42
|
+
id_or_passport_number: string | null;
|
|
43
|
+
|
|
44
|
+
@Column({
|
|
45
|
+
type: 'enum',
|
|
46
|
+
enum: AssistanceCitizensAbroadTypeOfAssistance,
|
|
47
|
+
nullable: true,
|
|
48
|
+
})
|
|
49
|
+
type_of_assistance: AssistanceCitizensAbroadTypeOfAssistance | null;
|
|
50
|
+
|
|
51
|
+
@Column({ type: 'text', nullable: true })
|
|
52
|
+
reason_for_request: string | null;
|
|
53
|
+
|
|
54
|
+
@Column({ type: 'date', nullable: true })
|
|
55
|
+
request_date: Date | null;
|
|
56
|
+
|
|
57
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
58
|
+
amount: string | null;
|
|
59
|
+
|
|
60
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
61
|
+
currency_type: string | null;
|
|
62
|
+
|
|
63
|
+
@Column({
|
|
64
|
+
type: 'enum',
|
|
65
|
+
enum: AssistanceCitizensAbroadStatus,
|
|
66
|
+
default: AssistanceCitizensAbroadStatus.PENDING,
|
|
67
|
+
nullable: false,
|
|
68
|
+
})
|
|
69
|
+
status: AssistanceCitizensAbroadStatus;
|
|
70
|
+
|
|
71
|
+
@Column({ type: 'varchar', nullable: true })
|
|
72
|
+
workflow_execution_id: string | null;
|
|
73
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum AssistanceCitizensAbroadWorkFlowStatus {
|
|
5
|
+
COMPLETED = 'Completed',
|
|
6
|
+
NOT_YET_STARTED = 'Not Yet Started',
|
|
7
|
+
PENDING = 'Pending',
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@Entity({ name: 'assistance_citizens_abroad_workflows' })
|
|
11
|
+
export class AssistanceCitizensAbroadWorkFlow 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({
|
|
25
|
+
type: 'enum',
|
|
26
|
+
enum: AssistanceCitizensAbroadWorkFlowStatus,
|
|
27
|
+
default: AssistanceCitizensAbroadWorkFlowStatus.NOT_YET_STARTED,
|
|
28
|
+
nullable: false,
|
|
29
|
+
})
|
|
30
|
+
status: AssistanceCitizensAbroadWorkFlowStatus;
|
|
31
|
+
|
|
32
|
+
@Column({ type: 'integer', nullable: true })
|
|
33
|
+
user_id: number | null;
|
|
34
|
+
|
|
35
|
+
@Column({ type: 'integer', nullable: true })
|
|
36
|
+
role_id: number | null;
|
|
37
|
+
|
|
38
|
+
@Column({ type: 'integer', nullable: true })
|
|
39
|
+
department_id: number | null;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'integer', nullable: true })
|
|
42
|
+
section_id: number | null;
|
|
43
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
}
|
|
@@ -16,11 +16,14 @@ export class ResignationTerminationRequests extends BaseModel {
|
|
|
16
16
|
@Column({ type: 'int', nullable: true })
|
|
17
17
|
req_user_department_id: number | null;
|
|
18
18
|
|
|
19
|
-
@Column({ type: 'int', nullable: true })
|
|
20
|
-
req_user_section_id: number | null;
|
|
21
|
-
|
|
22
|
-
@Column({ type: 'int', nullable: true })
|
|
23
|
-
|
|
19
|
+
@Column({ type: 'int', nullable: true })
|
|
20
|
+
req_user_section_id: number | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'int', nullable: true })
|
|
23
|
+
department_id: number | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'int', nullable: true })
|
|
26
|
+
service_id: number | null;
|
|
24
27
|
|
|
25
28
|
@Column({ type: 'int', nullable: true })
|
|
26
29
|
sub_service_id: number | null;
|