@platform-modules/civil-aviation-authority 2.3.209 → 2.3.211
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 +10 -10
- package/dist/data-source.js +10 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +8 -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/MediaPublicationsApprovalModel.d.ts +22 -0
- package/dist/models/MediaPublicationsApprovalModel.js +84 -0
- package/dist/models/MediaPublicationsAttachmentModel.d.ts +11 -0
- package/dist/models/MediaPublicationsAttachmentModel.js +52 -0
- package/dist/models/MediaPublicationsChatModel.d.ts +18 -0
- package/dist/models/MediaPublicationsChatModel.js +65 -0
- package/dist/models/MediaPublicationsRequestModel.d.ts +40 -0
- package/dist/models/MediaPublicationsRequestModel.js +138 -0
- package/dist/models/MediaPublicationsWorkflowModel.d.ts +17 -0
- package/dist/models/MediaPublicationsWorkflowModel.js +67 -0
- package/dist/models/ServiceSlaApprovalModel.d.ts +19 -0
- package/dist/models/ServiceSlaApprovalModel.js +69 -0
- package/dist/models/SlaConfigModel.d.ts +22 -0
- package/dist/models/SlaConfigModel.js +67 -0
- 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 +11 -1
- package/src/models/AccommodationApprovalModel.ts +8 -8
- package/src/models/AccommodationRequestModel.ts +8 -8
- package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
- package/src/models/AnnualIncrementRequestModel.ts +25 -25
- 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/HrServiceRequestModel.ts +193 -193
- package/src/models/MediaPublicationsApprovalModel.ts +56 -0
- package/src/models/MediaPublicationsAttachmentModel.ts +29 -0
- package/src/models/MediaPublicationsChatModel.ts +42 -0
- package/src/models/MediaPublicationsRequestModel.ts +102 -0
- package/src/models/MediaPublicationsWorkflowModel.ts +43 -0
- 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/RespondToEnquiriesRequestModel.ts +31 -31
- package/src/models/ServiceSlaApprovalModel.ts +44 -0
- package/src/models/SkillsEnhancementRequestModel.ts +17 -17
- package/src/models/SlaConfigModel.ts +44 -0
- package/src/models/UserSkillModel.ts +56 -56
package/.env
CHANGED
|
@@ -1,12 +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
|
|
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
6
|
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
@@ -216,6 +216,11 @@ const MaintenanceApprovalModel_1 = require("./models/MaintenanceApprovalModel");
|
|
|
216
216
|
const MaintenanceAttachmentModel_1 = require("./models/MaintenanceAttachmentModel");
|
|
217
217
|
const MaintenanceChatModel_1 = require("./models/MaintenanceChatModel");
|
|
218
218
|
const MaintenanceWorkflowModel_1 = require("./models/MaintenanceWorkflowModel");
|
|
219
|
+
const MediaPublicationsRequestModel_1 = require("./models/MediaPublicationsRequestModel");
|
|
220
|
+
const MediaPublicationsApprovalModel_1 = require("./models/MediaPublicationsApprovalModel");
|
|
221
|
+
const MediaPublicationsAttachmentModel_1 = require("./models/MediaPublicationsAttachmentModel");
|
|
222
|
+
const MediaPublicationsChatModel_1 = require("./models/MediaPublicationsChatModel");
|
|
223
|
+
const MediaPublicationsWorkflowModel_1 = require("./models/MediaPublicationsWorkflowModel");
|
|
219
224
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
220
225
|
type: 'postgres',
|
|
221
226
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -436,5 +441,10 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
436
441
|
MaintenanceAttachmentModel_1.MaintenanceAttachment,
|
|
437
442
|
MaintenanceChatModel_1.MaintenanceChat,
|
|
438
443
|
MaintenanceWorkflowModel_1.MaintenanceWorkFlow,
|
|
444
|
+
MediaPublicationsRequestModel_1.MediaPublicationsRequests,
|
|
445
|
+
MediaPublicationsApprovalModel_1.MediaPublicationsApprovalDetails,
|
|
446
|
+
MediaPublicationsAttachmentModel_1.MediaPublicationsAttachment,
|
|
447
|
+
MediaPublicationsChatModel_1.MediaPublicationsChat,
|
|
448
|
+
MediaPublicationsWorkflowModel_1.MediaPublicationsWorkFlow,
|
|
439
449
|
],
|
|
440
450
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -319,6 +319,11 @@ export * from './models/MaintenanceApprovalModel';
|
|
|
319
319
|
export * from './models/MaintenanceAttachmentModel';
|
|
320
320
|
export * from './models/MaintenanceChatModel';
|
|
321
321
|
export * from './models/MaintenanceWorkflowModel';
|
|
322
|
+
export * from './models/MediaPublicationsRequestModel';
|
|
323
|
+
export * from './models/MediaPublicationsApprovalModel';
|
|
324
|
+
export * from './models/MediaPublicationsAttachmentModel';
|
|
325
|
+
export * from './models/MediaPublicationsChatModel';
|
|
326
|
+
export * from './models/MediaPublicationsWorkflowModel';
|
|
322
327
|
export * from './models/LegalConsultationRequestModel';
|
|
323
328
|
export * from './models/LegalConsultationWorkflowModel';
|
|
324
329
|
export * from './models/LegalConsultationApprovalModel';
|
|
@@ -364,3 +369,5 @@ export { RespondToEnquiriesRequestAttachment } from './models/RespondToEnquiries
|
|
|
364
369
|
export * from './models/RequestATenderRequestModel';
|
|
365
370
|
export * from './models/RequestTenderAnalysisRequestModel';
|
|
366
371
|
export * from './models/ContractServiceRequestModel';
|
|
372
|
+
export * from './models/SlaConfigModel';
|
|
373
|
+
export * from './models/ServiceSlaApprovalModel';
|
package/dist/index.js
CHANGED
|
@@ -482,6 +482,12 @@ __exportStar(require("./models/MaintenanceApprovalModel"), exports);
|
|
|
482
482
|
__exportStar(require("./models/MaintenanceAttachmentModel"), exports);
|
|
483
483
|
__exportStar(require("./models/MaintenanceChatModel"), exports);
|
|
484
484
|
__exportStar(require("./models/MaintenanceWorkflowModel"), exports);
|
|
485
|
+
// Media Publications (Asset Affairs)
|
|
486
|
+
__exportStar(require("./models/MediaPublicationsRequestModel"), exports);
|
|
487
|
+
__exportStar(require("./models/MediaPublicationsApprovalModel"), exports);
|
|
488
|
+
__exportStar(require("./models/MediaPublicationsAttachmentModel"), exports);
|
|
489
|
+
__exportStar(require("./models/MediaPublicationsChatModel"), exports);
|
|
490
|
+
__exportStar(require("./models/MediaPublicationsWorkflowModel"), exports);
|
|
485
491
|
// Legal Consultation — Review of Administrative Decisions
|
|
486
492
|
__exportStar(require("./models/LegalConsultationRequestModel"), exports);
|
|
487
493
|
__exportStar(require("./models/LegalConsultationWorkflowModel"), exports);
|
|
@@ -542,3 +548,5 @@ Object.defineProperty(exports, "RespondToEnquiriesRequestAttachment", { enumerab
|
|
|
542
548
|
__exportStar(require("./models/RequestATenderRequestModel"), exports);
|
|
543
549
|
__exportStar(require("./models/RequestTenderAnalysisRequestModel"), exports);
|
|
544
550
|
__exportStar(require("./models/ContractServiceRequestModel"), exports);
|
|
551
|
+
__exportStar(require("./models/SlaConfigModel"), exports);
|
|
552
|
+
__exportStar(require("./models/ServiceSlaApprovalModel"), exports);
|
|
@@ -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,22 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum MediaPublicationsApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class MediaPublicationsApprovalDetails 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: MediaPublicationsApprovalStatus;
|
|
21
|
+
is_allowed: boolean;
|
|
22
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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.MediaPublicationsApprovalDetails = exports.MediaPublicationsApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var MediaPublicationsApprovalStatus;
|
|
16
|
+
(function (MediaPublicationsApprovalStatus) {
|
|
17
|
+
MediaPublicationsApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
MediaPublicationsApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
MediaPublicationsApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
MediaPublicationsApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(MediaPublicationsApprovalStatus || (exports.MediaPublicationsApprovalStatus = MediaPublicationsApprovalStatus = {}));
|
|
22
|
+
let MediaPublicationsApprovalDetails = class MediaPublicationsApprovalDetails extends BaseModel_1.BaseModel {
|
|
23
|
+
};
|
|
24
|
+
exports.MediaPublicationsApprovalDetails = MediaPublicationsApprovalDetails;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], MediaPublicationsApprovalDetails.prototype, "request_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], MediaPublicationsApprovalDetails.prototype, "service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], MediaPublicationsApprovalDetails.prototype, "sub_service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], MediaPublicationsApprovalDetails.prototype, "level", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], MediaPublicationsApprovalDetails.prototype, "approver_role_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], MediaPublicationsApprovalDetails.prototype, "department_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], MediaPublicationsApprovalDetails.prototype, "section_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], MediaPublicationsApprovalDetails.prototype, "approver_user_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], MediaPublicationsApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], MediaPublicationsApprovalDetails.prototype, "approved_by", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true, default: '' }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], MediaPublicationsApprovalDetails.prototype, "comment", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({
|
|
71
|
+
type: 'enum',
|
|
72
|
+
enum: MediaPublicationsApprovalStatus,
|
|
73
|
+
default: MediaPublicationsApprovalStatus.PENDING,
|
|
74
|
+
nullable: false,
|
|
75
|
+
}),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], MediaPublicationsApprovalDetails.prototype, "approval_status", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
80
|
+
__metadata("design:type", Boolean)
|
|
81
|
+
], MediaPublicationsApprovalDetails.prototype, "is_allowed", void 0);
|
|
82
|
+
exports.MediaPublicationsApprovalDetails = MediaPublicationsApprovalDetails = __decorate([
|
|
83
|
+
(0, typeorm_1.Entity)({ name: 'media_publications_approvals' })
|
|
84
|
+
], MediaPublicationsApprovalDetails);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class MediaPublicationsAttachment 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
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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.MediaPublicationsAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let MediaPublicationsAttachment = class MediaPublicationsAttachment extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.MediaPublicationsAttachment = MediaPublicationsAttachment;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], MediaPublicationsAttachment.prototype, "request_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], MediaPublicationsAttachment.prototype, "service_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], MediaPublicationsAttachment.prototype, "sub_service_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], MediaPublicationsAttachment.prototype, "file_url", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], MediaPublicationsAttachment.prototype, "file_name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], MediaPublicationsAttachment.prototype, "file_type", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], MediaPublicationsAttachment.prototype, "file_size", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], MediaPublicationsAttachment.prototype, "chat_id", void 0);
|
|
50
|
+
exports.MediaPublicationsAttachment = MediaPublicationsAttachment = __decorate([
|
|
51
|
+
(0, typeorm_1.Entity)({ name: 'media_publications_attachments' })
|
|
52
|
+
], MediaPublicationsAttachment);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum MediaPublicationsMessageType {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
LINK = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare class MediaPublicationsChat extends BaseModel {
|
|
10
|
+
request_id: number;
|
|
11
|
+
service_id: number | null;
|
|
12
|
+
sub_service_id: number | null;
|
|
13
|
+
user_id: number;
|
|
14
|
+
role_id: number;
|
|
15
|
+
message: string;
|
|
16
|
+
messageType: MediaPublicationsMessageType;
|
|
17
|
+
status: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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.MediaPublicationsChat = exports.MediaPublicationsMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var MediaPublicationsMessageType;
|
|
16
|
+
(function (MediaPublicationsMessageType) {
|
|
17
|
+
MediaPublicationsMessageType["TEXT"] = "text";
|
|
18
|
+
MediaPublicationsMessageType["IMAGE"] = "image";
|
|
19
|
+
MediaPublicationsMessageType["VIDEO"] = "video";
|
|
20
|
+
MediaPublicationsMessageType["FILE"] = "file";
|
|
21
|
+
MediaPublicationsMessageType["LINK"] = "link";
|
|
22
|
+
})(MediaPublicationsMessageType || (exports.MediaPublicationsMessageType = MediaPublicationsMessageType = {}));
|
|
23
|
+
let MediaPublicationsChat = class MediaPublicationsChat extends BaseModel_1.BaseModel {
|
|
24
|
+
};
|
|
25
|
+
exports.MediaPublicationsChat = MediaPublicationsChat;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], MediaPublicationsChat.prototype, "request_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], MediaPublicationsChat.prototype, "service_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], MediaPublicationsChat.prototype, "sub_service_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], MediaPublicationsChat.prototype, "user_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], MediaPublicationsChat.prototype, "role_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], MediaPublicationsChat.prototype, "message", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({
|
|
52
|
+
type: 'enum',
|
|
53
|
+
enum: MediaPublicationsMessageType,
|
|
54
|
+
default: MediaPublicationsMessageType.TEXT,
|
|
55
|
+
nullable: false,
|
|
56
|
+
}),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], MediaPublicationsChat.prototype, "messageType", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], MediaPublicationsChat.prototype, "status", void 0);
|
|
63
|
+
exports.MediaPublicationsChat = MediaPublicationsChat = __decorate([
|
|
64
|
+
(0, typeorm_1.Entity)({ name: 'media_publications_chats' })
|
|
65
|
+
], MediaPublicationsChat);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum MediaPublicationsRequestType {
|
|
3
|
+
NORMAL = "Normal",
|
|
4
|
+
URGENT = "Urgent"
|
|
5
|
+
}
|
|
6
|
+
export declare enum MediaPublicationsEventType {
|
|
7
|
+
LOCAL_INTERNAL = "Local Internal Event",
|
|
8
|
+
LOCAL_EXTERNAL = "Local External Event",
|
|
9
|
+
REGIONAL_OR_INTERNATIONAL = "Regional or International Event"
|
|
10
|
+
}
|
|
11
|
+
export declare enum MediaPublicationsRequestStatus {
|
|
12
|
+
PENDING = "Pending",
|
|
13
|
+
ASSIGNED = "Assigned",
|
|
14
|
+
IN_PROGRESS = "In Progress",
|
|
15
|
+
APPROVED = "Approved",
|
|
16
|
+
REJECTED = "Rejected"
|
|
17
|
+
}
|
|
18
|
+
export declare class MediaPublicationsRequests extends BaseModel {
|
|
19
|
+
req_user_department_id: number | null;
|
|
20
|
+
req_user_section_id: number | null;
|
|
21
|
+
service_id: number;
|
|
22
|
+
sub_service_id: number;
|
|
23
|
+
user_id: number;
|
|
24
|
+
request_submission_date: Date;
|
|
25
|
+
requestor_name: string | null;
|
|
26
|
+
requestor_department: string | null;
|
|
27
|
+
requestor_designation: string | null;
|
|
28
|
+
contact_number: string | null;
|
|
29
|
+
email: string | null;
|
|
30
|
+
request_type: MediaPublicationsRequestType;
|
|
31
|
+
item_code: string;
|
|
32
|
+
description: string;
|
|
33
|
+
cost: number;
|
|
34
|
+
publication_date: Date;
|
|
35
|
+
event_type: MediaPublicationsEventType;
|
|
36
|
+
quantity: number | null;
|
|
37
|
+
unit_price: number | null;
|
|
38
|
+
status: MediaPublicationsRequestStatus;
|
|
39
|
+
workflow_execution_id: string | null;
|
|
40
|
+
}
|