@platform-modules/civil-aviation-authority 2.2.310 → 2.2.311

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.
@@ -0,0 +1,68 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ export enum TrainingWorkFlowStatus {
5
+ COMPLETED = "Completed",
6
+ NOT_YET_STARTED = "Not Yet Started",
7
+ PENDING = "Pending",
8
+ REJECTED = "Rejected"
9
+ }
10
+
11
+ @Entity({ name: "training_workflows" })
12
+ export class TrainingWorkFlow extends BaseModel {
13
+ @Column({ type: "int", nullable: false })
14
+ request_id: number;
15
+
16
+ @Column({ type: "integer", nullable: true })
17
+ service_id: number | null;
18
+
19
+ @Column({ type: "integer", nullable: true })
20
+ sub_service_id: number | null;
21
+
22
+ @Column({ type: "int", nullable: true })
23
+ order: number | null;
24
+
25
+ @Column({ type: "varchar", length: 255, nullable: false })
26
+ content: string;
27
+
28
+ @Column({ type: "integer", nullable: true })
29
+ approver_role_id: number | null;
30
+
31
+ @Column({ type: "integer", nullable: true })
32
+ approver_user_id: number | null;
33
+
34
+ @Column({ type: "integer", nullable: true })
35
+ approved_by: number | null;
36
+
37
+ @Column({
38
+ type: "enum",
39
+ enum: TrainingWorkFlowStatus,
40
+ default: TrainingWorkFlowStatus.PENDING,
41
+ nullable: false
42
+ })
43
+ status: TrainingWorkFlowStatus;
44
+
45
+ constructor(
46
+ request_id: number,
47
+ content: string,
48
+ status: TrainingWorkFlowStatus,
49
+ service_id?: number | null,
50
+ sub_service_id?: number | null,
51
+ order?: number,
52
+ approver_role_id?: number | null,
53
+ approver_user_id?: number | null,
54
+ approved_by?: number | null
55
+ ) {
56
+ super();
57
+ this.request_id = request_id;
58
+ this.service_id = service_id || null;
59
+ this.sub_service_id = sub_service_id || null;
60
+ this.content = content;
61
+ this.status = status;
62
+ this.order = order || null;
63
+ this.approver_role_id = approver_role_id || null;
64
+ this.approver_user_id = approver_user_id || null;
65
+ this.approved_by = approved_by || null;
66
+ }
67
+ }
68
+
@@ -1,7 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class ITApprovalSettings extends BaseModel {
3
- level: number;
4
- approval_role_id: number;
5
- workflow_id: number;
6
- constructor(level: number, approval_role_id: number, workflow_id: number);
7
- }
@@ -1,40 +0,0 @@
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);
@@ -1,6 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class ITServicesTypesMuscat extends BaseModel {
3
- name: string;
4
- name_in_arabic: string;
5
- constructor(name: string, name_in_arabic: string);
6
- }
@@ -1,34 +0,0 @@
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);
@@ -1,6 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class ITServicesTypesSalalah extends BaseModel {
3
- name: string;
4
- name_in_arabic: string;
5
- constructor(name: string, name_in_arabic: string);
6
- }
@@ -1,34 +0,0 @@
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);
@@ -1,9 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class Workflows extends BaseModel {
3
- name: string;
4
- service_id: number;
5
- sub_service_id: number;
6
- request_for: string;
7
- levels: number;
8
- constructor(name: string, service_id: number, sub_service_id: number, request_for: string, levels: number);
9
- }
@@ -1,31 +0,0 @@
1
- "use strict";
2
- // import { Column, Entity, Unique } from "typeorm";
3
- // import { BaseModel } from './BaseModel';
4
- // @Entity({ name: 'workflows' })
5
- // @Unique(['service_id', 'sub_service_id', 'request_for'])
6
- // export class Workflows extends BaseModel {
7
- // @Column({ type: 'varchar', length: 100, nullable: false })
8
- // name: string;
9
- // @Column({ type: 'bigint', nullable: false })
10
- // service_id: number;
11
- // @Column({ type: 'bigint', nullable: false })
12
- // sub_service_id: number;
13
- // @Column({ type: 'varchar', length: 20, nullable: false })
14
- // request_for: string; // 'Self' | 'Behalf of' | 'Internal'
15
- // @Column({ type: 'int', nullable: false })
16
- // levels: number;
17
- // constructor(
18
- // name: string,
19
- // service_id: number,
20
- // sub_service_id: number,
21
- // request_for: string,
22
- // levels: number,
23
- // ) {
24
- // super();
25
- // this.name = name;
26
- // this.service_id = service_id;
27
- // this.sub_service_id = sub_service_id;
28
- // this.request_for = request_for;
29
- // this.levels = levels;
30
- // }
31
- // }