@platform-modules/foreign-ministry 1.3.243 → 1.3.246
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 +5 -12
- package/dist/data-source.js +40 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +20 -0
- package/dist/models/HousingRentalAccommodationApprovalModel.d.ts +22 -0
- package/dist/models/HousingRentalAccommodationApprovalModel.js +84 -0
- package/dist/models/HousingRentalAccommodationAttachmentModel.d.ts +11 -0
- package/dist/models/HousingRentalAccommodationAttachmentModel.js +52 -0
- package/dist/models/HousingRentalAccommodationChatModel.d.ts +18 -0
- package/dist/models/HousingRentalAccommodationChatModel.js +65 -0
- package/dist/models/HousingRentalAccommodationRequestModel.d.ts +20 -0
- package/dist/models/HousingRentalAccommodationRequestModel.js +70 -0
- package/dist/models/HousingRentalAccommodationWorkflowModel.d.ts +17 -0
- package/dist/models/HousingRentalAccommodationWorkflowModel.js +67 -0
- package/dist/models/HousingRentalVehicleApprovalModel.d.ts +22 -0
- package/dist/models/HousingRentalVehicleApprovalModel.js +84 -0
- package/dist/models/HousingRentalVehicleAttachmentModel.d.ts +11 -0
- package/dist/models/HousingRentalVehicleAttachmentModel.js +52 -0
- package/dist/models/HousingRentalVehicleChatModel.d.ts +18 -0
- package/dist/models/HousingRentalVehicleChatModel.js +65 -0
- package/dist/models/HousingRentalVehicleRequestModel.d.ts +22 -0
- package/dist/models/HousingRentalVehicleRequestModel.js +78 -0
- package/dist/models/HousingRentalVehicleWorkflowModel.d.ts +17 -0
- package/dist/models/HousingRentalVehicleWorkflowModel.js +67 -0
- package/dist/models/MissionContractsApprovalModel.d.ts +22 -0
- package/dist/models/MissionContractsApprovalModel.js +84 -0
- package/dist/models/MissionContractsAttachmentModel.d.ts +11 -0
- package/dist/models/MissionContractsAttachmentModel.js +52 -0
- package/dist/models/MissionContractsChatModel.d.ts +18 -0
- package/dist/models/MissionContractsChatModel.js +65 -0
- package/dist/models/MissionContractsRequestModel.d.ts +26 -0
- package/dist/models/MissionContractsRequestModel.js +90 -0
- package/dist/models/MissionContractsWorkflowModel.d.ts +17 -0
- package/dist/models/MissionContractsWorkflowModel.js +67 -0
- 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/NationalDayCelebrationsApprovalModel.d.ts +22 -0
- package/dist/models/NationalDayCelebrationsApprovalModel.js +84 -0
- package/dist/models/NationalDayCelebrationsAttachmentModel.d.ts +11 -0
- package/dist/models/NationalDayCelebrationsAttachmentModel.js +52 -0
- package/dist/models/NationalDayCelebrationsChatModel.d.ts +18 -0
- package/dist/models/NationalDayCelebrationsChatModel.js +65 -0
- package/dist/models/NationalDayCelebrationsRequestModel.d.ts +20 -0
- package/dist/models/NationalDayCelebrationsRequestModel.js +70 -0
- package/dist/models/NationalDayCelebrationsWorkflowModel.d.ts +17 -0
- package/dist/models/NationalDayCelebrationsWorkflowModel.js +67 -0
- package/dist/models/ProjectContactsModel.d.ts +3 -1
- package/dist/models/ProjectContactsModel.js +7 -2
- package/package.json +24 -24
- package/src/data-source.ts +550 -510
- package/src/index.ts +402 -382
- package/src/models/DiplomaticAcademyRequestModel.ts +80 -80
- package/src/models/HousingRentalAccommodationApprovalModel.ts +56 -0
- package/src/models/HousingRentalAccommodationAttachmentModel.ts +29 -0
- package/src/models/HousingRentalAccommodationChatModel.ts +42 -0
- package/src/models/HousingRentalAccommodationRequestModel.ts +46 -0
- package/src/models/HousingRentalAccommodationWorkflowModel.ts +43 -0
- package/src/models/HousingRentalVehicleApprovalModel.ts +56 -0
- package/src/models/HousingRentalVehicleAttachmentModel.ts +29 -0
- package/src/models/HousingRentalVehicleChatModel.ts +42 -0
- package/src/models/HousingRentalVehicleRequestModel.ts +52 -0
- package/src/models/HousingRentalVehicleWorkflowModel.ts +43 -0
- package/src/models/LMSExternalEntityTrainedPersonModel.ts +45 -45
- package/src/models/LanguageCourseRequestModel.ts +67 -67
- package/src/models/LeaveConfigModel.ts +71 -71
- package/src/models/MissionContractsApprovalModel.ts +56 -0
- package/src/models/MissionContractsAttachmentModel.ts +29 -0
- package/src/models/MissionContractsChatModel.ts +42 -0
- package/src/models/MissionContractsRequestModel.ts +62 -0
- package/src/models/MissionContractsWorkflowModel.ts +43 -0
- package/src/models/MissionTravelApprovalModel.ts +101 -101
- 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/NationalDayCelebrationsApprovalModel.ts +56 -0
- package/src/models/NationalDayCelebrationsAttachmentModel.ts +29 -0
- package/src/models/NationalDayCelebrationsChatModel.ts +42 -0
- package/src/models/NationalDayCelebrationsRequestModel.ts +46 -0
- package/src/models/NationalDayCelebrationsWorkflowModel.ts +43 -0
- package/src/models/ProjectContactsModel.ts +7 -1
- package/src/models/ProjectFaqModel.ts +36 -36
- package/src/models/ProjectInvoicesModel.ts +41 -41
- package/src/models/ProjectModel.ts +75 -75
- package/src/models/SectionModel.ts +35 -35
- package/src/models/ServicesNotificationConfigsModel.ts +55 -55
|
@@ -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
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum NationalDayCelebrationsApprovalStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
IN_PROGRESS = 'In Progress',
|
|
7
|
+
APPROVED = 'Approved',
|
|
8
|
+
REJECTED = 'Rejected',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'national_day_celebrations_approvals' })
|
|
12
|
+
export class NationalDayCelebrationsApprovalDetails 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: NationalDayCelebrationsApprovalStatus,
|
|
49
|
+
default: NationalDayCelebrationsApprovalStatus.PENDING,
|
|
50
|
+
nullable: false,
|
|
51
|
+
})
|
|
52
|
+
approval_status: NationalDayCelebrationsApprovalStatus;
|
|
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: 'national_day_celebrations_attachments' })
|
|
5
|
+
export class NationalDayCelebrationsRequestAttachment 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,42 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum NationalDayCelebrationsMessageType {
|
|
5
|
+
TEXT = 'text',
|
|
6
|
+
IMAGE = 'image',
|
|
7
|
+
VIDEO = 'video',
|
|
8
|
+
FILE = 'file',
|
|
9
|
+
LINK = 'link',
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: 'national_day_celebrations_chats' })
|
|
13
|
+
export class NationalDayCelebrationsRequestChat extends BaseModel {
|
|
14
|
+
@Column({ type: 'integer', nullable: false })
|
|
15
|
+
request_id: number;
|
|
16
|
+
|
|
17
|
+
@Column({ type: 'integer', nullable: true })
|
|
18
|
+
service_id: number | null;
|
|
19
|
+
|
|
20
|
+
@Column({ type: 'integer', nullable: true })
|
|
21
|
+
sub_service_id: number | null;
|
|
22
|
+
|
|
23
|
+
@Column({ type: 'integer', nullable: false })
|
|
24
|
+
user_id: number;
|
|
25
|
+
|
|
26
|
+
@Column({ type: 'integer', nullable: true })
|
|
27
|
+
role_id: number;
|
|
28
|
+
|
|
29
|
+
@Column({ type: 'text', nullable: false })
|
|
30
|
+
message: string;
|
|
31
|
+
|
|
32
|
+
@Column({
|
|
33
|
+
type: 'enum',
|
|
34
|
+
enum: NationalDayCelebrationsMessageType,
|
|
35
|
+
default: NationalDayCelebrationsMessageType.TEXT,
|
|
36
|
+
nullable: false,
|
|
37
|
+
})
|
|
38
|
+
messageType: NationalDayCelebrationsMessageType;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'text', nullable: true })
|
|
41
|
+
status: string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum NationalDayCelebrationsRequestStatus {
|
|
5
|
+
PENDING = 'Pending',
|
|
6
|
+
ASSIGNED = 'Assigned',
|
|
7
|
+
IN_PROGRESS = 'In Progress',
|
|
8
|
+
APPROVED = 'Approved',
|
|
9
|
+
REJECTED = 'Rejected',
|
|
10
|
+
CANCELLED = 'Cancelled',
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@Entity({ name: 'national_day_celebrations_requests' })
|
|
14
|
+
export class NationalDayCelebrationsRequests extends BaseModel {
|
|
15
|
+
@Column({ type: 'int', nullable: true })
|
|
16
|
+
req_user_department_id: number | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'int', nullable: true })
|
|
19
|
+
req_user_section_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'int', nullable: true })
|
|
22
|
+
service_id: number | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'int', nullable: true })
|
|
25
|
+
sub_service_id: number | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'int', nullable: false })
|
|
28
|
+
user_id: number;
|
|
29
|
+
|
|
30
|
+
@Column({
|
|
31
|
+
type: 'enum',
|
|
32
|
+
enum: NationalDayCelebrationsRequestStatus,
|
|
33
|
+
default: NationalDayCelebrationsRequestStatus.PENDING,
|
|
34
|
+
nullable: false,
|
|
35
|
+
})
|
|
36
|
+
status: NationalDayCelebrationsRequestStatus;
|
|
37
|
+
|
|
38
|
+
@Column({ type: 'varchar', nullable: true })
|
|
39
|
+
workflow_execution_id: string | null;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'decimal', precision: 15, scale: 2, nullable: true })
|
|
42
|
+
amount: string | null;
|
|
43
|
+
|
|
44
|
+
@Column({ type: 'text', nullable: true })
|
|
45
|
+
reason: string | null;
|
|
46
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum NationalDayCelebrationsWorkFlowStatus {
|
|
5
|
+
COMPLETED = 'Completed',
|
|
6
|
+
NOT_YET_STARTED = 'Not Yet Started',
|
|
7
|
+
PENDING = 'Pending',
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@Entity({ name: 'national_day_celebrations_workflows' })
|
|
11
|
+
export class NationalDayCelebrationsWorkFlow 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: NationalDayCelebrationsWorkFlowStatus,
|
|
27
|
+
default: NationalDayCelebrationsWorkFlowStatus.NOT_YET_STARTED,
|
|
28
|
+
nullable: false,
|
|
29
|
+
})
|
|
30
|
+
status: NationalDayCelebrationsWorkFlowStatus;
|
|
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
|
+
}
|
|
@@ -21,13 +21,18 @@ export class ProjectContacts extends BaseModel {
|
|
|
21
21
|
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
22
22
|
designation: string;
|
|
23
23
|
|
|
24
|
+
/** Optional FK to departments.id */
|
|
25
|
+
@Column({ type: 'int', nullable: true })
|
|
26
|
+
department_id: number | null;
|
|
27
|
+
|
|
24
28
|
constructor(
|
|
25
29
|
project_id?: number,
|
|
26
30
|
contact_type?: string,
|
|
27
31
|
phone_number?: string,
|
|
28
32
|
email_id?: string,
|
|
29
33
|
name?: string,
|
|
30
|
-
designation?: string
|
|
34
|
+
designation?: string,
|
|
35
|
+
department_id?: number | null
|
|
31
36
|
) {
|
|
32
37
|
super();
|
|
33
38
|
this.project_id = project_id ?? 0;
|
|
@@ -36,5 +41,6 @@ export class ProjectContacts extends BaseModel {
|
|
|
36
41
|
this.email_id = email_id ?? '';
|
|
37
42
|
this.name = name ?? '';
|
|
38
43
|
this.designation = designation ?? '';
|
|
44
|
+
this.department_id = department_id ?? null;
|
|
39
45
|
}
|
|
40
46
|
}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { Column, Entity } from 'typeorm';
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'project_faqs' })
|
|
5
|
-
export class ProjectFaqs extends BaseModel {
|
|
6
|
-
@Column({ type: 'boolean', default: false })
|
|
7
|
-
is_popular: boolean;
|
|
8
|
-
|
|
9
|
-
@Column({ type: 'text' })
|
|
10
|
-
question: string;
|
|
11
|
-
|
|
12
|
-
/** Null = global / general FAQ not tied to a project */
|
|
13
|
-
@Column({ type: 'int', nullable: true })
|
|
14
|
-
project_id: number | null;
|
|
15
|
-
|
|
16
|
-
@Column({ type: 'int', nullable: true })
|
|
17
|
-
department_id: number;
|
|
18
|
-
|
|
19
|
-
@Column({ type: 'text', nullable: true })
|
|
20
|
-
answer: string;
|
|
21
|
-
|
|
22
|
-
constructor(
|
|
23
|
-
question?: string,
|
|
24
|
-
project_id?: number | null,
|
|
25
|
-
department_id?: number,
|
|
26
|
-
answer?: string,
|
|
27
|
-
is_popular?: boolean
|
|
28
|
-
) {
|
|
29
|
-
super();
|
|
30
|
-
this.question = question ?? '';
|
|
31
|
-
this.project_id = project_id ?? null;
|
|
32
|
-
this.department_id = department_id ?? 0;
|
|
33
|
-
this.answer = answer ?? '';
|
|
34
|
-
this.is_popular = is_popular ?? false;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'project_faqs' })
|
|
5
|
+
export class ProjectFaqs extends BaseModel {
|
|
6
|
+
@Column({ type: 'boolean', default: false })
|
|
7
|
+
is_popular: boolean;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'text' })
|
|
10
|
+
question: string;
|
|
11
|
+
|
|
12
|
+
/** Null = global / general FAQ not tied to a project */
|
|
13
|
+
@Column({ type: 'int', nullable: true })
|
|
14
|
+
project_id: number | null;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'int', nullable: true })
|
|
17
|
+
department_id: number;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'text', nullable: true })
|
|
20
|
+
answer: string;
|
|
21
|
+
|
|
22
|
+
constructor(
|
|
23
|
+
question?: string,
|
|
24
|
+
project_id?: number | null,
|
|
25
|
+
department_id?: number,
|
|
26
|
+
answer?: string,
|
|
27
|
+
is_popular?: boolean
|
|
28
|
+
) {
|
|
29
|
+
super();
|
|
30
|
+
this.question = question ?? '';
|
|
31
|
+
this.project_id = project_id ?? null;
|
|
32
|
+
this.department_id = department_id ?? 0;
|
|
33
|
+
this.answer = answer ?? '';
|
|
34
|
+
this.is_popular = is_popular ?? false;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { Column, Entity } from 'typeorm';
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'project_invoices' })
|
|
5
|
-
export class ProjectInvoices extends BaseModel {
|
|
6
|
-
@Column({ type: 'int' })
|
|
7
|
-
project_id: number;
|
|
8
|
-
|
|
9
|
-
/** Optional link to a project milestone (same project). */
|
|
10
|
-
@Column({ type: 'int', nullable: true })
|
|
11
|
-
milestone_id: number | null;
|
|
12
|
-
|
|
13
|
-
@Column({ type: 'text', nullable: true })
|
|
14
|
-
invoice_link: string;
|
|
15
|
-
|
|
16
|
-
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
17
|
-
filename: string;
|
|
18
|
-
|
|
19
|
-
@Column({ type: 'bigint', nullable: true })
|
|
20
|
-
filesize: number;
|
|
21
|
-
|
|
22
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
23
|
-
filetype: string;
|
|
24
|
-
|
|
25
|
-
constructor(
|
|
26
|
-
project_id?: number,
|
|
27
|
-
milestone_id?: number | null,
|
|
28
|
-
invoice_link?: string,
|
|
29
|
-
filename?: string,
|
|
30
|
-
filesize?: number,
|
|
31
|
-
filetype?: string
|
|
32
|
-
) {
|
|
33
|
-
super();
|
|
34
|
-
this.project_id = project_id ?? 0;
|
|
35
|
-
this.milestone_id = milestone_id ?? null;
|
|
36
|
-
this.invoice_link = invoice_link ?? '';
|
|
37
|
-
this.filename = filename ?? '';
|
|
38
|
-
this.filesize = filesize ?? 0;
|
|
39
|
-
this.filetype = filetype ?? '';
|
|
40
|
-
}
|
|
41
|
-
}
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'project_invoices' })
|
|
5
|
+
export class ProjectInvoices extends BaseModel {
|
|
6
|
+
@Column({ type: 'int' })
|
|
7
|
+
project_id: number;
|
|
8
|
+
|
|
9
|
+
/** Optional link to a project milestone (same project). */
|
|
10
|
+
@Column({ type: 'int', nullable: true })
|
|
11
|
+
milestone_id: number | null;
|
|
12
|
+
|
|
13
|
+
@Column({ type: 'text', nullable: true })
|
|
14
|
+
invoice_link: string;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
17
|
+
filename: string;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'bigint', nullable: true })
|
|
20
|
+
filesize: number;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
23
|
+
filetype: string;
|
|
24
|
+
|
|
25
|
+
constructor(
|
|
26
|
+
project_id?: number,
|
|
27
|
+
milestone_id?: number | null,
|
|
28
|
+
invoice_link?: string,
|
|
29
|
+
filename?: string,
|
|
30
|
+
filesize?: number,
|
|
31
|
+
filetype?: string
|
|
32
|
+
) {
|
|
33
|
+
super();
|
|
34
|
+
this.project_id = project_id ?? 0;
|
|
35
|
+
this.milestone_id = milestone_id ?? null;
|
|
36
|
+
this.invoice_link = invoice_link ?? '';
|
|
37
|
+
this.filename = filename ?? '';
|
|
38
|
+
this.filesize = filesize ?? 0;
|
|
39
|
+
this.filetype = filetype ?? '';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
import { Column, Entity } from 'typeorm';
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'projects' })
|
|
5
|
-
export class Projects extends BaseModel {
|
|
6
|
-
@Column({ type: 'varchar', length: 255 })
|
|
7
|
-
project_name: string;
|
|
8
|
-
|
|
9
|
-
@Column({ type: 'text' , nullable: true})
|
|
10
|
-
project_objective: string;
|
|
11
|
-
|
|
12
|
-
@Column({ type: 'text' , nullable: true})
|
|
13
|
-
project_benefits: string;
|
|
14
|
-
|
|
15
|
-
@Column({ type: 'text' , nullable: true})
|
|
16
|
-
project_risks: string;
|
|
17
|
-
|
|
18
|
-
@Column({ type: 'text' , nullable: true})
|
|
19
|
-
project_challenges: string;
|
|
20
|
-
|
|
21
|
-
@Column({ type: 'text' , nullable: true})
|
|
22
|
-
project_description: string;
|
|
23
|
-
|
|
24
|
-
@Column({ type: 'text' , nullable: true})
|
|
25
|
-
project_status: string;
|
|
26
|
-
|
|
27
|
-
@Column({ type: 'text' , nullable: true})
|
|
28
|
-
roadmap_link: string;
|
|
29
|
-
|
|
30
|
-
@Column({ type: 'jsonb' , nullable: true})
|
|
31
|
-
template_ids: number[] | null;
|
|
32
|
-
|
|
33
|
-
@Column({ name: 'start_date', type: 'date', nullable: true })
|
|
34
|
-
startDate: Date | null;
|
|
35
|
-
|
|
36
|
-
@Column({ name: 'end_date', type: 'date', nullable: true })
|
|
37
|
-
endDate: Date | null;
|
|
38
|
-
|
|
39
|
-
@Column({ type: 'varchar', length: 100, nullable: true})
|
|
40
|
-
project_version: string;
|
|
41
|
-
|
|
42
|
-
@Column({ type: 'int', default: 0, nullable: true })
|
|
43
|
-
no_of_phases: number;
|
|
44
|
-
|
|
45
|
-
constructor(
|
|
46
|
-
project_name?: string,
|
|
47
|
-
project_objective?: string,
|
|
48
|
-
project_benefits?: string,
|
|
49
|
-
project_risks?: string,
|
|
50
|
-
project_challenges?: string,
|
|
51
|
-
project_description?: string,
|
|
52
|
-
project_status?: string,
|
|
53
|
-
roadmap_link?: string | null,
|
|
54
|
-
template_ids?: number[] | null,
|
|
55
|
-
startDate?: Date | null,
|
|
56
|
-
endDate?: Date | null,
|
|
57
|
-
project_version?: string,
|
|
58
|
-
no_of_phases?: number
|
|
59
|
-
) {
|
|
60
|
-
super();
|
|
61
|
-
this.project_name = project_name || '';
|
|
62
|
-
this.project_objective = project_objective || '';
|
|
63
|
-
this.project_benefits = project_benefits || '';
|
|
64
|
-
this.project_risks = project_risks || '';
|
|
65
|
-
this.project_challenges = project_challenges || '';
|
|
66
|
-
this.project_description = project_description || '';
|
|
67
|
-
this.project_status = project_status || '';
|
|
68
|
-
this.roadmap_link = roadmap_link || '';
|
|
69
|
-
this.template_ids = template_ids || [];
|
|
70
|
-
this.startDate = startDate ?? null;
|
|
71
|
-
this.endDate = endDate ?? null;
|
|
72
|
-
this.project_version = project_version || '';
|
|
73
|
-
this.no_of_phases = no_of_phases ?? 0;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
1
|
+
import { Column, Entity } from 'typeorm';
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'projects' })
|
|
5
|
+
export class Projects extends BaseModel {
|
|
6
|
+
@Column({ type: 'varchar', length: 255 })
|
|
7
|
+
project_name: string;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'text' , nullable: true})
|
|
10
|
+
project_objective: string;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'text' , nullable: true})
|
|
13
|
+
project_benefits: string;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'text' , nullable: true})
|
|
16
|
+
project_risks: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'text' , nullable: true})
|
|
19
|
+
project_challenges: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'text' , nullable: true})
|
|
22
|
+
project_description: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'text' , nullable: true})
|
|
25
|
+
project_status: string;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'text' , nullable: true})
|
|
28
|
+
roadmap_link: string;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'jsonb' , nullable: true})
|
|
31
|
+
template_ids: number[] | null;
|
|
32
|
+
|
|
33
|
+
@Column({ name: 'start_date', type: 'date', nullable: true })
|
|
34
|
+
startDate: Date | null;
|
|
35
|
+
|
|
36
|
+
@Column({ name: 'end_date', type: 'date', nullable: true })
|
|
37
|
+
endDate: Date | null;
|
|
38
|
+
|
|
39
|
+
@Column({ type: 'varchar', length: 100, nullable: true})
|
|
40
|
+
project_version: string;
|
|
41
|
+
|
|
42
|
+
@Column({ type: 'int', default: 0, nullable: true })
|
|
43
|
+
no_of_phases: number;
|
|
44
|
+
|
|
45
|
+
constructor(
|
|
46
|
+
project_name?: string,
|
|
47
|
+
project_objective?: string,
|
|
48
|
+
project_benefits?: string,
|
|
49
|
+
project_risks?: string,
|
|
50
|
+
project_challenges?: string,
|
|
51
|
+
project_description?: string,
|
|
52
|
+
project_status?: string,
|
|
53
|
+
roadmap_link?: string | null,
|
|
54
|
+
template_ids?: number[] | null,
|
|
55
|
+
startDate?: Date | null,
|
|
56
|
+
endDate?: Date | null,
|
|
57
|
+
project_version?: string,
|
|
58
|
+
no_of_phases?: number
|
|
59
|
+
) {
|
|
60
|
+
super();
|
|
61
|
+
this.project_name = project_name || '';
|
|
62
|
+
this.project_objective = project_objective || '';
|
|
63
|
+
this.project_benefits = project_benefits || '';
|
|
64
|
+
this.project_risks = project_risks || '';
|
|
65
|
+
this.project_challenges = project_challenges || '';
|
|
66
|
+
this.project_description = project_description || '';
|
|
67
|
+
this.project_status = project_status || '';
|
|
68
|
+
this.roadmap_link = roadmap_link || '';
|
|
69
|
+
this.template_ids = template_ids || [];
|
|
70
|
+
this.startDate = startDate ?? null;
|
|
71
|
+
this.endDate = endDate ?? null;
|
|
72
|
+
this.project_version = project_version || '';
|
|
73
|
+
this.no_of_phases = no_of_phases ?? 0;
|
|
74
|
+
}
|
|
75
|
+
}
|