@platform-modules/civil-aviation-authority 2.3.212 → 2.3.214
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 +5 -0
- package/dist/index.js +5 -0
- package/dist/models/FollowUpReportApprovalModel.d.ts +0 -2
- package/dist/models/FollowUpReportApprovalModel.js +3 -4
- package/dist/models/FollowUpReportAttachmentModel.d.ts +0 -1
- package/dist/models/FollowUpReportAttachmentModel.js +2 -3
- package/dist/models/FollowUpReportChatModel.d.ts +0 -2
- package/dist/models/FollowUpReportChatModel.js +3 -4
- package/dist/models/FollowUpReportRequestModel.d.ts +0 -4
- package/dist/models/FollowUpReportRequestModel.js +5 -6
- package/dist/models/FollowUpReportWorkflowModel.d.ts +0 -2
- package/dist/models/FollowUpReportWorkflowModel.js +3 -4
- package/dist/models/MaintenanceApprovalModel.d.ts +6 -4
- package/dist/models/MaintenanceApprovalModel.js +29 -28
- package/dist/models/MaintenanceAttachmentModel.d.ts +2 -1
- package/dist/models/MaintenanceAttachmentModel.js +14 -13
- package/dist/models/MaintenanceChatModel.d.ts +7 -5
- package/dist/models/MaintenanceChatModel.js +26 -25
- package/dist/models/MaintenanceRequestModel.d.ts +27 -28
- package/dist/models/MaintenanceRequestModel.js +66 -76
- package/dist/models/MaintenanceWorkflowModel.d.ts +5 -3
- package/dist/models/MaintenanceWorkflowModel.js +23 -22
- package/package.json +1 -1
- package/src/data-source.ts +10 -0
- package/src/index.ts +5 -0
- package/src/models/FollowUpReportApprovalModel.ts +0 -3
- package/src/models/FollowUpReportAttachmentModel.ts +0 -2
- package/src/models/FollowUpReportChatModel.ts +0 -3
- package/src/models/FollowUpReportRequestModel.ts +0 -5
- package/src/models/FollowUpReportWorkflowModel.ts +0 -3
- package/src/models/MaintenanceApprovalModel.ts +59 -0
- package/src/models/MaintenanceAttachmentModel.ts +31 -0
- package/src/models/MaintenanceChatModel.ts +45 -0
- package/src/models/MaintenanceRequestModel.ts +90 -0
- package/src/models/MaintenanceWorkflowModel.ts +46 -0
package/dist/data-source.js
CHANGED
|
@@ -216,6 +216,11 @@ const FollowUpReportApprovalModel_1 = require("./models/FollowUpReportApprovalMo
|
|
|
216
216
|
const FollowUpReportAttachmentModel_1 = require("./models/FollowUpReportAttachmentModel");
|
|
217
217
|
const FollowUpReportChatModel_1 = require("./models/FollowUpReportChatModel");
|
|
218
218
|
const FollowUpReportWorkflowModel_1 = require("./models/FollowUpReportWorkflowModel");
|
|
219
|
+
const MaintenanceRequestModel_1 = require("./models/MaintenanceRequestModel");
|
|
220
|
+
const MaintenanceApprovalModel_1 = require("./models/MaintenanceApprovalModel");
|
|
221
|
+
const MaintenanceAttachmentModel_1 = require("./models/MaintenanceAttachmentModel");
|
|
222
|
+
const MaintenanceChatModel_1 = require("./models/MaintenanceChatModel");
|
|
223
|
+
const MaintenanceWorkflowModel_1 = require("./models/MaintenanceWorkflowModel");
|
|
219
224
|
const MediaPublicationsRequestModel_1 = require("./models/MediaPublicationsRequestModel");
|
|
220
225
|
const MediaPublicationsApprovalModel_1 = require("./models/MediaPublicationsApprovalModel");
|
|
221
226
|
const MediaPublicationsAttachmentModel_1 = require("./models/MediaPublicationsAttachmentModel");
|
|
@@ -441,6 +446,11 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
441
446
|
FollowUpReportAttachmentModel_1.FollowUpReportAttachment,
|
|
442
447
|
FollowUpReportChatModel_1.FollowUpReportChat,
|
|
443
448
|
FollowUpReportWorkflowModel_1.FollowUpReportWorkFlow,
|
|
449
|
+
MaintenanceRequestModel_1.AssetMaintenanceRequests,
|
|
450
|
+
MaintenanceApprovalModel_1.AssetMaintenanceApprovalDetails,
|
|
451
|
+
MaintenanceAttachmentModel_1.AssetMaintenanceAttachment,
|
|
452
|
+
MaintenanceChatModel_1.AssetMaintenanceChat,
|
|
453
|
+
MaintenanceWorkflowModel_1.AssetMaintenanceWorkflow,
|
|
444
454
|
MediaPublicationsRequestModel_1.MediaPublicationsRequests,
|
|
445
455
|
MediaPublicationsApprovalModel_1.MediaPublicationsApprovalDetails,
|
|
446
456
|
MediaPublicationsAttachmentModel_1.MediaPublicationsAttachment,
|
package/dist/index.d.ts
CHANGED
|
@@ -314,6 +314,11 @@ export * from './models/MaintenanceExternalStationsApprovalModel';
|
|
|
314
314
|
export * from './models/MaintenanceExternalStationsAttachmentModel';
|
|
315
315
|
export * from './models/MaintenanceExternalStationsChatModel';
|
|
316
316
|
export * from './models/MaintenanceExternalStationsWorkflowModel';
|
|
317
|
+
export * from './models/MaintenanceRequestModel';
|
|
318
|
+
export * from './models/MaintenanceApprovalModel';
|
|
319
|
+
export * from './models/MaintenanceAttachmentModel';
|
|
320
|
+
export * from './models/MaintenanceChatModel';
|
|
321
|
+
export * from './models/MaintenanceWorkflowModel';
|
|
317
322
|
export * from './models/FollowUpReportRequestModel';
|
|
318
323
|
export * from './models/FollowUpReportApprovalModel';
|
|
319
324
|
export * from './models/FollowUpReportAttachmentModel';
|
package/dist/index.js
CHANGED
|
@@ -477,6 +477,11 @@ __exportStar(require("./models/MaintenanceExternalStationsApprovalModel"), expor
|
|
|
477
477
|
__exportStar(require("./models/MaintenanceExternalStationsAttachmentModel"), exports);
|
|
478
478
|
__exportStar(require("./models/MaintenanceExternalStationsChatModel"), exports);
|
|
479
479
|
__exportStar(require("./models/MaintenanceExternalStationsWorkflowModel"), exports);
|
|
480
|
+
__exportStar(require("./models/MaintenanceRequestModel"), exports);
|
|
481
|
+
__exportStar(require("./models/MaintenanceApprovalModel"), exports);
|
|
482
|
+
__exportStar(require("./models/MaintenanceAttachmentModel"), exports);
|
|
483
|
+
__exportStar(require("./models/MaintenanceChatModel"), exports);
|
|
484
|
+
__exportStar(require("./models/MaintenanceWorkflowModel"), exports);
|
|
480
485
|
__exportStar(require("./models/FollowUpReportRequestModel"), exports);
|
|
481
486
|
__exportStar(require("./models/FollowUpReportApprovalModel"), exports);
|
|
482
487
|
__exportStar(require("./models/FollowUpReportAttachmentModel"), exports);
|
|
@@ -20,5 +20,3 @@ export declare class FollowUpReportApprovalDetails extends BaseModel {
|
|
|
20
20
|
approval_status: FollowUpReportApprovalStatus;
|
|
21
21
|
is_allowed: boolean;
|
|
22
22
|
}
|
|
23
|
-
export { FollowUpReportApprovalDetails as MaintenanceApprovalDetails };
|
|
24
|
-
export { FollowUpReportApprovalStatus as MaintenanceApprovalStatus };
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.FollowUpReportApprovalDetails = exports.FollowUpReportApprovalStatus = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
var FollowUpReportApprovalStatus;
|
|
@@ -18,11 +18,10 @@ var FollowUpReportApprovalStatus;
|
|
|
18
18
|
FollowUpReportApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
19
|
FollowUpReportApprovalStatus["APPROVED"] = "Approved";
|
|
20
20
|
FollowUpReportApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
-
})(FollowUpReportApprovalStatus || (exports.
|
|
21
|
+
})(FollowUpReportApprovalStatus || (exports.FollowUpReportApprovalStatus = FollowUpReportApprovalStatus = {}));
|
|
22
22
|
let FollowUpReportApprovalDetails = class FollowUpReportApprovalDetails extends BaseModel_1.BaseModel {
|
|
23
23
|
};
|
|
24
24
|
exports.FollowUpReportApprovalDetails = FollowUpReportApprovalDetails;
|
|
25
|
-
exports.MaintenanceApprovalDetails = FollowUpReportApprovalDetails;
|
|
26
25
|
__decorate([
|
|
27
26
|
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
28
27
|
__metadata("design:type", Number)
|
|
@@ -80,6 +79,6 @@ __decorate([
|
|
|
80
79
|
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
81
80
|
__metadata("design:type", Boolean)
|
|
82
81
|
], FollowUpReportApprovalDetails.prototype, "is_allowed", void 0);
|
|
83
|
-
exports.
|
|
82
|
+
exports.FollowUpReportApprovalDetails = FollowUpReportApprovalDetails = __decorate([
|
|
84
83
|
(0, typeorm_1.Entity)({ name: 'followup_report_approvals' })
|
|
85
84
|
], FollowUpReportApprovalDetails);
|
|
@@ -9,13 +9,12 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.FollowUpReportAttachment = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
let FollowUpReportAttachment = class FollowUpReportAttachment extends BaseModel_1.BaseModel {
|
|
16
16
|
};
|
|
17
17
|
exports.FollowUpReportAttachment = FollowUpReportAttachment;
|
|
18
|
-
exports.MaintenanceAttachment = FollowUpReportAttachment;
|
|
19
18
|
__decorate([
|
|
20
19
|
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
21
20
|
__metadata("design:type", Number)
|
|
@@ -48,6 +47,6 @@ __decorate([
|
|
|
48
47
|
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
49
48
|
__metadata("design:type", Object)
|
|
50
49
|
], FollowUpReportAttachment.prototype, "chat_id", void 0);
|
|
51
|
-
exports.
|
|
50
|
+
exports.FollowUpReportAttachment = FollowUpReportAttachment = __decorate([
|
|
52
51
|
(0, typeorm_1.Entity)({ name: 'followup_report_attachments' })
|
|
53
52
|
], FollowUpReportAttachment);
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.FollowUpReportChat = exports.FollowUpReportMessageType = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
var FollowUpReportMessageType;
|
|
@@ -19,11 +19,10 @@ var FollowUpReportMessageType;
|
|
|
19
19
|
FollowUpReportMessageType["VIDEO"] = "video";
|
|
20
20
|
FollowUpReportMessageType["FILE"] = "file";
|
|
21
21
|
FollowUpReportMessageType["LINK"] = "link";
|
|
22
|
-
})(FollowUpReportMessageType || (exports.
|
|
22
|
+
})(FollowUpReportMessageType || (exports.FollowUpReportMessageType = FollowUpReportMessageType = {}));
|
|
23
23
|
let FollowUpReportChat = class FollowUpReportChat extends BaseModel_1.BaseModel {
|
|
24
24
|
};
|
|
25
25
|
exports.FollowUpReportChat = FollowUpReportChat;
|
|
26
|
-
exports.MaintenanceChat = FollowUpReportChat;
|
|
27
26
|
__decorate([
|
|
28
27
|
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
29
28
|
__metadata("design:type", Number)
|
|
@@ -61,6 +60,6 @@ __decorate([
|
|
|
61
60
|
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
62
61
|
__metadata("design:type", String)
|
|
63
62
|
], FollowUpReportChat.prototype, "status", void 0);
|
|
64
|
-
exports.
|
|
63
|
+
exports.FollowUpReportChat = FollowUpReportChat = __decorate([
|
|
65
64
|
(0, typeorm_1.Entity)({ name: 'followup_report_chats' })
|
|
66
65
|
], FollowUpReportChat);
|
|
@@ -40,7 +40,3 @@ export declare class FollowUpReportRequests extends BaseModel {
|
|
|
40
40
|
status: FollowUpReportRequestStatus;
|
|
41
41
|
workflow_execution_id: string | null;
|
|
42
42
|
}
|
|
43
|
-
export { FollowUpReportRequests as MaintenanceRequests };
|
|
44
|
-
export { FollowUpReportRequestStatus as MaintenanceRequestStatus };
|
|
45
|
-
export { FollowUpReportSubjectClassification as MaintenanceSubjectClassification };
|
|
46
|
-
export { FollowUpReportConcernedDepartment as MaintenanceConcernedDepartment };
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.FollowUpReportRequests = exports.FollowUpReportRequestStatus = exports.FollowUpReportConcernedDepartment = exports.FollowUpReportSubjectClassification = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
/** Subject / handling priority classification */
|
|
@@ -20,7 +20,7 @@ var FollowUpReportSubjectClassification;
|
|
|
20
20
|
FollowUpReportSubjectClassification["CONFIDENTIAL"] = "Confidential";
|
|
21
21
|
FollowUpReportSubjectClassification["INFORMATIONAL"] = "Informational";
|
|
22
22
|
FollowUpReportSubjectClassification["NORMAL"] = "Normal";
|
|
23
|
-
})(FollowUpReportSubjectClassification || (exports.
|
|
23
|
+
})(FollowUpReportSubjectClassification || (exports.FollowUpReportSubjectClassification = FollowUpReportSubjectClassification = {}));
|
|
24
24
|
/** Concerned department under General Manager of Support Services */
|
|
25
25
|
var FollowUpReportConcernedDepartment;
|
|
26
26
|
(function (FollowUpReportConcernedDepartment) {
|
|
@@ -29,7 +29,7 @@ var FollowUpReportConcernedDepartment;
|
|
|
29
29
|
FollowUpReportConcernedDepartment["TRAINING"] = "Training";
|
|
30
30
|
FollowUpReportConcernedDepartment["FINANCE"] = "Finance";
|
|
31
31
|
FollowUpReportConcernedDepartment["PROJECTS_AND_MAINTENANCE"] = "Projects & Maintenance";
|
|
32
|
-
})(FollowUpReportConcernedDepartment || (exports.
|
|
32
|
+
})(FollowUpReportConcernedDepartment || (exports.FollowUpReportConcernedDepartment = FollowUpReportConcernedDepartment = {}));
|
|
33
33
|
var FollowUpReportRequestStatus;
|
|
34
34
|
(function (FollowUpReportRequestStatus) {
|
|
35
35
|
FollowUpReportRequestStatus["PENDING"] = "Pending";
|
|
@@ -37,11 +37,10 @@ var FollowUpReportRequestStatus;
|
|
|
37
37
|
FollowUpReportRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
38
38
|
FollowUpReportRequestStatus["APPROVED"] = "Approved";
|
|
39
39
|
FollowUpReportRequestStatus["REJECTED"] = "Rejected";
|
|
40
|
-
})(FollowUpReportRequestStatus || (exports.
|
|
40
|
+
})(FollowUpReportRequestStatus || (exports.FollowUpReportRequestStatus = FollowUpReportRequestStatus = {}));
|
|
41
41
|
let FollowUpReportRequests = class FollowUpReportRequests extends BaseModel_1.BaseModel {
|
|
42
42
|
};
|
|
43
43
|
exports.FollowUpReportRequests = FollowUpReportRequests;
|
|
44
|
-
exports.MaintenanceRequests = FollowUpReportRequests;
|
|
45
44
|
__decorate([
|
|
46
45
|
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
47
46
|
__metadata("design:type", Object)
|
|
@@ -121,6 +120,6 @@ __decorate([
|
|
|
121
120
|
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
122
121
|
__metadata("design:type", Object)
|
|
123
122
|
], FollowUpReportRequests.prototype, "workflow_execution_id", void 0);
|
|
124
|
-
exports.
|
|
123
|
+
exports.FollowUpReportRequests = FollowUpReportRequests = __decorate([
|
|
125
124
|
(0, typeorm_1.Entity)({ name: 'followup_report_requests' })
|
|
126
125
|
], FollowUpReportRequests);
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.FollowUpReportWorkFlow = exports.FollowUpReportWorkFlowStatus = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
var FollowUpReportWorkFlowStatus;
|
|
@@ -17,11 +17,10 @@ var FollowUpReportWorkFlowStatus;
|
|
|
17
17
|
FollowUpReportWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
18
|
FollowUpReportWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
19
|
FollowUpReportWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
-
})(FollowUpReportWorkFlowStatus || (exports.
|
|
20
|
+
})(FollowUpReportWorkFlowStatus || (exports.FollowUpReportWorkFlowStatus = FollowUpReportWorkFlowStatus = {}));
|
|
21
21
|
let FollowUpReportWorkFlow = class FollowUpReportWorkFlow extends BaseModel_1.BaseModel {
|
|
22
22
|
};
|
|
23
23
|
exports.FollowUpReportWorkFlow = FollowUpReportWorkFlow;
|
|
24
|
-
exports.MaintenanceWorkFlow = FollowUpReportWorkFlow;
|
|
25
24
|
__decorate([
|
|
26
25
|
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
27
26
|
__metadata("design:type", Number)
|
|
@@ -63,6 +62,6 @@ __decorate([
|
|
|
63
62
|
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
64
63
|
__metadata("design:type", Object)
|
|
65
64
|
], FollowUpReportWorkFlow.prototype, "section_id", void 0);
|
|
66
|
-
exports.
|
|
65
|
+
exports.FollowUpReportWorkFlow = FollowUpReportWorkFlow = __decorate([
|
|
67
66
|
(0, typeorm_1.Entity)({ name: 'followup_report_workflows' })
|
|
68
67
|
], FollowUpReportWorkFlow);
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum
|
|
2
|
+
export declare enum AssetMaintenanceApprovalStatus {
|
|
3
3
|
PENDING = "Pending",
|
|
4
4
|
IN_PROGRESS = "In Progress",
|
|
5
5
|
APPROVED = "Approved",
|
|
6
6
|
REJECTED = "Rejected"
|
|
7
7
|
}
|
|
8
|
-
export declare class
|
|
8
|
+
export declare class AssetMaintenanceApprovalDetails extends BaseModel {
|
|
9
9
|
request_id: number;
|
|
10
10
|
service_id: number | null;
|
|
11
11
|
sub_service_id: number | null;
|
|
12
12
|
level: number;
|
|
13
|
-
approver_role_id: number;
|
|
13
|
+
approver_role_id: number | null;
|
|
14
14
|
department_id: number | null;
|
|
15
15
|
section_id: number | null;
|
|
16
16
|
approver_user_id: number | null;
|
|
17
17
|
delegate_user_id: number | null;
|
|
18
18
|
approved_by: number | null;
|
|
19
19
|
comment: string;
|
|
20
|
-
approval_status:
|
|
20
|
+
approval_status: AssetMaintenanceApprovalStatus;
|
|
21
21
|
is_allowed: boolean;
|
|
22
22
|
}
|
|
23
|
+
export { AssetMaintenanceApprovalDetails as MaintenanceApprovalDetails };
|
|
24
|
+
export { AssetMaintenanceApprovalStatus as MaintenanceApprovalStatus };
|
|
@@ -9,76 +9,77 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.MaintenanceApprovalDetails = exports.
|
|
12
|
+
exports.MaintenanceApprovalStatus = exports.MaintenanceApprovalDetails = exports.AssetMaintenanceApprovalDetails = exports.AssetMaintenanceApprovalStatus = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var
|
|
16
|
-
(function (
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
})(
|
|
22
|
-
let
|
|
15
|
+
var AssetMaintenanceApprovalStatus;
|
|
16
|
+
(function (AssetMaintenanceApprovalStatus) {
|
|
17
|
+
AssetMaintenanceApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
AssetMaintenanceApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
AssetMaintenanceApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
AssetMaintenanceApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(AssetMaintenanceApprovalStatus || (exports.MaintenanceApprovalStatus = exports.AssetMaintenanceApprovalStatus = AssetMaintenanceApprovalStatus = {}));
|
|
22
|
+
let AssetMaintenanceApprovalDetails = class AssetMaintenanceApprovalDetails extends BaseModel_1.BaseModel {
|
|
23
23
|
};
|
|
24
|
-
exports.
|
|
24
|
+
exports.AssetMaintenanceApprovalDetails = AssetMaintenanceApprovalDetails;
|
|
25
|
+
exports.MaintenanceApprovalDetails = AssetMaintenanceApprovalDetails;
|
|
25
26
|
__decorate([
|
|
26
27
|
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
27
28
|
__metadata("design:type", Number)
|
|
28
|
-
],
|
|
29
|
+
], AssetMaintenanceApprovalDetails.prototype, "request_id", void 0);
|
|
29
30
|
__decorate([
|
|
30
31
|
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
31
32
|
__metadata("design:type", Object)
|
|
32
|
-
],
|
|
33
|
+
], AssetMaintenanceApprovalDetails.prototype, "service_id", void 0);
|
|
33
34
|
__decorate([
|
|
34
35
|
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
35
36
|
__metadata("design:type", Object)
|
|
36
|
-
],
|
|
37
|
+
], AssetMaintenanceApprovalDetails.prototype, "sub_service_id", void 0);
|
|
37
38
|
__decorate([
|
|
38
39
|
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
39
40
|
__metadata("design:type", Number)
|
|
40
|
-
],
|
|
41
|
+
], AssetMaintenanceApprovalDetails.prototype, "level", void 0);
|
|
41
42
|
__decorate([
|
|
42
43
|
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
-
__metadata("design:type",
|
|
44
|
-
],
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], AssetMaintenanceApprovalDetails.prototype, "approver_role_id", void 0);
|
|
45
46
|
__decorate([
|
|
46
47
|
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
48
|
__metadata("design:type", Object)
|
|
48
|
-
],
|
|
49
|
+
], AssetMaintenanceApprovalDetails.prototype, "department_id", void 0);
|
|
49
50
|
__decorate([
|
|
50
51
|
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
51
52
|
__metadata("design:type", Object)
|
|
52
|
-
],
|
|
53
|
+
], AssetMaintenanceApprovalDetails.prototype, "section_id", void 0);
|
|
53
54
|
__decorate([
|
|
54
55
|
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
55
56
|
__metadata("design:type", Object)
|
|
56
|
-
],
|
|
57
|
+
], AssetMaintenanceApprovalDetails.prototype, "approver_user_id", void 0);
|
|
57
58
|
__decorate([
|
|
58
59
|
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
60
|
__metadata("design:type", Object)
|
|
60
|
-
],
|
|
61
|
+
], AssetMaintenanceApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
61
62
|
__decorate([
|
|
62
63
|
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
64
|
__metadata("design:type", Object)
|
|
64
|
-
],
|
|
65
|
+
], AssetMaintenanceApprovalDetails.prototype, "approved_by", void 0);
|
|
65
66
|
__decorate([
|
|
66
67
|
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true, default: '' }),
|
|
67
68
|
__metadata("design:type", String)
|
|
68
|
-
],
|
|
69
|
+
], AssetMaintenanceApprovalDetails.prototype, "comment", void 0);
|
|
69
70
|
__decorate([
|
|
70
71
|
(0, typeorm_1.Column)({
|
|
71
72
|
type: 'enum',
|
|
72
|
-
enum:
|
|
73
|
-
default:
|
|
73
|
+
enum: AssetMaintenanceApprovalStatus,
|
|
74
|
+
default: AssetMaintenanceApprovalStatus.PENDING,
|
|
74
75
|
nullable: false,
|
|
75
76
|
}),
|
|
76
77
|
__metadata("design:type", String)
|
|
77
|
-
],
|
|
78
|
+
], AssetMaintenanceApprovalDetails.prototype, "approval_status", void 0);
|
|
78
79
|
__decorate([
|
|
79
80
|
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
80
81
|
__metadata("design:type", Boolean)
|
|
81
|
-
],
|
|
82
|
-
exports.MaintenanceApprovalDetails =
|
|
82
|
+
], AssetMaintenanceApprovalDetails.prototype, "is_allowed", void 0);
|
|
83
|
+
exports.MaintenanceApprovalDetails = exports.AssetMaintenanceApprovalDetails = AssetMaintenanceApprovalDetails = __decorate([
|
|
83
84
|
(0, typeorm_1.Entity)({ name: 'maintenance_approvals' })
|
|
84
|
-
],
|
|
85
|
+
], AssetMaintenanceApprovalDetails);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class AssetMaintenanceAttachment extends BaseModel {
|
|
3
3
|
request_id: number;
|
|
4
4
|
service_id: number | null;
|
|
5
5
|
sub_service_id: number | null;
|
|
@@ -9,3 +9,4 @@ export declare class MaintenanceAttachment extends BaseModel {
|
|
|
9
9
|
file_size: number | null;
|
|
10
10
|
chat_id: number | null;
|
|
11
11
|
}
|
|
12
|
+
export { AssetMaintenanceAttachment as MaintenanceAttachment };
|
|
@@ -9,44 +9,45 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.MaintenanceAttachment = void 0;
|
|
12
|
+
exports.MaintenanceAttachment = exports.AssetMaintenanceAttachment = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let
|
|
15
|
+
let AssetMaintenanceAttachment = class AssetMaintenanceAttachment extends BaseModel_1.BaseModel {
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
17
|
+
exports.AssetMaintenanceAttachment = AssetMaintenanceAttachment;
|
|
18
|
+
exports.MaintenanceAttachment = AssetMaintenanceAttachment;
|
|
18
19
|
__decorate([
|
|
19
20
|
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
20
21
|
__metadata("design:type", Number)
|
|
21
|
-
],
|
|
22
|
+
], AssetMaintenanceAttachment.prototype, "request_id", void 0);
|
|
22
23
|
__decorate([
|
|
23
24
|
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
24
25
|
__metadata("design:type", Object)
|
|
25
|
-
],
|
|
26
|
+
], AssetMaintenanceAttachment.prototype, "service_id", void 0);
|
|
26
27
|
__decorate([
|
|
27
28
|
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
28
29
|
__metadata("design:type", Object)
|
|
29
|
-
],
|
|
30
|
+
], AssetMaintenanceAttachment.prototype, "sub_service_id", void 0);
|
|
30
31
|
__decorate([
|
|
31
32
|
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
32
33
|
__metadata("design:type", String)
|
|
33
|
-
],
|
|
34
|
+
], AssetMaintenanceAttachment.prototype, "file_url", void 0);
|
|
34
35
|
__decorate([
|
|
35
36
|
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
36
37
|
__metadata("design:type", String)
|
|
37
|
-
],
|
|
38
|
+
], AssetMaintenanceAttachment.prototype, "file_name", void 0);
|
|
38
39
|
__decorate([
|
|
39
40
|
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
40
41
|
__metadata("design:type", String)
|
|
41
|
-
],
|
|
42
|
+
], AssetMaintenanceAttachment.prototype, "file_type", void 0);
|
|
42
43
|
__decorate([
|
|
43
44
|
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
44
45
|
__metadata("design:type", Object)
|
|
45
|
-
],
|
|
46
|
+
], AssetMaintenanceAttachment.prototype, "file_size", void 0);
|
|
46
47
|
__decorate([
|
|
47
48
|
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
48
49
|
__metadata("design:type", Object)
|
|
49
|
-
],
|
|
50
|
-
exports.MaintenanceAttachment =
|
|
50
|
+
], AssetMaintenanceAttachment.prototype, "chat_id", void 0);
|
|
51
|
+
exports.MaintenanceAttachment = exports.AssetMaintenanceAttachment = AssetMaintenanceAttachment = __decorate([
|
|
51
52
|
(0, typeorm_1.Entity)({ name: 'maintenance_attachments' })
|
|
52
|
-
],
|
|
53
|
+
], AssetMaintenanceAttachment);
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum
|
|
2
|
+
export declare enum AssetMaintenanceMessageType {
|
|
3
3
|
TEXT = "text",
|
|
4
4
|
IMAGE = "image",
|
|
5
5
|
VIDEO = "video",
|
|
6
6
|
FILE = "file",
|
|
7
7
|
LINK = "link"
|
|
8
8
|
}
|
|
9
|
-
export declare class
|
|
9
|
+
export declare class AssetMaintenanceChat extends BaseModel {
|
|
10
10
|
request_id: number;
|
|
11
11
|
service_id: number | null;
|
|
12
12
|
sub_service_id: number | null;
|
|
13
13
|
user_id: number;
|
|
14
|
-
role_id: number;
|
|
14
|
+
role_id: number | null;
|
|
15
15
|
message: string;
|
|
16
|
-
messageType:
|
|
17
|
-
status: string;
|
|
16
|
+
messageType: AssetMaintenanceMessageType;
|
|
17
|
+
status: string | null;
|
|
18
18
|
}
|
|
19
|
+
export { AssetMaintenanceChat as MaintenanceChat };
|
|
20
|
+
export { AssetMaintenanceMessageType as MaintenanceMessageType };
|
|
@@ -9,57 +9,58 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.MaintenanceChat = exports.
|
|
12
|
+
exports.MaintenanceMessageType = exports.MaintenanceChat = exports.AssetMaintenanceChat = exports.AssetMaintenanceMessageType = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var
|
|
16
|
-
(function (
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
})(
|
|
23
|
-
let
|
|
15
|
+
var AssetMaintenanceMessageType;
|
|
16
|
+
(function (AssetMaintenanceMessageType) {
|
|
17
|
+
AssetMaintenanceMessageType["TEXT"] = "text";
|
|
18
|
+
AssetMaintenanceMessageType["IMAGE"] = "image";
|
|
19
|
+
AssetMaintenanceMessageType["VIDEO"] = "video";
|
|
20
|
+
AssetMaintenanceMessageType["FILE"] = "file";
|
|
21
|
+
AssetMaintenanceMessageType["LINK"] = "link";
|
|
22
|
+
})(AssetMaintenanceMessageType || (exports.MaintenanceMessageType = exports.AssetMaintenanceMessageType = AssetMaintenanceMessageType = {}));
|
|
23
|
+
let AssetMaintenanceChat = class AssetMaintenanceChat extends BaseModel_1.BaseModel {
|
|
24
24
|
};
|
|
25
|
-
exports.
|
|
25
|
+
exports.AssetMaintenanceChat = AssetMaintenanceChat;
|
|
26
|
+
exports.MaintenanceChat = AssetMaintenanceChat;
|
|
26
27
|
__decorate([
|
|
27
28
|
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
28
29
|
__metadata("design:type", Number)
|
|
29
|
-
],
|
|
30
|
+
], AssetMaintenanceChat.prototype, "request_id", void 0);
|
|
30
31
|
__decorate([
|
|
31
32
|
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
32
33
|
__metadata("design:type", Object)
|
|
33
|
-
],
|
|
34
|
+
], AssetMaintenanceChat.prototype, "service_id", void 0);
|
|
34
35
|
__decorate([
|
|
35
36
|
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
36
37
|
__metadata("design:type", Object)
|
|
37
|
-
],
|
|
38
|
+
], AssetMaintenanceChat.prototype, "sub_service_id", void 0);
|
|
38
39
|
__decorate([
|
|
39
40
|
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
40
41
|
__metadata("design:type", Number)
|
|
41
|
-
],
|
|
42
|
+
], AssetMaintenanceChat.prototype, "user_id", void 0);
|
|
42
43
|
__decorate([
|
|
43
44
|
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
44
|
-
__metadata("design:type",
|
|
45
|
-
],
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], AssetMaintenanceChat.prototype, "role_id", void 0);
|
|
46
47
|
__decorate([
|
|
47
48
|
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
48
49
|
__metadata("design:type", String)
|
|
49
|
-
],
|
|
50
|
+
], AssetMaintenanceChat.prototype, "message", void 0);
|
|
50
51
|
__decorate([
|
|
51
52
|
(0, typeorm_1.Column)({
|
|
52
53
|
type: 'enum',
|
|
53
|
-
enum:
|
|
54
|
-
default:
|
|
54
|
+
enum: AssetMaintenanceMessageType,
|
|
55
|
+
default: AssetMaintenanceMessageType.TEXT,
|
|
55
56
|
nullable: false,
|
|
56
57
|
}),
|
|
57
58
|
__metadata("design:type", String)
|
|
58
|
-
],
|
|
59
|
+
], AssetMaintenanceChat.prototype, "messageType", void 0);
|
|
59
60
|
__decorate([
|
|
60
61
|
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
61
|
-
__metadata("design:type",
|
|
62
|
-
],
|
|
63
|
-
exports.MaintenanceChat =
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], AssetMaintenanceChat.prototype, "status", void 0);
|
|
64
|
+
exports.MaintenanceChat = exports.AssetMaintenanceChat = AssetMaintenanceChat = __decorate([
|
|
64
65
|
(0, typeorm_1.Entity)({ name: 'maintenance_chats' })
|
|
65
|
-
],
|
|
66
|
+
], AssetMaintenanceChat);
|