@platform-modules/civil-aviation-authority 2.3.12 → 2.3.14

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 (54) hide show
  1. package/.env +14 -9
  2. package/dist/data-source.js +31 -1
  3. package/dist/index.d.ts +35 -8
  4. package/dist/index.js +59 -9
  5. package/dist/models/AnnualTrainingPlanApprovalModel.d.ts +25 -0
  6. package/dist/models/AnnualTrainingPlanApprovalModel.js +107 -0
  7. package/dist/models/AnnualTrainingPlanAttachmentModel.d.ts +13 -0
  8. package/dist/models/AnnualTrainingPlanAttachmentModel.js +69 -0
  9. package/dist/models/AnnualTrainingPlanChatModel.d.ts +26 -0
  10. package/dist/models/AnnualTrainingPlanChatModel.js +89 -0
  11. package/dist/models/AnnualTrainingPlanRequestModel.d.ts +36 -0
  12. package/dist/models/AnnualTrainingPlanRequestModel.js +151 -0
  13. package/dist/models/AnnualTrainingPlanWorkflowModel.d.ts +19 -0
  14. package/dist/models/AnnualTrainingPlanWorkflowModel.js +81 -0
  15. package/dist/models/AssignTasksEmpApprovalModel.d.ts +23 -0
  16. package/dist/models/AssignTasksEmpApprovalModel.js +96 -0
  17. package/dist/models/AssignTasksEmpAttachmentModel.d.ts +12 -0
  18. package/dist/models/AssignTasksEmpAttachmentModel.js +64 -0
  19. package/dist/models/AssignTasksEmpChatModel.d.ts +19 -0
  20. package/dist/models/AssignTasksEmpChatModel.js +77 -0
  21. package/dist/models/AssignTasksEmpRequestModel.d.ts +25 -0
  22. package/dist/models/AssignTasksEmpRequestModel.js +100 -0
  23. package/dist/models/AssignTasksEmpWorkflowModel.d.ts +18 -0
  24. package/dist/models/AssignTasksEmpWorkflowModel.js +76 -0
  25. package/dist/models/TrainingRoomBookingApprovalModel.d.ts +25 -0
  26. package/dist/models/TrainingRoomBookingApprovalModel.js +107 -0
  27. package/dist/models/TrainingRoomBookingAttachmentModel.d.ts +13 -0
  28. package/dist/models/TrainingRoomBookingAttachmentModel.js +69 -0
  29. package/dist/models/TrainingRoomBookingChatModel.d.ts +26 -0
  30. package/dist/models/TrainingRoomBookingChatModel.js +89 -0
  31. package/dist/models/TrainingRoomBookingRequestModel.d.ts +38 -0
  32. package/dist/models/TrainingRoomBookingRequestModel.js +149 -0
  33. package/dist/models/TrainingRoomBookingWorkflowModel.d.ts +19 -0
  34. package/dist/models/TrainingRoomBookingWorkflowModel.js +81 -0
  35. package/dist/models/Workflows.d.ts +0 -9
  36. package/package.json +1 -1
  37. package/src/data-source.ts +31 -1
  38. package/src/index.ts +35 -8
  39. package/src/models/AnnualTrainingPlanApprovalModel.ts +94 -0
  40. package/src/models/AnnualTrainingPlanAttachmentModel.ts +56 -0
  41. package/src/models/AnnualTrainingPlanChatModel.ts +76 -0
  42. package/src/models/AnnualTrainingPlanRequestModel.ts +138 -0
  43. package/src/models/AnnualTrainingPlanWorkflowModel.ts +68 -0
  44. package/src/models/AssignTasksEmpApprovalModel.ts +84 -0
  45. package/src/models/AssignTasksEmpAttachmentModel.ts +52 -0
  46. package/src/models/AssignTasksEmpChatModel.ts +65 -0
  47. package/src/models/AssignTasksEmpRequestModel.ts +90 -0
  48. package/src/models/AssignTasksEmpWorkflowModel.ts +63 -0
  49. package/src/models/HrServiceRequestModel.ts +167 -167
  50. package/src/models/TrainingRoomBookingApprovalModel.ts +94 -0
  51. package/src/models/TrainingRoomBookingAttachmentModel.ts +56 -0
  52. package/src/models/TrainingRoomBookingChatModel.ts +76 -0
  53. package/src/models/TrainingRoomBookingRequestModel.ts +136 -0
  54. package/src/models/TrainingRoomBookingWorkflowModel.ts +68 -0
@@ -0,0 +1,151 @@
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.AnnualTrainingPlanRequest = exports.AnnualTrainingPlanPlace = exports.AnnualTrainingPlanRequestStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var AnnualTrainingPlanRequestStatus;
16
+ (function (AnnualTrainingPlanRequestStatus) {
17
+ AnnualTrainingPlanRequestStatus["PENDING"] = "Pending";
18
+ AnnualTrainingPlanRequestStatus["IN_PROGRESS"] = "In Progress";
19
+ AnnualTrainingPlanRequestStatus["COMPLETED"] = "Completed";
20
+ AnnualTrainingPlanRequestStatus["APPROVED"] = "Approved";
21
+ AnnualTrainingPlanRequestStatus["REJECTED"] = "Rejected";
22
+ })(AnnualTrainingPlanRequestStatus || (exports.AnnualTrainingPlanRequestStatus = AnnualTrainingPlanRequestStatus = {}));
23
+ var AnnualTrainingPlanPlace;
24
+ (function (AnnualTrainingPlanPlace) {
25
+ AnnualTrainingPlanPlace["INSIDE"] = "Inside";
26
+ AnnualTrainingPlanPlace["OUTSIDE"] = "Outside";
27
+ })(AnnualTrainingPlanPlace || (exports.AnnualTrainingPlanPlace = AnnualTrainingPlanPlace = {}));
28
+ let AnnualTrainingPlanRequest = class AnnualTrainingPlanRequest extends BaseModel_1.BaseModel {
29
+ constructor(user_id, course_name, no_of_participants, course_cost, total_cost, proposed_implementation_date, description, place, reason, status = AnnualTrainingPlanRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, location, employee_list, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id) {
30
+ super();
31
+ this.user_id = user_id;
32
+ this.course_name = course_name;
33
+ this.no_of_participants = no_of_participants;
34
+ this.course_cost = course_cost;
35
+ this.total_cost = total_cost;
36
+ this.proposed_implementation_date = proposed_implementation_date;
37
+ this.description = description;
38
+ this.place = place;
39
+ this.reason = reason;
40
+ this.status = status;
41
+ this.service_id = service_id || null;
42
+ this.sub_service_id = sub_service_id || null;
43
+ this.req_user_department_id = req_user_department_id || null;
44
+ this.req_user_section_id = req_user_section_id || null;
45
+ this.req_user_position_id = req_user_position_id || null;
46
+ this.location = location || null;
47
+ this.employee_list = employee_list || null;
48
+ this.reviewer_user_id = reviewer_user_id || null;
49
+ this.assigned_to_user_id = assigned_to_user_id || null;
50
+ this.assigned_at = assigned_at || null;
51
+ this.workflow_execution_id = workflow_execution_id || null;
52
+ }
53
+ };
54
+ exports.AnnualTrainingPlanRequest = AnnualTrainingPlanRequest;
55
+ __decorate([
56
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
57
+ __metadata("design:type", Object)
58
+ ], AnnualTrainingPlanRequest.prototype, "req_user_department_id", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
61
+ __metadata("design:type", Object)
62
+ ], AnnualTrainingPlanRequest.prototype, "req_user_section_id", void 0);
63
+ __decorate([
64
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
65
+ __metadata("design:type", Object)
66
+ ], AnnualTrainingPlanRequest.prototype, "req_user_position_id", void 0);
67
+ __decorate([
68
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
69
+ __metadata("design:type", Object)
70
+ ], AnnualTrainingPlanRequest.prototype, "service_id", void 0);
71
+ __decorate([
72
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
73
+ __metadata("design:type", Object)
74
+ ], AnnualTrainingPlanRequest.prototype, "sub_service_id", void 0);
75
+ __decorate([
76
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
77
+ __metadata("design:type", Number)
78
+ ], AnnualTrainingPlanRequest.prototype, "user_id", void 0);
79
+ __decorate([
80
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
81
+ __metadata("design:type", String)
82
+ ], AnnualTrainingPlanRequest.prototype, "course_name", void 0);
83
+ __decorate([
84
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
85
+ __metadata("design:type", Number)
86
+ ], AnnualTrainingPlanRequest.prototype, "no_of_participants", void 0);
87
+ __decorate([
88
+ (0, typeorm_1.Column)({ type: "decimal", precision: 10, scale: 2, nullable: false }),
89
+ __metadata("design:type", Number)
90
+ ], AnnualTrainingPlanRequest.prototype, "course_cost", void 0);
91
+ __decorate([
92
+ (0, typeorm_1.Column)({ type: "decimal", precision: 10, scale: 2, nullable: false }),
93
+ __metadata("design:type", Number)
94
+ ], AnnualTrainingPlanRequest.prototype, "total_cost", void 0);
95
+ __decorate([
96
+ (0, typeorm_1.Column)({ type: "date", nullable: false }),
97
+ __metadata("design:type", Date)
98
+ ], AnnualTrainingPlanRequest.prototype, "proposed_implementation_date", void 0);
99
+ __decorate([
100
+ (0, typeorm_1.Column)({ type: "text", nullable: false }),
101
+ __metadata("design:type", String)
102
+ ], AnnualTrainingPlanRequest.prototype, "description", void 0);
103
+ __decorate([
104
+ (0, typeorm_1.Column)({
105
+ type: "enum",
106
+ enum: AnnualTrainingPlanPlace,
107
+ nullable: false
108
+ }),
109
+ __metadata("design:type", String)
110
+ ], AnnualTrainingPlanRequest.prototype, "place", void 0);
111
+ __decorate([
112
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
113
+ __metadata("design:type", Object)
114
+ ], AnnualTrainingPlanRequest.prototype, "location", void 0);
115
+ __decorate([
116
+ (0, typeorm_1.Column)({ type: "text", nullable: false }),
117
+ __metadata("design:type", String)
118
+ ], AnnualTrainingPlanRequest.prototype, "reason", void 0);
119
+ __decorate([
120
+ (0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
121
+ __metadata("design:type", Object)
122
+ ], AnnualTrainingPlanRequest.prototype, "employee_list", void 0);
123
+ __decorate([
124
+ (0, typeorm_1.Column)({
125
+ type: "enum",
126
+ enum: AnnualTrainingPlanRequestStatus,
127
+ default: AnnualTrainingPlanRequestStatus.PENDING,
128
+ nullable: false
129
+ }),
130
+ __metadata("design:type", String)
131
+ ], AnnualTrainingPlanRequest.prototype, "status", void 0);
132
+ __decorate([
133
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
134
+ __metadata("design:type", Object)
135
+ ], AnnualTrainingPlanRequest.prototype, "reviewer_user_id", void 0);
136
+ __decorate([
137
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
138
+ __metadata("design:type", Object)
139
+ ], AnnualTrainingPlanRequest.prototype, "assigned_to_user_id", void 0);
140
+ __decorate([
141
+ (0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
142
+ __metadata("design:type", Object)
143
+ ], AnnualTrainingPlanRequest.prototype, "assigned_at", void 0);
144
+ __decorate([
145
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
146
+ __metadata("design:type", Object)
147
+ ], AnnualTrainingPlanRequest.prototype, "workflow_execution_id", void 0);
148
+ exports.AnnualTrainingPlanRequest = AnnualTrainingPlanRequest = __decorate([
149
+ (0, typeorm_1.Entity)({ name: "annual_training_plan_requests" }),
150
+ __metadata("design:paramtypes", [Number, String, Number, Number, Number, Date, String, String, String, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
151
+ ], AnnualTrainingPlanRequest);
@@ -0,0 +1,19 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum AnnualTrainingPlanWorkFlowStatus {
3
+ COMPLETED = "Completed",
4
+ NOT_YET_STARTED = "Not Yet Started",
5
+ PENDING = "Pending",
6
+ REJECTED = "Rejected"
7
+ }
8
+ export declare class AnnualTrainingPlanWorkFlow extends BaseModel {
9
+ request_id: number;
10
+ service_id: number | null;
11
+ sub_service_id: number | null;
12
+ order: number | null;
13
+ content: string;
14
+ approver_role_id: number | null;
15
+ approver_user_id: number | null;
16
+ approved_by: number | null;
17
+ status: AnnualTrainingPlanWorkFlowStatus;
18
+ constructor(request_id: number, content: string, status: AnnualTrainingPlanWorkFlowStatus, service_id?: number | null, sub_service_id?: number | null, order?: number, approver_role_id?: number | null, approver_user_id?: number | null, approved_by?: number | null);
19
+ }
@@ -0,0 +1,81 @@
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.AnnualTrainingPlanWorkFlow = exports.AnnualTrainingPlanWorkFlowStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var AnnualTrainingPlanWorkFlowStatus;
16
+ (function (AnnualTrainingPlanWorkFlowStatus) {
17
+ AnnualTrainingPlanWorkFlowStatus["COMPLETED"] = "Completed";
18
+ AnnualTrainingPlanWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
19
+ AnnualTrainingPlanWorkFlowStatus["PENDING"] = "Pending";
20
+ AnnualTrainingPlanWorkFlowStatus["REJECTED"] = "Rejected";
21
+ })(AnnualTrainingPlanWorkFlowStatus || (exports.AnnualTrainingPlanWorkFlowStatus = AnnualTrainingPlanWorkFlowStatus = {}));
22
+ let AnnualTrainingPlanWorkFlow = class AnnualTrainingPlanWorkFlow extends BaseModel_1.BaseModel {
23
+ constructor(request_id, content, status, service_id, sub_service_id, order, approver_role_id, approver_user_id, approved_by) {
24
+ super();
25
+ this.request_id = request_id;
26
+ this.service_id = service_id || null;
27
+ this.sub_service_id = sub_service_id || null;
28
+ this.content = content;
29
+ this.status = status;
30
+ this.order = order || null;
31
+ this.approver_role_id = approver_role_id || null;
32
+ this.approver_user_id = approver_user_id || null;
33
+ this.approved_by = approved_by || null;
34
+ }
35
+ };
36
+ exports.AnnualTrainingPlanWorkFlow = AnnualTrainingPlanWorkFlow;
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: "int", nullable: false }),
39
+ __metadata("design:type", Number)
40
+ ], AnnualTrainingPlanWorkFlow.prototype, "request_id", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
43
+ __metadata("design:type", Object)
44
+ ], AnnualTrainingPlanWorkFlow.prototype, "service_id", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
47
+ __metadata("design:type", Object)
48
+ ], AnnualTrainingPlanWorkFlow.prototype, "sub_service_id", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
51
+ __metadata("design:type", Object)
52
+ ], AnnualTrainingPlanWorkFlow.prototype, "order", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
55
+ __metadata("design:type", String)
56
+ ], AnnualTrainingPlanWorkFlow.prototype, "content", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], AnnualTrainingPlanWorkFlow.prototype, "approver_role_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], AnnualTrainingPlanWorkFlow.prototype, "approver_user_id", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
67
+ __metadata("design:type", Object)
68
+ ], AnnualTrainingPlanWorkFlow.prototype, "approved_by", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({
71
+ type: "enum",
72
+ enum: AnnualTrainingPlanWorkFlowStatus,
73
+ default: AnnualTrainingPlanWorkFlowStatus.PENDING,
74
+ nullable: false
75
+ }),
76
+ __metadata("design:type", String)
77
+ ], AnnualTrainingPlanWorkFlow.prototype, "status", void 0);
78
+ exports.AnnualTrainingPlanWorkFlow = AnnualTrainingPlanWorkFlow = __decorate([
79
+ (0, typeorm_1.Entity)({ name: "annual_training_plan_workflows" }),
80
+ __metadata("design:paramtypes", [Number, String, String, Object, Object, Number, Object, Object, Object])
81
+ ], AnnualTrainingPlanWorkFlow);
@@ -0,0 +1,23 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum AssignTasksEmpApprovalStatus {
3
+ PENDING = "Pending",
4
+ IN_PROGRESS = "In Progress",
5
+ APPROVED = "Approved",
6
+ REJECTED = "Rejected"
7
+ }
8
+ export declare class AssignTasksEmpApprovalDetails extends BaseModel {
9
+ request_id: number;
10
+ service_id: number | null;
11
+ sub_service_id: number | null;
12
+ level: number;
13
+ approver_role_id: number;
14
+ department_id: number | null;
15
+ section_id: number | null;
16
+ approver_user_id: number | null;
17
+ delegate_user_id: number | null;
18
+ approved_by: number | null;
19
+ comment: string;
20
+ approval_status: AssignTasksEmpApprovalStatus;
21
+ is_allowed: boolean;
22
+ constructor(request_id: number, approver_role_id: number, comment: string, approval_status: AssignTasksEmpApprovalStatus, level: number, department_id?: number | null, section_id?: number | null, approver_user_id?: number | null, delegate_user_id?: number | null, approved_by?: number | null, service_id?: number, sub_service_id?: number, is_allowed?: boolean);
23
+ }
@@ -0,0 +1,96 @@
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.AssignTasksEmpApprovalDetails = exports.AssignTasksEmpApprovalStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var AssignTasksEmpApprovalStatus;
16
+ (function (AssignTasksEmpApprovalStatus) {
17
+ AssignTasksEmpApprovalStatus["PENDING"] = "Pending";
18
+ AssignTasksEmpApprovalStatus["IN_PROGRESS"] = "In Progress";
19
+ AssignTasksEmpApprovalStatus["APPROVED"] = "Approved";
20
+ AssignTasksEmpApprovalStatus["REJECTED"] = "Rejected";
21
+ })(AssignTasksEmpApprovalStatus || (exports.AssignTasksEmpApprovalStatus = AssignTasksEmpApprovalStatus = {}));
22
+ let AssignTasksEmpApprovalDetails = class AssignTasksEmpApprovalDetails extends BaseModel_1.BaseModel {
23
+ constructor(request_id, approver_role_id, comment, approval_status, level, department_id, section_id, approver_user_id, delegate_user_id, approved_by, service_id, sub_service_id, is_allowed) {
24
+ super();
25
+ this.request_id = request_id;
26
+ this.service_id = service_id || null;
27
+ this.sub_service_id = sub_service_id || null;
28
+ this.approver_role_id = approver_role_id;
29
+ this.comment = comment;
30
+ this.approval_status = approval_status;
31
+ this.level = level;
32
+ this.department_id = department_id || null;
33
+ this.section_id = section_id || null;
34
+ this.approver_user_id = approver_user_id || null;
35
+ this.delegate_user_id = delegate_user_id || null;
36
+ this.approved_by = approved_by || null;
37
+ this.is_allowed = is_allowed !== undefined ? is_allowed : true;
38
+ }
39
+ };
40
+ exports.AssignTasksEmpApprovalDetails = AssignTasksEmpApprovalDetails;
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
43
+ __metadata("design:type", Number)
44
+ ], AssignTasksEmpApprovalDetails.prototype, "request_id", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
47
+ __metadata("design:type", Object)
48
+ ], AssignTasksEmpApprovalDetails.prototype, "service_id", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
51
+ __metadata("design:type", Object)
52
+ ], AssignTasksEmpApprovalDetails.prototype, "sub_service_id", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
55
+ __metadata("design:type", Number)
56
+ ], AssignTasksEmpApprovalDetails.prototype, "level", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
59
+ __metadata("design:type", Number)
60
+ ], AssignTasksEmpApprovalDetails.prototype, "approver_role_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], AssignTasksEmpApprovalDetails.prototype, "department_id", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
67
+ __metadata("design:type", Object)
68
+ ], AssignTasksEmpApprovalDetails.prototype, "section_id", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
71
+ __metadata("design:type", Object)
72
+ ], AssignTasksEmpApprovalDetails.prototype, "approver_user_id", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
75
+ __metadata("design:type", Object)
76
+ ], AssignTasksEmpApprovalDetails.prototype, "delegate_user_id", void 0);
77
+ __decorate([
78
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
79
+ __metadata("design:type", Object)
80
+ ], AssignTasksEmpApprovalDetails.prototype, "approved_by", void 0);
81
+ __decorate([
82
+ (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true, default: '' }),
83
+ __metadata("design:type", String)
84
+ ], AssignTasksEmpApprovalDetails.prototype, "comment", void 0);
85
+ __decorate([
86
+ (0, typeorm_1.Column)({ type: 'enum', enum: AssignTasksEmpApprovalStatus, default: AssignTasksEmpApprovalStatus.PENDING, nullable: false }),
87
+ __metadata("design:type", String)
88
+ ], AssignTasksEmpApprovalDetails.prototype, "approval_status", void 0);
89
+ __decorate([
90
+ (0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
91
+ __metadata("design:type", Boolean)
92
+ ], AssignTasksEmpApprovalDetails.prototype, "is_allowed", void 0);
93
+ exports.AssignTasksEmpApprovalDetails = AssignTasksEmpApprovalDetails = __decorate([
94
+ (0, typeorm_1.Entity)({ name: 'assign_tasks_emp_approvals' }),
95
+ __metadata("design:paramtypes", [Number, Number, String, String, Number, Object, Object, Object, Object, Object, Number, Number, Boolean])
96
+ ], AssignTasksEmpApprovalDetails);
@@ -0,0 +1,12 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class AssignTasksEmpRequestAttachment extends BaseModel {
3
+ request_id: number;
4
+ service_id: number | null;
5
+ sub_service_id: number | null;
6
+ file_url: string;
7
+ file_name: string;
8
+ file_type: string;
9
+ file_size: number | null;
10
+ chat_id: number | null;
11
+ constructor(request_id: number, file_url: string, file_name?: string, file_type?: string, file_size?: number, service_id?: number, sub_service_id?: number, chat_id?: number);
12
+ }
@@ -0,0 +1,64 @@
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.AssignTasksEmpRequestAttachment = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let AssignTasksEmpRequestAttachment = class AssignTasksEmpRequestAttachment extends BaseModel_1.BaseModel {
16
+ constructor(request_id, file_url, file_name, file_type, file_size, service_id, sub_service_id, chat_id) {
17
+ super();
18
+ this.request_id = request_id;
19
+ this.service_id = service_id || null;
20
+ this.sub_service_id = sub_service_id || null;
21
+ this.file_url = file_url;
22
+ this.file_name = file_name || '';
23
+ this.file_type = file_type || '';
24
+ this.file_size = file_size || null;
25
+ this.chat_id = chat_id || null;
26
+ }
27
+ };
28
+ exports.AssignTasksEmpRequestAttachment = AssignTasksEmpRequestAttachment;
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
31
+ __metadata("design:type", Number)
32
+ ], AssignTasksEmpRequestAttachment.prototype, "request_id", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
35
+ __metadata("design:type", Object)
36
+ ], AssignTasksEmpRequestAttachment.prototype, "service_id", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
39
+ __metadata("design:type", Object)
40
+ ], AssignTasksEmpRequestAttachment.prototype, "sub_service_id", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
43
+ __metadata("design:type", String)
44
+ ], AssignTasksEmpRequestAttachment.prototype, "file_url", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
47
+ __metadata("design:type", String)
48
+ ], AssignTasksEmpRequestAttachment.prototype, "file_name", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
51
+ __metadata("design:type", String)
52
+ ], AssignTasksEmpRequestAttachment.prototype, "file_type", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
55
+ __metadata("design:type", Object)
56
+ ], AssignTasksEmpRequestAttachment.prototype, "file_size", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], AssignTasksEmpRequestAttachment.prototype, "chat_id", void 0);
61
+ exports.AssignTasksEmpRequestAttachment = AssignTasksEmpRequestAttachment = __decorate([
62
+ (0, typeorm_1.Entity)({ name: 'assign_tasks_emp_attachments' }),
63
+ __metadata("design:paramtypes", [Number, String, String, String, Number, Number, Number, Number])
64
+ ], AssignTasksEmpRequestAttachment);
@@ -0,0 +1,19 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum AssignTasksEmpMessageType {
3
+ TEXT = "text",
4
+ IMAGE = "image",
5
+ VIDEO = "video",
6
+ FILE = "file",
7
+ LINK = "link"
8
+ }
9
+ export declare class AssignTasksEmpRequestChat extends BaseModel {
10
+ request_id: number;
11
+ service_id: number | null;
12
+ sub_service_id: number | null;
13
+ user_id: number;
14
+ role_id: number;
15
+ message: string;
16
+ messageType: AssignTasksEmpMessageType;
17
+ status: string | null;
18
+ constructor(request_id: number, user_id: number, role_id: number, message: string, service_id?: number, sub_service_id?: number, messageType?: AssignTasksEmpMessageType, status?: string | null);
19
+ }
@@ -0,0 +1,77 @@
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.AssignTasksEmpRequestChat = exports.AssignTasksEmpMessageType = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var AssignTasksEmpMessageType;
16
+ (function (AssignTasksEmpMessageType) {
17
+ AssignTasksEmpMessageType["TEXT"] = "text";
18
+ AssignTasksEmpMessageType["IMAGE"] = "image";
19
+ AssignTasksEmpMessageType["VIDEO"] = "video";
20
+ AssignTasksEmpMessageType["FILE"] = "file";
21
+ AssignTasksEmpMessageType["LINK"] = "link";
22
+ })(AssignTasksEmpMessageType || (exports.AssignTasksEmpMessageType = AssignTasksEmpMessageType = {}));
23
+ let AssignTasksEmpRequestChat = class AssignTasksEmpRequestChat extends BaseModel_1.BaseModel {
24
+ constructor(request_id, user_id, role_id, message, service_id, sub_service_id, messageType, status) {
25
+ super();
26
+ this.request_id = request_id;
27
+ this.service_id = service_id || null;
28
+ this.sub_service_id = sub_service_id || null;
29
+ this.user_id = user_id;
30
+ this.role_id = role_id;
31
+ this.message = message;
32
+ this.messageType = messageType || AssignTasksEmpMessageType.TEXT;
33
+ this.status = status || null;
34
+ }
35
+ };
36
+ exports.AssignTasksEmpRequestChat = AssignTasksEmpRequestChat;
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
39
+ __metadata("design:type", Number)
40
+ ], AssignTasksEmpRequestChat.prototype, "request_id", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
43
+ __metadata("design:type", Object)
44
+ ], AssignTasksEmpRequestChat.prototype, "service_id", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
47
+ __metadata("design:type", Object)
48
+ ], AssignTasksEmpRequestChat.prototype, "sub_service_id", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
51
+ __metadata("design:type", Number)
52
+ ], AssignTasksEmpRequestChat.prototype, "user_id", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
55
+ __metadata("design:type", Number)
56
+ ], AssignTasksEmpRequestChat.prototype, "role_id", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'text', nullable: false }),
59
+ __metadata("design:type", String)
60
+ ], AssignTasksEmpRequestChat.prototype, "message", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({
63
+ type: 'enum',
64
+ enum: AssignTasksEmpMessageType,
65
+ default: AssignTasksEmpMessageType.TEXT,
66
+ nullable: false
67
+ }),
68
+ __metadata("design:type", String)
69
+ ], AssignTasksEmpRequestChat.prototype, "messageType", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
72
+ __metadata("design:type", Object)
73
+ ], AssignTasksEmpRequestChat.prototype, "status", void 0);
74
+ exports.AssignTasksEmpRequestChat = AssignTasksEmpRequestChat = __decorate([
75
+ (0, typeorm_1.Entity)({ name: 'assign_tasks_emp_chats' }),
76
+ __metadata("design:paramtypes", [Number, Number, Number, String, Number, Number, String, Object])
77
+ ], AssignTasksEmpRequestChat);
@@ -0,0 +1,25 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum AssignTasksEmpPriority {
3
+ HIGH = "High",
4
+ MEDIUM = "Medium",
5
+ LOW = "Low"
6
+ }
7
+ export declare enum AssignTasksEmpStatus {
8
+ ASSIGNED = "Assigned",
9
+ IN_PROGRESS = "In Progress",
10
+ APPROVED = "Completed"
11
+ }
12
+ export declare class AssignTasksEmpRequests extends BaseModel {
13
+ req_user_department_id: number | null;
14
+ req_user_section_id: number | null;
15
+ service_id: number;
16
+ sub_service_id: number;
17
+ user_id: number;
18
+ task_title: string;
19
+ task_description: string;
20
+ priority: AssignTasksEmpPriority;
21
+ completion_date: Date | null;
22
+ status: AssignTasksEmpStatus;
23
+ workflow_execution_id: string | null;
24
+ constructor(req_user_department_id: number | null, req_user_section_id: number | null, service_id: number, sub_service_id: number, user_id: number, task_title: string, task_description: string, priority: AssignTasksEmpPriority, status: AssignTasksEmpStatus, completion_date?: Date | null, workflow_execution_id?: string | null);
25
+ }