@platform-modules/civil-aviation-authority 2.2.94 → 2.2.100
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 +1 -7
- package/package.json +1 -1
- package/src/data-source.ts +5 -1
- package/src/index.ts +2 -0
- package/src/models/GroupModel.ts +31 -0
- package/src/models/GroupNamesModel.ts +22 -0
- package/src/models/ITRequestChatModel.ts +21 -1
- package/src/models/ItWorkflowModel.ts +17 -1
- package/dist/data-source.d.ts +0 -4
- package/dist/data-source.js +0 -146
- package/dist/helpers/utils/enum.d.ts +0 -75
- package/dist/helpers/utils/enum.js +0 -53
- package/dist/index.d.ts +0 -60
- package/dist/index.js +0 -80
- 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 -20
- package/dist/models/AccessCardChatModel.js +0 -78
- package/dist/models/AccessCardRequestModel.d.ts +0 -43
- package/dist/models/AccessCardRequestModel.js +0 -148
- package/dist/models/AccessCardWorkflowModel.d.ts +0 -18
- package/dist/models/AccessCardWorkflowModel.js +0 -80
- package/dist/models/BaseModel.d.ts +0 -14
- package/dist/models/BaseModel.js +0 -66
- package/dist/models/CAAServices.d.ts +0 -8
- package/dist/models/CAAServices.js +0 -44
- package/dist/models/CAASubServices.d.ts +0 -11
- package/dist/models/CAASubServices.js +0 -55
- package/dist/models/DelegateSettingsModel.d.ts +0 -9
- package/dist/models/DelegateSettingsModel.js +0 -50
- package/dist/models/DepartmentsModel.d.ts +0 -7
- package/dist/models/DepartmentsModel.js +0 -39
- package/dist/models/DirectorateModel.d.ts +0 -7
- package/dist/models/DirectorateModel.js +0 -39
- package/dist/models/HotelApprovalModel.d.ts +0 -22
- package/dist/models/HotelApprovalModel.js +0 -91
- package/dist/models/HotelAttachedModel.d.ts +0 -14
- package/dist/models/HotelAttachedModel.js +0 -74
- package/dist/models/HotelChatModel.d.ts +0 -17
- package/dist/models/HotelChatModel.js +0 -67
- package/dist/models/HotelWorkFlowModel.d.ts +0 -14
- package/dist/models/HotelWorkFlowModel.js +0 -56
- package/dist/models/HotelreservationModel.d.ts +0 -45
- package/dist/models/HotelreservationModel.js +0 -177
- package/dist/models/ITApprovalSettings.d.ts +0 -7
- package/dist/models/ITApprovalSettings.js +0 -40
- package/dist/models/ITHelpDeskModel.d.ts +0 -33
- package/dist/models/ITHelpDeskModel.js +0 -136
- package/dist/models/ITRequestAttachmentModel.d.ts +0 -17
- package/dist/models/ITRequestAttachmentModel.js +0 -81
- package/dist/models/ITRequestChatModel.d.ts +0 -12
- package/dist/models/ITRequestChatModel.js +0 -56
- 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/ItApprovalsModel.d.ts +0 -23
- package/dist/models/ItApprovalsModel.js +0 -92
- package/dist/models/ItWorkflowModel.d.ts +0 -15
- package/dist/models/ItWorkflowModel.js +0 -61
- package/dist/models/LogisticsApprovalModel.d.ts +0 -22
- package/dist/models/LogisticsApprovalModel.js +0 -91
- package/dist/models/LogisticsAttachmentModel.d.ts +0 -12
- package/dist/models/LogisticsAttachmentModel.js +0 -64
- package/dist/models/LogisticsChatModel.d.ts +0 -20
- package/dist/models/LogisticsChatModel.js +0 -78
- package/dist/models/LogisticsForeignVehicleModel.d.ts +0 -42
- package/dist/models/LogisticsForeignVehicleModel.js +0 -153
- package/dist/models/LogisticsForeignVehiclePassengerModel.d.ts +0 -6
- package/dist/models/LogisticsForeignVehiclePassengerModel.js +0 -34
- package/dist/models/LogisticsModel.d.ts +0 -57
- package/dist/models/LogisticsModel.js +0 -195
- package/dist/models/LogisticsWorkflowModel.d.ts +0 -18
- package/dist/models/LogisticsWorkflowModel.js +0 -76
- package/dist/models/NotificationModel.d.ts +0 -23
- package/dist/models/NotificationModel.js +0 -92
- package/dist/models/PortalFeedbackModel.d.ts +0 -8
- package/dist/models/PortalFeedbackModel.js +0 -44
- package/dist/models/PositionModel.d.ts +0 -6
- package/dist/models/PositionModel.js +0 -34
- package/dist/models/SectionModel.d.ts +0 -8
- package/dist/models/SectionModel.js +0 -44
- package/dist/models/SecurityAwarenessApprovalModel.d.ts +0 -22
- package/dist/models/SecurityAwarenessApprovalModel.js +0 -91
- package/dist/models/SecurityAwarenessAttachmentModel.d.ts +0 -12
- package/dist/models/SecurityAwarenessAttachmentModel.js +0 -64
- package/dist/models/SecurityAwarenessChatModel.d.ts +0 -20
- package/dist/models/SecurityAwarenessChatModel.js +0 -78
- package/dist/models/SecurityAwarenessRequestModel.d.ts +0 -30
- package/dist/models/SecurityAwarenessRequestModel.js +0 -122
- package/dist/models/SecurityAwarenessWorkflowModel.d.ts +0 -18
- package/dist/models/SecurityAwarenessWorkflowModel.js +0 -76
- package/dist/models/SecurityThreatApprovalModel.d.ts +0 -24
- package/dist/models/SecurityThreatApprovalModel.js +0 -97
- package/dist/models/SecurityThreatAttachmentModel.d.ts +0 -12
- package/dist/models/SecurityThreatAttachmentModel.js +0 -64
- package/dist/models/SecurityThreatChatModel.d.ts +0 -20
- package/dist/models/SecurityThreatChatModel.js +0 -78
- package/dist/models/SecurityThreatRequestModel.d.ts +0 -29
- package/dist/models/SecurityThreatRequestModel.js +0 -104
- package/dist/models/SecurityThreatWorkflowModel.d.ts +0 -18
- package/dist/models/SecurityThreatWorkflowModel.js +0 -76
- package/dist/models/ServiceTypeModel.d.ts +0 -20
- package/dist/models/ServiceTypeModel.js +0 -88
- package/dist/models/VpnApprovalModel.d.ts +0 -21
- package/dist/models/VpnApprovalModel.js +0 -87
- package/dist/models/VpnRequestAttachmentModel.d.ts +0 -11
- package/dist/models/VpnRequestAttachmentModel.js +0 -59
- package/dist/models/VpnRequestChatModel.d.ts +0 -26
- package/dist/models/VpnRequestChatModel.js +0 -86
- package/dist/models/VpnRequestModel.d.ts +0 -70
- package/dist/models/VpnRequestModel.js +0 -175
- package/dist/models/VpnWorkflowModel.d.ts +0 -17
- package/dist/models/VpnWorkflowModel.js +0 -71
- package/dist/models/WorkflowDefinitions.d.ts +0 -16
- package/dist/models/WorkflowDefinitions.js +0 -86
- package/dist/models/WorkflowHierarchy.d.ts +0 -17
- package/dist/models/WorkflowHierarchy.js +0 -86
- package/dist/models/WorkflowTask.d.ts +0 -13
- package/dist/models/WorkflowTask.js +0 -78
- package/dist/models/WorkflowTaskNames.d.ts +0 -17
- package/dist/models/WorkflowTaskNames.js +0 -63
- package/dist/models/Workflows.d.ts +0 -0
- package/dist/models/Workflows.js +0 -31
- package/dist/models/contactInfoModel.d.ts +0 -18
- package/dist/models/contactInfoModel.js +0 -80
- package/dist/models/feedbackModel.d.ts +0 -16
- package/dist/models/feedbackModel.js +0 -61
- package/dist/models/importantLinksModel.d.ts +0 -6
- package/dist/models/importantLinksModel.js +0 -34
- package/dist/models/role.d.ts +0 -16
- package/dist/models/role.js +0 -44
- package/dist/models/roleRightsModel.d.ts +0 -16
- package/dist/models/roleRightsModel.js +0 -44
- package/dist/models/serviceBookmarksModel.d.ts +0 -6
- package/dist/models/serviceBookmarksModel.js +0 -34
- package/dist/models/user-sessions.d.ts +0 -18
- package/dist/models/user-sessions.js +0 -54
- package/dist/models/user.d.ts +0 -47
- package/dist/models/user.js +0 -238
- package/dist/models/userRolesModel.d.ts +0 -19
- package/dist/models/userRolesModel.js +0 -59
- package/dist/scripts.d.ts +0 -1
- package/dist/scripts.js +0 -11
|
@@ -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: true }),
|
|
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,20 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from "./BaseModel";
|
|
2
|
-
import { AccessCardApprovalStatus } from "./AccessCardApprovalModel";
|
|
3
|
-
export declare enum AccessCardMessageType {
|
|
4
|
-
TEXT = "text",
|
|
5
|
-
IMAGE = "image",
|
|
6
|
-
VIDEO = "video",
|
|
7
|
-
FILE = "file",
|
|
8
|
-
LINK = "link"
|
|
9
|
-
}
|
|
10
|
-
export declare class AccessCardRequestChat extends BaseModel {
|
|
11
|
-
request_id: number;
|
|
12
|
-
service_id: number | null;
|
|
13
|
-
sub_service_id: number | null;
|
|
14
|
-
user_id: number;
|
|
15
|
-
role_id: number;
|
|
16
|
-
message: string;
|
|
17
|
-
messageType: AccessCardMessageType;
|
|
18
|
-
status: string;
|
|
19
|
-
constructor(request_id: number, user_id: number, role_id: number, message: string, service_id?: number, sub_service_id?: number, messageType?: AccessCardMessageType, status?: AccessCardApprovalStatus);
|
|
20
|
-
}
|
|
@@ -1,78 +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
|
-
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);
|
|
@@ -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,18 +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
|
-
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
|
-
}
|
|
@@ -1,80 +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, 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);
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
}
|
package/dist/models/BaseModel.js
DELETED
|
@@ -1,66 +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
|
-
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);
|