@platform-modules/foreign-ministry 1.1.70 → 1.1.72
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 +32 -16
- package/dist/index.d.ts +24 -8
- package/dist/index.js +38 -8
- 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/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/{DiplomaticTitlesMasterModel.js → StationeryMaterialMasterModel.js} +25 -23
- 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/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/package.json +1 -1
- package/src/data-source.ts +35 -17
- package/src/index.ts +24 -8
- 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/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/UserEducationDetailsModel.ts +26 -0
- package/src/models/UserEmploymentDetailsModel.ts +141 -0
- package/src/models/UserPersonalDetailsModel.ts +137 -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 -37
- package/dist/models/DiplomaticClubCardMembersModel.js +0 -139
- 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 -43
- package/dist/models/DiplomaticRequestsModel.js +0 -142
- 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/DiplomaticTitlesMasterModel.d.ts +0 -13
- 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 -124
- package/src/models/DiplomaticClubSubscriptionMasterModel.ts +0 -50
- package/src/models/DiplomaticRequestsModel.ts +0 -121
- package/src/models/DiplomaticTitlesMasterModel.ts +0 -39
- package/src/models/DiplomaticWorkFlowModel.ts +0 -53
package/dist/data-source.js
CHANGED
|
@@ -101,14 +101,22 @@ const GroupModel_1 = require("./models/GroupModel");
|
|
|
101
101
|
const WorkScheduleModel_1 = require("./models/WorkScheduleModel");
|
|
102
102
|
const JobsModel_1 = require("./models/JobsModel");
|
|
103
103
|
const TelephoneDirectoryModel_1 = require("./models/TelephoneDirectoryModel");
|
|
104
|
-
const
|
|
105
|
-
const
|
|
106
|
-
const
|
|
107
|
-
const
|
|
108
|
-
const
|
|
109
|
-
const
|
|
110
|
-
const
|
|
111
|
-
const
|
|
104
|
+
const M_CMasterModel_1 = require("./models/M&CMasterModel");
|
|
105
|
+
const LeaveBalanceModel_1 = require("./models/LeaveBalanceModel");
|
|
106
|
+
const LeaveConfigModel_1 = require("./models/LeaveConfigModel");
|
|
107
|
+
const LeaveConfigGradesModel_1 = require("./models/LeaveConfigGradesModel");
|
|
108
|
+
const LeaveTransactionModel_1 = require("./models/LeaveTransactionModel");
|
|
109
|
+
const EarlyCheckoutBalanceModel_1 = require("./models/EarlyCheckoutBalanceModel");
|
|
110
|
+
const EarlyCheckoutConfigModel_1 = require("./models/EarlyCheckoutConfigModel");
|
|
111
|
+
const EarlyCheckoutTransactionModel_1 = require("./models/EarlyCheckoutTransactionModel");
|
|
112
|
+
const StayAfterHoursBalanceModel_1 = require("./models/StayAfterHoursBalanceModel");
|
|
113
|
+
const StayAfterHoursTransactionModel_1 = require("./models/StayAfterHoursTransactionModel");
|
|
114
|
+
const StationeryRequestsModel_1 = require("./models/StationeryRequestsModel");
|
|
115
|
+
const StationeryMaterialMasterModel_1 = require("./models/StationeryMaterialMasterModel");
|
|
116
|
+
const ProfileUpdateRequestsModel_1 = require("./models/ProfileUpdateRequestsModel");
|
|
117
|
+
const UserPersonalDetailsModel_1 = require("./models/UserPersonalDetailsModel");
|
|
118
|
+
const UserEmploymentDetailsModel_1 = require("./models/UserEmploymentDetailsModel");
|
|
119
|
+
const UserEducationDetailsModel_1 = require("./models/UserEducationDetailsModel");
|
|
112
120
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
113
121
|
type: 'postgres',
|
|
114
122
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -215,13 +223,21 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
215
223
|
WorkScheduleModel_1.WorkSchedule,
|
|
216
224
|
JobsModel_1.Jobs,
|
|
217
225
|
TelephoneDirectoryModel_1.TelephoneDirectory,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
+
M_CMasterModel_1.MandCMaster,
|
|
227
|
+
LeaveBalanceModel_1.LeaveBalance,
|
|
228
|
+
LeaveConfigModel_1.LeaveConfiguration,
|
|
229
|
+
LeaveConfigGradesModel_1.LeaveConfigurationGrades,
|
|
230
|
+
LeaveTransactionModel_1.LeaveTransaction,
|
|
231
|
+
EarlyCheckoutBalanceModel_1.EarlyCheckoutBalance,
|
|
232
|
+
EarlyCheckoutConfigModel_1.EarlyCheckoutConfiguration,
|
|
233
|
+
EarlyCheckoutTransactionModel_1.EarlyCheckoutTransaction,
|
|
234
|
+
StayAfterHoursBalanceModel_1.StayAfterHoursBalance,
|
|
235
|
+
StayAfterHoursTransactionModel_1.StayAfterHoursTransaction,
|
|
236
|
+
StationeryRequestsModel_1.StationeryRequests,
|
|
237
|
+
StationeryMaterialMasterModel_1.StationeryMaterialMaster,
|
|
238
|
+
ProfileUpdateRequestsModel_1.ProfileUpdateRequests,
|
|
239
|
+
UserPersonalDetailsModel_1.UserPersonalDetails,
|
|
240
|
+
UserEmploymentDetailsModel_1.UserEmploymentDetails,
|
|
241
|
+
UserEducationDetailsModel_1.UserEducationDetails
|
|
226
242
|
],
|
|
227
243
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -100,12 +100,28 @@ export * from './models/GroupNamesModel';
|
|
|
100
100
|
export * from './models/GroupModel';
|
|
101
101
|
export * from './models/WorkScheduleModel';
|
|
102
102
|
export * from './models/JobsModel';
|
|
103
|
+
export * from './models/M&CMasterModel';
|
|
104
|
+
export * from './models/LeaveBalanceModel';
|
|
105
|
+
export * from './models/LeaveConfigModel';
|
|
106
|
+
export { LeaveConfiguration, enumFrequency } from './models/LeaveConfigModel';
|
|
107
|
+
export * from './models/LeaveConfigGradesModel';
|
|
108
|
+
export { LeaveConfigurationGrades } from './models/LeaveConfigGradesModel';
|
|
109
|
+
export * from './models/LeaveTransactionModel';
|
|
110
|
+
export { LeaveTransaction, LeaveTransactionStatus } from './models/LeaveTransactionModel';
|
|
111
|
+
export * from './models/EarlyCheckoutBalanceModel';
|
|
112
|
+
export { EarlyCheckoutBalance } from './models/EarlyCheckoutBalanceModel';
|
|
113
|
+
export * from './models/EarlyCheckoutConfigModel';
|
|
114
|
+
export { EarlyCheckoutConfiguration, EarlyCheckoutFrequency } from './models/EarlyCheckoutConfigModel';
|
|
115
|
+
export * from './models/EarlyCheckoutTransactionModel';
|
|
116
|
+
export { EarlyCheckoutTransaction, EarlyCheckoutTransactionStatus } from './models/EarlyCheckoutTransactionModel';
|
|
117
|
+
export * from './models/StayAfterHoursBalanceModel';
|
|
118
|
+
export { StayAfterHoursBalance } from './models/StayAfterHoursBalanceModel';
|
|
119
|
+
export * from './models/StayAfterHoursTransactionModel';
|
|
120
|
+
export { StayAfterHoursTransaction, StayAfterHoursTransactionStatus } from './models/StayAfterHoursTransactionModel';
|
|
103
121
|
export * from './models/TelephoneDirectoryModel';
|
|
104
|
-
export * from './models/
|
|
105
|
-
export * from './models/
|
|
106
|
-
export * from './models/
|
|
107
|
-
export * from './models/
|
|
108
|
-
export * from './models/
|
|
109
|
-
export * from './models/
|
|
110
|
-
export * from './models/DiplomaticTitlesMasterModel';
|
|
111
|
-
export * from './models/DiplomaticClubSubscriptionMasterModel';
|
|
122
|
+
export * from './models/StationeryRequestsModel';
|
|
123
|
+
export * from './models/StationeryMaterialMasterModel';
|
|
124
|
+
export * from './models/ProfileUpdateRequestsModel';
|
|
125
|
+
export * from './models/UserPersonalDetailsModel';
|
|
126
|
+
export * from './models/UserEmploymentDetailsModel';
|
|
127
|
+
export * from './models/UserEducationDetailsModel';
|
package/dist/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
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 = void 0;
|
|
17
18
|
__exportStar(require("./models/user"), exports);
|
|
18
19
|
__exportStar(require("./models/role"), exports);
|
|
19
20
|
__exportStar(require("./models/user-sessions"), exports);
|
|
@@ -116,12 +117,41 @@ __exportStar(require("./models/GroupNamesModel"), exports);
|
|
|
116
117
|
__exportStar(require("./models/GroupModel"), exports);
|
|
117
118
|
__exportStar(require("./models/WorkScheduleModel"), exports);
|
|
118
119
|
__exportStar(require("./models/JobsModel"), exports);
|
|
120
|
+
__exportStar(require("./models/M&CMasterModel"), exports);
|
|
121
|
+
__exportStar(require("./models/LeaveBalanceModel"), exports);
|
|
122
|
+
__exportStar(require("./models/LeaveConfigModel"), exports);
|
|
123
|
+
var LeaveConfigModel_1 = require("./models/LeaveConfigModel");
|
|
124
|
+
Object.defineProperty(exports, "LeaveConfiguration", { enumerable: true, get: function () { return LeaveConfigModel_1.LeaveConfiguration; } });
|
|
125
|
+
Object.defineProperty(exports, "enumFrequency", { enumerable: true, get: function () { return LeaveConfigModel_1.enumFrequency; } });
|
|
126
|
+
__exportStar(require("./models/LeaveConfigGradesModel"), exports);
|
|
127
|
+
var LeaveConfigGradesModel_1 = require("./models/LeaveConfigGradesModel");
|
|
128
|
+
Object.defineProperty(exports, "LeaveConfigurationGrades", { enumerable: true, get: function () { return LeaveConfigGradesModel_1.LeaveConfigurationGrades; } });
|
|
129
|
+
__exportStar(require("./models/LeaveTransactionModel"), exports);
|
|
130
|
+
var LeaveTransactionModel_1 = require("./models/LeaveTransactionModel");
|
|
131
|
+
Object.defineProperty(exports, "LeaveTransaction", { enumerable: true, get: function () { return LeaveTransactionModel_1.LeaveTransaction; } });
|
|
132
|
+
Object.defineProperty(exports, "LeaveTransactionStatus", { enumerable: true, get: function () { return LeaveTransactionModel_1.LeaveTransactionStatus; } });
|
|
133
|
+
__exportStar(require("./models/EarlyCheckoutBalanceModel"), exports);
|
|
134
|
+
var EarlyCheckoutBalanceModel_1 = require("./models/EarlyCheckoutBalanceModel");
|
|
135
|
+
Object.defineProperty(exports, "EarlyCheckoutBalance", { enumerable: true, get: function () { return EarlyCheckoutBalanceModel_1.EarlyCheckoutBalance; } });
|
|
136
|
+
__exportStar(require("./models/EarlyCheckoutConfigModel"), exports);
|
|
137
|
+
var EarlyCheckoutConfigModel_1 = require("./models/EarlyCheckoutConfigModel");
|
|
138
|
+
Object.defineProperty(exports, "EarlyCheckoutConfiguration", { enumerable: true, get: function () { return EarlyCheckoutConfigModel_1.EarlyCheckoutConfiguration; } });
|
|
139
|
+
Object.defineProperty(exports, "EarlyCheckoutFrequency", { enumerable: true, get: function () { return EarlyCheckoutConfigModel_1.EarlyCheckoutFrequency; } });
|
|
140
|
+
__exportStar(require("./models/EarlyCheckoutTransactionModel"), exports);
|
|
141
|
+
var EarlyCheckoutTransactionModel_1 = require("./models/EarlyCheckoutTransactionModel");
|
|
142
|
+
Object.defineProperty(exports, "EarlyCheckoutTransaction", { enumerable: true, get: function () { return EarlyCheckoutTransactionModel_1.EarlyCheckoutTransaction; } });
|
|
143
|
+
Object.defineProperty(exports, "EarlyCheckoutTransactionStatus", { enumerable: true, get: function () { return EarlyCheckoutTransactionModel_1.EarlyCheckoutTransactionStatus; } });
|
|
144
|
+
__exportStar(require("./models/StayAfterHoursBalanceModel"), exports);
|
|
145
|
+
var StayAfterHoursBalanceModel_1 = require("./models/StayAfterHoursBalanceModel");
|
|
146
|
+
Object.defineProperty(exports, "StayAfterHoursBalance", { enumerable: true, get: function () { return StayAfterHoursBalanceModel_1.StayAfterHoursBalance; } });
|
|
147
|
+
__exportStar(require("./models/StayAfterHoursTransactionModel"), exports);
|
|
148
|
+
var StayAfterHoursTransactionModel_1 = require("./models/StayAfterHoursTransactionModel");
|
|
149
|
+
Object.defineProperty(exports, "StayAfterHoursTransaction", { enumerable: true, get: function () { return StayAfterHoursTransactionModel_1.StayAfterHoursTransaction; } });
|
|
150
|
+
Object.defineProperty(exports, "StayAfterHoursTransactionStatus", { enumerable: true, get: function () { return StayAfterHoursTransactionModel_1.StayAfterHoursTransactionStatus; } });
|
|
119
151
|
__exportStar(require("./models/TelephoneDirectoryModel"), exports);
|
|
120
|
-
__exportStar(require("./models/
|
|
121
|
-
__exportStar(require("./models/
|
|
122
|
-
__exportStar(require("./models/
|
|
123
|
-
__exportStar(require("./models/
|
|
124
|
-
__exportStar(require("./models/
|
|
125
|
-
__exportStar(require("./models/
|
|
126
|
-
__exportStar(require("./models/DiplomaticTitlesMasterModel"), exports);
|
|
127
|
-
__exportStar(require("./models/DiplomaticClubSubscriptionMasterModel"), exports);
|
|
152
|
+
__exportStar(require("./models/StationeryRequestsModel"), exports);
|
|
153
|
+
__exportStar(require("./models/StationeryMaterialMasterModel"), exports);
|
|
154
|
+
__exportStar(require("./models/ProfileUpdateRequestsModel"), exports);
|
|
155
|
+
__exportStar(require("./models/UserPersonalDetailsModel"), exports);
|
|
156
|
+
__exportStar(require("./models/UserEmploymentDetailsModel"), exports);
|
|
157
|
+
__exportStar(require("./models/UserEducationDetailsModel"), exports);
|
|
@@ -9,28 +9,31 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.EarlyCheckoutBalance = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let
|
|
15
|
+
let EarlyCheckoutBalance = class EarlyCheckoutBalance 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
|
+
}
|
|
16
22
|
};
|
|
17
|
-
exports.
|
|
23
|
+
exports.EarlyCheckoutBalance = EarlyCheckoutBalance;
|
|
18
24
|
__decorate([
|
|
19
|
-
(0, typeorm_1.Column)({
|
|
20
|
-
__metadata("design:type",
|
|
21
|
-
],
|
|
25
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], EarlyCheckoutBalance.prototype, "user_id", void 0);
|
|
22
28
|
__decorate([
|
|
23
|
-
(0, typeorm_1.Column)({
|
|
29
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
24
30
|
__metadata("design:type", Number)
|
|
25
|
-
],
|
|
31
|
+
], EarlyCheckoutBalance.prototype, "balance", void 0);
|
|
26
32
|
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)({
|
|
28
|
-
__metadata("design:type",
|
|
29
|
-
],
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, typeorm_1.
|
|
32
|
-
__metadata("design:
|
|
33
|
-
],
|
|
34
|
-
exports.DiplomaticClubCardChat = DiplomaticClubCardChat = __decorate([
|
|
35
|
-
(0, typeorm_1.Entity)({ name: 'diplomatic_club_card_chats' })
|
|
36
|
-
], DiplomaticClubCardChat);
|
|
33
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], EarlyCheckoutBalance.prototype, "total_balance", void 0);
|
|
36
|
+
exports.EarlyCheckoutBalance = EarlyCheckoutBalance = __decorate([
|
|
37
|
+
(0, typeorm_1.Entity)({ name: 'early_checkout_balance' }),
|
|
38
|
+
__metadata("design:paramtypes", [String, Number, Number])
|
|
39
|
+
], EarlyCheckoutBalance);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum EarlyCheckoutFrequency {
|
|
3
|
+
Monthly = "Monthly",
|
|
4
|
+
Yearly = "Yearly"
|
|
5
|
+
}
|
|
6
|
+
export declare class EarlyCheckoutConfiguration extends BaseModel {
|
|
7
|
+
category: string;
|
|
8
|
+
MandC_id: number;
|
|
9
|
+
frequency: EarlyCheckoutFrequency;
|
|
10
|
+
region: string;
|
|
11
|
+
country: string;
|
|
12
|
+
location: string;
|
|
13
|
+
no_of_hours: string;
|
|
14
|
+
from_date: Date;
|
|
15
|
+
to_date: Date;
|
|
16
|
+
reason: string;
|
|
17
|
+
constructor(category: string, MandC_id: number, frequency: EarlyCheckoutFrequency, region: string, country: string, location: string, no_of_hours: string, from_date: Date, to_date: Date, reason: string);
|
|
18
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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.EarlyCheckoutConfiguration = exports.EarlyCheckoutFrequency = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var EarlyCheckoutFrequency;
|
|
16
|
+
(function (EarlyCheckoutFrequency) {
|
|
17
|
+
EarlyCheckoutFrequency["Monthly"] = "Monthly";
|
|
18
|
+
EarlyCheckoutFrequency["Yearly"] = "Yearly";
|
|
19
|
+
})(EarlyCheckoutFrequency || (exports.EarlyCheckoutFrequency = EarlyCheckoutFrequency = {}));
|
|
20
|
+
//This model is used to store the Early Checkout Configuration on the Admin Side
|
|
21
|
+
let EarlyCheckoutConfiguration = class EarlyCheckoutConfiguration extends BaseModel_1.BaseModel {
|
|
22
|
+
constructor(category, MandC_id, frequency, region, country, location, no_of_hours, from_date, to_date, reason) {
|
|
23
|
+
super();
|
|
24
|
+
this.category = category;
|
|
25
|
+
this.MandC_id = MandC_id;
|
|
26
|
+
this.no_of_hours = no_of_hours;
|
|
27
|
+
this.frequency = frequency;
|
|
28
|
+
this.region = region;
|
|
29
|
+
this.country = country;
|
|
30
|
+
this.location = location;
|
|
31
|
+
this.from_date = from_date;
|
|
32
|
+
this.to_date = to_date;
|
|
33
|
+
this.reason = reason;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
exports.EarlyCheckoutConfiguration = EarlyCheckoutConfiguration;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], EarlyCheckoutConfiguration.prototype, "category", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], EarlyCheckoutConfiguration.prototype, "MandC_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], EarlyCheckoutConfiguration.prototype, "frequency", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], EarlyCheckoutConfiguration.prototype, "region", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], EarlyCheckoutConfiguration.prototype, "country", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], EarlyCheckoutConfiguration.prototype, "location", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], EarlyCheckoutConfiguration.prototype, "no_of_hours", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
67
|
+
__metadata("design:type", Date)
|
|
68
|
+
], EarlyCheckoutConfiguration.prototype, "from_date", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
71
|
+
__metadata("design:type", Date)
|
|
72
|
+
], EarlyCheckoutConfiguration.prototype, "to_date", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], EarlyCheckoutConfiguration.prototype, "reason", void 0);
|
|
77
|
+
exports.EarlyCheckoutConfiguration = EarlyCheckoutConfiguration = __decorate([
|
|
78
|
+
(0, typeorm_1.Entity)({ name: 'early_checkout_configuration' }),
|
|
79
|
+
__metadata("design:paramtypes", [String, Number, String, String, String, String, String, Date, Date, String])
|
|
80
|
+
], EarlyCheckoutConfiguration);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum EarlyCheckoutTransactionStatus {
|
|
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 EarlyCheckoutTransaction extends BaseModel {
|
|
12
|
+
user_id: number;
|
|
13
|
+
hours_count: string;
|
|
14
|
+
from_date: Date;
|
|
15
|
+
to_date: Date;
|
|
16
|
+
year: number;
|
|
17
|
+
status: EarlyCheckoutTransactionStatus;
|
|
18
|
+
constructor(user_id: number, hours_count: string, from_date: Date, to_date: Date, year: number, status: EarlyCheckoutTransactionStatus);
|
|
19
|
+
}
|
|
@@ -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.EarlyCheckoutTransaction = exports.EarlyCheckoutTransactionStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var EarlyCheckoutTransactionStatus;
|
|
16
|
+
(function (EarlyCheckoutTransactionStatus) {
|
|
17
|
+
EarlyCheckoutTransactionStatus["GRANTED"] = "GRANTED";
|
|
18
|
+
EarlyCheckoutTransactionStatus["TAKEN"] = "TAKEN";
|
|
19
|
+
EarlyCheckoutTransactionStatus["ADJUSTMENT"] = "ADJUSTMENT";
|
|
20
|
+
EarlyCheckoutTransactionStatus["CARRY_FORWARD"] = "CARRY_FORWARD";
|
|
21
|
+
EarlyCheckoutTransactionStatus["ENCASHMENT"] = "ENCASHMENT";
|
|
22
|
+
EarlyCheckoutTransactionStatus["AVAILED"] = "AVAILED";
|
|
23
|
+
EarlyCheckoutTransactionStatus["ELAPSED"] = "ELAPSED";
|
|
24
|
+
})(EarlyCheckoutTransactionStatus || (exports.EarlyCheckoutTransactionStatus = EarlyCheckoutTransactionStatus = {}));
|
|
25
|
+
//This model is used to store early checkout transactions for users
|
|
26
|
+
let EarlyCheckoutTransaction = class EarlyCheckoutTransaction 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.EarlyCheckoutTransaction = EarlyCheckoutTransaction;
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], EarlyCheckoutTransaction.prototype, "user_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], EarlyCheckoutTransaction.prototype, "hours_count", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
48
|
+
__metadata("design:type", Date)
|
|
49
|
+
], EarlyCheckoutTransaction.prototype, "from_date", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
52
|
+
__metadata("design:type", Date)
|
|
53
|
+
], EarlyCheckoutTransaction.prototype, "to_date", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], EarlyCheckoutTransaction.prototype, "year", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: false }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], EarlyCheckoutTransaction.prototype, "status", void 0);
|
|
62
|
+
exports.EarlyCheckoutTransaction = EarlyCheckoutTransaction = __decorate([
|
|
63
|
+
(0, typeorm_1.Entity)({ name: 'early_checkout_transactions' }),
|
|
64
|
+
__metadata("design:paramtypes", [Number, String, Date,
|
|
65
|
+
Date, Number, String])
|
|
66
|
+
], EarlyCheckoutTransaction);
|
|
@@ -19,6 +19,7 @@ export declare class FinancialApprovals extends BaseModel {
|
|
|
19
19
|
section_id: number | null;
|
|
20
20
|
approved_by: number | null;
|
|
21
21
|
delegate_user_id: number | null;
|
|
22
|
+
is_allowed: boolean | null;
|
|
22
23
|
financialRequest?: FinancialRequests;
|
|
23
24
|
constructor(financial_request_id: number, level: number, approver_role_id: number, approval_status: FinancialApprovalStatus, department_id: number | null, section_id: number | null, approved_by: number | null, delegate_user_id: number | null);
|
|
24
25
|
}
|
|
@@ -79,6 +79,10 @@ __decorate([
|
|
|
79
79
|
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
80
80
|
__metadata("design:type", Object)
|
|
81
81
|
], FinancialApprovals.prototype, "delegate_user_id", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: true }),
|
|
84
|
+
__metadata("design:type", Object)
|
|
85
|
+
], FinancialApprovals.prototype, "is_allowed", void 0);
|
|
82
86
|
__decorate([
|
|
83
87
|
(0, typeorm_1.ManyToOne)(() => FinancialRequestsModel_1.FinancialRequests, fr => fr.approvals),
|
|
84
88
|
(0, typeorm_1.JoinColumn)({ name: 'financial_request_id' }),
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
2
|
export declare class FinancialGrade extends BaseModel {
|
|
3
3
|
diplomatic_title: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
arabic_title: string;
|
|
5
|
+
financial_grade: number;
|
|
6
|
+
leave_count: number;
|
|
7
|
+
constructor(diplomatic_title: string, arabic_title: string, financial_grade: number, leave_count: number);
|
|
7
8
|
}
|
|
@@ -14,27 +14,32 @@ const typeorm_1 = require("typeorm");
|
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
//This model is used to store the Financial Grade declaration on the Admin Side
|
|
16
16
|
let FinancialGrade = class FinancialGrade extends BaseModel_1.BaseModel {
|
|
17
|
-
constructor(diplomatic_title, financial_grade,
|
|
17
|
+
constructor(diplomatic_title, arabic_title, financial_grade, leave_count) {
|
|
18
18
|
super();
|
|
19
19
|
this.diplomatic_title = diplomatic_title;
|
|
20
|
+
this.arabic_title = arabic_title;
|
|
20
21
|
this.financial_grade = financial_grade;
|
|
21
|
-
this.
|
|
22
|
+
this.leave_count = leave_count;
|
|
22
23
|
}
|
|
23
24
|
};
|
|
24
25
|
exports.FinancialGrade = FinancialGrade;
|
|
25
26
|
__decorate([
|
|
26
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: false }),
|
|
27
28
|
__metadata("design:type", String)
|
|
28
29
|
], FinancialGrade.prototype, "diplomatic_title", void 0);
|
|
29
30
|
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ nullable:
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
31
32
|
__metadata("design:type", String)
|
|
33
|
+
], FinancialGrade.prototype, "arabic_title", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
36
|
+
__metadata("design:type", Number)
|
|
32
37
|
], FinancialGrade.prototype, "financial_grade", void 0);
|
|
33
38
|
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)({ type: "
|
|
39
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
35
40
|
__metadata("design:type", Number)
|
|
36
|
-
], FinancialGrade.prototype, "
|
|
41
|
+
], FinancialGrade.prototype, "leave_count", void 0);
|
|
37
42
|
exports.FinancialGrade = FinancialGrade = __decorate([
|
|
38
43
|
(0, typeorm_1.Entity)({ name: 'financial_grade' }),
|
|
39
|
-
__metadata("design:paramtypes", [String, String, Number])
|
|
44
|
+
__metadata("design:paramtypes", [String, String, Number, Number])
|
|
40
45
|
], FinancialGrade);
|
|
@@ -4,7 +4,8 @@ export declare enum GeneralServiceApprovalStatus {
|
|
|
4
4
|
APPROVED = "Approved",
|
|
5
5
|
REJECTED = "Rejected",
|
|
6
6
|
SKIPPED = "Skipped",
|
|
7
|
-
IN_PROGRESS = "In Progress"
|
|
7
|
+
IN_PROGRESS = "In Progress",
|
|
8
|
+
ASSIGNED = "Assigned"
|
|
8
9
|
}
|
|
9
10
|
export declare class GeneralServiceApprovals extends BaseModel {
|
|
10
11
|
request_id: number;
|
|
@@ -23,5 +24,7 @@ export declare class GeneralServiceApprovals extends BaseModel {
|
|
|
23
24
|
transfer_from_user_id: number | null;
|
|
24
25
|
transfer_to_user_id: number | null;
|
|
25
26
|
delegate_user_id: number | null;
|
|
27
|
+
action_type: string | null;
|
|
28
|
+
is_allowed: boolean | null;
|
|
26
29
|
constructor(request_id: number, level: number, approver_role_id: number, approval_status: GeneralServiceApprovalStatus, department_id: number | null, section_id: number | null, approved_by: number | null, service_id?: number | null, sub_service_id?: number | null);
|
|
27
30
|
}
|
|
@@ -19,6 +19,7 @@ var GeneralServiceApprovalStatus;
|
|
|
19
19
|
GeneralServiceApprovalStatus["REJECTED"] = "Rejected";
|
|
20
20
|
GeneralServiceApprovalStatus["SKIPPED"] = "Skipped";
|
|
21
21
|
GeneralServiceApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
22
|
+
GeneralServiceApprovalStatus["ASSIGNED"] = "Assigned";
|
|
22
23
|
})(GeneralServiceApprovalStatus || (exports.GeneralServiceApprovalStatus = GeneralServiceApprovalStatus = {}));
|
|
23
24
|
let GeneralServiceApprovals = class GeneralServiceApprovals extends BaseModel_1.BaseModel {
|
|
24
25
|
// @Column({ type: 'timestamp', nullable: true })
|
|
@@ -107,6 +108,14 @@ __decorate([
|
|
|
107
108
|
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
108
109
|
__metadata("design:type", Object)
|
|
109
110
|
], GeneralServiceApprovals.prototype, "delegate_user_id", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
113
|
+
__metadata("design:type", Object)
|
|
114
|
+
], GeneralServiceApprovals.prototype, "action_type", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
|
|
117
|
+
__metadata("design:type", Object)
|
|
118
|
+
], GeneralServiceApprovals.prototype, "is_allowed", void 0);
|
|
110
119
|
exports.GeneralServiceApprovals = GeneralServiceApprovals = __decorate([
|
|
111
120
|
(0, typeorm_1.Entity)({ name: 'general_service_approvals' }),
|
|
112
121
|
__metadata("design:paramtypes", [Number, Number, Number, String, Object, Object, Object, Object, Object])
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class LeaveBalance extends BaseModel {
|
|
3
|
+
user_id: string;
|
|
4
|
+
leave_type_id: string;
|
|
5
|
+
balance: number;
|
|
6
|
+
total_balance: number;
|
|
7
|
+
constructor(user_id: string, leave_type_id: string, balance: number, total_balance: number);
|
|
8
|
+
}
|
|
@@ -9,36 +9,36 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.LeaveBalance = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let
|
|
16
|
-
constructor(
|
|
15
|
+
let LeaveBalance = class LeaveBalance extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(user_id, leave_type_id, balance, total_balance) {
|
|
17
17
|
super();
|
|
18
|
-
this.request_id = request_id;
|
|
19
18
|
this.user_id = user_id;
|
|
20
|
-
this.
|
|
21
|
-
this.
|
|
19
|
+
this.leave_type_id = leave_type_id;
|
|
20
|
+
this.balance = balance;
|
|
21
|
+
this.total_balance = total_balance;
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
exports.
|
|
24
|
+
exports.LeaveBalance = LeaveBalance;
|
|
25
25
|
__decorate([
|
|
26
|
-
(0, typeorm_1.Column)({
|
|
27
|
-
__metadata("design:type",
|
|
28
|
-
],
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
31
|
-
__metadata("design:type", Number)
|
|
32
|
-
], PassportRequestChat.prototype, "user_id", void 0);
|
|
26
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], LeaveBalance.prototype, "user_id", void 0);
|
|
33
29
|
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)({
|
|
30
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
35
31
|
__metadata("design:type", String)
|
|
36
|
-
],
|
|
32
|
+
], LeaveBalance.prototype, "leave_type_id", void 0);
|
|
37
33
|
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({
|
|
39
|
-
__metadata("design:type",
|
|
40
|
-
],
|
|
41
|
-
|
|
42
|
-
(0, typeorm_1.
|
|
43
|
-
__metadata("design:
|
|
44
|
-
],
|
|
34
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], LeaveBalance.prototype, "balance", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], LeaveBalance.prototype, "total_balance", void 0);
|
|
41
|
+
exports.LeaveBalance = LeaveBalance = __decorate([
|
|
42
|
+
(0, typeorm_1.Entity)({ name: 'leave_balance' }),
|
|
43
|
+
__metadata("design:paramtypes", [String, String, Number, Number])
|
|
44
|
+
], LeaveBalance);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class LeaveConfigurationGrades extends BaseModel {
|
|
3
|
+
leave_config_id: number;
|
|
4
|
+
grade: number;
|
|
5
|
+
jan: number;
|
|
6
|
+
feb: number;
|
|
7
|
+
mar: number;
|
|
8
|
+
apr: number;
|
|
9
|
+
may: number;
|
|
10
|
+
jun: number;
|
|
11
|
+
jul: number;
|
|
12
|
+
aug: number;
|
|
13
|
+
sep: number;
|
|
14
|
+
oct: number;
|
|
15
|
+
nov: number;
|
|
16
|
+
dec: number;
|
|
17
|
+
total_count: number;
|
|
18
|
+
constructor(leave_config_id: number, grade: number, jan: number, feb: number, mar: number, apr: number, may: number, jun: number, jul: number, aug: number, sep: number, oct: number, nov: number, dec: number, total_count: number);
|
|
19
|
+
}
|