@platform-modules/foreign-ministry 1.3.296 → 1.3.307
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 +16 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +23 -1
- package/dist/models/EmbassyEvaluationApprovalModel.d.ts +22 -0
- package/dist/models/EmbassyEvaluationApprovalModel.js +85 -0
- package/dist/models/EmbassyEvaluationAssignmentModel.d.ts +24 -0
- package/dist/models/EmbassyEvaluationAssignmentModel.js +89 -0
- package/dist/models/EmbassyEvaluationAttachmentModel.d.ts +10 -0
- package/dist/models/EmbassyEvaluationAttachmentModel.js +48 -0
- package/dist/models/EmbassyEvaluationChatModel.d.ts +18 -0
- package/dist/models/EmbassyEvaluationChatModel.js +66 -0
- package/dist/models/EmbassyEvaluationCycleModel.d.ts +17 -0
- package/dist/models/EmbassyEvaluationCycleModel.js +57 -0
- package/dist/models/EmbassyEvaluationDepartmentSettingModel.d.ts +14 -0
- package/dist/models/EmbassyEvaluationDepartmentSettingModel.js +56 -0
- package/dist/models/EmbassyEvaluationRequestModel.d.ts +24 -0
- package/dist/models/EmbassyEvaluationRequestModel.js +86 -0
- package/dist/models/EmbassyEvaluationResponseModel.d.ts +8 -0
- package/dist/models/EmbassyEvaluationResponseModel.js +44 -0
- package/dist/models/EmbassyEvaluationWorkflowModel.d.ts +19 -0
- package/dist/models/EmbassyEvaluationWorkflowModel.js +73 -0
- package/dist/models/EmployeeOfMonthNominationApprovalModel.js +1 -0
- package/dist/models/EmployeeOfMonthNominationChatModel.js +1 -0
- package/dist/models/EmployeeOfMonthNominationRequestModel.js +1 -0
- package/dist/models/EmployeeOfMonthNominationWorkflowModel.js +1 -0
- package/dist/models/EmployeeOfMonthSupportNominationApprovalModel.d.ts +9 -7
- package/dist/models/EmployeeOfMonthSupportNominationApprovalModel.js +10 -10
- package/dist/models/EmployeeOfMonthSupportNominationChatModel.js +1 -0
- package/dist/models/EmployeeOfMonthSupportNominationRequestModel.js +1 -0
- package/dist/models/EmployeeOfMonthSupportNominationWorkflowModel.js +1 -0
- package/dist/models/EvaluationFormModel.js +5 -1
- package/package.json +1 -1
- package/src/data-source.ts +16 -0
- package/src/helpers/employee-evaluation-request.utils.ts +181 -181
- package/src/helpers/evaluation-eligibility.utils.ts +36 -36
- package/src/index.ts +26 -0
- package/src/models/EmbassyEvaluationApprovalModel.ts +57 -0
- package/src/models/EmbassyEvaluationAssignmentModel.ts +63 -0
- package/src/models/EmbassyEvaluationAttachmentModel.ts +26 -0
- package/src/models/EmbassyEvaluationChatModel.ts +43 -0
- package/src/models/EmbassyEvaluationCycleModel.ts +38 -0
- package/src/models/EmbassyEvaluationRequestModel.ts +59 -0
- package/src/models/EmbassyEvaluationResponseModel.ts +24 -0
- package/src/models/EmbassyEvaluationWorkflowModel.ts +48 -0
- package/src/models/EmployeeEvaluationPersonScoreModel.ts +25 -25
- package/src/models/EmployeeEvaluationRequestModel.ts +90 -90
- package/src/models/EmployeeOfMonthNominationApprovalModel.ts +1 -0
- package/src/models/EmployeeOfMonthNominationChatModel.ts +1 -0
- package/src/models/EmployeeOfMonthNominationRequestModel.ts +1 -0
- package/src/models/EmployeeOfMonthNominationWorkflowModel.ts +1 -0
- package/src/models/EmployeeOfMonthSupportNominationApprovalModel.ts +60 -56
- package/src/models/EmployeeOfMonthSupportNominationChatModel.ts +1 -0
- package/src/models/EmployeeOfMonthSupportNominationRequestModel.ts +1 -0
- package/src/models/EmployeeOfMonthSupportNominationWorkflowModel.ts +48 -47
- package/src/models/EvaluationFormModel.ts +4 -0
- package/src/models/EvaluationFormQuestionModel.ts +52 -52
- package/src/models/EvaluationFormSectionModel.ts +33 -33
package/dist/data-source.js
CHANGED
|
@@ -321,6 +321,14 @@ const EmployeeOfMonthSupportNominationApprovalModel_1 = require("./models/Employ
|
|
|
321
321
|
const EmployeeOfMonthSupportNominationWorkflowModel_1 = require("./models/EmployeeOfMonthSupportNominationWorkflowModel");
|
|
322
322
|
const EmployeeOfMonthSupportNominationChatModel_1 = require("./models/EmployeeOfMonthSupportNominationChatModel");
|
|
323
323
|
const EmployeeOfMonthSupportNominationAttachmentModel_1 = require("./models/EmployeeOfMonthSupportNominationAttachmentModel");
|
|
324
|
+
const EmbassyEvaluationCycleModel_1 = require("./models/EmbassyEvaluationCycleModel");
|
|
325
|
+
const EmbassyEvaluationAssignmentModel_1 = require("./models/EmbassyEvaluationAssignmentModel");
|
|
326
|
+
const EmbassyEvaluationResponseModel_1 = require("./models/EmbassyEvaluationResponseModel");
|
|
327
|
+
const EmbassyEvaluationRequestModel_1 = require("./models/EmbassyEvaluationRequestModel");
|
|
328
|
+
const EmbassyEvaluationApprovalModel_1 = require("./models/EmbassyEvaluationApprovalModel");
|
|
329
|
+
const EmbassyEvaluationWorkflowModel_1 = require("./models/EmbassyEvaluationWorkflowModel");
|
|
330
|
+
const EmbassyEvaluationChatModel_1 = require("./models/EmbassyEvaluationChatModel");
|
|
331
|
+
const EmbassyEvaluationAttachmentModel_1 = require("./models/EmbassyEvaluationAttachmentModel");
|
|
324
332
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
325
333
|
type: 'postgres',
|
|
326
334
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -648,5 +656,13 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
648
656
|
EmployeeOfMonthSupportNominationWorkflowModel_1.EmployeeOfMonthSupportNominationWorkFlow,
|
|
649
657
|
EmployeeOfMonthSupportNominationChatModel_1.EmployeeOfMonthSupportNominationRequestChat,
|
|
650
658
|
EmployeeOfMonthSupportNominationAttachmentModel_1.EmployeeOfMonthSupportNominationRequestAttachment,
|
|
659
|
+
EmbassyEvaluationCycleModel_1.EmbassyEvaluationCycle,
|
|
660
|
+
EmbassyEvaluationAssignmentModel_1.EmbassyEvaluationAssignment,
|
|
661
|
+
EmbassyEvaluationResponseModel_1.EmbassyEvaluationResponse,
|
|
662
|
+
EmbassyEvaluationRequestModel_1.EmbassyEvaluationRequests,
|
|
663
|
+
EmbassyEvaluationApprovalModel_1.EmbassyEvaluationApprovalDetails,
|
|
664
|
+
EmbassyEvaluationWorkflowModel_1.EmbassyEvaluationWorkFlow,
|
|
665
|
+
EmbassyEvaluationChatModel_1.EmbassyEvaluationRequestChat,
|
|
666
|
+
EmbassyEvaluationAttachmentModel_1.EmbassyEvaluationRequestAttachment,
|
|
651
667
|
],
|
|
652
668
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -445,6 +445,14 @@ export { EmployeeOfMonthSupportNominationApprovalDetails, EmployeeOfMonthSupport
|
|
|
445
445
|
export { EmployeeOfMonthSupportNominationWorkFlow, EmployeeOfMonthSupportNominationWorkFlowStatus, } from './models/EmployeeOfMonthSupportNominationWorkflowModel';
|
|
446
446
|
export { EmployeeOfMonthSupportNominationRequestChat, EmployeeOfMonthSupportNominationMessageType, } from './models/EmployeeOfMonthSupportNominationChatModel';
|
|
447
447
|
export { EmployeeOfMonthSupportNominationRequestAttachment } from './models/EmployeeOfMonthSupportNominationAttachmentModel';
|
|
448
|
+
export { EmbassyEvaluationCycle, EmbassyEvaluationCycleStatus, } from './models/EmbassyEvaluationCycleModel';
|
|
449
|
+
export { EmbassyEvaluationAssignment, EmbassyEvaluationAssignmentStatus, } from './models/EmbassyEvaluationAssignmentModel';
|
|
450
|
+
export { EmbassyEvaluationResponse } from './models/EmbassyEvaluationResponseModel';
|
|
451
|
+
export { EmbassyEvaluationRequests, EmbassyEvaluationRequestStatus, } from './models/EmbassyEvaluationRequestModel';
|
|
452
|
+
export { EmbassyEvaluationApprovalDetails, EmbassyEvaluationApprovalStatus, } from './models/EmbassyEvaluationApprovalModel';
|
|
453
|
+
export { EmbassyEvaluationWorkFlow, EmbassyEvaluationWorkFlowStatus, } from './models/EmbassyEvaluationWorkflowModel';
|
|
454
|
+
export { EmbassyEvaluationRequestChat, EmbassyEvaluationMessageType, } from './models/EmbassyEvaluationChatModel';
|
|
455
|
+
export { EmbassyEvaluationRequestAttachment } from './models/EmbassyEvaluationAttachmentModel';
|
|
448
456
|
export { EvaluationForm, EvaluationFormType, } from './models/EvaluationFormModel';
|
|
449
457
|
export { EvaluationFormSection } from './models/EvaluationFormSectionModel';
|
|
450
458
|
export { EvaluationFormQuestion, EvaluationFormQuestionType, } from './models/EvaluationFormQuestionModel';
|
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.EvaluationEligibilitySetting = exports.ServicesNotificationTriggerType = exports.AppointmentWorkFlowStatus = exports.AppointmentMessageType = exports.AppointmentAttendeeStatus = exports.AppointmentApprovalStatus = exports.AppointmentAttendees = exports.AppointmentWorkFlow = exports.AppointmentRequestChat = exports.AppointmentRequestAttachment = exports.AppointmentApprovalDetails = exports.AppointmentRequestStatus = exports.AppointmentRequests = exports.TravelClass = exports.MissionTravelWorkFlowStatus = exports.MissionTravelApprovalStatus = exports.AllowanceRatio = exports.DecisionType = exports.MissionType = exports.MissionTravelStatus = exports.GatePassMessageType = exports.GatePassWorkFlowStatus = exports.GatePassApprovalStatus = exports.GatePassType = exports.GatePassRequestStatus = exports.SecurityDeptMessageType = exports.SecurityDeptAccessType = exports.SecurityDeptRequestStatus = exports.RetiredCardMessageType = exports.RetiredCardWorkFlowStatus = exports.RetiredCardApprovalStatus = exports.RetiredCardAccessType = exports.RetiredCardRequestStatus = exports.TitleCategory = exports.ProfileUpdateRequestStatus = exports.StayAfterHoursTransactionStatus = exports.StayAfterHoursTransaction = exports.StayAfterHoursBalance = exports.EarlyCheckoutTransactionStatus = exports.EarlyCheckoutTransaction = exports.EarlyCheckoutFrequency = exports.EarlyCheckoutConfiguration = exports.EarlyCheckoutBalance = exports.LeaveTransactionStatus = exports.LeaveTransaction = exports.LeaveConfigurationGrades = exports.enumFrequency = exports.LeaveConfiguration = exports.ParcelDepartmentCategory = exports.RegisterCandidateExperienceActivity = void 0;
|
|
18
18
|
exports.InnovativeEmployeeNominationWorkFlow = exports.InnovativeEmployeeNominationApprovalStatus = exports.InnovativeEmployeeNominationApprovalDetails = exports.InnovativeEmployeeNominationRequestStatus = exports.InnovativeEmployeeNominationRequests = exports.InitiatorEmployeeNominationRequestAttachment = exports.InitiatorEmployeeNominationMessageType = exports.InitiatorEmployeeNominationRequestChat = exports.InitiatorEmployeeNominationWorkFlowStatus = exports.InitiatorEmployeeNominationWorkFlow = exports.InitiatorEmployeeNominationApprovalStatus = exports.InitiatorEmployeeNominationApprovalDetails = exports.InitiatorInitiativeType = exports.InitiatorEmployeeNominationRequestStatus = exports.InitiatorEmployeeNominationRequests = exports.IpeGrievanceRequestAttachment = exports.IpeGrievanceMessageType = exports.IpeGrievanceRequestChat = exports.IpeGrievanceWorkFlowStatus = exports.IpeGrievanceWorkFlow = exports.IpeGrievanceApprovalStatus = exports.IpeGrievanceApprovalDetails = exports.IpeGrievancePeriodRating = exports.IpeGrievanceExemptionReason = exports.IpeGrievancePeriodType = exports.IpeGrievanceFinalEvaluationResult = exports.IpeGrievanceRequestStatus = exports.IpeGrievanceRequests = exports.EmployeeEvaluationRequestAttachment = exports.EmployeeEvaluationMessageType = exports.EmployeeEvaluationRequestChat = exports.EmployeeEvaluationWorkFlowStatus = exports.EmployeeEvaluationWorkFlow = exports.EmployeeEvaluationApprovalStatus = exports.EmployeeEvaluationApprovalDetails = exports.EmployeeEvaluationPersonScore = exports.EmployeeEvaluationAnswers = exports.EmployeeEvaluationUsFeedback = exports.EmployeeEvaluation = exports.EmployeeEvaluationRoutingBucket = exports.EmployeeEvaluationRequestStatus = exports.EmployeeEvaluationRequests = exports.persistEmployeeEvaluationScores = exports.resolveMaxEmployeesPerRequest = exports.normalizeEmployeeSubmissions = exports.DEFAULT_MAX_EMPLOYEES_PER_REQUEST = exports.parseMonthRange = exports.parseEvaluationEndDay = exports.isEvaluationEligibilityWindowOpen = exports.EvaluationEligibilitySettingEmployee = void 0;
|
|
19
|
-
exports.EvaluationFormQuestionType = exports.EvaluationFormQuestion = exports.EvaluationFormSection = exports.EvaluationFormType = exports.EvaluationForm = exports.EmployeeOfMonthSupportNominationRequestAttachment = exports.EmployeeOfMonthSupportNominationMessageType = exports.EmployeeOfMonthSupportNominationRequestChat = exports.EmployeeOfMonthSupportNominationWorkFlowStatus = exports.EmployeeOfMonthSupportNominationWorkFlow = exports.EmployeeOfMonthSupportNominationApprovalStatus = exports.EmployeeOfMonthSupportNominationApprovalDetails = exports.EmployeeOfMonthSupportNominationRequestStatus = exports.EmployeeOfMonthSupportNominationRequests = exports.EmployeeOfMonthNominationRequestAttachment = exports.EmployeeOfMonthNominationMessageType = exports.EmployeeOfMonthNominationRequestChat = exports.EmployeeOfMonthNominationWorkFlowStatus = exports.EmployeeOfMonthNominationWorkFlow = exports.EmployeeOfMonthNominationApprovalStatus = exports.EmployeeOfMonthNominationApprovalDetails = exports.EmployeeOfMonthNominationRequestStatus = exports.EmployeeOfMonthNominationRequests = exports.InnovativeEmployeeNominationRequestAttachment = exports.InnovativeEmployeeNominationMessageType = exports.InnovativeEmployeeNominationRequestChat = exports.InnovativeEmployeeNominationWorkFlowStatus = void 0;
|
|
19
|
+
exports.EvaluationFormQuestionType = exports.EvaluationFormQuestion = exports.EvaluationFormSection = exports.EvaluationFormType = exports.EvaluationForm = exports.EmbassyEvaluationRequestAttachment = exports.EmbassyEvaluationMessageType = exports.EmbassyEvaluationRequestChat = exports.EmbassyEvaluationWorkFlowStatus = exports.EmbassyEvaluationWorkFlow = exports.EmbassyEvaluationApprovalStatus = exports.EmbassyEvaluationApprovalDetails = exports.EmbassyEvaluationRequestStatus = exports.EmbassyEvaluationRequests = exports.EmbassyEvaluationResponse = exports.EmbassyEvaluationAssignmentStatus = exports.EmbassyEvaluationAssignment = exports.EmbassyEvaluationCycleStatus = exports.EmbassyEvaluationCycle = exports.EmployeeOfMonthSupportNominationRequestAttachment = exports.EmployeeOfMonthSupportNominationMessageType = exports.EmployeeOfMonthSupportNominationRequestChat = exports.EmployeeOfMonthSupportNominationWorkFlowStatus = exports.EmployeeOfMonthSupportNominationWorkFlow = exports.EmployeeOfMonthSupportNominationApprovalStatus = exports.EmployeeOfMonthSupportNominationApprovalDetails = exports.EmployeeOfMonthSupportNominationRequestStatus = exports.EmployeeOfMonthSupportNominationRequests = exports.EmployeeOfMonthNominationRequestAttachment = exports.EmployeeOfMonthNominationMessageType = exports.EmployeeOfMonthNominationRequestChat = exports.EmployeeOfMonthNominationWorkFlowStatus = exports.EmployeeOfMonthNominationWorkFlow = exports.EmployeeOfMonthNominationApprovalStatus = exports.EmployeeOfMonthNominationApprovalDetails = exports.EmployeeOfMonthNominationRequestStatus = exports.EmployeeOfMonthNominationRequests = exports.InnovativeEmployeeNominationRequestAttachment = exports.InnovativeEmployeeNominationMessageType = exports.InnovativeEmployeeNominationRequestChat = exports.InnovativeEmployeeNominationWorkFlowStatus = void 0;
|
|
20
20
|
__exportStar(require("./models/user"), exports);
|
|
21
21
|
__exportStar(require("./models/role"), exports);
|
|
22
22
|
__exportStar(require("./models/user-sessions"), exports);
|
|
@@ -602,6 +602,28 @@ Object.defineProperty(exports, "EmployeeOfMonthSupportNominationRequestChat", {
|
|
|
602
602
|
Object.defineProperty(exports, "EmployeeOfMonthSupportNominationMessageType", { enumerable: true, get: function () { return EmployeeOfMonthSupportNominationChatModel_1.EmployeeOfMonthSupportNominationMessageType; } });
|
|
603
603
|
var EmployeeOfMonthSupportNominationAttachmentModel_1 = require("./models/EmployeeOfMonthSupportNominationAttachmentModel");
|
|
604
604
|
Object.defineProperty(exports, "EmployeeOfMonthSupportNominationRequestAttachment", { enumerable: true, get: function () { return EmployeeOfMonthSupportNominationAttachmentModel_1.EmployeeOfMonthSupportNominationRequestAttachment; } });
|
|
605
|
+
var EmbassyEvaluationCycleModel_1 = require("./models/EmbassyEvaluationCycleModel");
|
|
606
|
+
Object.defineProperty(exports, "EmbassyEvaluationCycle", { enumerable: true, get: function () { return EmbassyEvaluationCycleModel_1.EmbassyEvaluationCycle; } });
|
|
607
|
+
Object.defineProperty(exports, "EmbassyEvaluationCycleStatus", { enumerable: true, get: function () { return EmbassyEvaluationCycleModel_1.EmbassyEvaluationCycleStatus; } });
|
|
608
|
+
var EmbassyEvaluationAssignmentModel_1 = require("./models/EmbassyEvaluationAssignmentModel");
|
|
609
|
+
Object.defineProperty(exports, "EmbassyEvaluationAssignment", { enumerable: true, get: function () { return EmbassyEvaluationAssignmentModel_1.EmbassyEvaluationAssignment; } });
|
|
610
|
+
Object.defineProperty(exports, "EmbassyEvaluationAssignmentStatus", { enumerable: true, get: function () { return EmbassyEvaluationAssignmentModel_1.EmbassyEvaluationAssignmentStatus; } });
|
|
611
|
+
var EmbassyEvaluationResponseModel_1 = require("./models/EmbassyEvaluationResponseModel");
|
|
612
|
+
Object.defineProperty(exports, "EmbassyEvaluationResponse", { enumerable: true, get: function () { return EmbassyEvaluationResponseModel_1.EmbassyEvaluationResponse; } });
|
|
613
|
+
var EmbassyEvaluationRequestModel_1 = require("./models/EmbassyEvaluationRequestModel");
|
|
614
|
+
Object.defineProperty(exports, "EmbassyEvaluationRequests", { enumerable: true, get: function () { return EmbassyEvaluationRequestModel_1.EmbassyEvaluationRequests; } });
|
|
615
|
+
Object.defineProperty(exports, "EmbassyEvaluationRequestStatus", { enumerable: true, get: function () { return EmbassyEvaluationRequestModel_1.EmbassyEvaluationRequestStatus; } });
|
|
616
|
+
var EmbassyEvaluationApprovalModel_1 = require("./models/EmbassyEvaluationApprovalModel");
|
|
617
|
+
Object.defineProperty(exports, "EmbassyEvaluationApprovalDetails", { enumerable: true, get: function () { return EmbassyEvaluationApprovalModel_1.EmbassyEvaluationApprovalDetails; } });
|
|
618
|
+
Object.defineProperty(exports, "EmbassyEvaluationApprovalStatus", { enumerable: true, get: function () { return EmbassyEvaluationApprovalModel_1.EmbassyEvaluationApprovalStatus; } });
|
|
619
|
+
var EmbassyEvaluationWorkflowModel_1 = require("./models/EmbassyEvaluationWorkflowModel");
|
|
620
|
+
Object.defineProperty(exports, "EmbassyEvaluationWorkFlow", { enumerable: true, get: function () { return EmbassyEvaluationWorkflowModel_1.EmbassyEvaluationWorkFlow; } });
|
|
621
|
+
Object.defineProperty(exports, "EmbassyEvaluationWorkFlowStatus", { enumerable: true, get: function () { return EmbassyEvaluationWorkflowModel_1.EmbassyEvaluationWorkFlowStatus; } });
|
|
622
|
+
var EmbassyEvaluationChatModel_1 = require("./models/EmbassyEvaluationChatModel");
|
|
623
|
+
Object.defineProperty(exports, "EmbassyEvaluationRequestChat", { enumerable: true, get: function () { return EmbassyEvaluationChatModel_1.EmbassyEvaluationRequestChat; } });
|
|
624
|
+
Object.defineProperty(exports, "EmbassyEvaluationMessageType", { enumerable: true, get: function () { return EmbassyEvaluationChatModel_1.EmbassyEvaluationMessageType; } });
|
|
625
|
+
var EmbassyEvaluationAttachmentModel_1 = require("./models/EmbassyEvaluationAttachmentModel");
|
|
626
|
+
Object.defineProperty(exports, "EmbassyEvaluationRequestAttachment", { enumerable: true, get: function () { return EmbassyEvaluationAttachmentModel_1.EmbassyEvaluationRequestAttachment; } });
|
|
605
627
|
var EvaluationFormModel_1 = require("./models/EvaluationFormModel");
|
|
606
628
|
Object.defineProperty(exports, "EvaluationForm", { enumerable: true, get: function () { return EvaluationFormModel_1.EvaluationForm; } });
|
|
607
629
|
Object.defineProperty(exports, "EvaluationFormType", { enumerable: true, get: function () { return EvaluationFormModel_1.EvaluationFormType; } });
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum EmbassyEvaluationApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class EmbassyEvaluationApprovalDetails 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: EmbassyEvaluationApprovalStatus;
|
|
21
|
+
is_allowed: boolean;
|
|
22
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
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.EmbassyEvaluationApprovalDetails = exports.EmbassyEvaluationApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var EmbassyEvaluationApprovalStatus;
|
|
16
|
+
(function (EmbassyEvaluationApprovalStatus) {
|
|
17
|
+
EmbassyEvaluationApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
EmbassyEvaluationApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
EmbassyEvaluationApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
EmbassyEvaluationApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(EmbassyEvaluationApprovalStatus || (exports.EmbassyEvaluationApprovalStatus = EmbassyEvaluationApprovalStatus = {}));
|
|
22
|
+
let EmbassyEvaluationApprovalDetails = class EmbassyEvaluationApprovalDetails extends BaseModel_1.BaseModel {
|
|
23
|
+
};
|
|
24
|
+
exports.EmbassyEvaluationApprovalDetails = EmbassyEvaluationApprovalDetails;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], EmbassyEvaluationApprovalDetails.prototype, "request_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], EmbassyEvaluationApprovalDetails.prototype, "service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], EmbassyEvaluationApprovalDetails.prototype, "sub_service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], EmbassyEvaluationApprovalDetails.prototype, "level", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], EmbassyEvaluationApprovalDetails.prototype, "approver_role_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], EmbassyEvaluationApprovalDetails.prototype, "department_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], EmbassyEvaluationApprovalDetails.prototype, "section_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], EmbassyEvaluationApprovalDetails.prototype, "approver_user_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], EmbassyEvaluationApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], EmbassyEvaluationApprovalDetails.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
|
+
], EmbassyEvaluationApprovalDetails.prototype, "comment", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({
|
|
71
|
+
type: 'enum',
|
|
72
|
+
enum: EmbassyEvaluationApprovalStatus,
|
|
73
|
+
enumName: 'embassy_evaluation_approval_status_enum',
|
|
74
|
+
default: EmbassyEvaluationApprovalStatus.PENDING,
|
|
75
|
+
nullable: false,
|
|
76
|
+
}),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], EmbassyEvaluationApprovalDetails.prototype, "approval_status", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
81
|
+
__metadata("design:type", Boolean)
|
|
82
|
+
], EmbassyEvaluationApprovalDetails.prototype, "is_allowed", void 0);
|
|
83
|
+
exports.EmbassyEvaluationApprovalDetails = EmbassyEvaluationApprovalDetails = __decorate([
|
|
84
|
+
(0, typeorm_1.Entity)({ name: 'embassy_evaluation_approvals' })
|
|
85
|
+
], EmbassyEvaluationApprovalDetails);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum EmbassyEvaluationAssignmentStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
SUBMITTED = "Submitted",
|
|
6
|
+
LOCKED = "Locked"
|
|
7
|
+
}
|
|
8
|
+
export declare class EmbassyEvaluationAssignment extends BaseModel {
|
|
9
|
+
cycle_id: number;
|
|
10
|
+
/** Set at activation from cycle window + reference date; separates runs per year (not on cycle row). */
|
|
11
|
+
evaluation_year: number;
|
|
12
|
+
mc_id: number;
|
|
13
|
+
department_id: number;
|
|
14
|
+
section_id: number;
|
|
15
|
+
form_id: number;
|
|
16
|
+
assigned_to_user_id: number | null;
|
|
17
|
+
status: EmbassyEvaluationAssignmentStatus;
|
|
18
|
+
due_date: Date | null;
|
|
19
|
+
submitted_at: Date | null;
|
|
20
|
+
score: number | null;
|
|
21
|
+
workflow_triggered: boolean;
|
|
22
|
+
/** Set when cycle batch request is created after all mandatory evaluations complete. */
|
|
23
|
+
request_id: number | null;
|
|
24
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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.EmbassyEvaluationAssignment = exports.EmbassyEvaluationAssignmentStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var EmbassyEvaluationAssignmentStatus;
|
|
16
|
+
(function (EmbassyEvaluationAssignmentStatus) {
|
|
17
|
+
EmbassyEvaluationAssignmentStatus["PENDING"] = "Pending";
|
|
18
|
+
EmbassyEvaluationAssignmentStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
EmbassyEvaluationAssignmentStatus["SUBMITTED"] = "Submitted";
|
|
20
|
+
EmbassyEvaluationAssignmentStatus["LOCKED"] = "Locked";
|
|
21
|
+
})(EmbassyEvaluationAssignmentStatus || (exports.EmbassyEvaluationAssignmentStatus = EmbassyEvaluationAssignmentStatus = {}));
|
|
22
|
+
let EmbassyEvaluationAssignment = class EmbassyEvaluationAssignment extends BaseModel_1.BaseModel {
|
|
23
|
+
};
|
|
24
|
+
exports.EmbassyEvaluationAssignment = EmbassyEvaluationAssignment;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], EmbassyEvaluationAssignment.prototype, "cycle_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], EmbassyEvaluationAssignment.prototype, "evaluation_year", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], EmbassyEvaluationAssignment.prototype, "mc_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], EmbassyEvaluationAssignment.prototype, "department_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], EmbassyEvaluationAssignment.prototype, "section_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], EmbassyEvaluationAssignment.prototype, "form_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], EmbassyEvaluationAssignment.prototype, "assigned_to_user_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({
|
|
55
|
+
type: 'enum',
|
|
56
|
+
enum: EmbassyEvaluationAssignmentStatus,
|
|
57
|
+
enumName: 'embassy_eval_assignment_status_enum',
|
|
58
|
+
default: EmbassyEvaluationAssignmentStatus.PENDING,
|
|
59
|
+
nullable: false,
|
|
60
|
+
}),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], EmbassyEvaluationAssignment.prototype, "status", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], EmbassyEvaluationAssignment.prototype, "due_date", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], EmbassyEvaluationAssignment.prototype, "submitted_at", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: true }),
|
|
73
|
+
__metadata("design:type", Object)
|
|
74
|
+
], EmbassyEvaluationAssignment.prototype, "score", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false, nullable: false }),
|
|
77
|
+
__metadata("design:type", Boolean)
|
|
78
|
+
], EmbassyEvaluationAssignment.prototype, "workflow_triggered", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], EmbassyEvaluationAssignment.prototype, "request_id", void 0);
|
|
83
|
+
exports.EmbassyEvaluationAssignment = EmbassyEvaluationAssignment = __decorate([
|
|
84
|
+
(0, typeorm_1.Entity)({ name: 'embassy_evaluation_assignments' }),
|
|
85
|
+
(0, typeorm_1.Index)('uq_embassy_eval_assignment', ['cycle_id', 'evaluation_year', 'mc_id', 'department_id', 'section_id'], {
|
|
86
|
+
unique: true,
|
|
87
|
+
where: '"is_deleted" = false',
|
|
88
|
+
})
|
|
89
|
+
], EmbassyEvaluationAssignment);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class EmbassyEvaluationRequestAttachment 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
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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.EmbassyEvaluationRequestAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let EmbassyEvaluationRequestAttachment = class EmbassyEvaluationRequestAttachment extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.EmbassyEvaluationRequestAttachment = EmbassyEvaluationRequestAttachment;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], EmbassyEvaluationRequestAttachment.prototype, "request_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], EmbassyEvaluationRequestAttachment.prototype, "service_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], EmbassyEvaluationRequestAttachment.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
|
+
], EmbassyEvaluationRequestAttachment.prototype, "file_url", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], EmbassyEvaluationRequestAttachment.prototype, "file_name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], EmbassyEvaluationRequestAttachment.prototype, "file_type", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], EmbassyEvaluationRequestAttachment.prototype, "file_size", void 0);
|
|
46
|
+
exports.EmbassyEvaluationRequestAttachment = EmbassyEvaluationRequestAttachment = __decorate([
|
|
47
|
+
(0, typeorm_1.Entity)({ name: 'embassy_evaluation_attachments' })
|
|
48
|
+
], EmbassyEvaluationRequestAttachment);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum EmbassyEvaluationMessageType {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
LINK = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare class EmbassyEvaluationRequestChat 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: EmbassyEvaluationMessageType;
|
|
17
|
+
status: string | null;
|
|
18
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EmbassyEvaluationRequestChat = exports.EmbassyEvaluationMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var EmbassyEvaluationMessageType;
|
|
16
|
+
(function (EmbassyEvaluationMessageType) {
|
|
17
|
+
EmbassyEvaluationMessageType["TEXT"] = "text";
|
|
18
|
+
EmbassyEvaluationMessageType["IMAGE"] = "image";
|
|
19
|
+
EmbassyEvaluationMessageType["VIDEO"] = "video";
|
|
20
|
+
EmbassyEvaluationMessageType["FILE"] = "file";
|
|
21
|
+
EmbassyEvaluationMessageType["LINK"] = "link";
|
|
22
|
+
})(EmbassyEvaluationMessageType || (exports.EmbassyEvaluationMessageType = EmbassyEvaluationMessageType = {}));
|
|
23
|
+
let EmbassyEvaluationRequestChat = class EmbassyEvaluationRequestChat extends BaseModel_1.BaseModel {
|
|
24
|
+
};
|
|
25
|
+
exports.EmbassyEvaluationRequestChat = EmbassyEvaluationRequestChat;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], EmbassyEvaluationRequestChat.prototype, "request_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], EmbassyEvaluationRequestChat.prototype, "service_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], EmbassyEvaluationRequestChat.prototype, "sub_service_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], EmbassyEvaluationRequestChat.prototype, "user_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], EmbassyEvaluationRequestChat.prototype, "role_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], EmbassyEvaluationRequestChat.prototype, "message", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({
|
|
52
|
+
type: 'enum',
|
|
53
|
+
enum: EmbassyEvaluationMessageType,
|
|
54
|
+
enumName: 'embassy_evaluation_message_type_enum',
|
|
55
|
+
default: EmbassyEvaluationMessageType.TEXT,
|
|
56
|
+
nullable: false,
|
|
57
|
+
}),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], EmbassyEvaluationRequestChat.prototype, "message_type", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], EmbassyEvaluationRequestChat.prototype, "status", void 0);
|
|
64
|
+
exports.EmbassyEvaluationRequestChat = EmbassyEvaluationRequestChat = __decorate([
|
|
65
|
+
(0, typeorm_1.Entity)({ name: 'embassy_evaluation_chats' })
|
|
66
|
+
], EmbassyEvaluationRequestChat);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum EmbassyEvaluationCycleStatus {
|
|
3
|
+
DRAFT = "Draft",
|
|
4
|
+
ACTIVE = "Active",
|
|
5
|
+
CLOSED = "Closed"
|
|
6
|
+
}
|
|
7
|
+
/** Evaluation period window (month-day stored as MM-DD, year applied at runtime). */
|
|
8
|
+
export declare class EmbassyEvaluationCycle extends BaseModel {
|
|
9
|
+
cycle_name: string;
|
|
10
|
+
/** Start of evaluation window, format MM-DD (e.g. 01-15). */
|
|
11
|
+
start_date: string;
|
|
12
|
+
/** End of evaluation window, format MM-DD. Submissions locked after this date in the active year. */
|
|
13
|
+
end_date: string;
|
|
14
|
+
status: EmbassyEvaluationCycleStatus;
|
|
15
|
+
service_id: number | null;
|
|
16
|
+
sub_service_id: number | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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.EmbassyEvaluationCycle = exports.EmbassyEvaluationCycleStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var EmbassyEvaluationCycleStatus;
|
|
16
|
+
(function (EmbassyEvaluationCycleStatus) {
|
|
17
|
+
EmbassyEvaluationCycleStatus["DRAFT"] = "Draft";
|
|
18
|
+
EmbassyEvaluationCycleStatus["ACTIVE"] = "Active";
|
|
19
|
+
EmbassyEvaluationCycleStatus["CLOSED"] = "Closed";
|
|
20
|
+
})(EmbassyEvaluationCycleStatus || (exports.EmbassyEvaluationCycleStatus = EmbassyEvaluationCycleStatus = {}));
|
|
21
|
+
/** Evaluation period window (month-day stored as MM-DD, year applied at runtime). */
|
|
22
|
+
let EmbassyEvaluationCycle = class EmbassyEvaluationCycle extends BaseModel_1.BaseModel {
|
|
23
|
+
};
|
|
24
|
+
exports.EmbassyEvaluationCycle = EmbassyEvaluationCycle;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], EmbassyEvaluationCycle.prototype, "cycle_name", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 10, nullable: false }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], EmbassyEvaluationCycle.prototype, "start_date", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 10, nullable: false }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], EmbassyEvaluationCycle.prototype, "end_date", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({
|
|
39
|
+
type: 'enum',
|
|
40
|
+
enum: EmbassyEvaluationCycleStatus,
|
|
41
|
+
enumName: 'embassy_eval_cycle_status_enum',
|
|
42
|
+
default: EmbassyEvaluationCycleStatus.DRAFT,
|
|
43
|
+
nullable: false,
|
|
44
|
+
}),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], EmbassyEvaluationCycle.prototype, "status", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], EmbassyEvaluationCycle.prototype, "service_id", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
53
|
+
__metadata("design:type", Object)
|
|
54
|
+
], EmbassyEvaluationCycle.prototype, "sub_service_id", void 0);
|
|
55
|
+
exports.EmbassyEvaluationCycle = EmbassyEvaluationCycle = __decorate([
|
|
56
|
+
(0, typeorm_1.Entity)({ name: 'embassy_evaluation_cycles' })
|
|
57
|
+
], EmbassyEvaluationCycle);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum EmbassyEvaluationDepartmentSettingStatus {
|
|
3
|
+
ACTIVE = "Active",
|
|
4
|
+
INACTIVE = "Inactive"
|
|
5
|
+
}
|
|
6
|
+
/** Required department–section pairs that participate in embassy evaluations. */
|
|
7
|
+
export declare class EmbassyEvaluationDepartmentSetting extends BaseModel {
|
|
8
|
+
department_id: number;
|
|
9
|
+
section_id: number;
|
|
10
|
+
/** Department evaluation form (EvaluationFormType.DEPARTMENT). */
|
|
11
|
+
form_id: number;
|
|
12
|
+
is_mandatory: boolean;
|
|
13
|
+
status: EmbassyEvaluationDepartmentSettingStatus;
|
|
14
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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.EmbassyEvaluationDepartmentSetting = exports.EmbassyEvaluationDepartmentSettingStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var EmbassyEvaluationDepartmentSettingStatus;
|
|
16
|
+
(function (EmbassyEvaluationDepartmentSettingStatus) {
|
|
17
|
+
EmbassyEvaluationDepartmentSettingStatus["ACTIVE"] = "Active";
|
|
18
|
+
EmbassyEvaluationDepartmentSettingStatus["INACTIVE"] = "Inactive";
|
|
19
|
+
})(EmbassyEvaluationDepartmentSettingStatus || (exports.EmbassyEvaluationDepartmentSettingStatus = EmbassyEvaluationDepartmentSettingStatus = {}));
|
|
20
|
+
/** Required department–section pairs that participate in embassy evaluations. */
|
|
21
|
+
let EmbassyEvaluationDepartmentSetting = class EmbassyEvaluationDepartmentSetting extends BaseModel_1.BaseModel {
|
|
22
|
+
};
|
|
23
|
+
exports.EmbassyEvaluationDepartmentSetting = EmbassyEvaluationDepartmentSetting;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], EmbassyEvaluationDepartmentSetting.prototype, "department_id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], EmbassyEvaluationDepartmentSetting.prototype, "section_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], EmbassyEvaluationDepartmentSetting.prototype, "form_id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
38
|
+
__metadata("design:type", Boolean)
|
|
39
|
+
], EmbassyEvaluationDepartmentSetting.prototype, "is_mandatory", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({
|
|
42
|
+
type: 'enum',
|
|
43
|
+
enum: EmbassyEvaluationDepartmentSettingStatus,
|
|
44
|
+
enumName: 'embassy_eval_dept_setting_status_enum',
|
|
45
|
+
default: EmbassyEvaluationDepartmentSettingStatus.ACTIVE,
|
|
46
|
+
nullable: false,
|
|
47
|
+
}),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], EmbassyEvaluationDepartmentSetting.prototype, "status", void 0);
|
|
50
|
+
exports.EmbassyEvaluationDepartmentSetting = EmbassyEvaluationDepartmentSetting = __decorate([
|
|
51
|
+
(0, typeorm_1.Entity)({ name: 'embassy_evaluation_department_settings' }),
|
|
52
|
+
(0, typeorm_1.Index)('uq_embassy_eval_dept_setting', ['department_id', 'section_id'], {
|
|
53
|
+
unique: true,
|
|
54
|
+
where: '"is_deleted" = false',
|
|
55
|
+
})
|
|
56
|
+
], EmbassyEvaluationDepartmentSetting);
|