@platform-modules/foreign-ministry 1.1.55 → 1.1.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data-source.js +34 -18
- package/dist/index.d.ts +24 -9
- package/dist/index.js +24 -9
- package/dist/models/AttendanceModel.d.ts +2 -1
- package/dist/models/AttendanceModel.js +2 -1
- package/dist/models/CurrencyModel.d.ts +10 -0
- package/dist/models/CurrencyModel.js +53 -0
- package/dist/models/EarlyCheckoutApprovalModel.d.ts +1 -0
- package/dist/models/EarlyCheckoutApprovalModel.js +4 -0
- package/dist/models/EarlyCheckoutChatModel.d.ts +4 -0
- package/dist/models/EarlyCheckoutChatModel.js +28 -2
- package/dist/models/EarlyCheckoutWorkflowModel.d.ts +4 -0
- package/dist/models/EarlyCheckoutWorkflowModel.js +16 -0
- package/dist/models/FinancialApprovalsModel.d.ts +2 -1
- package/dist/models/FinancialApprovalsModel.js +7 -2
- package/dist/models/FinancialChatsModel.d.ts +16 -1
- package/dist/models/FinancialChatsModel.js +33 -3
- package/dist/models/FinancialRequestsModel.d.ts +1 -1
- package/dist/models/FinancialRequestsModel.js +3 -3
- package/dist/models/FinancialWorkFlowModel.d.ts +3 -1
- package/dist/models/FinancialWorkFlowModel.js +11 -2
- package/dist/models/GeneralServiceApprovalsModel.d.ts +26 -0
- package/dist/models/GeneralServiceApprovalsModel.js +109 -0
- package/dist/models/GeneralServiceAttachmentsModel.d.ts +10 -0
- package/dist/models/{DiplomaticAttachmentsModel.js → GeneralServiceAttachmentsModel.js} +18 -22
- package/dist/models/GeneralServiceChatsModel.d.ts +9 -0
- package/dist/models/{DiplomaticChatsModel.js → GeneralServiceChatsModel.js} +17 -21
- package/dist/models/GeneralServiceRequestsModel.d.ts +36 -0
- package/dist/models/GeneralServiceRequestsModel.js +137 -0
- package/dist/models/GeneralServiceWorkFlowModel.d.ts +21 -0
- package/dist/models/GeneralServiceWorkFlowModel.js +80 -0
- package/dist/models/GroupModel.d.ts +16 -0
- package/dist/models/GroupModel.js +44 -0
- package/dist/models/GroupNamesModel.d.ts +6 -0
- package/dist/models/GroupNamesModel.js +34 -0
- package/dist/models/HelpdeskCategoriesModel.d.ts +9 -0
- package/dist/models/{DiplomaticClubCardAttachmentModel.js → HelpdeskCategoriesModel.js} +27 -22
- package/dist/models/HelpdeskSubCategoriesModel.d.ts +10 -0
- package/dist/models/{PassportRequestAttachmentModel.js → HelpdeskSubCategoriesModel.js} +29 -29
- package/dist/models/IssueTypesModel.d.ts +10 -0
- package/dist/models/IssueTypesModel.js +54 -0
- package/dist/models/JobsModel.d.ts +17 -0
- package/dist/models/{DiplomaticClubCardChatModel.js → JobsModel.js} +29 -16
- package/dist/models/LeaveApprovalsModel.d.ts +4 -1
- package/dist/models/LeaveApprovalsModel.js +9 -0
- package/dist/models/LeaveAttachmentsModel.d.ts +6 -2
- package/dist/models/LeaveAttachmentsModel.js +27 -7
- package/dist/models/LeaveChatModel.d.ts +5 -1
- package/dist/models/LeaveChatModel.js +22 -2
- package/dist/models/LeaveRequestModel.d.ts +12 -1
- package/dist/models/LeaveRequestModel.js +35 -0
- package/dist/models/LeaveWorkFlowModel.d.ts +5 -1
- package/dist/models/LeaveWorkFlowModel.js +22 -2
- package/dist/models/MounringLeaveRelationModel.d.ts +2 -1
- package/dist/models/MounringLeaveRelationModel.js +7 -2
- package/dist/models/ReimbursementRequestsModel.d.ts +2 -1
- package/dist/models/ReimbursementRequestsModel.js +9 -4
- package/dist/models/RoutingGroupsModel.d.ts +13 -0
- package/dist/models/RoutingGroupsModel.js +67 -0
- package/dist/models/StayAfterHoursApprovalModel.d.ts +1 -0
- package/dist/models/StayAfterHoursApprovalModel.js +4 -0
- package/dist/models/StayAfterHoursChatModel.d.ts +4 -0
- package/dist/models/StayAfterHoursChatModel.js +28 -2
- package/dist/models/StayAfterHoursWorkflowModel.d.ts +4 -0
- package/dist/models/StayAfterHoursWorkflowModel.js +16 -0
- package/dist/models/TelephoneDirectoryModel.d.ts +21 -0
- package/dist/models/TelephoneDirectoryModel.js +108 -0
- package/dist/models/TransferMissionApprovalModel.d.ts +21 -0
- package/dist/models/TransferMissionApprovalModel.js +75 -0
- package/dist/models/TransferMissionAttachmentModel.d.ts +11 -0
- package/dist/models/TransferMissionAttachmentModel.js +52 -0
- package/dist/models/TransferMissionChatModel.d.ts +19 -0
- package/dist/models/TransferMissionChatModel.js +78 -0
- package/dist/models/TransferMissionRequestModel.d.ts +36 -0
- package/dist/models/TransferMissionRequestModel.js +132 -0
- package/dist/models/TransferMissionWorkflowModel.d.ts +17 -0
- package/dist/models/TransferMissionWorkflowModel.js +62 -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/WorkScheduleModel.d.ts +19 -0
- package/dist/models/WorkScheduleModel.js +60 -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/package.json +1 -1
- package/src/data-source.ts +45 -30
- package/src/index.ts +24 -9
- package/src/models/AttendanceModel.ts +2 -1
- package/src/models/CurrencyModel.ts +38 -0
- package/src/models/EarlyCheckoutApprovalModel.ts +3 -0
- package/src/models/EarlyCheckoutChatModel.ts +34 -1
- package/src/models/EarlyCheckoutWorkflowModel.ts +12 -0
- package/src/models/FinancialApprovalsModel.ts +6 -1
- package/src/models/FinancialChatsModel.ts +27 -1
- package/src/models/FinancialRequestsModel.ts +2 -2
- package/src/models/FinancialWorkFlowModel.ts +9 -1
- package/src/models/GeneralServiceApprovalsModel.ts +95 -0
- package/src/models/GeneralServiceAttachmentsModel.ts +43 -0
- package/src/models/GeneralServiceChatsModel.ts +39 -0
- package/src/models/GeneralServiceRequestsModel.ts +113 -0
- package/src/models/GeneralServiceWorkFlowModel.ts +78 -0
- package/src/models/GroupModel.ts +30 -0
- package/src/models/GroupNamesModel.ts +22 -0
- package/src/models/HelpdeskCategoriesModel.ts +35 -0
- package/src/models/HelpdeskSubCategoriesModel.ts +40 -0
- package/src/models/IssueTypesModel.ts +47 -0
- package/src/models/JobsModel.ts +37 -0
- package/src/models/LeaveApprovalsModel.ts +8 -1
- package/src/models/LeaveAttachmentsModel.ts +21 -5
- package/src/models/LeaveChatModel.ts +17 -1
- package/src/models/LeaveRequestModel.ts +29 -1
- package/src/models/LeaveWorkFlowModel.ts +17 -1
- package/src/models/MounringLeaveRelationModel.ts +5 -1
- package/src/models/ReimbursementRequestsModel.ts +8 -6
- package/src/models/RoutingGroupsModel.ts +64 -0
- package/src/models/StayAfterHoursApprovalModel.ts +3 -0
- package/src/models/StayAfterHoursChatModel.ts +34 -1
- package/src/models/StayAfterHoursWorkflowModel.ts +12 -0
- package/src/models/TelephoneDirectoryModel.ts +84 -0
- package/src/models/TransferMissionApprovalModel.ts +49 -0
- package/src/models/TransferMissionAttachmentModel.ts +31 -0
- package/src/models/TransferMissionChatModel.ts +66 -0
- package/src/models/TransferMissionRequestModel.ts +94 -0
- package/src/models/TransferMissionWorkflowModel.ts +39 -0
- 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/WorkScheduleModel.ts +47 -0
- package/src/models/WorkflowTask.ts +31 -4
- package/src/models/WorkflowTaskNames.ts +27 -8
- package/dist/models/DiplomaticApprovalsModel.d.ts +0 -25
- package/dist/models/DiplomaticApprovalsModel.js +0 -95
- package/dist/models/DiplomaticAttachmentsModel.d.ts +0 -12
- package/dist/models/DiplomaticChatsModel.d.ts +0 -11
- 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/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/DiplomaticRequestsModel.d.ts +0 -43
- package/dist/models/DiplomaticRequestsModel.js +0 -142
- package/dist/models/DiplomaticServiceDetailsModel.d.ts +0 -20
- package/dist/models/DiplomaticServiceDetailsModel.js +0 -65
- package/dist/models/DiplomaticSettingsModel.d.ts +0 -11
- package/dist/models/DiplomaticSettingsModel.js +0 -59
- package/dist/models/DiplomaticTitleModel.d.ts +0 -12
- package/dist/models/DiplomaticTitleModel.js +0 -45
- package/dist/models/DiplomaticWorkFlowModel.d.ts +0 -21
- package/dist/models/DiplomaticWorkFlowModel.js +0 -78
- 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/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 -35
- package/dist/models/SubscriptionAmountModel.js +0 -74
- package/src/models/DiplomaticApprovalsModel.ts +0 -78
- package/src/models/DiplomaticAttachmentsModel.ts +0 -45
- package/src/models/DiplomaticChatsModel.ts +0 -41
- package/src/models/DiplomaticRequestsModel.ts +0 -121
- package/src/models/DiplomaticServiceDetailsModel.ts +0 -51
- package/src/models/DiplomaticSettingsModel.ts +0 -45
- package/src/models/DiplomaticTitleModel.ts +0 -27
- package/src/models/DiplomaticWorkFlowModel.ts +0 -62
- package/src/models/SubscriptionAmountModel.ts +0 -55
package/dist/data-source.js
CHANGED
|
@@ -78,21 +78,29 @@ 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 DiplomaticRequestsModel_1 = require("./models/DiplomaticRequestsModel");
|
|
82
|
-
const DiplomaticServiceDetailsModel_1 = require("./models/DiplomaticServiceDetailsModel");
|
|
83
|
-
const DiplomaticChatsModel_1 = require("./models/DiplomaticChatsModel");
|
|
84
|
-
const DiplomaticApprovalsModel_1 = require("./models/DiplomaticApprovalsModel");
|
|
85
|
-
const DiplomaticWorkFlowModel_1 = require("./models/DiplomaticWorkFlowModel");
|
|
86
|
-
const DiplomaticAttachmentsModel_1 = require("./models/DiplomaticAttachmentsModel");
|
|
87
|
-
const DiplomaticSettingsModel_1 = require("./models/DiplomaticSettingsModel");
|
|
88
|
-
const DiplomaticTitleModel_1 = require("./models/DiplomaticTitleModel");
|
|
89
|
-
const SubscriptionAmountModel_1 = require("./models/SubscriptionAmountModel");
|
|
90
81
|
const WorkflowTask_1 = require("./models/WorkflowTask");
|
|
91
82
|
const WorkflowTaskNames_1 = require("./models/WorkflowTaskNames");
|
|
92
83
|
const WorkflowDefinitions_1 = require("./models/WorkflowDefinitions");
|
|
93
84
|
const WorkflowHierarchy_1 = require("./models/WorkflowHierarchy");
|
|
94
85
|
const importantLinksModel_1 = require("./models/importantLinksModel");
|
|
95
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");
|
|
91
|
+
const HelpdeskCategoriesModel_1 = require("./models/HelpdeskCategoriesModel");
|
|
92
|
+
const HelpdeskSubCategoriesModel_1 = require("./models/HelpdeskSubCategoriesModel");
|
|
93
|
+
const CurrencyModel_1 = require("./models/CurrencyModel");
|
|
94
|
+
const TransferMissionRequestModel_1 = require("./models/TransferMissionRequestModel");
|
|
95
|
+
const TransferMissionApprovalModel_1 = require("./models/TransferMissionApprovalModel");
|
|
96
|
+
const TransferMissionAttachmentModel_1 = require("./models/TransferMissionAttachmentModel");
|
|
97
|
+
const TransferMissionChatModel_1 = require("./models/TransferMissionChatModel");
|
|
98
|
+
const TransferMissionWorkflowModel_1 = require("./models/TransferMissionWorkflowModel");
|
|
99
|
+
const GroupNamesModel_1 = require("./models/GroupNamesModel");
|
|
100
|
+
const GroupModel_1 = require("./models/GroupModel");
|
|
101
|
+
const WorkScheduleModel_1 = require("./models/WorkScheduleModel");
|
|
102
|
+
const JobsModel_1 = require("./models/JobsModel");
|
|
103
|
+
const TelephoneDirectoryModel_1 = require("./models/TelephoneDirectoryModel");
|
|
96
104
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
97
105
|
type: 'postgres',
|
|
98
106
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -172,6 +180,9 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
172
180
|
DelegateSettingsModel_1.DelegateSettings,
|
|
173
181
|
AllowanceTypesModel_1.AllowanceTypes,
|
|
174
182
|
BankNamesModel_1.BankNames,
|
|
183
|
+
CurrencyModel_1.Currency,
|
|
184
|
+
HelpdeskCategoriesModel_1.HelpdeskCategories,
|
|
185
|
+
HelpdeskSubCategoriesModel_1.HelpdeskSubCategories,
|
|
175
186
|
EarlyCheckoutRequestModel_1.EarlyCheckoutRequests,
|
|
176
187
|
EarlyCheckoutApprovalModel_1.EarlyCheckoutApprovalDetails,
|
|
177
188
|
EarlyCheckoutAttachmentModel_1.EarlyCheckoutRequestAttachment,
|
|
@@ -182,14 +193,19 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
182
193
|
StayAfterHoursAttachmentModel_1.StayAfterHoursRequestAttachment,
|
|
183
194
|
StayAfterHoursChatModel_1.StayAfterHoursRequestChat,
|
|
184
195
|
StayAfterHoursWorkflowModel_1.StayAfterHoursWorkFlow,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
196
|
+
UpdateAttendanceRequestModel_1.UpdateAttendanceRequests,
|
|
197
|
+
UpdateAttendanceApprovalModel_1.UpdateAttendanceApprovalDetails,
|
|
198
|
+
UpdateAttendanceChatModel_1.UpdateAttendanceRequestChat,
|
|
199
|
+
UpdateAttendanceWorkflowModel_1.UpdateAttendanceWorkFlow,
|
|
200
|
+
TransferMissionRequestModel_1.TransferMissionRequests,
|
|
201
|
+
TransferMissionApprovalModel_1.TransferMissionApprovalDetails,
|
|
202
|
+
TransferMissionAttachmentModel_1.TransferMissionRequestAttachment,
|
|
203
|
+
TransferMissionChatModel_1.TransferMissionRequestChat,
|
|
204
|
+
TransferMissionWorkflowModel_1.TransferMissionWorkFlow,
|
|
205
|
+
GroupNamesModel_1.GroupNames,
|
|
206
|
+
GroupModel_1.Group,
|
|
207
|
+
WorkScheduleModel_1.WorkSchedule,
|
|
208
|
+
JobsModel_1.Jobs,
|
|
209
|
+
TelephoneDirectoryModel_1.TelephoneDirectory
|
|
194
210
|
],
|
|
195
211
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -77,12 +77,27 @@ 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/
|
|
85
|
-
export * from './models/
|
|
86
|
-
export * from './models/
|
|
87
|
-
export * from './models/
|
|
88
|
-
export * from './models/
|
|
80
|
+
export * from './models/UpdateAttendanceRequestModel';
|
|
81
|
+
export * from './models/UpdateAttendanceApprovalModel';
|
|
82
|
+
export * from './models/UpdateAttendanceChatModel';
|
|
83
|
+
export * from './models/UpdateAttendanceWorkflowModel';
|
|
84
|
+
export * from './models/GeneralServiceRequestsModel';
|
|
85
|
+
export * from './models/GeneralServiceApprovalsModel';
|
|
86
|
+
export * from './models/GeneralServiceWorkFlowModel';
|
|
87
|
+
export * from './models/GeneralServiceChatsModel';
|
|
88
|
+
export * from './models/GeneralServiceAttachmentsModel';
|
|
89
|
+
export * from './models/HelpdeskCategoriesModel';
|
|
90
|
+
export * from './models/HelpdeskSubCategoriesModel';
|
|
91
|
+
export * from './models/IssueTypesModel';
|
|
92
|
+
export * from './models/RoutingGroupsModel';
|
|
93
|
+
export * from './models/CurrencyModel';
|
|
94
|
+
export * from './models/TransferMissionRequestModel';
|
|
95
|
+
export * from './models/TransferMissionApprovalModel';
|
|
96
|
+
export * from './models/TransferMissionAttachmentModel';
|
|
97
|
+
export * from './models/TransferMissionChatModel';
|
|
98
|
+
export * from './models/TransferMissionWorkflowModel';
|
|
99
|
+
export * from './models/GroupNamesModel';
|
|
100
|
+
export * from './models/GroupModel';
|
|
101
|
+
export * from './models/WorkScheduleModel';
|
|
102
|
+
export * from './models/JobsModel';
|
|
103
|
+
export * from './models/TelephoneDirectoryModel';
|
package/dist/index.js
CHANGED
|
@@ -93,12 +93,27 @@ __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/
|
|
101
|
-
__exportStar(require("./models/
|
|
102
|
-
__exportStar(require("./models/
|
|
103
|
-
__exportStar(require("./models/
|
|
104
|
-
__exportStar(require("./models/
|
|
96
|
+
__exportStar(require("./models/UpdateAttendanceRequestModel"), exports);
|
|
97
|
+
__exportStar(require("./models/UpdateAttendanceApprovalModel"), exports);
|
|
98
|
+
__exportStar(require("./models/UpdateAttendanceChatModel"), exports);
|
|
99
|
+
__exportStar(require("./models/UpdateAttendanceWorkflowModel"), exports);
|
|
100
|
+
__exportStar(require("./models/GeneralServiceRequestsModel"), exports);
|
|
101
|
+
__exportStar(require("./models/GeneralServiceApprovalsModel"), exports);
|
|
102
|
+
__exportStar(require("./models/GeneralServiceWorkFlowModel"), exports);
|
|
103
|
+
__exportStar(require("./models/GeneralServiceChatsModel"), exports);
|
|
104
|
+
__exportStar(require("./models/GeneralServiceAttachmentsModel"), exports);
|
|
105
|
+
__exportStar(require("./models/HelpdeskCategoriesModel"), exports);
|
|
106
|
+
__exportStar(require("./models/HelpdeskSubCategoriesModel"), exports);
|
|
107
|
+
__exportStar(require("./models/IssueTypesModel"), exports);
|
|
108
|
+
__exportStar(require("./models/RoutingGroupsModel"), exports);
|
|
109
|
+
__exportStar(require("./models/CurrencyModel"), exports);
|
|
110
|
+
__exportStar(require("./models/TransferMissionRequestModel"), exports);
|
|
111
|
+
__exportStar(require("./models/TransferMissionApprovalModel"), exports);
|
|
112
|
+
__exportStar(require("./models/TransferMissionAttachmentModel"), exports);
|
|
113
|
+
__exportStar(require("./models/TransferMissionChatModel"), exports);
|
|
114
|
+
__exportStar(require("./models/TransferMissionWorkflowModel"), exports);
|
|
115
|
+
__exportStar(require("./models/GroupNamesModel"), exports);
|
|
116
|
+
__exportStar(require("./models/GroupModel"), exports);
|
|
117
|
+
__exportStar(require("./models/WorkScheduleModel"), exports);
|
|
118
|
+
__exportStar(require("./models/JobsModel"), exports);
|
|
119
|
+
__exportStar(require("./models/TelephoneDirectoryModel"), 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([
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class Currency extends BaseModel {
|
|
3
|
+
id: number;
|
|
4
|
+
code: string;
|
|
5
|
+
name: string;
|
|
6
|
+
symbol: string;
|
|
7
|
+
countries: string;
|
|
8
|
+
is_active: boolean;
|
|
9
|
+
constructor(code: string, name: string, symbol?: string, countries?: string);
|
|
10
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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.Currency = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let Currency = class Currency extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(code, name, symbol, countries) {
|
|
17
|
+
super();
|
|
18
|
+
this.code = code;
|
|
19
|
+
this.name = name;
|
|
20
|
+
this.symbol = symbol || '';
|
|
21
|
+
this.countries = countries || '[]';
|
|
22
|
+
this.is_active = true;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.Currency = Currency;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], Currency.prototype, "id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 10, nullable: false, unique: true }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], Currency.prototype, "code", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], Currency.prototype, "name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 10, nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], Currency.prototype, "symbol", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], Currency.prototype, "countries", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "boolean", default: true }),
|
|
48
|
+
__metadata("design:type", Boolean)
|
|
49
|
+
], Currency.prototype, "is_active", void 0);
|
|
50
|
+
exports.Currency = Currency = __decorate([
|
|
51
|
+
(0, typeorm_1.Entity)({ name: "currencies" }),
|
|
52
|
+
__metadata("design:paramtypes", [String, String, String, String])
|
|
53
|
+
], Currency);
|
|
@@ -70,6 +70,10 @@ __decorate([
|
|
|
70
70
|
(0, typeorm_1.Column)({ type: 'enum', enum: EarlyCheckoutApprovalStatus, default: EarlyCheckoutApprovalStatus.PENDING, nullable: false }),
|
|
71
71
|
__metadata("design:type", String)
|
|
72
72
|
], EarlyCheckoutApprovalDetails.prototype, "approval_status", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
75
|
+
__metadata("design:type", Boolean)
|
|
76
|
+
], EarlyCheckoutApprovalDetails.prototype, "is_allowed", void 0);
|
|
73
77
|
exports.EarlyCheckoutApprovalDetails = EarlyCheckoutApprovalDetails = __decorate([
|
|
74
78
|
(0, typeorm_1.Entity)({ name: 'early_checkout_approvals' })
|
|
75
79
|
], EarlyCheckoutApprovalDetails);
|
|
@@ -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: string;
|
|
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: 'text', nullable: true }),
|
|
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);
|
|
@@ -10,4 +10,8 @@ export declare class EarlyCheckoutWorkFlow extends BaseModel {
|
|
|
10
10
|
sub_service_id: number | null;
|
|
11
11
|
content: string;
|
|
12
12
|
status: EarlyCheckoutWorkFlowStatus;
|
|
13
|
+
user_id: number | null;
|
|
14
|
+
role_id: number | null;
|
|
15
|
+
department_id: number | null;
|
|
16
|
+
section_id: number | null;
|
|
13
17
|
}
|
|
@@ -41,6 +41,22 @@ __decorate([
|
|
|
41
41
|
(0, typeorm_1.Column)({ type: 'enum', enum: EarlyCheckoutWorkFlowStatus, default: EarlyCheckoutWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
|
|
42
42
|
__metadata("design:type", String)
|
|
43
43
|
], EarlyCheckoutWorkFlow.prototype, "status", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], EarlyCheckoutWorkFlow.prototype, "user_id", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], EarlyCheckoutWorkFlow.prototype, "role_id", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
|
+
], EarlyCheckoutWorkFlow.prototype, "department_id", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], EarlyCheckoutWorkFlow.prototype, "section_id", void 0);
|
|
44
60
|
exports.EarlyCheckoutWorkFlow = EarlyCheckoutWorkFlow = __decorate([
|
|
45
61
|
(0, typeorm_1.Entity)({ name: 'early_checkout_workflows' })
|
|
46
62
|
], EarlyCheckoutWorkFlow);
|
|
@@ -18,6 +18,7 @@ export declare class FinancialApprovals extends BaseModel {
|
|
|
18
18
|
department_id: number | null;
|
|
19
19
|
section_id: number | null;
|
|
20
20
|
approved_by: number | null;
|
|
21
|
+
delegate_user_id: number | null;
|
|
21
22
|
financialRequest?: FinancialRequests;
|
|
22
|
-
constructor(financial_request_id: number, level: number, approver_role_id: number, approval_status: FinancialApprovalStatus, department_id: number | null, section_id: number | null, approved_by: number | null);
|
|
23
|
+
constructor(financial_request_id: number, level: number, approver_role_id: number, approval_status: FinancialApprovalStatus, department_id: number | null, section_id: number | null, approved_by: number | null, delegate_user_id: number | null);
|
|
23
24
|
}
|
|
@@ -22,7 +22,7 @@ var FinancialApprovalStatus;
|
|
|
22
22
|
FinancialApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
23
23
|
})(FinancialApprovalStatus || (exports.FinancialApprovalStatus = FinancialApprovalStatus = {}));
|
|
24
24
|
let FinancialApprovals = class FinancialApprovals extends BaseModel_1.BaseModel {
|
|
25
|
-
constructor(financial_request_id, level, approver_role_id, approval_status, department_id, section_id, approved_by) {
|
|
25
|
+
constructor(financial_request_id, level, approver_role_id, approval_status, department_id, section_id, approved_by, delegate_user_id) {
|
|
26
26
|
super();
|
|
27
27
|
this.financial_request_id = financial_request_id;
|
|
28
28
|
this.level = level;
|
|
@@ -31,6 +31,7 @@ let FinancialApprovals = class FinancialApprovals extends BaseModel_1.BaseModel
|
|
|
31
31
|
this.department_id = department_id;
|
|
32
32
|
this.section_id = section_id;
|
|
33
33
|
this.approved_by = approved_by;
|
|
34
|
+
this.delegate_user_id = delegate_user_id;
|
|
34
35
|
}
|
|
35
36
|
};
|
|
36
37
|
exports.FinancialApprovals = FinancialApprovals;
|
|
@@ -74,6 +75,10 @@ __decorate([
|
|
|
74
75
|
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
75
76
|
__metadata("design:type", Object)
|
|
76
77
|
], FinancialApprovals.prototype, "approved_by", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
80
|
+
__metadata("design:type", Object)
|
|
81
|
+
], FinancialApprovals.prototype, "delegate_user_id", void 0);
|
|
77
82
|
__decorate([
|
|
78
83
|
(0, typeorm_1.ManyToOne)(() => FinancialRequestsModel_1.FinancialRequests, fr => fr.approvals),
|
|
79
84
|
(0, typeorm_1.JoinColumn)({ name: 'financial_request_id' }),
|
|
@@ -81,5 +86,5 @@ __decorate([
|
|
|
81
86
|
], FinancialApprovals.prototype, "financialRequest", void 0);
|
|
82
87
|
exports.FinancialApprovals = FinancialApprovals = __decorate([
|
|
83
88
|
(0, typeorm_1.Entity)({ name: 'financial_approvals' }),
|
|
84
|
-
__metadata("design:paramtypes", [Number, Number, Number, String, Object, Object, Object])
|
|
89
|
+
__metadata("design:paramtypes", [Number, Number, Number, String, Object, Object, Object, Object])
|
|
85
90
|
], FinancialApprovals);
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
2
|
import { FinancialRequests } from './FinancialRequestsModel';
|
|
3
|
+
export declare enum statusEnum {
|
|
4
|
+
PENDING = "Pending",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare enum messageTypeEnum {
|
|
9
|
+
TEXT = "text",
|
|
10
|
+
IMAGE = "image",
|
|
11
|
+
AUDIO = "audio",
|
|
12
|
+
VIDEO = "video"
|
|
13
|
+
}
|
|
3
14
|
export declare class FinancialChats extends BaseModel {
|
|
4
15
|
financial_request_id: number;
|
|
5
16
|
content: string;
|
|
6
17
|
sender_user_id: number;
|
|
18
|
+
role_id: number | null;
|
|
19
|
+
status: statusEnum | null;
|
|
20
|
+
message_type: messageTypeEnum | null;
|
|
21
|
+
sender_role_id: number | null;
|
|
7
22
|
financialRequest?: FinancialRequests;
|
|
8
|
-
constructor(financial_request_id: number, content: string, sender_user_id: number);
|
|
23
|
+
constructor(financial_request_id: number, content: string, sender_user_id: number, sender_role_id: number);
|
|
9
24
|
}
|
|
@@ -9,16 +9,30 @@ 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.FinancialChats = void 0;
|
|
12
|
+
exports.FinancialChats = exports.messageTypeEnum = exports.statusEnum = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
const FinancialRequestsModel_1 = require("./FinancialRequestsModel");
|
|
16
|
+
var statusEnum;
|
|
17
|
+
(function (statusEnum) {
|
|
18
|
+
statusEnum["PENDING"] = "Pending";
|
|
19
|
+
statusEnum["APPROVED"] = "Approved";
|
|
20
|
+
statusEnum["REJECTED"] = "Rejected";
|
|
21
|
+
})(statusEnum || (exports.statusEnum = statusEnum = {}));
|
|
22
|
+
var messageTypeEnum;
|
|
23
|
+
(function (messageTypeEnum) {
|
|
24
|
+
messageTypeEnum["TEXT"] = "text";
|
|
25
|
+
messageTypeEnum["IMAGE"] = "image";
|
|
26
|
+
messageTypeEnum["AUDIO"] = "audio";
|
|
27
|
+
messageTypeEnum["VIDEO"] = "video";
|
|
28
|
+
})(messageTypeEnum || (exports.messageTypeEnum = messageTypeEnum = {}));
|
|
16
29
|
let FinancialChats = class FinancialChats extends BaseModel_1.BaseModel {
|
|
17
|
-
constructor(financial_request_id, content, sender_user_id) {
|
|
30
|
+
constructor(financial_request_id, content, sender_user_id, sender_role_id) {
|
|
18
31
|
super();
|
|
19
32
|
this.financial_request_id = financial_request_id;
|
|
20
33
|
this.content = content;
|
|
21
34
|
this.sender_user_id = sender_user_id;
|
|
35
|
+
this.sender_role_id = sender_role_id;
|
|
22
36
|
}
|
|
23
37
|
};
|
|
24
38
|
exports.FinancialChats = FinancialChats;
|
|
@@ -34,6 +48,22 @@ __decorate([
|
|
|
34
48
|
(0, typeorm_1.Column)({ type: 'int' }),
|
|
35
49
|
__metadata("design:type", Number)
|
|
36
50
|
], FinancialChats.prototype, "sender_user_id", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
53
|
+
__metadata("design:type", Object)
|
|
54
|
+
], FinancialChats.prototype, "role_id", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], FinancialChats.prototype, "status", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], FinancialChats.prototype, "message_type", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], FinancialChats.prototype, "sender_role_id", void 0);
|
|
37
67
|
__decorate([
|
|
38
68
|
(0, typeorm_1.ManyToOne)(() => FinancialRequestsModel_1.FinancialRequests, fr => fr.chats),
|
|
39
69
|
(0, typeorm_1.JoinColumn)({ name: 'financial_request_id' }),
|
|
@@ -41,5 +71,5 @@ __decorate([
|
|
|
41
71
|
], FinancialChats.prototype, "financialRequest", void 0);
|
|
42
72
|
exports.FinancialChats = FinancialChats = __decorate([
|
|
43
73
|
(0, typeorm_1.Entity)({ name: 'financial_chats' }),
|
|
44
|
-
__metadata("design:paramtypes", [Number, String, Number])
|
|
74
|
+
__metadata("design:paramtypes", [Number, String, Number, Number])
|
|
45
75
|
], FinancialChats);
|
|
@@ -41,7 +41,7 @@ export declare class FinancialRequests extends BaseModel {
|
|
|
41
41
|
payslipRequest?: PayslipRequests;
|
|
42
42
|
salaryCertificateRequest?: SalaryCertificateRequests;
|
|
43
43
|
allowanceRequest?: AllowanceRequests;
|
|
44
|
-
|
|
44
|
+
reimbursementRequests?: ReimbursementRequests[];
|
|
45
45
|
bankAccountChangeRequest?: BankAccountChangeRequests;
|
|
46
46
|
chats?: FinancialChats[];
|
|
47
47
|
approvals?: FinancialApprovals[];
|
|
@@ -129,9 +129,9 @@ __decorate([
|
|
|
129
129
|
__metadata("design:type", Function)
|
|
130
130
|
], FinancialRequests.prototype, "allowanceRequest", void 0);
|
|
131
131
|
__decorate([
|
|
132
|
-
(0, typeorm_1.
|
|
133
|
-
__metadata("design:type",
|
|
134
|
-
], FinancialRequests.prototype, "
|
|
132
|
+
(0, typeorm_1.OneToMany)('ReimbursementRequests', 'financialRequest', { nullable: true }),
|
|
133
|
+
__metadata("design:type", Array)
|
|
134
|
+
], FinancialRequests.prototype, "reimbursementRequests", void 0);
|
|
135
135
|
__decorate([
|
|
136
136
|
(0, typeorm_1.OneToOne)('BankAccountChangeRequests', 'financialRequest', { nullable: true }),
|
|
137
137
|
__metadata("design:type", Function)
|
|
@@ -14,6 +14,8 @@ export declare class FinancialWorkFlow extends BaseModel {
|
|
|
14
14
|
approved_by_user_id: number;
|
|
15
15
|
content: string;
|
|
16
16
|
activity_date: Date;
|
|
17
|
+
approved_by_role_id: number;
|
|
18
|
+
step_order: number;
|
|
17
19
|
financialRequest?: FinancialRequests;
|
|
18
|
-
constructor(financial_request_id: number, status: FinancialWorkFlowStatus, approved_by_user_id: number, content: string);
|
|
20
|
+
constructor(financial_request_id: number, status: FinancialWorkFlowStatus, approved_by_user_id: number, content: string, step_order: number);
|
|
19
21
|
}
|
|
@@ -22,7 +22,7 @@ var FinancialWorkFlowStatus;
|
|
|
22
22
|
FinancialWorkFlowStatus["FAILED"] = "Failed";
|
|
23
23
|
})(FinancialWorkFlowStatus || (exports.FinancialWorkFlowStatus = FinancialWorkFlowStatus = {}));
|
|
24
24
|
let FinancialWorkFlow = class FinancialWorkFlow extends BaseModel_1.BaseModel {
|
|
25
|
-
constructor(financial_request_id, status, approved_by_user_id, content) {
|
|
25
|
+
constructor(financial_request_id, status, approved_by_user_id, content, step_order) {
|
|
26
26
|
super();
|
|
27
27
|
this.financial_request_id = financial_request_id;
|
|
28
28
|
this.status = status;
|
|
@@ -30,6 +30,7 @@ let FinancialWorkFlow = class FinancialWorkFlow extends BaseModel_1.BaseModel {
|
|
|
30
30
|
this.content = content;
|
|
31
31
|
this.financial_approval_id = 0;
|
|
32
32
|
this.activity_date = new Date();
|
|
33
|
+
this.step_order = step_order;
|
|
33
34
|
}
|
|
34
35
|
};
|
|
35
36
|
exports.FinancialWorkFlow = FinancialWorkFlow;
|
|
@@ -57,6 +58,14 @@ __decorate([
|
|
|
57
58
|
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
58
59
|
__metadata("design:type", Date)
|
|
59
60
|
], FinancialWorkFlow.prototype, "activity_date", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], FinancialWorkFlow.prototype, "approved_by_role_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], FinancialWorkFlow.prototype, "step_order", void 0);
|
|
60
69
|
__decorate([
|
|
61
70
|
(0, typeorm_1.ManyToOne)(() => FinancialRequestsModel_1.FinancialRequests, fr => fr.workflows),
|
|
62
71
|
(0, typeorm_1.JoinColumn)({ name: 'financial_request_id' }),
|
|
@@ -64,5 +73,5 @@ __decorate([
|
|
|
64
73
|
], FinancialWorkFlow.prototype, "financialRequest", void 0);
|
|
65
74
|
exports.FinancialWorkFlow = FinancialWorkFlow = __decorate([
|
|
66
75
|
(0, typeorm_1.Entity)({ name: 'financial_work_flows' }),
|
|
67
|
-
__metadata("design:paramtypes", [Number, String, Number, String])
|
|
76
|
+
__metadata("design:paramtypes", [Number, String, Number, String, Number])
|
|
68
77
|
], FinancialWorkFlow);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum GeneralServiceApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
APPROVED = "Approved",
|
|
5
|
+
REJECTED = "Rejected",
|
|
6
|
+
SKIPPED = "Skipped",
|
|
7
|
+
IN_PROGRESS = "In Progress"
|
|
8
|
+
}
|
|
9
|
+
export declare class GeneralServiceApprovals extends BaseModel {
|
|
10
|
+
request_id: number;
|
|
11
|
+
level: number;
|
|
12
|
+
approver_user_id: number | null;
|
|
13
|
+
approver_role_id: number;
|
|
14
|
+
comment: string | null;
|
|
15
|
+
approval_status: GeneralServiceApprovalStatus;
|
|
16
|
+
action_date: Date;
|
|
17
|
+
department_id: number | null;
|
|
18
|
+
section_id: number | null;
|
|
19
|
+
approved_by: number | null;
|
|
20
|
+
service_id: number | null;
|
|
21
|
+
sub_service_id: number | null;
|
|
22
|
+
assigned_group_id: number | null;
|
|
23
|
+
transfer_from_user_id: number | null;
|
|
24
|
+
transfer_to_user_id: number | null;
|
|
25
|
+
constructor(request_id: number, level: number, approver_role_id: number, approval_status: GeneralServiceApprovalStatus, department_id: number | null, section_id: number | null, approved_by: number | null, service_id?: number | null, sub_service_id?: number | null);
|
|
26
|
+
}
|