@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
package/.env
CHANGED
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
DB_HOST=164.52.222.169
|
|
2
|
-
DB_PORT=5432
|
|
3
|
-
DB_USER=postgres_admin_user
|
|
4
|
-
DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
5
|
-
DB_NAME=CAA
|
|
6
|
-
|
|
7
|
-
# DB_HOST=216.48.187.46
|
|
1
|
+
# DB_HOST=164.52.222.169
|
|
8
2
|
# DB_PORT=5432
|
|
9
|
-
# DB_USER=
|
|
10
|
-
# DB_PASS=
|
|
11
|
-
# DB_NAME=
|
|
12
|
-
|
|
3
|
+
# DB_USER=postgres_admin_user
|
|
4
|
+
# DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
5
|
+
# DB_NAME=CAA
|
|
13
6
|
|
|
14
7
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
# DB_NAME=CAA
|
|
8
|
+
DB_HOST=localhost
|
|
9
|
+
DB_PORT=5432
|
|
10
|
+
DB_USER=postgres
|
|
11
|
+
DB_PASS=stevejobs
|
|
12
|
+
DB_NAME=CAA
|
package/dist/data-source.js
CHANGED
|
@@ -189,6 +189,21 @@ const RespondToEnquiriesWorkflowModel_1 = require("./models/RespondToEnquiriesWo
|
|
|
189
189
|
const RespondToEnquiriesApprovalModel_1 = require("./models/RespondToEnquiriesApprovalModel");
|
|
190
190
|
const RespondToEnquiriesChatModel_1 = require("./models/RespondToEnquiriesChatModel");
|
|
191
191
|
const RespondToEnquiriesAttachmentModel_1 = require("./models/RespondToEnquiriesAttachmentModel");
|
|
192
|
+
const ServiceExtensionAfter60RequestModel_1 = require("./models/ServiceExtensionAfter60RequestModel");
|
|
193
|
+
const ServiceExtensionAfter60ApprovalModel_1 = require("./models/ServiceExtensionAfter60ApprovalModel");
|
|
194
|
+
const ServiceExtensionAfter60WorkflowModel_1 = require("./models/ServiceExtensionAfter60WorkflowModel");
|
|
195
|
+
const ServiceExtensionAfter60ChatModel_1 = require("./models/ServiceExtensionAfter60ChatModel");
|
|
196
|
+
const ServiceExtensionAfter60AttachmentModel_1 = require("./models/ServiceExtensionAfter60AttachmentModel");
|
|
197
|
+
const ImportExportMaterialRequestModel_1 = require("./models/ImportExportMaterialRequestModel");
|
|
198
|
+
const ImportExportMaterialApprovalModel_1 = require("./models/ImportExportMaterialApprovalModel");
|
|
199
|
+
const ImportExportMaterialWorkflowModel_1 = require("./models/ImportExportMaterialWorkflowModel");
|
|
200
|
+
const ImportExportMaterialChatModel_1 = require("./models/ImportExportMaterialChatModel");
|
|
201
|
+
const ImportExportMaterialAttachmentModel_1 = require("./models/ImportExportMaterialAttachmentModel");
|
|
202
|
+
const WorkingHoursExtensionRequestModel_1 = require("./models/WorkingHoursExtensionRequestModel");
|
|
203
|
+
const WorkingHoursExtensionApprovalModel_1 = require("./models/WorkingHoursExtensionApprovalModel");
|
|
204
|
+
const WorkingHoursExtensionWorkflowModel_1 = require("./models/WorkingHoursExtensionWorkflowModel");
|
|
205
|
+
const WorkingHoursExtensionChatModel_1 = require("./models/WorkingHoursExtensionChatModel");
|
|
206
|
+
const WorkingHoursExtensionAttachmentModel_1 = require("./models/WorkingHoursExtensionAttachmentModel");
|
|
192
207
|
const RequestATenderRequestModel_1 = require("./models/RequestATenderRequestModel");
|
|
193
208
|
const RequestTenderAnalysisRequestModel_1 = require("./models/RequestTenderAnalysisRequestModel");
|
|
194
209
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
@@ -384,6 +399,21 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
384
399
|
RespondToEnquiriesApprovalModel_1.RespondToEnquiriesApprovalDetails,
|
|
385
400
|
RespondToEnquiriesChatModel_1.RespondToEnquiriesRequestChat,
|
|
386
401
|
RespondToEnquiriesAttachmentModel_1.RespondToEnquiriesRequestAttachment,
|
|
402
|
+
ServiceExtensionAfter60RequestModel_1.ServiceExtensionAfter60Request,
|
|
403
|
+
ServiceExtensionAfter60ApprovalModel_1.ServiceExtensionAfter60Approval,
|
|
404
|
+
ServiceExtensionAfter60WorkflowModel_1.ServiceExtensionAfter60Workflow,
|
|
405
|
+
ServiceExtensionAfter60ChatModel_1.ServiceExtensionAfter60Chat,
|
|
406
|
+
ServiceExtensionAfter60AttachmentModel_1.ServiceExtensionAfter60Attachment,
|
|
407
|
+
ImportExportMaterialRequestModel_1.ImportExportMaterialRequest,
|
|
408
|
+
ImportExportMaterialApprovalModel_1.ImportExportMaterialApproval,
|
|
409
|
+
ImportExportMaterialWorkflowModel_1.ImportExportMaterialWorkflow,
|
|
410
|
+
ImportExportMaterialChatModel_1.ImportExportMaterialChat,
|
|
411
|
+
ImportExportMaterialAttachmentModel_1.ImportExportMaterialAttachment,
|
|
412
|
+
WorkingHoursExtensionRequestModel_1.WorkingHoursExtensionRequest,
|
|
413
|
+
WorkingHoursExtensionApprovalModel_1.WorkingHoursExtensionApproval,
|
|
414
|
+
WorkingHoursExtensionWorkflowModel_1.WorkingHoursExtensionWorkflow,
|
|
415
|
+
WorkingHoursExtensionChatModel_1.WorkingHoursExtensionChat,
|
|
416
|
+
WorkingHoursExtensionAttachmentModel_1.WorkingHoursExtensionAttachment,
|
|
387
417
|
RequestATenderRequestModel_1.RequestATenderRequest,
|
|
388
418
|
RequestTenderAnalysisRequestModel_1.RequestTenderAnalysisRequest
|
|
389
419
|
],
|
package/dist/index.d.ts
CHANGED
|
@@ -321,6 +321,21 @@ export * from './models/LegalComplaintChatModel';
|
|
|
321
321
|
export * from './models/LegalComplaintAttachmentModel';
|
|
322
322
|
export * from './models/AssetApartmentTypeModel';
|
|
323
323
|
export * from './models/AssetUnitLocationModel';
|
|
324
|
+
export * from './models/ServiceExtensionAfter60RequestModel';
|
|
325
|
+
export * from './models/ServiceExtensionAfter60ApprovalModel';
|
|
326
|
+
export * from './models/ServiceExtensionAfter60WorkflowModel';
|
|
327
|
+
export * from './models/ServiceExtensionAfter60ChatModel';
|
|
328
|
+
export * from './models/ServiceExtensionAfter60AttachmentModel';
|
|
329
|
+
export * from './models/ImportExportMaterialRequestModel';
|
|
330
|
+
export * from './models/ImportExportMaterialApprovalModel';
|
|
331
|
+
export * from './models/ImportExportMaterialWorkflowModel';
|
|
332
|
+
export * from './models/ImportExportMaterialChatModel';
|
|
333
|
+
export * from './models/ImportExportMaterialAttachmentModel';
|
|
334
|
+
export * from './models/WorkingHoursExtensionRequestModel';
|
|
335
|
+
export * from './models/WorkingHoursExtensionApprovalModel';
|
|
336
|
+
export * from './models/WorkingHoursExtensionWorkflowModel';
|
|
337
|
+
export * from './models/WorkingHoursExtensionChatModel';
|
|
338
|
+
export * from './models/WorkingHoursExtensionAttachmentModel';
|
|
324
339
|
export * from './models/RespondToEnquiriesRequestModel';
|
|
325
340
|
export { RespondToEnquiriesRequestStatus, RespondToEnquiriesRequest } from './models/RespondToEnquiriesRequestModel';
|
|
326
341
|
export * from './models/RespondToEnquiriesApprovalModel';
|
|
@@ -333,3 +348,4 @@ export * from './models/RespondToEnquiriesAttachmentModel';
|
|
|
333
348
|
export { RespondToEnquiriesRequestAttachment } from './models/RespondToEnquiriesAttachmentModel';
|
|
334
349
|
export * from './models/RequestATenderRequestModel';
|
|
335
350
|
export * from './models/RequestTenderAnalysisRequestModel';
|
|
351
|
+
export * from './models/ContractServiceRequestModel';
|
package/dist/index.js
CHANGED
|
@@ -486,6 +486,22 @@ __exportStar(require("./models/LegalComplaintAttachmentModel"), exports);
|
|
|
486
486
|
// Asset Affairs Admin Configuration
|
|
487
487
|
__exportStar(require("./models/AssetApartmentTypeModel"), exports);
|
|
488
488
|
__exportStar(require("./models/AssetUnitLocationModel"), exports);
|
|
489
|
+
// Service extension after age 60, import/export material, working hours extension
|
|
490
|
+
__exportStar(require("./models/ServiceExtensionAfter60RequestModel"), exports);
|
|
491
|
+
__exportStar(require("./models/ServiceExtensionAfter60ApprovalModel"), exports);
|
|
492
|
+
__exportStar(require("./models/ServiceExtensionAfter60WorkflowModel"), exports);
|
|
493
|
+
__exportStar(require("./models/ServiceExtensionAfter60ChatModel"), exports);
|
|
494
|
+
__exportStar(require("./models/ServiceExtensionAfter60AttachmentModel"), exports);
|
|
495
|
+
__exportStar(require("./models/ImportExportMaterialRequestModel"), exports);
|
|
496
|
+
__exportStar(require("./models/ImportExportMaterialApprovalModel"), exports);
|
|
497
|
+
__exportStar(require("./models/ImportExportMaterialWorkflowModel"), exports);
|
|
498
|
+
__exportStar(require("./models/ImportExportMaterialChatModel"), exports);
|
|
499
|
+
__exportStar(require("./models/ImportExportMaterialAttachmentModel"), exports);
|
|
500
|
+
__exportStar(require("./models/WorkingHoursExtensionRequestModel"), exports);
|
|
501
|
+
__exportStar(require("./models/WorkingHoursExtensionApprovalModel"), exports);
|
|
502
|
+
__exportStar(require("./models/WorkingHoursExtensionWorkflowModel"), exports);
|
|
503
|
+
__exportStar(require("./models/WorkingHoursExtensionChatModel"), exports);
|
|
504
|
+
__exportStar(require("./models/WorkingHoursExtensionAttachmentModel"), exports);
|
|
489
505
|
// Tender — Request a Service to Respond to Enquiries
|
|
490
506
|
__exportStar(require("./models/RespondToEnquiriesRequestModel"), exports);
|
|
491
507
|
var RespondToEnquiriesRequestModel_1 = require("./models/RespondToEnquiriesRequestModel");
|
|
@@ -509,3 +525,4 @@ var RespondToEnquiriesAttachmentModel_1 = require("./models/RespondToEnquiriesAt
|
|
|
509
525
|
Object.defineProperty(exports, "RespondToEnquiriesRequestAttachment", { enumerable: true, get: function () { return RespondToEnquiriesAttachmentModel_1.RespondToEnquiriesRequestAttachment; } });
|
|
510
526
|
__exportStar(require("./models/RequestATenderRequestModel"), exports);
|
|
511
527
|
__exportStar(require("./models/RequestTenderAnalysisRequestModel"), exports);
|
|
528
|
+
__exportStar(require("./models/ContractServiceRequestModel"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
import { RespondToEnquiriesRequestStatus } from "./RespondToEnquiriesRequestModel";
|
|
3
|
+
export declare class ContractServiceRequest extends BaseModel {
|
|
4
|
+
req_user_department_id: number | null;
|
|
5
|
+
req_user_section_id: number | null;
|
|
6
|
+
req_user_position_id: number | null;
|
|
7
|
+
service_id: number | null;
|
|
8
|
+
sub_service_id: number | null;
|
|
9
|
+
user_id: number;
|
|
10
|
+
title_of_project: string;
|
|
11
|
+
description: string;
|
|
12
|
+
date_of_submission: Date;
|
|
13
|
+
phone: string;
|
|
14
|
+
request_id: string | null;
|
|
15
|
+
project_or_budget_code: string;
|
|
16
|
+
company_name: string;
|
|
17
|
+
status: RespondToEnquiriesRequestStatus;
|
|
18
|
+
reviewer_user_id: number | null;
|
|
19
|
+
assigned_to_user_id: number | null;
|
|
20
|
+
assigned_at: Date | null;
|
|
21
|
+
workflow_execution_id: string | null;
|
|
22
|
+
reference_number: string | null;
|
|
23
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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.ContractServiceRequest = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const RespondToEnquiriesRequestModel_1 = require("./RespondToEnquiriesRequestModel");
|
|
16
|
+
let ContractServiceRequest = class ContractServiceRequest extends BaseModel_1.BaseModel {
|
|
17
|
+
};
|
|
18
|
+
exports.ContractServiceRequest = ContractServiceRequest;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
21
|
+
__metadata("design:type", Object)
|
|
22
|
+
], ContractServiceRequest.prototype, "req_user_department_id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
25
|
+
__metadata("design:type", Object)
|
|
26
|
+
], ContractServiceRequest.prototype, "req_user_section_id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], ContractServiceRequest.prototype, "req_user_position_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], ContractServiceRequest.prototype, "service_id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], ContractServiceRequest.prototype, "sub_service_id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], ContractServiceRequest.prototype, "user_id", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], ContractServiceRequest.prototype, "title_of_project", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], ContractServiceRequest.prototype, "description", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
53
|
+
__metadata("design:type", Date)
|
|
54
|
+
], ContractServiceRequest.prototype, "date_of_submission", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 30, nullable: false }),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], ContractServiceRequest.prototype, "phone", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], ContractServiceRequest.prototype, "request_id", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], ContractServiceRequest.prototype, "project_or_budget_code", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], ContractServiceRequest.prototype, "company_name", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({
|
|
73
|
+
type: "enum",
|
|
74
|
+
enum: RespondToEnquiriesRequestModel_1.RespondToEnquiriesRequestStatus,
|
|
75
|
+
default: RespondToEnquiriesRequestModel_1.RespondToEnquiriesRequestStatus.PENDING,
|
|
76
|
+
nullable: false
|
|
77
|
+
}),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], ContractServiceRequest.prototype, "status", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
82
|
+
__metadata("design:type", Object)
|
|
83
|
+
], ContractServiceRequest.prototype, "reviewer_user_id", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
86
|
+
__metadata("design:type", Object)
|
|
87
|
+
], ContractServiceRequest.prototype, "assigned_to_user_id", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
90
|
+
__metadata("design:type", Object)
|
|
91
|
+
], ContractServiceRequest.prototype, "assigned_at", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
94
|
+
__metadata("design:type", Object)
|
|
95
|
+
], ContractServiceRequest.prototype, "workflow_execution_id", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
98
|
+
__metadata("design:type", Object)
|
|
99
|
+
], ContractServiceRequest.prototype, "reference_number", void 0);
|
|
100
|
+
exports.ContractServiceRequest = ContractServiceRequest = __decorate([
|
|
101
|
+
(0, typeorm_1.Entity)({ name: "contract_service_requests" })
|
|
102
|
+
], ContractServiceRequest);
|
|
@@ -0,0 +1,40 @@
|
|
|
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.ITApprovalSettings = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ITApprovalSettings = class ITApprovalSettings extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(level, approval_role_id, workflow_id) {
|
|
17
|
+
super();
|
|
18
|
+
this.level = level;
|
|
19
|
+
this.approval_role_id = approval_role_id;
|
|
20
|
+
this.workflow_id = workflow_id;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.ITApprovalSettings = ITApprovalSettings;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], ITApprovalSettings.prototype, "level", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], ITApprovalSettings.prototype, "approval_role_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], ITApprovalSettings.prototype, "workflow_id", void 0);
|
|
36
|
+
exports.ITApprovalSettings = ITApprovalSettings = __decorate([
|
|
37
|
+
(0, typeorm_1.Entity)({ name: 'it_approval_settings' }),
|
|
38
|
+
(0, typeorm_1.Unique)(['workflow_id', 'level']),
|
|
39
|
+
__metadata("design:paramtypes", [Number, Number, Number])
|
|
40
|
+
], ITApprovalSettings);
|
|
@@ -0,0 +1,34 @@
|
|
|
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.ITServicesTypesMuscat = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ITServicesTypesMuscat = class ITServicesTypesMuscat extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(name, name_in_arabic) {
|
|
17
|
+
super();
|
|
18
|
+
this.name = name;
|
|
19
|
+
this.name_in_arabic = name_in_arabic;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.ITServicesTypesMuscat = ITServicesTypesMuscat;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ITServicesTypesMuscat.prototype, "name", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ITServicesTypesMuscat.prototype, "name_in_arabic", void 0);
|
|
31
|
+
exports.ITServicesTypesMuscat = ITServicesTypesMuscat = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)({ name: 'it_services_types_muscat' }),
|
|
33
|
+
__metadata("design:paramtypes", [String, String])
|
|
34
|
+
], ITServicesTypesMuscat);
|
|
@@ -0,0 +1,34 @@
|
|
|
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.ITServicesTypesSalalah = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ITServicesTypesSalalah = class ITServicesTypesSalalah extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(name, name_in_arabic) {
|
|
17
|
+
super();
|
|
18
|
+
this.name = name;
|
|
19
|
+
this.name_in_arabic = name_in_arabic;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.ITServicesTypesSalalah = ITServicesTypesSalalah;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ITServicesTypesSalalah.prototype, "name", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ITServicesTypesSalalah.prototype, "name_in_arabic", void 0);
|
|
31
|
+
exports.ITServicesTypesSalalah = ITServicesTypesSalalah = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)({ name: 'it_services_types_salalah' }),
|
|
33
|
+
__metadata("design:paramtypes", [String, String])
|
|
34
|
+
], ITServicesTypesSalalah);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum ImportExportMaterialApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class ImportExportMaterialApproval 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: ImportExportMaterialApprovalStatus;
|
|
21
|
+
is_allowed: boolean;
|
|
22
|
+
constructor(request_id: number, approver_role_id: number, level: number, comment: string, approval_status: ImportExportMaterialApprovalStatus, 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.ImportExportMaterialApproval = exports.ImportExportMaterialApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var ImportExportMaterialApprovalStatus;
|
|
16
|
+
(function (ImportExportMaterialApprovalStatus) {
|
|
17
|
+
ImportExportMaterialApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
ImportExportMaterialApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
ImportExportMaterialApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
ImportExportMaterialApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(ImportExportMaterialApprovalStatus || (exports.ImportExportMaterialApprovalStatus = ImportExportMaterialApprovalStatus = {}));
|
|
22
|
+
let ImportExportMaterialApproval = class ImportExportMaterialApproval 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.ImportExportMaterialApproval = ImportExportMaterialApproval;
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], ImportExportMaterialApproval.prototype, "request_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], ImportExportMaterialApproval.prototype, "service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], ImportExportMaterialApproval.prototype, "sub_service_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], ImportExportMaterialApproval.prototype, "level", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], ImportExportMaterialApproval.prototype, "approver_role_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], ImportExportMaterialApproval.prototype, "department_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], ImportExportMaterialApproval.prototype, "section_id", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], ImportExportMaterialApproval.prototype, "approver_user_id", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
75
|
+
__metadata("design:type", Object)
|
|
76
|
+
], ImportExportMaterialApproval.prototype, "delegate_user_id", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
79
|
+
__metadata("design:type", Object)
|
|
80
|
+
], ImportExportMaterialApproval.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
|
+
], ImportExportMaterialApproval.prototype, "comment", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({
|
|
87
|
+
type: "enum",
|
|
88
|
+
enum: ImportExportMaterialApprovalStatus,
|
|
89
|
+
default: ImportExportMaterialApprovalStatus.PENDING,
|
|
90
|
+
nullable: false
|
|
91
|
+
}),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], ImportExportMaterialApproval.prototype, "approval_status", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)({ type: "boolean", default: true, nullable: false }),
|
|
96
|
+
__metadata("design:type", Boolean)
|
|
97
|
+
], ImportExportMaterialApproval.prototype, "is_allowed", void 0);
|
|
98
|
+
exports.ImportExportMaterialApproval = ImportExportMaterialApproval = __decorate([
|
|
99
|
+
(0, typeorm_1.Entity)({ name: "import_export_material_approvals" }),
|
|
100
|
+
__metadata("design:paramtypes", [Number, Number, Number, String, String, Number, Number, Object, Object, Object, Object, Object, Boolean])
|
|
101
|
+
], ImportExportMaterialApproval);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare class ImportExportMaterialAttachment 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.ImportExportMaterialAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ImportExportMaterialAttachment = class ImportExportMaterialAttachment 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.ImportExportMaterialAttachment = ImportExportMaterialAttachment;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], ImportExportMaterialAttachment.prototype, "request_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], ImportExportMaterialAttachment.prototype, "service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], ImportExportMaterialAttachment.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
|
+
], ImportExportMaterialAttachment.prototype, "file_url", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], ImportExportMaterialAttachment.prototype, "file_name", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], ImportExportMaterialAttachment.prototype, "file_type", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "bigint", nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], ImportExportMaterialAttachment.prototype, "file_size", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], ImportExportMaterialAttachment.prototype, "chat_id", void 0);
|
|
61
|
+
exports.ImportExportMaterialAttachment = ImportExportMaterialAttachment = __decorate([
|
|
62
|
+
(0, typeorm_1.Entity)({ name: "import_export_material_attachments" }),
|
|
63
|
+
__metadata("design:paramtypes", [Number, String, Number, Number, String, String, Number, Number])
|
|
64
|
+
], ImportExportMaterialAttachment);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum ImportExportMaterialMessageType {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
LINK = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare enum ImportExportMaterialChatStatus {
|
|
10
|
+
Pending = "Pending",
|
|
11
|
+
Received = "Received",
|
|
12
|
+
Approved = "Approved",
|
|
13
|
+
Rejected = "Rejected",
|
|
14
|
+
InProgress = "In Progress"
|
|
15
|
+
}
|
|
16
|
+
export declare class ImportExportMaterialChat 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: ImportExportMaterialMessageType;
|
|
25
|
+
is_internal: boolean;
|
|
26
|
+
created_by: number;
|
|
27
|
+
constructor();
|
|
28
|
+
}
|