@platform-modules/civil-aviation-authority 2.3.14 → 2.3.15
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 +7 -12
- package/dist/data-source.js +1 -11
- package/dist/index.d.ts +8 -11
- package/dist/index.js +9 -19
- package/package.json +1 -1
- package/src/data-source.ts +10 -0
- package/src/index.ts +24 -0
- package/src/models/ITRequestChatModel.ts +62 -62
- package/src/models/ItApprovalsModel.ts +84 -84
- package/src/models/ItWorkflowModel.ts +55 -55
- package/src/models/RequestForCoverageApprovalModel.ts +95 -0
- package/src/models/RequestForCoverageAttachmentModel.ts +56 -0
- package/src/models/RequestForCoverageChatModel.ts +76 -0
- package/src/models/RequestForCoverageRequestModel.ts +169 -0
- package/src/models/RequestForCoverageWorkflowModel.ts +68 -0
- package/dist/models/AssignTasksEmpApprovalModel.d.ts +0 -23
- package/dist/models/AssignTasksEmpApprovalModel.js +0 -96
- package/dist/models/AssignTasksEmpAttachmentModel.d.ts +0 -12
- package/dist/models/AssignTasksEmpAttachmentModel.js +0 -64
- package/dist/models/AssignTasksEmpChatModel.d.ts +0 -19
- package/dist/models/AssignTasksEmpChatModel.js +0 -77
- package/dist/models/AssignTasksEmpRequestModel.d.ts +0 -25
- package/dist/models/AssignTasksEmpRequestModel.js +0 -100
- package/dist/models/AssignTasksEmpWorkflowModel.d.ts +0 -18
- package/dist/models/AssignTasksEmpWorkflowModel.js +0 -76
- 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
|
@@ -1,77 +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.AssignTasksEmpRequestChat = exports.AssignTasksEmpMessageType = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var AssignTasksEmpMessageType;
|
|
16
|
-
(function (AssignTasksEmpMessageType) {
|
|
17
|
-
AssignTasksEmpMessageType["TEXT"] = "text";
|
|
18
|
-
AssignTasksEmpMessageType["IMAGE"] = "image";
|
|
19
|
-
AssignTasksEmpMessageType["VIDEO"] = "video";
|
|
20
|
-
AssignTasksEmpMessageType["FILE"] = "file";
|
|
21
|
-
AssignTasksEmpMessageType["LINK"] = "link";
|
|
22
|
-
})(AssignTasksEmpMessageType || (exports.AssignTasksEmpMessageType = AssignTasksEmpMessageType = {}));
|
|
23
|
-
let AssignTasksEmpRequestChat = class AssignTasksEmpRequestChat extends BaseModel_1.BaseModel {
|
|
24
|
-
constructor(request_id, user_id, role_id, message, service_id, sub_service_id, messageType, status) {
|
|
25
|
-
super();
|
|
26
|
-
this.request_id = request_id;
|
|
27
|
-
this.service_id = service_id || null;
|
|
28
|
-
this.sub_service_id = sub_service_id || null;
|
|
29
|
-
this.user_id = user_id;
|
|
30
|
-
this.role_id = role_id;
|
|
31
|
-
this.message = message;
|
|
32
|
-
this.messageType = messageType || AssignTasksEmpMessageType.TEXT;
|
|
33
|
-
this.status = status || null;
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
exports.AssignTasksEmpRequestChat = AssignTasksEmpRequestChat;
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
39
|
-
__metadata("design:type", Number)
|
|
40
|
-
], AssignTasksEmpRequestChat.prototype, "request_id", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
-
__metadata("design:type", Object)
|
|
44
|
-
], AssignTasksEmpRequestChat.prototype, "service_id", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
-
__metadata("design:type", Object)
|
|
48
|
-
], AssignTasksEmpRequestChat.prototype, "sub_service_id", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
51
|
-
__metadata("design:type", Number)
|
|
52
|
-
], AssignTasksEmpRequestChat.prototype, "user_id", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
55
|
-
__metadata("design:type", Number)
|
|
56
|
-
], AssignTasksEmpRequestChat.prototype, "role_id", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
59
|
-
__metadata("design:type", String)
|
|
60
|
-
], AssignTasksEmpRequestChat.prototype, "message", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({
|
|
63
|
-
type: 'enum',
|
|
64
|
-
enum: AssignTasksEmpMessageType,
|
|
65
|
-
default: AssignTasksEmpMessageType.TEXT,
|
|
66
|
-
nullable: false
|
|
67
|
-
}),
|
|
68
|
-
__metadata("design:type", String)
|
|
69
|
-
], AssignTasksEmpRequestChat.prototype, "messageType", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
72
|
-
__metadata("design:type", Object)
|
|
73
|
-
], AssignTasksEmpRequestChat.prototype, "status", void 0);
|
|
74
|
-
exports.AssignTasksEmpRequestChat = AssignTasksEmpRequestChat = __decorate([
|
|
75
|
-
(0, typeorm_1.Entity)({ name: 'assign_tasks_emp_chats' }),
|
|
76
|
-
__metadata("design:paramtypes", [Number, Number, Number, String, Number, Number, String, Object])
|
|
77
|
-
], AssignTasksEmpRequestChat);
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum AssignTasksEmpPriority {
|
|
3
|
-
HIGH = "High",
|
|
4
|
-
MEDIUM = "Medium",
|
|
5
|
-
LOW = "Low"
|
|
6
|
-
}
|
|
7
|
-
export declare enum AssignTasksEmpStatus {
|
|
8
|
-
ASSIGNED = "Assigned",
|
|
9
|
-
IN_PROGRESS = "In Progress",
|
|
10
|
-
APPROVED = "Completed"
|
|
11
|
-
}
|
|
12
|
-
export declare class AssignTasksEmpRequests extends BaseModel {
|
|
13
|
-
req_user_department_id: number | null;
|
|
14
|
-
req_user_section_id: number | null;
|
|
15
|
-
service_id: number;
|
|
16
|
-
sub_service_id: number;
|
|
17
|
-
user_id: number;
|
|
18
|
-
task_title: string;
|
|
19
|
-
task_description: string;
|
|
20
|
-
priority: AssignTasksEmpPriority;
|
|
21
|
-
completion_date: Date | null;
|
|
22
|
-
status: AssignTasksEmpStatus;
|
|
23
|
-
workflow_execution_id: string | null;
|
|
24
|
-
constructor(req_user_department_id: number | null, req_user_section_id: number | null, service_id: number, sub_service_id: number, user_id: number, task_title: string, task_description: string, priority: AssignTasksEmpPriority, status: AssignTasksEmpStatus, completion_date?: Date | null, workflow_execution_id?: string | null);
|
|
25
|
-
}
|
|
@@ -1,100 +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.AssignTasksEmpRequests = exports.AssignTasksEmpStatus = exports.AssignTasksEmpPriority = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var AssignTasksEmpPriority;
|
|
16
|
-
(function (AssignTasksEmpPriority) {
|
|
17
|
-
AssignTasksEmpPriority["HIGH"] = "High";
|
|
18
|
-
AssignTasksEmpPriority["MEDIUM"] = "Medium";
|
|
19
|
-
AssignTasksEmpPriority["LOW"] = "Low";
|
|
20
|
-
})(AssignTasksEmpPriority || (exports.AssignTasksEmpPriority = AssignTasksEmpPriority = {}));
|
|
21
|
-
var AssignTasksEmpStatus;
|
|
22
|
-
(function (AssignTasksEmpStatus) {
|
|
23
|
-
AssignTasksEmpStatus["ASSIGNED"] = "Assigned";
|
|
24
|
-
AssignTasksEmpStatus["IN_PROGRESS"] = "In Progress";
|
|
25
|
-
AssignTasksEmpStatus["APPROVED"] = "Completed";
|
|
26
|
-
})(AssignTasksEmpStatus || (exports.AssignTasksEmpStatus = AssignTasksEmpStatus = {}));
|
|
27
|
-
let AssignTasksEmpRequests = class AssignTasksEmpRequests extends BaseModel_1.BaseModel {
|
|
28
|
-
constructor(req_user_department_id, req_user_section_id, service_id, sub_service_id, user_id, task_title, task_description, priority, status, completion_date, workflow_execution_id) {
|
|
29
|
-
super();
|
|
30
|
-
this.req_user_department_id = req_user_department_id ?? null;
|
|
31
|
-
this.req_user_section_id = req_user_section_id ?? null;
|
|
32
|
-
this.service_id = service_id;
|
|
33
|
-
this.sub_service_id = sub_service_id;
|
|
34
|
-
this.user_id = user_id;
|
|
35
|
-
this.task_title = task_title;
|
|
36
|
-
this.task_description = task_description;
|
|
37
|
-
this.priority = priority;
|
|
38
|
-
this.completion_date = completion_date ?? null;
|
|
39
|
-
this.status = status;
|
|
40
|
-
this.workflow_execution_id = workflow_execution_id ?? null;
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
exports.AssignTasksEmpRequests = AssignTasksEmpRequests;
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
46
|
-
__metadata("design:type", Object)
|
|
47
|
-
], AssignTasksEmpRequests.prototype, "req_user_department_id", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
50
|
-
__metadata("design:type", Object)
|
|
51
|
-
], AssignTasksEmpRequests.prototype, "req_user_section_id", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
54
|
-
__metadata("design:type", Number)
|
|
55
|
-
], AssignTasksEmpRequests.prototype, "service_id", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
58
|
-
__metadata("design:type", Number)
|
|
59
|
-
], AssignTasksEmpRequests.prototype, "sub_service_id", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
62
|
-
__metadata("design:type", Number)
|
|
63
|
-
], AssignTasksEmpRequests.prototype, "user_id", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
66
|
-
__metadata("design:type", String)
|
|
67
|
-
], AssignTasksEmpRequests.prototype, "task_title", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
70
|
-
__metadata("design:type", String)
|
|
71
|
-
], AssignTasksEmpRequests.prototype, "task_description", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, typeorm_1.Column)({
|
|
74
|
-
type: "enum",
|
|
75
|
-
enum: AssignTasksEmpPriority,
|
|
76
|
-
nullable: false,
|
|
77
|
-
}),
|
|
78
|
-
__metadata("design:type", String)
|
|
79
|
-
], AssignTasksEmpRequests.prototype, "priority", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, typeorm_1.Column)({ type: "date", nullable: true }),
|
|
82
|
-
__metadata("design:type", Object)
|
|
83
|
-
], AssignTasksEmpRequests.prototype, "completion_date", void 0);
|
|
84
|
-
__decorate([
|
|
85
|
-
(0, typeorm_1.Column)({
|
|
86
|
-
type: "enum",
|
|
87
|
-
enum: AssignTasksEmpStatus,
|
|
88
|
-
default: AssignTasksEmpStatus.ASSIGNED,
|
|
89
|
-
nullable: false,
|
|
90
|
-
}),
|
|
91
|
-
__metadata("design:type", String)
|
|
92
|
-
], AssignTasksEmpRequests.prototype, "status", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
95
|
-
__metadata("design:type", Object)
|
|
96
|
-
], AssignTasksEmpRequests.prototype, "workflow_execution_id", void 0);
|
|
97
|
-
exports.AssignTasksEmpRequests = AssignTasksEmpRequests = __decorate([
|
|
98
|
-
(0, typeorm_1.Entity)({ name: 'assign_tasks_emp_requests' }),
|
|
99
|
-
__metadata("design:paramtypes", [Object, Object, Number, Number, Number, String, String, String, String, Object, Object])
|
|
100
|
-
], AssignTasksEmpRequests);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum AssignTasksEmpWorkFlowStatus {
|
|
3
|
-
COMPLETED = "Completed",
|
|
4
|
-
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
-
PENDING = "Pending"
|
|
6
|
-
}
|
|
7
|
-
export declare class AssignTasksEmpWorkFlow extends BaseModel {
|
|
8
|
-
request_id: number;
|
|
9
|
-
service_id: number | null;
|
|
10
|
-
sub_service_id: number | null;
|
|
11
|
-
content: string;
|
|
12
|
-
status: AssignTasksEmpWorkFlowStatus;
|
|
13
|
-
user_id: number | null;
|
|
14
|
-
role_id: number | null;
|
|
15
|
-
department_id: number | null;
|
|
16
|
-
section_id: number | null;
|
|
17
|
-
constructor(request_id: number, content: string, status: AssignTasksEmpWorkFlowStatus, service_id?: number, sub_service_id?: number, user_id?: number, role_id?: number, department_id?: number, section_id?: number);
|
|
18
|
-
}
|
|
@@ -1,76 +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.AssignTasksEmpWorkFlow = exports.AssignTasksEmpWorkFlowStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var AssignTasksEmpWorkFlowStatus;
|
|
16
|
-
(function (AssignTasksEmpWorkFlowStatus) {
|
|
17
|
-
AssignTasksEmpWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
-
AssignTasksEmpWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
-
AssignTasksEmpWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
-
})(AssignTasksEmpWorkFlowStatus || (exports.AssignTasksEmpWorkFlowStatus = AssignTasksEmpWorkFlowStatus = {}));
|
|
21
|
-
//This model is used to store the assign tasks workflow status and activity logs
|
|
22
|
-
let AssignTasksEmpWorkFlow = class AssignTasksEmpWorkFlow extends BaseModel_1.BaseModel {
|
|
23
|
-
constructor(request_id, content, status, service_id, sub_service_id, user_id, role_id, department_id, section_id) {
|
|
24
|
-
super();
|
|
25
|
-
this.request_id = request_id;
|
|
26
|
-
this.service_id = service_id || null;
|
|
27
|
-
this.sub_service_id = sub_service_id || null;
|
|
28
|
-
this.content = content;
|
|
29
|
-
this.status = status;
|
|
30
|
-
this.user_id = user_id || null;
|
|
31
|
-
this.role_id = role_id || null;
|
|
32
|
-
this.department_id = department_id || null;
|
|
33
|
-
this.section_id = section_id || null;
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
exports.AssignTasksEmpWorkFlow = AssignTasksEmpWorkFlow;
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
39
|
-
__metadata("design:type", Number)
|
|
40
|
-
], AssignTasksEmpWorkFlow.prototype, "request_id", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
-
__metadata("design:type", Object)
|
|
44
|
-
], AssignTasksEmpWorkFlow.prototype, "service_id", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
-
__metadata("design:type", Object)
|
|
48
|
-
], AssignTasksEmpWorkFlow.prototype, "sub_service_id", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], AssignTasksEmpWorkFlow.prototype, "content", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: AssignTasksEmpWorkFlowStatus, default: AssignTasksEmpWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], AssignTasksEmpWorkFlow.prototype, "status", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
-
__metadata("design:type", Object)
|
|
60
|
-
], AssignTasksEmpWorkFlow.prototype, "user_id", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
|
-
__metadata("design:type", Object)
|
|
64
|
-
], AssignTasksEmpWorkFlow.prototype, "role_id", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
67
|
-
__metadata("design:type", Object)
|
|
68
|
-
], AssignTasksEmpWorkFlow.prototype, "department_id", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
71
|
-
__metadata("design:type", Object)
|
|
72
|
-
], AssignTasksEmpWorkFlow.prototype, "section_id", void 0);
|
|
73
|
-
exports.AssignTasksEmpWorkFlow = AssignTasksEmpWorkFlow = __decorate([
|
|
74
|
-
(0, typeorm_1.Entity)({ name: 'assign_tasks_emp_workflows' }),
|
|
75
|
-
__metadata("design:paramtypes", [Number, String, String, Number, Number, Number, Number, Number, Number])
|
|
76
|
-
], AssignTasksEmpWorkFlow);
|
|
@@ -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
|
-
// }
|