@platform-modules/civil-aviation-authority 2.3.24 → 2.3.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data-source.js +10 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +16 -2
- package/dist/models/LogisticsVehicleMaintenanceApprovalModel.d.ts +23 -0
- package/dist/models/LogisticsVehicleMaintenanceApprovalModel.js +96 -0
- package/dist/models/LogisticsVehicleMaintenanceAttachmentModel.d.ts +12 -0
- package/dist/models/LogisticsVehicleMaintenanceAttachmentModel.js +64 -0
- package/dist/models/LogisticsVehicleMaintenanceChatModel.d.ts +20 -0
- package/dist/models/LogisticsVehicleMaintenanceChatModel.js +78 -0
- package/dist/models/LogisticsVehicleMaintenanceRequestModel.d.ts +28 -0
- package/dist/models/LogisticsVehicleMaintenanceRequestModel.js +107 -0
- package/dist/models/LogisticsVehicleMaintenanceWorkflowModel.d.ts +18 -0
- package/dist/models/LogisticsVehicleMaintenanceWorkflowModel.js +76 -0
- package/dist/models/ShiftAllowanceRequestModel.d.ts +37 -0
- package/dist/models/ShiftAllowanceRequestModel.js +140 -0
- package/package.json +1 -1
- package/src/data-source.ts +10 -0
- package/src/index.ts +9 -0
- package/src/models/LogisticsVehicleMaintenanceApprovalModel.ts +83 -0
- package/src/models/LogisticsVehicleMaintenanceAttachmentModel.ts +52 -0
- package/src/models/LogisticsVehicleMaintenanceChatModel.ts +65 -0
- package/src/models/LogisticsVehicleMaintenanceRequestModel.ts +93 -0
- package/src/models/LogisticsVehicleMaintenanceWorkflowModel.ts +62 -0
- package/src/models/ShiftAllowanceRequestModel.ts +126 -0
package/dist/data-source.js
CHANGED
|
@@ -40,6 +40,11 @@ const LogisticsApprovalModel_1 = require("./models/LogisticsApprovalModel");
|
|
|
40
40
|
const LogisticsChatModel_1 = require("./models/LogisticsChatModel");
|
|
41
41
|
const LogisticsAttachmentModel_1 = require("./models/LogisticsAttachmentModel");
|
|
42
42
|
const LogisticsWorkflowModel_1 = require("./models/LogisticsWorkflowModel");
|
|
43
|
+
const LogisticsVehicleMaintenanceRequestModel_1 = require("./models/LogisticsVehicleMaintenanceRequestModel");
|
|
44
|
+
const LogisticsVehicleMaintenanceApprovalModel_1 = require("./models/LogisticsVehicleMaintenanceApprovalModel");
|
|
45
|
+
const LogisticsVehicleMaintenanceAttachmentModel_1 = require("./models/LogisticsVehicleMaintenanceAttachmentModel");
|
|
46
|
+
const LogisticsVehicleMaintenanceChatModel_1 = require("./models/LogisticsVehicleMaintenanceChatModel");
|
|
47
|
+
const LogisticsVehicleMaintenanceWorkflowModel_1 = require("./models/LogisticsVehicleMaintenanceWorkflowModel");
|
|
43
48
|
const importantLinksModel_1 = require("./models/importantLinksModel");
|
|
44
49
|
const DelegateSettingsModel_1 = require("./models/DelegateSettingsModel");
|
|
45
50
|
const feedbackModel_1 = require("./models/feedbackModel");
|
|
@@ -163,6 +168,11 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
163
168
|
LogisticsChatModel_1.LogisticsRequestChat,
|
|
164
169
|
LogisticsAttachmentModel_1.LogisticsRequestAttachment,
|
|
165
170
|
LogisticsWorkflowModel_1.LogisticsWorkFlow,
|
|
171
|
+
LogisticsVehicleMaintenanceRequestModel_1.LogisticsVehicleMaintenanceRequests,
|
|
172
|
+
LogisticsVehicleMaintenanceApprovalModel_1.LogisticsVehicleMaintenanceApprovalDetails,
|
|
173
|
+
LogisticsVehicleMaintenanceAttachmentModel_1.LogisticsVehicleMaintenanceAttachment,
|
|
174
|
+
LogisticsVehicleMaintenanceChatModel_1.LogisticsVehicleMaintenanceChat,
|
|
175
|
+
LogisticsVehicleMaintenanceWorkflowModel_1.LogisticsVehicleMaintenanceWorkFlow,
|
|
166
176
|
AccessCardRequestModel_1.AccessCardRequest,
|
|
167
177
|
AccessCardApprovalModel_1.AccessCardApproval,
|
|
168
178
|
AccessCardAttachmentModel_1.AccessCardAttachment,
|
package/dist/index.d.ts
CHANGED
|
@@ -30,6 +30,15 @@ export * from './models/LogisticsChatModel';
|
|
|
30
30
|
export * from './models/LogisticsAttachmentModel';
|
|
31
31
|
export * from './models/importantLinksModel';
|
|
32
32
|
export * from './models/LogisticsWorkflowModel';
|
|
33
|
+
export * from './models/LogisticsVehicleMaintenanceRequestModel';
|
|
34
|
+
export * from './models/LogisticsVehicleMaintenanceApprovalModel';
|
|
35
|
+
export * from './models/LogisticsVehicleMaintenanceAttachmentModel';
|
|
36
|
+
export * from './models/LogisticsVehicleMaintenanceChatModel';
|
|
37
|
+
export * from './models/LogisticsVehicleMaintenanceWorkflowModel';
|
|
38
|
+
export { VehicleMaintenanceType, VehicleMaintenanceStatus } from './models/LogisticsVehicleMaintenanceRequestModel';
|
|
39
|
+
export { LogisticsVehicleMaintenanceApprovalStatus } from './models/LogisticsVehicleMaintenanceApprovalModel';
|
|
40
|
+
export { LogisticsVehicleMaintenanceMessageType } from './models/LogisticsVehicleMaintenanceChatModel';
|
|
41
|
+
export { LogisticsVehicleMaintenanceWorkFlowStatus } from './models/LogisticsVehicleMaintenanceWorkflowModel';
|
|
33
42
|
export * from './models/AccessCardRequestModel';
|
|
34
43
|
export * from './models/AccessCardApprovalModel';
|
|
35
44
|
export * from './models/AccessCardAttachmentModel';
|
package/dist/index.js
CHANGED
|
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
18
|
-
exports.AssignTasksEmpMessageType = exports.AssignTasksEmpRequestChat = exports.AssignTasksEmpRequestAttachment = exports.AssignTasksEmpWorkFlowStatus = exports.AssignTasksEmpApprovalStatus = exports.AssignTasksEmpPriority = exports.AssignTasksEmpStatus = void 0;
|
|
17
|
+
exports.RequestForCoverageWorkFlowStatus = exports.RequestForCoverageNewsSize = exports.RequestForCoverageRequestStatus = exports.ServiceTransferRequestType = exports.SalaryDetailsType = exports.ServiceTransferRequestStatus = exports.TemporaryAssignmentRequestType = exports.TemporaryAssignmentRequestStatus = exports.SecondmentRequestStatus = exports.TrainingRoomBookingChatStatus = exports.TrainingRoomBookingMessageType = exports.TrainingRoomBookingRequestChat = exports.TrainingRoomBookingRequestAttachment = exports.TrainingRoomBookingWorkFlowStatus = exports.TrainingRoomBookingApprovalStatus = exports.TrainingRoomBookingRoomType = exports.TrainingRoomBookingRequestStatus = exports.AnnualTrainingPlanChatStatus = exports.AnnualTrainingPlanMessageType = exports.AnnualTrainingPlanRequestChat = exports.AnnualTrainingPlanRequestAttachment = exports.AnnualTrainingPlanWorkFlowStatus = exports.AnnualTrainingPlanApprovalStatus = exports.AnnualTrainingPlanPlace = exports.AnnualTrainingPlanRequestStatus = exports.StudyLeaveChatStatus = exports.StudyLeaveMessageType = exports.StudyLeaveRequestChat = exports.StudyLeaveRequestAttachment = exports.StudyLeaveWorkFlowStatus = exports.StudyLeaveApprovalStatus = exports.StudyLeaveRequestStatus = exports.TrainingMessageType = exports.TrainingRequestChat = exports.TrainingRequestAttachment = exports.TrainingWorkFlowStatus = exports.TrainingApprovalStatus = exports.TrainingRequestStatus = exports.HrServiceChatStatus = exports.HrServiceMessageType = exports.HrServiceRequestChat = exports.HrServiceRequestAttachment = exports.HrServiceWorkFlowStatus = exports.HrServiceApprovalStatus = exports.HrServiceRequestStatus = exports.LogisticsVehicleMaintenanceWorkFlowStatus = exports.LogisticsVehicleMaintenanceMessageType = exports.LogisticsVehicleMaintenanceApprovalStatus = exports.VehicleMaintenanceStatus = exports.VehicleMaintenanceType = void 0;
|
|
18
|
+
exports.AssignTasksEmpMessageType = exports.AssignTasksEmpRequestChat = exports.AssignTasksEmpRequestAttachment = exports.AssignTasksEmpWorkFlowStatus = exports.AssignTasksEmpApprovalStatus = exports.AssignTasksEmpPriority = exports.AssignTasksEmpStatus = exports.RequestForCoverageRequestAttachment = exports.RequestForCoverageChatStatus = exports.RequestForCoverageMessageType = exports.RequestForCoverageRequestChat = exports.RequestForCoverageApprovalStatus = void 0;
|
|
19
19
|
__exportStar(require("./models/user"), exports);
|
|
20
20
|
__exportStar(require("./models/role"), exports);
|
|
21
21
|
__exportStar(require("./models/user-sessions"), exports);
|
|
@@ -52,6 +52,20 @@ __exportStar(require("./models/LogisticsChatModel"), exports);
|
|
|
52
52
|
__exportStar(require("./models/LogisticsAttachmentModel"), exports);
|
|
53
53
|
__exportStar(require("./models/importantLinksModel"), exports);
|
|
54
54
|
__exportStar(require("./models/LogisticsWorkflowModel"), exports);
|
|
55
|
+
__exportStar(require("./models/LogisticsVehicleMaintenanceRequestModel"), exports);
|
|
56
|
+
__exportStar(require("./models/LogisticsVehicleMaintenanceApprovalModel"), exports);
|
|
57
|
+
__exportStar(require("./models/LogisticsVehicleMaintenanceAttachmentModel"), exports);
|
|
58
|
+
__exportStar(require("./models/LogisticsVehicleMaintenanceChatModel"), exports);
|
|
59
|
+
__exportStar(require("./models/LogisticsVehicleMaintenanceWorkflowModel"), exports);
|
|
60
|
+
var LogisticsVehicleMaintenanceRequestModel_1 = require("./models/LogisticsVehicleMaintenanceRequestModel");
|
|
61
|
+
Object.defineProperty(exports, "VehicleMaintenanceType", { enumerable: true, get: function () { return LogisticsVehicleMaintenanceRequestModel_1.VehicleMaintenanceType; } });
|
|
62
|
+
Object.defineProperty(exports, "VehicleMaintenanceStatus", { enumerable: true, get: function () { return LogisticsVehicleMaintenanceRequestModel_1.VehicleMaintenanceStatus; } });
|
|
63
|
+
var LogisticsVehicleMaintenanceApprovalModel_1 = require("./models/LogisticsVehicleMaintenanceApprovalModel");
|
|
64
|
+
Object.defineProperty(exports, "LogisticsVehicleMaintenanceApprovalStatus", { enumerable: true, get: function () { return LogisticsVehicleMaintenanceApprovalModel_1.LogisticsVehicleMaintenanceApprovalStatus; } });
|
|
65
|
+
var LogisticsVehicleMaintenanceChatModel_1 = require("./models/LogisticsVehicleMaintenanceChatModel");
|
|
66
|
+
Object.defineProperty(exports, "LogisticsVehicleMaintenanceMessageType", { enumerable: true, get: function () { return LogisticsVehicleMaintenanceChatModel_1.LogisticsVehicleMaintenanceMessageType; } });
|
|
67
|
+
var LogisticsVehicleMaintenanceWorkflowModel_1 = require("./models/LogisticsVehicleMaintenanceWorkflowModel");
|
|
68
|
+
Object.defineProperty(exports, "LogisticsVehicleMaintenanceWorkFlowStatus", { enumerable: true, get: function () { return LogisticsVehicleMaintenanceWorkflowModel_1.LogisticsVehicleMaintenanceWorkFlowStatus; } });
|
|
55
69
|
__exportStar(require("./models/AccessCardRequestModel"), exports);
|
|
56
70
|
__exportStar(require("./models/AccessCardApprovalModel"), exports);
|
|
57
71
|
__exportStar(require("./models/AccessCardAttachmentModel"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum LogisticsVehicleMaintenanceApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class LogisticsVehicleMaintenanceApprovalDetails 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: LogisticsVehicleMaintenanceApprovalStatus;
|
|
21
|
+
is_allowed: boolean;
|
|
22
|
+
constructor(request_id: number, approver_role_id: number, comment: string, approval_status: LogisticsVehicleMaintenanceApprovalStatus, 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.LogisticsVehicleMaintenanceApprovalDetails = exports.LogisticsVehicleMaintenanceApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var LogisticsVehicleMaintenanceApprovalStatus;
|
|
16
|
+
(function (LogisticsVehicleMaintenanceApprovalStatus) {
|
|
17
|
+
LogisticsVehicleMaintenanceApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
LogisticsVehicleMaintenanceApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
LogisticsVehicleMaintenanceApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
LogisticsVehicleMaintenanceApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(LogisticsVehicleMaintenanceApprovalStatus || (exports.LogisticsVehicleMaintenanceApprovalStatus = LogisticsVehicleMaintenanceApprovalStatus = {}));
|
|
22
|
+
let LogisticsVehicleMaintenanceApprovalDetails = class LogisticsVehicleMaintenanceApprovalDetails 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.LogisticsVehicleMaintenanceApprovalDetails = LogisticsVehicleMaintenanceApprovalDetails;
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], LogisticsVehicleMaintenanceApprovalDetails.prototype, "request_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], LogisticsVehicleMaintenanceApprovalDetails.prototype, "service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], LogisticsVehicleMaintenanceApprovalDetails.prototype, "sub_service_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], LogisticsVehicleMaintenanceApprovalDetails.prototype, "level", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], LogisticsVehicleMaintenanceApprovalDetails.prototype, "approver_role_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], LogisticsVehicleMaintenanceApprovalDetails.prototype, "department_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], LogisticsVehicleMaintenanceApprovalDetails.prototype, "section_id", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], LogisticsVehicleMaintenanceApprovalDetails.prototype, "approver_user_id", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
75
|
+
__metadata("design:type", Object)
|
|
76
|
+
], LogisticsVehicleMaintenanceApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
79
|
+
__metadata("design:type", Object)
|
|
80
|
+
], LogisticsVehicleMaintenanceApprovalDetails.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
|
+
], LogisticsVehicleMaintenanceApprovalDetails.prototype, "comment", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: LogisticsVehicleMaintenanceApprovalStatus, default: LogisticsVehicleMaintenanceApprovalStatus.PENDING, nullable: false }),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], LogisticsVehicleMaintenanceApprovalDetails.prototype, "approval_status", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
91
|
+
__metadata("design:type", Boolean)
|
|
92
|
+
], LogisticsVehicleMaintenanceApprovalDetails.prototype, "is_allowed", void 0);
|
|
93
|
+
exports.LogisticsVehicleMaintenanceApprovalDetails = LogisticsVehicleMaintenanceApprovalDetails = __decorate([
|
|
94
|
+
(0, typeorm_1.Entity)({ name: 'logistics_vehicle_maintenance_approvals' }),
|
|
95
|
+
__metadata("design:paramtypes", [Number, Number, String, String, Number, Object, Object, Object, Object, Object, Number, Number, Boolean])
|
|
96
|
+
], LogisticsVehicleMaintenanceApprovalDetails);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class LogisticsVehicleMaintenanceAttachment 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.LogisticsVehicleMaintenanceAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let LogisticsVehicleMaintenanceAttachment = class LogisticsVehicleMaintenanceAttachment 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.LogisticsVehicleMaintenanceAttachment = LogisticsVehicleMaintenanceAttachment;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], LogisticsVehicleMaintenanceAttachment.prototype, "request_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], LogisticsVehicleMaintenanceAttachment.prototype, "service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], LogisticsVehicleMaintenanceAttachment.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
|
+
], LogisticsVehicleMaintenanceAttachment.prototype, "file_url", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], LogisticsVehicleMaintenanceAttachment.prototype, "file_name", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], LogisticsVehicleMaintenanceAttachment.prototype, "file_type", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], LogisticsVehicleMaintenanceAttachment.prototype, "file_size", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], LogisticsVehicleMaintenanceAttachment.prototype, "chat_id", void 0);
|
|
61
|
+
exports.LogisticsVehicleMaintenanceAttachment = LogisticsVehicleMaintenanceAttachment = __decorate([
|
|
62
|
+
(0, typeorm_1.Entity)({ name: 'logistics_vehicle_maintenance_attachments' }),
|
|
63
|
+
__metadata("design:paramtypes", [Number, String, String, String, Number, Number, Number, Number])
|
|
64
|
+
], LogisticsVehicleMaintenanceAttachment);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
import { LogisticsVehicleMaintenanceApprovalStatus } from './LogisticsVehicleMaintenanceApprovalModel';
|
|
3
|
+
export declare enum LogisticsVehicleMaintenanceMessageType {
|
|
4
|
+
TEXT = "text",
|
|
5
|
+
IMAGE = "image",
|
|
6
|
+
VIDEO = "video",
|
|
7
|
+
FILE = "file",
|
|
8
|
+
LINK = "link"
|
|
9
|
+
}
|
|
10
|
+
export declare class LogisticsVehicleMaintenanceChat extends BaseModel {
|
|
11
|
+
request_id: number;
|
|
12
|
+
service_id: number | null;
|
|
13
|
+
sub_service_id: number | null;
|
|
14
|
+
user_id: number;
|
|
15
|
+
role_id: number;
|
|
16
|
+
message: string;
|
|
17
|
+
messageType: LogisticsVehicleMaintenanceMessageType;
|
|
18
|
+
status: string;
|
|
19
|
+
constructor(request_id: number, user_id: number, role_id: number, message: string, service_id?: number, sub_service_id?: number, messageType?: LogisticsVehicleMaintenanceMessageType, status?: LogisticsVehicleMaintenanceApprovalStatus);
|
|
20
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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.LogisticsVehicleMaintenanceChat = exports.LogisticsVehicleMaintenanceMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const LogisticsVehicleMaintenanceApprovalModel_1 = require("./LogisticsVehicleMaintenanceApprovalModel");
|
|
16
|
+
var LogisticsVehicleMaintenanceMessageType;
|
|
17
|
+
(function (LogisticsVehicleMaintenanceMessageType) {
|
|
18
|
+
LogisticsVehicleMaintenanceMessageType["TEXT"] = "text";
|
|
19
|
+
LogisticsVehicleMaintenanceMessageType["IMAGE"] = "image";
|
|
20
|
+
LogisticsVehicleMaintenanceMessageType["VIDEO"] = "video";
|
|
21
|
+
LogisticsVehicleMaintenanceMessageType["FILE"] = "file";
|
|
22
|
+
LogisticsVehicleMaintenanceMessageType["LINK"] = "link";
|
|
23
|
+
})(LogisticsVehicleMaintenanceMessageType || (exports.LogisticsVehicleMaintenanceMessageType = LogisticsVehicleMaintenanceMessageType = {}));
|
|
24
|
+
let LogisticsVehicleMaintenanceChat = class LogisticsVehicleMaintenanceChat extends BaseModel_1.BaseModel {
|
|
25
|
+
constructor(request_id, user_id, role_id, message, service_id, sub_service_id, messageType, status) {
|
|
26
|
+
super();
|
|
27
|
+
this.request_id = request_id;
|
|
28
|
+
this.service_id = service_id || null;
|
|
29
|
+
this.sub_service_id = sub_service_id || null;
|
|
30
|
+
this.user_id = user_id;
|
|
31
|
+
this.role_id = role_id;
|
|
32
|
+
this.message = message;
|
|
33
|
+
this.messageType = messageType || LogisticsVehicleMaintenanceMessageType.TEXT;
|
|
34
|
+
this.status = status || LogisticsVehicleMaintenanceApprovalModel_1.LogisticsVehicleMaintenanceApprovalStatus.PENDING;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.LogisticsVehicleMaintenanceChat = LogisticsVehicleMaintenanceChat;
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], LogisticsVehicleMaintenanceChat.prototype, "request_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], LogisticsVehicleMaintenanceChat.prototype, "service_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], LogisticsVehicleMaintenanceChat.prototype, "sub_service_id", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], LogisticsVehicleMaintenanceChat.prototype, "user_id", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], LogisticsVehicleMaintenanceChat.prototype, "role_id", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], LogisticsVehicleMaintenanceChat.prototype, "message", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({
|
|
64
|
+
type: 'enum',
|
|
65
|
+
enum: LogisticsVehicleMaintenanceMessageType,
|
|
66
|
+
default: LogisticsVehicleMaintenanceMessageType.TEXT,
|
|
67
|
+
nullable: false
|
|
68
|
+
}),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], LogisticsVehicleMaintenanceChat.prototype, "messageType", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], LogisticsVehicleMaintenanceChat.prototype, "status", void 0);
|
|
75
|
+
exports.LogisticsVehicleMaintenanceChat = LogisticsVehicleMaintenanceChat = __decorate([
|
|
76
|
+
(0, typeorm_1.Entity)({ name: 'logistics_vehicle_maintenance_chats' }),
|
|
77
|
+
__metadata("design:paramtypes", [Number, Number, Number, String, Number, Number, String, String])
|
|
78
|
+
], LogisticsVehicleMaintenanceChat);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum VehicleMaintenanceType {
|
|
3
|
+
PREVENTIVE = "Preventive",
|
|
4
|
+
CORRECTIVE = "Corrective",
|
|
5
|
+
EMERGENCY = "Emergency"
|
|
6
|
+
}
|
|
7
|
+
export declare enum VehicleMaintenanceStatus {
|
|
8
|
+
PENDING = "Pending",
|
|
9
|
+
ASSIGNED = "Assigned",
|
|
10
|
+
IN_PROGRESS = "In Progress",
|
|
11
|
+
APPROVED = "Approved",
|
|
12
|
+
REJECTED = "Rejected"
|
|
13
|
+
}
|
|
14
|
+
export declare class LogisticsVehicleMaintenanceRequests extends BaseModel {
|
|
15
|
+
req_user_department_id: number | null;
|
|
16
|
+
req_user_section_id: number | null;
|
|
17
|
+
service_id: number;
|
|
18
|
+
sub_service_id: number;
|
|
19
|
+
user_id: number;
|
|
20
|
+
vehicle_number: string;
|
|
21
|
+
type_of_maintenance_required: VehicleMaintenanceType;
|
|
22
|
+
issue_description: string;
|
|
23
|
+
preferred_maintenance_date: Date | null;
|
|
24
|
+
request_submission_date: Date;
|
|
25
|
+
status: VehicleMaintenanceStatus;
|
|
26
|
+
workflow_execution_id: string | null;
|
|
27
|
+
constructor(req_user_department_id: number | null, req_user_section_id: number | null, service_id: number, sub_service_id: number, user_id: number, vehicle_number: string, type_of_maintenance_required: VehicleMaintenanceType, issue_description: string, status: VehicleMaintenanceStatus, preferred_maintenance_date?: Date | null, workflow_execution_id?: string | null);
|
|
28
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
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.LogisticsVehicleMaintenanceRequests = exports.VehicleMaintenanceStatus = exports.VehicleMaintenanceType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var VehicleMaintenanceType;
|
|
16
|
+
(function (VehicleMaintenanceType) {
|
|
17
|
+
VehicleMaintenanceType["PREVENTIVE"] = "Preventive";
|
|
18
|
+
VehicleMaintenanceType["CORRECTIVE"] = "Corrective";
|
|
19
|
+
VehicleMaintenanceType["EMERGENCY"] = "Emergency";
|
|
20
|
+
})(VehicleMaintenanceType || (exports.VehicleMaintenanceType = VehicleMaintenanceType = {}));
|
|
21
|
+
var VehicleMaintenanceStatus;
|
|
22
|
+
(function (VehicleMaintenanceStatus) {
|
|
23
|
+
VehicleMaintenanceStatus["PENDING"] = "Pending";
|
|
24
|
+
VehicleMaintenanceStatus["ASSIGNED"] = "Assigned";
|
|
25
|
+
VehicleMaintenanceStatus["IN_PROGRESS"] = "In Progress";
|
|
26
|
+
VehicleMaintenanceStatus["APPROVED"] = "Approved";
|
|
27
|
+
VehicleMaintenanceStatus["REJECTED"] = "Rejected";
|
|
28
|
+
})(VehicleMaintenanceStatus || (exports.VehicleMaintenanceStatus = VehicleMaintenanceStatus = {}));
|
|
29
|
+
let LogisticsVehicleMaintenanceRequests = class LogisticsVehicleMaintenanceRequests extends BaseModel_1.BaseModel {
|
|
30
|
+
constructor(req_user_department_id, req_user_section_id, service_id, sub_service_id, user_id, vehicle_number, type_of_maintenance_required, issue_description, status, preferred_maintenance_date, workflow_execution_id) {
|
|
31
|
+
super();
|
|
32
|
+
this.req_user_department_id = req_user_department_id ?? null;
|
|
33
|
+
this.req_user_section_id = req_user_section_id ?? null;
|
|
34
|
+
this.service_id = service_id;
|
|
35
|
+
this.sub_service_id = sub_service_id;
|
|
36
|
+
this.user_id = user_id;
|
|
37
|
+
this.vehicle_number = vehicle_number;
|
|
38
|
+
this.type_of_maintenance_required = type_of_maintenance_required;
|
|
39
|
+
this.issue_description = issue_description;
|
|
40
|
+
this.preferred_maintenance_date = preferred_maintenance_date ?? null;
|
|
41
|
+
this.request_submission_date = new Date();
|
|
42
|
+
this.status = status;
|
|
43
|
+
this.workflow_execution_id = workflow_execution_id ?? null;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
exports.LogisticsVehicleMaintenanceRequests = LogisticsVehicleMaintenanceRequests;
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], LogisticsVehicleMaintenanceRequests.prototype, "req_user_department_id", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
53
|
+
__metadata("design:type", Object)
|
|
54
|
+
], LogisticsVehicleMaintenanceRequests.prototype, "req_user_section_id", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], LogisticsVehicleMaintenanceRequests.prototype, "service_id", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
61
|
+
__metadata("design:type", Number)
|
|
62
|
+
], LogisticsVehicleMaintenanceRequests.prototype, "sub_service_id", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], LogisticsVehicleMaintenanceRequests.prototype, "user_id", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], LogisticsVehicleMaintenanceRequests.prototype, "vehicle_number", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({
|
|
73
|
+
type: "enum",
|
|
74
|
+
enum: VehicleMaintenanceType,
|
|
75
|
+
nullable: false,
|
|
76
|
+
}),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], LogisticsVehicleMaintenanceRequests.prototype, "type_of_maintenance_required", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], LogisticsVehicleMaintenanceRequests.prototype, "issue_description", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
85
|
+
__metadata("design:type", Object)
|
|
86
|
+
], LogisticsVehicleMaintenanceRequests.prototype, "preferred_maintenance_date", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false, default: () => "CURRENT_DATE" }),
|
|
89
|
+
__metadata("design:type", Date)
|
|
90
|
+
], LogisticsVehicleMaintenanceRequests.prototype, "request_submission_date", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({
|
|
93
|
+
type: "enum",
|
|
94
|
+
enum: VehicleMaintenanceStatus,
|
|
95
|
+
default: VehicleMaintenanceStatus.PENDING,
|
|
96
|
+
nullable: false,
|
|
97
|
+
}),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], LogisticsVehicleMaintenanceRequests.prototype, "status", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
102
|
+
__metadata("design:type", Object)
|
|
103
|
+
], LogisticsVehicleMaintenanceRequests.prototype, "workflow_execution_id", void 0);
|
|
104
|
+
exports.LogisticsVehicleMaintenanceRequests = LogisticsVehicleMaintenanceRequests = __decorate([
|
|
105
|
+
(0, typeorm_1.Entity)({ name: 'logistics_vehicle_maintenance_requests' }),
|
|
106
|
+
__metadata("design:paramtypes", [Object, Object, Number, Number, Number, String, String, String, String, Object, Object])
|
|
107
|
+
], LogisticsVehicleMaintenanceRequests);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum LogisticsVehicleMaintenanceWorkFlowStatus {
|
|
3
|
+
COMPLETED = "Completed",
|
|
4
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
+
PENDING = "Pending"
|
|
6
|
+
}
|
|
7
|
+
export declare class LogisticsVehicleMaintenanceWorkFlow extends BaseModel {
|
|
8
|
+
request_id: number;
|
|
9
|
+
service_id: number | null;
|
|
10
|
+
sub_service_id: number | null;
|
|
11
|
+
content: string;
|
|
12
|
+
status: LogisticsVehicleMaintenanceWorkFlowStatus;
|
|
13
|
+
user_id: number | null;
|
|
14
|
+
role_id: number | null;
|
|
15
|
+
department_id: number | null;
|
|
16
|
+
section_id: number | null;
|
|
17
|
+
constructor(request_id: number, content: string, status: LogisticsVehicleMaintenanceWorkFlowStatus, service_id?: number, sub_service_id?: number, user_id?: number, role_id?: number, department_id?: number, section_id?: number);
|
|
18
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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.LogisticsVehicleMaintenanceWorkFlow = exports.LogisticsVehicleMaintenanceWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var LogisticsVehicleMaintenanceWorkFlowStatus;
|
|
16
|
+
(function (LogisticsVehicleMaintenanceWorkFlowStatus) {
|
|
17
|
+
LogisticsVehicleMaintenanceWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
+
LogisticsVehicleMaintenanceWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
+
LogisticsVehicleMaintenanceWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
+
})(LogisticsVehicleMaintenanceWorkFlowStatus || (exports.LogisticsVehicleMaintenanceWorkFlowStatus = LogisticsVehicleMaintenanceWorkFlowStatus = {}));
|
|
21
|
+
//This model is used to store the logistics vehicle maintenance workflow status and activity logs
|
|
22
|
+
let LogisticsVehicleMaintenanceWorkFlow = class LogisticsVehicleMaintenanceWorkFlow extends BaseModel_1.BaseModel {
|
|
23
|
+
constructor(request_id, content, status, service_id, sub_service_id, user_id, role_id, department_id, section_id) {
|
|
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.user_id = user_id || null;
|
|
31
|
+
this.role_id = role_id || null;
|
|
32
|
+
this.department_id = department_id || null;
|
|
33
|
+
this.section_id = section_id || null;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
exports.LogisticsVehicleMaintenanceWorkFlow = LogisticsVehicleMaintenanceWorkFlow;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], LogisticsVehicleMaintenanceWorkFlow.prototype, "request_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], LogisticsVehicleMaintenanceWorkFlow.prototype, "service_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], LogisticsVehicleMaintenanceWorkFlow.prototype, "sub_service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], LogisticsVehicleMaintenanceWorkFlow.prototype, "content", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: LogisticsVehicleMaintenanceWorkFlowStatus, default: LogisticsVehicleMaintenanceWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], LogisticsVehicleMaintenanceWorkFlow.prototype, "status", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], LogisticsVehicleMaintenanceWorkFlow.prototype, "user_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], LogisticsVehicleMaintenanceWorkFlow.prototype, "role_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], LogisticsVehicleMaintenanceWorkFlow.prototype, "department_id", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], LogisticsVehicleMaintenanceWorkFlow.prototype, "section_id", void 0);
|
|
73
|
+
exports.LogisticsVehicleMaintenanceWorkFlow = LogisticsVehicleMaintenanceWorkFlow = __decorate([
|
|
74
|
+
(0, typeorm_1.Entity)({ name: 'logistics_vehicle_maintenance_workflows' }),
|
|
75
|
+
__metadata("design:paramtypes", [Number, String, String, Number, Number, Number, Number, Number, Number])
|
|
76
|
+
], LogisticsVehicleMaintenanceWorkFlow);
|