@platform-modules/civil-aviation-authority 2.2.100 → 2.2.200
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.d.ts +4 -0
- package/dist/data-source.js +150 -0
- package/dist/helpers/utils/enum.d.ts +75 -0
- package/dist/helpers/utils/enum.js +53 -0
- package/dist/index.d.ts +62 -0
- package/dist/index.js +82 -0
- package/dist/models/AccessCardApprovalModel.d.ts +22 -0
- package/dist/models/AccessCardApprovalModel.js +96 -0
- package/dist/models/AccessCardAttachmentModel.d.ts +12 -0
- package/dist/models/AccessCardAttachmentModel.js +64 -0
- package/dist/models/AccessCardChatModel.d.ts +20 -0
- package/dist/models/AccessCardChatModel.js +78 -0
- package/dist/models/AccessCardRequestModel.d.ts +43 -0
- package/dist/models/AccessCardRequestModel.js +148 -0
- package/dist/models/AccessCardWorkflowModel.d.ts +18 -0
- package/dist/models/AccessCardWorkflowModel.js +80 -0
- package/dist/models/BaseModel.d.ts +14 -0
- package/dist/models/BaseModel.js +66 -0
- package/dist/models/CAAServices.d.ts +8 -0
- package/dist/models/CAAServices.js +44 -0
- package/dist/models/CAASubServices.d.ts +11 -0
- package/dist/models/CAASubServices.js +55 -0
- package/dist/models/DelegateSettingsModel.d.ts +9 -0
- package/dist/models/DelegateSettingsModel.js +50 -0
- package/dist/models/DepartmentsModel.d.ts +7 -0
- package/dist/models/DepartmentsModel.js +39 -0
- package/dist/models/DirectorateModel.d.ts +7 -0
- package/dist/models/DirectorateModel.js +39 -0
- package/dist/models/GroupModel.d.ts +16 -0
- package/dist/models/GroupModel.js +44 -0
- package/dist/models/GroupNamesModel.d.ts +6 -0
- package/dist/models/GroupNamesModel.js +34 -0
- package/dist/models/HotelApprovalModel.d.ts +22 -0
- package/dist/models/HotelApprovalModel.js +91 -0
- package/dist/models/HotelAttachedModel.d.ts +14 -0
- package/dist/models/HotelAttachedModel.js +74 -0
- package/dist/models/HotelChatModel.d.ts +17 -0
- package/dist/models/HotelChatModel.js +67 -0
- package/dist/models/HotelWorkFlowModel.d.ts +14 -0
- package/dist/models/HotelWorkFlowModel.js +56 -0
- package/dist/models/HotelreservationModel.d.ts +45 -0
- package/dist/models/HotelreservationModel.js +177 -0
- package/dist/models/ITHelpDeskModel.d.ts +33 -0
- package/dist/models/ITHelpDeskModel.js +136 -0
- package/dist/models/ITRequestAttachmentModel.d.ts +17 -0
- package/dist/models/ITRequestAttachmentModel.js +81 -0
- package/dist/models/ITRequestChatModel.d.ts +16 -0
- package/dist/models/ITRequestChatModel.js +76 -0
- package/dist/models/ItApprovalsModel.d.ts +23 -0
- package/dist/models/ItApprovalsModel.js +92 -0
- package/dist/models/ItWorkflowModel.d.ts +19 -0
- package/dist/models/ItWorkflowModel.js +81 -0
- package/dist/models/LogisticsApprovalModel.d.ts +22 -0
- package/dist/models/LogisticsApprovalModel.js +91 -0
- package/dist/models/LogisticsAttachmentModel.d.ts +12 -0
- package/dist/models/LogisticsAttachmentModel.js +64 -0
- package/dist/models/LogisticsChatModel.d.ts +20 -0
- package/dist/models/LogisticsChatModel.js +78 -0
- package/dist/models/LogisticsForeignVehicleModel.d.ts +42 -0
- package/dist/models/LogisticsForeignVehicleModel.js +153 -0
- package/dist/models/LogisticsForeignVehiclePassengerModel.d.ts +6 -0
- package/dist/models/LogisticsForeignVehiclePassengerModel.js +34 -0
- package/dist/models/LogisticsModel.d.ts +57 -0
- package/dist/models/LogisticsModel.js +195 -0
- package/dist/models/LogisticsWorkflowModel.d.ts +18 -0
- package/dist/models/LogisticsWorkflowModel.js +76 -0
- package/dist/models/NotificationModel.d.ts +23 -0
- package/dist/models/NotificationModel.js +92 -0
- package/dist/models/PortalFeedbackModel.d.ts +8 -0
- package/dist/models/PortalFeedbackModel.js +44 -0
- package/dist/models/PositionModel.d.ts +6 -0
- package/dist/models/PositionModel.js +34 -0
- package/dist/models/SectionModel.d.ts +8 -0
- package/dist/models/SectionModel.js +44 -0
- package/dist/models/SecurityAwarenessApprovalModel.d.ts +22 -0
- package/dist/models/SecurityAwarenessApprovalModel.js +91 -0
- package/dist/models/SecurityAwarenessAttachmentModel.d.ts +12 -0
- package/dist/models/SecurityAwarenessAttachmentModel.js +64 -0
- package/dist/models/SecurityAwarenessChatModel.d.ts +20 -0
- package/dist/models/SecurityAwarenessChatModel.js +78 -0
- package/dist/models/SecurityAwarenessRequestModel.d.ts +30 -0
- package/dist/models/SecurityAwarenessRequestModel.js +122 -0
- package/dist/models/SecurityAwarenessWorkflowModel.d.ts +18 -0
- package/dist/models/SecurityAwarenessWorkflowModel.js +76 -0
- package/dist/models/SecurityThreatApprovalModel.d.ts +24 -0
- package/dist/models/SecurityThreatApprovalModel.js +97 -0
- package/dist/models/SecurityThreatAttachmentModel.d.ts +12 -0
- package/dist/models/SecurityThreatAttachmentModel.js +64 -0
- package/dist/models/SecurityThreatChatModel.d.ts +20 -0
- package/dist/models/SecurityThreatChatModel.js +78 -0
- package/dist/models/SecurityThreatRequestModel.d.ts +29 -0
- package/dist/models/SecurityThreatRequestModel.js +104 -0
- package/dist/models/SecurityThreatWorkflowModel.d.ts +18 -0
- package/dist/models/SecurityThreatWorkflowModel.js +76 -0
- package/dist/models/ServiceTypeModel.d.ts +20 -0
- package/dist/models/ServiceTypeModel.js +88 -0
- package/dist/models/VpnApprovalModel.d.ts +21 -0
- package/dist/models/VpnApprovalModel.js +87 -0
- package/dist/models/VpnRequestAttachmentModel.d.ts +11 -0
- package/dist/models/VpnRequestAttachmentModel.js +59 -0
- package/dist/models/VpnRequestChatModel.d.ts +26 -0
- package/dist/models/VpnRequestChatModel.js +86 -0
- package/dist/models/VpnRequestModel.d.ts +70 -0
- package/dist/models/VpnRequestModel.js +175 -0
- package/dist/models/VpnWorkflowModel.d.ts +17 -0
- package/dist/models/VpnWorkflowModel.js +71 -0
- package/dist/models/WorkflowDefinitions.d.ts +16 -0
- package/dist/models/WorkflowDefinitions.js +86 -0
- package/dist/models/WorkflowHierarchy.d.ts +17 -0
- package/dist/models/WorkflowHierarchy.js +86 -0
- package/dist/models/WorkflowTask.d.ts +13 -0
- package/dist/models/WorkflowTask.js +78 -0
- package/dist/models/WorkflowTaskNames.d.ts +17 -0
- package/dist/models/WorkflowTaskNames.js +63 -0
- package/dist/models/contactInfoModel.d.ts +18 -0
- package/dist/models/contactInfoModel.js +80 -0
- package/dist/models/feedbackModel.d.ts +16 -0
- package/dist/models/feedbackModel.js +61 -0
- package/dist/models/importantLinksModel.d.ts +6 -0
- package/dist/models/importantLinksModel.js +34 -0
- package/dist/models/role.d.ts +16 -0
- package/dist/models/role.js +44 -0
- package/dist/models/roleRightsModel.d.ts +16 -0
- package/dist/models/roleRightsModel.js +44 -0
- package/dist/models/serviceBookmarksModel.d.ts +6 -0
- package/dist/models/serviceBookmarksModel.js +34 -0
- package/dist/models/user-sessions.d.ts +18 -0
- package/dist/models/user-sessions.js +54 -0
- package/dist/models/user.d.ts +47 -0
- package/dist/models/user.js +238 -0
- package/dist/models/userRolesModel.d.ts +19 -0
- package/dist/models/userRolesModel.js +59 -0
- package/dist/scripts.d.ts +1 -0
- package/dist/scripts.js +11 -0
- package/package.json +1 -1
- package/src/models/ITRequestChatModel.ts +62 -62
- package/src/models/ItWorkflowModel.ts +55 -55
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
const AccessCardApprovalModel_1 = require("./AccessCardApprovalModel");
|
|
16
|
+
var AccessCardMessageType;
|
|
17
|
+
(function (AccessCardMessageType) {
|
|
18
|
+
AccessCardMessageType["TEXT"] = "text";
|
|
19
|
+
AccessCardMessageType["IMAGE"] = "image";
|
|
20
|
+
AccessCardMessageType["VIDEO"] = "video";
|
|
21
|
+
AccessCardMessageType["FILE"] = "file";
|
|
22
|
+
AccessCardMessageType["LINK"] = "link";
|
|
23
|
+
})(AccessCardMessageType || (exports.AccessCardMessageType = AccessCardMessageType = {}));
|
|
24
|
+
let AccessCardRequestChat = class AccessCardRequestChat extends BaseModel_1.BaseModel {
|
|
25
|
+
constructor(request_id, user_id, role_id, message, service_id, sub_service_id, messageType, status) {
|
|
26
|
+
super();
|
|
27
|
+
this.request_id = request_id;
|
|
28
|
+
this.service_id = service_id || null;
|
|
29
|
+
this.sub_service_id = sub_service_id || null;
|
|
30
|
+
this.user_id = user_id;
|
|
31
|
+
this.role_id = role_id;
|
|
32
|
+
this.message = message;
|
|
33
|
+
this.messageType = messageType || AccessCardMessageType.TEXT;
|
|
34
|
+
this.status = status || AccessCardApprovalModel_1.AccessCardApprovalStatus.PENDING;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.AccessCardRequestChat = AccessCardRequestChat;
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], AccessCardRequestChat.prototype, "request_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], AccessCardRequestChat.prototype, "service_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], AccessCardRequestChat.prototype, "sub_service_id", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], AccessCardRequestChat.prototype, "user_id", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], AccessCardRequestChat.prototype, "role_id", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], AccessCardRequestChat.prototype, "message", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({
|
|
64
|
+
type: "enum",
|
|
65
|
+
enum: AccessCardMessageType,
|
|
66
|
+
default: AccessCardMessageType.TEXT,
|
|
67
|
+
nullable: false
|
|
68
|
+
}),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], AccessCardRequestChat.prototype, "messageType", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], AccessCardRequestChat.prototype, "status", void 0);
|
|
75
|
+
exports.AccessCardRequestChat = AccessCardRequestChat = __decorate([
|
|
76
|
+
(0, typeorm_1.Entity)({ name: "access_card_request_chat" }),
|
|
77
|
+
__metadata("design:paramtypes", [Number, Number, Number, String, Number, Number, String, String])
|
|
78
|
+
], AccessCardRequestChat);
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
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);
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
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: AccessCardWorkflowStatus, service_id?: number, sub_service_id?: number, user_id?: number, role_id?: number, department_id?: number, section_id?: number);
|
|
18
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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, user_id, role_id, department_id, section_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
|
+
this.user_id = user_id ?? null;
|
|
30
|
+
this.role_id = role_id ?? null;
|
|
31
|
+
this.department_id = department_id ?? null;
|
|
32
|
+
this.section_id = section_id ?? null;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
exports.AccessCardWorkflow = AccessCardWorkflow;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], AccessCardWorkflow.prototype, "request_id", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
42
|
+
__metadata("design:type", Object)
|
|
43
|
+
], AccessCardWorkflow.prototype, "service_id", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], AccessCardWorkflow.prototype, "sub_service_id", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], AccessCardWorkflow.prototype, "content", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({
|
|
54
|
+
type: "enum",
|
|
55
|
+
enum: AccessCardWorkflowStatus,
|
|
56
|
+
default: AccessCardWorkflowStatus.NOT_YET_STARTED,
|
|
57
|
+
nullable: false
|
|
58
|
+
}),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], AccessCardWorkflow.prototype, "status", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], AccessCardWorkflow.prototype, "user_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], AccessCardWorkflow.prototype, "role_id", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], AccessCardWorkflow.prototype, "department_id", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
75
|
+
__metadata("design:type", Object)
|
|
76
|
+
], AccessCardWorkflow.prototype, "section_id", void 0);
|
|
77
|
+
exports.AccessCardWorkflow = AccessCardWorkflow = __decorate([
|
|
78
|
+
(0, typeorm_1.Entity)({ name: "access_card_workflows" }),
|
|
79
|
+
__metadata("design:paramtypes", [Number, String, String, Number, Number, Number, Number, Number, Number])
|
|
80
|
+
], AccessCardWorkflow);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare abstract class Model0 {
|
|
2
|
+
jsonIgnore: string[];
|
|
3
|
+
created_by?: number;
|
|
4
|
+
created_at?: Date;
|
|
5
|
+
updated_by?: number;
|
|
6
|
+
updated_at?: Date;
|
|
7
|
+
insertCreated(): void;
|
|
8
|
+
is_deleted?: boolean;
|
|
9
|
+
constructor();
|
|
10
|
+
}
|
|
11
|
+
export declare abstract class BaseModel extends Model0 {
|
|
12
|
+
id: number;
|
|
13
|
+
constructor();
|
|
14
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.BaseModel = exports.Model0 = void 0;
|
|
16
|
+
const moment_timezone_1 = __importDefault(require("moment-timezone"));
|
|
17
|
+
const typeorm_1 = require("typeorm");
|
|
18
|
+
class Model0 {
|
|
19
|
+
insertCreated() {
|
|
20
|
+
const currentTime = (0, moment_timezone_1.default)().utc().tz('Asia/Kolkata').toDate();
|
|
21
|
+
this.created_at = currentTime;
|
|
22
|
+
this.updated_at = currentTime;
|
|
23
|
+
}
|
|
24
|
+
constructor() {
|
|
25
|
+
this.jsonIgnore = ['logicalDelete', 'is_deleted', 'jsonIgnore'];
|
|
26
|
+
this.is_deleted = false;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.Model0 = Model0;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], Model0.prototype, "created_by", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.CreateDateColumn)({ type: "timestamptz", default: () => "CURRENT_TIMESTAMP" }),
|
|
36
|
+
__metadata("design:type", Date)
|
|
37
|
+
], Model0.prototype, "created_at", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], Model0.prototype, "updated_by", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.UpdateDateColumn)({ type: "timestamptz", default: () => "CURRENT_TIMESTAMP" }),
|
|
44
|
+
__metadata("design:type", Date)
|
|
45
|
+
], Model0.prototype, "updated_at", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.BeforeInsert)(),
|
|
48
|
+
__metadata("design:type", Function),
|
|
49
|
+
__metadata("design:paramtypes", []),
|
|
50
|
+
__metadata("design:returntype", void 0)
|
|
51
|
+
], Model0.prototype, "insertCreated", null);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ nullable: true, default: false }),
|
|
54
|
+
__metadata("design:type", Boolean)
|
|
55
|
+
], Model0.prototype, "is_deleted", void 0);
|
|
56
|
+
class BaseModel extends Model0 {
|
|
57
|
+
constructor() {
|
|
58
|
+
super();
|
|
59
|
+
this.id = 0; // This will be set by the database when the entity is saved
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.BaseModel = BaseModel;
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], BaseModel.prototype, "id", void 0);
|
|
@@ -0,0 +1,44 @@
|
|
|
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.CAAServices = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let CAAServices = class CAAServices extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(name, description, code, logo_url) {
|
|
17
|
+
super();
|
|
18
|
+
this.name = name;
|
|
19
|
+
this.description = description;
|
|
20
|
+
this.code = code || '';
|
|
21
|
+
this.logo_url = logo_url || '';
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
exports.CAAServices = CAAServices;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: false, unique: true }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CAAServices.prototype, "code", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CAAServices.prototype, "name", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CAAServices.prototype, "description", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], CAAServices.prototype, "logo_url", void 0);
|
|
41
|
+
exports.CAAServices = CAAServices = __decorate([
|
|
42
|
+
(0, typeorm_1.Entity)({ name: 'caa_services' }),
|
|
43
|
+
__metadata("design:paramtypes", [String, String, String, String])
|
|
44
|
+
], CAAServices);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
import { CAAServices } from './CAAServices';
|
|
3
|
+
export declare class CAASubServices extends BaseModel {
|
|
4
|
+
code: string | null;
|
|
5
|
+
sub_service_name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
service_id: number;
|
|
8
|
+
service: CAAServices;
|
|
9
|
+
logo_url: string;
|
|
10
|
+
constructor(sub_service_name: string, description: string, service_id: number, logo_url: string, code?: string | null);
|
|
11
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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.CAASubServices = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const CAAServices_1 = require("./CAAServices");
|
|
16
|
+
let CAASubServices = class CAASubServices extends BaseModel_1.BaseModel {
|
|
17
|
+
constructor(sub_service_name, description, service_id, logo_url, code = null) {
|
|
18
|
+
super();
|
|
19
|
+
this.sub_service_name = sub_service_name;
|
|
20
|
+
this.description = description;
|
|
21
|
+
this.service_id = service_id;
|
|
22
|
+
this.logo_url = logo_url;
|
|
23
|
+
this.code = code;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
exports.CAASubServices = CAASubServices;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: true, unique: true }),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], CAASubServices.prototype, "code", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], CAASubServices.prototype, "sub_service_name", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], CAASubServices.prototype, "description", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], CAASubServices.prototype, "service_id", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.ManyToOne)(() => CAAServices_1.CAAServices),
|
|
45
|
+
(0, typeorm_1.JoinColumn)({ name: 'service_id' }),
|
|
46
|
+
__metadata("design:type", CAAServices_1.CAAServices)
|
|
47
|
+
], CAASubServices.prototype, "service", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], CAASubServices.prototype, "logo_url", void 0);
|
|
52
|
+
exports.CAASubServices = CAASubServices = __decorate([
|
|
53
|
+
(0, typeorm_1.Entity)({ name: 'caa_sub_services' }),
|
|
54
|
+
__metadata("design:paramtypes", [String, String, Number, String, Object])
|
|
55
|
+
], CAASubServices);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class DelegateSettings extends BaseModel {
|
|
3
|
+
user_id: number;
|
|
4
|
+
from_date: Date;
|
|
5
|
+
to_date: Date;
|
|
6
|
+
delegate_to: number;
|
|
7
|
+
is_active: boolean;
|
|
8
|
+
constructor(user_id: number, from_date: Date, to_date: Date, delegate_to: number, is_active?: boolean);
|
|
9
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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.DelegateSettings = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let DelegateSettings = class DelegateSettings extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(user_id, from_date, to_date, delegate_to, is_active = true) {
|
|
17
|
+
super();
|
|
18
|
+
this.user_id = user_id;
|
|
19
|
+
this.from_date = from_date;
|
|
20
|
+
this.to_date = to_date;
|
|
21
|
+
this.delegate_to = delegate_to;
|
|
22
|
+
this.is_active = is_active;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.DelegateSettings = DelegateSettings;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], DelegateSettings.prototype, "user_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
32
|
+
__metadata("design:type", Date)
|
|
33
|
+
], DelegateSettings.prototype, "from_date", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
36
|
+
__metadata("design:type", Date)
|
|
37
|
+
], DelegateSettings.prototype, "to_date", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], DelegateSettings.prototype, "delegate_to", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
44
|
+
__metadata("design:type", Boolean)
|
|
45
|
+
], DelegateSettings.prototype, "is_active", void 0);
|
|
46
|
+
exports.DelegateSettings = DelegateSettings = __decorate([
|
|
47
|
+
(0, typeorm_1.Entity)({ name: 'delegate_settings' }),
|
|
48
|
+
__metadata("design:paramtypes", [Number, Date,
|
|
49
|
+
Date, Number, Boolean])
|
|
50
|
+
], DelegateSettings);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class Departments extends BaseModel {
|
|
3
|
+
department_name: string;
|
|
4
|
+
department_code: string;
|
|
5
|
+
department_description: string;
|
|
6
|
+
constructor(department_name: string, department_code: string, department_description: string);
|
|
7
|
+
}
|