@platform-modules/foreign-ministry 1.1.66 → 1.1.68

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.
Files changed (36) hide show
  1. package/.env +3 -11
  2. package/dist/data-source.js +15 -1
  3. package/dist/index.d.ts +13 -1
  4. package/dist/index.js +22 -2
  5. package/dist/models/EarlyCheckoutBalanceModel.d.ts +7 -0
  6. package/dist/models/{HelpContentMappedCategoriesModel.js → EarlyCheckoutBalanceModel.js} +17 -12
  7. package/dist/models/EarlyCheckoutConfigModel.d.ts +18 -0
  8. package/dist/models/EarlyCheckoutConfigModel.js +80 -0
  9. package/dist/models/EarlyCheckoutTransactionModel.d.ts +19 -0
  10. package/dist/models/EarlyCheckoutTransactionModel.js +66 -0
  11. package/dist/models/FinancialGradeModel.js +2 -2
  12. package/dist/models/StationeryMaterialMasterModel.d.ts +11 -0
  13. package/dist/models/StationeryMaterialMasterModel.js +56 -0
  14. package/dist/models/StationeryRequestsModel.d.ts +27 -0
  15. package/dist/models/StationeryRequestsModel.js +93 -0
  16. package/dist/models/StayAfterHoursBalanceModel.d.ts +7 -0
  17. package/dist/models/{HelpContentMappedTagsModel.js → StayAfterHoursBalanceModel.js} +17 -12
  18. package/dist/models/StayAfterHoursTransactionModel.d.ts +19 -0
  19. package/dist/models/StayAfterHoursTransactionModel.js +66 -0
  20. package/package.json +1 -1
  21. package/src/data-source.ts +15 -2
  22. package/src/index.ts +13 -1
  23. package/src/models/EarlyCheckoutBalanceModel.ts +22 -0
  24. package/src/models/EarlyCheckoutConfigModel.ts +57 -0
  25. package/src/models/EarlyCheckoutTransactionModel.ts +53 -0
  26. package/src/models/StationeryMaterialMasterModel.ts +35 -0
  27. package/src/models/StationeryRequestsModel.ts +65 -0
  28. package/src/models/StayAfterHoursBalanceModel.ts +22 -0
  29. package/src/models/StayAfterHoursTransactionModel.ts +53 -0
  30. package/dist/models/HelpContentMappedCategoriesModel.d.ts +0 -6
  31. package/dist/models/HelpContentMappedTagsModel.d.ts +0 -6
  32. package/dist/models/HelpContentTagsModel.d.ts +0 -5
  33. package/dist/models/HelpContentTagsModel.js +0 -29
  34. package/dist/models/questionTagsModel.d.ts +0 -6
  35. package/dist/models/questionTagsModel.js +0 -34
  36. /package/src/models/{LeaveConfigGradesModel.ts → LeaveConfigGradesModel.Ts} +0 -0
package/.env CHANGED
@@ -1,13 +1,5 @@
1
- # DB_HOST=localhost
2
- # DB_PORT=5433
3
- # DB_USER=postgres
4
- # DB_PASS=123
5
- # DB_NAME=FM
6
-
7
-
8
-
9
- DB_HOST=164.52.222.169
1
+ DB_HOST=localhost
10
2
  DB_PORT=5432
11
- DB_USER=postgres_admin_user
12
- DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
3
+ DB_USER=postgres
4
+ DB_PASS=Fa@123
13
5
  DB_NAME=FM
@@ -106,6 +106,13 @@ const LeaveBalanceModel_1 = require("./models/LeaveBalanceModel");
106
106
  const LeaveConfigModel_1 = require("./models/LeaveConfigModel");
107
107
  const LeaveConfigGradesModel_1 = require("./models/LeaveConfigGradesModel");
108
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");
109
116
  exports.AppDataSource = new typeorm_1.DataSource({
110
117
  type: 'postgres',
111
118
  host: process.env.DB_HOST || 'localhost',
@@ -216,6 +223,13 @@ exports.AppDataSource = new typeorm_1.DataSource({
216
223
  LeaveBalanceModel_1.LeaveBalance,
217
224
  LeaveConfigModel_1.LeaveConfiguration,
218
225
  LeaveConfigGradesModel_1.LeaveConfigurationGrades,
219
- LeaveTransactionModel_1.LeaveTransaction
226
+ LeaveTransactionModel_1.LeaveTransaction,
227
+ EarlyCheckoutBalanceModel_1.EarlyCheckoutBalance,
228
+ EarlyCheckoutConfigModel_1.EarlyCheckoutConfiguration,
229
+ EarlyCheckoutTransactionModel_1.EarlyCheckoutTransaction,
230
+ StayAfterHoursBalanceModel_1.StayAfterHoursBalance,
231
+ StayAfterHoursTransactionModel_1.StayAfterHoursTransaction,
232
+ StationeryRequestsModel_1.StationeryRequests,
233
+ StationeryMaterialMasterModel_1.StationeryMaterialMaster
220
234
  ],
221
235
  });
package/dist/index.d.ts CHANGED
@@ -100,7 +100,6 @@ 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/TelephoneDirectoryModel';
104
103
  export * from './models/M&CMasterModel';
105
104
  export * from './models/LeaveBalanceModel';
106
105
  export * from './models/LeaveConfigModel';
@@ -109,3 +108,16 @@ export * from './models/LeaveConfigGradesModel';
109
108
  export { LeaveConfigurationGrades } from './models/LeaveConfigGradesModel';
110
109
  export * from './models/LeaveTransactionModel';
111
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';
121
+ export * from './models/TelephoneDirectoryModel';
122
+ export * from './models/StationeryRequestsModel';
123
+ export * from './models/StationeryMaterialMasterModel';
package/dist/index.js CHANGED
@@ -14,7 +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.LeaveTransactionStatus = exports.LeaveTransaction = exports.LeaveConfigurationGrades = exports.enumFrequency = exports.LeaveConfiguration = void 0;
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;
18
18
  __exportStar(require("./models/user"), exports);
19
19
  __exportStar(require("./models/role"), exports);
20
20
  __exportStar(require("./models/user-sessions"), exports);
@@ -117,7 +117,6 @@ __exportStar(require("./models/GroupNamesModel"), exports);
117
117
  __exportStar(require("./models/GroupModel"), exports);
118
118
  __exportStar(require("./models/WorkScheduleModel"), exports);
119
119
  __exportStar(require("./models/JobsModel"), exports);
120
- __exportStar(require("./models/TelephoneDirectoryModel"), exports);
121
120
  __exportStar(require("./models/M&CMasterModel"), exports);
122
121
  __exportStar(require("./models/LeaveBalanceModel"), exports);
123
122
  __exportStar(require("./models/LeaveConfigModel"), exports);
@@ -131,3 +130,24 @@ __exportStar(require("./models/LeaveTransactionModel"), exports);
131
130
  var LeaveTransactionModel_1 = require("./models/LeaveTransactionModel");
132
131
  Object.defineProperty(exports, "LeaveTransaction", { enumerable: true, get: function () { return LeaveTransactionModel_1.LeaveTransaction; } });
133
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; } });
151
+ __exportStar(require("./models/TelephoneDirectoryModel"), exports);
152
+ __exportStar(require("./models/StationeryRequestsModel"), exports);
153
+ __exportStar(require("./models/StationeryMaterialMasterModel"), exports);
@@ -0,0 +1,7 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class EarlyCheckoutBalance extends BaseModel {
3
+ user_id: string;
4
+ balance: number;
5
+ total_balance: number;
6
+ constructor(user_id: string, balance: number, total_balance: number);
7
+ }
@@ -9,26 +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.HelpContentMappedCategories = void 0;
12
+ exports.EarlyCheckoutBalance = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const BaseModel_1 = require("./BaseModel");
15
- let HelpContentMappedCategories = class HelpContentMappedCategories extends BaseModel_1.BaseModel {
16
- constructor(help_content_category_Id, help_content_Id) {
15
+ let EarlyCheckoutBalance = class EarlyCheckoutBalance extends BaseModel_1.BaseModel {
16
+ constructor(user_id, balance, total_balance) {
17
17
  super();
18
- this.help_content_category_Id = help_content_category_Id,
19
- this.help_content_Id = help_content_Id;
18
+ this.user_id = user_id;
19
+ this.balance = balance;
20
+ this.total_balance = total_balance;
20
21
  }
21
22
  };
22
- exports.HelpContentMappedCategories = HelpContentMappedCategories;
23
+ exports.EarlyCheckoutBalance = EarlyCheckoutBalance;
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ nullable: true }),
26
+ __metadata("design:type", String)
27
+ ], EarlyCheckoutBalance.prototype, "user_id", void 0);
23
28
  __decorate([
24
29
  (0, typeorm_1.Column)({ nullable: true }),
25
30
  __metadata("design:type", Number)
26
- ], HelpContentMappedCategories.prototype, "help_content_category_Id", void 0);
31
+ ], EarlyCheckoutBalance.prototype, "balance", void 0);
27
32
  __decorate([
28
33
  (0, typeorm_1.Column)({ nullable: true }),
29
34
  __metadata("design:type", Number)
30
- ], HelpContentMappedCategories.prototype, "help_content_Id", void 0);
31
- exports.HelpContentMappedCategories = HelpContentMappedCategories = __decorate([
32
- (0, typeorm_1.Entity)({ name: 'help_content_mapped_categories' }),
33
- __metadata("design:paramtypes", [Number, Number])
34
- ], HelpContentMappedCategories);
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);
@@ -32,11 +32,11 @@ __decorate([
32
32
  __metadata("design:type", String)
33
33
  ], FinancialGrade.prototype, "arabic_title", void 0);
34
34
  __decorate([
35
- (0, typeorm_1.Column)({ type: "integer", nullable: false }),
35
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
36
36
  __metadata("design:type", Number)
37
37
  ], FinancialGrade.prototype, "financial_grade", void 0);
38
38
  __decorate([
39
- (0, typeorm_1.Column)({ type: "integer", nullable: false }),
39
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
40
40
  __metadata("design:type", Number)
41
41
  ], FinancialGrade.prototype, "leave_count", void 0);
42
42
  exports.FinancialGrade = FinancialGrade = __decorate([
@@ -0,0 +1,11 @@
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
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.StationeryMaterialMaster = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let StationeryMaterialMaster = class StationeryMaterialMaster extends BaseModel_1.BaseModel {
16
+ constructor(material_type, material_name) {
17
+ super();
18
+ this.material_type = material_type;
19
+ this.material_name = material_name;
20
+ this.is_active = true;
21
+ this.display_order = 0;
22
+ }
23
+ };
24
+ exports.StationeryMaterialMaster = StationeryMaterialMaster;
25
+ __decorate([
26
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
27
+ __metadata("design:type", String)
28
+ ], StationeryMaterialMaster.prototype, "material_type", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
31
+ __metadata("design:type", String)
32
+ ], StationeryMaterialMaster.prototype, "material_name", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
35
+ __metadata("design:type", Object)
36
+ ], StationeryMaterialMaster.prototype, "material_code", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
39
+ __metadata("design:type", Object)
40
+ ], StationeryMaterialMaster.prototype, "description", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
43
+ __metadata("design:type", Object)
44
+ ], StationeryMaterialMaster.prototype, "unit_of_measure", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: 'boolean', default: true }),
47
+ __metadata("design:type", Boolean)
48
+ ], StationeryMaterialMaster.prototype, "is_active", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'int', default: 0 }),
51
+ __metadata("design:type", Number)
52
+ ], StationeryMaterialMaster.prototype, "display_order", void 0);
53
+ exports.StationeryMaterialMaster = StationeryMaterialMaster = __decorate([
54
+ (0, typeorm_1.Entity)({ name: 'stationery_material_master' }),
55
+ __metadata("design:paramtypes", [String, String])
56
+ ], StationeryMaterialMaster);
@@ -0,0 +1,27 @@
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
+ }
@@ -0,0 +1,93 @@
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);
@@ -0,0 +1,7 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class StayAfterHoursBalance extends BaseModel {
3
+ user_id: string;
4
+ balance: number;
5
+ total_balance: number;
6
+ constructor(user_id: string, balance: number, total_balance: number);
7
+ }
@@ -9,26 +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.HelpContentMappedTags = void 0;
12
+ exports.StayAfterHoursBalance = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const BaseModel_1 = require("./BaseModel");
15
- let HelpContentMappedTags = class HelpContentMappedTags extends BaseModel_1.BaseModel {
16
- constructor(help_content_tag_Id, help_content_Id) {
15
+ let StayAfterHoursBalance = class StayAfterHoursBalance extends BaseModel_1.BaseModel {
16
+ constructor(user_id, balance, total_balance) {
17
17
  super();
18
- this.help_content_tag_Id = help_content_tag_Id,
19
- this.help_content_Id = help_content_Id;
18
+ this.user_id = user_id;
19
+ this.balance = balance;
20
+ this.total_balance = total_balance;
20
21
  }
21
22
  };
22
- exports.HelpContentMappedTags = HelpContentMappedTags;
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);
23
28
  __decorate([
24
29
  (0, typeorm_1.Column)({ nullable: true }),
25
30
  __metadata("design:type", Number)
26
- ], HelpContentMappedTags.prototype, "help_content_tag_Id", void 0);
31
+ ], StayAfterHoursBalance.prototype, "balance", void 0);
27
32
  __decorate([
28
33
  (0, typeorm_1.Column)({ nullable: true }),
29
34
  __metadata("design:type", Number)
30
- ], HelpContentMappedTags.prototype, "help_content_Id", void 0);
31
- exports.HelpContentMappedTags = HelpContentMappedTags = __decorate([
32
- (0, typeorm_1.Entity)({ name: 'help_content_mapped_tags' }),
33
- __metadata("design:paramtypes", [Number, Number])
34
- ], HelpContentMappedTags);
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);
@@ -0,0 +1,19 @@
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
+ }
@@ -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.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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/foreign-ministry",
3
- "version": "1.1.66",
3
+ "version": "1.1.68",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -111,7 +111,13 @@ import { LeaveBalance } from './models/LeaveBalanceModel'
111
111
  import { LeaveConfiguration } from './models/LeaveConfigModel'
112
112
  import { LeaveConfigurationGrades } from './models/LeaveConfigGradesModel'
113
113
  import { LeaveTransaction } from './models/LeaveTransactionModel'
114
-
114
+ import { EarlyCheckoutBalance } from './models/EarlyCheckoutBalanceModel'
115
+ import { EarlyCheckoutConfiguration } from './models/EarlyCheckoutConfigModel'
116
+ import { EarlyCheckoutTransaction } from './models/EarlyCheckoutTransactionModel'
117
+ import { StayAfterHoursBalance } from './models/StayAfterHoursBalanceModel'
118
+ import { StayAfterHoursTransaction } from './models/StayAfterHoursTransactionModel'
119
+ import {StationeryRequests} from './models/StationeryRequestsModel'
120
+ import {StationeryMaterialMaster} from './models/StationeryMaterialMasterModel'
115
121
 
116
122
  export const AppDataSource = new DataSource({
117
123
  type: 'postgres',
@@ -223,6 +229,13 @@ export const AppDataSource = new DataSource({
223
229
  LeaveBalance,
224
230
  LeaveConfiguration,
225
231
  LeaveConfigurationGrades,
226
- LeaveTransaction
232
+ LeaveTransaction,
233
+ EarlyCheckoutBalance,
234
+ EarlyCheckoutConfiguration,
235
+ EarlyCheckoutTransaction,
236
+ StayAfterHoursBalance,
237
+ StayAfterHoursTransaction,
238
+ StationeryRequests,
239
+ StationeryMaterialMaster
227
240
  ],
228
241
  });
package/src/index.ts CHANGED
@@ -100,7 +100,6 @@ 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/TelephoneDirectoryModel';
104
103
  export * from './models/M&CMasterModel';
105
104
  export * from './models/LeaveBalanceModel';
106
105
  export * from './models/LeaveConfigModel';
@@ -109,3 +108,16 @@ export * from './models/LeaveConfigGradesModel';
109
108
  export { LeaveConfigurationGrades } from './models/LeaveConfigGradesModel';
110
109
  export * from './models/LeaveTransactionModel';
111
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';
121
+ export * from './models/TelephoneDirectoryModel';
122
+ export * from './models/StationeryRequestsModel';
123
+ export * from './models/StationeryMaterialMasterModel';
@@ -0,0 +1,22 @@
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
+ }
@@ -0,0 +1,57 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum EarlyCheckoutFrequency {
5
+ Monthly = 'Monthly',
6
+ Yearly = 'Yearly',
7
+ }
8
+
9
+ //This model is used to store the Early Checkout Configuration on the Admin Side
10
+ @Entity({ name: 'early_checkout_configuration' })
11
+ export class EarlyCheckoutConfiguration extends BaseModel {
12
+
13
+ @Column({ type: 'varchar', nullable: true })
14
+ category: string;
15
+
16
+ @Column({ type: 'int', nullable: true })
17
+ MandC_id: number;
18
+
19
+ @Column({ type: 'varchar', nullable: true })
20
+ frequency: EarlyCheckoutFrequency;
21
+
22
+ @Column({ type: 'varchar', nullable: true })
23
+ region: string;
24
+
25
+ @Column({ type: 'varchar', nullable: true })
26
+ country: string;
27
+
28
+ @Column({ type: 'varchar', nullable: true })
29
+ location: string;
30
+
31
+ @Column({ type: 'varchar', nullable: true })
32
+ no_of_hours: string;
33
+
34
+
35
+ @Column({ type: 'date', nullable: true })
36
+ from_date: Date;
37
+
38
+ @Column({ type: 'date', nullable: true })
39
+ to_date: Date;
40
+
41
+ @Column({ type: 'varchar', nullable: true })
42
+ reason: string;
43
+
44
+ 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) {
45
+ super();
46
+ this.category = category;
47
+ this.MandC_id = MandC_id;
48
+ this.no_of_hours = no_of_hours;
49
+ this.frequency = frequency;
50
+ this.region = region;
51
+ this.country = country;
52
+ this.location = location;
53
+ this.from_date = from_date;
54
+ this.to_date = to_date;
55
+ this.reason = reason;
56
+ }
57
+ }
@@ -0,0 +1,53 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum EarlyCheckoutTransactionStatus {
5
+ GRANTED = 'GRANTED',
6
+ TAKEN = 'TAKEN',
7
+ ADJUSTMENT = 'ADJUSTMENT',
8
+ CARRY_FORWARD = 'CARRY_FORWARD',
9
+ ENCASHMENT = 'ENCASHMENT',
10
+ AVAILED = 'AVAILED',
11
+ ELAPSED = 'ELAPSED'
12
+ }
13
+
14
+ //This model is used to store early checkout transactions for users
15
+ @Entity({ name: 'early_checkout_transactions' })
16
+ export class EarlyCheckoutTransaction extends BaseModel {
17
+
18
+ @Column({ type: 'int', nullable: false })
19
+ user_id: number;
20
+
21
+ @Column({ type: 'varchar', nullable: true })
22
+ hours_count: string;
23
+
24
+ @Column({ type: 'date', nullable: true })
25
+ from_date: Date;
26
+
27
+ @Column({ type: 'date', nullable: true })
28
+ to_date: Date;
29
+
30
+ @Column({ type: 'int', nullable: true })
31
+ year: number;
32
+
33
+ @Column({ type: 'varchar', nullable: false })
34
+ status: EarlyCheckoutTransactionStatus;
35
+
36
+ constructor(
37
+ user_id: number,
38
+ hours_count: string,
39
+ from_date: Date,
40
+ to_date: Date,
41
+ year: number,
42
+ status: EarlyCheckoutTransactionStatus
43
+ ) {
44
+ super();
45
+ this.user_id = user_id;
46
+ this.hours_count = hours_count;
47
+ this.from_date = from_date;
48
+ this.to_date = to_date;
49
+ this.year = year;
50
+ this.status = status;
51
+ }
52
+ }
53
+
@@ -0,0 +1,35 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ @Entity({ name: 'stationery_material_master' })
5
+ export class StationeryMaterialMaster extends BaseModel {
6
+ @Column({ type: 'varchar', length: 255, nullable: false })
7
+ material_type: string; // e.g., "Paper", "Pen", "Folder"
8
+
9
+ @Column({ type: 'varchar', length: 255, nullable: false })
10
+ material_name: string; // e.g., "A4 Paper", "Blue Pen", "File Folder"
11
+
12
+ @Column({ type: 'varchar', length: 100, nullable: true })
13
+ material_code: string | null; // Optional material code for identification
14
+
15
+ @Column({ type: 'text', nullable: true })
16
+ description: string | null; // Description of the material
17
+
18
+ @Column({ type: 'varchar', length: 100, nullable: true })
19
+ unit_of_measure: string | null; // e.g., "Pack", "Box", "Piece", "Ream"
20
+
21
+ @Column({ type: 'boolean', default: true })
22
+ is_active: boolean; // Whether the material is active/available
23
+
24
+ @Column({ type: 'int', default: 0 })
25
+ display_order: number; // Order for display in dropdowns
26
+
27
+ constructor(material_type: string, material_name: string) {
28
+ super();
29
+ this.material_type = material_type;
30
+ this.material_name = material_name;
31
+ this.is_active = true;
32
+ this.display_order = 0;
33
+ }
34
+ }
35
+
@@ -0,0 +1,65 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum StationeryRequestStatus {
5
+ PENDING = "Pending",
6
+ ASSIGNED = "Assigned",
7
+ IN_PROGRESS = "In Progress",
8
+ APPROVED = "Approved",
9
+ REJECTED = "Rejected",
10
+ COMPLETED = "Completed"
11
+ }
12
+
13
+
14
+ @Entity({ name: 'stationery_requests' })
15
+ export class StationeryRequests extends BaseModel {
16
+ @Column({ type: 'int', nullable: true })
17
+ req_user_department_id: number | null;
18
+
19
+ @Column({ type: 'int', nullable: true })
20
+ req_user_section_id: number | null;
21
+
22
+ @Column({ type: 'int', nullable: true })
23
+ service_id: number | null;
24
+
25
+ @Column({ type: 'int', nullable: true })
26
+ sub_service_id: number | null;
27
+
28
+ @Column({ type: 'int', nullable: false })
29
+ user_id: number;
30
+
31
+ @Column({ type: 'date', nullable: false })
32
+ date_of_request_preparation: Date;
33
+
34
+ @Column({ type: 'varchar', length: 255, nullable: false })
35
+ office: string;
36
+
37
+ @Column({ type: 'varchar', length: 255, nullable: false })
38
+ material_type: string;
39
+
40
+ @Column({ type: 'varchar', length: 255, nullable: false })
41
+ material_name: string;
42
+
43
+ @Column({ type: 'int', nullable: false })
44
+ quantity_required: number;
45
+
46
+ @Column({ type: 'varchar', length: 500, nullable: true })
47
+ comments: string | null;
48
+
49
+ @Column({ type: 'enum', enum: StationeryRequestStatus, default: StationeryRequestStatus.PENDING, nullable: false })
50
+ status: StationeryRequestStatus;
51
+
52
+ @Column({ type: 'varchar', nullable: true })
53
+ workflow_execution_id: string | null;
54
+
55
+ // Business logic fields
56
+ @Column({ type: 'boolean', default: false, nullable: true })
57
+ stock_available: boolean | null; // Whether stock is available in Stores Office
58
+
59
+ @Column({ type: 'varchar', length: 100, nullable: true })
60
+ po_number: string | null; // Purchase Order number from Finance
61
+
62
+ @Column({ type: 'date', nullable: true })
63
+ stock_available_date: Date | null; // When stock becomes available
64
+ }
65
+
@@ -0,0 +1,22 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ @Entity({ name: 'stay_after_hours_balance' })
5
+ export class StayAfterHoursBalance 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
+ }
@@ -0,0 +1,53 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ export enum StayAfterHoursTransactionStatus {
5
+ GRANTED = 'GRANTED',
6
+ TAKEN = 'TAKEN',
7
+ ADJUSTMENT = 'ADJUSTMENT',
8
+ CARRY_FORWARD = 'CARRY_FORWARD',
9
+ ENCASHMENT = 'ENCASHMENT',
10
+ AVAILED = 'AVAILED',
11
+ ELAPSED = 'ELAPSED'
12
+ }
13
+
14
+ //This model is used to store early checkout transactions for users
15
+ @Entity({ name: 'stay_after_hours_transactions' })
16
+ export class StayAfterHoursTransaction extends BaseModel {
17
+
18
+ @Column({ type: 'int', nullable: false })
19
+ user_id: number;
20
+
21
+ @Column({ type: 'varchar', nullable: true })
22
+ hours_count: string;
23
+
24
+ @Column({ type: 'date', nullable: true })
25
+ from_date: Date;
26
+
27
+ @Column({ type: 'date', nullable: true })
28
+ to_date: Date;
29
+
30
+ @Column({ type: 'int', nullable: true })
31
+ year: number;
32
+
33
+ @Column({ type: 'varchar', nullable: false })
34
+ status: StayAfterHoursTransactionStatus;
35
+
36
+ constructor(
37
+ user_id: number,
38
+ hours_count: string,
39
+ from_date: Date,
40
+ to_date: Date,
41
+ year: number,
42
+ status: StayAfterHoursTransactionStatus
43
+ ) {
44
+ super();
45
+ this.user_id = user_id;
46
+ this.hours_count = hours_count;
47
+ this.from_date = from_date;
48
+ this.to_date = to_date;
49
+ this.year = year;
50
+ this.status = status;
51
+ }
52
+ }
53
+
@@ -1,6 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class HelpContentMappedCategories extends BaseModel {
3
- help_content_category_Id: number;
4
- help_content_Id: number;
5
- constructor(help_content_category_Id: number, help_content_Id: number);
6
- }
@@ -1,6 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class HelpContentMappedTags extends BaseModel {
3
- help_content_tag_Id: number;
4
- help_content_Id: number;
5
- constructor(help_content_tag_Id: number, help_content_Id: number);
6
- }
@@ -1,5 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class HelpContentTags extends BaseModel {
3
- name: string;
4
- constructor(name: string);
5
- }
@@ -1,29 +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.HelpContentTags = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- let HelpContentTags = class HelpContentTags extends BaseModel_1.BaseModel {
16
- constructor(name) {
17
- super();
18
- this.name = name;
19
- }
20
- };
21
- exports.HelpContentTags = HelpContentTags;
22
- __decorate([
23
- (0, typeorm_1.Column)({ nullable: true }),
24
- __metadata("design:type", String)
25
- ], HelpContentTags.prototype, "name", void 0);
26
- exports.HelpContentTags = HelpContentTags = __decorate([
27
- (0, typeorm_1.Entity)({ name: 'help_content_tags' }),
28
- __metadata("design:paramtypes", [String])
29
- ], HelpContentTags);
@@ -1,6 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class QuestionTags extends BaseModel {
3
- name: string;
4
- question_Id: number;
5
- constructor(name: string, question_Id: number);
6
- }
@@ -1,34 +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.QuestionTags = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- let QuestionTags = class QuestionTags extends BaseModel_1.BaseModel {
16
- constructor(name, question_Id) {
17
- super();
18
- this.name = name,
19
- this.question_Id = question_Id;
20
- }
21
- };
22
- exports.QuestionTags = QuestionTags;
23
- __decorate([
24
- (0, typeorm_1.Column)({ nullable: true }),
25
- __metadata("design:type", String)
26
- ], QuestionTags.prototype, "name", void 0);
27
- __decorate([
28
- (0, typeorm_1.Column)({ nullable: true }),
29
- __metadata("design:type", Number)
30
- ], QuestionTags.prototype, "question_Id", void 0);
31
- exports.QuestionTags = QuestionTags = __decorate([
32
- (0, typeorm_1.Entity)({ name: 'question_tags' }),
33
- __metadata("design:paramtypes", [String, Number])
34
- ], QuestionTags);