@platform-modules/civil-aviation-authority 2.3.100 → 2.3.102
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 +2 -4
- package/dist/data-source.js +10 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +7 -0
- package/dist/models/AccommodationApprovalModel.d.ts +24 -0
- package/dist/models/AccommodationApprovalModel.js +89 -0
- package/dist/models/AccommodationAttachmentModel.d.ts +16 -0
- package/dist/models/AccommodationAttachmentModel.js +72 -0
- package/dist/models/AccommodationChatModel.d.ts +21 -0
- package/dist/models/AccommodationChatModel.js +72 -0
- package/dist/models/AccommodationRequestModel.d.ts +55 -0
- package/dist/models/AccommodationRequestModel.js +160 -0
- package/dist/models/AccommodationWorkflowModel.d.ts +29 -0
- package/dist/models/AccommodationWorkflowModel.js +109 -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/PerformanceManagementRequestGoalModel.d.ts +9 -0
- package/dist/models/PerformanceManagementRequestGoalModel.js +50 -0
- package/dist/models/PerformanceManagementRequestModel.d.ts +1 -5
- package/dist/models/PerformanceManagementRequestModel.js +2 -22
- package/dist/models/ShiftAllowanceRequestModel.d.ts +3 -3
- package/dist/models/ShiftAllowanceRequestModel.js +3 -3
- package/dist/models/Workflows.d.ts +9 -0
- package/dist/models/Workflows.js +31 -0
- package/package.json +1 -1
- package/src/data-source.ts +10 -0
- package/src/index.ts +9 -1
- package/src/models/AccommodationApprovalModel.ts +61 -0
- package/src/models/AccommodationAttachmentModel.ts +45 -0
- package/src/models/AccommodationChatModel.ts +47 -0
- package/src/models/AccommodationRequestModel.ts +140 -0
- package/src/models/AccommodationWorkflowModel.ts +76 -0
- package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
- package/src/models/AnnualIncrementRequestModel.ts +25 -25
- package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
- package/src/models/HrServiceRequestModel.ts +193 -193
- package/src/models/PerformanceCyclePeriodModel.ts +23 -23
- package/src/models/PerformanceGoalMasterModel.ts +27 -27
- package/src/models/PerformanceManagementRequestGoalModel.ts +36 -0
- package/src/models/PerformanceManagementRequestModel.ts +14 -35
- package/src/models/PromotionRequestModel.ts +11 -11
- package/src/models/ShiftAllowanceRequestModel.ts +3 -3
package/.env
CHANGED
package/dist/data-source.js
CHANGED
|
@@ -141,6 +141,11 @@ const ResidentialUnitRentalWorkflowModel_1 = require("./models/ResidentialUnitRe
|
|
|
141
141
|
const ResidentialUnitRentalApprovalModel_1 = require("./models/ResidentialUnitRentalApprovalModel");
|
|
142
142
|
const ResidentialUnitRentalChatModel_1 = require("./models/ResidentialUnitRentalChatModel");
|
|
143
143
|
const ResidentialUnitRentalAttachmentModel_1 = require("./models/ResidentialUnitRentalAttachmentModel");
|
|
144
|
+
const AccommodationRequestModel_1 = require("./models/AccommodationRequestModel");
|
|
145
|
+
const AccommodationWorkflowModel_1 = require("./models/AccommodationWorkflowModel");
|
|
146
|
+
const AccommodationApprovalModel_1 = require("./models/AccommodationApprovalModel");
|
|
147
|
+
const AccommodationChatModel_1 = require("./models/AccommodationChatModel");
|
|
148
|
+
const AccommodationAttachmentModel_1 = require("./models/AccommodationAttachmentModel");
|
|
144
149
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
145
150
|
type: 'postgres',
|
|
146
151
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -280,6 +285,11 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
280
285
|
ResidentialUnitRentalApprovalModel_1.ResidentialUnitRentalApproval,
|
|
281
286
|
ResidentialUnitRentalChatModel_1.ResidentialUnitRentalChat,
|
|
282
287
|
ResidentialUnitRentalAttachmentModel_1.ResidentialUnitRentalAttachment,
|
|
288
|
+
AccommodationRequestModel_1.AccommodationRequest,
|
|
289
|
+
AccommodationWorkflowModel_1.AccommodationWorkflow,
|
|
290
|
+
AccommodationApprovalModel_1.AccommodationApproval,
|
|
291
|
+
AccommodationChatModel_1.AccommodationChat,
|
|
292
|
+
AccommodationAttachmentModel_1.AccommodationAttachment,
|
|
283
293
|
DocumentModel_1.Document,
|
|
284
294
|
DocumentFolderModel_1.DocumentFolder,
|
|
285
295
|
DocumentTypeModel_1.DocumentType,
|
package/dist/index.d.ts
CHANGED
|
@@ -208,6 +208,7 @@ export * from './models/SkillsEnhancementRequestModel';
|
|
|
208
208
|
export { SkillsEnhancementRequestStatus } from './models/SkillsEnhancementRequestModel';
|
|
209
209
|
export * from './models/PerformanceManagementRequestModel';
|
|
210
210
|
export { PerformanceManagementRequestStatus, PerformanceManagementCyclePeriod } from './models/PerformanceManagementRequestModel';
|
|
211
|
+
export * from './models/PerformanceManagementRequestGoalModel';
|
|
211
212
|
export * from './models/PerformanceCyclePeriodModel';
|
|
212
213
|
export * from './models/PerformanceGoalMasterModel';
|
|
213
214
|
export * from './models/HumanResourceAnnualPlanningRequestModel';
|
|
@@ -225,6 +226,11 @@ export * from './models/ResidentialUnitRentalWorkflowModel';
|
|
|
225
226
|
export * from './models/ResidentialUnitRentalApprovalModel';
|
|
226
227
|
export * from './models/ResidentialUnitRentalChatModel';
|
|
227
228
|
export * from './models/ResidentialUnitRentalAttachmentModel';
|
|
229
|
+
export * from './models/AccommodationRequestModel';
|
|
230
|
+
export * from './models/AccommodationWorkflowModel';
|
|
231
|
+
export * from './models/AccommodationApprovalModel';
|
|
232
|
+
export * from './models/AccommodationChatModel';
|
|
233
|
+
export * from './models/AccommodationAttachmentModel';
|
|
228
234
|
export * from './models/HousingContractRenewalRequestModel';
|
|
229
235
|
export * from './models/HousingContractRenewalWorkflowModel';
|
|
230
236
|
export * from './models/HousingContractRenewalApprovalModel';
|
package/dist/index.js
CHANGED
|
@@ -317,6 +317,7 @@ __exportStar(require("./models/PerformanceManagementRequestModel"), exports);
|
|
|
317
317
|
var PerformanceManagementRequestModel_1 = require("./models/PerformanceManagementRequestModel");
|
|
318
318
|
Object.defineProperty(exports, "PerformanceManagementRequestStatus", { enumerable: true, get: function () { return PerformanceManagementRequestModel_1.PerformanceManagementRequestStatus; } });
|
|
319
319
|
Object.defineProperty(exports, "PerformanceManagementCyclePeriod", { enumerable: true, get: function () { return PerformanceManagementRequestModel_1.PerformanceManagementCyclePeriod; } });
|
|
320
|
+
__exportStar(require("./models/PerformanceManagementRequestGoalModel"), exports);
|
|
320
321
|
__exportStar(require("./models/PerformanceCyclePeriodModel"), exports);
|
|
321
322
|
__exportStar(require("./models/PerformanceGoalMasterModel"), exports);
|
|
322
323
|
// Human Resource Annual Planning Service
|
|
@@ -341,6 +342,12 @@ __exportStar(require("./models/ResidentialUnitRentalWorkflowModel"), exports);
|
|
|
341
342
|
__exportStar(require("./models/ResidentialUnitRentalApprovalModel"), exports);
|
|
342
343
|
__exportStar(require("./models/ResidentialUnitRentalChatModel"), exports);
|
|
343
344
|
__exportStar(require("./models/ResidentialUnitRentalAttachmentModel"), exports);
|
|
345
|
+
// Accommodation Request Service (Request for Accommodation in Muscat Governorate)
|
|
346
|
+
__exportStar(require("./models/AccommodationRequestModel"), exports);
|
|
347
|
+
__exportStar(require("./models/AccommodationWorkflowModel"), exports);
|
|
348
|
+
__exportStar(require("./models/AccommodationApprovalModel"), exports);
|
|
349
|
+
__exportStar(require("./models/AccommodationChatModel"), exports);
|
|
350
|
+
__exportStar(require("./models/AccommodationAttachmentModel"), exports);
|
|
344
351
|
// Housing Contract Renewal (CAA042)
|
|
345
352
|
__exportStar(require("./models/HousingContractRenewalRequestModel"), exports);
|
|
346
353
|
__exportStar(require("./models/HousingContractRenewalWorkflowModel"), exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum AccommodationApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected",
|
|
7
|
+
ASSIGNED = "Assigned"
|
|
8
|
+
}
|
|
9
|
+
export declare class AccommodationApproval extends BaseModel {
|
|
10
|
+
request_id: number;
|
|
11
|
+
service_id: number;
|
|
12
|
+
sub_service_id: number;
|
|
13
|
+
approver_role_id: number;
|
|
14
|
+
approver_user_id: number;
|
|
15
|
+
delegate_user_id: number;
|
|
16
|
+
approved_by: number;
|
|
17
|
+
department_id: number;
|
|
18
|
+
section_id: number;
|
|
19
|
+
level: number;
|
|
20
|
+
approval_status: AccommodationApprovalStatus;
|
|
21
|
+
comment: string;
|
|
22
|
+
created_by: number;
|
|
23
|
+
constructor();
|
|
24
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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.AccommodationApproval = exports.AccommodationApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var AccommodationApprovalStatus;
|
|
16
|
+
(function (AccommodationApprovalStatus) {
|
|
17
|
+
AccommodationApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
AccommodationApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
AccommodationApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
AccommodationApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
AccommodationApprovalStatus["ASSIGNED"] = "Assigned";
|
|
22
|
+
})(AccommodationApprovalStatus || (exports.AccommodationApprovalStatus = AccommodationApprovalStatus = {}));
|
|
23
|
+
let AccommodationApproval = class AccommodationApproval extends BaseModel_1.BaseModel {
|
|
24
|
+
constructor() {
|
|
25
|
+
super();
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.AccommodationApproval = AccommodationApproval;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], AccommodationApproval.prototype, "request_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], AccommodationApproval.prototype, "service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], AccommodationApproval.prototype, "sub_service_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], AccommodationApproval.prototype, "approver_role_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], AccommodationApproval.prototype, "approver_user_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], AccommodationApproval.prototype, "delegate_user_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], AccommodationApproval.prototype, "approved_by", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], AccommodationApproval.prototype, "department_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], AccommodationApproval.prototype, "section_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], AccommodationApproval.prototype, "level", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({
|
|
71
|
+
type: 'enum',
|
|
72
|
+
enum: AccommodationApprovalStatus,
|
|
73
|
+
default: AccommodationApprovalStatus.PENDING,
|
|
74
|
+
nullable: false
|
|
75
|
+
}),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], AccommodationApproval.prototype, "approval_status", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], AccommodationApproval.prototype, "comment", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
84
|
+
__metadata("design:type", Number)
|
|
85
|
+
], AccommodationApproval.prototype, "created_by", void 0);
|
|
86
|
+
exports.AccommodationApproval = AccommodationApproval = __decorate([
|
|
87
|
+
(0, typeorm_1.Entity)({ name: 'accommodation_approvals' }),
|
|
88
|
+
__metadata("design:paramtypes", [])
|
|
89
|
+
], AccommodationApproval);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare class AccommodationAttachment extends BaseModel {
|
|
3
|
+
request_id: number;
|
|
4
|
+
service_id: number;
|
|
5
|
+
sub_service_id: number;
|
|
6
|
+
file_name: string;
|
|
7
|
+
file_url: string;
|
|
8
|
+
file_type: string;
|
|
9
|
+
file_size: number;
|
|
10
|
+
mime_type: string;
|
|
11
|
+
file_path: string;
|
|
12
|
+
description: string;
|
|
13
|
+
uploaded_by: number;
|
|
14
|
+
created_by: number;
|
|
15
|
+
constructor();
|
|
16
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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.AccommodationAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let AccommodationAttachment = class AccommodationAttachment extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor() {
|
|
17
|
+
super();
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
exports.AccommodationAttachment = AccommodationAttachment;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], AccommodationAttachment.prototype, "request_id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], AccommodationAttachment.prototype, "service_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], AccommodationAttachment.prototype, "sub_service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], AccommodationAttachment.prototype, "file_name", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], AccommodationAttachment.prototype, "file_url", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: false }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], AccommodationAttachment.prototype, "file_type", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], AccommodationAttachment.prototype, "file_size", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], AccommodationAttachment.prototype, "mime_type", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], AccommodationAttachment.prototype, "file_path", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], AccommodationAttachment.prototype, "description", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], AccommodationAttachment.prototype, "uploaded_by", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], AccommodationAttachment.prototype, "created_by", void 0);
|
|
69
|
+
exports.AccommodationAttachment = AccommodationAttachment = __decorate([
|
|
70
|
+
(0, typeorm_1.Entity)({ name: 'accommodation_attachments' }),
|
|
71
|
+
__metadata("design:paramtypes", [])
|
|
72
|
+
], AccommodationAttachment);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum AccommodationMessageType {
|
|
3
|
+
text = "text",
|
|
4
|
+
image = "image",
|
|
5
|
+
video = "video",
|
|
6
|
+
file = "file",
|
|
7
|
+
link = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare class AccommodationChat extends BaseModel {
|
|
10
|
+
request_id: number;
|
|
11
|
+
service_id: number;
|
|
12
|
+
sub_service_id: number;
|
|
13
|
+
user_id: number;
|
|
14
|
+
message: string;
|
|
15
|
+
message_type: string;
|
|
16
|
+
is_internal: boolean;
|
|
17
|
+
approver_role_id: number;
|
|
18
|
+
status: string;
|
|
19
|
+
created_by: number;
|
|
20
|
+
constructor();
|
|
21
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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.AccommodationChat = exports.AccommodationMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var AccommodationMessageType;
|
|
16
|
+
(function (AccommodationMessageType) {
|
|
17
|
+
AccommodationMessageType["text"] = "text";
|
|
18
|
+
AccommodationMessageType["image"] = "image";
|
|
19
|
+
AccommodationMessageType["video"] = "video";
|
|
20
|
+
AccommodationMessageType["file"] = "file";
|
|
21
|
+
AccommodationMessageType["link"] = "link";
|
|
22
|
+
})(AccommodationMessageType || (exports.AccommodationMessageType = AccommodationMessageType = {}));
|
|
23
|
+
let AccommodationChat = class AccommodationChat extends BaseModel_1.BaseModel {
|
|
24
|
+
constructor() {
|
|
25
|
+
super();
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.AccommodationChat = AccommodationChat;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], AccommodationChat.prototype, "request_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], AccommodationChat.prototype, "service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], AccommodationChat.prototype, "sub_service_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], AccommodationChat.prototype, "user_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], AccommodationChat.prototype, "message", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: false }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], AccommodationChat.prototype, "message_type", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'boolean', nullable: false, default: false }),
|
|
55
|
+
__metadata("design:type", Boolean)
|
|
56
|
+
], AccommodationChat.prototype, "is_internal", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], AccommodationChat.prototype, "approver_role_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], AccommodationChat.prototype, "status", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], AccommodationChat.prototype, "created_by", void 0);
|
|
69
|
+
exports.AccommodationChat = AccommodationChat = __decorate([
|
|
70
|
+
(0, typeorm_1.Entity)({ name: 'accommodation_chat' }),
|
|
71
|
+
__metadata("design:paramtypes", [])
|
|
72
|
+
], AccommodationChat);
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum AccommodationRequestStatus {
|
|
3
|
+
Pending = "Pending",
|
|
4
|
+
Approved = "Approved",
|
|
5
|
+
Rejected = "Rejected",
|
|
6
|
+
InProgress = "In Progress",
|
|
7
|
+
Assigned = "Assigned",
|
|
8
|
+
Completed = "Completed"
|
|
9
|
+
}
|
|
10
|
+
export declare enum OfficialPurposeOfTravel {
|
|
11
|
+
Workshop = "Workshop",
|
|
12
|
+
Training = "Training",
|
|
13
|
+
DutyMission = "Duty Mission",
|
|
14
|
+
Assignment = "Assignment",
|
|
15
|
+
Other = "Other"
|
|
16
|
+
}
|
|
17
|
+
export declare enum AccommodationType {
|
|
18
|
+
Apartment = "Apartment",
|
|
19
|
+
Villa = "Villa",
|
|
20
|
+
SharedUnit = "Shared Unit"
|
|
21
|
+
}
|
|
22
|
+
export declare class AccommodationRequest extends BaseModel {
|
|
23
|
+
reference_number: string | null;
|
|
24
|
+
req_user_department_id: number | null;
|
|
25
|
+
req_user_section_id: number | null;
|
|
26
|
+
service_id: number;
|
|
27
|
+
sub_service_id: number;
|
|
28
|
+
workflow_execution_id: string | null;
|
|
29
|
+
user_id: number;
|
|
30
|
+
created_by: number;
|
|
31
|
+
official_purpose_of_travel: OfficialPurposeOfTravel;
|
|
32
|
+
other_purpose_specification: string | null;
|
|
33
|
+
accommodation_type_requested: AccommodationType;
|
|
34
|
+
start_date_of_stay: Date;
|
|
35
|
+
duration_of_days: number;
|
|
36
|
+
travel_from: string;
|
|
37
|
+
travel_to: string;
|
|
38
|
+
time_of_arrival: string;
|
|
39
|
+
travelling_from_region: string;
|
|
40
|
+
number_of_employees_travelling: number;
|
|
41
|
+
employee_details: Array<{
|
|
42
|
+
employee_id: string;
|
|
43
|
+
employee_name: string;
|
|
44
|
+
designation: string;
|
|
45
|
+
grade: string;
|
|
46
|
+
contact_number: string;
|
|
47
|
+
}>;
|
|
48
|
+
status: AccommodationRequestStatus;
|
|
49
|
+
description: string | null;
|
|
50
|
+
assigned_to_user_id: number | null;
|
|
51
|
+
approver_comment: string | null;
|
|
52
|
+
approved_by: number | null;
|
|
53
|
+
approved_at: Date | null;
|
|
54
|
+
constructor();
|
|
55
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
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.AccommodationRequest = exports.AccommodationType = exports.OfficialPurposeOfTravel = exports.AccommodationRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var AccommodationRequestStatus;
|
|
16
|
+
(function (AccommodationRequestStatus) {
|
|
17
|
+
AccommodationRequestStatus["Pending"] = "Pending";
|
|
18
|
+
AccommodationRequestStatus["Approved"] = "Approved";
|
|
19
|
+
AccommodationRequestStatus["Rejected"] = "Rejected";
|
|
20
|
+
AccommodationRequestStatus["InProgress"] = "In Progress";
|
|
21
|
+
AccommodationRequestStatus["Assigned"] = "Assigned";
|
|
22
|
+
AccommodationRequestStatus["Completed"] = "Completed";
|
|
23
|
+
})(AccommodationRequestStatus || (exports.AccommodationRequestStatus = AccommodationRequestStatus = {}));
|
|
24
|
+
var OfficialPurposeOfTravel;
|
|
25
|
+
(function (OfficialPurposeOfTravel) {
|
|
26
|
+
OfficialPurposeOfTravel["Workshop"] = "Workshop";
|
|
27
|
+
OfficialPurposeOfTravel["Training"] = "Training";
|
|
28
|
+
OfficialPurposeOfTravel["DutyMission"] = "Duty Mission";
|
|
29
|
+
OfficialPurposeOfTravel["Assignment"] = "Assignment";
|
|
30
|
+
OfficialPurposeOfTravel["Other"] = "Other";
|
|
31
|
+
})(OfficialPurposeOfTravel || (exports.OfficialPurposeOfTravel = OfficialPurposeOfTravel = {}));
|
|
32
|
+
var AccommodationType;
|
|
33
|
+
(function (AccommodationType) {
|
|
34
|
+
AccommodationType["Apartment"] = "Apartment";
|
|
35
|
+
AccommodationType["Villa"] = "Villa";
|
|
36
|
+
AccommodationType["SharedUnit"] = "Shared Unit";
|
|
37
|
+
})(AccommodationType || (exports.AccommodationType = AccommodationType = {}));
|
|
38
|
+
let AccommodationRequest = class AccommodationRequest extends BaseModel_1.BaseModel {
|
|
39
|
+
constructor() {
|
|
40
|
+
super();
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
exports.AccommodationRequest = AccommodationRequest;
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], AccommodationRequest.prototype, "reference_number", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], AccommodationRequest.prototype, "req_user_department_id", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
|
+
], AccommodationRequest.prototype, "req_user_section_id", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
58
|
+
__metadata("design:type", Number)
|
|
59
|
+
], AccommodationRequest.prototype, "service_id", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], AccommodationRequest.prototype, "sub_service_id", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
66
|
+
__metadata("design:type", Object)
|
|
67
|
+
], AccommodationRequest.prototype, "workflow_execution_id", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
70
|
+
__metadata("design:type", Number)
|
|
71
|
+
], AccommodationRequest.prototype, "user_id", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
74
|
+
__metadata("design:type", Number)
|
|
75
|
+
], AccommodationRequest.prototype, "created_by", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({
|
|
78
|
+
type: 'enum',
|
|
79
|
+
enum: OfficialPurposeOfTravel,
|
|
80
|
+
nullable: false
|
|
81
|
+
}),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], AccommodationRequest.prototype, "official_purpose_of_travel", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
86
|
+
__metadata("design:type", Object)
|
|
87
|
+
], AccommodationRequest.prototype, "other_purpose_specification", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.Column)({
|
|
90
|
+
type: 'enum',
|
|
91
|
+
enum: AccommodationType,
|
|
92
|
+
nullable: false
|
|
93
|
+
}),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], AccommodationRequest.prototype, "accommodation_type_requested", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
98
|
+
__metadata("design:type", Date)
|
|
99
|
+
], AccommodationRequest.prototype, "start_date_of_stay", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
102
|
+
__metadata("design:type", Number)
|
|
103
|
+
], AccommodationRequest.prototype, "duration_of_days", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
106
|
+
__metadata("design:type", String)
|
|
107
|
+
], AccommodationRequest.prototype, "travel_from", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
110
|
+
__metadata("design:type", String)
|
|
111
|
+
], AccommodationRequest.prototype, "travel_to", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: false }),
|
|
114
|
+
__metadata("design:type", String)
|
|
115
|
+
], AccommodationRequest.prototype, "time_of_arrival", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
118
|
+
__metadata("design:type", String)
|
|
119
|
+
], AccommodationRequest.prototype, "travelling_from_region", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
122
|
+
__metadata("design:type", Number)
|
|
123
|
+
], AccommodationRequest.prototype, "number_of_employees_travelling", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, typeorm_1.Column)({ type: 'json', nullable: false }),
|
|
126
|
+
__metadata("design:type", Array)
|
|
127
|
+
], AccommodationRequest.prototype, "employee_details", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, typeorm_1.Column)({
|
|
130
|
+
type: 'enum',
|
|
131
|
+
enum: AccommodationRequestStatus,
|
|
132
|
+
default: AccommodationRequestStatus.Pending,
|
|
133
|
+
nullable: false
|
|
134
|
+
}),
|
|
135
|
+
__metadata("design:type", String)
|
|
136
|
+
], AccommodationRequest.prototype, "status", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
139
|
+
__metadata("design:type", Object)
|
|
140
|
+
], AccommodationRequest.prototype, "description", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
143
|
+
__metadata("design:type", Object)
|
|
144
|
+
], AccommodationRequest.prototype, "assigned_to_user_id", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
147
|
+
__metadata("design:type", Object)
|
|
148
|
+
], AccommodationRequest.prototype, "approver_comment", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
151
|
+
__metadata("design:type", Object)
|
|
152
|
+
], AccommodationRequest.prototype, "approved_by", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
155
|
+
__metadata("design:type", Object)
|
|
156
|
+
], AccommodationRequest.prototype, "approved_at", void 0);
|
|
157
|
+
exports.AccommodationRequest = AccommodationRequest = __decorate([
|
|
158
|
+
(0, typeorm_1.Entity)({ name: 'accommodation_requests' }),
|
|
159
|
+
__metadata("design:paramtypes", [])
|
|
160
|
+
], AccommodationRequest);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum AccommodationWorkFlowStatus {
|
|
3
|
+
Pending = "Pending",
|
|
4
|
+
InProgress = "In Progress",
|
|
5
|
+
Approved = "Approved",
|
|
6
|
+
Rejected = "Rejected",
|
|
7
|
+
Completed = "Completed"
|
|
8
|
+
}
|
|
9
|
+
export declare class AccommodationWorkflow extends BaseModel {
|
|
10
|
+
request_id: number;
|
|
11
|
+
service_id: number;
|
|
12
|
+
sub_service_id: number;
|
|
13
|
+
workflow_definition_id: number;
|
|
14
|
+
current_level: number;
|
|
15
|
+
content: string;
|
|
16
|
+
status: AccommodationWorkFlowStatus;
|
|
17
|
+
step_order: number;
|
|
18
|
+
order: number;
|
|
19
|
+
user_id: number;
|
|
20
|
+
role_id: number;
|
|
21
|
+
approver_role_id: number;
|
|
22
|
+
approver_user_id: number;
|
|
23
|
+
approved_by: number;
|
|
24
|
+
department_id: number;
|
|
25
|
+
section_id: number;
|
|
26
|
+
workflow_data: string;
|
|
27
|
+
created_by: number;
|
|
28
|
+
constructor();
|
|
29
|
+
}
|