@platform-modules/foreign-ministry 1.3.290 → 1.3.297
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data-source.js +50 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +77 -1
- package/dist/models/EmployeeOfMonthNominationApprovalModel.d.ts +22 -0
- package/dist/models/EmployeeOfMonthNominationApprovalModel.js +85 -0
- package/dist/models/EmployeeOfMonthNominationAttachmentModel.d.ts +10 -0
- package/dist/models/EmployeeOfMonthNominationAttachmentModel.js +48 -0
- package/dist/models/EmployeeOfMonthNominationChatModel.d.ts +18 -0
- package/dist/models/EmployeeOfMonthNominationChatModel.js +66 -0
- package/dist/models/EmployeeOfMonthNominationRequestModel.d.ts +32 -0
- package/dist/models/EmployeeOfMonthNominationRequestModel.js +77 -0
- package/dist/models/EmployeeOfMonthNominationWorkflowModel.d.ts +19 -0
- package/dist/models/EmployeeOfMonthNominationWorkflowModel.js +73 -0
- package/dist/models/EmployeeOfMonthSupportNominationApprovalModel.d.ts +22 -0
- package/dist/models/EmployeeOfMonthSupportNominationApprovalModel.js +85 -0
- package/dist/models/EmployeeOfMonthSupportNominationAttachmentModel.d.ts +10 -0
- package/dist/models/EmployeeOfMonthSupportNominationAttachmentModel.js +48 -0
- package/dist/models/EmployeeOfMonthSupportNominationChatModel.d.ts +18 -0
- package/dist/models/EmployeeOfMonthSupportNominationChatModel.js +66 -0
- package/dist/models/EmployeeOfMonthSupportNominationRequestModel.d.ts +27 -0
- package/dist/models/EmployeeOfMonthSupportNominationRequestModel.js +77 -0
- package/dist/models/EmployeeOfMonthSupportNominationWorkflowModel.d.ts +19 -0
- package/dist/models/EmployeeOfMonthSupportNominationWorkflowModel.js +73 -0
- package/dist/models/InitiatorEmployeeNominationApprovalModel.d.ts +22 -0
- package/dist/models/InitiatorEmployeeNominationApprovalModel.js +84 -0
- package/dist/models/InitiatorEmployeeNominationAttachmentModel.d.ts +11 -0
- package/dist/models/InitiatorEmployeeNominationAttachmentModel.js +52 -0
- package/dist/models/InitiatorEmployeeNominationChatModel.d.ts +18 -0
- package/dist/models/InitiatorEmployeeNominationChatModel.js +65 -0
- package/dist/models/InitiatorEmployeeNominationRequestModel.d.ts +51 -0
- package/dist/models/InitiatorEmployeeNominationRequestModel.js +95 -0
- package/dist/models/InitiatorEmployeeNominationWorkflowModel.d.ts +19 -0
- package/dist/models/InitiatorEmployeeNominationWorkflowModel.js +72 -0
- package/dist/models/InnovativeEmployeeNominationApprovalModel.d.ts +22 -0
- package/dist/models/InnovativeEmployeeNominationApprovalModel.js +84 -0
- package/dist/models/InnovativeEmployeeNominationAttachmentModel.d.ts +11 -0
- package/dist/models/InnovativeEmployeeNominationAttachmentModel.js +52 -0
- package/dist/models/InnovativeEmployeeNominationChatModel.d.ts +18 -0
- package/dist/models/InnovativeEmployeeNominationChatModel.js +65 -0
- package/dist/models/InnovativeEmployeeNominationRequestModel.d.ts +23 -0
- package/dist/models/InnovativeEmployeeNominationRequestModel.js +88 -0
- package/dist/models/InnovativeEmployeeNominationWorkflowModel.d.ts +19 -0
- package/dist/models/InnovativeEmployeeNominationWorkflowModel.js +72 -0
- package/dist/models/IpeGrievanceApprovalModel.d.ts +22 -0
- package/dist/models/IpeGrievanceApprovalModel.js +84 -0
- package/dist/models/IpeGrievanceAttachmentModel.d.ts +11 -0
- package/dist/models/IpeGrievanceAttachmentModel.js +52 -0
- package/dist/models/IpeGrievanceChatModel.d.ts +18 -0
- package/dist/models/IpeGrievanceChatModel.js +65 -0
- package/dist/models/IpeGrievanceRequestModel.d.ts +57 -0
- package/dist/models/IpeGrievanceRequestModel.js +178 -0
- package/dist/models/IpeGrievanceWorkflowModel.d.ts +19 -0
- package/dist/models/IpeGrievanceWorkflowModel.js +72 -0
- package/package.json +1 -1
- package/src/data-source.ts +50 -0
- package/src/index.ts +93 -0
- package/src/models/EmployeeOfMonthNominationApprovalModel.ts +57 -0
- package/src/models/EmployeeOfMonthNominationAttachmentModel.ts +26 -0
- package/src/models/EmployeeOfMonthNominationChatModel.ts +43 -0
- package/src/models/EmployeeOfMonthNominationRequestModel.ts +64 -0
- package/src/models/EmployeeOfMonthNominationWorkflowModel.ts +48 -0
- package/src/models/EmployeeOfMonthSupportNominationApprovalModel.ts +57 -0
- package/src/models/EmployeeOfMonthSupportNominationAttachmentModel.ts +26 -0
- package/src/models/EmployeeOfMonthSupportNominationChatModel.ts +43 -0
- package/src/models/EmployeeOfMonthSupportNominationRequestModel.ts +59 -0
- package/src/models/EmployeeOfMonthSupportNominationWorkflowModel.ts +48 -0
- package/src/models/InitiatorEmployeeNominationApprovalModel.ts +56 -0
- package/src/models/InitiatorEmployeeNominationAttachmentModel.ts +29 -0
- package/src/models/InitiatorEmployeeNominationChatModel.ts +42 -0
- package/src/models/InitiatorEmployeeNominationRequestModel.ts +74 -0
- package/src/models/InitiatorEmployeeNominationWorkflowModel.ts +47 -0
- package/src/models/InnovativeEmployeeNominationApprovalModel.ts +56 -0
- package/src/models/InnovativeEmployeeNominationAttachmentModel.ts +29 -0
- package/src/models/InnovativeEmployeeNominationChatModel.ts +42 -0
- package/src/models/InnovativeEmployeeNominationRequestModel.ts +59 -0
- package/src/models/InnovativeEmployeeNominationWorkflowModel.ts +47 -0
- package/src/models/IpeGrievanceApprovalModel.ts +56 -0
- package/src/models/IpeGrievanceAttachmentModel.ts +29 -0
- package/src/models/IpeGrievanceChatModel.ts +42 -0
- package/src/models/IpeGrievanceRequestModel.ts +139 -0
- package/src/models/IpeGrievanceWorkflowModel.ts +47 -0
- package/scripts/migration-employee-evaluation-approval-role-null.sql +0 -11
- package/scripts/migration-employee-evaluation-request-v2.sql +0 -63
- package/scripts/migration-evaluation-max-employees-per-request.sql +0 -2
|
@@ -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.InitiatorEmployeeNominationRequestAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let InitiatorEmployeeNominationRequestAttachment = class InitiatorEmployeeNominationRequestAttachment extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.InitiatorEmployeeNominationRequestAttachment = InitiatorEmployeeNominationRequestAttachment;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], InitiatorEmployeeNominationRequestAttachment.prototype, "request_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], InitiatorEmployeeNominationRequestAttachment.prototype, "service_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], InitiatorEmployeeNominationRequestAttachment.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
|
+
], InitiatorEmployeeNominationRequestAttachment.prototype, "file_url", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], InitiatorEmployeeNominationRequestAttachment.prototype, "file_name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], InitiatorEmployeeNominationRequestAttachment.prototype, "file_type", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], InitiatorEmployeeNominationRequestAttachment.prototype, "file_size", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], InitiatorEmployeeNominationRequestAttachment.prototype, "chat_id", void 0);
|
|
50
|
+
exports.InitiatorEmployeeNominationRequestAttachment = InitiatorEmployeeNominationRequestAttachment = __decorate([
|
|
51
|
+
(0, typeorm_1.Entity)({ name: 'initiator_employee_nomination_attachments' })
|
|
52
|
+
], InitiatorEmployeeNominationRequestAttachment);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum InitiatorEmployeeNominationMessageType {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
LINK = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare class InitiatorEmployeeNominationRequestChat extends BaseModel {
|
|
10
|
+
request_id: number;
|
|
11
|
+
service_id: number | null;
|
|
12
|
+
sub_service_id: number | null;
|
|
13
|
+
user_id: number;
|
|
14
|
+
role_id: number | null;
|
|
15
|
+
message: string;
|
|
16
|
+
message_type: InitiatorEmployeeNominationMessageType;
|
|
17
|
+
status: string | null;
|
|
18
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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.InitiatorEmployeeNominationRequestChat = exports.InitiatorEmployeeNominationMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var InitiatorEmployeeNominationMessageType;
|
|
16
|
+
(function (InitiatorEmployeeNominationMessageType) {
|
|
17
|
+
InitiatorEmployeeNominationMessageType["TEXT"] = "text";
|
|
18
|
+
InitiatorEmployeeNominationMessageType["IMAGE"] = "image";
|
|
19
|
+
InitiatorEmployeeNominationMessageType["VIDEO"] = "video";
|
|
20
|
+
InitiatorEmployeeNominationMessageType["FILE"] = "file";
|
|
21
|
+
InitiatorEmployeeNominationMessageType["LINK"] = "link";
|
|
22
|
+
})(InitiatorEmployeeNominationMessageType || (exports.InitiatorEmployeeNominationMessageType = InitiatorEmployeeNominationMessageType = {}));
|
|
23
|
+
let InitiatorEmployeeNominationRequestChat = class InitiatorEmployeeNominationRequestChat extends BaseModel_1.BaseModel {
|
|
24
|
+
};
|
|
25
|
+
exports.InitiatorEmployeeNominationRequestChat = InitiatorEmployeeNominationRequestChat;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], InitiatorEmployeeNominationRequestChat.prototype, "request_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], InitiatorEmployeeNominationRequestChat.prototype, "service_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], InitiatorEmployeeNominationRequestChat.prototype, "sub_service_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], InitiatorEmployeeNominationRequestChat.prototype, "user_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], InitiatorEmployeeNominationRequestChat.prototype, "role_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], InitiatorEmployeeNominationRequestChat.prototype, "message", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({
|
|
52
|
+
type: 'enum',
|
|
53
|
+
enum: InitiatorEmployeeNominationMessageType,
|
|
54
|
+
default: InitiatorEmployeeNominationMessageType.TEXT,
|
|
55
|
+
nullable: false,
|
|
56
|
+
}),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], InitiatorEmployeeNominationRequestChat.prototype, "message_type", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], InitiatorEmployeeNominationRequestChat.prototype, "status", void 0);
|
|
63
|
+
exports.InitiatorEmployeeNominationRequestChat = InitiatorEmployeeNominationRequestChat = __decorate([
|
|
64
|
+
(0, typeorm_1.Entity)({ name: 'initiator_employee_nomination_chats' })
|
|
65
|
+
], InitiatorEmployeeNominationRequestChat);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum InitiatorEmployeeNominationRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare enum InitiatorInitiativeType {
|
|
9
|
+
SAVE_COSTS_EFFORT_TIME = "Save Costs, Effort or Time",
|
|
10
|
+
INCREASE_EMPLOYEE_SATISFACTION = "Increase employee satisfaction",
|
|
11
|
+
IMPROVE_WORK_ENVIRONMENT = "Improve the work environment",
|
|
12
|
+
OTHER = "Other"
|
|
13
|
+
}
|
|
14
|
+
export type InitiatorNominationRatingScores = {
|
|
15
|
+
impact_on_workflow: {
|
|
16
|
+
score: number;
|
|
17
|
+
max_grade: number;
|
|
18
|
+
};
|
|
19
|
+
implementation_ability: {
|
|
20
|
+
score: number;
|
|
21
|
+
max_grade: number;
|
|
22
|
+
};
|
|
23
|
+
long_term_results: {
|
|
24
|
+
score: number;
|
|
25
|
+
max_grade: number;
|
|
26
|
+
};
|
|
27
|
+
additional_responsibilities: {
|
|
28
|
+
score: number;
|
|
29
|
+
max_grade: number;
|
|
30
|
+
};
|
|
31
|
+
overall_entrepreneurship: {
|
|
32
|
+
score: number;
|
|
33
|
+
max_grade: number;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export declare class InitiatorEmployeeNominationRequests extends BaseModel {
|
|
37
|
+
req_user_department_id: number | null;
|
|
38
|
+
req_user_section_id: number | null;
|
|
39
|
+
service_id: number | null;
|
|
40
|
+
sub_service_id: number | null;
|
|
41
|
+
user_id: number;
|
|
42
|
+
job_number: string;
|
|
43
|
+
last_annual_assessment: string;
|
|
44
|
+
initiative_title: string;
|
|
45
|
+
initiative_description: string;
|
|
46
|
+
initiative_types: string[];
|
|
47
|
+
rating_scores: InitiatorNominationRatingScores;
|
|
48
|
+
status: InitiatorEmployeeNominationRequestStatus;
|
|
49
|
+
workflow_execution_id: string | null;
|
|
50
|
+
comments: string | null;
|
|
51
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
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.InitiatorEmployeeNominationRequests = exports.InitiatorInitiativeType = exports.InitiatorEmployeeNominationRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var InitiatorEmployeeNominationRequestStatus;
|
|
16
|
+
(function (InitiatorEmployeeNominationRequestStatus) {
|
|
17
|
+
InitiatorEmployeeNominationRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
InitiatorEmployeeNominationRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
InitiatorEmployeeNominationRequestStatus["APPROVED"] = "Approved";
|
|
20
|
+
InitiatorEmployeeNominationRequestStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(InitiatorEmployeeNominationRequestStatus || (exports.InitiatorEmployeeNominationRequestStatus = InitiatorEmployeeNominationRequestStatus = {}));
|
|
22
|
+
var InitiatorInitiativeType;
|
|
23
|
+
(function (InitiatorInitiativeType) {
|
|
24
|
+
InitiatorInitiativeType["SAVE_COSTS_EFFORT_TIME"] = "Save Costs, Effort or Time";
|
|
25
|
+
InitiatorInitiativeType["INCREASE_EMPLOYEE_SATISFACTION"] = "Increase employee satisfaction";
|
|
26
|
+
InitiatorInitiativeType["IMPROVE_WORK_ENVIRONMENT"] = "Improve the work environment";
|
|
27
|
+
InitiatorInitiativeType["OTHER"] = "Other";
|
|
28
|
+
})(InitiatorInitiativeType || (exports.InitiatorInitiativeType = InitiatorInitiativeType = {}));
|
|
29
|
+
let InitiatorEmployeeNominationRequests = class InitiatorEmployeeNominationRequests extends BaseModel_1.BaseModel {
|
|
30
|
+
};
|
|
31
|
+
exports.InitiatorEmployeeNominationRequests = InitiatorEmployeeNominationRequests;
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], InitiatorEmployeeNominationRequests.prototype, "req_user_department_id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
38
|
+
__metadata("design:type", Object)
|
|
39
|
+
], InitiatorEmployeeNominationRequests.prototype, "req_user_section_id", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
42
|
+
__metadata("design:type", Object)
|
|
43
|
+
], InitiatorEmployeeNominationRequests.prototype, "service_id", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], InitiatorEmployeeNominationRequests.prototype, "sub_service_id", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], InitiatorEmployeeNominationRequests.prototype, "user_id", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 120, nullable: false }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], InitiatorEmployeeNominationRequests.prototype, "job_number", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], InitiatorEmployeeNominationRequests.prototype, "last_annual_assessment", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], InitiatorEmployeeNominationRequests.prototype, "initiative_title", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], InitiatorEmployeeNominationRequests.prototype, "initiative_description", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: false }),
|
|
70
|
+
__metadata("design:type", Array)
|
|
71
|
+
], InitiatorEmployeeNominationRequests.prototype, "initiative_types", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: false }),
|
|
74
|
+
__metadata("design:type", Object)
|
|
75
|
+
], InitiatorEmployeeNominationRequests.prototype, "rating_scores", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({
|
|
78
|
+
type: 'enum',
|
|
79
|
+
enum: InitiatorEmployeeNominationRequestStatus,
|
|
80
|
+
default: InitiatorEmployeeNominationRequestStatus.PENDING,
|
|
81
|
+
nullable: false,
|
|
82
|
+
}),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], InitiatorEmployeeNominationRequests.prototype, "status", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
87
|
+
__metadata("design:type", Object)
|
|
88
|
+
], InitiatorEmployeeNominationRequests.prototype, "workflow_execution_id", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
91
|
+
__metadata("design:type", Object)
|
|
92
|
+
], InitiatorEmployeeNominationRequests.prototype, "comments", void 0);
|
|
93
|
+
exports.InitiatorEmployeeNominationRequests = InitiatorEmployeeNominationRequests = __decorate([
|
|
94
|
+
(0, typeorm_1.Entity)({ name: 'initiator_employee_nomination_requests' })
|
|
95
|
+
], InitiatorEmployeeNominationRequests);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum InitiatorEmployeeNominationWorkFlowStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
COMPLETED = "Completed",
|
|
6
|
+
SKIPPED = "Skipped"
|
|
7
|
+
}
|
|
8
|
+
export declare class InitiatorEmployeeNominationWorkFlow extends BaseModel {
|
|
9
|
+
request_id: number;
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
sub_service_id: number | null;
|
|
12
|
+
user_id: number | null;
|
|
13
|
+
role_id: number | null;
|
|
14
|
+
department_id: number | null;
|
|
15
|
+
section_id: number | null;
|
|
16
|
+
task_name: string | null;
|
|
17
|
+
description: string | null;
|
|
18
|
+
status: InitiatorEmployeeNominationWorkFlowStatus;
|
|
19
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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.InitiatorEmployeeNominationWorkFlow = exports.InitiatorEmployeeNominationWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var InitiatorEmployeeNominationWorkFlowStatus;
|
|
16
|
+
(function (InitiatorEmployeeNominationWorkFlowStatus) {
|
|
17
|
+
InitiatorEmployeeNominationWorkFlowStatus["PENDING"] = "Pending";
|
|
18
|
+
InitiatorEmployeeNominationWorkFlowStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
InitiatorEmployeeNominationWorkFlowStatus["COMPLETED"] = "Completed";
|
|
20
|
+
InitiatorEmployeeNominationWorkFlowStatus["SKIPPED"] = "Skipped";
|
|
21
|
+
})(InitiatorEmployeeNominationWorkFlowStatus || (exports.InitiatorEmployeeNominationWorkFlowStatus = InitiatorEmployeeNominationWorkFlowStatus = {}));
|
|
22
|
+
let InitiatorEmployeeNominationWorkFlow = class InitiatorEmployeeNominationWorkFlow extends BaseModel_1.BaseModel {
|
|
23
|
+
};
|
|
24
|
+
exports.InitiatorEmployeeNominationWorkFlow = InitiatorEmployeeNominationWorkFlow;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], InitiatorEmployeeNominationWorkFlow.prototype, "request_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], InitiatorEmployeeNominationWorkFlow.prototype, "service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], InitiatorEmployeeNominationWorkFlow.prototype, "sub_service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], InitiatorEmployeeNominationWorkFlow.prototype, "user_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], InitiatorEmployeeNominationWorkFlow.prototype, "role_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], InitiatorEmployeeNominationWorkFlow.prototype, "department_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], InitiatorEmployeeNominationWorkFlow.prototype, "section_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], InitiatorEmployeeNominationWorkFlow.prototype, "task_name", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], InitiatorEmployeeNominationWorkFlow.prototype, "description", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({
|
|
63
|
+
type: 'enum',
|
|
64
|
+
enum: InitiatorEmployeeNominationWorkFlowStatus,
|
|
65
|
+
default: InitiatorEmployeeNominationWorkFlowStatus.PENDING,
|
|
66
|
+
nullable: false,
|
|
67
|
+
}),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], InitiatorEmployeeNominationWorkFlow.prototype, "status", void 0);
|
|
70
|
+
exports.InitiatorEmployeeNominationWorkFlow = InitiatorEmployeeNominationWorkFlow = __decorate([
|
|
71
|
+
(0, typeorm_1.Entity)({ name: 'initiator_employee_nomination_workflows' })
|
|
72
|
+
], InitiatorEmployeeNominationWorkFlow);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum InnovativeEmployeeNominationApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class InnovativeEmployeeNominationApprovalDetails extends BaseModel {
|
|
9
|
+
request_id: number;
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
sub_service_id: number | null;
|
|
12
|
+
level: number;
|
|
13
|
+
approver_role_id: number | null;
|
|
14
|
+
department_id: number | null;
|
|
15
|
+
section_id: number | null;
|
|
16
|
+
approver_user_id: number | null;
|
|
17
|
+
delegate_user_id: number | null;
|
|
18
|
+
approved_by: number | null;
|
|
19
|
+
comment: string;
|
|
20
|
+
approval_status: InnovativeEmployeeNominationApprovalStatus;
|
|
21
|
+
is_allowed: boolean;
|
|
22
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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.InnovativeEmployeeNominationApprovalDetails = exports.InnovativeEmployeeNominationApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var InnovativeEmployeeNominationApprovalStatus;
|
|
16
|
+
(function (InnovativeEmployeeNominationApprovalStatus) {
|
|
17
|
+
InnovativeEmployeeNominationApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
InnovativeEmployeeNominationApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
InnovativeEmployeeNominationApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
InnovativeEmployeeNominationApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(InnovativeEmployeeNominationApprovalStatus || (exports.InnovativeEmployeeNominationApprovalStatus = InnovativeEmployeeNominationApprovalStatus = {}));
|
|
22
|
+
let InnovativeEmployeeNominationApprovalDetails = class InnovativeEmployeeNominationApprovalDetails extends BaseModel_1.BaseModel {
|
|
23
|
+
};
|
|
24
|
+
exports.InnovativeEmployeeNominationApprovalDetails = InnovativeEmployeeNominationApprovalDetails;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], InnovativeEmployeeNominationApprovalDetails.prototype, "request_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], InnovativeEmployeeNominationApprovalDetails.prototype, "service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], InnovativeEmployeeNominationApprovalDetails.prototype, "sub_service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], InnovativeEmployeeNominationApprovalDetails.prototype, "level", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], InnovativeEmployeeNominationApprovalDetails.prototype, "approver_role_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], InnovativeEmployeeNominationApprovalDetails.prototype, "department_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], InnovativeEmployeeNominationApprovalDetails.prototype, "section_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], InnovativeEmployeeNominationApprovalDetails.prototype, "approver_user_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], InnovativeEmployeeNominationApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], InnovativeEmployeeNominationApprovalDetails.prototype, "approved_by", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true, default: '' }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], InnovativeEmployeeNominationApprovalDetails.prototype, "comment", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({
|
|
71
|
+
type: 'enum',
|
|
72
|
+
enum: InnovativeEmployeeNominationApprovalStatus,
|
|
73
|
+
default: InnovativeEmployeeNominationApprovalStatus.PENDING,
|
|
74
|
+
nullable: false,
|
|
75
|
+
}),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], InnovativeEmployeeNominationApprovalDetails.prototype, "approval_status", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
80
|
+
__metadata("design:type", Boolean)
|
|
81
|
+
], InnovativeEmployeeNominationApprovalDetails.prototype, "is_allowed", void 0);
|
|
82
|
+
exports.InnovativeEmployeeNominationApprovalDetails = InnovativeEmployeeNominationApprovalDetails = __decorate([
|
|
83
|
+
(0, typeorm_1.Entity)({ name: 'innovative_employee_nomination_approvals' })
|
|
84
|
+
], InnovativeEmployeeNominationApprovalDetails);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class InnovativeEmployeeNominationRequestAttachment 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 | null;
|
|
8
|
+
file_type: string | null;
|
|
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.InnovativeEmployeeNominationRequestAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let InnovativeEmployeeNominationRequestAttachment = class InnovativeEmployeeNominationRequestAttachment extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.InnovativeEmployeeNominationRequestAttachment = InnovativeEmployeeNominationRequestAttachment;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], InnovativeEmployeeNominationRequestAttachment.prototype, "request_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], InnovativeEmployeeNominationRequestAttachment.prototype, "service_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], InnovativeEmployeeNominationRequestAttachment.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
|
+
], InnovativeEmployeeNominationRequestAttachment.prototype, "file_url", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], InnovativeEmployeeNominationRequestAttachment.prototype, "file_name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], InnovativeEmployeeNominationRequestAttachment.prototype, "file_type", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], InnovativeEmployeeNominationRequestAttachment.prototype, "file_size", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], InnovativeEmployeeNominationRequestAttachment.prototype, "chat_id", void 0);
|
|
50
|
+
exports.InnovativeEmployeeNominationRequestAttachment = InnovativeEmployeeNominationRequestAttachment = __decorate([
|
|
51
|
+
(0, typeorm_1.Entity)({ name: 'innovative_employee_nomination_attachments' })
|
|
52
|
+
], InnovativeEmployeeNominationRequestAttachment);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum InnovativeEmployeeNominationMessageType {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
LINK = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare class InnovativeEmployeeNominationRequestChat extends BaseModel {
|
|
10
|
+
request_id: number;
|
|
11
|
+
service_id: number | null;
|
|
12
|
+
sub_service_id: number | null;
|
|
13
|
+
user_id: number;
|
|
14
|
+
role_id: number | null;
|
|
15
|
+
message: string;
|
|
16
|
+
message_type: InnovativeEmployeeNominationMessageType;
|
|
17
|
+
status: string | null;
|
|
18
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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.InnovativeEmployeeNominationRequestChat = exports.InnovativeEmployeeNominationMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var InnovativeEmployeeNominationMessageType;
|
|
16
|
+
(function (InnovativeEmployeeNominationMessageType) {
|
|
17
|
+
InnovativeEmployeeNominationMessageType["TEXT"] = "text";
|
|
18
|
+
InnovativeEmployeeNominationMessageType["IMAGE"] = "image";
|
|
19
|
+
InnovativeEmployeeNominationMessageType["VIDEO"] = "video";
|
|
20
|
+
InnovativeEmployeeNominationMessageType["FILE"] = "file";
|
|
21
|
+
InnovativeEmployeeNominationMessageType["LINK"] = "link";
|
|
22
|
+
})(InnovativeEmployeeNominationMessageType || (exports.InnovativeEmployeeNominationMessageType = InnovativeEmployeeNominationMessageType = {}));
|
|
23
|
+
let InnovativeEmployeeNominationRequestChat = class InnovativeEmployeeNominationRequestChat extends BaseModel_1.BaseModel {
|
|
24
|
+
};
|
|
25
|
+
exports.InnovativeEmployeeNominationRequestChat = InnovativeEmployeeNominationRequestChat;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], InnovativeEmployeeNominationRequestChat.prototype, "request_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], InnovativeEmployeeNominationRequestChat.prototype, "service_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], InnovativeEmployeeNominationRequestChat.prototype, "sub_service_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], InnovativeEmployeeNominationRequestChat.prototype, "user_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], InnovativeEmployeeNominationRequestChat.prototype, "role_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], InnovativeEmployeeNominationRequestChat.prototype, "message", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({
|
|
52
|
+
type: 'enum',
|
|
53
|
+
enum: InnovativeEmployeeNominationMessageType,
|
|
54
|
+
default: InnovativeEmployeeNominationMessageType.TEXT,
|
|
55
|
+
nullable: false,
|
|
56
|
+
}),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], InnovativeEmployeeNominationRequestChat.prototype, "message_type", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], InnovativeEmployeeNominationRequestChat.prototype, "status", void 0);
|
|
63
|
+
exports.InnovativeEmployeeNominationRequestChat = InnovativeEmployeeNominationRequestChat = __decorate([
|
|
64
|
+
(0, typeorm_1.Entity)({ name: 'innovative_employee_nomination_chats' })
|
|
65
|
+
], InnovativeEmployeeNominationRequestChat);
|