@platform-modules/civil-aviation-authority 2.2.42 → 2.2.44
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/dist/data-source.js +0 -10
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -5
- package/dist/models/HotelreservationModal.d.ts +30 -0
- package/dist/models/HotelreservationModal.js +119 -0
- package/dist/models/HotelreservationModel.d.ts +3 -3
- package/dist/models/HotelreservationModel.js +5 -5
- 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/ItApprovalsModel.d.ts +1 -3
- package/dist/models/ItApprovalsModel.js +0 -2
- package/dist/models/ServiceTypeModel.d.ts +1 -7
- package/dist/models/ServiceTypeModel.js +2 -24
- package/dist/models/Workflows.d.ts +0 -0
- package/dist/models/Workflows.js +31 -0
- package/package.json +1 -1
- package/src/data-source.ts +0 -10
- package/src/index.ts +0 -5
- package/src/models/HotelreservationModel.ts +6 -6
- package/src/models/ItApprovalsModel.ts +1 -4
- package/src/models/ServiceTypeModel.ts +1 -21
- package/dist/models/AccessCardApprovalModel.d.ts +0 -22
- package/dist/models/AccessCardApprovalModel.js +0 -96
- package/dist/models/AccessCardAttachmentModel.d.ts +0 -12
- package/dist/models/AccessCardAttachmentModel.js +0 -64
- package/dist/models/AccessCardChatModel.d.ts +0 -17
- package/dist/models/AccessCardChatModel.js +0 -67
- package/dist/models/AccessCardRequestModel.d.ts +0 -43
- package/dist/models/AccessCardRequestModel.js +0 -148
- package/dist/models/AccessCardWorkflowModel.d.ts +0 -14
- package/dist/models/AccessCardWorkflowModel.js +0 -60
- package/src/models/AccessCardApprovalModel.ts +0 -83
- package/src/models/AccessCardAttachmentModel.ts +0 -51
- package/src/models/AccessCardChatModel.ts +0 -54
- package/src/models/AccessCardRequestModel.ts +0 -135
- package/src/models/AccessCardWorkflowModel.ts +0 -47
|
@@ -2,8 +2,6 @@ import { Column, Entity, ManyToOne, JoinColumn } from "typeorm";
|
|
|
2
2
|
import { BaseModel } from './BaseModel';
|
|
3
3
|
import { CAAServices } from './CAAServices';
|
|
4
4
|
import { CAASubServices } from './CAASubServices';
|
|
5
|
-
import { Departments } from './DepartmentsModel';
|
|
6
|
-
import { Sections } from './SectionModel';
|
|
7
5
|
|
|
8
6
|
@Entity({ name: 'service_types' })
|
|
9
7
|
export class ServiceType extends BaseModel {
|
|
@@ -28,20 +26,6 @@ export class ServiceType extends BaseModel {
|
|
|
28
26
|
@JoinColumn({ name: 'sub_service_id' })
|
|
29
27
|
sub_service: CAASubServices;
|
|
30
28
|
|
|
31
|
-
@Column({ type: 'bigint', nullable: true })
|
|
32
|
-
department_id: number | null;
|
|
33
|
-
|
|
34
|
-
@ManyToOne(() => Departments)
|
|
35
|
-
@JoinColumn({ name: 'department_id' })
|
|
36
|
-
department: Departments;
|
|
37
|
-
|
|
38
|
-
@Column({ type: 'bigint', nullable: true })
|
|
39
|
-
section_id: number | null;
|
|
40
|
-
|
|
41
|
-
@ManyToOne(() => Sections)
|
|
42
|
-
@JoinColumn({ name: 'section_id' })
|
|
43
|
-
section: Sections;
|
|
44
|
-
|
|
45
29
|
@Column({ nullable: true })
|
|
46
30
|
description: string;
|
|
47
31
|
|
|
@@ -54,9 +38,7 @@ export class ServiceType extends BaseModel {
|
|
|
54
38
|
service_id: number,
|
|
55
39
|
sub_service_id: number,
|
|
56
40
|
description?: string,
|
|
57
|
-
is_active?: boolean
|
|
58
|
-
department_id?: number | null,
|
|
59
|
-
section_id?: number | null
|
|
41
|
+
is_active?: boolean
|
|
60
42
|
) {
|
|
61
43
|
super();
|
|
62
44
|
this.name = name;
|
|
@@ -65,8 +47,6 @@ export class ServiceType extends BaseModel {
|
|
|
65
47
|
this.sub_service_id = sub_service_id;
|
|
66
48
|
this.description = description || '';
|
|
67
49
|
this.is_active = is_active !== undefined ? is_active : true;
|
|
68
|
-
this.department_id = department_id || null;
|
|
69
|
-
this.section_id = section_id || null;
|
|
70
50
|
}
|
|
71
51
|
}
|
|
72
52
|
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "./BaseModel";
|
|
2
|
-
export declare enum AccessCardApprovalStatus {
|
|
3
|
-
PENDING = "Pending",
|
|
4
|
-
IN_PROGRESS = "In Progress",
|
|
5
|
-
APPROVED = "Approved",
|
|
6
|
-
REJECTED = "Rejected"
|
|
7
|
-
}
|
|
8
|
-
export declare class AccessCardApproval 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: AccessCardApprovalStatus;
|
|
21
|
-
constructor(request_id: number, approver_role_id: number, level: number, comment: string, approval_status: AccessCardApprovalStatus, service_id?: number, sub_service_id?: number, department_id?: number | null, section_id?: number | null, approver_user_id?: number | null, delegate_user_id?: number | null, approved_by?: number | null);
|
|
22
|
-
}
|
|
@@ -1,96 +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.AccessCardApproval = exports.AccessCardApprovalStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var AccessCardApprovalStatus;
|
|
16
|
-
(function (AccessCardApprovalStatus) {
|
|
17
|
-
AccessCardApprovalStatus["PENDING"] = "Pending";
|
|
18
|
-
AccessCardApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
-
AccessCardApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
-
AccessCardApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
-
})(AccessCardApprovalStatus || (exports.AccessCardApprovalStatus = AccessCardApprovalStatus = {}));
|
|
22
|
-
let AccessCardApproval = class AccessCardApproval extends BaseModel_1.BaseModel {
|
|
23
|
-
constructor(request_id, approver_role_id, level, comment, approval_status, service_id, sub_service_id, department_id, section_id, approver_user_id, delegate_user_id, approved_by) {
|
|
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.level = level;
|
|
29
|
-
this.approver_role_id = approver_role_id;
|
|
30
|
-
this.department_id = department_id ?? null;
|
|
31
|
-
this.section_id = section_id ?? null;
|
|
32
|
-
this.approver_user_id = approver_user_id ?? null;
|
|
33
|
-
this.delegate_user_id = delegate_user_id ?? null;
|
|
34
|
-
this.approved_by = approved_by ?? null;
|
|
35
|
-
this.comment = comment;
|
|
36
|
-
this.approval_status = approval_status;
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
exports.AccessCardApproval = AccessCardApproval;
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
42
|
-
__metadata("design:type", Number)
|
|
43
|
-
], AccessCardApproval.prototype, "request_id", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
46
|
-
__metadata("design:type", Object)
|
|
47
|
-
], AccessCardApproval.prototype, "service_id", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
50
|
-
__metadata("design:type", Object)
|
|
51
|
-
], AccessCardApproval.prototype, "sub_service_id", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
54
|
-
__metadata("design:type", Number)
|
|
55
|
-
], AccessCardApproval.prototype, "level", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
58
|
-
__metadata("design:type", Number)
|
|
59
|
-
], AccessCardApproval.prototype, "approver_role_id", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
62
|
-
__metadata("design:type", Object)
|
|
63
|
-
], AccessCardApproval.prototype, "department_id", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
66
|
-
__metadata("design:type", Object)
|
|
67
|
-
], AccessCardApproval.prototype, "section_id", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
70
|
-
__metadata("design:type", Object)
|
|
71
|
-
], AccessCardApproval.prototype, "approver_user_id", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
74
|
-
__metadata("design:type", Object)
|
|
75
|
-
], AccessCardApproval.prototype, "delegate_user_id", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
78
|
-
__metadata("design:type", Object)
|
|
79
|
-
], AccessCardApproval.prototype, "approved_by", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true, default: "" }),
|
|
82
|
-
__metadata("design:type", String)
|
|
83
|
-
], AccessCardApproval.prototype, "comment", void 0);
|
|
84
|
-
__decorate([
|
|
85
|
-
(0, typeorm_1.Column)({
|
|
86
|
-
type: "enum",
|
|
87
|
-
enum: AccessCardApprovalStatus,
|
|
88
|
-
default: AccessCardApprovalStatus.PENDING,
|
|
89
|
-
nullable: false
|
|
90
|
-
}),
|
|
91
|
-
__metadata("design:type", String)
|
|
92
|
-
], AccessCardApproval.prototype, "approval_status", void 0);
|
|
93
|
-
exports.AccessCardApproval = AccessCardApproval = __decorate([
|
|
94
|
-
(0, typeorm_1.Entity)({ name: "access_card_approvals" }),
|
|
95
|
-
__metadata("design:paramtypes", [Number, Number, Number, String, String, Number, Number, Object, Object, Object, Object, Object])
|
|
96
|
-
], AccessCardApproval);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "./BaseModel";
|
|
2
|
-
export declare class AccessCardAttachment 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
|
-
constructor(request_id: number, file_url: string, service_id?: number, sub_service_id?: number, file_name?: string, file_type?: string, file_size?: number, chat_id?: number);
|
|
12
|
-
}
|
|
@@ -1,64 +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.AccessCardAttachment = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let AccessCardAttachment = class AccessCardAttachment extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(request_id, file_url, service_id, sub_service_id, file_name, file_type, file_size, chat_id) {
|
|
17
|
-
super();
|
|
18
|
-
this.request_id = request_id;
|
|
19
|
-
this.service_id = service_id ?? null;
|
|
20
|
-
this.sub_service_id = sub_service_id ?? null;
|
|
21
|
-
this.file_url = file_url;
|
|
22
|
-
this.file_name = file_name ?? "";
|
|
23
|
-
this.file_type = file_type ?? "";
|
|
24
|
-
this.file_size = file_size ?? null;
|
|
25
|
-
this.chat_id = chat_id ?? null;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
exports.AccessCardAttachment = AccessCardAttachment;
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
31
|
-
__metadata("design:type", Number)
|
|
32
|
-
], AccessCardAttachment.prototype, "request_id", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
35
|
-
__metadata("design:type", Object)
|
|
36
|
-
], AccessCardAttachment.prototype, "service_id", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
39
|
-
__metadata("design:type", Object)
|
|
40
|
-
], AccessCardAttachment.prototype, "sub_service_id", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], AccessCardAttachment.prototype, "file_url", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], AccessCardAttachment.prototype, "file_name", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], AccessCardAttachment.prototype, "file_type", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ type: "bigint", nullable: true }),
|
|
55
|
-
__metadata("design:type", Object)
|
|
56
|
-
], AccessCardAttachment.prototype, "file_size", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
-
__metadata("design:type", Object)
|
|
60
|
-
], AccessCardAttachment.prototype, "chat_id", void 0);
|
|
61
|
-
exports.AccessCardAttachment = AccessCardAttachment = __decorate([
|
|
62
|
-
(0, typeorm_1.Entity)({ name: "access_card_attachments" }),
|
|
63
|
-
__metadata("design:paramtypes", [Number, String, Number, Number, String, String, Number, Number])
|
|
64
|
-
], AccessCardAttachment);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "./BaseModel";
|
|
2
|
-
export declare enum AccessCardMessageType {
|
|
3
|
-
TEXT = "text",
|
|
4
|
-
IMAGE = "image",
|
|
5
|
-
VIDEO = "video",
|
|
6
|
-
FILE = "file",
|
|
7
|
-
LINK = "link"
|
|
8
|
-
}
|
|
9
|
-
export declare class AccessCardRequestChat extends BaseModel {
|
|
10
|
-
request_id: number;
|
|
11
|
-
service_id: number | null;
|
|
12
|
-
sub_service_id: number | null;
|
|
13
|
-
user_id: number;
|
|
14
|
-
message: string;
|
|
15
|
-
messageType: AccessCardMessageType;
|
|
16
|
-
constructor(request_id: number, user_id: number, message: string, service_id?: number, sub_service_id?: number, messageType?: AccessCardMessageType);
|
|
17
|
-
}
|
|
@@ -1,67 +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.AccessCardRequestChat = exports.AccessCardMessageType = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var AccessCardMessageType;
|
|
16
|
-
(function (AccessCardMessageType) {
|
|
17
|
-
AccessCardMessageType["TEXT"] = "text";
|
|
18
|
-
AccessCardMessageType["IMAGE"] = "image";
|
|
19
|
-
AccessCardMessageType["VIDEO"] = "video";
|
|
20
|
-
AccessCardMessageType["FILE"] = "file";
|
|
21
|
-
AccessCardMessageType["LINK"] = "link";
|
|
22
|
-
})(AccessCardMessageType || (exports.AccessCardMessageType = AccessCardMessageType = {}));
|
|
23
|
-
let AccessCardRequestChat = class AccessCardRequestChat extends BaseModel_1.BaseModel {
|
|
24
|
-
constructor(request_id, user_id, message, service_id, sub_service_id, messageType) {
|
|
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.message = message;
|
|
31
|
-
this.messageType = messageType ?? AccessCardMessageType.TEXT;
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
exports.AccessCardRequestChat = AccessCardRequestChat;
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
37
|
-
__metadata("design:type", Number)
|
|
38
|
-
], AccessCardRequestChat.prototype, "request_id", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
41
|
-
__metadata("design:type", Object)
|
|
42
|
-
], AccessCardRequestChat.prototype, "service_id", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
45
|
-
__metadata("design:type", Object)
|
|
46
|
-
], AccessCardRequestChat.prototype, "sub_service_id", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
49
|
-
__metadata("design:type", Number)
|
|
50
|
-
], AccessCardRequestChat.prototype, "user_id", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
|
-
], AccessCardRequestChat.prototype, "message", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, typeorm_1.Column)({
|
|
57
|
-
type: "enum",
|
|
58
|
-
enum: AccessCardMessageType,
|
|
59
|
-
default: AccessCardMessageType.TEXT,
|
|
60
|
-
nullable: false
|
|
61
|
-
}),
|
|
62
|
-
__metadata("design:type", String)
|
|
63
|
-
], AccessCardRequestChat.prototype, "messageType", void 0);
|
|
64
|
-
exports.AccessCardRequestChat = AccessCardRequestChat = __decorate([
|
|
65
|
-
(0, typeorm_1.Entity)({ name: "access_card_request_chat" }),
|
|
66
|
-
__metadata("design:paramtypes", [Number, Number, String, Number, Number, String])
|
|
67
|
-
], AccessCardRequestChat);
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "./BaseModel";
|
|
2
|
-
export declare enum AccessCardRequestFor {
|
|
3
|
-
SELF = "Self",
|
|
4
|
-
BEHALF = "Behalf"
|
|
5
|
-
}
|
|
6
|
-
export declare enum AccessCardRequestType {
|
|
7
|
-
NEW = "New",
|
|
8
|
-
RENEWAL = "Renewal"
|
|
9
|
-
}
|
|
10
|
-
export declare enum AccessCardCategory {
|
|
11
|
-
TRAINEE = "Trainee",
|
|
12
|
-
WORKER = "Workers",
|
|
13
|
-
EMPLOYEE = "Employees",
|
|
14
|
-
CONTRACTOR = "Contractors"
|
|
15
|
-
}
|
|
16
|
-
export declare enum AccessCardRequestStatus {
|
|
17
|
-
PENDING = "Pending",
|
|
18
|
-
IN_PROGRESS = "In Progress",
|
|
19
|
-
APPROVED = "Approved",
|
|
20
|
-
REJECTED = "Rejected"
|
|
21
|
-
}
|
|
22
|
-
export declare class AccessCardRequest extends BaseModel {
|
|
23
|
-
req_user_department_id: number | null;
|
|
24
|
-
req_user_section_id: number | null;
|
|
25
|
-
service_id: number | null;
|
|
26
|
-
sub_service_id: number | null;
|
|
27
|
-
user_id: number;
|
|
28
|
-
request_for: AccessCardRequestFor;
|
|
29
|
-
name: string;
|
|
30
|
-
id_number: string;
|
|
31
|
-
phone_number: string;
|
|
32
|
-
email_id: string;
|
|
33
|
-
request_type: AccessCardRequestType;
|
|
34
|
-
category: AccessCardCategory;
|
|
35
|
-
approval_route: string | null;
|
|
36
|
-
organization: string;
|
|
37
|
-
access_card_no: string | null;
|
|
38
|
-
reason: string;
|
|
39
|
-
request_date: Date;
|
|
40
|
-
status: AccessCardRequestStatus;
|
|
41
|
-
workflow_execution_id: string | null;
|
|
42
|
-
constructor(request_for: AccessCardRequestFor, name: string, id_number: string, phone_number: string, email_id: string, request_type: AccessCardRequestType, category: AccessCardCategory, organization: string, reason: string, request_date: Date, user_id: number, status?: AccessCardRequestStatus, approval_route?: string | null, service_id?: number, sub_service_id?: number, req_user_department_id?: number, req_user_section_id?: number, access_card_no?: string | null, workflow_execution_id?: string | null);
|
|
43
|
-
}
|
|
@@ -1,148 +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.AccessCardRequest = exports.AccessCardRequestStatus = exports.AccessCardCategory = exports.AccessCardRequestType = exports.AccessCardRequestFor = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var AccessCardRequestFor;
|
|
16
|
-
(function (AccessCardRequestFor) {
|
|
17
|
-
AccessCardRequestFor["SELF"] = "Self";
|
|
18
|
-
AccessCardRequestFor["BEHALF"] = "Behalf";
|
|
19
|
-
})(AccessCardRequestFor || (exports.AccessCardRequestFor = AccessCardRequestFor = {}));
|
|
20
|
-
var AccessCardRequestType;
|
|
21
|
-
(function (AccessCardRequestType) {
|
|
22
|
-
AccessCardRequestType["NEW"] = "New";
|
|
23
|
-
AccessCardRequestType["RENEWAL"] = "Renewal";
|
|
24
|
-
})(AccessCardRequestType || (exports.AccessCardRequestType = AccessCardRequestType = {}));
|
|
25
|
-
var AccessCardCategory;
|
|
26
|
-
(function (AccessCardCategory) {
|
|
27
|
-
AccessCardCategory["TRAINEE"] = "Trainee";
|
|
28
|
-
AccessCardCategory["WORKER"] = "Workers";
|
|
29
|
-
AccessCardCategory["EMPLOYEE"] = "Employees";
|
|
30
|
-
AccessCardCategory["CONTRACTOR"] = "Contractors";
|
|
31
|
-
})(AccessCardCategory || (exports.AccessCardCategory = AccessCardCategory = {}));
|
|
32
|
-
var AccessCardRequestStatus;
|
|
33
|
-
(function (AccessCardRequestStatus) {
|
|
34
|
-
AccessCardRequestStatus["PENDING"] = "Pending";
|
|
35
|
-
AccessCardRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
36
|
-
AccessCardRequestStatus["APPROVED"] = "Approved";
|
|
37
|
-
AccessCardRequestStatus["REJECTED"] = "Rejected";
|
|
38
|
-
})(AccessCardRequestStatus || (exports.AccessCardRequestStatus = AccessCardRequestStatus = {}));
|
|
39
|
-
let AccessCardRequest = class AccessCardRequest extends BaseModel_1.BaseModel {
|
|
40
|
-
constructor(request_for, name, id_number, phone_number, email_id, request_type, category, organization, reason, request_date, user_id, status = AccessCardRequestStatus.PENDING, approval_route, service_id, sub_service_id, req_user_department_id, req_user_section_id, access_card_no, workflow_execution_id) {
|
|
41
|
-
super();
|
|
42
|
-
this.request_for = request_for;
|
|
43
|
-
this.name = name;
|
|
44
|
-
this.id_number = id_number;
|
|
45
|
-
this.phone_number = phone_number;
|
|
46
|
-
this.email_id = email_id;
|
|
47
|
-
this.request_type = request_type;
|
|
48
|
-
this.category = category;
|
|
49
|
-
this.organization = organization;
|
|
50
|
-
this.reason = reason;
|
|
51
|
-
this.request_date = request_date;
|
|
52
|
-
this.user_id = user_id;
|
|
53
|
-
this.status = status;
|
|
54
|
-
this.approval_route = approval_route ?? null;
|
|
55
|
-
this.service_id = service_id ?? null;
|
|
56
|
-
this.sub_service_id = sub_service_id ?? null;
|
|
57
|
-
this.req_user_department_id = req_user_department_id ?? null;
|
|
58
|
-
this.req_user_section_id = req_user_section_id ?? null;
|
|
59
|
-
this.access_card_no = access_card_no ?? null;
|
|
60
|
-
this.workflow_execution_id = workflow_execution_id ?? null;
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
exports.AccessCardRequest = AccessCardRequest;
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
66
|
-
__metadata("design:type", Object)
|
|
67
|
-
], AccessCardRequest.prototype, "req_user_department_id", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
70
|
-
__metadata("design:type", Object)
|
|
71
|
-
], AccessCardRequest.prototype, "req_user_section_id", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
74
|
-
__metadata("design:type", Object)
|
|
75
|
-
], AccessCardRequest.prototype, "service_id", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
78
|
-
__metadata("design:type", Object)
|
|
79
|
-
], AccessCardRequest.prototype, "sub_service_id", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, typeorm_1.Column)({ type: "int", nullable: false }),
|
|
82
|
-
__metadata("design:type", Number)
|
|
83
|
-
], AccessCardRequest.prototype, "user_id", void 0);
|
|
84
|
-
__decorate([
|
|
85
|
-
(0, typeorm_1.Column)({ type: "enum", enum: AccessCardRequestFor, nullable: false }),
|
|
86
|
-
__metadata("design:type", String)
|
|
87
|
-
], AccessCardRequest.prototype, "request_for", void 0);
|
|
88
|
-
__decorate([
|
|
89
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
90
|
-
__metadata("design:type", String)
|
|
91
|
-
], AccessCardRequest.prototype, "name", void 0);
|
|
92
|
-
__decorate([
|
|
93
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
94
|
-
__metadata("design:type", String)
|
|
95
|
-
], AccessCardRequest.prototype, "id_number", void 0);
|
|
96
|
-
__decorate([
|
|
97
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: false }),
|
|
98
|
-
__metadata("design:type", String)
|
|
99
|
-
], AccessCardRequest.prototype, "phone_number", void 0);
|
|
100
|
-
__decorate([
|
|
101
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
102
|
-
__metadata("design:type", String)
|
|
103
|
-
], AccessCardRequest.prototype, "email_id", void 0);
|
|
104
|
-
__decorate([
|
|
105
|
-
(0, typeorm_1.Column)({ type: "enum", enum: AccessCardRequestType, nullable: false }),
|
|
106
|
-
__metadata("design:type", String)
|
|
107
|
-
], AccessCardRequest.prototype, "request_type", void 0);
|
|
108
|
-
__decorate([
|
|
109
|
-
(0, typeorm_1.Column)({ type: "enum", enum: AccessCardCategory, nullable: false }),
|
|
110
|
-
__metadata("design:type", String)
|
|
111
|
-
], AccessCardRequest.prototype, "category", void 0);
|
|
112
|
-
__decorate([
|
|
113
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
|
|
114
|
-
__metadata("design:type", Object)
|
|
115
|
-
], AccessCardRequest.prototype, "approval_route", void 0);
|
|
116
|
-
__decorate([
|
|
117
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
118
|
-
__metadata("design:type", String)
|
|
119
|
-
], AccessCardRequest.prototype, "organization", void 0);
|
|
120
|
-
__decorate([
|
|
121
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
122
|
-
__metadata("design:type", Object)
|
|
123
|
-
], AccessCardRequest.prototype, "access_card_no", void 0);
|
|
124
|
-
__decorate([
|
|
125
|
-
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
126
|
-
__metadata("design:type", String)
|
|
127
|
-
], AccessCardRequest.prototype, "reason", void 0);
|
|
128
|
-
__decorate([
|
|
129
|
-
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
130
|
-
__metadata("design:type", Date)
|
|
131
|
-
], AccessCardRequest.prototype, "request_date", void 0);
|
|
132
|
-
__decorate([
|
|
133
|
-
(0, typeorm_1.Column)({
|
|
134
|
-
type: "enum",
|
|
135
|
-
enum: AccessCardRequestStatus,
|
|
136
|
-
default: AccessCardRequestStatus.PENDING,
|
|
137
|
-
nullable: false
|
|
138
|
-
}),
|
|
139
|
-
__metadata("design:type", String)
|
|
140
|
-
], AccessCardRequest.prototype, "status", void 0);
|
|
141
|
-
__decorate([
|
|
142
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
143
|
-
__metadata("design:type", Object)
|
|
144
|
-
], AccessCardRequest.prototype, "workflow_execution_id", void 0);
|
|
145
|
-
exports.AccessCardRequest = AccessCardRequest = __decorate([
|
|
146
|
-
(0, typeorm_1.Entity)({ name: "access_card_requests" }),
|
|
147
|
-
__metadata("design:paramtypes", [String, String, String, String, String, String, String, String, String, Date, Number, String, Object, Number, Number, Number, Number, Object, Object])
|
|
148
|
-
], AccessCardRequest);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "./BaseModel";
|
|
2
|
-
export declare enum AccessCardWorkflowStatus {
|
|
3
|
-
COMPLETED = "Completed",
|
|
4
|
-
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
-
PENDING = "Pending"
|
|
6
|
-
}
|
|
7
|
-
export declare class AccessCardWorkflow extends BaseModel {
|
|
8
|
-
request_id: number;
|
|
9
|
-
service_id: number | null;
|
|
10
|
-
sub_service_id: number | null;
|
|
11
|
-
content: string;
|
|
12
|
-
status: AccessCardWorkflowStatus;
|
|
13
|
-
constructor(request_id: number, content: string, status: AccessCardWorkflowStatus, service_id?: number, sub_service_id?: number);
|
|
14
|
-
}
|
|
@@ -1,60 +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.AccessCardWorkflow = exports.AccessCardWorkflowStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var AccessCardWorkflowStatus;
|
|
16
|
-
(function (AccessCardWorkflowStatus) {
|
|
17
|
-
AccessCardWorkflowStatus["COMPLETED"] = "Completed";
|
|
18
|
-
AccessCardWorkflowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
-
AccessCardWorkflowStatus["PENDING"] = "Pending";
|
|
20
|
-
})(AccessCardWorkflowStatus || (exports.AccessCardWorkflowStatus = AccessCardWorkflowStatus = {}));
|
|
21
|
-
let AccessCardWorkflow = class AccessCardWorkflow extends BaseModel_1.BaseModel {
|
|
22
|
-
constructor(request_id, content, status, service_id, sub_service_id) {
|
|
23
|
-
super();
|
|
24
|
-
this.request_id = request_id;
|
|
25
|
-
this.service_id = service_id ?? null;
|
|
26
|
-
this.sub_service_id = sub_service_id ?? null;
|
|
27
|
-
this.content = content;
|
|
28
|
-
this.status = status;
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
exports.AccessCardWorkflow = AccessCardWorkflow;
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
34
|
-
__metadata("design:type", Number)
|
|
35
|
-
], AccessCardWorkflow.prototype, "request_id", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
38
|
-
__metadata("design:type", Object)
|
|
39
|
-
], AccessCardWorkflow.prototype, "service_id", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
42
|
-
__metadata("design:type", Object)
|
|
43
|
-
], AccessCardWorkflow.prototype, "sub_service_id", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], AccessCardWorkflow.prototype, "content", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, typeorm_1.Column)({
|
|
50
|
-
type: "enum",
|
|
51
|
-
enum: AccessCardWorkflowStatus,
|
|
52
|
-
default: AccessCardWorkflowStatus.NOT_YET_STARTED,
|
|
53
|
-
nullable: false
|
|
54
|
-
}),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], AccessCardWorkflow.prototype, "status", void 0);
|
|
57
|
-
exports.AccessCardWorkflow = AccessCardWorkflow = __decorate([
|
|
58
|
-
(0, typeorm_1.Entity)({ name: "access_card_workflows" }),
|
|
59
|
-
__metadata("design:paramtypes", [Number, String, String, Number, Number])
|
|
60
|
-
], AccessCardWorkflow);
|