@platform-modules/foreign-ministry 1.3.212 → 1.3.214

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.
@@ -111,6 +111,11 @@ const RegisterCandidateAttachmentModel_1 = require("./models/RegisterCandidateAt
111
111
  const RegisterCandidateChatModel_1 = require("./models/RegisterCandidateChatModel");
112
112
  const RegisterCandidateWorkflowModel_1 = require("./models/RegisterCandidateWorkflowModel");
113
113
  const RegisterCandidateExperienceActivityModel_1 = require("./models/RegisterCandidateExperienceActivityModel");
114
+ const ResignationTerminationRequestModel_1 = require("./models/ResignationTerminationRequestModel");
115
+ const ResignationTerminationApprovalModel_1 = require("./models/ResignationTerminationApprovalModel");
116
+ const ResignationTerminationAttachmentModel_1 = require("./models/ResignationTerminationAttachmentModel");
117
+ const ResignationTerminationChatModel_1 = require("./models/ResignationTerminationChatModel");
118
+ const ResignationTerminationWorkflowModel_1 = require("./models/ResignationTerminationWorkflowModel");
114
119
  const LMSCourseExternalLecturerRequestModel_1 = require("./models/LMSCourseExternalLecturerRequestModel");
115
120
  const LMSCourseExternalLecturerApprovalModel_1 = require("./models/LMSCourseExternalLecturerApprovalModel");
116
121
  const LMSCourseExternalLecturerAttachmentModel_1 = require("./models/LMSCourseExternalLecturerAttachmentModel");
@@ -328,6 +333,11 @@ exports.AppDataSource = new typeorm_1.DataSource({
328
333
  RegisterCandidateChatModel_1.RegisterCandidateRequestChat,
329
334
  RegisterCandidateWorkflowModel_1.RegisterCandidateWorkFlow,
330
335
  RegisterCandidateExperienceActivityModel_1.RegisterCandidateExperienceActivity,
336
+ ResignationTerminationRequestModel_1.ResignationTerminationRequests,
337
+ ResignationTerminationApprovalModel_1.ResignationTerminationApprovalDetails,
338
+ ResignationTerminationAttachmentModel_1.ResignationTerminationRequestAttachment,
339
+ ResignationTerminationChatModel_1.ResignationTerminationRequestChat,
340
+ ResignationTerminationWorkflowModel_1.ResignationTerminationWorkFlow,
331
341
  LMSCourseExternalLecturerRequestModel_1.LMSCourseExternalLecturerRequests,
332
342
  LMSCourseExternalLecturerApprovalModel_1.LMSCourseExternalLecturerApprovalDetails,
333
343
  LMSCourseExternalLecturerAttachmentModel_1.LMSCourseExternalLecturerRequestAttachment,
package/dist/index.d.ts CHANGED
@@ -113,6 +113,11 @@ export * from './models/RegisterCandidateChatModel';
113
113
  export * from './models/RegisterCandidateWorkflowModel';
114
114
  export * from './models/RegisterCandidateExperienceActivityModel';
115
115
  export { RegisterCandidateExperienceActivity } from './models/RegisterCandidateExperienceActivityModel';
116
+ export * from './models/ResignationTerminationRequestModel';
117
+ export * from './models/ResignationTerminationApprovalModel';
118
+ export * from './models/ResignationTerminationAttachmentModel';
119
+ export * from './models/ResignationTerminationChatModel';
120
+ export * from './models/ResignationTerminationWorkflowModel';
116
121
  export * from './models/LMSCourseExternalLecturerRequestModel';
117
122
  export * from './models/LMSCourseExternalLecturerApprovalModel';
118
123
  export * from './models/LMSCourseExternalLecturerAttachmentModel';
package/dist/index.js CHANGED
@@ -131,6 +131,11 @@ __exportStar(require("./models/RegisterCandidateWorkflowModel"), exports);
131
131
  __exportStar(require("./models/RegisterCandidateExperienceActivityModel"), exports);
132
132
  var RegisterCandidateExperienceActivityModel_1 = require("./models/RegisterCandidateExperienceActivityModel");
133
133
  Object.defineProperty(exports, "RegisterCandidateExperienceActivity", { enumerable: true, get: function () { return RegisterCandidateExperienceActivityModel_1.RegisterCandidateExperienceActivity; } });
134
+ __exportStar(require("./models/ResignationTerminationRequestModel"), exports);
135
+ __exportStar(require("./models/ResignationTerminationApprovalModel"), exports);
136
+ __exportStar(require("./models/ResignationTerminationAttachmentModel"), exports);
137
+ __exportStar(require("./models/ResignationTerminationChatModel"), exports);
138
+ __exportStar(require("./models/ResignationTerminationWorkflowModel"), exports);
134
139
  __exportStar(require("./models/LMSCourseExternalLecturerRequestModel"), exports);
135
140
  __exportStar(require("./models/LMSCourseExternalLecturerApprovalModel"), exports);
136
141
  __exportStar(require("./models/LMSCourseExternalLecturerAttachmentModel"), exports);
@@ -20,10 +20,6 @@ export declare enum MeetingType {
20
20
  PHYSICAL = "Physical",
21
21
  ONLINE = "Online"
22
22
  }
23
- export declare enum OtherResourcesBooking {
24
- PRINTERS = "Printers",
25
- DEVICES = "Devices"
26
- }
27
23
  export declare enum YesNo {
28
24
  YES = "Yes",
29
25
  NO = "No"
@@ -58,7 +54,7 @@ export declare class MeetingRequests extends BaseModel {
58
54
  /** When is_all_day is true: meeting repeats every day from meeting_date until this date (inclusive). */
59
55
  recurrence_end_date: string | null;
60
56
  hall_id: number | null;
61
- other_resources_booking: OtherResourcesBooking | null;
57
+ other_resources_booking: string | null;
62
58
  comments: string | null;
63
59
  food_service_required: YesNo | null;
64
60
  organization_name: string | null;
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.MeetingRequests = exports.MeetingLocation = exports.OnlineMeetingDetails = exports.YesNo = exports.OtherResourcesBooking = exports.MeetingType = exports.MeetingRequestType = exports.RequestResourceSystem = exports.MeetingRequestStatus = void 0;
12
+ exports.MeetingRequests = exports.MeetingLocation = exports.OnlineMeetingDetails = exports.YesNo = exports.MeetingType = exports.MeetingRequestType = exports.RequestResourceSystem = exports.MeetingRequestStatus = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const BaseModel_1 = require("./BaseModel");
15
15
  var MeetingRequestStatus;
@@ -37,11 +37,6 @@ var MeetingType;
37
37
  MeetingType["PHYSICAL"] = "Physical";
38
38
  MeetingType["ONLINE"] = "Online";
39
39
  })(MeetingType || (exports.MeetingType = MeetingType = {}));
40
- var OtherResourcesBooking;
41
- (function (OtherResourcesBooking) {
42
- OtherResourcesBooking["PRINTERS"] = "Printers";
43
- OtherResourcesBooking["DEVICES"] = "Devices";
44
- })(OtherResourcesBooking || (exports.OtherResourcesBooking = OtherResourcesBooking = {}));
45
40
  var YesNo;
46
41
  (function (YesNo) {
47
42
  YesNo["YES"] = "Yes";
@@ -131,7 +126,7 @@ __decorate([
131
126
  __metadata("design:type", Object)
132
127
  ], MeetingRequests.prototype, "hall_id", void 0);
133
128
  __decorate([
134
- (0, typeorm_1.Column)({ type: 'enum', enum: OtherResourcesBooking, nullable: true }),
129
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
135
130
  __metadata("design:type", Object)
136
131
  ], MeetingRequests.prototype, "other_resources_booking", void 0);
137
132
  __decorate([
@@ -0,0 +1,22 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum ResignationTerminationApprovalStatus {
3
+ PENDING = "Pending",
4
+ IN_PROGRESS = "In Progress",
5
+ APPROVED = "Approved",
6
+ REJECTED = "Rejected"
7
+ }
8
+ export declare class ResignationTerminationApprovalDetails extends BaseModel {
9
+ request_id: number;
10
+ service_id: number | null;
11
+ sub_service_id: number | null;
12
+ level: number;
13
+ approver_role_id: number;
14
+ department_id: number | null;
15
+ section_id: number | null;
16
+ approver_user_id: number | null;
17
+ delegate_user_id: number | null;
18
+ approved_by: number | null;
19
+ comment: string;
20
+ approval_status: ResignationTerminationApprovalStatus;
21
+ is_allowed: boolean;
22
+ }
@@ -0,0 +1,79 @@
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.ResignationTerminationApprovalDetails = exports.ResignationTerminationApprovalStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var ResignationTerminationApprovalStatus;
16
+ (function (ResignationTerminationApprovalStatus) {
17
+ ResignationTerminationApprovalStatus["PENDING"] = "Pending";
18
+ ResignationTerminationApprovalStatus["IN_PROGRESS"] = "In Progress";
19
+ ResignationTerminationApprovalStatus["APPROVED"] = "Approved";
20
+ ResignationTerminationApprovalStatus["REJECTED"] = "Rejected";
21
+ })(ResignationTerminationApprovalStatus || (exports.ResignationTerminationApprovalStatus = ResignationTerminationApprovalStatus = {}));
22
+ let ResignationTerminationApprovalDetails = class ResignationTerminationApprovalDetails extends BaseModel_1.BaseModel {
23
+ };
24
+ exports.ResignationTerminationApprovalDetails = ResignationTerminationApprovalDetails;
25
+ __decorate([
26
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
27
+ __metadata("design:type", Number)
28
+ ], ResignationTerminationApprovalDetails.prototype, "request_id", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
31
+ __metadata("design:type", Object)
32
+ ], ResignationTerminationApprovalDetails.prototype, "service_id", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
35
+ __metadata("design:type", Object)
36
+ ], ResignationTerminationApprovalDetails.prototype, "sub_service_id", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
39
+ __metadata("design:type", Number)
40
+ ], ResignationTerminationApprovalDetails.prototype, "level", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
43
+ __metadata("design:type", Number)
44
+ ], ResignationTerminationApprovalDetails.prototype, "approver_role_id", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
47
+ __metadata("design:type", Object)
48
+ ], ResignationTerminationApprovalDetails.prototype, "department_id", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
51
+ __metadata("design:type", Object)
52
+ ], ResignationTerminationApprovalDetails.prototype, "section_id", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
55
+ __metadata("design:type", Object)
56
+ ], ResignationTerminationApprovalDetails.prototype, "approver_user_id", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], ResignationTerminationApprovalDetails.prototype, "delegate_user_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], ResignationTerminationApprovalDetails.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
+ ], ResignationTerminationApprovalDetails.prototype, "comment", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ type: 'enum', enum: ResignationTerminationApprovalStatus, default: ResignationTerminationApprovalStatus.PENDING, nullable: false }),
71
+ __metadata("design:type", String)
72
+ ], ResignationTerminationApprovalDetails.prototype, "approval_status", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
75
+ __metadata("design:type", Boolean)
76
+ ], ResignationTerminationApprovalDetails.prototype, "is_allowed", void 0);
77
+ exports.ResignationTerminationApprovalDetails = ResignationTerminationApprovalDetails = __decorate([
78
+ (0, typeorm_1.Entity)({ name: 'resignation_termination_approvals' })
79
+ ], ResignationTerminationApprovalDetails);
@@ -0,0 +1,11 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class ResignationTerminationRequestAttachment 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.ResignationTerminationRequestAttachment = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let ResignationTerminationRequestAttachment = class ResignationTerminationRequestAttachment extends BaseModel_1.BaseModel {
16
+ };
17
+ exports.ResignationTerminationRequestAttachment = ResignationTerminationRequestAttachment;
18
+ __decorate([
19
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
20
+ __metadata("design:type", Number)
21
+ ], ResignationTerminationRequestAttachment.prototype, "request_id", void 0);
22
+ __decorate([
23
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
24
+ __metadata("design:type", Object)
25
+ ], ResignationTerminationRequestAttachment.prototype, "service_id", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
28
+ __metadata("design:type", Object)
29
+ ], ResignationTerminationRequestAttachment.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
+ ], ResignationTerminationRequestAttachment.prototype, "file_url", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
36
+ __metadata("design:type", String)
37
+ ], ResignationTerminationRequestAttachment.prototype, "file_name", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
40
+ __metadata("design:type", String)
41
+ ], ResignationTerminationRequestAttachment.prototype, "file_type", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
44
+ __metadata("design:type", Object)
45
+ ], ResignationTerminationRequestAttachment.prototype, "file_size", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
48
+ __metadata("design:type", Object)
49
+ ], ResignationTerminationRequestAttachment.prototype, "chat_id", void 0);
50
+ exports.ResignationTerminationRequestAttachment = ResignationTerminationRequestAttachment = __decorate([
51
+ (0, typeorm_1.Entity)({ name: 'resignation_termination_attachments' })
52
+ ], ResignationTerminationRequestAttachment);
@@ -0,0 +1,17 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum ResignationTerminationMessageType {
3
+ TEXT = "text",
4
+ FILE = "file",
5
+ LINK = "link"
6
+ }
7
+ export declare class ResignationTerminationRequestChat extends BaseModel {
8
+ request_id: number;
9
+ service_id: number | null;
10
+ sub_service_id: number | null;
11
+ user_id: number;
12
+ role_id: number;
13
+ message: string;
14
+ messageType: ResignationTerminationMessageType;
15
+ status: string;
16
+ constructor(request_id: number, user_id: number, role_id: number, message: string, service_id?: number, sub_service_id?: number, messageType?: ResignationTerminationMessageType, status?: string);
17
+ }
@@ -0,0 +1,76 @@
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.ResignationTerminationRequestChat = exports.ResignationTerminationMessageType = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ const ResignationTerminationApprovalModel_1 = require("./ResignationTerminationApprovalModel");
16
+ var ResignationTerminationMessageType;
17
+ (function (ResignationTerminationMessageType) {
18
+ ResignationTerminationMessageType["TEXT"] = "text";
19
+ ResignationTerminationMessageType["FILE"] = "file";
20
+ ResignationTerminationMessageType["LINK"] = "link";
21
+ })(ResignationTerminationMessageType || (exports.ResignationTerminationMessageType = ResignationTerminationMessageType = {}));
22
+ let ResignationTerminationRequestChat = class ResignationTerminationRequestChat extends BaseModel_1.BaseModel {
23
+ constructor(request_id, user_id, role_id, message, service_id, sub_service_id, messageType, status) {
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.user_id = user_id;
29
+ this.role_id = role_id;
30
+ this.message = message;
31
+ this.messageType = messageType || ResignationTerminationMessageType.TEXT;
32
+ this.status = status || ResignationTerminationApprovalModel_1.ResignationTerminationApprovalStatus.PENDING;
33
+ }
34
+ };
35
+ exports.ResignationTerminationRequestChat = ResignationTerminationRequestChat;
36
+ __decorate([
37
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
38
+ __metadata("design:type", Number)
39
+ ], ResignationTerminationRequestChat.prototype, "request_id", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
42
+ __metadata("design:type", Object)
43
+ ], ResignationTerminationRequestChat.prototype, "service_id", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
46
+ __metadata("design:type", Object)
47
+ ], ResignationTerminationRequestChat.prototype, "sub_service_id", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
50
+ __metadata("design:type", Number)
51
+ ], ResignationTerminationRequestChat.prototype, "user_id", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
54
+ __metadata("design:type", Number)
55
+ ], ResignationTerminationRequestChat.prototype, "role_id", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.Column)({ type: 'text', nullable: false }),
58
+ __metadata("design:type", String)
59
+ ], ResignationTerminationRequestChat.prototype, "message", void 0);
60
+ __decorate([
61
+ (0, typeorm_1.Column)({
62
+ type: 'enum',
63
+ enum: ResignationTerminationMessageType,
64
+ default: ResignationTerminationMessageType.TEXT,
65
+ nullable: false
66
+ }),
67
+ __metadata("design:type", String)
68
+ ], ResignationTerminationRequestChat.prototype, "messageType", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
71
+ __metadata("design:type", String)
72
+ ], ResignationTerminationRequestChat.prototype, "status", void 0);
73
+ exports.ResignationTerminationRequestChat = ResignationTerminationRequestChat = __decorate([
74
+ (0, typeorm_1.Entity)({ name: 'resignation_termination_chats' }),
75
+ __metadata("design:paramtypes", [Number, Number, Number, String, Number, Number, String, String])
76
+ ], ResignationTerminationRequestChat);
@@ -0,0 +1,30 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum ResignationTerminationStatus {
3
+ PENDING = "Pending",
4
+ ASSIGNED = "Assigned",
5
+ IN_PROGRESS = "In Progress",
6
+ APPROVED = "Approved",
7
+ REJECTED = "Rejected"
8
+ }
9
+ export declare class ResignationTerminationRequests extends BaseModel {
10
+ req_user_department_id: number | null;
11
+ req_user_section_id: number | null;
12
+ service_id: number | null;
13
+ sub_service_id: number | null;
14
+ user_id: number;
15
+ employee_type: string | null;
16
+ employee_name: string | null;
17
+ reason: string | null;
18
+ description: string | null;
19
+ notice_period_need_to_serve: boolean | null;
20
+ date_of_issuing_resignation_day: Date | null;
21
+ last_working_day: Date | null;
22
+ end_of_service_eligibility_amount: string | null;
23
+ amount: number | null;
24
+ applicable_based_on_resignation_type: string | null;
25
+ date_of_joining: Date | null;
26
+ leave_balance: string | null;
27
+ actual_retirement_date: Date | null;
28
+ status: ResignationTerminationStatus;
29
+ workflow_execution_id: string | null;
30
+ }
@@ -0,0 +1,108 @@
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.ResignationTerminationRequests = exports.ResignationTerminationStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var ResignationTerminationStatus;
16
+ (function (ResignationTerminationStatus) {
17
+ ResignationTerminationStatus["PENDING"] = "Pending";
18
+ ResignationTerminationStatus["ASSIGNED"] = "Assigned";
19
+ ResignationTerminationStatus["IN_PROGRESS"] = "In Progress";
20
+ ResignationTerminationStatus["APPROVED"] = "Approved";
21
+ ResignationTerminationStatus["REJECTED"] = "Rejected";
22
+ })(ResignationTerminationStatus || (exports.ResignationTerminationStatus = ResignationTerminationStatus = {}));
23
+ let ResignationTerminationRequests = class ResignationTerminationRequests extends BaseModel_1.BaseModel {
24
+ };
25
+ exports.ResignationTerminationRequests = ResignationTerminationRequests;
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
28
+ __metadata("design:type", Object)
29
+ ], ResignationTerminationRequests.prototype, "req_user_department_id", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
32
+ __metadata("design:type", Object)
33
+ ], ResignationTerminationRequests.prototype, "req_user_section_id", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
36
+ __metadata("design:type", Object)
37
+ ], ResignationTerminationRequests.prototype, "service_id", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
40
+ __metadata("design:type", Object)
41
+ ], ResignationTerminationRequests.prototype, "sub_service_id", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
44
+ __metadata("design:type", Number)
45
+ ], ResignationTerminationRequests.prototype, "user_id", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
48
+ __metadata("design:type", Object)
49
+ ], ResignationTerminationRequests.prototype, "employee_type", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
52
+ __metadata("design:type", Object)
53
+ ], ResignationTerminationRequests.prototype, "employee_name", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
56
+ __metadata("design:type", Object)
57
+ ], ResignationTerminationRequests.prototype, "reason", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
60
+ __metadata("design:type", Object)
61
+ ], ResignationTerminationRequests.prototype, "description", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
64
+ __metadata("design:type", Object)
65
+ ], ResignationTerminationRequests.prototype, "notice_period_need_to_serve", void 0);
66
+ __decorate([
67
+ (0, typeorm_1.Column)({ type: 'date', nullable: true }),
68
+ __metadata("design:type", Object)
69
+ ], ResignationTerminationRequests.prototype, "date_of_issuing_resignation_day", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.Column)({ type: 'date', nullable: true }),
72
+ __metadata("design:type", Object)
73
+ ], ResignationTerminationRequests.prototype, "last_working_day", void 0);
74
+ __decorate([
75
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
76
+ __metadata("design:type", Object)
77
+ ], ResignationTerminationRequests.prototype, "end_of_service_eligibility_amount", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: true }),
80
+ __metadata("design:type", Object)
81
+ ], ResignationTerminationRequests.prototype, "amount", void 0);
82
+ __decorate([
83
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
84
+ __metadata("design:type", Object)
85
+ ], ResignationTerminationRequests.prototype, "applicable_based_on_resignation_type", void 0);
86
+ __decorate([
87
+ (0, typeorm_1.Column)({ type: 'date', nullable: true }),
88
+ __metadata("design:type", Object)
89
+ ], ResignationTerminationRequests.prototype, "date_of_joining", void 0);
90
+ __decorate([
91
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
92
+ __metadata("design:type", Object)
93
+ ], ResignationTerminationRequests.prototype, "leave_balance", void 0);
94
+ __decorate([
95
+ (0, typeorm_1.Column)({ type: 'date', nullable: true }),
96
+ __metadata("design:type", Object)
97
+ ], ResignationTerminationRequests.prototype, "actual_retirement_date", void 0);
98
+ __decorate([
99
+ (0, typeorm_1.Column)({ type: 'enum', enum: ResignationTerminationStatus, default: ResignationTerminationStatus.PENDING, nullable: false }),
100
+ __metadata("design:type", String)
101
+ ], ResignationTerminationRequests.prototype, "status", void 0);
102
+ __decorate([
103
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
104
+ __metadata("design:type", Object)
105
+ ], ResignationTerminationRequests.prototype, "workflow_execution_id", void 0);
106
+ exports.ResignationTerminationRequests = ResignationTerminationRequests = __decorate([
107
+ (0, typeorm_1.Entity)({ name: 'resignation_termination_requests' })
108
+ ], ResignationTerminationRequests);
@@ -0,0 +1,17 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum ResignationTerminationWorkFlowStatus {
3
+ NOT_YET_STARTED = "Not Yet Started",
4
+ COMPLETED = "Completed",
5
+ PENDING = "Pending"
6
+ }
7
+ export declare class ResignationTerminationWorkFlow extends BaseModel {
8
+ request_id: number;
9
+ service_id: number | null;
10
+ sub_service_id: number | null;
11
+ content: string;
12
+ status: ResignationTerminationWorkFlowStatus;
13
+ user_id: number | null;
14
+ role_id: number | null;
15
+ department_id: number | null;
16
+ section_id: number | null;
17
+ }
@@ -0,0 +1,62 @@
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.ResignationTerminationWorkFlow = exports.ResignationTerminationWorkFlowStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var ResignationTerminationWorkFlowStatus;
16
+ (function (ResignationTerminationWorkFlowStatus) {
17
+ ResignationTerminationWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
18
+ ResignationTerminationWorkFlowStatus["COMPLETED"] = "Completed";
19
+ ResignationTerminationWorkFlowStatus["PENDING"] = "Pending";
20
+ })(ResignationTerminationWorkFlowStatus || (exports.ResignationTerminationWorkFlowStatus = ResignationTerminationWorkFlowStatus = {}));
21
+ let ResignationTerminationWorkFlow = class ResignationTerminationWorkFlow extends BaseModel_1.BaseModel {
22
+ };
23
+ exports.ResignationTerminationWorkFlow = ResignationTerminationWorkFlow;
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
26
+ __metadata("design:type", Number)
27
+ ], ResignationTerminationWorkFlow.prototype, "request_id", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
30
+ __metadata("design:type", Object)
31
+ ], ResignationTerminationWorkFlow.prototype, "service_id", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
34
+ __metadata("design:type", Object)
35
+ ], ResignationTerminationWorkFlow.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
+ ], ResignationTerminationWorkFlow.prototype, "content", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({ type: 'enum', enum: ResignationTerminationWorkFlowStatus, default: ResignationTerminationWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
42
+ __metadata("design:type", String)
43
+ ], ResignationTerminationWorkFlow.prototype, "status", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
46
+ __metadata("design:type", Object)
47
+ ], ResignationTerminationWorkFlow.prototype, "user_id", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
50
+ __metadata("design:type", Object)
51
+ ], ResignationTerminationWorkFlow.prototype, "role_id", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
54
+ __metadata("design:type", Object)
55
+ ], ResignationTerminationWorkFlow.prototype, "department_id", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
58
+ __metadata("design:type", Object)
59
+ ], ResignationTerminationWorkFlow.prototype, "section_id", void 0);
60
+ exports.ResignationTerminationWorkFlow = ResignationTerminationWorkFlow = __decorate([
61
+ (0, typeorm_1.Entity)({ name: 'resignation_termination_workflows' })
62
+ ], ResignationTerminationWorkFlow);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/foreign-ministry",
3
- "version": "1.3.212",
3
+ "version": "1.3.214",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -116,6 +116,11 @@ import { RegisterCandidateRequestAttachment } from './models/RegisterCandidateAt
116
116
  import { RegisterCandidateRequestChat } from './models/RegisterCandidateChatModel';
117
117
  import { RegisterCandidateWorkFlow } from './models/RegisterCandidateWorkflowModel';
118
118
  import { RegisterCandidateExperienceActivity } from './models/RegisterCandidateExperienceActivityModel';
119
+ import { ResignationTerminationRequests } from './models/ResignationTerminationRequestModel';
120
+ import { ResignationTerminationApprovalDetails } from './models/ResignationTerminationApprovalModel';
121
+ import { ResignationTerminationRequestAttachment } from './models/ResignationTerminationAttachmentModel';
122
+ import { ResignationTerminationRequestChat } from './models/ResignationTerminationChatModel';
123
+ import { ResignationTerminationWorkFlow } from './models/ResignationTerminationWorkflowModel';
119
124
  import { LMSCourseExternalLecturerRequests } from './models/LMSCourseExternalLecturerRequestModel';
120
125
  import { LMSCourseExternalLecturerApprovalDetails } from './models/LMSCourseExternalLecturerApprovalModel';
121
126
  import { LMSCourseExternalLecturerRequestAttachment } from './models/LMSCourseExternalLecturerAttachmentModel';
@@ -335,6 +340,11 @@ export const AppDataSource = new DataSource({
335
340
  RegisterCandidateRequestChat,
336
341
  RegisterCandidateWorkFlow,
337
342
  RegisterCandidateExperienceActivity,
343
+ ResignationTerminationRequests,
344
+ ResignationTerminationApprovalDetails,
345
+ ResignationTerminationRequestAttachment,
346
+ ResignationTerminationRequestChat,
347
+ ResignationTerminationWorkFlow,
338
348
  LMSCourseExternalLecturerRequests,
339
349
  LMSCourseExternalLecturerApprovalDetails,
340
350
  LMSCourseExternalLecturerRequestAttachment,
package/src/index.ts CHANGED
@@ -113,6 +113,11 @@ export * from './models/RegisterCandidateChatModel';
113
113
  export * from './models/RegisterCandidateWorkflowModel';
114
114
  export * from './models/RegisterCandidateExperienceActivityModel';
115
115
  export {RegisterCandidateExperienceActivity} from './models/RegisterCandidateExperienceActivityModel';
116
+ export * from './models/ResignationTerminationRequestModel';
117
+ export * from './models/ResignationTerminationApprovalModel';
118
+ export * from './models/ResignationTerminationAttachmentModel';
119
+ export * from './models/ResignationTerminationChatModel';
120
+ export * from './models/ResignationTerminationWorkflowModel';
116
121
  export * from './models/LMSCourseExternalLecturerRequestModel';
117
122
  export * from './models/LMSCourseExternalLecturerApprovalModel';
118
123
  export * from './models/LMSCourseExternalLecturerAttachmentModel';
@@ -26,11 +26,6 @@ export enum MeetingType {
26
26
  ONLINE = 'Online',
27
27
  }
28
28
 
29
- export enum OtherResourcesBooking {
30
- PRINTERS = 'Printers',
31
- DEVICES = 'Devices',
32
- }
33
-
34
29
  export enum YesNo {
35
30
  YES = 'Yes',
36
31
  NO = 'No',
@@ -103,8 +98,8 @@ export class MeetingRequests extends BaseModel {
103
98
  @Column({ type: 'int', nullable: true })
104
99
  hall_id: number | null;
105
100
 
106
- @Column({ type: 'enum', enum: OtherResourcesBooking, nullable: true })
107
- other_resources_booking: OtherResourcesBooking | null;
101
+ @Column({ type: 'varchar', length: 255, nullable: true })
102
+ other_resources_booking: string | null;
108
103
 
109
104
  @Column({ type: 'text', nullable: true })
110
105
  comments: string | null;
@@ -0,0 +1,51 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum ResignationTerminationApprovalStatus {
5
+ PENDING = "Pending",
6
+ IN_PROGRESS = "In Progress",
7
+ APPROVED = "Approved",
8
+ REJECTED = "Rejected"
9
+ }
10
+
11
+ @Entity({ name: 'resignation_termination_approvals' })
12
+ export class ResignationTerminationApprovalDetails extends BaseModel {
13
+ @Column({ type: 'integer', nullable: false })
14
+ request_id: number;
15
+
16
+ @Column({ type: 'integer', nullable: true })
17
+ service_id: number | null;
18
+
19
+ @Column({ type: 'integer', nullable: true })
20
+ sub_service_id: number | null;
21
+
22
+ @Column({ type: 'integer', nullable: false })
23
+ level: number;
24
+
25
+ @Column({ type: 'integer', nullable: true })
26
+ approver_role_id: number;
27
+
28
+ @Column({ type: 'integer', nullable: true })
29
+ department_id: number | null;
30
+
31
+ @Column({ type: 'integer', nullable: true })
32
+ section_id: number | null;
33
+
34
+ @Column({ type: 'integer', nullable: true })
35
+ approver_user_id: number | null;
36
+
37
+ @Column({ type: 'integer', nullable: true })
38
+ delegate_user_id: number | null;
39
+
40
+ @Column({ type: 'integer', nullable: true })
41
+ approved_by: number | null;
42
+
43
+ @Column({ type: 'varchar', length: 500, nullable: true, default: '' })
44
+ comment: string;
45
+
46
+ @Column({ type: 'enum', enum: ResignationTerminationApprovalStatus, default: ResignationTerminationApprovalStatus.PENDING, nullable: false })
47
+ approval_status: ResignationTerminationApprovalStatus;
48
+
49
+ @Column({ type: 'boolean', default: true, nullable: false })
50
+ is_allowed: boolean;
51
+ }
@@ -0,0 +1,30 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ @Entity({ name: 'resignation_termination_attachments' })
5
+ export class ResignationTerminationRequestAttachment 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
+ }
@@ -0,0 +1,63 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+ import { ResignationTerminationApprovalStatus } from './ResignationTerminationApprovalModel';
4
+
5
+ export enum ResignationTerminationMessageType {
6
+ TEXT = "text",
7
+ FILE = "file",
8
+ LINK = "link"
9
+ }
10
+
11
+ @Entity({ name: 'resignation_termination_chats' })
12
+ export class ResignationTerminationRequestChat extends BaseModel {
13
+
14
+ @Column({ type: 'integer', nullable: false })
15
+ request_id: number;
16
+
17
+ @Column({ type: 'integer', nullable: true })
18
+ service_id: number | null;
19
+
20
+ @Column({ type: 'integer', nullable: true })
21
+ sub_service_id: number | null;
22
+
23
+ @Column({ type: 'integer', nullable: false })
24
+ user_id: number;
25
+
26
+ @Column({ type: 'integer', nullable: true })
27
+ role_id: number;
28
+
29
+ @Column({ type: 'text', nullable: false })
30
+ message: string;
31
+
32
+ @Column({
33
+ type: 'enum',
34
+ enum: ResignationTerminationMessageType,
35
+ default: ResignationTerminationMessageType.TEXT,
36
+ nullable: false
37
+ })
38
+ messageType: ResignationTerminationMessageType;
39
+
40
+ @Column({ type: 'text', nullable: true })
41
+ status: string;
42
+
43
+ constructor(
44
+ request_id: number,
45
+ user_id: number,
46
+ role_id: number,
47
+ message: string,
48
+ service_id?: number,
49
+ sub_service_id?: number,
50
+ messageType?: ResignationTerminationMessageType,
51
+ status?: string
52
+ ) {
53
+ super();
54
+ this.request_id = request_id;
55
+ this.service_id = service_id || null;
56
+ this.sub_service_id = sub_service_id || null;
57
+ this.user_id = user_id;
58
+ this.role_id = role_id;
59
+ this.message = message;
60
+ this.messageType = messageType || ResignationTerminationMessageType.TEXT;
61
+ this.status = status || ResignationTerminationApprovalStatus.PENDING;
62
+ }
63
+ }
@@ -0,0 +1,76 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum ResignationTerminationStatus {
5
+ PENDING = "Pending",
6
+ ASSIGNED = "Assigned",
7
+ IN_PROGRESS = "In Progress",
8
+ APPROVED = "Approved",
9
+ REJECTED = "Rejected"
10
+ }
11
+
12
+ @Entity({ name: 'resignation_termination_requests' })
13
+ export class ResignationTerminationRequests extends BaseModel {
14
+
15
+ // Common columns
16
+ @Column({ type: 'int', nullable: true })
17
+ req_user_department_id: number | null;
18
+
19
+ @Column({ type: 'int', nullable: true })
20
+ req_user_section_id: number | null;
21
+
22
+ @Column({ type: 'int', nullable: true })
23
+ service_id: number | null;
24
+
25
+ @Column({ type: 'int', nullable: true })
26
+ sub_service_id: number | null;
27
+
28
+ @Column({ type: 'int', nullable: false })
29
+ user_id: number;
30
+
31
+ // Resignation/Termination specific fields
32
+ @Column({ type: 'varchar', length: 50, nullable: true })
33
+ employee_type: string | null; // FM / M&C
34
+
35
+ @Column({ type: 'varchar', length: 255, nullable: true })
36
+ employee_name: string | null;
37
+
38
+ @Column({ type: 'varchar', length: 255, nullable: true })
39
+ reason: string | null;
40
+
41
+ @Column({ type: 'text', nullable: true })
42
+ description: string | null;
43
+
44
+ @Column({ type: 'boolean', nullable: true })
45
+ notice_period_need_to_serve: boolean | null; // Yes/No
46
+
47
+ @Column({ type: 'date', nullable: true })
48
+ date_of_issuing_resignation_day: Date | null;
49
+
50
+ @Column({ type: 'date', nullable: true })
51
+ last_working_day: Date | null;
52
+
53
+ @Column({ type: 'varchar', length: 255, nullable: true })
54
+ end_of_service_eligibility_amount: string | null;
55
+
56
+ @Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
57
+ amount: number | null;
58
+
59
+ @Column({ type: 'varchar', length: 255, nullable: true })
60
+ applicable_based_on_resignation_type: string | null;
61
+
62
+ @Column({ type: 'date', nullable: true })
63
+ date_of_joining: Date | null;
64
+
65
+ @Column({ type: 'varchar', length: 255, nullable: true })
66
+ leave_balance: string | null;
67
+
68
+ @Column({ type: 'date', nullable: true })
69
+ actual_retirement_date: Date | null;
70
+
71
+ @Column({ type: 'enum', enum: ResignationTerminationStatus, default: ResignationTerminationStatus.PENDING, nullable: false })
72
+ status: ResignationTerminationStatus;
73
+
74
+ @Column({ type: 'varchar', nullable: true })
75
+ workflow_execution_id: string | null;
76
+ }
@@ -0,0 +1,38 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum ResignationTerminationWorkFlowStatus {
5
+ NOT_YET_STARTED = "Not Yet Started",
6
+ COMPLETED = "Completed",
7
+ PENDING = "Pending"
8
+ }
9
+
10
+ @Entity({ name: 'resignation_termination_workflows' })
11
+ export class ResignationTerminationWorkFlow 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: ResignationTerminationWorkFlowStatus, default: ResignationTerminationWorkFlowStatus.NOT_YET_STARTED, nullable: false })
25
+ status: ResignationTerminationWorkFlowStatus;
26
+
27
+ @Column({ type: 'integer', nullable: true })
28
+ user_id: number | null;
29
+
30
+ @Column({ type: 'integer', nullable: true })
31
+ role_id: number | null;
32
+
33
+ @Column({ type: 'integer', nullable: true })
34
+ department_id: number | null;
35
+
36
+ @Column({ type: 'integer', nullable: true })
37
+ section_id: number | null;
38
+ }