@platform-modules/civil-aviation-authority 2.3.195 → 2.3.201
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/.env +9 -17
- package/dist/data-source.js +30 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +17 -0
- package/dist/models/ContractServiceRequestModel.d.ts +23 -0
- package/dist/models/ContractServiceRequestModel.js +102 -0
- package/dist/models/ITApprovalSettings.d.ts +7 -0
- package/dist/models/ITApprovalSettings.js +40 -0
- package/dist/models/ITServicesTypesMuscatModel.d.ts +6 -0
- package/dist/models/ITServicesTypesMuscatModel.js +34 -0
- package/dist/models/ITServicesTypesSalalahModel.d.ts +6 -0
- package/dist/models/ITServicesTypesSalalahModel.js +34 -0
- package/dist/models/ImportExportMaterialApprovalModel.d.ts +23 -0
- package/dist/models/ImportExportMaterialApprovalModel.js +101 -0
- package/dist/models/ImportExportMaterialAttachmentModel.d.ts +12 -0
- package/dist/models/ImportExportMaterialAttachmentModel.js +64 -0
- package/dist/models/ImportExportMaterialChatModel.d.ts +28 -0
- package/dist/models/ImportExportMaterialChatModel.js +86 -0
- package/dist/models/ImportExportMaterialRequestModel.d.ts +33 -0
- package/dist/models/ImportExportMaterialRequestModel.js +118 -0
- package/dist/models/ImportExportMaterialWorkflowModel.d.ts +18 -0
- package/dist/models/ImportExportMaterialWorkflowModel.js +80 -0
- package/dist/models/ServiceExtensionAfter60ApprovalModel.d.ts +23 -0
- package/dist/models/ServiceExtensionAfter60ApprovalModel.js +101 -0
- package/dist/models/ServiceExtensionAfter60AttachmentModel.d.ts +12 -0
- package/dist/models/ServiceExtensionAfter60AttachmentModel.js +64 -0
- package/dist/models/ServiceExtensionAfter60ChatModel.d.ts +28 -0
- package/dist/models/ServiceExtensionAfter60ChatModel.js +86 -0
- package/dist/models/ServiceExtensionAfter60RequestModel.d.ts +28 -0
- package/dist/models/ServiceExtensionAfter60RequestModel.js +108 -0
- package/dist/models/ServiceExtensionAfter60WorkflowModel.d.ts +18 -0
- package/dist/models/ServiceExtensionAfter60WorkflowModel.js +80 -0
- package/dist/models/Workflows.d.ts +9 -0
- package/dist/models/Workflows.js +31 -0
- package/dist/models/WorkingHoursExtensionApprovalModel.d.ts +23 -0
- package/dist/models/WorkingHoursExtensionApprovalModel.js +101 -0
- package/dist/models/WorkingHoursExtensionAttachmentModel.d.ts +12 -0
- package/dist/models/WorkingHoursExtensionAttachmentModel.js +64 -0
- package/dist/models/WorkingHoursExtensionChatModel.d.ts +28 -0
- package/dist/models/WorkingHoursExtensionChatModel.js +86 -0
- package/dist/models/WorkingHoursExtensionRequestModel.d.ts +25 -0
- package/dist/models/WorkingHoursExtensionRequestModel.js +96 -0
- package/dist/models/WorkingHoursExtensionWorkflowModel.d.ts +18 -0
- package/dist/models/WorkingHoursExtensionWorkflowModel.js +80 -0
- package/package.json +24 -24
- package/src/data-source.ts +30 -0
- package/src/index.ts +18 -0
- package/src/models/AccessCardRequestModel.ts +135 -135
- package/src/models/AccommodationApprovalModel.ts +8 -8
- package/src/models/AccommodationRequestModel.ts +8 -8
- package/src/models/AirportEntryPermitModel.ts +276 -276
- package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
- package/src/models/AnnualIncrementRequestModel.ts +25 -25
- package/src/models/AnnualTrainingPlanRequestModel.ts +153 -153
- package/src/models/AppealAgainstAdministrativeDecisionRequestModel.ts +23 -23
- package/src/models/CAAServices.ts +33 -33
- package/src/models/CAASubServices.ts +33 -33
- package/src/models/CAIRatingMasterModel.ts +39 -39
- package/src/models/CSRMBusinessImpactRatingMasterModel.ts +25 -25
- package/src/models/CSRMLikelihoodMasterModel.ts +25 -25
- package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
- package/src/models/ContractServiceRequestModel.ts +68 -0
- package/src/models/DepartmentsModel.ts +25 -25
- package/src/models/DocumentDriveModel.ts +28 -28
- package/src/models/DocumentFolderModel.ts +45 -45
- package/src/models/HousingContractCancelChatModel.ts +56 -56
- package/src/models/HousingContractRenewalChatModel.ts +59 -59
- package/src/models/HrServiceRequestModel.ts +193 -193
- package/src/models/ITRequestAttachmentModel.ts +73 -73
- package/src/models/ITRequestChatModel.ts +74 -74
- package/src/models/ImportExportMaterialApprovalModel.ts +87 -0
- package/src/models/ImportExportMaterialAttachmentModel.ts +50 -0
- package/src/models/ImportExportMaterialChatModel.ts +61 -0
- package/src/models/ImportExportMaterialRequestModel.ts +85 -0
- package/src/models/ImportExportMaterialWorkflowModel.ts +51 -0
- package/src/models/ItApprovalsModel.ts +84 -84
- package/src/models/ItWorkflowModel.ts +55 -55
- package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
- package/src/models/PerformanceCyclePeriodModel.ts +26 -26
- package/src/models/PerformanceGoalMasterModel.ts +27 -27
- package/src/models/PerformanceManagementRequestGoalModel.ts +46 -46
- package/src/models/PerformanceManagementRequestModel.ts +14 -14
- package/src/models/PromotionRequestModel.ts +11 -11
- package/src/models/ResidentialUnitRentalChatModel.ts +56 -56
- package/src/models/ResidentialUnitRentalRequestModel.ts +218 -218
- package/src/models/RespondToEnquiriesRequestModel.ts +31 -31
- package/src/models/ServiceExtensionAfter60ApprovalModel.ts +87 -0
- package/src/models/ServiceExtensionAfter60AttachmentModel.ts +50 -0
- package/src/models/ServiceExtensionAfter60ChatModel.ts +61 -0
- package/src/models/ServiceExtensionAfter60RequestModel.ts +75 -0
- package/src/models/ServiceExtensionAfter60WorkflowModel.ts +51 -0
- package/src/models/ServicesNotificationConfigModel.ts +55 -55
- package/src/models/StudyLeaveRequestModel.ts +144 -144
- package/src/models/TrainingRequestModel.ts +164 -164
- package/src/models/TrainingRoomBookingRequestModel.ts +142 -142
- package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
- package/src/models/UserSkillModel.ts +56 -56
- package/src/models/WorkingHoursExtensionApprovalModel.ts +87 -0
- package/src/models/WorkingHoursExtensionAttachmentModel.ts +50 -0
- package/src/models/WorkingHoursExtensionChatModel.ts +61 -0
- package/src/models/WorkingHoursExtensionRequestModel.ts +66 -0
- package/src/models/WorkingHoursExtensionWorkflowModel.ts +51 -0
- package/src/models/role.ts +34 -34
- package/src/models/user.ts +233 -233
- package/dist/models/DocumentMetadataModel.d.ts +0 -45
- package/dist/models/DocumentMetadataModel.js +0 -171
- package/dist/models/DocumentationDepartmentsModel.d.ts +0 -13
- package/dist/models/DocumentationDepartmentsModel.js +0 -53
- package/dist/models/FolderModel.d.ts +0 -16
- package/dist/models/FolderModel.js +0 -85
- package/dist/models/ImportExportMaterialModels.d.ts +0 -92
- package/dist/models/ImportExportMaterialModels.js +0 -307
- package/dist/models/PermissionModel.d.ts +0 -18
- package/dist/models/PermissionModel.js +0 -68
- package/dist/models/SecurityAccessApprovalModel.d.ts +0 -23
- package/dist/models/SecurityAccessApprovalModel.js +0 -82
- package/dist/models/SecurityAccessAttachmentModel.d.ts +0 -12
- package/dist/models/SecurityAccessAttachmentModel.js +0 -56
- package/dist/models/SecurityAccessChatModel.d.ts +0 -12
- package/dist/models/SecurityAccessChatModel.js +0 -56
- package/dist/models/SecurityAccessRequestModel.d.ts +0 -25
- package/dist/models/SecurityAccessRequestModel.js +0 -80
- package/dist/models/SecurityAccessWorkflowModel.d.ts +0 -24
- package/dist/models/SecurityAccessWorkflowModel.js +0 -84
- package/dist/models/ServiceExtensionAfterAge60Models.d.ts +0 -93
- package/dist/models/ServiceExtensionAfterAge60Models.js +0 -312
- package/dist/models/UUIDBaseModel.d.ts +0 -14
- package/dist/models/UUIDBaseModel.js +0 -66
- package/dist/models/WorkingHoursExtensionModels.d.ts +0 -88
- package/dist/models/WorkingHoursExtensionModels.js +0 -295
|
@@ -0,0 +1,86 @@
|
|
|
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.ImportExportMaterialChat = exports.ImportExportMaterialChatStatus = exports.ImportExportMaterialMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var ImportExportMaterialMessageType;
|
|
16
|
+
(function (ImportExportMaterialMessageType) {
|
|
17
|
+
ImportExportMaterialMessageType["TEXT"] = "text";
|
|
18
|
+
ImportExportMaterialMessageType["IMAGE"] = "image";
|
|
19
|
+
ImportExportMaterialMessageType["VIDEO"] = "video";
|
|
20
|
+
ImportExportMaterialMessageType["FILE"] = "file";
|
|
21
|
+
ImportExportMaterialMessageType["LINK"] = "link";
|
|
22
|
+
})(ImportExportMaterialMessageType || (exports.ImportExportMaterialMessageType = ImportExportMaterialMessageType = {}));
|
|
23
|
+
var ImportExportMaterialChatStatus;
|
|
24
|
+
(function (ImportExportMaterialChatStatus) {
|
|
25
|
+
ImportExportMaterialChatStatus["Pending"] = "Pending";
|
|
26
|
+
ImportExportMaterialChatStatus["Received"] = "Received";
|
|
27
|
+
ImportExportMaterialChatStatus["Approved"] = "Approved";
|
|
28
|
+
ImportExportMaterialChatStatus["Rejected"] = "Rejected";
|
|
29
|
+
ImportExportMaterialChatStatus["InProgress"] = "In Progress";
|
|
30
|
+
})(ImportExportMaterialChatStatus || (exports.ImportExportMaterialChatStatus = ImportExportMaterialChatStatus = {}));
|
|
31
|
+
let ImportExportMaterialChat = class ImportExportMaterialChat extends BaseModel_1.BaseModel {
|
|
32
|
+
constructor() {
|
|
33
|
+
super();
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
exports.ImportExportMaterialChat = ImportExportMaterialChat;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], ImportExportMaterialChat.prototype, "request_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], ImportExportMaterialChat.prototype, "service_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], ImportExportMaterialChat.prototype, "sub_service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], ImportExportMaterialChat.prototype, "user_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], ImportExportMaterialChat.prototype, "message", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], ImportExportMaterialChat.prototype, "approver_role_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false, default: "Pending" }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], ImportExportMaterialChat.prototype, "status", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({
|
|
67
|
+
type: "enum",
|
|
68
|
+
enum: ImportExportMaterialMessageType,
|
|
69
|
+
default: ImportExportMaterialMessageType.TEXT,
|
|
70
|
+
nullable: false,
|
|
71
|
+
name: "message_type"
|
|
72
|
+
}),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], ImportExportMaterialChat.prototype, "messageType", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: "boolean", nullable: false, default: false }),
|
|
77
|
+
__metadata("design:type", Boolean)
|
|
78
|
+
], ImportExportMaterialChat.prototype, "is_internal", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
81
|
+
__metadata("design:type", Number)
|
|
82
|
+
], ImportExportMaterialChat.prototype, "created_by", void 0);
|
|
83
|
+
exports.ImportExportMaterialChat = ImportExportMaterialChat = __decorate([
|
|
84
|
+
(0, typeorm_1.Entity)({ name: "import_export_material_chats" }),
|
|
85
|
+
__metadata("design:paramtypes", [])
|
|
86
|
+
], ImportExportMaterialChat);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum ImportExportMaterialRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare enum ImportExportMaterialRequestType {
|
|
9
|
+
IMPORT = "Import",
|
|
10
|
+
EXPORT = "Export",
|
|
11
|
+
BOTH = "Both"
|
|
12
|
+
}
|
|
13
|
+
export declare class ImportExportMaterialRequest extends BaseModel {
|
|
14
|
+
req_user_department_id: number | null;
|
|
15
|
+
req_user_section_id: number | null;
|
|
16
|
+
service_id: number | null;
|
|
17
|
+
sub_service_id: number | null;
|
|
18
|
+
user_id: number;
|
|
19
|
+
status: ImportExportMaterialRequestStatus;
|
|
20
|
+
workflow_execution_id: string | null;
|
|
21
|
+
request_date: Date | null;
|
|
22
|
+
request_type: ImportExportMaterialRequestType;
|
|
23
|
+
material_movement_date: Date | null;
|
|
24
|
+
hazardous_details: string | null;
|
|
25
|
+
purpose: string;
|
|
26
|
+
material_description: string;
|
|
27
|
+
transport_mode: string | null;
|
|
28
|
+
vehicle_number: string | null;
|
|
29
|
+
description: string | null;
|
|
30
|
+
created_by: number;
|
|
31
|
+
reference_number: string | null;
|
|
32
|
+
constructor();
|
|
33
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
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.ImportExportMaterialRequest = exports.ImportExportMaterialRequestType = exports.ImportExportMaterialRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var ImportExportMaterialRequestStatus;
|
|
16
|
+
(function (ImportExportMaterialRequestStatus) {
|
|
17
|
+
ImportExportMaterialRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
ImportExportMaterialRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
ImportExportMaterialRequestStatus["APPROVED"] = "Approved";
|
|
20
|
+
ImportExportMaterialRequestStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(ImportExportMaterialRequestStatus || (exports.ImportExportMaterialRequestStatus = ImportExportMaterialRequestStatus = {}));
|
|
22
|
+
var ImportExportMaterialRequestType;
|
|
23
|
+
(function (ImportExportMaterialRequestType) {
|
|
24
|
+
ImportExportMaterialRequestType["IMPORT"] = "Import";
|
|
25
|
+
ImportExportMaterialRequestType["EXPORT"] = "Export";
|
|
26
|
+
ImportExportMaterialRequestType["BOTH"] = "Both";
|
|
27
|
+
})(ImportExportMaterialRequestType || (exports.ImportExportMaterialRequestType = ImportExportMaterialRequestType = {}));
|
|
28
|
+
let ImportExportMaterialRequest = class ImportExportMaterialRequest extends BaseModel_1.BaseModel {
|
|
29
|
+
constructor() {
|
|
30
|
+
super();
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
exports.ImportExportMaterialRequest = ImportExportMaterialRequest;
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], ImportExportMaterialRequest.prototype, "req_user_department_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], ImportExportMaterialRequest.prototype, "req_user_section_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], ImportExportMaterialRequest.prototype, "service_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], ImportExportMaterialRequest.prototype, "sub_service_id", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], ImportExportMaterialRequest.prototype, "user_id", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({
|
|
56
|
+
type: "enum",
|
|
57
|
+
enum: ImportExportMaterialRequestStatus,
|
|
58
|
+
default: ImportExportMaterialRequestStatus.PENDING,
|
|
59
|
+
nullable: false
|
|
60
|
+
}),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], ImportExportMaterialRequest.prototype, "status", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], ImportExportMaterialRequest.prototype, "workflow_execution_id", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], ImportExportMaterialRequest.prototype, "request_date", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({
|
|
73
|
+
type: "enum",
|
|
74
|
+
enum: ImportExportMaterialRequestType,
|
|
75
|
+
nullable: false
|
|
76
|
+
}),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], ImportExportMaterialRequest.prototype, "request_type", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], ImportExportMaterialRequest.prototype, "material_movement_date", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
85
|
+
__metadata("design:type", Object)
|
|
86
|
+
], ImportExportMaterialRequest.prototype, "hazardous_details", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], ImportExportMaterialRequest.prototype, "purpose", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], ImportExportMaterialRequest.prototype, "material_description", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 128, nullable: true }),
|
|
97
|
+
__metadata("design:type", Object)
|
|
98
|
+
], ImportExportMaterialRequest.prototype, "transport_mode", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 64, nullable: true }),
|
|
101
|
+
__metadata("design:type", Object)
|
|
102
|
+
], ImportExportMaterialRequest.prototype, "vehicle_number", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
105
|
+
__metadata("design:type", Object)
|
|
106
|
+
], ImportExportMaterialRequest.prototype, "description", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
109
|
+
__metadata("design:type", Number)
|
|
110
|
+
], ImportExportMaterialRequest.prototype, "created_by", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
113
|
+
__metadata("design:type", Object)
|
|
114
|
+
], ImportExportMaterialRequest.prototype, "reference_number", void 0);
|
|
115
|
+
exports.ImportExportMaterialRequest = ImportExportMaterialRequest = __decorate([
|
|
116
|
+
(0, typeorm_1.Entity)({ name: "import_export_material_requests" }),
|
|
117
|
+
__metadata("design:paramtypes", [])
|
|
118
|
+
], ImportExportMaterialRequest);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare class ImportExportMaterialWorkflow extends BaseModel {
|
|
3
|
+
request_id: number;
|
|
4
|
+
service_id: number;
|
|
5
|
+
sub_service_id: number;
|
|
6
|
+
workflow_definition_id: number;
|
|
7
|
+
current_level: number;
|
|
8
|
+
content: string;
|
|
9
|
+
status: string;
|
|
10
|
+
step_order: number;
|
|
11
|
+
user_id: number;
|
|
12
|
+
role_id: number;
|
|
13
|
+
department_id: number;
|
|
14
|
+
section_id: number;
|
|
15
|
+
workflow_data: string;
|
|
16
|
+
created_by: number;
|
|
17
|
+
constructor();
|
|
18
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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.ImportExportMaterialWorkflow = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ImportExportMaterialWorkflow = class ImportExportMaterialWorkflow extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor() {
|
|
17
|
+
super();
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
exports.ImportExportMaterialWorkflow = ImportExportMaterialWorkflow;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], ImportExportMaterialWorkflow.prototype, "request_id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], ImportExportMaterialWorkflow.prototype, "service_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], ImportExportMaterialWorkflow.prototype, "sub_service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], ImportExportMaterialWorkflow.prototype, "workflow_definition_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], ImportExportMaterialWorkflow.prototype, "current_level", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], ImportExportMaterialWorkflow.prototype, "content", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: false }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], ImportExportMaterialWorkflow.prototype, "status", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], ImportExportMaterialWorkflow.prototype, "step_order", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], ImportExportMaterialWorkflow.prototype, "user_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], ImportExportMaterialWorkflow.prototype, "role_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], ImportExportMaterialWorkflow.prototype, "department_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], ImportExportMaterialWorkflow.prototype, "section_id", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], ImportExportMaterialWorkflow.prototype, "workflow_data", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
75
|
+
__metadata("design:type", Number)
|
|
76
|
+
], ImportExportMaterialWorkflow.prototype, "created_by", void 0);
|
|
77
|
+
exports.ImportExportMaterialWorkflow = ImportExportMaterialWorkflow = __decorate([
|
|
78
|
+
(0, typeorm_1.Entity)({ name: "import_export_material_workflow" }),
|
|
79
|
+
__metadata("design:paramtypes", [])
|
|
80
|
+
], ImportExportMaterialWorkflow);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum ServiceExtensionAfter60ApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class ServiceExtensionAfter60Approval 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: ServiceExtensionAfter60ApprovalStatus;
|
|
21
|
+
is_allowed: boolean;
|
|
22
|
+
constructor(request_id: number, approver_role_id: number, level: number, comment: string, approval_status: ServiceExtensionAfter60ApprovalStatus, service_id?: number, sub_service_id?: number, department_id?: number | null, section_id?: number | null, approver_user_id?: number | null, delegate_user_id?: number | null, approved_by?: number | null, is_allowed?: boolean);
|
|
23
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
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.ServiceExtensionAfter60Approval = exports.ServiceExtensionAfter60ApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var ServiceExtensionAfter60ApprovalStatus;
|
|
16
|
+
(function (ServiceExtensionAfter60ApprovalStatus) {
|
|
17
|
+
ServiceExtensionAfter60ApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
ServiceExtensionAfter60ApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
ServiceExtensionAfter60ApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
ServiceExtensionAfter60ApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(ServiceExtensionAfter60ApprovalStatus || (exports.ServiceExtensionAfter60ApprovalStatus = ServiceExtensionAfter60ApprovalStatus = {}));
|
|
22
|
+
let ServiceExtensionAfter60Approval = class ServiceExtensionAfter60Approval extends BaseModel_1.BaseModel {
|
|
23
|
+
constructor(request_id, approver_role_id, level, comment, approval_status, service_id, sub_service_id, department_id, section_id, approver_user_id, delegate_user_id, approved_by, 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.level = level;
|
|
29
|
+
this.approver_role_id = approver_role_id;
|
|
30
|
+
this.department_id = department_id ?? null;
|
|
31
|
+
this.section_id = section_id ?? null;
|
|
32
|
+
this.approver_user_id = approver_user_id ?? null;
|
|
33
|
+
this.delegate_user_id = delegate_user_id ?? null;
|
|
34
|
+
this.approved_by = approved_by ?? null;
|
|
35
|
+
this.comment = comment;
|
|
36
|
+
this.approval_status = approval_status;
|
|
37
|
+
this.is_allowed = is_allowed !== undefined ? is_allowed : true;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
exports.ServiceExtensionAfter60Approval = ServiceExtensionAfter60Approval;
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], ServiceExtensionAfter60Approval.prototype, "request_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], ServiceExtensionAfter60Approval.prototype, "service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], ServiceExtensionAfter60Approval.prototype, "sub_service_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], ServiceExtensionAfter60Approval.prototype, "level", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], ServiceExtensionAfter60Approval.prototype, "approver_role_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], ServiceExtensionAfter60Approval.prototype, "department_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], ServiceExtensionAfter60Approval.prototype, "section_id", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], ServiceExtensionAfter60Approval.prototype, "approver_user_id", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
75
|
+
__metadata("design:type", Object)
|
|
76
|
+
], ServiceExtensionAfter60Approval.prototype, "delegate_user_id", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
79
|
+
__metadata("design:type", Object)
|
|
80
|
+
], ServiceExtensionAfter60Approval.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
|
+
], ServiceExtensionAfter60Approval.prototype, "comment", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({
|
|
87
|
+
type: "enum",
|
|
88
|
+
enum: ServiceExtensionAfter60ApprovalStatus,
|
|
89
|
+
default: ServiceExtensionAfter60ApprovalStatus.PENDING,
|
|
90
|
+
nullable: false
|
|
91
|
+
}),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], ServiceExtensionAfter60Approval.prototype, "approval_status", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)({ type: "boolean", default: true, nullable: false }),
|
|
96
|
+
__metadata("design:type", Boolean)
|
|
97
|
+
], ServiceExtensionAfter60Approval.prototype, "is_allowed", void 0);
|
|
98
|
+
exports.ServiceExtensionAfter60Approval = ServiceExtensionAfter60Approval = __decorate([
|
|
99
|
+
(0, typeorm_1.Entity)({ name: "service_extension_after_60_approvals" }),
|
|
100
|
+
__metadata("design:paramtypes", [Number, Number, Number, String, String, Number, Number, Object, Object, Object, Object, Object, Boolean])
|
|
101
|
+
], ServiceExtensionAfter60Approval);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare class ServiceExtensionAfter60Attachment 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, service_id?: number, sub_service_id?: number, file_name?: string, file_type?: string, file_size?: 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.ServiceExtensionAfter60Attachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ServiceExtensionAfter60Attachment = class ServiceExtensionAfter60Attachment extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(request_id, file_url, service_id, sub_service_id, file_name, file_type, file_size, 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.ServiceExtensionAfter60Attachment = ServiceExtensionAfter60Attachment;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], ServiceExtensionAfter60Attachment.prototype, "request_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], ServiceExtensionAfter60Attachment.prototype, "service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], ServiceExtensionAfter60Attachment.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
|
+
], ServiceExtensionAfter60Attachment.prototype, "file_url", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], ServiceExtensionAfter60Attachment.prototype, "file_name", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], ServiceExtensionAfter60Attachment.prototype, "file_type", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "bigint", nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], ServiceExtensionAfter60Attachment.prototype, "file_size", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], ServiceExtensionAfter60Attachment.prototype, "chat_id", void 0);
|
|
61
|
+
exports.ServiceExtensionAfter60Attachment = ServiceExtensionAfter60Attachment = __decorate([
|
|
62
|
+
(0, typeorm_1.Entity)({ name: "service_extension_after_60_attachments" }),
|
|
63
|
+
__metadata("design:paramtypes", [Number, String, Number, Number, String, String, Number, Number])
|
|
64
|
+
], ServiceExtensionAfter60Attachment);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum ServiceExtensionAfter60MessageType {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
LINK = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare enum ServiceExtensionAfter60ChatStatus {
|
|
10
|
+
Pending = "Pending",
|
|
11
|
+
Received = "Received",
|
|
12
|
+
Approved = "Approved",
|
|
13
|
+
Rejected = "Rejected",
|
|
14
|
+
InProgress = "In Progress"
|
|
15
|
+
}
|
|
16
|
+
export declare class ServiceExtensionAfter60Chat extends BaseModel {
|
|
17
|
+
request_id: number;
|
|
18
|
+
service_id: number;
|
|
19
|
+
sub_service_id: number;
|
|
20
|
+
user_id: number;
|
|
21
|
+
message: string;
|
|
22
|
+
approver_role_id: number | null;
|
|
23
|
+
status: string;
|
|
24
|
+
messageType: ServiceExtensionAfter60MessageType;
|
|
25
|
+
is_internal: boolean;
|
|
26
|
+
created_by: number;
|
|
27
|
+
constructor();
|
|
28
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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.ServiceExtensionAfter60Chat = exports.ServiceExtensionAfter60ChatStatus = exports.ServiceExtensionAfter60MessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var ServiceExtensionAfter60MessageType;
|
|
16
|
+
(function (ServiceExtensionAfter60MessageType) {
|
|
17
|
+
ServiceExtensionAfter60MessageType["TEXT"] = "text";
|
|
18
|
+
ServiceExtensionAfter60MessageType["IMAGE"] = "image";
|
|
19
|
+
ServiceExtensionAfter60MessageType["VIDEO"] = "video";
|
|
20
|
+
ServiceExtensionAfter60MessageType["FILE"] = "file";
|
|
21
|
+
ServiceExtensionAfter60MessageType["LINK"] = "link";
|
|
22
|
+
})(ServiceExtensionAfter60MessageType || (exports.ServiceExtensionAfter60MessageType = ServiceExtensionAfter60MessageType = {}));
|
|
23
|
+
var ServiceExtensionAfter60ChatStatus;
|
|
24
|
+
(function (ServiceExtensionAfter60ChatStatus) {
|
|
25
|
+
ServiceExtensionAfter60ChatStatus["Pending"] = "Pending";
|
|
26
|
+
ServiceExtensionAfter60ChatStatus["Received"] = "Received";
|
|
27
|
+
ServiceExtensionAfter60ChatStatus["Approved"] = "Approved";
|
|
28
|
+
ServiceExtensionAfter60ChatStatus["Rejected"] = "Rejected";
|
|
29
|
+
ServiceExtensionAfter60ChatStatus["InProgress"] = "In Progress";
|
|
30
|
+
})(ServiceExtensionAfter60ChatStatus || (exports.ServiceExtensionAfter60ChatStatus = ServiceExtensionAfter60ChatStatus = {}));
|
|
31
|
+
let ServiceExtensionAfter60Chat = class ServiceExtensionAfter60Chat extends BaseModel_1.BaseModel {
|
|
32
|
+
constructor() {
|
|
33
|
+
super();
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
exports.ServiceExtensionAfter60Chat = ServiceExtensionAfter60Chat;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], ServiceExtensionAfter60Chat.prototype, "request_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], ServiceExtensionAfter60Chat.prototype, "service_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], ServiceExtensionAfter60Chat.prototype, "sub_service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], ServiceExtensionAfter60Chat.prototype, "user_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], ServiceExtensionAfter60Chat.prototype, "message", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], ServiceExtensionAfter60Chat.prototype, "approver_role_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false, default: "Pending" }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], ServiceExtensionAfter60Chat.prototype, "status", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({
|
|
67
|
+
type: "enum",
|
|
68
|
+
enum: ServiceExtensionAfter60MessageType,
|
|
69
|
+
default: ServiceExtensionAfter60MessageType.TEXT,
|
|
70
|
+
nullable: false,
|
|
71
|
+
name: "message_type"
|
|
72
|
+
}),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], ServiceExtensionAfter60Chat.prototype, "messageType", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: "boolean", nullable: false, default: false }),
|
|
77
|
+
__metadata("design:type", Boolean)
|
|
78
|
+
], ServiceExtensionAfter60Chat.prototype, "is_internal", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
81
|
+
__metadata("design:type", Number)
|
|
82
|
+
], ServiceExtensionAfter60Chat.prototype, "created_by", void 0);
|
|
83
|
+
exports.ServiceExtensionAfter60Chat = ServiceExtensionAfter60Chat = __decorate([
|
|
84
|
+
(0, typeorm_1.Entity)({ name: "service_extension_after_60_chats" }),
|
|
85
|
+
__metadata("design:paramtypes", [])
|
|
86
|
+
], ServiceExtensionAfter60Chat);
|