@platform-modules/civil-aviation-authority 2.0.61 → 2.0.80
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 +4 -4
- package/dist/models/ITHelpDeskModel.d.ts +3 -1
- package/dist/models/ITHelpDeskModel.js +12 -2
- package/package.json +1 -1
- package/src/models/ITHelpDeskModel.ts +11 -1
- package/dist/models/ITApprovalSettings.d.ts +0 -7
- package/dist/models/ITApprovalSettings.js +0 -40
- package/dist/models/ITServicesTypesMuscatModel.d.ts +0 -6
- package/dist/models/ITServicesTypesMuscatModel.js +0 -34
- package/dist/models/ITServicesTypesSalalahModel.d.ts +0 -6
- package/dist/models/ITServicesTypesSalalahModel.js +0 -34
- package/dist/models/Workflows.d.ts +0 -0
- package/dist/models/Workflows.js +0 -31
package/.env
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
DB_HOST=
|
|
2
|
-
DB_PORT=
|
|
3
|
-
DB_USER=
|
|
4
|
-
DB_PASS=
|
|
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
5
|
DB_NAME=CAA
|
|
@@ -21,11 +21,13 @@ export declare class ITHelpDeskRequests extends BaseModel {
|
|
|
21
21
|
description: string;
|
|
22
22
|
extn_num: string;
|
|
23
23
|
contact_num: string;
|
|
24
|
+
email: string | null;
|
|
25
|
+
request_type: string;
|
|
24
26
|
person_name: string | null;
|
|
25
27
|
person_contact_number: string | null;
|
|
26
28
|
request_date: Date;
|
|
27
29
|
user_id: number;
|
|
28
30
|
status: status;
|
|
29
31
|
workflow_execution_id: string | null;
|
|
30
|
-
constructor(service_id: number, sub_service_id: number, problem: string, request_for: ContactFor, description: string, extn_num: string, contact_num: string, request_date: Date, status: status, workflow_execution_id?: string, req_user_department_id?: number | null, req_user_section_id?: number | null, service_type_id?: number | null, person_name?: string | null, person_contact_number?: string | null);
|
|
32
|
+
constructor(service_id: number, sub_service_id: number, problem: string, request_for: ContactFor, description: string, extn_num: string, contact_num: string, request_date: Date, status: status, workflow_execution_id?: string, req_user_department_id?: number | null, req_user_section_id?: number | null, service_type_id?: number | null, person_name?: string | null, person_contact_number?: string | null, email?: string | null, request_type?: string);
|
|
31
33
|
}
|
|
@@ -26,7 +26,7 @@ var status;
|
|
|
26
26
|
status["REJECTED"] = "Rejected";
|
|
27
27
|
})(status || (exports.status = status = {}));
|
|
28
28
|
let ITHelpDeskRequests = class ITHelpDeskRequests extends BaseModel_1.BaseModel {
|
|
29
|
-
constructor(service_id, sub_service_id, problem, request_for, description, extn_num, contact_num, request_date, status, workflow_execution_id, req_user_department_id, req_user_section_id, service_type_id, person_name, person_contact_number) {
|
|
29
|
+
constructor(service_id, sub_service_id, problem, request_for, description, extn_num, contact_num, request_date, status, workflow_execution_id, req_user_department_id, req_user_section_id, service_type_id, person_name, person_contact_number, email, request_type) {
|
|
30
30
|
super();
|
|
31
31
|
this.service_id = service_id;
|
|
32
32
|
this.sub_service_id = sub_service_id;
|
|
@@ -35,6 +35,8 @@ let ITHelpDeskRequests = class ITHelpDeskRequests extends BaseModel_1.BaseModel
|
|
|
35
35
|
this.description = description;
|
|
36
36
|
this.extn_num = extn_num;
|
|
37
37
|
this.contact_num = contact_num;
|
|
38
|
+
this.email = email || null;
|
|
39
|
+
this.request_type = request_type || 'internal';
|
|
38
40
|
this.person_name = person_name || null;
|
|
39
41
|
this.person_contact_number = person_contact_number || null;
|
|
40
42
|
this.request_date = request_date;
|
|
@@ -91,6 +93,14 @@ __decorate([
|
|
|
91
93
|
(0, typeorm_1.Column)({ nullable: false }),
|
|
92
94
|
__metadata("design:type", String)
|
|
93
95
|
], ITHelpDeskRequests.prototype, "contact_num", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
98
|
+
__metadata("design:type", Object)
|
|
99
|
+
], ITHelpDeskRequests.prototype, "email", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 30, nullable: true }),
|
|
102
|
+
__metadata("design:type", String)
|
|
103
|
+
], ITHelpDeskRequests.prototype, "request_type", void 0);
|
|
94
104
|
__decorate([
|
|
95
105
|
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
96
106
|
__metadata("design:type", Object)
|
|
@@ -122,5 +132,5 @@ __decorate([
|
|
|
122
132
|
], ITHelpDeskRequests.prototype, "workflow_execution_id", void 0);
|
|
123
133
|
exports.ITHelpDeskRequests = ITHelpDeskRequests = __decorate([
|
|
124
134
|
(0, typeorm_1.Entity)({ name: 'it_help_desk_requests' }),
|
|
125
|
-
__metadata("design:paramtypes", [Number, Number, String, String, String, String, String, Date, String, String, Object, Object, Object, Object, Object])
|
|
135
|
+
__metadata("design:paramtypes", [Number, Number, String, String, String, String, String, Date, String, String, Object, Object, Object, Object, Object, Object, String])
|
|
126
136
|
], ITHelpDeskRequests);
|
package/package.json
CHANGED
|
@@ -50,6 +50,12 @@ export class ITHelpDeskRequests extends BaseModel {
|
|
|
50
50
|
@Column({ nullable: false })
|
|
51
51
|
contact_num: string;
|
|
52
52
|
|
|
53
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
54
|
+
email: string | null;
|
|
55
|
+
|
|
56
|
+
@Column({ type: 'varchar', length: 30, nullable: true })
|
|
57
|
+
request_type: string;
|
|
58
|
+
|
|
53
59
|
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
54
60
|
person_name: string | null;
|
|
55
61
|
|
|
@@ -89,7 +95,9 @@ export class ITHelpDeskRequests extends BaseModel {
|
|
|
89
95
|
req_user_section_id?: number | null,
|
|
90
96
|
service_type_id?: number | null,
|
|
91
97
|
person_name?: string | null,
|
|
92
|
-
person_contact_number?: string | null
|
|
98
|
+
person_contact_number?: string | null,
|
|
99
|
+
email?: string | null,
|
|
100
|
+
request_type?: string
|
|
93
101
|
) {
|
|
94
102
|
super();
|
|
95
103
|
this.service_id = service_id;
|
|
@@ -99,6 +107,8 @@ export class ITHelpDeskRequests extends BaseModel {
|
|
|
99
107
|
this.description = description;
|
|
100
108
|
this.extn_num = extn_num;
|
|
101
109
|
this.contact_num = contact_num;
|
|
110
|
+
this.email = email || null;
|
|
111
|
+
this.request_type = request_type || 'internal';
|
|
102
112
|
this.person_name = person_name || null;
|
|
103
113
|
this.person_contact_number = person_contact_number || null;
|
|
104
114
|
this.request_date = request_date;
|
|
@@ -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,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,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);
|
|
File without changes
|
package/dist/models/Workflows.js
DELETED
|
@@ -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
|
-
// }
|