@platform-modules/foreign-ministry 1.0.111 → 1.1.0
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 +10 -2
- package/dist/data-source.js +11 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/models/AllowanceRequestsModel.js +1 -1
- package/dist/models/EarlyCheckoutApprovalModel.d.ts +20 -0
- package/dist/models/EarlyCheckoutApprovalModel.js +74 -0
- package/dist/models/EarlyCheckoutAttachmentModel.d.ts +11 -0
- package/dist/models/EarlyCheckoutAttachmentModel.js +52 -0
- package/dist/models/EarlyCheckoutChatModel.d.ts +16 -0
- package/dist/models/EarlyCheckoutChatModel.js +52 -0
- package/dist/models/EarlyCheckoutRequestModel.d.ts +32 -0
- package/dist/models/EarlyCheckoutRequestModel.js +91 -0
- package/dist/models/EarlyCheckoutWorkflowModel.d.ts +13 -0
- package/dist/models/EarlyCheckoutWorkflowModel.js +46 -0
- package/dist/models/HelpContentMappedCategoriesModel.d.ts +6 -0
- package/dist/models/HelpContentMappedCategoriesModel.js +34 -0
- package/dist/models/HelpContentMappedTagsModel.d.ts +6 -0
- package/dist/models/HelpContentMappedTagsModel.js +34 -0
- package/dist/models/HelpContentTagsModel.d.ts +5 -0
- package/dist/models/HelpContentTagsModel.js +29 -0
- package/dist/models/questionTagsModel.d.ts +6 -0
- package/dist/models/questionTagsModel.js +34 -0
- package/package.json +1 -1
- package/src/data-source.ts +10 -0
- package/src/index.ts +5 -0
- package/src/models/AllowanceRequestsModel.ts +1 -1
- package/src/models/EarlyCheckoutApprovalModel.ts +49 -0
- package/src/models/EarlyCheckoutAttachmentModel.ts +32 -0
- package/src/models/EarlyCheckoutChatModel.ts +34 -0
- package/src/models/EarlyCheckoutRequestModel.ts +67 -0
- package/src/models/EarlyCheckoutWorkflowModel.ts +28 -0
package/.env
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
DB_HOST=localhost
|
|
2
|
-
DB_PORT=
|
|
2
|
+
DB_PORT=5433
|
|
3
3
|
DB_USER=postgres
|
|
4
|
-
DB_PASS=
|
|
4
|
+
DB_PASS=123
|
|
5
5
|
DB_NAME=FM
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
# DB_HOST=164.52.222.169
|
|
10
|
+
# DB_PORT=5432
|
|
11
|
+
# DB_USER=postgres_admin_user
|
|
12
|
+
# DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
13
|
+
# DB_NAME=FM
|
package/dist/data-source.js
CHANGED
|
@@ -68,6 +68,11 @@ const FinancialAttachmentsModel_1 = require("./models/FinancialAttachmentsModel"
|
|
|
68
68
|
const RequestTypeMasterModel_1 = require("./models/RequestTypeMasterModel");
|
|
69
69
|
const AllowanceTypesModel_1 = require("./models/AllowanceTypesModel");
|
|
70
70
|
const BankNamesModel_1 = require("./models/BankNamesModel");
|
|
71
|
+
const EarlyCheckoutRequestModel_1 = require("./models/EarlyCheckoutRequestModel");
|
|
72
|
+
const EarlyCheckoutApprovalModel_1 = require("./models/EarlyCheckoutApprovalModel");
|
|
73
|
+
const EarlyCheckoutAttachmentModel_1 = require("./models/EarlyCheckoutAttachmentModel");
|
|
74
|
+
const EarlyCheckoutChatModel_1 = require("./models/EarlyCheckoutChatModel");
|
|
75
|
+
const EarlyCheckoutWorkflowModel_1 = require("./models/EarlyCheckoutWorkflowModel");
|
|
71
76
|
const WorkflowTask_1 = require("./models/WorkflowTask");
|
|
72
77
|
const WorkflowTaskNames_1 = require("./models/WorkflowTaskNames");
|
|
73
78
|
const WorkflowDefinitions_1 = require("./models/WorkflowDefinitions");
|
|
@@ -152,6 +157,11 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
152
157
|
importantLinksModel_1.ImportantLinks,
|
|
153
158
|
DelegateSettingsModel_1.DelegateSettings,
|
|
154
159
|
AllowanceTypesModel_1.AllowanceTypes,
|
|
155
|
-
BankNamesModel_1.BankNames
|
|
160
|
+
BankNamesModel_1.BankNames,
|
|
161
|
+
EarlyCheckoutRequestModel_1.EarlyCheckoutRequests,
|
|
162
|
+
EarlyCheckoutApprovalModel_1.EarlyCheckoutApprovalDetails,
|
|
163
|
+
EarlyCheckoutAttachmentModel_1.EarlyCheckoutRequestAttachment,
|
|
164
|
+
EarlyCheckoutChatModel_1.EarlyCheckoutRequestChat,
|
|
165
|
+
EarlyCheckoutWorkflowModel_1.EarlyCheckoutWorkFlow
|
|
156
166
|
],
|
|
157
167
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -67,3 +67,8 @@ export * from './models/importantLinksModel';
|
|
|
67
67
|
export * from './models/DelegateSettingsModel';
|
|
68
68
|
export * from './models/AllowanceTypesModel';
|
|
69
69
|
export * from './models/BankNamesModel';
|
|
70
|
+
export * from './models/EarlyCheckoutRequestModel';
|
|
71
|
+
export * from './models/EarlyCheckoutApprovalModel';
|
|
72
|
+
export * from './models/EarlyCheckoutAttachmentModel';
|
|
73
|
+
export * from './models/EarlyCheckoutChatModel';
|
|
74
|
+
export * from './models/EarlyCheckoutWorkflowModel';
|
package/dist/index.js
CHANGED
|
@@ -83,3 +83,8 @@ __exportStar(require("./models/importantLinksModel"), exports);
|
|
|
83
83
|
__exportStar(require("./models/DelegateSettingsModel"), exports);
|
|
84
84
|
__exportStar(require("./models/AllowanceTypesModel"), exports);
|
|
85
85
|
__exportStar(require("./models/BankNamesModel"), exports);
|
|
86
|
+
__exportStar(require("./models/EarlyCheckoutRequestModel"), exports);
|
|
87
|
+
__exportStar(require("./models/EarlyCheckoutApprovalModel"), exports);
|
|
88
|
+
__exportStar(require("./models/EarlyCheckoutAttachmentModel"), exports);
|
|
89
|
+
__exportStar(require("./models/EarlyCheckoutChatModel"), exports);
|
|
90
|
+
__exportStar(require("./models/EarlyCheckoutWorkflowModel"), exports);
|
|
@@ -43,7 +43,7 @@ __decorate([
|
|
|
43
43
|
__metadata("design:type", Number)
|
|
44
44
|
], AllowanceRequests.prototype, "approved_allowance_amount", void 0);
|
|
45
45
|
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ type: '
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: false }),
|
|
47
47
|
__metadata("design:type", String)
|
|
48
48
|
], AllowanceRequests.prototype, "currency", void 0);
|
|
49
49
|
__decorate([
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum EarlyCheckoutApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
APPROVED = "Approved",
|
|
5
|
+
REJECTED = "Rejected"
|
|
6
|
+
}
|
|
7
|
+
export declare class EarlyCheckoutApprovalDetails extends BaseModel {
|
|
8
|
+
request_id: number;
|
|
9
|
+
service_id: number | null;
|
|
10
|
+
sub_service_id: number | null;
|
|
11
|
+
level: number;
|
|
12
|
+
approver_role_id: number;
|
|
13
|
+
department_id: number | null;
|
|
14
|
+
section_id: number | null;
|
|
15
|
+
approver_user_id: number | null;
|
|
16
|
+
delegate_user_id: number | null;
|
|
17
|
+
approved_by: number | null;
|
|
18
|
+
comment: string;
|
|
19
|
+
approval_status: EarlyCheckoutApprovalStatus;
|
|
20
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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.EarlyCheckoutApprovalDetails = exports.EarlyCheckoutApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var EarlyCheckoutApprovalStatus;
|
|
16
|
+
(function (EarlyCheckoutApprovalStatus) {
|
|
17
|
+
EarlyCheckoutApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
EarlyCheckoutApprovalStatus["APPROVED"] = "Approved";
|
|
19
|
+
EarlyCheckoutApprovalStatus["REJECTED"] = "Rejected";
|
|
20
|
+
})(EarlyCheckoutApprovalStatus || (exports.EarlyCheckoutApprovalStatus = EarlyCheckoutApprovalStatus = {}));
|
|
21
|
+
let EarlyCheckoutApprovalDetails = class EarlyCheckoutApprovalDetails extends BaseModel_1.BaseModel {
|
|
22
|
+
};
|
|
23
|
+
exports.EarlyCheckoutApprovalDetails = EarlyCheckoutApprovalDetails;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], EarlyCheckoutApprovalDetails.prototype, "request_id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], EarlyCheckoutApprovalDetails.prototype, "service_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], EarlyCheckoutApprovalDetails.prototype, "sub_service_id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], EarlyCheckoutApprovalDetails.prototype, "level", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], EarlyCheckoutApprovalDetails.prototype, "approver_role_id", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], EarlyCheckoutApprovalDetails.prototype, "department_id", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], EarlyCheckoutApprovalDetails.prototype, "section_id", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
|
+
], EarlyCheckoutApprovalDetails.prototype, "approver_user_id", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], EarlyCheckoutApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], EarlyCheckoutApprovalDetails.prototype, "approved_by", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true, default: '' }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], EarlyCheckoutApprovalDetails.prototype, "comment", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: EarlyCheckoutApprovalStatus, default: EarlyCheckoutApprovalStatus.PENDING, nullable: false }),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], EarlyCheckoutApprovalDetails.prototype, "approval_status", void 0);
|
|
72
|
+
exports.EarlyCheckoutApprovalDetails = EarlyCheckoutApprovalDetails = __decorate([
|
|
73
|
+
(0, typeorm_1.Entity)({ name: 'early_checkout_approvals' })
|
|
74
|
+
], EarlyCheckoutApprovalDetails);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class EarlyCheckoutRequestAttachment 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
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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.EarlyCheckoutRequestAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let EarlyCheckoutRequestAttachment = class EarlyCheckoutRequestAttachment extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.EarlyCheckoutRequestAttachment = EarlyCheckoutRequestAttachment;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], EarlyCheckoutRequestAttachment.prototype, "request_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], EarlyCheckoutRequestAttachment.prototype, "service_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], EarlyCheckoutRequestAttachment.prototype, "sub_service_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], EarlyCheckoutRequestAttachment.prototype, "file_url", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], EarlyCheckoutRequestAttachment.prototype, "file_name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], EarlyCheckoutRequestAttachment.prototype, "file_type", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], EarlyCheckoutRequestAttachment.prototype, "file_size", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], EarlyCheckoutRequestAttachment.prototype, "chat_id", void 0);
|
|
50
|
+
exports.EarlyCheckoutRequestAttachment = EarlyCheckoutRequestAttachment = __decorate([
|
|
51
|
+
(0, typeorm_1.Entity)({ name: 'early_checkout_attachments' })
|
|
52
|
+
], EarlyCheckoutRequestAttachment);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum EarlyCheckoutMessageType {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
LINK = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare class EarlyCheckoutRequestChat 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: EarlyCheckoutMessageType;
|
|
16
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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.EarlyCheckoutRequestChat = exports.EarlyCheckoutMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var EarlyCheckoutMessageType;
|
|
16
|
+
(function (EarlyCheckoutMessageType) {
|
|
17
|
+
EarlyCheckoutMessageType["TEXT"] = "text";
|
|
18
|
+
EarlyCheckoutMessageType["IMAGE"] = "image";
|
|
19
|
+
EarlyCheckoutMessageType["VIDEO"] = "video";
|
|
20
|
+
EarlyCheckoutMessageType["FILE"] = "file";
|
|
21
|
+
EarlyCheckoutMessageType["LINK"] = "link";
|
|
22
|
+
})(EarlyCheckoutMessageType || (exports.EarlyCheckoutMessageType = EarlyCheckoutMessageType = {}));
|
|
23
|
+
let EarlyCheckoutRequestChat = class EarlyCheckoutRequestChat extends BaseModel_1.BaseModel {
|
|
24
|
+
};
|
|
25
|
+
exports.EarlyCheckoutRequestChat = EarlyCheckoutRequestChat;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], EarlyCheckoutRequestChat.prototype, "request_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], EarlyCheckoutRequestChat.prototype, "service_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], EarlyCheckoutRequestChat.prototype, "sub_service_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], EarlyCheckoutRequestChat.prototype, "user_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], EarlyCheckoutRequestChat.prototype, "message", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: EarlyCheckoutMessageType, default: EarlyCheckoutMessageType.TEXT, nullable: false }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], EarlyCheckoutRequestChat.prototype, "messageType", void 0);
|
|
50
|
+
exports.EarlyCheckoutRequestChat = EarlyCheckoutRequestChat = __decorate([
|
|
51
|
+
(0, typeorm_1.Entity)({ name: 'early_checkout_chats' })
|
|
52
|
+
], EarlyCheckoutRequestChat);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum EarlyCheckoutStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
ASSIGNED = "Assigned",
|
|
5
|
+
IN_PROGRESS = "In Progress",
|
|
6
|
+
APPROVED = "Approved",
|
|
7
|
+
REJECTED = "Rejected"
|
|
8
|
+
}
|
|
9
|
+
export declare enum PurposeOfExit {
|
|
10
|
+
OFFICIAL = "Official",
|
|
11
|
+
HEALTH_RELATED = "Health Related",
|
|
12
|
+
PERSONAL = "Personal"
|
|
13
|
+
}
|
|
14
|
+
export declare enum ExitType {
|
|
15
|
+
WITHOUT_RETURN = "Exit without return",
|
|
16
|
+
WITH_RETURN = "Exit with return"
|
|
17
|
+
}
|
|
18
|
+
export declare class EarlyCheckoutRequests extends BaseModel {
|
|
19
|
+
req_user_department_id: number | null;
|
|
20
|
+
req_user_section_id: number | null;
|
|
21
|
+
service_id: number | null;
|
|
22
|
+
sub_service_id: number | null;
|
|
23
|
+
user_id: number;
|
|
24
|
+
vehicle_number: string | null;
|
|
25
|
+
exit_time: string;
|
|
26
|
+
purpose_of_exit: PurposeOfExit;
|
|
27
|
+
exit_type: ExitType;
|
|
28
|
+
return_time: string | null;
|
|
29
|
+
comments: string | null;
|
|
30
|
+
status: EarlyCheckoutStatus;
|
|
31
|
+
workflow_execution_id: string | null;
|
|
32
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
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.EarlyCheckoutRequests = exports.ExitType = exports.PurposeOfExit = exports.EarlyCheckoutStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var EarlyCheckoutStatus;
|
|
16
|
+
(function (EarlyCheckoutStatus) {
|
|
17
|
+
EarlyCheckoutStatus["PENDING"] = "Pending";
|
|
18
|
+
EarlyCheckoutStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
EarlyCheckoutStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
EarlyCheckoutStatus["APPROVED"] = "Approved";
|
|
21
|
+
EarlyCheckoutStatus["REJECTED"] = "Rejected";
|
|
22
|
+
})(EarlyCheckoutStatus || (exports.EarlyCheckoutStatus = EarlyCheckoutStatus = {}));
|
|
23
|
+
var PurposeOfExit;
|
|
24
|
+
(function (PurposeOfExit) {
|
|
25
|
+
PurposeOfExit["OFFICIAL"] = "Official";
|
|
26
|
+
PurposeOfExit["HEALTH_RELATED"] = "Health Related";
|
|
27
|
+
PurposeOfExit["PERSONAL"] = "Personal";
|
|
28
|
+
})(PurposeOfExit || (exports.PurposeOfExit = PurposeOfExit = {}));
|
|
29
|
+
var ExitType;
|
|
30
|
+
(function (ExitType) {
|
|
31
|
+
ExitType["WITHOUT_RETURN"] = "Exit without return";
|
|
32
|
+
ExitType["WITH_RETURN"] = "Exit with return";
|
|
33
|
+
})(ExitType || (exports.ExitType = ExitType = {}));
|
|
34
|
+
let EarlyCheckoutRequests = class EarlyCheckoutRequests extends BaseModel_1.BaseModel {
|
|
35
|
+
};
|
|
36
|
+
exports.EarlyCheckoutRequests = EarlyCheckoutRequests;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], EarlyCheckoutRequests.prototype, "req_user_department_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], EarlyCheckoutRequests.prototype, "req_user_section_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], EarlyCheckoutRequests.prototype, "service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], EarlyCheckoutRequests.prototype, "sub_service_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], EarlyCheckoutRequests.prototype, "user_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], EarlyCheckoutRequests.prototype, "vehicle_number", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: false }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], EarlyCheckoutRequests.prototype, "exit_time", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: PurposeOfExit, nullable: false }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], EarlyCheckoutRequests.prototype, "purpose_of_exit", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: ExitType, nullable: false }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], EarlyCheckoutRequests.prototype, "exit_type", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: true }),
|
|
75
|
+
__metadata("design:type", Object)
|
|
76
|
+
], EarlyCheckoutRequests.prototype, "return_time", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
79
|
+
__metadata("design:type", Object)
|
|
80
|
+
], EarlyCheckoutRequests.prototype, "comments", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: EarlyCheckoutStatus, default: EarlyCheckoutStatus.PENDING, nullable: false }),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], EarlyCheckoutRequests.prototype, "status", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
87
|
+
__metadata("design:type", Object)
|
|
88
|
+
], EarlyCheckoutRequests.prototype, "workflow_execution_id", void 0);
|
|
89
|
+
exports.EarlyCheckoutRequests = EarlyCheckoutRequests = __decorate([
|
|
90
|
+
(0, typeorm_1.Entity)({ name: 'early_checkout_requests' })
|
|
91
|
+
], EarlyCheckoutRequests);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum EarlyCheckoutWorkFlowStatus {
|
|
3
|
+
COMPLETED = "Completed",
|
|
4
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
+
PENDING = "Pending"
|
|
6
|
+
}
|
|
7
|
+
export declare class EarlyCheckoutWorkFlow extends BaseModel {
|
|
8
|
+
request_id: number;
|
|
9
|
+
service_id: number | null;
|
|
10
|
+
sub_service_id: number | null;
|
|
11
|
+
content: string;
|
|
12
|
+
status: EarlyCheckoutWorkFlowStatus;
|
|
13
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.EarlyCheckoutWorkFlow = exports.EarlyCheckoutWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var EarlyCheckoutWorkFlowStatus;
|
|
16
|
+
(function (EarlyCheckoutWorkFlowStatus) {
|
|
17
|
+
EarlyCheckoutWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
+
EarlyCheckoutWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
+
EarlyCheckoutWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
+
})(EarlyCheckoutWorkFlowStatus || (exports.EarlyCheckoutWorkFlowStatus = EarlyCheckoutWorkFlowStatus = {}));
|
|
21
|
+
let EarlyCheckoutWorkFlow = class EarlyCheckoutWorkFlow extends BaseModel_1.BaseModel {
|
|
22
|
+
};
|
|
23
|
+
exports.EarlyCheckoutWorkFlow = EarlyCheckoutWorkFlow;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], EarlyCheckoutWorkFlow.prototype, "request_id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], EarlyCheckoutWorkFlow.prototype, "service_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], EarlyCheckoutWorkFlow.prototype, "sub_service_id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], EarlyCheckoutWorkFlow.prototype, "content", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: EarlyCheckoutWorkFlowStatus, default: EarlyCheckoutWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], EarlyCheckoutWorkFlow.prototype, "status", void 0);
|
|
44
|
+
exports.EarlyCheckoutWorkFlow = EarlyCheckoutWorkFlow = __decorate([
|
|
45
|
+
(0, typeorm_1.Entity)({ name: 'early_checkout_workflows' })
|
|
46
|
+
], EarlyCheckoutWorkFlow);
|
|
@@ -0,0 +1,34 @@
|
|
|
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.HelpContentMappedCategories = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let HelpContentMappedCategories = class HelpContentMappedCategories extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(help_content_category_Id, help_content_Id) {
|
|
17
|
+
super();
|
|
18
|
+
this.help_content_category_Id = help_content_category_Id,
|
|
19
|
+
this.help_content_Id = help_content_Id;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.HelpContentMappedCategories = HelpContentMappedCategories;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], HelpContentMappedCategories.prototype, "help_content_category_Id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], HelpContentMappedCategories.prototype, "help_content_Id", void 0);
|
|
31
|
+
exports.HelpContentMappedCategories = HelpContentMappedCategories = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)({ name: 'help_content_mapped_categories' }),
|
|
33
|
+
__metadata("design:paramtypes", [Number, Number])
|
|
34
|
+
], HelpContentMappedCategories);
|
|
@@ -0,0 +1,34 @@
|
|
|
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.HelpContentMappedTags = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let HelpContentMappedTags = class HelpContentMappedTags extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(help_content_tag_Id, help_content_Id) {
|
|
17
|
+
super();
|
|
18
|
+
this.help_content_tag_Id = help_content_tag_Id,
|
|
19
|
+
this.help_content_Id = help_content_Id;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.HelpContentMappedTags = HelpContentMappedTags;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], HelpContentMappedTags.prototype, "help_content_tag_Id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], HelpContentMappedTags.prototype, "help_content_Id", void 0);
|
|
31
|
+
exports.HelpContentMappedTags = HelpContentMappedTags = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)({ name: 'help_content_mapped_tags' }),
|
|
33
|
+
__metadata("design:paramtypes", [Number, Number])
|
|
34
|
+
], HelpContentMappedTags);
|
|
@@ -0,0 +1,29 @@
|
|
|
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.HelpContentTags = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let HelpContentTags = class HelpContentTags extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(name) {
|
|
17
|
+
super();
|
|
18
|
+
this.name = name;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
exports.HelpContentTags = HelpContentTags;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], HelpContentTags.prototype, "name", void 0);
|
|
26
|
+
exports.HelpContentTags = HelpContentTags = __decorate([
|
|
27
|
+
(0, typeorm_1.Entity)({ name: 'help_content_tags' }),
|
|
28
|
+
__metadata("design:paramtypes", [String])
|
|
29
|
+
], HelpContentTags);
|
|
@@ -0,0 +1,34 @@
|
|
|
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.QuestionTags = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let QuestionTags = class QuestionTags extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(name, question_Id) {
|
|
17
|
+
super();
|
|
18
|
+
this.name = name,
|
|
19
|
+
this.question_Id = question_Id;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.QuestionTags = QuestionTags;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], QuestionTags.prototype, "name", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], QuestionTags.prototype, "question_Id", void 0);
|
|
31
|
+
exports.QuestionTags = QuestionTags = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)({ name: 'question_tags' }),
|
|
33
|
+
__metadata("design:paramtypes", [String, Number])
|
|
34
|
+
], QuestionTags);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -70,6 +70,11 @@ import { FinancialAttachments } from './models/FinancialAttachmentsModel';
|
|
|
70
70
|
import { RequestTypeMaster } from './models/RequestTypeMasterModel';
|
|
71
71
|
import { AllowanceTypes } from './models/AllowanceTypesModel';
|
|
72
72
|
import { BankNames } from './models/BankNamesModel';
|
|
73
|
+
import { EarlyCheckoutRequests } from './models/EarlyCheckoutRequestModel';
|
|
74
|
+
import { EarlyCheckoutApprovalDetails } from './models/EarlyCheckoutApprovalModel';
|
|
75
|
+
import { EarlyCheckoutRequestAttachment } from './models/EarlyCheckoutAttachmentModel';
|
|
76
|
+
import { EarlyCheckoutRequestChat } from './models/EarlyCheckoutChatModel';
|
|
77
|
+
import { EarlyCheckoutWorkFlow } from './models/EarlyCheckoutWorkflowModel';
|
|
73
78
|
|
|
74
79
|
|
|
75
80
|
import { WorkflowTask } from './models/WorkflowTask';
|
|
@@ -159,5 +164,10 @@ export const AppDataSource = new DataSource({
|
|
|
159
164
|
DelegateSettings,
|
|
160
165
|
AllowanceTypes,
|
|
161
166
|
BankNames
|
|
167
|
+
,EarlyCheckoutRequests
|
|
168
|
+
,EarlyCheckoutApprovalDetails
|
|
169
|
+
,EarlyCheckoutRequestAttachment
|
|
170
|
+
,EarlyCheckoutRequestChat
|
|
171
|
+
,EarlyCheckoutWorkFlow
|
|
162
172
|
],
|
|
163
173
|
});
|
package/src/index.ts
CHANGED
|
@@ -67,3 +67,8 @@ export * from './models/importantLinksModel';
|
|
|
67
67
|
export * from './models/DelegateSettingsModel';
|
|
68
68
|
export * from './models/AllowanceTypesModel';
|
|
69
69
|
export * from './models/BankNamesModel';
|
|
70
|
+
export * from './models/EarlyCheckoutRequestModel';
|
|
71
|
+
export * from './models/EarlyCheckoutApprovalModel';
|
|
72
|
+
export * from './models/EarlyCheckoutAttachmentModel';
|
|
73
|
+
export * from './models/EarlyCheckoutChatModel';
|
|
74
|
+
export * from './models/EarlyCheckoutWorkflowModel';
|
|
@@ -16,7 +16,7 @@ export class AllowanceRequests extends BaseModel {
|
|
|
16
16
|
@Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
|
|
17
17
|
approved_allowance_amount: number;
|
|
18
18
|
|
|
19
|
-
@Column({ type: '
|
|
19
|
+
@Column({ type: 'varchar', nullable: false })
|
|
20
20
|
currency : string;
|
|
21
21
|
|
|
22
22
|
@Column({ type: 'varchar', length: 10, nullable: true })
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum EarlyCheckoutApprovalStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
APPROVED = "Approved",
|
|
7
|
+
REJECTED = "Rejected"
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@Entity({ name: 'early_checkout_approvals' })
|
|
11
|
+
export class EarlyCheckoutApprovalDetails extends BaseModel {
|
|
12
|
+
@Column({ type: 'integer', nullable: false })
|
|
13
|
+
request_id: number;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'integer', nullable: true })
|
|
16
|
+
service_id: number | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'integer', nullable: true })
|
|
19
|
+
sub_service_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'integer', nullable: false })
|
|
22
|
+
level: number;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'integer', nullable: false })
|
|
25
|
+
approver_role_id: number;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'integer', nullable: true })
|
|
28
|
+
department_id: number | null;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'integer', nullable: true })
|
|
31
|
+
section_id: number | null;
|
|
32
|
+
|
|
33
|
+
@Column({ type: 'integer', nullable: true })
|
|
34
|
+
approver_user_id: number | null;
|
|
35
|
+
|
|
36
|
+
@Column({ type: 'integer', nullable: true })
|
|
37
|
+
delegate_user_id: number | null;
|
|
38
|
+
|
|
39
|
+
@Column({ type: 'integer', nullable: true })
|
|
40
|
+
approved_by: number | null;
|
|
41
|
+
|
|
42
|
+
@Column({ type: 'varchar', length: 500, nullable: true, default: '' })
|
|
43
|
+
comment: string;
|
|
44
|
+
|
|
45
|
+
@Column({ type: 'enum', enum: EarlyCheckoutApprovalStatus, default: EarlyCheckoutApprovalStatus.PENDING, nullable: false })
|
|
46
|
+
approval_status: EarlyCheckoutApprovalStatus;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'early_checkout_attachments' })
|
|
5
|
+
export class EarlyCheckoutRequestAttachment extends BaseModel {
|
|
6
|
+
|
|
7
|
+
@Column({ type: 'integer', nullable: false })
|
|
8
|
+
request_id: number;
|
|
9
|
+
|
|
10
|
+
@Column({ type: 'integer', nullable: true })
|
|
11
|
+
service_id: number | null;
|
|
12
|
+
|
|
13
|
+
@Column({ type: 'integer', nullable: true })
|
|
14
|
+
sub_service_id: number | null;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
17
|
+
file_url: string;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
20
|
+
file_name: string;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
23
|
+
file_type: string;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'bigint', nullable: true })
|
|
26
|
+
file_size: number | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'integer', nullable: true })
|
|
29
|
+
chat_id: number | null;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum EarlyCheckoutMessageType {
|
|
5
|
+
TEXT = "text",
|
|
6
|
+
IMAGE = "image",
|
|
7
|
+
VIDEO = "video",
|
|
8
|
+
FILE = "file",
|
|
9
|
+
LINK = "link"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: 'early_checkout_chats' })
|
|
13
|
+
export class EarlyCheckoutRequestChat extends BaseModel {
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'integer', nullable: false })
|
|
16
|
+
request_id: number;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'integer', nullable: true })
|
|
19
|
+
service_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'integer', nullable: true })
|
|
22
|
+
sub_service_id: number | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'integer', nullable: false })
|
|
25
|
+
user_id: number;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'text', nullable: false })
|
|
28
|
+
message: string;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'enum', enum: EarlyCheckoutMessageType, default: EarlyCheckoutMessageType.TEXT, nullable: false })
|
|
31
|
+
messageType: EarlyCheckoutMessageType;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum EarlyCheckoutStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
ASSIGNED = "Assigned",
|
|
7
|
+
IN_PROGRESS = "In Progress",
|
|
8
|
+
APPROVED = "Approved",
|
|
9
|
+
REJECTED = "Rejected"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export enum PurposeOfExit {
|
|
13
|
+
OFFICIAL = "Official",
|
|
14
|
+
HEALTH_RELATED = "Health Related",
|
|
15
|
+
PERSONAL = "Personal"
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export enum ExitType {
|
|
19
|
+
WITHOUT_RETURN = "Exit without return",
|
|
20
|
+
WITH_RETURN = "Exit with return"
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@Entity({ name: 'early_checkout_requests' })
|
|
24
|
+
export class EarlyCheckoutRequests extends BaseModel {
|
|
25
|
+
|
|
26
|
+
@Column({ type: 'int', nullable: true })
|
|
27
|
+
req_user_department_id: number | null;
|
|
28
|
+
|
|
29
|
+
@Column({ type: 'int', nullable: true })
|
|
30
|
+
req_user_section_id: number | null;
|
|
31
|
+
|
|
32
|
+
@Column({ type: 'int', nullable: true })
|
|
33
|
+
service_id: number | null;
|
|
34
|
+
|
|
35
|
+
@Column({ type: 'int', nullable: true })
|
|
36
|
+
sub_service_id: number | null;
|
|
37
|
+
|
|
38
|
+
@Column({ type: 'int', nullable: false })
|
|
39
|
+
user_id: number;
|
|
40
|
+
|
|
41
|
+
// New columns
|
|
42
|
+
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
43
|
+
vehicle_number: string | null;
|
|
44
|
+
|
|
45
|
+
@Column({ type: 'time', nullable: false })
|
|
46
|
+
exit_time: string;
|
|
47
|
+
|
|
48
|
+
@Column({ type: 'enum', enum: PurposeOfExit, nullable: false })
|
|
49
|
+
purpose_of_exit: PurposeOfExit;
|
|
50
|
+
|
|
51
|
+
@Column({ type: 'enum', enum: ExitType, nullable: false })
|
|
52
|
+
exit_type: ExitType;
|
|
53
|
+
|
|
54
|
+
@Column({ type: 'time', nullable: true })
|
|
55
|
+
return_time: string | null;
|
|
56
|
+
|
|
57
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
58
|
+
comments: string | null;
|
|
59
|
+
|
|
60
|
+
@Column({ type: 'enum', enum: EarlyCheckoutStatus, default: EarlyCheckoutStatus.PENDING, nullable: false })
|
|
61
|
+
status: EarlyCheckoutStatus;
|
|
62
|
+
|
|
63
|
+
@Column({ type: 'varchar', nullable: true })
|
|
64
|
+
workflow_execution_id: string | null;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum EarlyCheckoutWorkFlowStatus {
|
|
5
|
+
COMPLETED = "Completed",
|
|
6
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
7
|
+
PENDING = "Pending"
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@Entity({ name: 'early_checkout_workflows' })
|
|
11
|
+
export class EarlyCheckoutWorkFlow extends BaseModel {
|
|
12
|
+
@Column({ type: 'integer', nullable: false })
|
|
13
|
+
request_id: number;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'integer', nullable: true })
|
|
16
|
+
service_id: number | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'integer', nullable: true })
|
|
19
|
+
sub_service_id: number | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
22
|
+
content: string;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'enum', enum: EarlyCheckoutWorkFlowStatus, default: EarlyCheckoutWorkFlowStatus.NOT_YET_STARTED, nullable: false })
|
|
25
|
+
status: EarlyCheckoutWorkFlowStatus;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|