@platform-modules/civil-aviation-authority 2.3.3 → 2.3.4

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.
Files changed (33) hide show
  1. package/.env +20 -1
  2. package/dist/data-source.js +1 -11
  3. package/dist/index.d.ts +13 -2
  4. package/dist/index.js +20 -5
  5. package/dist/models/DutyMissionAirTicketDetailsModel.d.ts +20 -0
  6. package/dist/models/DutyMissionAirTicketDetailsModel.js +100 -0
  7. package/dist/models/DutyMissionApprovalModel.d.ts +23 -0
  8. package/dist/models/DutyMissionApprovalModel.js +96 -0
  9. package/dist/models/DutyMissionAttachmentModel.d.ts +12 -0
  10. package/dist/models/DutyMissionAttachmentModel.js +64 -0
  11. package/dist/models/DutyMissionChatModel.d.ts +19 -0
  12. package/dist/models/DutyMissionChatModel.js +77 -0
  13. package/dist/models/DutyMissionEmployeeDetailsModel.d.ts +17 -0
  14. package/dist/models/DutyMissionEmployeeDetailsModel.js +85 -0
  15. package/dist/models/DutyMissionRequestModel.d.ts +67 -0
  16. package/dist/models/DutyMissionRequestModel.js +252 -0
  17. package/dist/models/DutyMissionWorkflowModel.d.ts +18 -0
  18. package/dist/models/DutyMissionWorkflowModel.js +76 -0
  19. package/dist/models/Workflows.d.ts +0 -9
  20. package/package.json +1 -1
  21. package/src/data-source.ts +183 -181
  22. package/src/index.ts +109 -98
  23. package/src/models/DutyMissionAirTicketDetailsModel.ts +87 -0
  24. package/src/models/DutyMissionApprovalModel.ts +83 -0
  25. package/src/models/DutyMissionAttachmentModel.ts +51 -0
  26. package/src/models/DutyMissionChatModel.ts +65 -0
  27. package/src/models/DutyMissionEmployeeDetailsModel.ts +72 -0
  28. package/src/models/DutyMissionRequestModel.ts +239 -0
  29. package/src/models/DutyMissionWorkflowModel.ts +62 -0
  30. package/src/models/HrServiceRequestModel.ts +167 -167
  31. package/dist/models/TemporaryAssignmentRequestModel.d.ts +0 -49
  32. package/dist/models/TemporaryAssignmentRequestModel.js +0 -204
  33. package/src/models/TemporaryAssignmentRequestModel.ts +0 -194
@@ -1,167 +1,167 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
-
4
- export enum HrServiceRequestStatus {
5
- PENDING = "Pending",
6
- ASSIGNED = "Assigned",
7
- IN_PROGRESS = "In Progress",
8
- COMPLETED = "Completed",
9
- APPROVED = "Approved",
10
- REJECTED = "Rejected"
11
- }
12
-
13
- @Entity({ name: "hr_service_requests" })
14
- export class HrServiceRequest extends BaseModel {
15
- @Column({ type: "integer", nullable: true })
16
- req_user_department_id: number | null;
17
-
18
- @Column({ type: "integer", nullable: true })
19
- req_user_section_id: number | null;
20
-
21
- @Column({ type: "integer", nullable: true })
22
- req_user_position_id: number | null;
23
-
24
- @Column({ type: "integer", nullable: true })
25
- service_id: number | null;
26
-
27
- @Column({ type: "integer", nullable: true })
28
- sub_service_id: number | null;
29
-
30
- @Column({ type: "integer", nullable: false })
31
- user_id: number;
32
-
33
- @Column({ type: "text", nullable: true })
34
- description: string | null;
35
-
36
- @Column({ type: "enum", enum: HrServiceRequestStatus, default: HrServiceRequestStatus.PENDING, nullable: false })
37
- status: HrServiceRequestStatus;
38
-
39
- @Column({ type: "integer", nullable: true })
40
- reviewer_user_id: number | null;
41
-
42
- @Column({ type: "integer", nullable: true })
43
- assigned_to_user_id: number | null;
44
-
45
- @Column({ type: "timestamp", nullable: true })
46
- assigned_at: Date | null;
47
-
48
- @Column({ type: "varchar", length: 255, nullable: true })
49
- workflow_execution_id: string | null;
50
-
51
- // Assignment Decision specific fields
52
- @Column({ type: "varchar", length: 255, nullable: false })
53
- assigned_employee_name: string;
54
-
55
- @Column({ type: "varchar", length: 50, nullable: true })
56
- civil_id_card_number: string | null;
57
-
58
- @Column({ type: "varchar", length: 100, nullable: false })
59
- employee_id: string;
60
-
61
- @Column({ type: "varchar", length: 255, nullable: false })
62
- current_job_position: string;
63
-
64
- @Column({ type: "varchar", length: 255, nullable: false })
65
- assigned_job_position: string;
66
-
67
- @Column({ type: "date", nullable: false })
68
- start_date: Date;
69
-
70
- @Column({ type: "date", nullable: false })
71
- end_date: Date;
72
-
73
- @Column({ type: "decimal", precision: 5, scale: 2, nullable: true })
74
- assignment_allowance: number | null; // 0-100 percentage
75
-
76
- @Column({ type: "varchar", length: 20, nullable: false })
77
- phone_number: string;
78
-
79
- @Column({ type: "text", nullable: false })
80
- reason_for_request: string;
81
-
82
- // Replacement tracking fields
83
- @Column({ type: "boolean", default: false, nullable: false })
84
- is_replaced: boolean;
85
-
86
- @Column({ type: "varchar", length: 255, nullable: true })
87
- replacement_employee_name: string | null;
88
-
89
- @Column({ type: "varchar", length: 100, nullable: true })
90
- replacement_employee_id: string | null;
91
-
92
- @Column({ type: "varchar", length: 50, nullable: true })
93
- replacement_civil_id_card_number: string | null;
94
-
95
- @Column({ type: "text", nullable: true })
96
- replacement_reason: string | null;
97
-
98
- @Column({ type: "integer", nullable: true })
99
- replaced_by_user_id: number | null;
100
-
101
- @Column({ type: "timestamp", nullable: true })
102
- replaced_at: Date | null;
103
-
104
- constructor(
105
- user_id: number,
106
- status: HrServiceRequestStatus = HrServiceRequestStatus.PENDING,
107
- service_id?: number | null,
108
- sub_service_id?: number | null,
109
- req_user_department_id?: number | null,
110
- req_user_section_id?: number | null,
111
- req_user_position_id?: number | null,
112
- description?: string | null,
113
- reviewer_user_id?: number | null,
114
- assigned_to_user_id?: number | null,
115
- assigned_at?: Date | null,
116
- workflow_execution_id?: string | null,
117
- assigned_employee_name?: string,
118
- civil_id_card_number?: string | null,
119
- employee_id?: string,
120
- current_job_position?: string,
121
- assigned_job_position?: string,
122
- start_date?: Date,
123
- end_date?: Date,
124
- assignment_allowance?: number | null,
125
- phone_number?: string,
126
- reason_for_request?: string,
127
- is_replaced?: boolean,
128
- replacement_employee_name?: string | null,
129
- replacement_employee_id?: string | null,
130
- replacement_civil_id_card_number?: string | null,
131
- replacement_reason?: string | null,
132
- replaced_by_user_id?: number | null,
133
- replaced_at?: Date | null
134
- ) {
135
- super();
136
- this.user_id = user_id;
137
- this.status = status;
138
- this.service_id = service_id || null;
139
- this.sub_service_id = sub_service_id || null;
140
- this.req_user_department_id = req_user_department_id || null;
141
- this.req_user_section_id = req_user_section_id || null;
142
- this.req_user_position_id = req_user_position_id || null;
143
- this.description = description || null;
144
- this.reviewer_user_id = reviewer_user_id || null;
145
- this.assigned_to_user_id = assigned_to_user_id || null;
146
- this.assigned_at = assigned_at || null;
147
- this.workflow_execution_id = workflow_execution_id || null;
148
- this.assigned_employee_name = assigned_employee_name || "";
149
- this.civil_id_card_number = civil_id_card_number || null;
150
- this.employee_id = employee_id || "";
151
- this.current_job_position = current_job_position || "";
152
- this.assigned_job_position = assigned_job_position || "";
153
- this.start_date = start_date || new Date();
154
- this.end_date = end_date || new Date();
155
- this.assignment_allowance = assignment_allowance || null;
156
- this.phone_number = phone_number || "";
157
- this.reason_for_request = reason_for_request || "";
158
- this.is_replaced = is_replaced || false;
159
- this.replacement_employee_name = replacement_employee_name || null;
160
- this.replacement_employee_id = replacement_employee_id || null;
161
- this.replacement_civil_id_card_number = replacement_civil_id_card_number || null;
162
- this.replacement_reason = replacement_reason || null;
163
- this.replaced_by_user_id = replaced_by_user_id || null;
164
- this.replaced_at = replaced_at || null;
165
- }
166
- }
167
-
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ export enum HrServiceRequestStatus {
5
+ PENDING = "Pending",
6
+ ASSIGNED = "Assigned",
7
+ IN_PROGRESS = "In Progress",
8
+ COMPLETED = "Completed",
9
+ APPROVED = "Approved",
10
+ REJECTED = "Rejected"
11
+ }
12
+
13
+ @Entity({ name: "hr_service_requests" })
14
+ export class HrServiceRequest extends BaseModel {
15
+ @Column({ type: "integer", nullable: true })
16
+ req_user_department_id: number | null;
17
+
18
+ @Column({ type: "integer", nullable: true })
19
+ req_user_section_id: number | null;
20
+
21
+ @Column({ type: "integer", nullable: true })
22
+ req_user_position_id: number | null;
23
+
24
+ @Column({ type: "integer", nullable: true })
25
+ service_id: number | null;
26
+
27
+ @Column({ type: "integer", nullable: true })
28
+ sub_service_id: number | null;
29
+
30
+ @Column({ type: "integer", nullable: false })
31
+ user_id: number;
32
+
33
+ @Column({ type: "text", nullable: true })
34
+ description: string | null;
35
+
36
+ @Column({ type: "enum", enum: HrServiceRequestStatus, default: HrServiceRequestStatus.PENDING, nullable: false })
37
+ status: HrServiceRequestStatus;
38
+
39
+ @Column({ type: "integer", nullable: true })
40
+ reviewer_user_id: number | null;
41
+
42
+ @Column({ type: "integer", nullable: true })
43
+ assigned_to_user_id: number | null;
44
+
45
+ @Column({ type: "timestamp", nullable: true })
46
+ assigned_at: Date | null;
47
+
48
+ @Column({ type: "varchar", length: 255, nullable: true })
49
+ workflow_execution_id: string | null;
50
+
51
+ // Assignment Decision specific fields
52
+ @Column({ type: "varchar", length: 255, nullable: false })
53
+ assigned_employee_name: string;
54
+
55
+ @Column({ type: "varchar", length: 50, nullable: true })
56
+ civil_id_card_number: string | null;
57
+
58
+ @Column({ type: "varchar", length: 100, nullable: false })
59
+ employee_id: string;
60
+
61
+ @Column({ type: "varchar", length: 255, nullable: false })
62
+ current_job_position: string;
63
+
64
+ @Column({ type: "varchar", length: 255, nullable: false })
65
+ assigned_job_position: string;
66
+
67
+ @Column({ type: "date", nullable: false })
68
+ start_date: Date;
69
+
70
+ @Column({ type: "date", nullable: false })
71
+ end_date: Date;
72
+
73
+ @Column({ type: "decimal", precision: 5, scale: 2, nullable: true })
74
+ assignment_allowance: number | null; // 0-100 percentage
75
+
76
+ @Column({ type: "varchar", length: 20, nullable: false })
77
+ phone_number: string;
78
+
79
+ @Column({ type: "text", nullable: false })
80
+ reason_for_request: string;
81
+
82
+ // Replacement tracking fields
83
+ @Column({ type: "boolean", default: false, nullable: false })
84
+ is_replaced: boolean;
85
+
86
+ @Column({ type: "varchar", length: 255, nullable: true })
87
+ replacement_employee_name: string | null;
88
+
89
+ @Column({ type: "varchar", length: 100, nullable: true })
90
+ replacement_employee_id: string | null;
91
+
92
+ @Column({ type: "varchar", length: 50, nullable: true })
93
+ replacement_civil_id_card_number: string | null;
94
+
95
+ @Column({ type: "text", nullable: true })
96
+ replacement_reason: string | null;
97
+
98
+ @Column({ type: "integer", nullable: true })
99
+ replaced_by_user_id: number | null;
100
+
101
+ @Column({ type: "timestamp", nullable: true })
102
+ replaced_at: Date | null;
103
+
104
+ constructor(
105
+ user_id: number,
106
+ status: HrServiceRequestStatus = HrServiceRequestStatus.PENDING,
107
+ service_id?: number | null,
108
+ sub_service_id?: number | null,
109
+ req_user_department_id?: number | null,
110
+ req_user_section_id?: number | null,
111
+ req_user_position_id?: number | null,
112
+ description?: string | null,
113
+ reviewer_user_id?: number | null,
114
+ assigned_to_user_id?: number | null,
115
+ assigned_at?: Date | null,
116
+ workflow_execution_id?: string | null,
117
+ assigned_employee_name?: string,
118
+ civil_id_card_number?: string | null,
119
+ employee_id?: string,
120
+ current_job_position?: string,
121
+ assigned_job_position?: string,
122
+ start_date?: Date,
123
+ end_date?: Date,
124
+ assignment_allowance?: number | null,
125
+ phone_number?: string,
126
+ reason_for_request?: string,
127
+ is_replaced?: boolean,
128
+ replacement_employee_name?: string | null,
129
+ replacement_employee_id?: string | null,
130
+ replacement_civil_id_card_number?: string | null,
131
+ replacement_reason?: string | null,
132
+ replaced_by_user_id?: number | null,
133
+ replaced_at?: Date | null
134
+ ) {
135
+ super();
136
+ this.user_id = user_id;
137
+ this.status = status;
138
+ this.service_id = service_id || null;
139
+ this.sub_service_id = sub_service_id || null;
140
+ this.req_user_department_id = req_user_department_id || null;
141
+ this.req_user_section_id = req_user_section_id || null;
142
+ this.req_user_position_id = req_user_position_id || null;
143
+ this.description = description || null;
144
+ this.reviewer_user_id = reviewer_user_id || null;
145
+ this.assigned_to_user_id = assigned_to_user_id || null;
146
+ this.assigned_at = assigned_at || null;
147
+ this.workflow_execution_id = workflow_execution_id || null;
148
+ this.assigned_employee_name = assigned_employee_name || "";
149
+ this.civil_id_card_number = civil_id_card_number || null;
150
+ this.employee_id = employee_id || "";
151
+ this.current_job_position = current_job_position || "";
152
+ this.assigned_job_position = assigned_job_position || "";
153
+ this.start_date = start_date || new Date();
154
+ this.end_date = end_date || new Date();
155
+ this.assignment_allowance = assignment_allowance || null;
156
+ this.phone_number = phone_number || "";
157
+ this.reason_for_request = reason_for_request || "";
158
+ this.is_replaced = is_replaced || false;
159
+ this.replacement_employee_name = replacement_employee_name || null;
160
+ this.replacement_employee_id = replacement_employee_id || null;
161
+ this.replacement_civil_id_card_number = replacement_civil_id_card_number || null;
162
+ this.replacement_reason = replacement_reason || null;
163
+ this.replaced_by_user_id = replaced_by_user_id || null;
164
+ this.replaced_at = replaced_at || null;
165
+ }
166
+ }
167
+
@@ -1,49 +0,0 @@
1
- import { BaseModel } from "./BaseModel";
2
- export declare enum TemporaryAssignmentRequestStatus {
3
- PENDING = "Pending",
4
- ASSIGNED = "Assigned",
5
- IN_PROGRESS = "In Progress",
6
- COMPLETED = "Completed",
7
- APPROVED = "Approved",
8
- REJECTED = "Rejected"
9
- }
10
- export declare enum SalaryPaymentSource {
11
- AUTHORITY = "Authority",
12
- OTHER_ENTITY = "Other Entity"
13
- }
14
- export declare class TemporaryAssignmentRequest extends BaseModel {
15
- req_user_department_id: number | null;
16
- req_user_section_id: number | null;
17
- req_user_position_id: number | null;
18
- service_id: number | null;
19
- sub_service_id: number | null;
20
- user_id: number;
21
- description: string | null;
22
- status: TemporaryAssignmentRequestStatus;
23
- reviewer_user_id: number | null;
24
- assigned_to_user_id: number | null;
25
- assigned_at: Date | null;
26
- workflow_execution_id: string | null;
27
- assigned_employee_name: string;
28
- civil_id_card_number: string | null;
29
- employee_id: string;
30
- current_job_position: string;
31
- assigned_job_position: string;
32
- original_department_id: number;
33
- assigned_department_id: number;
34
- entity: string | null;
35
- start_date: Date;
36
- end_date: Date;
37
- phone_number: string;
38
- reason_for_request: string;
39
- salary_payment_source: SalaryPaymentSource;
40
- social_service_fund_contribution: string | null;
41
- is_replaced: boolean;
42
- replacement_employee_name: string | null;
43
- replacement_employee_id: string | null;
44
- replacement_civil_id_card_number: string | null;
45
- replacement_reason: string | null;
46
- replaced_by_user_id: number | null;
47
- replaced_at: Date | null;
48
- constructor(user_id: number, status?: TemporaryAssignmentRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, assigned_employee_name?: string, civil_id_card_number?: string | null, employee_id?: string, current_job_position?: string, assigned_job_position?: string, original_department_id?: number, assigned_department_id?: number, entity?: string | null, start_date?: Date, end_date?: Date, phone_number?: string, reason_for_request?: string, salary_payment_source?: SalaryPaymentSource, social_service_fund_contribution?: string | null, is_replaced?: boolean, replacement_employee_name?: string | null, replacement_employee_id?: string | null, replacement_civil_id_card_number?: string | null, replacement_reason?: string | null, replaced_by_user_id?: number | null, replaced_at?: Date | null);
49
- }
@@ -1,204 +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.TemporaryAssignmentRequest = exports.SalaryPaymentSource = exports.TemporaryAssignmentRequestStatus = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- var TemporaryAssignmentRequestStatus;
16
- (function (TemporaryAssignmentRequestStatus) {
17
- TemporaryAssignmentRequestStatus["PENDING"] = "Pending";
18
- TemporaryAssignmentRequestStatus["ASSIGNED"] = "Assigned";
19
- TemporaryAssignmentRequestStatus["IN_PROGRESS"] = "In Progress";
20
- TemporaryAssignmentRequestStatus["COMPLETED"] = "Completed";
21
- TemporaryAssignmentRequestStatus["APPROVED"] = "Approved";
22
- TemporaryAssignmentRequestStatus["REJECTED"] = "Rejected";
23
- })(TemporaryAssignmentRequestStatus || (exports.TemporaryAssignmentRequestStatus = TemporaryAssignmentRequestStatus = {}));
24
- var SalaryPaymentSource;
25
- (function (SalaryPaymentSource) {
26
- SalaryPaymentSource["AUTHORITY"] = "Authority";
27
- SalaryPaymentSource["OTHER_ENTITY"] = "Other Entity";
28
- })(SalaryPaymentSource || (exports.SalaryPaymentSource = SalaryPaymentSource = {}));
29
- let TemporaryAssignmentRequest = class TemporaryAssignmentRequest extends BaseModel_1.BaseModel {
30
- constructor(user_id, status = TemporaryAssignmentRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, description, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, assigned_employee_name, civil_id_card_number, employee_id, current_job_position, assigned_job_position, original_department_id, assigned_department_id, entity, start_date, end_date, phone_number, reason_for_request, salary_payment_source, social_service_fund_contribution, is_replaced, replacement_employee_name, replacement_employee_id, replacement_civil_id_card_number, replacement_reason, replaced_by_user_id, replaced_at) {
31
- super();
32
- this.user_id = user_id;
33
- this.status = status;
34
- this.service_id = service_id || null;
35
- this.sub_service_id = sub_service_id || null;
36
- this.req_user_department_id = req_user_department_id || null;
37
- this.req_user_section_id = req_user_section_id || null;
38
- this.req_user_position_id = req_user_position_id || null;
39
- this.description = description || null;
40
- this.reviewer_user_id = reviewer_user_id || null;
41
- this.assigned_to_user_id = assigned_to_user_id || null;
42
- this.assigned_at = assigned_at || null;
43
- this.workflow_execution_id = workflow_execution_id || null;
44
- this.assigned_employee_name = assigned_employee_name || "";
45
- this.civil_id_card_number = civil_id_card_number || null;
46
- this.employee_id = employee_id || "";
47
- this.current_job_position = current_job_position || "";
48
- this.assigned_job_position = assigned_job_position || "";
49
- this.original_department_id = original_department_id || 0;
50
- this.assigned_department_id = assigned_department_id || 0;
51
- this.entity = entity || null;
52
- this.start_date = start_date || new Date();
53
- this.end_date = end_date || new Date();
54
- this.phone_number = phone_number || "";
55
- this.reason_for_request = reason_for_request || "";
56
- this.salary_payment_source = salary_payment_source || SalaryPaymentSource.AUTHORITY;
57
- this.social_service_fund_contribution = social_service_fund_contribution || null;
58
- this.is_replaced = is_replaced || false;
59
- this.replacement_employee_name = replacement_employee_name || null;
60
- this.replacement_employee_id = replacement_employee_id || null;
61
- this.replacement_civil_id_card_number = replacement_civil_id_card_number || null;
62
- this.replacement_reason = replacement_reason || null;
63
- this.replaced_by_user_id = replaced_by_user_id || null;
64
- this.replaced_at = replaced_at || null;
65
- }
66
- };
67
- exports.TemporaryAssignmentRequest = TemporaryAssignmentRequest;
68
- __decorate([
69
- (0, typeorm_1.Column)({ type: "integer", nullable: true }),
70
- __metadata("design:type", Object)
71
- ], TemporaryAssignmentRequest.prototype, "req_user_department_id", void 0);
72
- __decorate([
73
- (0, typeorm_1.Column)({ type: "integer", nullable: true }),
74
- __metadata("design:type", Object)
75
- ], TemporaryAssignmentRequest.prototype, "req_user_section_id", void 0);
76
- __decorate([
77
- (0, typeorm_1.Column)({ type: "integer", nullable: true }),
78
- __metadata("design:type", Object)
79
- ], TemporaryAssignmentRequest.prototype, "req_user_position_id", void 0);
80
- __decorate([
81
- (0, typeorm_1.Column)({ type: "integer", nullable: true }),
82
- __metadata("design:type", Object)
83
- ], TemporaryAssignmentRequest.prototype, "service_id", void 0);
84
- __decorate([
85
- (0, typeorm_1.Column)({ type: "integer", nullable: true }),
86
- __metadata("design:type", Object)
87
- ], TemporaryAssignmentRequest.prototype, "sub_service_id", void 0);
88
- __decorate([
89
- (0, typeorm_1.Column)({ type: "integer", nullable: false }),
90
- __metadata("design:type", Number)
91
- ], TemporaryAssignmentRequest.prototype, "user_id", void 0);
92
- __decorate([
93
- (0, typeorm_1.Column)({ type: "text", nullable: true }),
94
- __metadata("design:type", Object)
95
- ], TemporaryAssignmentRequest.prototype, "description", void 0);
96
- __decorate([
97
- (0, typeorm_1.Column)({ type: "enum", enum: TemporaryAssignmentRequestStatus, default: TemporaryAssignmentRequestStatus.PENDING, nullable: false }),
98
- __metadata("design:type", String)
99
- ], TemporaryAssignmentRequest.prototype, "status", void 0);
100
- __decorate([
101
- (0, typeorm_1.Column)({ type: "integer", nullable: true }),
102
- __metadata("design:type", Object)
103
- ], TemporaryAssignmentRequest.prototype, "reviewer_user_id", void 0);
104
- __decorate([
105
- (0, typeorm_1.Column)({ type: "integer", nullable: true }),
106
- __metadata("design:type", Object)
107
- ], TemporaryAssignmentRequest.prototype, "assigned_to_user_id", void 0);
108
- __decorate([
109
- (0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
110
- __metadata("design:type", Object)
111
- ], TemporaryAssignmentRequest.prototype, "assigned_at", void 0);
112
- __decorate([
113
- (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
114
- __metadata("design:type", Object)
115
- ], TemporaryAssignmentRequest.prototype, "workflow_execution_id", void 0);
116
- __decorate([
117
- (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
118
- __metadata("design:type", String)
119
- ], TemporaryAssignmentRequest.prototype, "assigned_employee_name", void 0);
120
- __decorate([
121
- (0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
122
- __metadata("design:type", Object)
123
- ], TemporaryAssignmentRequest.prototype, "civil_id_card_number", void 0);
124
- __decorate([
125
- (0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
126
- __metadata("design:type", String)
127
- ], TemporaryAssignmentRequest.prototype, "employee_id", void 0);
128
- __decorate([
129
- (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
130
- __metadata("design:type", String)
131
- ], TemporaryAssignmentRequest.prototype, "current_job_position", void 0);
132
- __decorate([
133
- (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
134
- __metadata("design:type", String)
135
- ], TemporaryAssignmentRequest.prototype, "assigned_job_position", void 0);
136
- __decorate([
137
- (0, typeorm_1.Column)({ type: "integer", nullable: false }),
138
- __metadata("design:type", Number)
139
- ], TemporaryAssignmentRequest.prototype, "original_department_id", void 0);
140
- __decorate([
141
- (0, typeorm_1.Column)({ type: "integer", nullable: false }),
142
- __metadata("design:type", Number)
143
- ], TemporaryAssignmentRequest.prototype, "assigned_department_id", void 0);
144
- __decorate([
145
- (0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
146
- __metadata("design:type", Object)
147
- ], TemporaryAssignmentRequest.prototype, "entity", void 0);
148
- __decorate([
149
- (0, typeorm_1.Column)({ type: "date", nullable: false }),
150
- __metadata("design:type", Date)
151
- ], TemporaryAssignmentRequest.prototype, "start_date", void 0);
152
- __decorate([
153
- (0, typeorm_1.Column)({ type: "date", nullable: false }),
154
- __metadata("design:type", Date)
155
- ], TemporaryAssignmentRequest.prototype, "end_date", void 0);
156
- __decorate([
157
- (0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: false }),
158
- __metadata("design:type", String)
159
- ], TemporaryAssignmentRequest.prototype, "phone_number", void 0);
160
- __decorate([
161
- (0, typeorm_1.Column)({ type: "text", nullable: false }),
162
- __metadata("design:type", String)
163
- ], TemporaryAssignmentRequest.prototype, "reason_for_request", void 0);
164
- __decorate([
165
- (0, typeorm_1.Column)({ type: "enum", enum: SalaryPaymentSource, nullable: false }),
166
- __metadata("design:type", String)
167
- ], TemporaryAssignmentRequest.prototype, "salary_payment_source", void 0);
168
- __decorate([
169
- (0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
170
- __metadata("design:type", Object)
171
- ], TemporaryAssignmentRequest.prototype, "social_service_fund_contribution", void 0);
172
- __decorate([
173
- (0, typeorm_1.Column)({ type: "boolean", default: false, nullable: false }),
174
- __metadata("design:type", Boolean)
175
- ], TemporaryAssignmentRequest.prototype, "is_replaced", void 0);
176
- __decorate([
177
- (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
178
- __metadata("design:type", Object)
179
- ], TemporaryAssignmentRequest.prototype, "replacement_employee_name", void 0);
180
- __decorate([
181
- (0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
182
- __metadata("design:type", Object)
183
- ], TemporaryAssignmentRequest.prototype, "replacement_employee_id", void 0);
184
- __decorate([
185
- (0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
186
- __metadata("design:type", Object)
187
- ], TemporaryAssignmentRequest.prototype, "replacement_civil_id_card_number", void 0);
188
- __decorate([
189
- (0, typeorm_1.Column)({ type: "text", nullable: true }),
190
- __metadata("design:type", Object)
191
- ], TemporaryAssignmentRequest.prototype, "replacement_reason", void 0);
192
- __decorate([
193
- (0, typeorm_1.Column)({ type: "integer", nullable: true }),
194
- __metadata("design:type", Object)
195
- ], TemporaryAssignmentRequest.prototype, "replaced_by_user_id", void 0);
196
- __decorate([
197
- (0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
198
- __metadata("design:type", Object)
199
- ], TemporaryAssignmentRequest.prototype, "replaced_at", void 0);
200
- exports.TemporaryAssignmentRequest = TemporaryAssignmentRequest = __decorate([
201
- (0, typeorm_1.Entity)({ name: "temporary_assignment_requests" }),
202
- __metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, Object, String, String, String, Number, Number, Object, Date,
203
- Date, String, String, String, Object, Boolean, Object, Object, Object, Object, Object, Object])
204
- ], TemporaryAssignmentRequest);