@platform-modules/foreign-ministry 1.1.21 → 1.1.23
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/.env +11 -3
- package/dist/data-source.js +8 -16
- package/dist/index.d.ts +4 -8
- package/dist/index.js +4 -8
- package/dist/models/AttendanceModel.d.ts +2 -1
- package/dist/models/AttendanceModel.js +2 -1
- package/dist/models/HelpContentMappedCategoriesModel.d.ts +6 -0
- package/dist/models/{DiplomaticClubCardChatModel.js → HelpContentMappedCategoriesModel.js} +16 -18
- package/dist/models/HelpContentMappedTagsModel.d.ts +6 -0
- package/dist/models/HelpContentMappedTagsModel.js +34 -0
- package/dist/models/HelpContentTagsModel.d.ts +5 -0
- package/dist/models/HelpContentTagsModel.js +29 -0
- package/dist/models/LeaveApprovalsModel.d.ts +4 -1
- package/dist/models/LeaveApprovalsModel.js +9 -0
- package/dist/models/UpdateAttendanceApprovalModel.d.ts +21 -0
- package/dist/models/UpdateAttendanceApprovalModel.js +75 -0
- package/dist/models/UpdateAttendanceChatModel.d.ts +16 -0
- package/dist/models/UpdateAttendanceChatModel.js +52 -0
- package/dist/models/UpdateAttendanceRequestModel.d.ts +28 -0
- package/dist/models/UpdateAttendanceRequestModel.js +86 -0
- package/dist/models/UpdateAttendanceWorkflowModel.d.ts +13 -0
- package/dist/models/UpdateAttendanceWorkflowModel.js +46 -0
- package/dist/models/WorkflowTask.d.ts +5 -2
- package/dist/models/WorkflowTask.js +28 -4
- package/dist/models/WorkflowTaskNames.d.ts +12 -3
- package/dist/models/WorkflowTaskNames.js +28 -9
- package/dist/models/questionTagsModel.d.ts +6 -0
- package/dist/models/questionTagsModel.js +34 -0
- package/package.json +1 -1
- package/src/data-source.ts +8 -16
- package/src/index.ts +4 -8
- package/src/models/AttendanceModel.ts +2 -1
- package/src/models/LeaveApprovalsModel.ts +8 -1
- package/src/models/UpdateAttendanceApprovalModel.ts +50 -0
- package/src/models/UpdateAttendanceChatModel.ts +34 -0
- package/src/models/UpdateAttendanceRequestModel.ts +62 -0
- package/src/models/UpdateAttendanceWorkflowModel.ts +28 -0
- package/src/models/WorkflowTask.ts +31 -4
- package/src/models/WorkflowTaskNames.ts +27 -8
- 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/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/DiplomaticTitleModel.d.ts +0 -12
- package/dist/models/DiplomaticTitleModel.js +0 -45
- package/dist/models/SubscriptionAmountModel.d.ts +0 -10
- package/dist/models/SubscriptionAmountModel.js +0 -45
- package/src/models/DiplomaticClubCardApprovalModel.ts +0 -37
- package/src/models/DiplomaticClubCardAttachmentModel.ts +0 -25
- package/src/models/DiplomaticClubCardChatModel.ts +0 -19
- package/src/models/DiplomaticClubCardMemberModel.ts +0 -37
- package/src/models/DiplomaticClubCardRequestModel.ts +0 -70
- package/src/models/DiplomaticClubCardWorkFlowModel.ts +0 -25
- package/src/models/DiplomaticTitleModel.ts +0 -27
- package/src/models/SubscriptionAmountModel.ts +0 -26
package/.env
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
DB_HOST=localhost
|
|
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
|
|
2
10
|
DB_PORT=5432
|
|
3
|
-
DB_USER=
|
|
4
|
-
DB_PASS=
|
|
11
|
+
DB_USER=postgres_admin_user
|
|
12
|
+
DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
5
13
|
DB_NAME=FM
|
package/dist/data-source.js
CHANGED
|
@@ -78,20 +78,16 @@ const StayAfterHoursApprovalModel_1 = require("./models/StayAfterHoursApprovalMo
|
|
|
78
78
|
const StayAfterHoursAttachmentModel_1 = require("./models/StayAfterHoursAttachmentModel");
|
|
79
79
|
const StayAfterHoursChatModel_1 = require("./models/StayAfterHoursChatModel");
|
|
80
80
|
const StayAfterHoursWorkflowModel_1 = require("./models/StayAfterHoursWorkflowModel");
|
|
81
|
-
const DiplomaticClubCardRequestModel_1 = require("./models/DiplomaticClubCardRequestModel");
|
|
82
|
-
const DiplomaticClubCardMemberModel_1 = require("./models/DiplomaticClubCardMemberModel");
|
|
83
|
-
const DiplomaticClubCardApprovalModel_1 = require("./models/DiplomaticClubCardApprovalModel");
|
|
84
|
-
const DiplomaticClubCardAttachmentModel_1 = require("./models/DiplomaticClubCardAttachmentModel");
|
|
85
|
-
const DiplomaticClubCardWorkFlowModel_1 = require("./models/DiplomaticClubCardWorkFlowModel");
|
|
86
|
-
const DiplomaticClubCardChatModel_1 = require("./models/DiplomaticClubCardChatModel");
|
|
87
|
-
const DiplomaticTitleModel_1 = require("./models/DiplomaticTitleModel");
|
|
88
|
-
const SubscriptionAmountModel_1 = require("./models/SubscriptionAmountModel");
|
|
89
81
|
const WorkflowTask_1 = require("./models/WorkflowTask");
|
|
90
82
|
const WorkflowTaskNames_1 = require("./models/WorkflowTaskNames");
|
|
91
83
|
const WorkflowDefinitions_1 = require("./models/WorkflowDefinitions");
|
|
92
84
|
const WorkflowHierarchy_1 = require("./models/WorkflowHierarchy");
|
|
93
85
|
const importantLinksModel_1 = require("./models/importantLinksModel");
|
|
94
86
|
const DelegateSettingsModel_1 = require("./models/DelegateSettingsModel");
|
|
87
|
+
const UpdateAttendanceRequestModel_1 = require("./models/UpdateAttendanceRequestModel");
|
|
88
|
+
const UpdateAttendanceApprovalModel_1 = require("./models/UpdateAttendanceApprovalModel");
|
|
89
|
+
const UpdateAttendanceChatModel_1 = require("./models/UpdateAttendanceChatModel");
|
|
90
|
+
const UpdateAttendanceWorkflowModel_1 = require("./models/UpdateAttendanceWorkflowModel");
|
|
95
91
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
96
92
|
type: 'postgres',
|
|
97
93
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -181,13 +177,9 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
181
177
|
StayAfterHoursAttachmentModel_1.StayAfterHoursRequestAttachment,
|
|
182
178
|
StayAfterHoursChatModel_1.StayAfterHoursRequestChat,
|
|
183
179
|
StayAfterHoursWorkflowModel_1.StayAfterHoursWorkFlow,
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
DiplomaticClubCardWorkFlowModel_1.DiplomaticClubCardWorkFlow,
|
|
189
|
-
DiplomaticClubCardChatModel_1.DiplomaticClubCardChat,
|
|
190
|
-
DiplomaticTitleModel_1.DiplomaticTitles,
|
|
191
|
-
SubscriptionAmountModel_1.SubscriptionAmounts
|
|
180
|
+
UpdateAttendanceRequestModel_1.UpdateAttendanceRequests,
|
|
181
|
+
UpdateAttendanceApprovalModel_1.UpdateAttendanceApprovalDetails,
|
|
182
|
+
UpdateAttendanceChatModel_1.UpdateAttendanceRequestChat,
|
|
183
|
+
UpdateAttendanceWorkflowModel_1.UpdateAttendanceWorkFlow
|
|
192
184
|
],
|
|
193
185
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -77,11 +77,7 @@ export * from './models/StayAfterHoursApprovalModel';
|
|
|
77
77
|
export * from './models/StayAfterHoursAttachmentModel';
|
|
78
78
|
export * from './models/StayAfterHoursChatModel';
|
|
79
79
|
export * from './models/StayAfterHoursWorkflowModel';
|
|
80
|
-
export * from './models/
|
|
81
|
-
export * from './models/
|
|
82
|
-
export * from './models/
|
|
83
|
-
export * from './models/
|
|
84
|
-
export * from './models/DiplomaticClubCardWorkFlowModel';
|
|
85
|
-
export * from './models/DiplomaticClubCardChatModel';
|
|
86
|
-
export * from './models/DiplomaticTitleModel';
|
|
87
|
-
export * from './models/SubscriptionAmountModel';
|
|
80
|
+
export * from './models/UpdateAttendanceRequestModel';
|
|
81
|
+
export * from './models/UpdateAttendanceApprovalModel';
|
|
82
|
+
export * from './models/UpdateAttendanceChatModel';
|
|
83
|
+
export * from './models/UpdateAttendanceWorkflowModel';
|
package/dist/index.js
CHANGED
|
@@ -93,11 +93,7 @@ __exportStar(require("./models/StayAfterHoursApprovalModel"), exports);
|
|
|
93
93
|
__exportStar(require("./models/StayAfterHoursAttachmentModel"), exports);
|
|
94
94
|
__exportStar(require("./models/StayAfterHoursChatModel"), exports);
|
|
95
95
|
__exportStar(require("./models/StayAfterHoursWorkflowModel"), exports);
|
|
96
|
-
__exportStar(require("./models/
|
|
97
|
-
__exportStar(require("./models/
|
|
98
|
-
__exportStar(require("./models/
|
|
99
|
-
__exportStar(require("./models/
|
|
100
|
-
__exportStar(require("./models/DiplomaticClubCardWorkFlowModel"), exports);
|
|
101
|
-
__exportStar(require("./models/DiplomaticClubCardChatModel"), exports);
|
|
102
|
-
__exportStar(require("./models/DiplomaticTitleModel"), exports);
|
|
103
|
-
__exportStar(require("./models/SubscriptionAmountModel"), exports);
|
|
96
|
+
__exportStar(require("./models/UpdateAttendanceRequestModel"), exports);
|
|
97
|
+
__exportStar(require("./models/UpdateAttendanceApprovalModel"), exports);
|
|
98
|
+
__exportStar(require("./models/UpdateAttendanceChatModel"), exports);
|
|
99
|
+
__exportStar(require("./models/UpdateAttendanceWorkflowModel"), exports);
|
|
@@ -19,6 +19,7 @@ var AttendanceStatus;
|
|
|
19
19
|
AttendanceStatus["ABSENT"] = "ABSENT";
|
|
20
20
|
AttendanceStatus["LEAVE"] = "LEAVE";
|
|
21
21
|
AttendanceStatus["HALF_DAY"] = "HALF_DAY";
|
|
22
|
+
AttendanceStatus["REGULARISED"] = "REGULARISED";
|
|
22
23
|
})(AttendanceStatus || (exports.AttendanceStatus = AttendanceStatus = {}));
|
|
23
24
|
let AttendanceDetails = class AttendanceDetails extends BaseModel_1.BaseModel {
|
|
24
25
|
constructor(user_id, shift_id, attendance_date, check_in_time, check_out_time, first_half_status, second_half_status, attendance_status, excess_hours) {
|
|
@@ -44,7 +45,7 @@ __decorate([
|
|
|
44
45
|
__metadata("design:type", Number)
|
|
45
46
|
], AttendanceDetails.prototype, "shift_id", void 0);
|
|
46
47
|
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
48
49
|
__metadata("design:type", String)
|
|
49
50
|
], AttendanceDetails.prototype, "attendance_date", void 0);
|
|
50
51
|
__decorate([
|
|
@@ -9,28 +9,26 @@ 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.HelpContentMappedCategories = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let
|
|
15
|
+
let HelpContentMappedCategories = class HelpContentMappedCategories extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(help_content_category_Id, help_content_Id) {
|
|
17
|
+
super();
|
|
18
|
+
this.help_content_category_Id = help_content_category_Id,
|
|
19
|
+
this.help_content_Id = help_content_Id;
|
|
20
|
+
}
|
|
16
21
|
};
|
|
17
|
-
exports.
|
|
22
|
+
exports.HelpContentMappedCategories = HelpContentMappedCategories;
|
|
18
23
|
__decorate([
|
|
19
|
-
(0, typeorm_1.Column)({
|
|
24
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
20
25
|
__metadata("design:type", Number)
|
|
21
|
-
],
|
|
26
|
+
], HelpContentMappedCategories.prototype, "help_content_category_Id", void 0);
|
|
22
27
|
__decorate([
|
|
23
|
-
(0, typeorm_1.Column)({
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
24
29
|
__metadata("design:type", Number)
|
|
25
|
-
],
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, typeorm_1.
|
|
28
|
-
__metadata("design:
|
|
29
|
-
],
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
32
|
-
__metadata("design:type", Object)
|
|
33
|
-
], DiplomaticClubCardChat.prototype, "message_type", void 0);
|
|
34
|
-
exports.DiplomaticClubCardChat = DiplomaticClubCardChat = __decorate([
|
|
35
|
-
(0, typeorm_1.Entity)({ name: 'diplomatic_club_card_chats' })
|
|
36
|
-
], DiplomaticClubCardChat);
|
|
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);
|
|
@@ -0,0 +1,34 @@
|
|
|
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.HelpContentMappedTags = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let HelpContentMappedTags = class HelpContentMappedTags extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(help_content_tag_Id, help_content_Id) {
|
|
17
|
+
super();
|
|
18
|
+
this.help_content_tag_Id = help_content_tag_Id,
|
|
19
|
+
this.help_content_Id = help_content_Id;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.HelpContentMappedTags = HelpContentMappedTags;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], HelpContentMappedTags.prototype, "help_content_tag_Id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
29
|
+
__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);
|
|
@@ -0,0 +1,29 @@
|
|
|
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);
|
|
@@ -2,13 +2,16 @@ import { BaseModel } from './BaseModel';
|
|
|
2
2
|
export declare enum ApprovalStatus {
|
|
3
3
|
PENDING = "Pending",
|
|
4
4
|
APPROVED = "Approved",
|
|
5
|
-
REJECTED = "Rejected"
|
|
5
|
+
REJECTED = "Rejected",
|
|
6
|
+
IN_PROGRESS = "In Progress"
|
|
6
7
|
}
|
|
7
8
|
export declare class LeaveApprovalDetails extends BaseModel {
|
|
8
9
|
leave_request_id: number;
|
|
9
10
|
level: number;
|
|
10
11
|
approver_user_id: number;
|
|
11
12
|
approver_role_id: number;
|
|
13
|
+
delegate_user_id: number | null;
|
|
14
|
+
approved_by: number | null;
|
|
12
15
|
department_id: number;
|
|
13
16
|
section_id: number;
|
|
14
17
|
comment: string;
|
|
@@ -17,6 +17,7 @@ var ApprovalStatus;
|
|
|
17
17
|
ApprovalStatus["PENDING"] = "Pending";
|
|
18
18
|
ApprovalStatus["APPROVED"] = "Approved";
|
|
19
19
|
ApprovalStatus["REJECTED"] = "Rejected";
|
|
20
|
+
ApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
20
21
|
})(ApprovalStatus || (exports.ApprovalStatus = ApprovalStatus = {}));
|
|
21
22
|
//This model is used to store the store the leave apporval details of the user for the leave request
|
|
22
23
|
let LeaveApprovalDetails = class LeaveApprovalDetails extends BaseModel_1.BaseModel {
|
|
@@ -49,6 +50,14 @@ __decorate([
|
|
|
49
50
|
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
50
51
|
__metadata("design:type", Number)
|
|
51
52
|
], LeaveApprovalDetails.prototype, "approver_role_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], LeaveApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], LeaveApprovalDetails.prototype, "approved_by", void 0);
|
|
52
61
|
__decorate([
|
|
53
62
|
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
54
63
|
__metadata("design:type", Number)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum UpdateAttendanceApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class UpdateAttendanceApprovalDetails extends BaseModel {
|
|
9
|
+
request_id: number;
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
sub_service_id: number | null;
|
|
12
|
+
level: number;
|
|
13
|
+
approver_role_id: number;
|
|
14
|
+
department_id: number | null;
|
|
15
|
+
section_id: number | null;
|
|
16
|
+
approver_user_id: number | null;
|
|
17
|
+
delegate_user_id: number | null;
|
|
18
|
+
approved_by: number | null;
|
|
19
|
+
comment: string;
|
|
20
|
+
approval_status: UpdateAttendanceApprovalStatus;
|
|
21
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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.UpdateAttendanceApprovalDetails = exports.UpdateAttendanceApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var UpdateAttendanceApprovalStatus;
|
|
16
|
+
(function (UpdateAttendanceApprovalStatus) {
|
|
17
|
+
UpdateAttendanceApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
UpdateAttendanceApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
UpdateAttendanceApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
UpdateAttendanceApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(UpdateAttendanceApprovalStatus || (exports.UpdateAttendanceApprovalStatus = UpdateAttendanceApprovalStatus = {}));
|
|
22
|
+
let UpdateAttendanceApprovalDetails = class UpdateAttendanceApprovalDetails extends BaseModel_1.BaseModel {
|
|
23
|
+
};
|
|
24
|
+
exports.UpdateAttendanceApprovalDetails = UpdateAttendanceApprovalDetails;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], UpdateAttendanceApprovalDetails.prototype, "request_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], UpdateAttendanceApprovalDetails.prototype, "service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], UpdateAttendanceApprovalDetails.prototype, "sub_service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], UpdateAttendanceApprovalDetails.prototype, "level", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], UpdateAttendanceApprovalDetails.prototype, "approver_role_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], UpdateAttendanceApprovalDetails.prototype, "department_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], UpdateAttendanceApprovalDetails.prototype, "section_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], UpdateAttendanceApprovalDetails.prototype, "approver_user_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], UpdateAttendanceApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], UpdateAttendanceApprovalDetails.prototype, "approved_by", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true, default: '' }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], UpdateAttendanceApprovalDetails.prototype, "comment", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: UpdateAttendanceApprovalStatus, default: UpdateAttendanceApprovalStatus.PENDING, nullable: false }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], UpdateAttendanceApprovalDetails.prototype, "approval_status", void 0);
|
|
73
|
+
exports.UpdateAttendanceApprovalDetails = UpdateAttendanceApprovalDetails = __decorate([
|
|
74
|
+
(0, typeorm_1.Entity)({ name: 'update_attendance_approvals' })
|
|
75
|
+
], UpdateAttendanceApprovalDetails);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum UpdateAttendanceMessageType {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
LINK = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare class UpdateAttendanceRequestChat extends BaseModel {
|
|
10
|
+
request_id: number;
|
|
11
|
+
service_id: number | null;
|
|
12
|
+
sub_service_id: number | null;
|
|
13
|
+
user_id: number;
|
|
14
|
+
message: string;
|
|
15
|
+
messageType: UpdateAttendanceMessageType;
|
|
16
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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.UpdateAttendanceRequestChat = exports.UpdateAttendanceMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var UpdateAttendanceMessageType;
|
|
16
|
+
(function (UpdateAttendanceMessageType) {
|
|
17
|
+
UpdateAttendanceMessageType["TEXT"] = "text";
|
|
18
|
+
UpdateAttendanceMessageType["IMAGE"] = "image";
|
|
19
|
+
UpdateAttendanceMessageType["VIDEO"] = "video";
|
|
20
|
+
UpdateAttendanceMessageType["FILE"] = "file";
|
|
21
|
+
UpdateAttendanceMessageType["LINK"] = "link";
|
|
22
|
+
})(UpdateAttendanceMessageType || (exports.UpdateAttendanceMessageType = UpdateAttendanceMessageType = {}));
|
|
23
|
+
let UpdateAttendanceRequestChat = class UpdateAttendanceRequestChat extends BaseModel_1.BaseModel {
|
|
24
|
+
};
|
|
25
|
+
exports.UpdateAttendanceRequestChat = UpdateAttendanceRequestChat;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], UpdateAttendanceRequestChat.prototype, "request_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], UpdateAttendanceRequestChat.prototype, "service_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], UpdateAttendanceRequestChat.prototype, "sub_service_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], UpdateAttendanceRequestChat.prototype, "user_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], UpdateAttendanceRequestChat.prototype, "message", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: UpdateAttendanceMessageType, default: UpdateAttendanceMessageType.TEXT, nullable: false }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], UpdateAttendanceRequestChat.prototype, "messageType", void 0);
|
|
50
|
+
exports.UpdateAttendanceRequestChat = UpdateAttendanceRequestChat = __decorate([
|
|
51
|
+
(0, typeorm_1.Entity)({ name: 'update_attendance_chats' })
|
|
52
|
+
], UpdateAttendanceRequestChat);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum UpdateAttendenceStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
ASSIGNED = "Assigned",
|
|
5
|
+
IN_PROGRESS = "In Progress",
|
|
6
|
+
APPROVED = "Approved",
|
|
7
|
+
REJECTED = "Rejected"
|
|
8
|
+
}
|
|
9
|
+
export declare enum UpdateAttendenceReason {
|
|
10
|
+
MEETING = "Meeting",
|
|
11
|
+
EARLY_CHECKOUT = "Early Checkout",
|
|
12
|
+
SPECIAL_REASON = "Special Reason"
|
|
13
|
+
}
|
|
14
|
+
export declare class UpdateAttendanceRequests extends BaseModel {
|
|
15
|
+
req_user_department_id: number | null;
|
|
16
|
+
req_user_section_id: number | null;
|
|
17
|
+
service_id: number | null;
|
|
18
|
+
sub_service_id: number | null;
|
|
19
|
+
user_id: number;
|
|
20
|
+
from_date: string | null;
|
|
21
|
+
to_date: string | null;
|
|
22
|
+
from_time: string | null;
|
|
23
|
+
to_time: string | null;
|
|
24
|
+
reason: UpdateAttendenceReason;
|
|
25
|
+
comments: string | null;
|
|
26
|
+
status: UpdateAttendenceStatus;
|
|
27
|
+
workflow_execution_id: string | null;
|
|
28
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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.UpdateAttendanceRequests = exports.UpdateAttendenceReason = exports.UpdateAttendenceStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var UpdateAttendenceStatus;
|
|
16
|
+
(function (UpdateAttendenceStatus) {
|
|
17
|
+
UpdateAttendenceStatus["PENDING"] = "Pending";
|
|
18
|
+
UpdateAttendenceStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
UpdateAttendenceStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
UpdateAttendenceStatus["APPROVED"] = "Approved";
|
|
21
|
+
UpdateAttendenceStatus["REJECTED"] = "Rejected";
|
|
22
|
+
})(UpdateAttendenceStatus || (exports.UpdateAttendenceStatus = UpdateAttendenceStatus = {}));
|
|
23
|
+
var UpdateAttendenceReason;
|
|
24
|
+
(function (UpdateAttendenceReason) {
|
|
25
|
+
UpdateAttendenceReason["MEETING"] = "Meeting";
|
|
26
|
+
UpdateAttendenceReason["EARLY_CHECKOUT"] = "Early Checkout";
|
|
27
|
+
UpdateAttendenceReason["SPECIAL_REASON"] = "Special Reason";
|
|
28
|
+
})(UpdateAttendenceReason || (exports.UpdateAttendenceReason = UpdateAttendenceReason = {}));
|
|
29
|
+
let UpdateAttendanceRequests = class UpdateAttendanceRequests extends BaseModel_1.BaseModel {
|
|
30
|
+
};
|
|
31
|
+
exports.UpdateAttendanceRequests = UpdateAttendanceRequests;
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], UpdateAttendanceRequests.prototype, "req_user_department_id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
38
|
+
__metadata("design:type", Object)
|
|
39
|
+
], UpdateAttendanceRequests.prototype, "req_user_section_id", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
42
|
+
__metadata("design:type", Object)
|
|
43
|
+
], UpdateAttendanceRequests.prototype, "service_id", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], UpdateAttendanceRequests.prototype, "sub_service_id", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], UpdateAttendanceRequests.prototype, "user_id", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
|
+
], UpdateAttendanceRequests.prototype, "from_date", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], UpdateAttendanceRequests.prototype, "to_date", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: true }),
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], UpdateAttendanceRequests.prototype, "from_time", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: true }),
|
|
66
|
+
__metadata("design:type", Object)
|
|
67
|
+
], UpdateAttendanceRequests.prototype, "to_time", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: UpdateAttendenceReason, nullable: false }),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], UpdateAttendanceRequests.prototype, "reason", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
74
|
+
__metadata("design:type", Object)
|
|
75
|
+
], UpdateAttendanceRequests.prototype, "comments", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: UpdateAttendenceStatus, default: UpdateAttendenceStatus.PENDING, nullable: false }),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], UpdateAttendanceRequests.prototype, "status", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
82
|
+
__metadata("design:type", Object)
|
|
83
|
+
], UpdateAttendanceRequests.prototype, "workflow_execution_id", void 0);
|
|
84
|
+
exports.UpdateAttendanceRequests = UpdateAttendanceRequests = __decorate([
|
|
85
|
+
(0, typeorm_1.Entity)({ name: 'update_attendence_requests' })
|
|
86
|
+
], UpdateAttendanceRequests);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum UpdateAttendanceWorkFlowStatus {
|
|
3
|
+
COMPLETED = "Completed",
|
|
4
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
+
PENDING = "Pending"
|
|
6
|
+
}
|
|
7
|
+
export declare class UpdateAttendanceWorkFlow extends BaseModel {
|
|
8
|
+
request_id: number;
|
|
9
|
+
service_id: number | null;
|
|
10
|
+
sub_service_id: number | null;
|
|
11
|
+
content: string;
|
|
12
|
+
status: UpdateAttendanceWorkFlowStatus;
|
|
13
|
+
}
|