@platform-modules/foreign-ministry 1.1.55 → 1.1.57
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 +34 -18
- package/dist/index.d.ts +24 -9
- package/dist/index.js +24 -9
- package/dist/models/AttendanceModel.d.ts +2 -1
- package/dist/models/AttendanceModel.js +2 -1
- package/dist/models/CurrencyModel.d.ts +10 -0
- package/dist/models/CurrencyModel.js +53 -0
- package/dist/models/EarlyCheckoutApprovalModel.d.ts +1 -0
- package/dist/models/EarlyCheckoutApprovalModel.js +4 -0
- package/dist/models/EarlyCheckoutChatModel.d.ts +4 -0
- package/dist/models/EarlyCheckoutChatModel.js +28 -2
- package/dist/models/EarlyCheckoutWorkflowModel.d.ts +4 -0
- package/dist/models/EarlyCheckoutWorkflowModel.js +16 -0
- package/dist/models/FinancialApprovalsModel.d.ts +2 -1
- package/dist/models/FinancialApprovalsModel.js +7 -2
- package/dist/models/FinancialChatsModel.d.ts +16 -1
- package/dist/models/FinancialChatsModel.js +33 -3
- package/dist/models/FinancialRequestsModel.d.ts +1 -1
- package/dist/models/FinancialRequestsModel.js +3 -3
- package/dist/models/FinancialWorkFlowModel.d.ts +3 -1
- package/dist/models/FinancialWorkFlowModel.js +11 -2
- package/dist/models/GeneralServiceApprovalsModel.d.ts +26 -0
- package/dist/models/GeneralServiceApprovalsModel.js +109 -0
- package/dist/models/GeneralServiceAttachmentsModel.d.ts +10 -0
- package/dist/models/{DiplomaticAttachmentsModel.js → GeneralServiceAttachmentsModel.js} +18 -22
- package/dist/models/GeneralServiceChatsModel.d.ts +9 -0
- package/dist/models/{DiplomaticChatsModel.js → GeneralServiceChatsModel.js} +17 -21
- package/dist/models/GeneralServiceRequestsModel.d.ts +36 -0
- package/dist/models/GeneralServiceRequestsModel.js +137 -0
- package/dist/models/GeneralServiceWorkFlowModel.d.ts +21 -0
- package/dist/models/GeneralServiceWorkFlowModel.js +80 -0
- package/dist/models/GroupModel.d.ts +16 -0
- package/dist/models/GroupModel.js +44 -0
- package/dist/models/GroupNamesModel.d.ts +6 -0
- package/dist/models/GroupNamesModel.js +34 -0
- package/dist/models/HelpdeskCategoriesModel.d.ts +9 -0
- package/dist/models/{DiplomaticClubCardAttachmentModel.js → HelpdeskCategoriesModel.js} +27 -22
- package/dist/models/HelpdeskSubCategoriesModel.d.ts +10 -0
- package/dist/models/{PassportRequestAttachmentModel.js → HelpdeskSubCategoriesModel.js} +29 -29
- package/dist/models/IssueTypesModel.d.ts +10 -0
- package/dist/models/IssueTypesModel.js +54 -0
- package/dist/models/JobsModel.d.ts +17 -0
- package/dist/models/{DiplomaticClubCardChatModel.js → JobsModel.js} +29 -16
- package/dist/models/LeaveApprovalsModel.d.ts +4 -1
- package/dist/models/LeaveApprovalsModel.js +9 -0
- package/dist/models/LeaveAttachmentsModel.d.ts +6 -2
- package/dist/models/LeaveAttachmentsModel.js +27 -7
- package/dist/models/LeaveChatModel.d.ts +5 -1
- package/dist/models/LeaveChatModel.js +22 -2
- package/dist/models/LeaveRequestModel.d.ts +12 -1
- package/dist/models/LeaveRequestModel.js +35 -0
- package/dist/models/LeaveWorkFlowModel.d.ts +5 -1
- package/dist/models/LeaveWorkFlowModel.js +22 -2
- package/dist/models/MounringLeaveRelationModel.d.ts +2 -1
- package/dist/models/MounringLeaveRelationModel.js +7 -2
- package/dist/models/ReimbursementRequestsModel.d.ts +2 -1
- package/dist/models/ReimbursementRequestsModel.js +9 -4
- package/dist/models/RoutingGroupsModel.d.ts +13 -0
- package/dist/models/RoutingGroupsModel.js +67 -0
- package/dist/models/StayAfterHoursApprovalModel.d.ts +1 -0
- package/dist/models/StayAfterHoursApprovalModel.js +4 -0
- package/dist/models/StayAfterHoursChatModel.d.ts +4 -0
- package/dist/models/StayAfterHoursChatModel.js +28 -2
- package/dist/models/StayAfterHoursWorkflowModel.d.ts +4 -0
- package/dist/models/StayAfterHoursWorkflowModel.js +16 -0
- package/dist/models/TelephoneDirectoryModel.d.ts +21 -0
- package/dist/models/TelephoneDirectoryModel.js +108 -0
- package/dist/models/TransferMissionApprovalModel.d.ts +21 -0
- package/dist/models/TransferMissionApprovalModel.js +75 -0
- package/dist/models/TransferMissionAttachmentModel.d.ts +11 -0
- package/dist/models/TransferMissionAttachmentModel.js +52 -0
- package/dist/models/TransferMissionChatModel.d.ts +19 -0
- package/dist/models/TransferMissionChatModel.js +78 -0
- package/dist/models/TransferMissionRequestModel.d.ts +36 -0
- package/dist/models/TransferMissionRequestModel.js +132 -0
- package/dist/models/TransferMissionWorkflowModel.d.ts +17 -0
- package/dist/models/TransferMissionWorkflowModel.js +62 -0
- package/dist/models/UpdateAttendanceApprovalModel.d.ts +21 -0
- package/dist/models/UpdateAttendanceApprovalModel.js +75 -0
- package/dist/models/UpdateAttendanceChatModel.d.ts +16 -0
- package/dist/models/UpdateAttendanceChatModel.js +52 -0
- package/dist/models/UpdateAttendanceRequestModel.d.ts +28 -0
- package/dist/models/UpdateAttendanceRequestModel.js +86 -0
- package/dist/models/UpdateAttendanceWorkflowModel.d.ts +13 -0
- package/dist/models/UpdateAttendanceWorkflowModel.js +46 -0
- package/dist/models/WorkScheduleModel.d.ts +19 -0
- package/dist/models/WorkScheduleModel.js +60 -0
- package/dist/models/WorkflowTask.d.ts +5 -2
- package/dist/models/WorkflowTask.js +28 -4
- package/dist/models/WorkflowTaskNames.d.ts +12 -3
- package/dist/models/WorkflowTaskNames.js +28 -9
- package/package.json +1 -1
- package/src/data-source.ts +45 -30
- package/src/index.ts +24 -9
- package/src/models/AttendanceModel.ts +2 -1
- package/src/models/CurrencyModel.ts +38 -0
- package/src/models/EarlyCheckoutApprovalModel.ts +3 -0
- package/src/models/EarlyCheckoutChatModel.ts +34 -1
- package/src/models/EarlyCheckoutWorkflowModel.ts +12 -0
- package/src/models/FinancialApprovalsModel.ts +6 -1
- package/src/models/FinancialChatsModel.ts +27 -1
- package/src/models/FinancialRequestsModel.ts +2 -2
- package/src/models/FinancialWorkFlowModel.ts +9 -1
- package/src/models/GeneralServiceApprovalsModel.ts +95 -0
- package/src/models/GeneralServiceAttachmentsModel.ts +43 -0
- package/src/models/GeneralServiceChatsModel.ts +39 -0
- package/src/models/GeneralServiceRequestsModel.ts +113 -0
- package/src/models/GeneralServiceWorkFlowModel.ts +78 -0
- package/src/models/GroupModel.ts +30 -0
- package/src/models/GroupNamesModel.ts +22 -0
- package/src/models/HelpdeskCategoriesModel.ts +35 -0
- package/src/models/HelpdeskSubCategoriesModel.ts +40 -0
- package/src/models/IssueTypesModel.ts +47 -0
- package/src/models/JobsModel.ts +37 -0
- package/src/models/LeaveApprovalsModel.ts +8 -1
- package/src/models/LeaveAttachmentsModel.ts +21 -5
- package/src/models/LeaveChatModel.ts +17 -1
- package/src/models/LeaveRequestModel.ts +29 -1
- package/src/models/LeaveWorkFlowModel.ts +17 -1
- package/src/models/MounringLeaveRelationModel.ts +5 -1
- package/src/models/ReimbursementRequestsModel.ts +8 -6
- package/src/models/RoutingGroupsModel.ts +64 -0
- package/src/models/StayAfterHoursApprovalModel.ts +3 -0
- package/src/models/StayAfterHoursChatModel.ts +34 -1
- package/src/models/StayAfterHoursWorkflowModel.ts +12 -0
- package/src/models/TelephoneDirectoryModel.ts +84 -0
- package/src/models/TransferMissionApprovalModel.ts +49 -0
- package/src/models/TransferMissionAttachmentModel.ts +31 -0
- package/src/models/TransferMissionChatModel.ts +66 -0
- package/src/models/TransferMissionRequestModel.ts +94 -0
- package/src/models/TransferMissionWorkflowModel.ts +39 -0
- package/src/models/UpdateAttendanceApprovalModel.ts +50 -0
- package/src/models/UpdateAttendanceChatModel.ts +35 -0
- package/src/models/UpdateAttendanceRequestModel.ts +63 -0
- package/src/models/UpdateAttendanceWorkflowModel.ts +28 -0
- package/src/models/WorkScheduleModel.ts +47 -0
- package/src/models/WorkflowTask.ts +31 -4
- package/src/models/WorkflowTaskNames.ts +27 -8
- package/dist/models/DiplomaticApprovalsModel.d.ts +0 -25
- package/dist/models/DiplomaticApprovalsModel.js +0 -95
- package/dist/models/DiplomaticAttachmentsModel.d.ts +0 -12
- package/dist/models/DiplomaticChatsModel.d.ts +0 -11
- package/dist/models/DiplomaticClubCardApprovalModel.d.ts +0 -16
- package/dist/models/DiplomaticClubCardApprovalModel.js +0 -58
- package/dist/models/DiplomaticClubCardAttachmentModel.d.ts +0 -9
- package/dist/models/DiplomaticClubCardChatModel.d.ts +0 -7
- package/dist/models/DiplomaticClubCardMemberModel.d.ts +0 -13
- package/dist/models/DiplomaticClubCardMemberModel.js +0 -60
- package/dist/models/DiplomaticClubCardRequestModel.d.ts +0 -33
- package/dist/models/DiplomaticClubCardRequestModel.js +0 -98
- package/dist/models/DiplomaticClubCardWorkFlowModel.d.ts +0 -12
- package/dist/models/DiplomaticClubCardWorkFlowModel.js +0 -42
- package/dist/models/DiplomaticRequestsModel.d.ts +0 -43
- package/dist/models/DiplomaticRequestsModel.js +0 -142
- package/dist/models/DiplomaticServiceDetailsModel.d.ts +0 -20
- package/dist/models/DiplomaticServiceDetailsModel.js +0 -65
- package/dist/models/DiplomaticSettingsModel.d.ts +0 -11
- package/dist/models/DiplomaticSettingsModel.js +0 -59
- package/dist/models/DiplomaticTitleModel.d.ts +0 -12
- package/dist/models/DiplomaticTitleModel.js +0 -45
- package/dist/models/DiplomaticWorkFlowModel.d.ts +0 -21
- package/dist/models/DiplomaticWorkFlowModel.js +0 -78
- package/dist/models/PassportRequestApprovalModel.d.ts +0 -22
- package/dist/models/PassportRequestApprovalModel.js +0 -91
- package/dist/models/PassportRequestAttachmentModel.d.ts +0 -10
- package/dist/models/PassportRequestChatModel.d.ts +0 -8
- package/dist/models/PassportRequestChatModel.js +0 -44
- package/dist/models/PassportRequestDependentModel.d.ts +0 -20
- package/dist/models/PassportRequestDependentModel.js +0 -85
- package/dist/models/PassportRequestModel.d.ts +0 -40
- package/dist/models/PassportRequestModel.js +0 -128
- package/dist/models/PassportRequestWorkFlowModel.d.ts +0 -15
- package/dist/models/PassportRequestWorkFlowModel.js +0 -60
- package/dist/models/SubscriptionAmountModel.d.ts +0 -35
- package/dist/models/SubscriptionAmountModel.js +0 -74
- package/src/models/DiplomaticApprovalsModel.ts +0 -78
- package/src/models/DiplomaticAttachmentsModel.ts +0 -45
- package/src/models/DiplomaticChatsModel.ts +0 -41
- package/src/models/DiplomaticRequestsModel.ts +0 -121
- package/src/models/DiplomaticServiceDetailsModel.ts +0 -51
- package/src/models/DiplomaticSettingsModel.ts +0 -45
- package/src/models/DiplomaticTitleModel.ts +0 -27
- package/src/models/DiplomaticWorkFlowModel.ts +0 -62
- package/src/models/SubscriptionAmountModel.ts +0 -55
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum UpdateAttendanceApprovalStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'update_attendance_approvals' })
|
|
12
|
+
export class UpdateAttendanceApprovalDetails 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({ type: 'enum', enum: UpdateAttendanceApprovalStatus, default: UpdateAttendanceApprovalStatus.PENDING, nullable: false })
|
|
47
|
+
approval_status: UpdateAttendanceApprovalStatus;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum UpdateAttendanceMessageType {
|
|
5
|
+
TEXT = "text",
|
|
6
|
+
IMAGE = "image",
|
|
7
|
+
VIDEO = "video",
|
|
8
|
+
FILE = "file",
|
|
9
|
+
LINK = "link"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: 'update_attendance_chats' })
|
|
13
|
+
export class UpdateAttendanceRequestChat 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: 'text', nullable: false })
|
|
28
|
+
message: string;
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'enum', enum: UpdateAttendanceMessageType, default: UpdateAttendanceMessageType.TEXT, nullable: false })
|
|
32
|
+
messageType: UpdateAttendanceMessageType;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum UpdateAttendenceStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
ASSIGNED = "Assigned",
|
|
7
|
+
IN_PROGRESS = "In Progress",
|
|
8
|
+
APPROVED = "Approved",
|
|
9
|
+
REJECTED = "Rejected"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export enum UpdateAttendenceReason {
|
|
13
|
+
MEETING = "Meeting",
|
|
14
|
+
EARLY_CHECKOUT = "Early Checkout",
|
|
15
|
+
SPECIAL_REASON = "Special Reason"
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@Entity({ name: 'update_attendence_requests' })
|
|
19
|
+
export class UpdateAttendanceRequests 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: 'date', nullable: true })
|
|
37
|
+
from_date: string | null;
|
|
38
|
+
|
|
39
|
+
@Column({ type: 'date', nullable: true })
|
|
40
|
+
to_date: string | null;
|
|
41
|
+
|
|
42
|
+
@Column({ type: 'time', nullable: true })
|
|
43
|
+
from_time: string | null;
|
|
44
|
+
|
|
45
|
+
@Column({ type: 'time', nullable: true })
|
|
46
|
+
to_time: string | null;
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
// New columns
|
|
50
|
+
@Column({ type: 'enum', enum: UpdateAttendenceReason, nullable: false })
|
|
51
|
+
reason: UpdateAttendenceReason;
|
|
52
|
+
|
|
53
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
54
|
+
comments: string | null;
|
|
55
|
+
|
|
56
|
+
@Column({ type: 'enum', enum: UpdateAttendenceStatus, default: UpdateAttendenceStatus.PENDING, nullable: false })
|
|
57
|
+
status: UpdateAttendenceStatus;
|
|
58
|
+
|
|
59
|
+
@Column({ type: 'varchar', nullable: true })
|
|
60
|
+
workflow_execution_id: string | null;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum UpdateAttendanceWorkFlowStatus {
|
|
5
|
+
COMPLETED = "Completed",
|
|
6
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
7
|
+
PENDING = "Pending"
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@Entity({ name: 'update_attendance_workflows' })
|
|
11
|
+
export class UpdateAttendanceWorkFlow 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: UpdateAttendanceWorkFlowStatus, default: UpdateAttendanceWorkFlowStatus.NOT_YET_STARTED, nullable: false })
|
|
25
|
+
status: UpdateAttendanceWorkFlowStatus;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author
|
|
3
|
+
* Amnet Digital
|
|
4
|
+
* @date
|
|
5
|
+
* 2024-12-20
|
|
6
|
+
* @Model
|
|
7
|
+
* WorkSchedule
|
|
8
|
+
* @usage
|
|
9
|
+
* Work Schedule Information will store
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import { Column, Entity } from "typeorm";
|
|
13
|
+
import { BaseModel } from './BaseModel';
|
|
14
|
+
|
|
15
|
+
@Entity({ name: 'work_schedules' })
|
|
16
|
+
export class WorkSchedule extends BaseModel {
|
|
17
|
+
@Column({ type: 'date', nullable: false })
|
|
18
|
+
from_date: Date;
|
|
19
|
+
|
|
20
|
+
@Column({ type: 'date', nullable: false })
|
|
21
|
+
to_date: Date;
|
|
22
|
+
|
|
23
|
+
@Column({ type: 'time', nullable: false })
|
|
24
|
+
from_time: string;
|
|
25
|
+
|
|
26
|
+
@Column({ type: 'time', nullable: false })
|
|
27
|
+
to_time: string;
|
|
28
|
+
|
|
29
|
+
@Column({ type: 'text', nullable: true })
|
|
30
|
+
reason: string | null;
|
|
31
|
+
|
|
32
|
+
constructor(
|
|
33
|
+
from_date: Date,
|
|
34
|
+
to_date: Date,
|
|
35
|
+
from_time: string,
|
|
36
|
+
to_time: string,
|
|
37
|
+
reason?: string
|
|
38
|
+
) {
|
|
39
|
+
super();
|
|
40
|
+
this.from_date = from_date;
|
|
41
|
+
this.to_date = to_date;
|
|
42
|
+
this.from_time = from_time;
|
|
43
|
+
this.to_time = to_time;
|
|
44
|
+
this.reason = reason || null;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
|
|
2
2
|
import { BaseModel } from './BaseModel';
|
|
3
|
+
import { TaskType } from "./WorkflowTaskNames";
|
|
4
|
+
import { CategoryType } from "./WorkflowTaskNames";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
// export enum TaskNameType {
|
|
8
|
+
// SIMPLE = 'SIMPLE',
|
|
9
|
+
// HUMAN = 'HUMAN'
|
|
10
|
+
// }
|
|
11
|
+
|
|
12
|
+
// export enum CategoryNameType {
|
|
13
|
+
// CREATE = 'CREATE',
|
|
14
|
+
// APPROVAL = 'APPROVAL',
|
|
15
|
+
// NOTIFICATION = 'NOTIFICATION'
|
|
16
|
+
// }
|
|
3
17
|
|
|
4
18
|
@Entity({ name: 'workflow_tasks' })
|
|
5
19
|
export class WorkflowTask extends BaseModel {
|
|
@@ -10,17 +24,30 @@ export class WorkflowTask extends BaseModel {
|
|
|
10
24
|
@Column({ type: 'varchar', length: 100, nullable: false })
|
|
11
25
|
name: string;
|
|
12
26
|
|
|
13
|
-
@Column({
|
|
14
|
-
|
|
27
|
+
@Column({
|
|
28
|
+
type: 'enum',
|
|
29
|
+
enum: TaskType,
|
|
30
|
+
nullable: true
|
|
31
|
+
})
|
|
32
|
+
task_type: TaskType;
|
|
33
|
+
|
|
34
|
+
@Column({
|
|
35
|
+
type: 'enum',
|
|
36
|
+
enum: CategoryType,
|
|
37
|
+
nullable: true
|
|
38
|
+
})
|
|
39
|
+
category: CategoryType;
|
|
15
40
|
|
|
16
41
|
constructor(
|
|
17
42
|
name: string,
|
|
18
43
|
task_id?: number,
|
|
19
|
-
task_type?:
|
|
44
|
+
task_type?: TaskType,
|
|
45
|
+
category?: CategoryType
|
|
20
46
|
) {
|
|
21
47
|
super();
|
|
22
48
|
this.name = name;
|
|
23
49
|
this.task_id = task_id || 0;
|
|
24
|
-
this.task_type = task_type ||
|
|
50
|
+
this.task_type = task_type || TaskType.SIMPLE;
|
|
51
|
+
this.category = category || CategoryType.CREATE;
|
|
25
52
|
}
|
|
26
53
|
}
|
|
@@ -1,31 +1,50 @@
|
|
|
1
1
|
import { Column, Entity } from "typeorm";
|
|
2
2
|
import { BaseModel } from './BaseModel';
|
|
3
3
|
|
|
4
|
+
export enum TaskType {
|
|
5
|
+
SIMPLE = 'SIMPLE',
|
|
6
|
+
HUMAN = 'HUMAN'
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export enum CategoryType {
|
|
10
|
+
CREATE = 'CREATE',
|
|
11
|
+
APPROVAL = 'APPROVAL',
|
|
12
|
+
NOTIFICATION = 'NOTIFICATION'
|
|
13
|
+
}
|
|
14
|
+
|
|
4
15
|
@Entity({ name: 'workflow_task_names' })
|
|
5
16
|
export class WorkflowTaskNames extends BaseModel {
|
|
6
17
|
|
|
7
18
|
@Column({ type: 'varchar', length: 100, nullable: false })
|
|
8
19
|
name: string;
|
|
9
|
-
|
|
10
|
-
@Column({ type: 'integer', nullable: false })
|
|
11
|
-
task_id: number;
|
|
12
20
|
|
|
13
21
|
@Column({ type: 'varchar', length: 200, nullable: true })
|
|
14
22
|
description: string;
|
|
15
23
|
|
|
16
|
-
@Column({
|
|
17
|
-
|
|
24
|
+
@Column({
|
|
25
|
+
type: 'enum',
|
|
26
|
+
enum: TaskType,
|
|
27
|
+
nullable: true
|
|
28
|
+
})
|
|
29
|
+
task_type: TaskType;
|
|
30
|
+
|
|
31
|
+
@Column({
|
|
32
|
+
type: 'enum',
|
|
33
|
+
enum: CategoryType,
|
|
34
|
+
nullable: true
|
|
35
|
+
})
|
|
36
|
+
category: CategoryType;
|
|
18
37
|
|
|
19
38
|
constructor(
|
|
20
39
|
name: string,
|
|
21
|
-
task_id: number,
|
|
22
40
|
description: string,
|
|
23
|
-
task_type:
|
|
41
|
+
task_type: TaskType,
|
|
42
|
+
category: CategoryType
|
|
24
43
|
) {
|
|
25
44
|
super();
|
|
26
45
|
this.name = name;
|
|
27
|
-
this.task_id = task_id;
|
|
28
46
|
this.description = description;
|
|
29
47
|
this.task_type = task_type;
|
|
48
|
+
this.category = category;
|
|
30
49
|
}
|
|
31
50
|
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
import { DiplomaticRequests } from './DiplomaticRequestsModel';
|
|
3
|
-
export declare enum DiplomaticApprovalStatus {
|
|
4
|
-
PENDING = "Pending",
|
|
5
|
-
APPROVED = "Approved",
|
|
6
|
-
REJECTED = "Rejected",
|
|
7
|
-
SKIPPED = "Skipped",
|
|
8
|
-
IN_PROGRESS = "In Progress"
|
|
9
|
-
}
|
|
10
|
-
export declare class DiplomaticApprovals extends BaseModel {
|
|
11
|
-
diplomatic_request_id: number;
|
|
12
|
-
level: number;
|
|
13
|
-
approver_user_id: number | null;
|
|
14
|
-
approver_role_id: number;
|
|
15
|
-
comment: string | null;
|
|
16
|
-
approval_status: DiplomaticApprovalStatus;
|
|
17
|
-
action_date: Date;
|
|
18
|
-
department_id: number | null;
|
|
19
|
-
section_id: number | null;
|
|
20
|
-
approved_by: number | null;
|
|
21
|
-
service_id: number | null;
|
|
22
|
-
sub_service_id: number | null;
|
|
23
|
-
diplomaticRequest?: DiplomaticRequests;
|
|
24
|
-
constructor(diplomatic_request_id: number, level: number, approver_role_id: number, approval_status: DiplomaticApprovalStatus, department_id: number | null, section_id: number | null, approved_by: number | null, service_id: number | null, sub_service_id: number | null);
|
|
25
|
-
}
|
|
@@ -1,95 +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.DiplomaticApprovals = exports.DiplomaticApprovalStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
const DiplomaticRequestsModel_1 = require("./DiplomaticRequestsModel");
|
|
16
|
-
var DiplomaticApprovalStatus;
|
|
17
|
-
(function (DiplomaticApprovalStatus) {
|
|
18
|
-
DiplomaticApprovalStatus["PENDING"] = "Pending";
|
|
19
|
-
DiplomaticApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
-
DiplomaticApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
-
DiplomaticApprovalStatus["SKIPPED"] = "Skipped";
|
|
22
|
-
DiplomaticApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
23
|
-
})(DiplomaticApprovalStatus || (exports.DiplomaticApprovalStatus = DiplomaticApprovalStatus = {}));
|
|
24
|
-
let DiplomaticApprovals = class DiplomaticApprovals extends BaseModel_1.BaseModel {
|
|
25
|
-
constructor(diplomatic_request_id, level, approver_role_id, approval_status, department_id, section_id, approved_by, service_id, sub_service_id) {
|
|
26
|
-
super();
|
|
27
|
-
this.diplomatic_request_id = diplomatic_request_id;
|
|
28
|
-
this.level = level;
|
|
29
|
-
this.approver_role_id = approver_role_id;
|
|
30
|
-
this.approval_status = approval_status;
|
|
31
|
-
this.department_id = department_id;
|
|
32
|
-
this.section_id = section_id;
|
|
33
|
-
this.approved_by = approved_by;
|
|
34
|
-
this.service_id = service_id;
|
|
35
|
-
this.sub_service_id = sub_service_id;
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
exports.DiplomaticApprovals = DiplomaticApprovals;
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, typeorm_1.Column)({ type: 'int' }),
|
|
41
|
-
__metadata("design:type", Number)
|
|
42
|
-
], DiplomaticApprovals.prototype, "diplomatic_request_id", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, typeorm_1.Column)({ type: 'int' }),
|
|
45
|
-
__metadata("design:type", Number)
|
|
46
|
-
], DiplomaticApprovals.prototype, "level", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
49
|
-
__metadata("design:type", Object)
|
|
50
|
-
], DiplomaticApprovals.prototype, "approver_user_id", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, typeorm_1.Column)({ type: 'int' }),
|
|
53
|
-
__metadata("design:type", Number)
|
|
54
|
-
], DiplomaticApprovals.prototype, "approver_role_id", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
57
|
-
__metadata("design:type", Object)
|
|
58
|
-
], DiplomaticApprovals.prototype, "comment", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: DiplomaticApprovalStatus, default: DiplomaticApprovalStatus.PENDING }),
|
|
61
|
-
__metadata("design:type", String)
|
|
62
|
-
], DiplomaticApprovals.prototype, "approval_status", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
|
|
65
|
-
__metadata("design:type", Date)
|
|
66
|
-
], DiplomaticApprovals.prototype, "action_date", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
69
|
-
__metadata("design:type", Object)
|
|
70
|
-
], DiplomaticApprovals.prototype, "department_id", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
73
|
-
__metadata("design:type", Object)
|
|
74
|
-
], DiplomaticApprovals.prototype, "section_id", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
77
|
-
__metadata("design:type", Object)
|
|
78
|
-
], DiplomaticApprovals.prototype, "approved_by", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
81
|
-
__metadata("design:type", Object)
|
|
82
|
-
], DiplomaticApprovals.prototype, "service_id", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
85
|
-
__metadata("design:type", Object)
|
|
86
|
-
], DiplomaticApprovals.prototype, "sub_service_id", void 0);
|
|
87
|
-
__decorate([
|
|
88
|
-
(0, typeorm_1.ManyToOne)(() => DiplomaticRequestsModel_1.DiplomaticRequests, dr => dr.approvals),
|
|
89
|
-
(0, typeorm_1.JoinColumn)({ name: 'diplomatic_request_id' }),
|
|
90
|
-
__metadata("design:type", DiplomaticRequestsModel_1.DiplomaticRequests)
|
|
91
|
-
], DiplomaticApprovals.prototype, "diplomaticRequest", void 0);
|
|
92
|
-
exports.DiplomaticApprovals = DiplomaticApprovals = __decorate([
|
|
93
|
-
(0, typeorm_1.Entity)({ name: 'diplomatic_approvals' }),
|
|
94
|
-
__metadata("design:paramtypes", [Number, Number, Number, String, Object, Object, Object, Object, Object])
|
|
95
|
-
], DiplomaticApprovals);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
import { DiplomaticRequests } from './DiplomaticRequestsModel';
|
|
3
|
-
export declare class DiplomaticAttachments extends BaseModel {
|
|
4
|
-
diplomatic_request_id: number;
|
|
5
|
-
file_url: string;
|
|
6
|
-
file_name: string;
|
|
7
|
-
file_type: string;
|
|
8
|
-
service_id: number | null;
|
|
9
|
-
sub_service_id: number | null;
|
|
10
|
-
diplomaticRequest?: DiplomaticRequests;
|
|
11
|
-
constructor(diplomatic_request_id: number, file_url: string, file_name: string, service_id: number | null, sub_service_id: number | null);
|
|
12
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
import { DiplomaticRequests } from './DiplomaticRequestsModel';
|
|
3
|
-
export declare class DiplomaticChats extends BaseModel {
|
|
4
|
-
diplomatic_request_id: number;
|
|
5
|
-
content: string;
|
|
6
|
-
sender_user_id: number;
|
|
7
|
-
service_id: number | null;
|
|
8
|
-
sub_service_id: number | null;
|
|
9
|
-
diplomaticRequest?: DiplomaticRequests;
|
|
10
|
-
constructor(diplomatic_request_id: number, content: string, sender_user_id: number, service_id: number | null, sub_service_id: number | null);
|
|
11
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum DiplomaticClubCardApprovalStatus {
|
|
3
|
-
PENDING = "Pending",
|
|
4
|
-
APPROVED = "Approved",
|
|
5
|
-
REJECTED = "Rejected"
|
|
6
|
-
}
|
|
7
|
-
export declare class DiplomaticClubCardApprovals extends BaseModel {
|
|
8
|
-
request_id: number;
|
|
9
|
-
approver_user_id: number;
|
|
10
|
-
approver_role_id: number | null;
|
|
11
|
-
step_order: number;
|
|
12
|
-
status: DiplomaticClubCardApprovalStatus;
|
|
13
|
-
comments: string | null;
|
|
14
|
-
approved_at: Date | null;
|
|
15
|
-
rejected_at: Date | null;
|
|
16
|
-
}
|
|
@@ -1,58 +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.DiplomaticClubCardApprovals = exports.DiplomaticClubCardApprovalStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var DiplomaticClubCardApprovalStatus;
|
|
16
|
-
(function (DiplomaticClubCardApprovalStatus) {
|
|
17
|
-
DiplomaticClubCardApprovalStatus["PENDING"] = "Pending";
|
|
18
|
-
DiplomaticClubCardApprovalStatus["APPROVED"] = "Approved";
|
|
19
|
-
DiplomaticClubCardApprovalStatus["REJECTED"] = "Rejected";
|
|
20
|
-
})(DiplomaticClubCardApprovalStatus || (exports.DiplomaticClubCardApprovalStatus = DiplomaticClubCardApprovalStatus = {}));
|
|
21
|
-
let DiplomaticClubCardApprovals = class DiplomaticClubCardApprovals extends BaseModel_1.BaseModel {
|
|
22
|
-
};
|
|
23
|
-
exports.DiplomaticClubCardApprovals = DiplomaticClubCardApprovals;
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
26
|
-
__metadata("design:type", Number)
|
|
27
|
-
], DiplomaticClubCardApprovals.prototype, "request_id", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
30
|
-
__metadata("design:type", Number)
|
|
31
|
-
], DiplomaticClubCardApprovals.prototype, "approver_user_id", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
34
|
-
__metadata("design:type", Object)
|
|
35
|
-
], DiplomaticClubCardApprovals.prototype, "approver_role_id", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false, default: 0 }),
|
|
38
|
-
__metadata("design:type", Number)
|
|
39
|
-
], DiplomaticClubCardApprovals.prototype, "step_order", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: DiplomaticClubCardApprovalStatus, default: DiplomaticClubCardApprovalStatus.PENDING, nullable: false }),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], DiplomaticClubCardApprovals.prototype, "status", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
46
|
-
__metadata("design:type", Object)
|
|
47
|
-
], DiplomaticClubCardApprovals.prototype, "comments", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
|
|
50
|
-
__metadata("design:type", Object)
|
|
51
|
-
], DiplomaticClubCardApprovals.prototype, "approved_at", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
|
|
54
|
-
__metadata("design:type", Object)
|
|
55
|
-
], DiplomaticClubCardApprovals.prototype, "rejected_at", void 0);
|
|
56
|
-
exports.DiplomaticClubCardApprovals = DiplomaticClubCardApprovals = __decorate([
|
|
57
|
-
(0, typeorm_1.Entity)({ name: 'diplomatic_club_card_approvals' })
|
|
58
|
-
], DiplomaticClubCardApprovals);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare class DiplomaticClubCardAttachments extends BaseModel {
|
|
3
|
-
request_id: number;
|
|
4
|
-
member_id: number | null;
|
|
5
|
-
file_name: string;
|
|
6
|
-
file_path: string;
|
|
7
|
-
file_type: string | null;
|
|
8
|
-
attachment_type: string | null;
|
|
9
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare class DiplomaticClubCardMembers extends BaseModel {
|
|
3
|
-
request_id: number;
|
|
4
|
-
member_name: string;
|
|
5
|
-
relation: string | null;
|
|
6
|
-
membership_id: string | null;
|
|
7
|
-
title: string | null;
|
|
8
|
-
diplomatic_title_id: number | null;
|
|
9
|
-
organization: string | null;
|
|
10
|
-
expiry_date: Date | null;
|
|
11
|
-
photo: string | null;
|
|
12
|
-
subscription_amount: number | null;
|
|
13
|
-
}
|
|
@@ -1,60 +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.DiplomaticClubCardMembers = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let DiplomaticClubCardMembers = class DiplomaticClubCardMembers extends BaseModel_1.BaseModel {
|
|
16
|
-
};
|
|
17
|
-
exports.DiplomaticClubCardMembers = DiplomaticClubCardMembers;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
20
|
-
__metadata("design:type", Number)
|
|
21
|
-
], DiplomaticClubCardMembers.prototype, "request_id", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], DiplomaticClubCardMembers.prototype, "member_name", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
28
|
-
__metadata("design:type", Object)
|
|
29
|
-
], DiplomaticClubCardMembers.prototype, "relation", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
32
|
-
__metadata("design:type", Object)
|
|
33
|
-
], DiplomaticClubCardMembers.prototype, "membership_id", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
36
|
-
__metadata("design:type", Object)
|
|
37
|
-
], DiplomaticClubCardMembers.prototype, "title", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
40
|
-
__metadata("design:type", Object)
|
|
41
|
-
], DiplomaticClubCardMembers.prototype, "diplomatic_title_id", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
44
|
-
__metadata("design:type", Object)
|
|
45
|
-
], DiplomaticClubCardMembers.prototype, "organization", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
48
|
-
__metadata("design:type", Object)
|
|
49
|
-
], DiplomaticClubCardMembers.prototype, "expiry_date", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
52
|
-
__metadata("design:type", Object)
|
|
53
|
-
], DiplomaticClubCardMembers.prototype, "photo", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: true }),
|
|
56
|
-
__metadata("design:type", Object)
|
|
57
|
-
], DiplomaticClubCardMembers.prototype, "subscription_amount", void 0);
|
|
58
|
-
exports.DiplomaticClubCardMembers = DiplomaticClubCardMembers = __decorate([
|
|
59
|
-
(0, typeorm_1.Entity)({ name: 'diplomatic_club_card_members' })
|
|
60
|
-
], DiplomaticClubCardMembers);
|