@platform-modules/foreign-ministry 1.1.68 → 1.1.70
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 -24
- package/dist/index.d.ts +8 -20
- package/dist/index.js +8 -34
- package/dist/models/DiplomaticApprovalsModel.d.ts +24 -0
- package/dist/models/DiplomaticApprovalsModel.js +94 -0
- package/dist/models/DiplomaticAttachmentsModel.d.ts +11 -0
- package/dist/models/DiplomaticAttachmentsModel.js +53 -0
- package/dist/models/DiplomaticChatsModel.d.ts +20 -0
- package/dist/models/DiplomaticChatsModel.js +70 -0
- package/dist/models/DiplomaticClubCardApprovalModel.d.ts +16 -0
- package/dist/models/DiplomaticClubCardApprovalModel.js +58 -0
- package/dist/models/DiplomaticClubCardAttachmentModel.d.ts +9 -0
- package/dist/models/DiplomaticClubCardAttachmentModel.js +44 -0
- package/dist/models/DiplomaticClubCardChatModel.d.ts +7 -0
- package/dist/models/{EarlyCheckoutBalanceModel.js → DiplomaticClubCardChatModel.js} +18 -21
- package/dist/models/DiplomaticClubCardMemberModel.d.ts +13 -0
- package/dist/models/DiplomaticClubCardMemberModel.js +60 -0
- package/dist/models/DiplomaticClubCardMembersModel.d.ts +37 -0
- package/dist/models/DiplomaticClubCardMembersModel.js +139 -0
- package/dist/models/DiplomaticClubCardRequestModel.d.ts +33 -0
- package/dist/models/DiplomaticClubCardRequestModel.js +98 -0
- package/dist/models/DiplomaticClubCardWorkFlowModel.d.ts +12 -0
- package/dist/models/DiplomaticClubCardWorkFlowModel.js +42 -0
- package/dist/models/DiplomaticClubSubscriptionMasterModel.d.ts +12 -0
- package/dist/models/DiplomaticClubSubscriptionMasterModel.js +64 -0
- package/dist/models/DiplomaticRequestsModel.d.ts +43 -0
- package/dist/models/DiplomaticRequestsModel.js +142 -0
- package/dist/models/DiplomaticServiceDetailsModel.d.ts +20 -0
- package/dist/models/DiplomaticServiceDetailsModel.js +65 -0
- package/dist/models/DiplomaticSettingsModel.d.ts +11 -0
- package/dist/models/DiplomaticSettingsModel.js +59 -0
- package/dist/models/DiplomaticTitleModel.d.ts +12 -0
- package/dist/models/DiplomaticTitleModel.js +45 -0
- package/dist/models/DiplomaticTitlesMasterModel.d.ts +13 -0
- package/dist/models/{StationeryMaterialMasterModel.js → DiplomaticTitlesMasterModel.js} +23 -25
- package/dist/models/DiplomaticWorkFlowModel.d.ts +18 -0
- package/dist/models/DiplomaticWorkFlowModel.js +69 -0
- package/dist/models/FinancialApprovalsModel.d.ts +0 -1
- package/dist/models/FinancialApprovalsModel.js +0 -4
- package/dist/models/FinancialGradeModel.d.ts +3 -4
- package/dist/models/FinancialGradeModel.js +7 -12
- package/dist/models/GeneralServiceApprovalsModel.d.ts +1 -4
- package/dist/models/GeneralServiceApprovalsModel.js +0 -9
- package/dist/models/LeaveTypesModel.d.ts +1 -7
- package/dist/models/LeaveTypesModel.js +5 -20
- package/dist/models/PassportRequestApprovalModel.d.ts +22 -0
- package/dist/models/PassportRequestApprovalModel.js +91 -0
- package/dist/models/PassportRequestAttachmentModel.d.ts +10 -0
- package/dist/models/PassportRequestAttachmentModel.js +54 -0
- package/dist/models/PassportRequestChatModel.d.ts +8 -0
- package/dist/models/{LeaveBalanceModel.js → PassportRequestChatModel.js} +23 -23
- package/dist/models/PassportRequestDependentModel.d.ts +20 -0
- package/dist/models/PassportRequestDependentModel.js +85 -0
- package/dist/models/PassportRequestModel.d.ts +40 -0
- package/dist/models/PassportRequestModel.js +128 -0
- package/dist/models/PassportRequestWorkFlowModel.d.ts +15 -0
- package/dist/models/PassportRequestWorkFlowModel.js +60 -0
- package/dist/models/SubscriptionAmountModel.d.ts +67 -0
- package/dist/models/SubscriptionAmountModel.js +114 -0
- package/package.json +1 -1
- package/src/data-source.ts +17 -26
- package/src/index.ts +8 -20
- package/src/models/DiplomaticApprovalsModel.ts +77 -0
- package/src/models/DiplomaticAttachmentsModel.ts +37 -0
- package/src/models/DiplomaticChatsModel.ts +53 -0
- package/src/models/DiplomaticClubCardMembersModel.ts +124 -0
- package/src/models/DiplomaticClubSubscriptionMasterModel.ts +50 -0
- package/src/models/DiplomaticRequestsModel.ts +121 -0
- package/src/models/DiplomaticTitlesMasterModel.ts +39 -0
- package/src/models/DiplomaticWorkFlowModel.ts +53 -0
- package/src/models/FinancialApprovalsModel.ts +0 -4
- package/src/models/FinancialGradeModel.ts +8 -13
- package/src/models/GeneralServiceApprovalsModel.ts +1 -10
- package/src/models/LeaveTypesModel.ts +11 -27
- package/dist/models/EarlyCheckoutBalanceModel.d.ts +0 -7
- package/dist/models/EarlyCheckoutConfigModel.d.ts +0 -18
- package/dist/models/EarlyCheckoutConfigModel.js +0 -80
- package/dist/models/EarlyCheckoutTransactionModel.d.ts +0 -19
- package/dist/models/EarlyCheckoutTransactionModel.js +0 -66
- package/dist/models/LeaveBalanceModel.d.ts +0 -8
- package/dist/models/LeaveConfigGradesModel.d.ts +0 -19
- package/dist/models/LeaveConfigGradesModel.js +0 -100
- package/dist/models/LeaveConfigModel.d.ts +0 -20
- package/dist/models/LeaveConfigModel.js +0 -90
- package/dist/models/LeaveTransactionModel.d.ts +0 -20
- package/dist/models/LeaveTransactionModel.js +0 -71
- package/dist/models/M&CMasterModel.d.ts +0 -9
- package/dist/models/M&CMasterModel.js +0 -49
- package/dist/models/StationeryMaterialMasterModel.d.ts +0 -11
- package/dist/models/StationeryRequestsModel.d.ts +0 -27
- package/dist/models/StationeryRequestsModel.js +0 -93
- package/dist/models/StayAfterHoursBalanceModel.d.ts +0 -7
- package/dist/models/StayAfterHoursBalanceModel.js +0 -39
- package/dist/models/StayAfterHoursTransactionModel.d.ts +0 -19
- package/dist/models/StayAfterHoursTransactionModel.js +0 -66
- package/src/models/EarlyCheckoutBalanceModel.ts +0 -22
- package/src/models/EarlyCheckoutConfigModel.ts +0 -57
- package/src/models/EarlyCheckoutTransactionModel.ts +0 -53
- package/src/models/LeaveBalanceModel.ts +0 -26
- package/src/models/LeaveConfigGradesModel.Ts +0 -72
- package/src/models/LeaveConfigModel.ts +0 -64
- package/src/models/LeaveTransactionModel.ts +0 -58
- package/src/models/M&CMasterModel.ts +0 -37
- package/src/models/StationeryMaterialMasterModel.ts +0 -35
- package/src/models/StationeryRequestsModel.ts +0 -65
- package/src/models/StayAfterHoursBalanceModel.ts +0 -22
- package/src/models/StayAfterHoursTransactionModel.ts +0 -53
|
@@ -1,100 +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.LeaveConfigurationGrades = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
//This model is used to store the relationship between Leave Configuration and Financial Grades with monthly leave counts
|
|
16
|
-
let LeaveConfigurationGrades = class LeaveConfigurationGrades extends BaseModel_1.BaseModel {
|
|
17
|
-
constructor(leave_config_id, grade, jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec, total_count) {
|
|
18
|
-
super();
|
|
19
|
-
this.leave_config_id = leave_config_id;
|
|
20
|
-
this.grade = grade;
|
|
21
|
-
this.jan = jan;
|
|
22
|
-
this.feb = feb;
|
|
23
|
-
this.mar = mar;
|
|
24
|
-
this.apr = apr;
|
|
25
|
-
this.may = may;
|
|
26
|
-
this.jun = jun;
|
|
27
|
-
this.jul = jul;
|
|
28
|
-
this.aug = aug;
|
|
29
|
-
this.sep = sep;
|
|
30
|
-
this.oct = oct;
|
|
31
|
-
this.nov = nov;
|
|
32
|
-
this.dec = dec;
|
|
33
|
-
this.total_count = total_count;
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
exports.LeaveConfigurationGrades = LeaveConfigurationGrades;
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
39
|
-
__metadata("design:type", Number)
|
|
40
|
-
], LeaveConfigurationGrades.prototype, "leave_config_id", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
43
|
-
__metadata("design:type", Number)
|
|
44
|
-
], LeaveConfigurationGrades.prototype, "grade", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
47
|
-
__metadata("design:type", Number)
|
|
48
|
-
], LeaveConfigurationGrades.prototype, "jan", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
51
|
-
__metadata("design:type", Number)
|
|
52
|
-
], LeaveConfigurationGrades.prototype, "feb", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
55
|
-
__metadata("design:type", Number)
|
|
56
|
-
], LeaveConfigurationGrades.prototype, "mar", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
59
|
-
__metadata("design:type", Number)
|
|
60
|
-
], LeaveConfigurationGrades.prototype, "apr", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
63
|
-
__metadata("design:type", Number)
|
|
64
|
-
], LeaveConfigurationGrades.prototype, "may", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
67
|
-
__metadata("design:type", Number)
|
|
68
|
-
], LeaveConfigurationGrades.prototype, "jun", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
71
|
-
__metadata("design:type", Number)
|
|
72
|
-
], LeaveConfigurationGrades.prototype, "jul", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
75
|
-
__metadata("design:type", Number)
|
|
76
|
-
], LeaveConfigurationGrades.prototype, "aug", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
79
|
-
__metadata("design:type", Number)
|
|
80
|
-
], LeaveConfigurationGrades.prototype, "sep", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
83
|
-
__metadata("design:type", Number)
|
|
84
|
-
], LeaveConfigurationGrades.prototype, "oct", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
87
|
-
__metadata("design:type", Number)
|
|
88
|
-
], LeaveConfigurationGrades.prototype, "nov", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
91
|
-
__metadata("design:type", Number)
|
|
92
|
-
], LeaveConfigurationGrades.prototype, "dec", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false, default: 0 }),
|
|
95
|
-
__metadata("design:type", Number)
|
|
96
|
-
], LeaveConfigurationGrades.prototype, "total_count", void 0);
|
|
97
|
-
exports.LeaveConfigurationGrades = LeaveConfigurationGrades = __decorate([
|
|
98
|
-
(0, typeorm_1.Entity)({ name: 'leave_config_grades' }),
|
|
99
|
-
__metadata("design:paramtypes", [Number, Number, Number, Number, Number, Number, Number, Number, Number, Number, Number, Number, Number, Number, Number])
|
|
100
|
-
], LeaveConfigurationGrades);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum enumFrequency {
|
|
3
|
-
Monthly = "Monthly",
|
|
4
|
-
Yearly = "Yearly"
|
|
5
|
-
}
|
|
6
|
-
export declare class LeaveConfiguration extends BaseModel {
|
|
7
|
-
category: string;
|
|
8
|
-
MandC_id: number;
|
|
9
|
-
leave_type_id: number;
|
|
10
|
-
frequency: enumFrequency;
|
|
11
|
-
region: string;
|
|
12
|
-
country: string;
|
|
13
|
-
location: string;
|
|
14
|
-
is_carryforward: boolean;
|
|
15
|
-
carryforward_limit: number;
|
|
16
|
-
from_date: Date;
|
|
17
|
-
to_date: Date;
|
|
18
|
-
reason: string;
|
|
19
|
-
constructor(category: string, MandC_id: number, leave_type_id: number, frequency: enumFrequency, region: string, country: string, location: string, is_carryforward: boolean, carryforward_limit: number, from_date: Date, to_date: Date, reason: string);
|
|
20
|
-
}
|
|
@@ -1,90 +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.LeaveConfiguration = exports.enumFrequency = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var enumFrequency;
|
|
16
|
-
(function (enumFrequency) {
|
|
17
|
-
enumFrequency["Monthly"] = "Monthly";
|
|
18
|
-
enumFrequency["Yearly"] = "Yearly";
|
|
19
|
-
})(enumFrequency || (exports.enumFrequency = enumFrequency = {}));
|
|
20
|
-
//This model is used to store the Financial Grade declaration on the Admin Side
|
|
21
|
-
let LeaveConfiguration = class LeaveConfiguration extends BaseModel_1.BaseModel {
|
|
22
|
-
constructor(category, MandC_id, leave_type_id, frequency, region, country, location, is_carryforward, carryforward_limit, from_date, to_date, reason) {
|
|
23
|
-
super();
|
|
24
|
-
this.category = category;
|
|
25
|
-
this.MandC_id = MandC_id;
|
|
26
|
-
this.leave_type_id = leave_type_id;
|
|
27
|
-
this.frequency = frequency;
|
|
28
|
-
this.region = region;
|
|
29
|
-
this.country = country;
|
|
30
|
-
this.location = location;
|
|
31
|
-
this.is_carryforward = is_carryforward;
|
|
32
|
-
this.carryforward_limit = carryforward_limit;
|
|
33
|
-
this.from_date = from_date;
|
|
34
|
-
this.to_date = to_date;
|
|
35
|
-
this.reason = reason;
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
exports.LeaveConfiguration = LeaveConfiguration;
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
41
|
-
__metadata("design:type", String)
|
|
42
|
-
], LeaveConfiguration.prototype, "category", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
45
|
-
__metadata("design:type", Number)
|
|
46
|
-
], LeaveConfiguration.prototype, "MandC_id", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
49
|
-
__metadata("design:type", Number)
|
|
50
|
-
], LeaveConfiguration.prototype, "leave_type_id", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
|
-
], LeaveConfiguration.prototype, "frequency", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
57
|
-
__metadata("design:type", String)
|
|
58
|
-
], LeaveConfiguration.prototype, "region", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
61
|
-
__metadata("design:type", String)
|
|
62
|
-
], LeaveConfiguration.prototype, "country", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
65
|
-
__metadata("design:type", String)
|
|
66
|
-
], LeaveConfiguration.prototype, "location", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
(0, typeorm_1.Column)({ nullable: true, default: false }),
|
|
69
|
-
__metadata("design:type", Boolean)
|
|
70
|
-
], LeaveConfiguration.prototype, "is_carryforward", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true, default: 0 }),
|
|
73
|
-
__metadata("design:type", Number)
|
|
74
|
-
], LeaveConfiguration.prototype, "carryforward_limit", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
77
|
-
__metadata("design:type", Date)
|
|
78
|
-
], LeaveConfiguration.prototype, "from_date", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
81
|
-
__metadata("design:type", Date)
|
|
82
|
-
], LeaveConfiguration.prototype, "to_date", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
85
|
-
__metadata("design:type", String)
|
|
86
|
-
], LeaveConfiguration.prototype, "reason", void 0);
|
|
87
|
-
exports.LeaveConfiguration = LeaveConfiguration = __decorate([
|
|
88
|
-
(0, typeorm_1.Entity)({ name: 'leave_configuration' }),
|
|
89
|
-
__metadata("design:paramtypes", [String, Number, Number, String, String, String, String, Boolean, Number, Date, Date, String])
|
|
90
|
-
], LeaveConfiguration);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum LeaveTransactionStatus {
|
|
3
|
-
GRANTED = "GRANTED",
|
|
4
|
-
TAKEN = "TAKEN",
|
|
5
|
-
ADJUSTMENT = "ADJUSTMENT",
|
|
6
|
-
CARRY_FORWARD = "CARRY_FORWARD",
|
|
7
|
-
ENCASHMENT = "ENCASHMENT",
|
|
8
|
-
AVAILED = "AVAILED",
|
|
9
|
-
ELAPSED = "ELAPSED"
|
|
10
|
-
}
|
|
11
|
-
export declare class LeaveTransaction extends BaseModel {
|
|
12
|
-
user_id: number;
|
|
13
|
-
leave_type_id: number;
|
|
14
|
-
leave_count: number;
|
|
15
|
-
from_date: Date;
|
|
16
|
-
to_date: Date;
|
|
17
|
-
year: number;
|
|
18
|
-
status: LeaveTransactionStatus;
|
|
19
|
-
constructor(user_id: number, leave_type_id: number, leave_count: number, from_date: Date, to_date: Date, year: number, status: LeaveTransactionStatus);
|
|
20
|
-
}
|
|
@@ -1,71 +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.LeaveTransaction = exports.LeaveTransactionStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var LeaveTransactionStatus;
|
|
16
|
-
(function (LeaveTransactionStatus) {
|
|
17
|
-
LeaveTransactionStatus["GRANTED"] = "GRANTED";
|
|
18
|
-
LeaveTransactionStatus["TAKEN"] = "TAKEN";
|
|
19
|
-
LeaveTransactionStatus["ADJUSTMENT"] = "ADJUSTMENT";
|
|
20
|
-
LeaveTransactionStatus["CARRY_FORWARD"] = "CARRY_FORWARD";
|
|
21
|
-
LeaveTransactionStatus["ENCASHMENT"] = "ENCASHMENT";
|
|
22
|
-
LeaveTransactionStatus["AVAILED"] = "AVAILED";
|
|
23
|
-
LeaveTransactionStatus["ELAPSED"] = "ELAPSED";
|
|
24
|
-
})(LeaveTransactionStatus || (exports.LeaveTransactionStatus = LeaveTransactionStatus = {}));
|
|
25
|
-
//This model is used to store leave transactions for users
|
|
26
|
-
let LeaveTransaction = class LeaveTransaction extends BaseModel_1.BaseModel {
|
|
27
|
-
constructor(user_id, leave_type_id, leave_count, from_date, to_date, year, status) {
|
|
28
|
-
super();
|
|
29
|
-
this.user_id = user_id;
|
|
30
|
-
this.leave_type_id = leave_type_id;
|
|
31
|
-
this.leave_count = leave_count;
|
|
32
|
-
this.from_date = from_date;
|
|
33
|
-
this.to_date = to_date;
|
|
34
|
-
this.year = year;
|
|
35
|
-
this.status = status;
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
exports.LeaveTransaction = LeaveTransaction;
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
41
|
-
__metadata("design:type", Number)
|
|
42
|
-
], LeaveTransaction.prototype, "user_id", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
45
|
-
__metadata("design:type", Number)
|
|
46
|
-
], LeaveTransaction.prototype, "leave_type_id", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: true }),
|
|
49
|
-
__metadata("design:type", Number)
|
|
50
|
-
], LeaveTransaction.prototype, "leave_count", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
53
|
-
__metadata("design:type", Date)
|
|
54
|
-
], LeaveTransaction.prototype, "from_date", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
57
|
-
__metadata("design:type", Date)
|
|
58
|
-
], LeaveTransaction.prototype, "to_date", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
61
|
-
__metadata("design:type", Number)
|
|
62
|
-
], LeaveTransaction.prototype, "year", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: false }),
|
|
65
|
-
__metadata("design:type", String)
|
|
66
|
-
], LeaveTransaction.prototype, "status", void 0);
|
|
67
|
-
exports.LeaveTransaction = LeaveTransaction = __decorate([
|
|
68
|
-
(0, typeorm_1.Entity)({ name: 'leave_transactions' }),
|
|
69
|
-
__metadata("design:paramtypes", [Number, Number, Number, Date,
|
|
70
|
-
Date, Number, String])
|
|
71
|
-
], LeaveTransaction);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare class MandCMaster extends BaseModel {
|
|
3
|
-
name: string;
|
|
4
|
-
name_in_arabic: string;
|
|
5
|
-
region: string;
|
|
6
|
-
country: string;
|
|
7
|
-
location: string;
|
|
8
|
-
constructor(name: string, name_in_arabic: string, region: string, country: string, location: string);
|
|
9
|
-
}
|
|
@@ -1,49 +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.MandCMaster = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let MandCMaster = class MandCMaster extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(name, name_in_arabic, region, country, location) {
|
|
17
|
-
super();
|
|
18
|
-
this.name = name;
|
|
19
|
-
this.name_in_arabic = name_in_arabic;
|
|
20
|
-
this.region = region;
|
|
21
|
-
this.country = country;
|
|
22
|
-
this.location = location;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
exports.MandCMaster = MandCMaster;
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], MandCMaster.prototype, "name", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], MandCMaster.prototype, "name_in_arabic", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], MandCMaster.prototype, "region", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], MandCMaster.prototype, "country", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
44
|
-
__metadata("design:type", String)
|
|
45
|
-
], MandCMaster.prototype, "location", void 0);
|
|
46
|
-
exports.MandCMaster = MandCMaster = __decorate([
|
|
47
|
-
(0, typeorm_1.Entity)({ name: 'M&C_names' }),
|
|
48
|
-
__metadata("design:paramtypes", [String, String, String, String, String])
|
|
49
|
-
], MandCMaster);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare class StationeryMaterialMaster extends BaseModel {
|
|
3
|
-
material_type: string;
|
|
4
|
-
material_name: string;
|
|
5
|
-
material_code: string | null;
|
|
6
|
-
description: string | null;
|
|
7
|
-
unit_of_measure: string | null;
|
|
8
|
-
is_active: boolean;
|
|
9
|
-
display_order: number;
|
|
10
|
-
constructor(material_type: string, material_name: string);
|
|
11
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum StationeryRequestStatus {
|
|
3
|
-
PENDING = "Pending",
|
|
4
|
-
ASSIGNED = "Assigned",
|
|
5
|
-
IN_PROGRESS = "In Progress",
|
|
6
|
-
APPROVED = "Approved",
|
|
7
|
-
REJECTED = "Rejected",
|
|
8
|
-
COMPLETED = "Completed"
|
|
9
|
-
}
|
|
10
|
-
export declare class StationeryRequests extends BaseModel {
|
|
11
|
-
req_user_department_id: number | null;
|
|
12
|
-
req_user_section_id: number | null;
|
|
13
|
-
service_id: number | null;
|
|
14
|
-
sub_service_id: number | null;
|
|
15
|
-
user_id: number;
|
|
16
|
-
date_of_request_preparation: Date;
|
|
17
|
-
office: string;
|
|
18
|
-
material_type: string;
|
|
19
|
-
material_name: string;
|
|
20
|
-
quantity_required: number;
|
|
21
|
-
comments: string | null;
|
|
22
|
-
status: StationeryRequestStatus;
|
|
23
|
-
workflow_execution_id: string | null;
|
|
24
|
-
stock_available: boolean | null;
|
|
25
|
-
po_number: string | null;
|
|
26
|
-
stock_available_date: Date | null;
|
|
27
|
-
}
|
|
@@ -1,93 +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.StationeryRequests = exports.StationeryRequestStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var StationeryRequestStatus;
|
|
16
|
-
(function (StationeryRequestStatus) {
|
|
17
|
-
StationeryRequestStatus["PENDING"] = "Pending";
|
|
18
|
-
StationeryRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
-
StationeryRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
-
StationeryRequestStatus["APPROVED"] = "Approved";
|
|
21
|
-
StationeryRequestStatus["REJECTED"] = "Rejected";
|
|
22
|
-
StationeryRequestStatus["COMPLETED"] = "Completed";
|
|
23
|
-
})(StationeryRequestStatus || (exports.StationeryRequestStatus = StationeryRequestStatus = {}));
|
|
24
|
-
let StationeryRequests = class StationeryRequests extends BaseModel_1.BaseModel {
|
|
25
|
-
};
|
|
26
|
-
exports.StationeryRequests = StationeryRequests;
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
29
|
-
__metadata("design:type", Object)
|
|
30
|
-
], StationeryRequests.prototype, "req_user_department_id", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
33
|
-
__metadata("design:type", Object)
|
|
34
|
-
], StationeryRequests.prototype, "req_user_section_id", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
37
|
-
__metadata("design:type", Object)
|
|
38
|
-
], StationeryRequests.prototype, "service_id", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
41
|
-
__metadata("design:type", Object)
|
|
42
|
-
], StationeryRequests.prototype, "sub_service_id", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
45
|
-
__metadata("design:type", Number)
|
|
46
|
-
], StationeryRequests.prototype, "user_id", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
49
|
-
__metadata("design:type", Date)
|
|
50
|
-
], StationeryRequests.prototype, "date_of_request_preparation", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
|
-
], StationeryRequests.prototype, "office", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
57
|
-
__metadata("design:type", String)
|
|
58
|
-
], StationeryRequests.prototype, "material_type", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
61
|
-
__metadata("design:type", String)
|
|
62
|
-
], StationeryRequests.prototype, "material_name", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
65
|
-
__metadata("design:type", Number)
|
|
66
|
-
], StationeryRequests.prototype, "quantity_required", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
69
|
-
__metadata("design:type", Object)
|
|
70
|
-
], StationeryRequests.prototype, "comments", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: StationeryRequestStatus, default: StationeryRequestStatus.PENDING, nullable: false }),
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], StationeryRequests.prototype, "status", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
77
|
-
__metadata("design:type", Object)
|
|
78
|
-
], StationeryRequests.prototype, "workflow_execution_id", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
(0, typeorm_1.Column)({ type: 'boolean', default: false, nullable: true }),
|
|
81
|
-
__metadata("design:type", Object)
|
|
82
|
-
], StationeryRequests.prototype, "stock_available", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
85
|
-
__metadata("design:type", Object)
|
|
86
|
-
], StationeryRequests.prototype, "po_number", void 0);
|
|
87
|
-
__decorate([
|
|
88
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
89
|
-
__metadata("design:type", Object)
|
|
90
|
-
], StationeryRequests.prototype, "stock_available_date", void 0);
|
|
91
|
-
exports.StationeryRequests = StationeryRequests = __decorate([
|
|
92
|
-
(0, typeorm_1.Entity)({ name: 'stationery_requests' })
|
|
93
|
-
], StationeryRequests);
|
|
@@ -1,39 +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.StayAfterHoursBalance = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let StayAfterHoursBalance = class StayAfterHoursBalance extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(user_id, balance, total_balance) {
|
|
17
|
-
super();
|
|
18
|
-
this.user_id = user_id;
|
|
19
|
-
this.balance = balance;
|
|
20
|
-
this.total_balance = total_balance;
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
exports.StayAfterHoursBalance = StayAfterHoursBalance;
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], StayAfterHoursBalance.prototype, "user_id", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
30
|
-
__metadata("design:type", Number)
|
|
31
|
-
], StayAfterHoursBalance.prototype, "balance", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
34
|
-
__metadata("design:type", Number)
|
|
35
|
-
], StayAfterHoursBalance.prototype, "total_balance", void 0);
|
|
36
|
-
exports.StayAfterHoursBalance = StayAfterHoursBalance = __decorate([
|
|
37
|
-
(0, typeorm_1.Entity)({ name: 'stay_after_hours_balance' }),
|
|
38
|
-
__metadata("design:paramtypes", [String, Number, Number])
|
|
39
|
-
], StayAfterHoursBalance);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum StayAfterHoursTransactionStatus {
|
|
3
|
-
GRANTED = "GRANTED",
|
|
4
|
-
TAKEN = "TAKEN",
|
|
5
|
-
ADJUSTMENT = "ADJUSTMENT",
|
|
6
|
-
CARRY_FORWARD = "CARRY_FORWARD",
|
|
7
|
-
ENCASHMENT = "ENCASHMENT",
|
|
8
|
-
AVAILED = "AVAILED",
|
|
9
|
-
ELAPSED = "ELAPSED"
|
|
10
|
-
}
|
|
11
|
-
export declare class StayAfterHoursTransaction extends BaseModel {
|
|
12
|
-
user_id: number;
|
|
13
|
-
hours_count: string;
|
|
14
|
-
from_date: Date;
|
|
15
|
-
to_date: Date;
|
|
16
|
-
year: number;
|
|
17
|
-
status: StayAfterHoursTransactionStatus;
|
|
18
|
-
constructor(user_id: number, hours_count: string, from_date: Date, to_date: Date, year: number, status: StayAfterHoursTransactionStatus);
|
|
19
|
-
}
|
|
@@ -1,66 +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.StayAfterHoursTransaction = exports.StayAfterHoursTransactionStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var StayAfterHoursTransactionStatus;
|
|
16
|
-
(function (StayAfterHoursTransactionStatus) {
|
|
17
|
-
StayAfterHoursTransactionStatus["GRANTED"] = "GRANTED";
|
|
18
|
-
StayAfterHoursTransactionStatus["TAKEN"] = "TAKEN";
|
|
19
|
-
StayAfterHoursTransactionStatus["ADJUSTMENT"] = "ADJUSTMENT";
|
|
20
|
-
StayAfterHoursTransactionStatus["CARRY_FORWARD"] = "CARRY_FORWARD";
|
|
21
|
-
StayAfterHoursTransactionStatus["ENCASHMENT"] = "ENCASHMENT";
|
|
22
|
-
StayAfterHoursTransactionStatus["AVAILED"] = "AVAILED";
|
|
23
|
-
StayAfterHoursTransactionStatus["ELAPSED"] = "ELAPSED";
|
|
24
|
-
})(StayAfterHoursTransactionStatus || (exports.StayAfterHoursTransactionStatus = StayAfterHoursTransactionStatus = {}));
|
|
25
|
-
//This model is used to store early checkout transactions for users
|
|
26
|
-
let StayAfterHoursTransaction = class StayAfterHoursTransaction extends BaseModel_1.BaseModel {
|
|
27
|
-
constructor(user_id, hours_count, from_date, to_date, year, status) {
|
|
28
|
-
super();
|
|
29
|
-
this.user_id = user_id;
|
|
30
|
-
this.hours_count = hours_count;
|
|
31
|
-
this.from_date = from_date;
|
|
32
|
-
this.to_date = to_date;
|
|
33
|
-
this.year = year;
|
|
34
|
-
this.status = status;
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
exports.StayAfterHoursTransaction = StayAfterHoursTransaction;
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
40
|
-
__metadata("design:type", Number)
|
|
41
|
-
], StayAfterHoursTransaction.prototype, "user_id", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
44
|
-
__metadata("design:type", String)
|
|
45
|
-
], StayAfterHoursTransaction.prototype, "hours_count", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
48
|
-
__metadata("design:type", Date)
|
|
49
|
-
], StayAfterHoursTransaction.prototype, "from_date", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
52
|
-
__metadata("design:type", Date)
|
|
53
|
-
], StayAfterHoursTransaction.prototype, "to_date", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
56
|
-
__metadata("design:type", Number)
|
|
57
|
-
], StayAfterHoursTransaction.prototype, "year", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: false }),
|
|
60
|
-
__metadata("design:type", String)
|
|
61
|
-
], StayAfterHoursTransaction.prototype, "status", void 0);
|
|
62
|
-
exports.StayAfterHoursTransaction = StayAfterHoursTransaction = __decorate([
|
|
63
|
-
(0, typeorm_1.Entity)({ name: 'stay_after_hours_transactions' }),
|
|
64
|
-
__metadata("design:paramtypes", [Number, String, Date,
|
|
65
|
-
Date, Number, String])
|
|
66
|
-
], StayAfterHoursTransaction);
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'early_checkout_balance' })
|
|
5
|
-
export class EarlyCheckoutBalance extends BaseModel {
|
|
6
|
-
|
|
7
|
-
@Column({ nullable: true })
|
|
8
|
-
user_id: string;
|
|
9
|
-
|
|
10
|
-
@Column({ nullable: true })
|
|
11
|
-
balance: number;
|
|
12
|
-
|
|
13
|
-
@Column({ nullable: true })
|
|
14
|
-
total_balance: number;
|
|
15
|
-
|
|
16
|
-
constructor(user_id: string, balance: number, total_balance: number) {
|
|
17
|
-
super();
|
|
18
|
-
this.user_id = user_id;
|
|
19
|
-
this.balance = balance;
|
|
20
|
-
this.total_balance = total_balance;
|
|
21
|
-
}
|
|
22
|
-
}
|