@platform-modules/foreign-ministry 1.1.26 → 1.1.28
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 -28
- package/dist/index.d.ts +4 -14
- package/dist/index.js +4 -14
- package/dist/models/AttendanceModel.d.ts +2 -1
- package/dist/models/AttendanceModel.js +2 -1
- package/dist/models/EarlyCheckoutChatModel.d.ts +4 -0
- package/dist/models/EarlyCheckoutChatModel.js +28 -2
- 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/StayAfterHoursChatModel.d.ts +4 -0
- package/dist/models/StayAfterHoursChatModel.js +28 -2
- 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 -28
- package/src/index.ts +4 -14
- package/src/models/AttendanceModel.ts +2 -1
- package/src/models/EarlyCheckoutChatModel.ts +34 -1
- package/src/models/LeaveApprovalsModel.ts +8 -1
- package/src/models/StayAfterHoursChatModel.ts +34 -1
- package/src/models/UpdateAttendanceApprovalModel.ts +50 -0
- package/src/models/UpdateAttendanceChatModel.ts +35 -0
- package/src/models/UpdateAttendanceRequestModel.ts +63 -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/PassportRequestApprovalModel.d.ts +0 -22
- package/dist/models/PassportRequestApprovalModel.js +0 -91
- package/dist/models/PassportRequestAttachmentModel.d.ts +0 -10
- package/dist/models/PassportRequestAttachmentModel.js +0 -54
- package/dist/models/PassportRequestChatModel.d.ts +0 -8
- package/dist/models/PassportRequestChatModel.js +0 -44
- package/dist/models/PassportRequestDependentModel.d.ts +0 -20
- package/dist/models/PassportRequestDependentModel.js +0 -85
- package/dist/models/PassportRequestModel.d.ts +0 -40
- package/dist/models/PassportRequestModel.js +0 -128
- package/dist/models/PassportRequestWorkFlowModel.d.ts +0 -15
- package/dist/models/PassportRequestWorkFlowModel.js +0 -60
- package/dist/models/SubscriptionAmountModel.d.ts +0 -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/PassportRequestApprovalModel.ts +0 -79
- package/src/models/PassportRequestAttachmentModel.ts +0 -42
- package/src/models/PassportRequestChatModel.ts +0 -27
- package/src/models/PassportRequestDependentModel.ts +0 -73
- package/src/models/PassportRequestModel.ts +0 -116
- package/src/models/PassportRequestWorkFlowModel.ts +0 -48
- 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,26 +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
|
-
const PassportRequestModel_1 = require("./models/PassportRequestModel");
|
|
90
|
-
const PassportRequestChatModel_1 = require("./models/PassportRequestChatModel");
|
|
91
|
-
const PassportRequestAttachmentModel_1 = require("./models/PassportRequestAttachmentModel");
|
|
92
|
-
const PassportRequestWorkFlowModel_1 = require("./models/PassportRequestWorkFlowModel");
|
|
93
|
-
const PassportRequestApprovalModel_1 = require("./models/PassportRequestApprovalModel");
|
|
94
|
-
const PassportRequestDependentModel_1 = require("./models/PassportRequestDependentModel");
|
|
95
81
|
const WorkflowTask_1 = require("./models/WorkflowTask");
|
|
96
82
|
const WorkflowTaskNames_1 = require("./models/WorkflowTaskNames");
|
|
97
83
|
const WorkflowDefinitions_1 = require("./models/WorkflowDefinitions");
|
|
98
84
|
const WorkflowHierarchy_1 = require("./models/WorkflowHierarchy");
|
|
99
85
|
const importantLinksModel_1 = require("./models/importantLinksModel");
|
|
100
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");
|
|
101
91
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
102
92
|
type: 'postgres',
|
|
103
93
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -187,19 +177,9 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
187
177
|
StayAfterHoursAttachmentModel_1.StayAfterHoursRequestAttachment,
|
|
188
178
|
StayAfterHoursChatModel_1.StayAfterHoursRequestChat,
|
|
189
179
|
StayAfterHoursWorkflowModel_1.StayAfterHoursWorkFlow,
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
DiplomaticClubCardWorkFlowModel_1.DiplomaticClubCardWorkFlow,
|
|
195
|
-
DiplomaticClubCardChatModel_1.DiplomaticClubCardChat,
|
|
196
|
-
DiplomaticTitleModel_1.DiplomaticTitles,
|
|
197
|
-
SubscriptionAmountModel_1.SubscriptionAmounts,
|
|
198
|
-
PassportRequestModel_1.PassportRequests,
|
|
199
|
-
PassportRequestChatModel_1.PassportRequestChat,
|
|
200
|
-
PassportRequestAttachmentModel_1.PassportRequestAttachments,
|
|
201
|
-
PassportRequestWorkFlowModel_1.PassportRequestWorkFlow,
|
|
202
|
-
PassportRequestApprovalModel_1.PassportRequestApprovals,
|
|
203
|
-
PassportRequestDependentModel_1.PassportRequestDependents
|
|
180
|
+
UpdateAttendanceRequestModel_1.UpdateAttendanceRequests,
|
|
181
|
+
UpdateAttendanceApprovalModel_1.UpdateAttendanceApprovalDetails,
|
|
182
|
+
UpdateAttendanceChatModel_1.UpdateAttendanceRequestChat,
|
|
183
|
+
UpdateAttendanceWorkflowModel_1.UpdateAttendanceWorkFlow
|
|
204
184
|
],
|
|
205
185
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -77,17 +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';
|
|
88
|
-
export * from './models/PassportRequestModel';
|
|
89
|
-
export * from './models/PassportRequestChatModel';
|
|
90
|
-
export * from './models/PassportRequestAttachmentModel';
|
|
91
|
-
export * from './models/PassportRequestWorkFlowModel';
|
|
92
|
-
export * from './models/PassportRequestApprovalModel';
|
|
93
|
-
export * from './models/PassportRequestDependentModel';
|
|
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,17 +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);
|
|
104
|
-
__exportStar(require("./models/PassportRequestModel"), exports);
|
|
105
|
-
__exportStar(require("./models/PassportRequestChatModel"), exports);
|
|
106
|
-
__exportStar(require("./models/PassportRequestAttachmentModel"), exports);
|
|
107
|
-
__exportStar(require("./models/PassportRequestWorkFlowModel"), exports);
|
|
108
|
-
__exportStar(require("./models/PassportRequestApprovalModel"), exports);
|
|
109
|
-
__exportStar(require("./models/PassportRequestDependentModel"), 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([
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
|
+
import { EarlyCheckoutApprovalStatus } from './EarlyCheckoutApprovalModel';
|
|
2
3
|
export declare enum EarlyCheckoutMessageType {
|
|
3
4
|
TEXT = "text",
|
|
4
5
|
IMAGE = "image",
|
|
@@ -11,6 +12,9 @@ export declare class EarlyCheckoutRequestChat extends BaseModel {
|
|
|
11
12
|
service_id: number | null;
|
|
12
13
|
sub_service_id: number | null;
|
|
13
14
|
user_id: number;
|
|
15
|
+
role_id: number;
|
|
14
16
|
message: string;
|
|
15
17
|
messageType: EarlyCheckoutMessageType;
|
|
18
|
+
status: EarlyCheckoutApprovalStatus;
|
|
19
|
+
constructor(request_id: number, user_id: number, role_id: number, message: string, service_id?: number, sub_service_id?: number, messageType?: EarlyCheckoutMessageType, status?: EarlyCheckoutApprovalStatus);
|
|
16
20
|
}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.EarlyCheckoutRequestChat = exports.EarlyCheckoutMessageType = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const EarlyCheckoutApprovalModel_1 = require("./EarlyCheckoutApprovalModel");
|
|
15
16
|
var EarlyCheckoutMessageType;
|
|
16
17
|
(function (EarlyCheckoutMessageType) {
|
|
17
18
|
EarlyCheckoutMessageType["TEXT"] = "text";
|
|
@@ -21,6 +22,17 @@ var EarlyCheckoutMessageType;
|
|
|
21
22
|
EarlyCheckoutMessageType["LINK"] = "link";
|
|
22
23
|
})(EarlyCheckoutMessageType || (exports.EarlyCheckoutMessageType = EarlyCheckoutMessageType = {}));
|
|
23
24
|
let EarlyCheckoutRequestChat = class EarlyCheckoutRequestChat extends BaseModel_1.BaseModel {
|
|
25
|
+
constructor(request_id, user_id, role_id, message, service_id, sub_service_id, messageType, status) {
|
|
26
|
+
super();
|
|
27
|
+
this.request_id = request_id;
|
|
28
|
+
this.service_id = service_id || null;
|
|
29
|
+
this.sub_service_id = sub_service_id || null;
|
|
30
|
+
this.user_id = user_id;
|
|
31
|
+
this.role_id = role_id;
|
|
32
|
+
this.message = message;
|
|
33
|
+
this.messageType = messageType || EarlyCheckoutMessageType.TEXT;
|
|
34
|
+
this.status = status || EarlyCheckoutApprovalModel_1.EarlyCheckoutApprovalStatus.PENDING;
|
|
35
|
+
}
|
|
24
36
|
};
|
|
25
37
|
exports.EarlyCheckoutRequestChat = EarlyCheckoutRequestChat;
|
|
26
38
|
__decorate([
|
|
@@ -39,14 +51,28 @@ __decorate([
|
|
|
39
51
|
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
40
52
|
__metadata("design:type", Number)
|
|
41
53
|
], EarlyCheckoutRequestChat.prototype, "user_id", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], EarlyCheckoutRequestChat.prototype, "role_id", void 0);
|
|
42
58
|
__decorate([
|
|
43
59
|
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
44
60
|
__metadata("design:type", String)
|
|
45
61
|
], EarlyCheckoutRequestChat.prototype, "message", void 0);
|
|
46
62
|
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({
|
|
63
|
+
(0, typeorm_1.Column)({
|
|
64
|
+
type: 'enum',
|
|
65
|
+
enum: EarlyCheckoutMessageType,
|
|
66
|
+
default: EarlyCheckoutMessageType.TEXT,
|
|
67
|
+
nullable: false
|
|
68
|
+
}),
|
|
48
69
|
__metadata("design:type", String)
|
|
49
70
|
], EarlyCheckoutRequestChat.prototype, "messageType", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: EarlyCheckoutApprovalModel_1.EarlyCheckoutApprovalStatus, default: EarlyCheckoutApprovalModel_1.EarlyCheckoutApprovalStatus.PENDING, nullable: false }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], EarlyCheckoutRequestChat.prototype, "status", void 0);
|
|
50
75
|
exports.EarlyCheckoutRequestChat = EarlyCheckoutRequestChat = __decorate([
|
|
51
|
-
(0, typeorm_1.Entity)({ name: 'early_checkout_chats' })
|
|
76
|
+
(0, typeorm_1.Entity)({ name: 'early_checkout_chats' }),
|
|
77
|
+
__metadata("design:paramtypes", [Number, Number, Number, String, Number, Number, String, String])
|
|
52
78
|
], EarlyCheckoutRequestChat);
|
|
@@ -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)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
|
+
import { StayAfterHoursApprovalStatus } from './StayAfterHoursApprovalModel';
|
|
2
3
|
export declare enum StayAfterHoursMessageType {
|
|
3
4
|
TEXT = "text",
|
|
4
5
|
IMAGE = "image",
|
|
@@ -11,6 +12,9 @@ export declare class StayAfterHoursRequestChat extends BaseModel {
|
|
|
11
12
|
service_id: number | null;
|
|
12
13
|
sub_service_id: number | null;
|
|
13
14
|
user_id: number;
|
|
15
|
+
role_id: number;
|
|
14
16
|
message: string;
|
|
15
17
|
messageType: StayAfterHoursMessageType;
|
|
18
|
+
status: StayAfterHoursApprovalStatus;
|
|
19
|
+
constructor(request_id: number, user_id: number, role_id: number, message: string, service_id?: number, sub_service_id?: number, messageType?: StayAfterHoursMessageType, status?: StayAfterHoursApprovalStatus);
|
|
16
20
|
}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.StayAfterHoursRequestChat = exports.StayAfterHoursMessageType = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const StayAfterHoursApprovalModel_1 = require("./StayAfterHoursApprovalModel");
|
|
15
16
|
var StayAfterHoursMessageType;
|
|
16
17
|
(function (StayAfterHoursMessageType) {
|
|
17
18
|
StayAfterHoursMessageType["TEXT"] = "text";
|
|
@@ -21,6 +22,17 @@ var StayAfterHoursMessageType;
|
|
|
21
22
|
StayAfterHoursMessageType["LINK"] = "link";
|
|
22
23
|
})(StayAfterHoursMessageType || (exports.StayAfterHoursMessageType = StayAfterHoursMessageType = {}));
|
|
23
24
|
let StayAfterHoursRequestChat = class StayAfterHoursRequestChat extends BaseModel_1.BaseModel {
|
|
25
|
+
constructor(request_id, user_id, role_id, message, service_id, sub_service_id, messageType, status) {
|
|
26
|
+
super();
|
|
27
|
+
this.request_id = request_id;
|
|
28
|
+
this.service_id = service_id || null;
|
|
29
|
+
this.sub_service_id = sub_service_id || null;
|
|
30
|
+
this.user_id = user_id;
|
|
31
|
+
this.role_id = role_id;
|
|
32
|
+
this.message = message;
|
|
33
|
+
this.messageType = messageType || StayAfterHoursMessageType.TEXT;
|
|
34
|
+
this.status = status || StayAfterHoursApprovalModel_1.StayAfterHoursApprovalStatus.PENDING;
|
|
35
|
+
}
|
|
24
36
|
};
|
|
25
37
|
exports.StayAfterHoursRequestChat = StayAfterHoursRequestChat;
|
|
26
38
|
__decorate([
|
|
@@ -39,14 +51,28 @@ __decorate([
|
|
|
39
51
|
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
40
52
|
__metadata("design:type", Number)
|
|
41
53
|
], StayAfterHoursRequestChat.prototype, "user_id", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], StayAfterHoursRequestChat.prototype, "role_id", void 0);
|
|
42
58
|
__decorate([
|
|
43
59
|
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
44
60
|
__metadata("design:type", String)
|
|
45
61
|
], StayAfterHoursRequestChat.prototype, "message", void 0);
|
|
46
62
|
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({
|
|
63
|
+
(0, typeorm_1.Column)({
|
|
64
|
+
type: 'enum',
|
|
65
|
+
enum: StayAfterHoursMessageType,
|
|
66
|
+
default: StayAfterHoursMessageType.TEXT,
|
|
67
|
+
nullable: false
|
|
68
|
+
}),
|
|
48
69
|
__metadata("design:type", String)
|
|
49
70
|
], StayAfterHoursRequestChat.prototype, "messageType", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: StayAfterHoursApprovalModel_1.StayAfterHoursApprovalStatus, default: StayAfterHoursApprovalModel_1.StayAfterHoursApprovalStatus.PENDING, nullable: false }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], StayAfterHoursRequestChat.prototype, "status", void 0);
|
|
50
75
|
exports.StayAfterHoursRequestChat = StayAfterHoursRequestChat = __decorate([
|
|
51
|
-
(0, typeorm_1.Entity)({ name: 'stay_after_hours_chats' })
|
|
76
|
+
(0, typeorm_1.Entity)({ name: 'stay_after_hours_chats' }),
|
|
77
|
+
__metadata("design:paramtypes", [Number, Number, Number, String, Number, Number, String, String])
|
|
52
78
|
], StayAfterHoursRequestChat);
|
|
@@ -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);
|