@platform-modules/foreign-ministry 1.1.80 → 1.1.81
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 +33 -15
- package/dist/index.d.ts +25 -7
- package/dist/index.js +40 -7
- package/dist/models/DiplomaticTitlesMasterModel.d.ts +3 -7
- package/dist/models/DiplomaticTitlesMasterModel.js +9 -16
- package/dist/models/EarlyCheckoutBalanceModel.d.ts +7 -0
- package/dist/models/{DiplomaticClubCardChatModel.js → EarlyCheckoutBalanceModel.js} +21 -18
- package/dist/models/EarlyCheckoutConfigModel.d.ts +18 -0
- package/dist/models/EarlyCheckoutConfigModel.js +80 -0
- package/dist/models/EarlyCheckoutTransactionModel.d.ts +19 -0
- package/dist/models/EarlyCheckoutTransactionModel.js +66 -0
- package/dist/models/FinancialApprovalsModel.d.ts +1 -0
- package/dist/models/FinancialApprovalsModel.js +4 -0
- package/dist/models/FinancialGradeModel.d.ts +4 -3
- package/dist/models/FinancialGradeModel.js +12 -7
- package/dist/models/GeneralServiceApprovalsModel.d.ts +4 -1
- package/dist/models/GeneralServiceApprovalsModel.js +9 -0
- package/dist/models/LeaveApprovalsModel.d.ts +2 -1
- package/dist/models/LeaveApprovalsModel.js +7 -2
- package/dist/models/LeaveBalanceModel.d.ts +8 -0
- package/dist/models/{PassportRequestChatModel.js → LeaveBalanceModel.js} +23 -23
- package/dist/models/LeaveConfigGradesModel.d.ts +19 -0
- package/dist/models/LeaveConfigGradesModel.js +100 -0
- package/dist/models/LeaveConfigModel.d.ts +20 -0
- package/dist/models/LeaveConfigModel.js +90 -0
- package/dist/models/LeaveTransactionModel.d.ts +20 -0
- package/dist/models/LeaveTransactionModel.js +71 -0
- package/dist/models/LeaveTypesModel.d.ts +7 -1
- package/dist/models/LeaveTypesModel.js +20 -5
- package/dist/models/M&CMasterModel.d.ts +9 -0
- package/dist/models/M&CMasterModel.js +49 -0
- package/dist/models/ProfileUpdateRequestsModel.d.ts +106 -0
- package/dist/models/ProfileUpdateRequestsModel.js +409 -0
- package/dist/models/StationeryMaterialMasterModel.d.ts +11 -0
- package/dist/models/StationeryMaterialMasterModel.js +56 -0
- package/dist/models/StationeryRequestsModel.d.ts +27 -0
- package/dist/models/StationeryRequestsModel.js +93 -0
- package/dist/models/StayAfterHoursBalanceModel.d.ts +7 -0
- package/dist/models/StayAfterHoursBalanceModel.js +39 -0
- package/dist/models/StayAfterHoursTransactionModel.d.ts +19 -0
- package/dist/models/StayAfterHoursTransactionModel.js +66 -0
- package/dist/models/TelephoneDirectoryModel.d.ts +3 -2
- package/dist/models/TelephoneDirectoryModel.js +11 -6
- package/dist/models/UpdateAttendanceApprovalModel.d.ts +1 -0
- package/dist/models/UpdateAttendanceApprovalModel.js +4 -0
- package/dist/models/UserEducationDetailsModel.d.ts +12 -0
- package/dist/models/UserEducationDetailsModel.js +44 -0
- package/dist/models/UserEmploymentDetailsModel.d.ts +50 -0
- package/dist/models/UserEmploymentDetailsModel.js +193 -0
- package/dist/models/UserPersonalDetailsModel.d.ts +48 -0
- package/dist/models/UserPersonalDetailsModel.js +185 -0
- package/dist/models/user.d.ts +2 -1
- package/dist/models/user.js +7 -2
- package/package.json +1 -1
- package/src/data-source.ts +37 -17
- package/src/index.ts +25 -7
- package/src/models/DiplomaticTitlesMasterModel.ts +9 -20
- package/src/models/EarlyCheckoutBalanceModel.ts +22 -0
- package/src/models/EarlyCheckoutConfigModel.ts +57 -0
- package/src/models/EarlyCheckoutTransactionModel.ts +53 -0
- package/src/models/FinancialApprovalsModel.ts +4 -0
- package/src/models/FinancialGradeModel.ts +13 -8
- package/src/models/GeneralServiceApprovalsModel.ts +10 -1
- package/src/models/LeaveApprovalsModel.ts +5 -1
- package/src/models/LeaveBalanceModel.ts +26 -0
- package/src/models/LeaveConfigGradesModel.Ts +72 -0
- package/src/models/LeaveConfigModel.ts +64 -0
- package/src/models/LeaveTransactionModel.ts +58 -0
- package/src/models/LeaveTypesModel.ts +27 -11
- package/src/models/M&CMasterModel.ts +37 -0
- package/src/models/ProfileUpdateRequestsModel.ts +317 -0
- package/src/models/StationeryMaterialMasterModel.ts +35 -0
- package/src/models/StationeryRequestsModel.ts +65 -0
- package/src/models/StayAfterHoursBalanceModel.ts +22 -0
- package/src/models/StayAfterHoursTransactionModel.ts +53 -0
- package/src/models/TelephoneDirectoryModel.ts +8 -4
- package/src/models/UpdateAttendanceApprovalModel.ts +3 -0
- package/src/models/UserEducationDetailsModel.ts +26 -0
- package/src/models/UserEmploymentDetailsModel.ts +141 -0
- package/src/models/UserPersonalDetailsModel.ts +137 -0
- package/src/models/user.ts +5 -0
- package/dist/models/DiplomaticApprovalsModel.d.ts +0 -24
- package/dist/models/DiplomaticApprovalsModel.js +0 -94
- package/dist/models/DiplomaticAttachmentsModel.d.ts +0 -11
- package/dist/models/DiplomaticAttachmentsModel.js +0 -53
- package/dist/models/DiplomaticChatsModel.d.ts +0 -20
- package/dist/models/DiplomaticChatsModel.js +0 -70
- package/dist/models/DiplomaticClubCardApprovalModel.d.ts +0 -16
- package/dist/models/DiplomaticClubCardApprovalModel.js +0 -58
- package/dist/models/DiplomaticClubCardAttachmentModel.d.ts +0 -9
- package/dist/models/DiplomaticClubCardAttachmentModel.js +0 -44
- package/dist/models/DiplomaticClubCardChatModel.d.ts +0 -7
- package/dist/models/DiplomaticClubCardMemberModel.d.ts +0 -13
- package/dist/models/DiplomaticClubCardMemberModel.js +0 -60
- package/dist/models/DiplomaticClubCardMembersModel.d.ts +0 -26
- package/dist/models/DiplomaticClubCardMembersModel.js +0 -85
- package/dist/models/DiplomaticClubCardRequestModel.d.ts +0 -33
- package/dist/models/DiplomaticClubCardRequestModel.js +0 -98
- package/dist/models/DiplomaticClubCardWorkFlowModel.d.ts +0 -12
- package/dist/models/DiplomaticClubCardWorkFlowModel.js +0 -42
- package/dist/models/DiplomaticClubSubscriptionMasterModel.d.ts +0 -12
- package/dist/models/DiplomaticClubSubscriptionMasterModel.js +0 -64
- package/dist/models/DiplomaticRequestsModel.d.ts +0 -54
- package/dist/models/DiplomaticRequestsModel.js +0 -186
- package/dist/models/DiplomaticServiceDetailsModel.d.ts +0 -20
- package/dist/models/DiplomaticServiceDetailsModel.js +0 -65
- package/dist/models/DiplomaticSettingsModel.d.ts +0 -11
- package/dist/models/DiplomaticSettingsModel.js +0 -59
- package/dist/models/DiplomaticTitleModel.d.ts +0 -12
- package/dist/models/DiplomaticTitleModel.js +0 -45
- package/dist/models/DiplomaticWorkFlowModel.d.ts +0 -18
- package/dist/models/DiplomaticWorkFlowModel.js +0 -69
- package/dist/models/PassportRequestApprovalModel.d.ts +0 -22
- package/dist/models/PassportRequestApprovalModel.js +0 -91
- package/dist/models/PassportRequestAttachmentModel.d.ts +0 -10
- package/dist/models/PassportRequestAttachmentModel.js +0 -54
- package/dist/models/PassportRequestChatModel.d.ts +0 -8
- package/dist/models/PassportRequestDependentModel.d.ts +0 -20
- package/dist/models/PassportRequestDependentModel.js +0 -85
- package/dist/models/PassportRequestModel.d.ts +0 -40
- package/dist/models/PassportRequestModel.js +0 -128
- package/dist/models/PassportRequestWorkFlowModel.d.ts +0 -15
- package/dist/models/PassportRequestWorkFlowModel.js +0 -60
- package/dist/models/SubscriptionAmountModel.d.ts +0 -67
- package/dist/models/SubscriptionAmountModel.js +0 -114
- package/src/models/DiplomaticApprovalsModel.ts +0 -77
- package/src/models/DiplomaticAttachmentsModel.ts +0 -37
- package/src/models/DiplomaticChatsModel.ts +0 -53
- package/src/models/DiplomaticClubCardMembersModel.ts +0 -71
- package/src/models/DiplomaticClubSubscriptionMasterModel.ts +0 -50
- package/src/models/DiplomaticRequestsModel.ts +0 -154
- package/src/models/DiplomaticWorkFlowModel.ts +0 -53
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.DiplomaticClubCardWorkFlow = exports.DiplomaticClubCardWorkFlowStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var DiplomaticClubCardWorkFlowStatus;
|
|
16
|
-
(function (DiplomaticClubCardWorkFlowStatus) {
|
|
17
|
-
DiplomaticClubCardWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
-
DiplomaticClubCardWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
-
DiplomaticClubCardWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
-
})(DiplomaticClubCardWorkFlowStatus || (exports.DiplomaticClubCardWorkFlowStatus = DiplomaticClubCardWorkFlowStatus = {}));
|
|
21
|
-
let DiplomaticClubCardWorkFlow = class DiplomaticClubCardWorkFlow extends BaseModel_1.BaseModel {
|
|
22
|
-
};
|
|
23
|
-
exports.DiplomaticClubCardWorkFlow = DiplomaticClubCardWorkFlow;
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
26
|
-
__metadata("design:type", Number)
|
|
27
|
-
], DiplomaticClubCardWorkFlow.prototype, "request_id", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false, default: 0 }),
|
|
30
|
-
__metadata("design:type", Number)
|
|
31
|
-
], DiplomaticClubCardWorkFlow.prototype, "approval_details_id", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
34
|
-
__metadata("design:type", String)
|
|
35
|
-
], DiplomaticClubCardWorkFlow.prototype, "content", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: DiplomaticClubCardWorkFlowStatus, default: DiplomaticClubCardWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], DiplomaticClubCardWorkFlow.prototype, "status", void 0);
|
|
40
|
-
exports.DiplomaticClubCardWorkFlow = DiplomaticClubCardWorkFlow = __decorate([
|
|
41
|
-
(0, typeorm_1.Entity)({ name: 'diplomatic_club_card_work_flows' })
|
|
42
|
-
], DiplomaticClubCardWorkFlow);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare class DiplomaticClubSubscriptionMaster extends BaseModel {
|
|
3
|
-
subscription_type: string;
|
|
4
|
-
subscription_amount: number;
|
|
5
|
-
currency: string | null;
|
|
6
|
-
description: string | null;
|
|
7
|
-
is_active: boolean;
|
|
8
|
-
effective_from: Date | null;
|
|
9
|
-
effective_to: Date | null;
|
|
10
|
-
subscription_period: string | null;
|
|
11
|
-
constructor(subscription_type: string, subscription_amount: number, currency?: string | null, description?: string | null, effective_from?: Date | null, effective_to?: Date | null, subscription_period?: string | null);
|
|
12
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.DiplomaticClubSubscriptionMaster = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let DiplomaticClubSubscriptionMaster = class DiplomaticClubSubscriptionMaster extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(subscription_type, subscription_amount, currency, description, effective_from, effective_to, subscription_period) {
|
|
17
|
-
super();
|
|
18
|
-
this.subscription_type = subscription_type;
|
|
19
|
-
this.subscription_amount = subscription_amount;
|
|
20
|
-
this.currency = currency || null;
|
|
21
|
-
this.description = description || null;
|
|
22
|
-
this.is_active = true;
|
|
23
|
-
this.effective_from = effective_from || null;
|
|
24
|
-
this.effective_to = effective_to || null;
|
|
25
|
-
this.subscription_period = subscription_period || null;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
exports.DiplomaticClubSubscriptionMaster = DiplomaticClubSubscriptionMaster;
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], DiplomaticClubSubscriptionMaster.prototype, "subscription_type", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2 }),
|
|
35
|
-
__metadata("design:type", Number)
|
|
36
|
-
], DiplomaticClubSubscriptionMaster.prototype, "subscription_amount", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 10, nullable: true }),
|
|
39
|
-
__metadata("design:type", Object)
|
|
40
|
-
], DiplomaticClubSubscriptionMaster.prototype, "currency", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
43
|
-
__metadata("design:type", Object)
|
|
44
|
-
], DiplomaticClubSubscriptionMaster.prototype, "description", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
47
|
-
__metadata("design:type", Boolean)
|
|
48
|
-
], DiplomaticClubSubscriptionMaster.prototype, "is_active", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
51
|
-
__metadata("design:type", Object)
|
|
52
|
-
], DiplomaticClubSubscriptionMaster.prototype, "effective_from", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
55
|
-
__metadata("design:type", Object)
|
|
56
|
-
], DiplomaticClubSubscriptionMaster.prototype, "effective_to", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: true }),
|
|
59
|
-
__metadata("design:type", Object)
|
|
60
|
-
], DiplomaticClubSubscriptionMaster.prototype, "subscription_period", void 0);
|
|
61
|
-
exports.DiplomaticClubSubscriptionMaster = DiplomaticClubSubscriptionMaster = __decorate([
|
|
62
|
-
(0, typeorm_1.Entity)({ name: 'diplomatic_club_subscription_master' }),
|
|
63
|
-
__metadata("design:paramtypes", [String, Number, Object, Object, Object, Object, Object])
|
|
64
|
-
], DiplomaticClubSubscriptionMaster);
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
import type { DiplomaticApprovals } from './DiplomaticApprovalsModel';
|
|
3
|
-
import type { DiplomaticWorkFlow } from './DiplomaticWorkFlowModel';
|
|
4
|
-
import type { DiplomaticAttachments } from './DiplomaticAttachmentsModel';
|
|
5
|
-
import type { DiplomaticChats } from './DiplomaticChatsModel';
|
|
6
|
-
import type { DiplomaticClubCardMembers } from './DiplomaticClubCardMembersModel';
|
|
7
|
-
export declare enum DiplomaticRequestStatus {
|
|
8
|
-
DRAFT = "Draft",
|
|
9
|
-
SUBMITTED = "Submitted",
|
|
10
|
-
PENDING = "Pending",
|
|
11
|
-
IN_PROGRESS = "In Progress",
|
|
12
|
-
APPROVED = "Approved",
|
|
13
|
-
REJECTED = "Rejected",
|
|
14
|
-
COMPLETED = "Completed",
|
|
15
|
-
CANCELLED = "Cancelled"
|
|
16
|
-
}
|
|
17
|
-
export declare class DiplomaticRequests extends BaseModel {
|
|
18
|
-
user_id: number;
|
|
19
|
-
employee_id: string;
|
|
20
|
-
employee_name: string;
|
|
21
|
-
grade: string | null;
|
|
22
|
-
designation_id: number | null;
|
|
23
|
-
department_id: number | null;
|
|
24
|
-
email_address: string;
|
|
25
|
-
contact_number: string;
|
|
26
|
-
request_date: Date;
|
|
27
|
-
request_status: DiplomaticRequestStatus;
|
|
28
|
-
request_close_date: Date | null;
|
|
29
|
-
end_date: Date | null;
|
|
30
|
-
remarks: string | null;
|
|
31
|
-
current_approval_level: number | null;
|
|
32
|
-
current_approver_id: number | null;
|
|
33
|
-
service_id: number | null;
|
|
34
|
-
sub_service_id: number | null;
|
|
35
|
-
member_name: string | null;
|
|
36
|
-
membership_type: string | null;
|
|
37
|
-
diplomatic_title_id: number | null;
|
|
38
|
-
location: string | null;
|
|
39
|
-
request_type: string | null;
|
|
40
|
-
expiry_date: Date | null;
|
|
41
|
-
photo_url: string | null;
|
|
42
|
-
membership_id: string | null;
|
|
43
|
-
organization: string | null;
|
|
44
|
-
subscription_amount: number | null;
|
|
45
|
-
section_id: number | null;
|
|
46
|
-
reporting_manager: number | null;
|
|
47
|
-
workflow_execution_id: string | null;
|
|
48
|
-
diplomaticClubCardMembers?: DiplomaticClubCardMembers[];
|
|
49
|
-
approvals?: DiplomaticApprovals[];
|
|
50
|
-
workflows?: DiplomaticWorkFlow[];
|
|
51
|
-
attachments?: DiplomaticAttachments[];
|
|
52
|
-
chats?: DiplomaticChats[];
|
|
53
|
-
constructor(user_id: number, employee_id: string, employee_name: string, email_address: string, contact_number: string, service_id: number | null, sub_service_id: number | null, section_id: number | null, reporting_manager: number | null);
|
|
54
|
-
}
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.DiplomaticRequests = exports.DiplomaticRequestStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var DiplomaticRequestStatus;
|
|
16
|
-
(function (DiplomaticRequestStatus) {
|
|
17
|
-
DiplomaticRequestStatus["DRAFT"] = "Draft";
|
|
18
|
-
DiplomaticRequestStatus["SUBMITTED"] = "Submitted";
|
|
19
|
-
DiplomaticRequestStatus["PENDING"] = "Pending";
|
|
20
|
-
DiplomaticRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
21
|
-
DiplomaticRequestStatus["APPROVED"] = "Approved";
|
|
22
|
-
DiplomaticRequestStatus["REJECTED"] = "Rejected";
|
|
23
|
-
DiplomaticRequestStatus["COMPLETED"] = "Completed";
|
|
24
|
-
DiplomaticRequestStatus["CANCELLED"] = "Cancelled";
|
|
25
|
-
})(DiplomaticRequestStatus || (exports.DiplomaticRequestStatus = DiplomaticRequestStatus = {}));
|
|
26
|
-
let DiplomaticRequests = class DiplomaticRequests extends BaseModel_1.BaseModel {
|
|
27
|
-
constructor(user_id, employee_id, employee_name, email_address, contact_number, service_id, sub_service_id, section_id, reporting_manager) {
|
|
28
|
-
super();
|
|
29
|
-
this.user_id = user_id;
|
|
30
|
-
this.employee_id = employee_id;
|
|
31
|
-
this.employee_name = employee_name;
|
|
32
|
-
this.email_address = email_address;
|
|
33
|
-
this.contact_number = contact_number;
|
|
34
|
-
this.request_date = new Date();
|
|
35
|
-
this.request_status = DiplomaticRequestStatus.PENDING;
|
|
36
|
-
this.service_id = service_id;
|
|
37
|
-
this.sub_service_id = sub_service_id;
|
|
38
|
-
this.section_id = section_id;
|
|
39
|
-
this.reporting_manager = reporting_manager;
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
exports.DiplomaticRequests = DiplomaticRequests;
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, typeorm_1.Column)({ type: 'int' }),
|
|
45
|
-
__metadata("design:type", Number)
|
|
46
|
-
], DiplomaticRequests.prototype, "user_id", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
|
|
49
|
-
__metadata("design:type", String)
|
|
50
|
-
], DiplomaticRequests.prototype, "employee_id", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
|
-
], DiplomaticRequests.prototype, "employee_name", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
57
|
-
__metadata("design:type", Object)
|
|
58
|
-
], DiplomaticRequests.prototype, "grade", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
61
|
-
__metadata("design:type", Object)
|
|
62
|
-
], DiplomaticRequests.prototype, "designation_id", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
65
|
-
__metadata("design:type", Object)
|
|
66
|
-
], DiplomaticRequests.prototype, "department_id", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
69
|
-
__metadata("design:type", String)
|
|
70
|
-
], DiplomaticRequests.prototype, "email_address", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 20 }),
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], DiplomaticRequests.prototype, "contact_number", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
77
|
-
__metadata("design:type", Date)
|
|
78
|
-
], DiplomaticRequests.prototype, "request_date", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: DiplomaticRequestStatus, default: DiplomaticRequestStatus.PENDING }),
|
|
81
|
-
__metadata("design:type", String)
|
|
82
|
-
], DiplomaticRequests.prototype, "request_status", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
|
|
85
|
-
__metadata("design:type", Object)
|
|
86
|
-
], DiplomaticRequests.prototype, "request_close_date", void 0);
|
|
87
|
-
__decorate([
|
|
88
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
89
|
-
__metadata("design:type", Object)
|
|
90
|
-
], DiplomaticRequests.prototype, "end_date", void 0);
|
|
91
|
-
__decorate([
|
|
92
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
93
|
-
__metadata("design:type", Object)
|
|
94
|
-
], DiplomaticRequests.prototype, "remarks", void 0);
|
|
95
|
-
__decorate([
|
|
96
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
97
|
-
__metadata("design:type", Object)
|
|
98
|
-
], DiplomaticRequests.prototype, "current_approval_level", void 0);
|
|
99
|
-
__decorate([
|
|
100
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
101
|
-
__metadata("design:type", Object)
|
|
102
|
-
], DiplomaticRequests.prototype, "current_approver_id", void 0);
|
|
103
|
-
__decorate([
|
|
104
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
105
|
-
__metadata("design:type", Object)
|
|
106
|
-
], DiplomaticRequests.prototype, "service_id", void 0);
|
|
107
|
-
__decorate([
|
|
108
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
109
|
-
__metadata("design:type", Object)
|
|
110
|
-
], DiplomaticRequests.prototype, "sub_service_id", void 0);
|
|
111
|
-
__decorate([
|
|
112
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
113
|
-
__metadata("design:type", Object)
|
|
114
|
-
], DiplomaticRequests.prototype, "member_name", void 0);
|
|
115
|
-
__decorate([
|
|
116
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
117
|
-
__metadata("design:type", Object)
|
|
118
|
-
], DiplomaticRequests.prototype, "membership_type", void 0);
|
|
119
|
-
__decorate([
|
|
120
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
121
|
-
__metadata("design:type", Object)
|
|
122
|
-
], DiplomaticRequests.prototype, "diplomatic_title_id", void 0);
|
|
123
|
-
__decorate([
|
|
124
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
125
|
-
__metadata("design:type", Object)
|
|
126
|
-
], DiplomaticRequests.prototype, "location", void 0);
|
|
127
|
-
__decorate([
|
|
128
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
129
|
-
__metadata("design:type", Object)
|
|
130
|
-
], DiplomaticRequests.prototype, "request_type", void 0);
|
|
131
|
-
__decorate([
|
|
132
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
133
|
-
__metadata("design:type", Object)
|
|
134
|
-
], DiplomaticRequests.prototype, "expiry_date", void 0);
|
|
135
|
-
__decorate([
|
|
136
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
137
|
-
__metadata("design:type", Object)
|
|
138
|
-
], DiplomaticRequests.prototype, "photo_url", void 0);
|
|
139
|
-
__decorate([
|
|
140
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
141
|
-
__metadata("design:type", Object)
|
|
142
|
-
], DiplomaticRequests.prototype, "membership_id", void 0);
|
|
143
|
-
__decorate([
|
|
144
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
145
|
-
__metadata("design:type", Object)
|
|
146
|
-
], DiplomaticRequests.prototype, "organization", void 0);
|
|
147
|
-
__decorate([
|
|
148
|
-
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: true }),
|
|
149
|
-
__metadata("design:type", Object)
|
|
150
|
-
], DiplomaticRequests.prototype, "subscription_amount", void 0);
|
|
151
|
-
__decorate([
|
|
152
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
153
|
-
__metadata("design:type", Object)
|
|
154
|
-
], DiplomaticRequests.prototype, "section_id", void 0);
|
|
155
|
-
__decorate([
|
|
156
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
157
|
-
__metadata("design:type", Object)
|
|
158
|
-
], DiplomaticRequests.prototype, "reporting_manager", void 0);
|
|
159
|
-
__decorate([
|
|
160
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
161
|
-
__metadata("design:type", Object)
|
|
162
|
-
], DiplomaticRequests.prototype, "workflow_execution_id", void 0);
|
|
163
|
-
__decorate([
|
|
164
|
-
(0, typeorm_1.OneToMany)('DiplomaticClubCardMembers', 'diplomaticRequest', { nullable: true }),
|
|
165
|
-
__metadata("design:type", Array)
|
|
166
|
-
], DiplomaticRequests.prototype, "diplomaticClubCardMembers", void 0);
|
|
167
|
-
__decorate([
|
|
168
|
-
(0, typeorm_1.OneToMany)('DiplomaticApprovals', 'diplomaticRequest'),
|
|
169
|
-
__metadata("design:type", Array)
|
|
170
|
-
], DiplomaticRequests.prototype, "approvals", void 0);
|
|
171
|
-
__decorate([
|
|
172
|
-
(0, typeorm_1.OneToMany)('DiplomaticWorkFlow', 'diplomaticRequest'),
|
|
173
|
-
__metadata("design:type", Array)
|
|
174
|
-
], DiplomaticRequests.prototype, "workflows", void 0);
|
|
175
|
-
__decorate([
|
|
176
|
-
(0, typeorm_1.OneToMany)('DiplomaticAttachments', 'diplomaticRequest'),
|
|
177
|
-
__metadata("design:type", Array)
|
|
178
|
-
], DiplomaticRequests.prototype, "attachments", void 0);
|
|
179
|
-
__decorate([
|
|
180
|
-
(0, typeorm_1.OneToMany)('DiplomaticChats', 'diplomaticRequest'),
|
|
181
|
-
__metadata("design:type", Array)
|
|
182
|
-
], DiplomaticRequests.prototype, "chats", void 0);
|
|
183
|
-
exports.DiplomaticRequests = DiplomaticRequests = __decorate([
|
|
184
|
-
(0, typeorm_1.Entity)({ name: 'diplomatic_requests' }),
|
|
185
|
-
__metadata("design:paramtypes", [Number, String, String, String, String, Object, Object, Object, Object])
|
|
186
|
-
], DiplomaticRequests);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
import { DiplomaticRequests } from './DiplomaticRequestsModel';
|
|
3
|
-
export declare enum DiplomaticServiceType {
|
|
4
|
-
TRANSFER_TO_LONG_TERM_MISSION = "Transfer to Long Term Mission",
|
|
5
|
-
MISSION_TRAVEL = "Mission Travel",
|
|
6
|
-
DIPLOMATIC_PASSPORT = "Diplomatic Passport",
|
|
7
|
-
PARCEL_SERVICES = "Parcel Services",
|
|
8
|
-
DIPLOMATIC_CLUB_CARD = "Diplomatic Club Card",
|
|
9
|
-
VACANCY_REGISTRATION = "Vacancy Registration",
|
|
10
|
-
VACANCY_CANDIDATE = "Vacancy Candidate"
|
|
11
|
-
}
|
|
12
|
-
export declare class DiplomaticServiceDetails extends BaseModel {
|
|
13
|
-
diplomatic_request_id: number;
|
|
14
|
-
service_type: DiplomaticServiceType;
|
|
15
|
-
service_id: number | null;
|
|
16
|
-
sub_service_id: number | null;
|
|
17
|
-
service_data: any;
|
|
18
|
-
diplomaticRequest?: DiplomaticRequests;
|
|
19
|
-
constructor(diplomatic_request_id: number, service_type: DiplomaticServiceType, service_data: any, service_id: number | null, sub_service_id: number | null);
|
|
20
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.DiplomaticServiceDetails = exports.DiplomaticServiceType = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
const DiplomaticRequestsModel_1 = require("./DiplomaticRequestsModel");
|
|
16
|
-
var DiplomaticServiceType;
|
|
17
|
-
(function (DiplomaticServiceType) {
|
|
18
|
-
DiplomaticServiceType["TRANSFER_TO_LONG_TERM_MISSION"] = "Transfer to Long Term Mission";
|
|
19
|
-
DiplomaticServiceType["MISSION_TRAVEL"] = "Mission Travel";
|
|
20
|
-
DiplomaticServiceType["DIPLOMATIC_PASSPORT"] = "Diplomatic Passport";
|
|
21
|
-
DiplomaticServiceType["PARCEL_SERVICES"] = "Parcel Services";
|
|
22
|
-
DiplomaticServiceType["DIPLOMATIC_CLUB_CARD"] = "Diplomatic Club Card";
|
|
23
|
-
DiplomaticServiceType["VACANCY_REGISTRATION"] = "Vacancy Registration";
|
|
24
|
-
DiplomaticServiceType["VACANCY_CANDIDATE"] = "Vacancy Candidate";
|
|
25
|
-
})(DiplomaticServiceType || (exports.DiplomaticServiceType = DiplomaticServiceType = {}));
|
|
26
|
-
let DiplomaticServiceDetails = class DiplomaticServiceDetails extends BaseModel_1.BaseModel {
|
|
27
|
-
constructor(diplomatic_request_id, service_type, service_data, service_id, sub_service_id) {
|
|
28
|
-
super();
|
|
29
|
-
this.diplomatic_request_id = diplomatic_request_id;
|
|
30
|
-
this.service_type = service_type;
|
|
31
|
-
this.service_data = service_data;
|
|
32
|
-
this.service_id = service_id;
|
|
33
|
-
this.sub_service_id = sub_service_id;
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
exports.DiplomaticServiceDetails = DiplomaticServiceDetails;
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ type: 'int', unique: true }),
|
|
39
|
-
__metadata("design:type", Number)
|
|
40
|
-
], DiplomaticServiceDetails.prototype, "diplomatic_request_id", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: DiplomaticServiceType }),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], DiplomaticServiceDetails.prototype, "service_type", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
47
|
-
__metadata("design:type", Object)
|
|
48
|
-
], DiplomaticServiceDetails.prototype, "service_id", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
51
|
-
__metadata("design:type", Object)
|
|
52
|
-
], DiplomaticServiceDetails.prototype, "sub_service_id", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
55
|
-
__metadata("design:type", Object)
|
|
56
|
-
], DiplomaticServiceDetails.prototype, "service_data", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.OneToOne)(() => DiplomaticRequestsModel_1.DiplomaticRequests, dr => dr.serviceDetails),
|
|
59
|
-
(0, typeorm_1.JoinColumn)({ name: 'diplomatic_request_id' }),
|
|
60
|
-
__metadata("design:type", DiplomaticRequestsModel_1.DiplomaticRequests)
|
|
61
|
-
], DiplomaticServiceDetails.prototype, "diplomaticRequest", void 0);
|
|
62
|
-
exports.DiplomaticServiceDetails = DiplomaticServiceDetails = __decorate([
|
|
63
|
-
(0, typeorm_1.Entity)({ name: 'diplomatic_service_details' }),
|
|
64
|
-
__metadata("design:paramtypes", [Number, String, Object, Object, Object])
|
|
65
|
-
], DiplomaticServiceDetails);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare class DiplomaticSettings extends BaseModel {
|
|
3
|
-
service_id: number;
|
|
4
|
-
approval_level: number;
|
|
5
|
-
approver_role_id: number;
|
|
6
|
-
is_active: boolean;
|
|
7
|
-
sub_service_id: number;
|
|
8
|
-
department_id: number;
|
|
9
|
-
section_id: number;
|
|
10
|
-
constructor(service_id: number, approval_level: number, approver_role_id: number, sub_service_id: number, department_id: number, section_id: number);
|
|
11
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.DiplomaticSettings = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let DiplomaticSettings = class DiplomaticSettings extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(service_id, approval_level, approver_role_id, sub_service_id, department_id, section_id) {
|
|
17
|
-
super();
|
|
18
|
-
this.service_id = service_id;
|
|
19
|
-
this.approval_level = approval_level;
|
|
20
|
-
this.approver_role_id = approver_role_id;
|
|
21
|
-
this.is_active = true;
|
|
22
|
-
this.sub_service_id = sub_service_id;
|
|
23
|
-
this.department_id = department_id;
|
|
24
|
-
this.section_id = section_id;
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
exports.DiplomaticSettings = DiplomaticSettings;
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)({ type: 'int' }),
|
|
30
|
-
__metadata("design:type", Number)
|
|
31
|
-
], DiplomaticSettings.prototype, "service_id", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({ type: 'int' }),
|
|
34
|
-
__metadata("design:type", Number)
|
|
35
|
-
], DiplomaticSettings.prototype, "approval_level", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, typeorm_1.Column)({ type: 'int' }),
|
|
38
|
-
__metadata("design:type", Number)
|
|
39
|
-
], DiplomaticSettings.prototype, "approver_role_id", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
42
|
-
__metadata("design:type", Boolean)
|
|
43
|
-
], DiplomaticSettings.prototype, "is_active", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
46
|
-
__metadata("design:type", Number)
|
|
47
|
-
], DiplomaticSettings.prototype, "sub_service_id", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
50
|
-
__metadata("design:type", Number)
|
|
51
|
-
], DiplomaticSettings.prototype, "department_id", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
54
|
-
__metadata("design:type", Number)
|
|
55
|
-
], DiplomaticSettings.prototype, "section_id", void 0);
|
|
56
|
-
exports.DiplomaticSettings = DiplomaticSettings = __decorate([
|
|
57
|
-
(0, typeorm_1.Entity)({ name: 'diplomatic_settings' }),
|
|
58
|
-
__metadata("design:paramtypes", [Number, Number, Number, Number, Number, Number])
|
|
59
|
-
], DiplomaticSettings);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum TitleCategory {
|
|
3
|
-
EMPLOYEE = "Employee",
|
|
4
|
-
NON_EMPLOYEE = "Non Employee"
|
|
5
|
-
}
|
|
6
|
-
export declare class DiplomaticTitles extends BaseModel {
|
|
7
|
-
title_name: string;
|
|
8
|
-
title_name_arabic: string | null;
|
|
9
|
-
category: TitleCategory;
|
|
10
|
-
is_active: boolean;
|
|
11
|
-
display_order: number | null;
|
|
12
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.DiplomaticTitles = exports.TitleCategory = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var TitleCategory;
|
|
16
|
-
(function (TitleCategory) {
|
|
17
|
-
TitleCategory["EMPLOYEE"] = "Employee";
|
|
18
|
-
TitleCategory["NON_EMPLOYEE"] = "Non Employee";
|
|
19
|
-
})(TitleCategory || (exports.TitleCategory = TitleCategory = {}));
|
|
20
|
-
let DiplomaticTitles = class DiplomaticTitles extends BaseModel_1.BaseModel {
|
|
21
|
-
};
|
|
22
|
-
exports.DiplomaticTitles = DiplomaticTitles;
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], DiplomaticTitles.prototype, "title_name", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
29
|
-
__metadata("design:type", Object)
|
|
30
|
-
], DiplomaticTitles.prototype, "title_name_arabic", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: TitleCategory, nullable: false }),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], DiplomaticTitles.prototype, "category", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
37
|
-
__metadata("design:type", Boolean)
|
|
38
|
-
], DiplomaticTitles.prototype, "is_active", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
41
|
-
__metadata("design:type", Object)
|
|
42
|
-
], DiplomaticTitles.prototype, "display_order", void 0);
|
|
43
|
-
exports.DiplomaticTitles = DiplomaticTitles = __decorate([
|
|
44
|
-
(0, typeorm_1.Entity)({ name: 'diplomatic_titles' })
|
|
45
|
-
], DiplomaticTitles);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
import { DiplomaticRequests } from "./DiplomaticRequestsModel";
|
|
3
|
-
export declare enum DiplomaticWorkFlowStatus {
|
|
4
|
-
COMPLETED = "Completed",
|
|
5
|
-
NOT_YET_STARTED = "Not Yet Started",
|
|
6
|
-
PENDING = "Pending"
|
|
7
|
-
}
|
|
8
|
-
export declare class DiplomaticWorkFlow extends BaseModel {
|
|
9
|
-
diplomatic_request_id: number;
|
|
10
|
-
content: string;
|
|
11
|
-
status: DiplomaticWorkFlowStatus;
|
|
12
|
-
user_id: number | null;
|
|
13
|
-
step_order: number | null;
|
|
14
|
-
diplomatic_approval_id: number | null;
|
|
15
|
-
approved_by_role_id: number | null;
|
|
16
|
-
diplomaticRequest?: DiplomaticRequests;
|
|
17
|
-
constructor(diplomatic_request_id: number, content: string, status: DiplomaticWorkFlowStatus, user_id: number | null, step_order: number | null);
|
|
18
|
-
}
|