mobioffice-cli 0.2.1 → 1.0.1
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/{src/index.ts → lib/index.d.ts} +1 -45
- package/lib/models/Feed-Details-Screen.model.d.ts +6 -0
- package/lib/models/Feed-Details-Screen.model.js +27 -0
- package/lib/models/action.model.d.ts +58 -0
- package/lib/models/action.model.js +315 -0
- package/lib/models/actions/doffing.d.ts +6 -0
- package/lib/models/actions/doffing.js +64 -0
- package/lib/models/actions/folding.d.ts +7 -0
- package/lib/models/actions/folding.js +37 -0
- package/lib/models/attendance.model.d.ts +44 -0
- package/lib/models/attendance.model.js +446 -0
- package/lib/models/cicoPost.model.d.ts +9 -0
- package/lib/models/cicoPost.model.js +19 -0
- package/lib/models/company.model.d.ts +67 -0
- package/lib/models/company.model.js +725 -0
- package/lib/models/contact-us/resquest.model.d.ts +30 -0
- package/lib/models/contact-us/resquest.model.js +73 -0
- package/lib/models/crud/crud.d.ts +7 -0
- package/lib/models/crud/crud.js +27 -0
- package/lib/models/customCollection.model.d.ts +9 -0
- package/lib/models/customCollection.model.js +40 -0
- package/lib/models/customer/customer.model.d.ts +32 -0
- package/lib/models/customer/customer.model.js +62 -0
- package/lib/models/deviceChangeReq.d.ts +10 -0
- package/lib/models/deviceChangeReq.js +138 -0
- package/lib/models/dispatch.model.d.ts +14 -0
- package/lib/models/dispatch.model.js +93 -0
- package/lib/models/feed.models.d.ts +8 -0
- package/lib/models/feed.models.js +97 -0
- package/lib/models/geofence.model.d.ts +7 -0
- package/lib/models/geofence.model.js +61 -0
- package/lib/models/leaveApplicationPost.model.d.ts +12 -0
- package/lib/models/leaveApplicationPost.model.js +72 -0
- package/lib/models/license.model.d.ts +25 -0
- package/lib/models/license.model.js +198 -0
- package/lib/models/log.model.d.ts +6 -0
- package/{src/models/log.model.ts → lib/models/log.model.js} +11 -11
- package/lib/models/meeting.model.d.ts +11 -0
- package/lib/models/meeting.model.js +79 -0
- package/lib/models/meter.model.d.ts +18 -0
- package/lib/models/meter.model.js +54 -0
- package/lib/models/missingPunchPost.model.d.ts +15 -0
- package/lib/models/missingPunchPost.model.js +69 -0
- package/lib/models/offline.model.d.ts +70 -0
- package/lib/models/offline.model.js +831 -0
- package/lib/models/post.model.d.ts +38 -0
- package/lib/models/post.model.js +94 -0
- package/lib/models/printDetailsScreen.model.d.ts +6 -0
- package/lib/models/printDetailsScreen.model.js +27 -0
- package/lib/models/pushNotifications/pushNotification.model.d.ts +4 -0
- package/lib/models/pushNotifications/pushNotification.model.js +17 -0
- package/lib/models/report-actions.model.d.ts +26 -0
- package/lib/models/report-actions.model.js +56 -0
- package/lib/models/report-definition-details.model.d.ts +13 -0
- package/lib/models/report-definition-details.model.js +85 -0
- package/lib/models/report-definition.model.d.ts +23 -0
- package/lib/models/report-definition.model.js +26 -0
- package/lib/models/report-definitions-summary.model.d.ts +8 -0
- package/lib/models/report-definitions-summary.model.js +59 -0
- package/lib/models/report-detail-data.model.d.ts +46 -0
- package/lib/models/report-detail-data.model.js +49 -0
- package/lib/models/report-visibility.model.d.ts +7 -0
- package/lib/models/report-visibility.model.js +42 -0
- package/lib/models/report.model.d.ts +19 -0
- package/lib/models/report.model.js +138 -0
- package/lib/models/reportGenerator.model.d.ts +164 -0
- package/lib/models/reportGenerator.model.js +642 -0
- package/lib/models/response.model.d.ts +18 -0
- package/lib/models/response.model.js +30 -0
- package/lib/models/steps.factory.model.d.ts +172 -0
- package/lib/models/steps.factory.model.js +187 -0
- package/lib/models/storeGupShupLog.model.d.ts +6 -0
- package/lib/models/storeGupShupLog.model.js +51 -0
- package/lib/models/summary.model.d.ts +10 -0
- package/{src/models/summary.model.ts → lib/models/summary.model.js} +28 -27
- package/lib/models/tasks/sub-task-group.model.d.ts +42 -0
- package/lib/models/tasks/sub-task-group.model.js +154 -0
- package/lib/models/tasks/tags.model.d.ts +29 -0
- package/lib/models/tasks/tags.model.js +70 -0
- package/lib/models/tasks/task-group.model.d.ts +53 -0
- package/lib/models/tasks/task-group.model.js +156 -0
- package/lib/models/tasks/task.model.d.ts +163 -0
- package/lib/models/tasks/task.model.js +603 -0
- package/lib/models/tempCollection.model.d.ts +40 -0
- package/{src/models/tempCollection.model.ts → lib/models/tempCollection.model.js} +114 -130
- package/lib/models/user.model.d.ts +42 -0
- package/lib/models/user.model.js +272 -0
- package/lib/models/utility.model.d.ts +13 -0
- package/lib/models/utility.model.js +93 -0
- package/lib/models/visitorManagement/acknowledgement.model.d.ts +9 -0
- package/lib/models/visitorManagement/acknowledgement.model.js +55 -0
- package/lib/models/visitorManagement/invite.model.d.ts +32 -0
- package/lib/models/visitorManagement/invite.model.js +326 -0
- package/lib/models/visitorManagement/newIn.model.d.ts +19 -0
- package/lib/models/visitorManagement/newIn.model.js +67 -0
- package/lib/models/visitorManagement/selfServe.model.d.ts +13 -0
- package/lib/models/visitorManagement/selfServe.model.js +46 -0
- package/lib/models/worklogPost.model.d.ts +6 -0
- package/lib/models/worklogPost.model.js +9 -0
- package/lib/services/customer.d.ts +30 -0
- package/lib/services/customer.js +354 -0
- package/lib/services/meeting.d.ts +19 -0
- package/lib/services/meeting.js +109 -0
- package/package.json +4 -1
- package/.prettierrc +0 -4
- package/a.js +0 -3
- package/scripts/1.ts +0 -1300
- package/scripts/GCloudPubSub/pub-sub-config.json +0 -12
- package/scripts/GCloudPubSub/visitorAutoRejection.ts +0 -86
- package/scripts/actions/assignUsersFromOneActionToOther.ts +0 -64
- package/scripts/actions/assignUsersListToAction.ts +0 -81
- package/scripts/actions/getActionsListOfUser.ts +0 -42
- package/scripts/actions/getCompanyUserDetails.ts +0 -49
- package/scripts/actions/giveActionToUser.ts +0 -41
- package/scripts/actions/giveUsersToActivitySelector.ts +0 -56
- package/scripts/actions/groupActionsInActivitySelector.ts +0 -101
- package/scripts/actions/modifySummaryReportDB.ts +0 -42
- package/scripts/actions/setUrlToActionStep.ts +0 -18
- package/scripts/actions/syncMySqlAttendanceDBWithFirebase.ts +0 -93
- package/scripts/actions/syncMySqlMeetingsDBWithFirebase.ts +0 -103
- package/scripts/actions/test.ts +0 -29
- package/scripts/actions/transferFeedsOldIdToNew.ts +0 -40
- package/scripts/actions/transformUserIntoManager.ts +0 -89
- package/scripts/argvConfig.js +0 -9
- package/scripts/backUpData/testCode.ts +0 -131
- package/scripts/benaraScripts/addWorkAreaMap.ts +0 -46
- package/scripts/benaraScripts/add_customers.ts +0 -26
- package/scripts/benaraScripts/add_customers_contact.ts +0 -27
- package/scripts/benaraScripts/add_empty_work_area.ts +0 -17
- package/scripts/benaraScripts/assignManagers.ts +0 -35
- package/scripts/benaraScripts/changeCheckInFlag.ts +0 -45
- package/scripts/benaraScripts/createCustomerContactsList.ts +0 -170
- package/scripts/benaraScripts/createUserByDeletingOldUser.ts +0 -70
- package/scripts/benaraScripts/createUsersAreaMapCollection.ts +0 -23
- package/scripts/benaraScripts/createWorkAreaMap.ts +0 -24
- package/scripts/benaraScripts/mapWorkAreasToUsers.ts +0 -112
- package/scripts/companies_data.json +0 -2496
- package/scripts/create_or_update_users.ts +0 -31
- package/scripts/csvToJson/csvToJson.ts +0 -90
- package/scripts/csvToJson/users.json +0 -3896
- package/scripts/db.js +0 -27
- package/scripts/db.json +0 -13
- package/scripts/dbMySql.ts +0 -63
- package/scripts/delete_action_steps.ts +0 -11
- package/scripts/delete_user.ts +0 -71
- package/scripts/dev_companies_data.json +0 -613
- package/scripts/enroll.xlsx +0 -0
- package/scripts/export_users.ts +0 -72
- package/scripts/files/visitorManagementFiles/displayScreen.json +0 -70
- package/scripts/files/visitorManagementFiles/init_report_visibility.ts +0 -79
- package/scripts/firebaseConfig.js +0 -12
- package/scripts/firebaseDocs/deleteIncommingCollection.ts +0 -47
- package/scripts/firebaseDocs/updateDoc.ts +0 -43
- package/scripts/getActionDataIntoJSON/getActionData.ts +0 -68
- package/scripts/get_attendance_by_any_date.ts +0 -14
- package/scripts/get_attendance_by_month.ts +0 -12
- package/scripts/get_attendance_monthly_by_team.ts +0 -11
- package/scripts/get_daily_report.ts +0 -10
- package/scripts/get_mangers.ts +0 -13
- package/scripts/grant_user_license.ts +0 -18
- package/scripts/init_CustomCollection.ts +0 -16
- package/scripts/init_action_steps.ts +0 -28
- package/scripts/init_actions.ts +0 -31
- package/scripts/init_company.ts +0 -18
- package/scripts/init_customer_mysql.ts +0 -12
- package/scripts/init_feed.ts +0 -4
- package/scripts/init_feed_details_screen.ts +0 -14
- package/scripts/init_geofence.ts +0 -26
- package/scripts/init_print_details_screen.ts +0 -14
- package/scripts/init_report_actions.ts +0 -24
- package/scripts/init_report_definition_detail.ts +0 -26
- package/scripts/init_report_definition_summary.ts +0 -16
- package/scripts/init_report_visibility.ts +0 -46
- package/scripts/init_user_customcollection.ts +0 -16
- package/scripts/json/action.json +0 -21
- package/scripts/json/company.json +0 -24
- package/scripts/json/report-action.json +0 -13
- package/scripts/json/report-def-deet.json +0 -43
- package/scripts/json/resp.json +0 -784
- package/scripts/json/steps.json +0 -24
- package/scripts/json/test.ts +0 -49
- package/scripts/mysqlConfig.ts +0 -9
- package/scripts/revoke_or_extend_license.ts +0 -14
- package/scripts/stream.js +0 -4
- package/scripts/testing1.ts +0 -35
- package/scripts/update/doc.json +0 -20
- package/scripts/update/getDocByPath.ts +0 -34
- package/scripts/update/updateDocByPath.ts +0 -47
- package/scripts/update/updateUsersOfCompanies.ts +0 -58
- package/scripts/update_actions.ts +0 -19
- package/scripts/update_actions_steps.ts +0 -19
- package/scripts/update_company.ts +0 -19
- package/scripts/update_geofence.ts +0 -20
- package/scripts/update_managers.ts +0 -16
- package/scripts/visitorMgmt/createArea.ts +0 -68
- package/scripts/visitorMgmt/createArea.txt +0 -3
- package/scripts/visitorMgmt/createVisitorPathInstructionDocs.ts +0 -130
- package/scripts/visitorMgmt/createVisitorPathInstructionDocs.txt +0 -18
- package/scripts/visitorMgmt/encryptDateString.ts +0 -71
- package/scripts/visitorMgmt/makeHostsManagersOfEachOther.ts +0 -117
- package/scripts/whatsapp_gupshup/sendMessage.ts +0 -97
- package/src/models/Feed-Details-Screen.model.ts +0 -29
- package/src/models/action.model.ts +0 -355
- package/src/models/actions/doffing.ts +0 -71
- package/src/models/actions/folding.ts +0 -39
- package/src/models/attendance.model.ts +0 -615
- package/src/models/cicoPost.model.ts +0 -20
- package/src/models/company.model.ts +0 -975
- package/src/models/contact-us/resquest.model.ts +0 -87
- package/src/models/crud/crud.ts +0 -30
- package/src/models/customCollection.model.ts +0 -47
- package/src/models/customer/customer.model.ts +0 -85
- package/src/models/deviceChangeReq.ts +0 -150
- package/src/models/dispatch.model.ts +0 -99
- package/src/models/feed.models.ts +0 -104
- package/src/models/geofence.model.ts +0 -61
- package/src/models/leaveApplicationPost.model.ts +0 -79
- package/src/models/license.model.ts +0 -215
- package/src/models/meeting.model.ts +0 -80
- package/src/models/meter.model.ts +0 -62
- package/src/models/missingPunchPost.model.ts +0 -84
- package/src/models/offline.model.ts +0 -1133
- package/src/models/post.model.ts +0 -105
- package/src/models/printDetailsScreen.model.ts +0 -30
- package/src/models/pushNotifications/pushNotification.model.ts +0 -17
- package/src/models/report-actions.model.ts +0 -57
- package/src/models/report-definition-details.model.ts +0 -89
- package/src/models/report-definition.model.ts +0 -26
- package/src/models/report-definitions-summary.model.ts +0 -59
- package/src/models/report-detail-data.model.ts +0 -49
- package/src/models/report-visibility.model.ts +0 -44
- package/src/models/report.model.ts +0 -179
- package/src/models/reportGenerator.model.ts +0 -883
- package/src/models/response.model.ts +0 -31
- package/src/models/steps.factory.model.ts +0 -195
- package/src/models/storeGupShupLog.model.ts +0 -49
- package/src/models/tasks/sub-task-group.model.ts +0 -173
- package/src/models/tasks/tags.model.ts +0 -113
- package/src/models/tasks/task-group.model.ts +0 -172
- package/src/models/tasks/task.model.ts +0 -681
- package/src/models/user.model.ts +0 -319
- package/src/models/utility.model.ts +0 -100
- package/src/models/visitorManagement/acknowledgement.model.ts +0 -71
- package/src/models/visitorManagement/invite.model.ts +0 -406
- package/src/models/visitorManagement/newIn.model.ts +0 -82
- package/src/models/visitorManagement/selfServe.model.ts +0 -58
- package/src/models/worklogPost.model.ts +0 -8
- package/src/services/customer.ts +0 -382
- package/src/services/meeting.ts +0 -123
- package/test/1.ts +0 -13
- package/test/db.js +0 -19
- package/test/firebaseConfig.js +0 -1
- package/tsconfig.json +0 -16
@@ -40,48 +40,4 @@ import { Request } from "./models/contact-us/resquest.model";
|
|
40
40
|
import { ReportGenerator } from "./models/reportGenerator.model";
|
41
41
|
import { LeaveApplication } from "./models/leaveApplicationPost.model";
|
42
42
|
import { GupShupLogs } from "./models/storeGupShupLog.model";
|
43
|
-
|
44
|
-
export {
|
45
|
-
Action,
|
46
|
-
User,
|
47
|
-
Company,
|
48
|
-
License,
|
49
|
-
Attendance,
|
50
|
-
Report,
|
51
|
-
Offline,
|
52
|
-
Feeds,
|
53
|
-
ReportDefinitionDetail,
|
54
|
-
ReportVisibility,
|
55
|
-
Geofence,
|
56
|
-
Post,
|
57
|
-
CheckInCheckOutPost,
|
58
|
-
WorklogPost,
|
59
|
-
MissingPunch,
|
60
|
-
HttpResponseAndErrorHandling,
|
61
|
-
CustomCollection,
|
62
|
-
CustomerServices,
|
63
|
-
TempCollection,
|
64
|
-
Customer,
|
65
|
-
MeetingSummary,
|
66
|
-
MeetingServices,
|
67
|
-
Dispatch,
|
68
|
-
Doffing,
|
69
|
-
Folding,
|
70
|
-
Logs,
|
71
|
-
Meter,
|
72
|
-
DeviceChangeReq,
|
73
|
-
PushNotifications,
|
74
|
-
NewIn,
|
75
|
-
Invitation,
|
76
|
-
Acknowledgement,
|
77
|
-
Utilities,
|
78
|
-
Task,
|
79
|
-
TaskGroup,
|
80
|
-
Tag,
|
81
|
-
SubTaskGroup,
|
82
|
-
Summary,
|
83
|
-
Request,
|
84
|
-
ReportGenerator,
|
85
|
-
LeaveApplication,
|
86
|
-
GupShupLogs
|
87
|
-
};
|
43
|
+
export { Action, User, Company, License, Attendance, Report, Offline, Feeds, ReportDefinitionDetail, ReportVisibility, Geofence, Post, CheckInCheckOutPost, WorklogPost, MissingPunch, HttpResponseAndErrorHandling, CustomCollection, CustomerServices, TempCollection, Customer, MeetingSummary, MeetingServices, Dispatch, Doffing, Folding, Logs, Meter, DeviceChangeReq, PushNotifications, NewIn, Invitation, Acknowledgement, Utilities, Task, TaskGroup, Tag, SubTaskGroup, Summary, Request, ReportGenerator, LeaveApplication, GupShupLogs };
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import * as admin from 'firebase-admin';
|
2
|
+
declare class FeedDetailsScreen {
|
3
|
+
static createFeedDetailsScreen(firestore: admin.firestore.Firestore, nickName: string, data: any): Promise<any>;
|
4
|
+
static updateFeedDetailsScreen(firestore: admin.firestore.Firestore, nickName: string, data: any): Promise<void>;
|
5
|
+
}
|
6
|
+
export { FeedDetailsScreen };
|
@@ -0,0 +1,27 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.FeedDetailsScreen = void 0;
|
4
|
+
const company_model_1 = require("./company.model");
|
5
|
+
class FeedDetailsScreen {
|
6
|
+
static async createFeedDetailsScreen(firestore, nickName, data) {
|
7
|
+
let companyId = await company_model_1.Company.getCompanyIdbyNickname(firestore, nickName);
|
8
|
+
let snapshot = firestore
|
9
|
+
.collection("Companies")
|
10
|
+
.doc(companyId)
|
11
|
+
.collection("Feed-Details-Screen").doc();
|
12
|
+
data.id = snapshot.id;
|
13
|
+
await snapshot.set(data);
|
14
|
+
return data;
|
15
|
+
}
|
16
|
+
static async updateFeedDetailsScreen(firestore, nickName, data) {
|
17
|
+
let companyId = await company_model_1.Company.getCompanyIdbyNickname(firestore, nickName);
|
18
|
+
let snapshot = await firestore
|
19
|
+
.collection("Companies")
|
20
|
+
.doc(companyId)
|
21
|
+
.collection("Feed-Details-Screen").where("actionName", "==", data.actionName).get();
|
22
|
+
snapshot.forEach((doc) => {
|
23
|
+
doc.ref.update(data);
|
24
|
+
});
|
25
|
+
}
|
26
|
+
}
|
27
|
+
exports.FeedDetailsScreen = FeedDetailsScreen;
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import * as admin from "firebase-admin";
|
2
|
+
declare class Action {
|
3
|
+
actionType: string;
|
4
|
+
companyId: string;
|
5
|
+
displayName: string;
|
6
|
+
end_label: string;
|
7
|
+
icon: string;
|
8
|
+
id: string;
|
9
|
+
idForReport: string;
|
10
|
+
name: string;
|
11
|
+
order: number;
|
12
|
+
require_location: boolean;
|
13
|
+
require_selfie: boolean;
|
14
|
+
startCollectionName: string;
|
15
|
+
start_label: string;
|
16
|
+
users: string[];
|
17
|
+
forApproval?: boolean;
|
18
|
+
initViaSnapshotDoc(doc: any): void;
|
19
|
+
static ActionType: {
|
20
|
+
CICO: string;
|
21
|
+
REPORT: string;
|
22
|
+
WORKLOG: string;
|
23
|
+
};
|
24
|
+
static getActionByName(firestore: admin.firestore.Firestore, name: string, nickname: string): Promise<admin.firestore.DocumentData>;
|
25
|
+
static getActionId(firestore: admin.firestore.Firestore, companyId: string, action: string): Promise<any>;
|
26
|
+
static getActionGroupId(firestore: admin.firestore.Firestore, companyId: string, actionId: string): Promise<any>;
|
27
|
+
static getActionIdbyDisplayName(firestore: admin.firestore.Firestore, companyId: string, action: string): Promise<any>;
|
28
|
+
static getActionIdByDisplayName(firestore: admin.firestore.Firestore, companyId: string, action: string): Promise<any>;
|
29
|
+
static addUserIdInAction(firestore: admin.firestore.Firestore, arrayUnion: any, actionName: string, companyId: string, userId: string): Promise<string>;
|
30
|
+
static getActionNamebyUser(firestore: admin.firestore.Firestore, companyId: string, UserId: string): Promise<any[]>;
|
31
|
+
static getOrCreateAction(firestore: admin.firestore.Firestore, actionMap: any): Promise<any>;
|
32
|
+
static convertingActionDataType(data: any): Promise<any>;
|
33
|
+
static booleanConvertion(value: any): Promise<any>;
|
34
|
+
static updateActions(firestore: admin.firestore.Firestore, arrayUnion: any, nickName: string, actionName: string, newDetails: any): Promise<string>;
|
35
|
+
static actionStep(firestore: admin.firestore.Firestore, nickName: string, actionName: string, actionStep: any): Promise<any>;
|
36
|
+
static convertingActionStepsDataType(data: any): Promise<any>;
|
37
|
+
static getOrCreateStep(firestore: admin.firestore.Firestore, step: any, companyId: string, action: any): Promise<any>;
|
38
|
+
static updateActionsStep(firestore: admin.firestore.Firestore, nickName: string, actionName: string, actionSteps: any): Promise<any>;
|
39
|
+
static actionTemplate: {
|
40
|
+
actionType: string;
|
41
|
+
companyId: string;
|
42
|
+
displayName: string;
|
43
|
+
end_label: string;
|
44
|
+
icon: string;
|
45
|
+
id: string;
|
46
|
+
idForReport: string;
|
47
|
+
name: string;
|
48
|
+
order: number;
|
49
|
+
require_location: boolean;
|
50
|
+
require_selfie: boolean;
|
51
|
+
startCollectionName: string;
|
52
|
+
start_label: string;
|
53
|
+
users: never[];
|
54
|
+
};
|
55
|
+
static deleteActionSteps(firestore: admin.firestore.Firestore, nickName: string, actionName: string, label: string): Promise<"Given data invalid" | "Deleted successfully">;
|
56
|
+
static updateMeetingStatus(firestore: admin.firestore.Firestore, companyId: string, userId: string, eventId: string, time: number): Promise<void>;
|
57
|
+
}
|
58
|
+
export { Action };
|
@@ -0,0 +1,315 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Action = void 0;
|
4
|
+
const company_model_1 = require("./company.model");
|
5
|
+
class Action {
|
6
|
+
actionType = "";
|
7
|
+
companyId = "";
|
8
|
+
displayName = "";
|
9
|
+
end_label = "";
|
10
|
+
icon = "";
|
11
|
+
id = "";
|
12
|
+
idForReport = "";
|
13
|
+
name = "";
|
14
|
+
order = 0;
|
15
|
+
require_location = false;
|
16
|
+
require_selfie = false;
|
17
|
+
startCollectionName = "";
|
18
|
+
start_label = "";
|
19
|
+
users = [];
|
20
|
+
forApproval = false;
|
21
|
+
initViaSnapshotDoc(doc) {
|
22
|
+
var _data = doc.data();
|
23
|
+
this.companyId = _data.companyId;
|
24
|
+
this.displayName = _data.displayName;
|
25
|
+
this.end_label = _data.end_label;
|
26
|
+
this.icon = _data.icon;
|
27
|
+
this.id = _data.id;
|
28
|
+
this.idForReport = _data.idForReport;
|
29
|
+
this.name = _data.name;
|
30
|
+
this.order = _data.order;
|
31
|
+
this.require_location = _data.require_location;
|
32
|
+
this.require_selfie = _data.require_selfie;
|
33
|
+
this.startCollectionName = _data.startCollectionName;
|
34
|
+
this.start_label = _data.start_label;
|
35
|
+
this.users = _data.users;
|
36
|
+
}
|
37
|
+
static ActionType = {
|
38
|
+
CICO: "checkInOut",
|
39
|
+
REPORT: "report",
|
40
|
+
WORKLOG: "worklog",
|
41
|
+
};
|
42
|
+
static async getActionByName(firestore, name, nickname) {
|
43
|
+
let companyId = await company_model_1.Company.getCompanyIdbyNickname(firestore, nickname);
|
44
|
+
const snap = await firestore
|
45
|
+
.collection("Companies")
|
46
|
+
.doc(companyId)
|
47
|
+
.collection("Actions")
|
48
|
+
.where("name", "==", name)
|
49
|
+
.get();
|
50
|
+
const data = snap.docs.map((obj) => obj.data());
|
51
|
+
return data[0];
|
52
|
+
}
|
53
|
+
static async getActionId(firestore, companyId, action) {
|
54
|
+
let user_attendance = await firestore
|
55
|
+
.collection("Companies")
|
56
|
+
.doc(companyId)
|
57
|
+
.collection("Actions")
|
58
|
+
.where("name", "==", action)
|
59
|
+
.get();
|
60
|
+
let actionId = user_attendance.docs.map((doc) => doc.data());
|
61
|
+
return actionId[0]?.id;
|
62
|
+
}
|
63
|
+
static async getActionGroupId(firestore, companyId, actionId) {
|
64
|
+
try {
|
65
|
+
let reportActionDocArr = await firestore
|
66
|
+
.collection("Companies")
|
67
|
+
.doc(companyId)
|
68
|
+
.collection("Report-Actions")
|
69
|
+
.where("id", "==", actionId)
|
70
|
+
.get();
|
71
|
+
if (reportActionDocArr.docs.length) {
|
72
|
+
const reportActionData = reportActionDocArr.docs[0].data();
|
73
|
+
return reportActionData.activityFor;
|
74
|
+
}
|
75
|
+
else {
|
76
|
+
return null;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
catch (error) {
|
80
|
+
return null;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
static async getActionIdbyDisplayName(firestore, companyId, action) {
|
84
|
+
let user_attendance = await firestore
|
85
|
+
.collection("Companies")
|
86
|
+
.doc(companyId)
|
87
|
+
.collection("Actions")
|
88
|
+
.where("displayName", "==", action)
|
89
|
+
.get();
|
90
|
+
let actionId = user_attendance.docs.map((doc) => doc.data());
|
91
|
+
return actionId[0].id;
|
92
|
+
}
|
93
|
+
static async getActionIdByDisplayName(firestore, companyId, action) {
|
94
|
+
let user_attendance = await firestore.collection('Companies').doc(companyId).collection('Actions').where('displayName', '==', action).get();
|
95
|
+
let actionId = user_attendance.docs.map((doc) => doc.data());
|
96
|
+
return actionId[0].id;
|
97
|
+
}
|
98
|
+
static async addUserIdInAction(firestore, arrayUnion, actionName, companyId, userId) {
|
99
|
+
let actionId = await Action.getActionId(firestore, companyId, actionName);
|
100
|
+
await firestore.collection('Companies').doc(companyId).collection('Actions').doc(actionId).update({
|
101
|
+
users: arrayUnion(userId)
|
102
|
+
});
|
103
|
+
return "updated";
|
104
|
+
}
|
105
|
+
static async getActionNamebyUser(firestore, companyId, UserId) {
|
106
|
+
try {
|
107
|
+
let snapshot = await firestore.collection("Companies").doc(companyId).collection('Actions').where('users', 'array-contains', UserId).get();
|
108
|
+
let actions = snapshot.docs.map((doc) => {
|
109
|
+
return doc.data().name;
|
110
|
+
});
|
111
|
+
return actions;
|
112
|
+
}
|
113
|
+
catch (error) {
|
114
|
+
throw new Error(error);
|
115
|
+
}
|
116
|
+
}
|
117
|
+
// static async getActionsByPhone(firestore:admin.firestore.Firestore,phone:string) {
|
118
|
+
// var companies = await Company.getCompanyDocByPhone(phone);
|
119
|
+
// var uid = ""; //User.getIdByPhone(phone);
|
120
|
+
// var actions = [];
|
121
|
+
// for (var company of companies) {
|
122
|
+
// var actionModel = await db
|
123
|
+
// .collection("Companies")
|
124
|
+
// .doc(company.id)
|
125
|
+
// .collection("Actions")
|
126
|
+
// .where("users", "array-contains", uid)
|
127
|
+
// .get();
|
128
|
+
// actions.push(actionModel);
|
129
|
+
// }
|
130
|
+
// return actions;
|
131
|
+
// }
|
132
|
+
static async getOrCreateAction(firestore, actionMap) {
|
133
|
+
actionMap.companyId = await company_model_1.Company.getCompanyIdbyNickname(firestore, actionMap.companyId);
|
134
|
+
var action = await firestore
|
135
|
+
.collection("Companies")
|
136
|
+
.doc(actionMap.companyId)
|
137
|
+
.collection("Actions")
|
138
|
+
.where("name", "==", actionMap.name)
|
139
|
+
.get();
|
140
|
+
if (action.empty) {
|
141
|
+
//actionMap = await Action.convertingActionDataType(actionMap)
|
142
|
+
let actionRef = firestore
|
143
|
+
.collection("Companies")
|
144
|
+
.doc(actionMap.companyId)
|
145
|
+
.collection("Actions")
|
146
|
+
.doc();
|
147
|
+
actionMap.id = actionRef.id;
|
148
|
+
if (actionMap.actionType == "report" || actionMap.actionType == "doffing" || actionMap.actionType == "folding") {
|
149
|
+
actionMap.idForReport = actionRef.id;
|
150
|
+
}
|
151
|
+
await actionRef.set({ ...actionMap });
|
152
|
+
return actionMap;
|
153
|
+
}
|
154
|
+
else {
|
155
|
+
return action.docs[0].data();
|
156
|
+
}
|
157
|
+
}
|
158
|
+
static async convertingActionDataType(data) {
|
159
|
+
if (data['order']) {
|
160
|
+
data.order = Number(data.order);
|
161
|
+
}
|
162
|
+
if (data['require_location']) {
|
163
|
+
data['require_location'] = await Action.booleanConvertion(data['require_location']);
|
164
|
+
}
|
165
|
+
if (data['require_selfie']) {
|
166
|
+
data['require_selfie'] = await Action.booleanConvertion(data['require_selfie']);
|
167
|
+
}
|
168
|
+
if (data['forApproval']) {
|
169
|
+
data['forApproval'] = await Action.booleanConvertion(data['forApproval']);
|
170
|
+
}
|
171
|
+
if (data['isFaceDetected']) {
|
172
|
+
data['isFaceDetected'] = await Action.booleanConvertion(data['isFaceDetected']);
|
173
|
+
}
|
174
|
+
return data;
|
175
|
+
}
|
176
|
+
static async booleanConvertion(value) {
|
177
|
+
if (value) {
|
178
|
+
value = (value.toLowerCase() == "true");
|
179
|
+
}
|
180
|
+
else {
|
181
|
+
value = "";
|
182
|
+
}
|
183
|
+
return value;
|
184
|
+
}
|
185
|
+
static async updateActions(firestore, arrayUnion, nickName, actionName, newDetails) {
|
186
|
+
let companyId = await company_model_1.Company.getCompanyIdbyNickname(firestore, nickName);
|
187
|
+
let actionId = await Action.getActionId(firestore, companyId, actionName);
|
188
|
+
let snapshot = await firestore.collection("Companies").doc(companyId).collection('Actions').doc(actionId);
|
189
|
+
//newDetails = await Action.convertingActionDataType(newDetails)
|
190
|
+
if (newDetails.users) {
|
191
|
+
for (let user of newDetails.users) {
|
192
|
+
console.log(user);
|
193
|
+
snapshot.update({
|
194
|
+
users: arrayUnion(user)
|
195
|
+
});
|
196
|
+
}
|
197
|
+
delete newDetails.users;
|
198
|
+
}
|
199
|
+
snapshot.update(newDetails);
|
200
|
+
return 'Updated successfully';
|
201
|
+
}
|
202
|
+
static async actionStep(firestore, nickName, actionName, actionStep) {
|
203
|
+
// actionStep = await Action.convertingActionStepsDataType(actionStep)
|
204
|
+
let companyId = await company_model_1.Company.getCompanyIdbyNickname(firestore, nickName);
|
205
|
+
let action = await Action.getActionByName(firestore, actionName, nickName);
|
206
|
+
const result = await Action.getOrCreateStep(firestore, actionStep, companyId, action);
|
207
|
+
return result;
|
208
|
+
}
|
209
|
+
static async convertingActionStepsDataType(data) {
|
210
|
+
if (data.order) {
|
211
|
+
data.order = Number(data.order);
|
212
|
+
}
|
213
|
+
if (data.field) {
|
214
|
+
if (data.field.isRequired) {
|
215
|
+
data.field.isRequired = await Action.booleanConvertion(data.field.isRequired);
|
216
|
+
}
|
217
|
+
if (data.field.isMultiline) {
|
218
|
+
data.field.isMultiline = await Action.booleanConvertion(data.field.isMultiline);
|
219
|
+
}
|
220
|
+
if (data.field.autoChangePage) {
|
221
|
+
data.field.autoChangePage = await Action.booleanConvertion(data.field.autoChangePage);
|
222
|
+
}
|
223
|
+
if (data.field.isAPICalled) {
|
224
|
+
data.field.isAPICalled = await Action.booleanConvertion(data.field.isAPICalled);
|
225
|
+
}
|
226
|
+
if (data.field.isImagePickerNeeded) {
|
227
|
+
data.field.isImagePickerNeeded = await Action.booleanConvertion(data.field.isImagePickerNeeded);
|
228
|
+
}
|
229
|
+
}
|
230
|
+
return data;
|
231
|
+
}
|
232
|
+
static async getOrCreateStep(firestore, step, companyId, action) {
|
233
|
+
let docRef = firestore
|
234
|
+
.collection("Companies")
|
235
|
+
.doc(companyId)
|
236
|
+
.collection("Actions")
|
237
|
+
.doc(action.id)
|
238
|
+
.collection(action.startCollectionName);
|
239
|
+
let snapshot = await docRef.where('label', '==', step.label).get();
|
240
|
+
if (snapshot.empty) {
|
241
|
+
let addStep_snapshot = docRef.doc();
|
242
|
+
step.id = addStep_snapshot.id;
|
243
|
+
addStep_snapshot.set({ ...step });
|
244
|
+
return step;
|
245
|
+
}
|
246
|
+
else {
|
247
|
+
return snapshot.docs[0].data();
|
248
|
+
}
|
249
|
+
}
|
250
|
+
static async updateActionsStep(firestore, nickName, actionName, actionSteps) {
|
251
|
+
let companyId = await company_model_1.Company.getCompanyIdbyNickname(firestore, nickName);
|
252
|
+
let action = await Action.getActionByName(firestore, actionName, nickName);
|
253
|
+
let snapshot = await firestore.collection('Companies').doc(companyId).collection('Actions').doc(action.id).collection(action.startCollectionName).where('label', '==', actionSteps.label).get();
|
254
|
+
if (snapshot.empty) {
|
255
|
+
return `Given data invalid`;
|
256
|
+
}
|
257
|
+
else {
|
258
|
+
snapshot.docs[0].ref.update(actionSteps);
|
259
|
+
return snapshot.docs[0].data().id;
|
260
|
+
}
|
261
|
+
}
|
262
|
+
static actionTemplate = {
|
263
|
+
actionType: "",
|
264
|
+
companyId: "",
|
265
|
+
displayName: "",
|
266
|
+
end_label: "",
|
267
|
+
icon: "",
|
268
|
+
id: "",
|
269
|
+
idForReport: "",
|
270
|
+
name: "",
|
271
|
+
order: 3,
|
272
|
+
require_location: false,
|
273
|
+
require_selfie: false,
|
274
|
+
startCollectionName: "",
|
275
|
+
start_label: "",
|
276
|
+
users: [],
|
277
|
+
};
|
278
|
+
static async deleteActionSteps(firestore, nickName, actionName, label) {
|
279
|
+
let companyId = await company_model_1.Company.getCompanyIdbyNickname(firestore, nickName);
|
280
|
+
let action = await Action.getActionByName(firestore, actionName, nickName);
|
281
|
+
let snapshot = await firestore.collection("Companies").doc(companyId).collection("Actions").doc(action.id).collection(action.startCollectionName).where('label', '==', label).get();
|
282
|
+
if (snapshot.empty) {
|
283
|
+
return `Given data invalid`;
|
284
|
+
}
|
285
|
+
else {
|
286
|
+
snapshot.docs[0].ref.delete();
|
287
|
+
return "Deleted successfully";
|
288
|
+
}
|
289
|
+
}
|
290
|
+
static async updateMeetingStatus(firestore, companyId, userId, eventId, time) {
|
291
|
+
let actionId = await Action.getActionId(firestore, companyId, "meeting");
|
292
|
+
const meetingDocRef = await firestore.collection("Companies")
|
293
|
+
.doc(companyId)
|
294
|
+
.collection("Actions")
|
295
|
+
.doc(actionId)
|
296
|
+
.collection("meetings")
|
297
|
+
.where("userId", "==", userId)
|
298
|
+
.where("eventId", "==", eventId)
|
299
|
+
.get();
|
300
|
+
if (meetingDocRef.docs.length) {
|
301
|
+
let extraData = meetingDocRef.docs[0].data().extraData;
|
302
|
+
extraData = {
|
303
|
+
...extraData,
|
304
|
+
"End Time": time
|
305
|
+
};
|
306
|
+
console.log(extraData);
|
307
|
+
meetingDocRef.forEach((doc) => {
|
308
|
+
doc.ref.update({
|
309
|
+
extraData: extraData
|
310
|
+
});
|
311
|
+
});
|
312
|
+
}
|
313
|
+
}
|
314
|
+
}
|
315
|
+
exports.Action = Action;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import * as admin from "firebase-admin";
|
2
|
+
declare class Doffing {
|
3
|
+
static doffing(firestore: admin.firestore.Firestore, doffingInfo: any, submitObject: any, status: string, infoForExtraData: any): Promise<unknown>;
|
4
|
+
static createDoffingCard(doffingInfo: any, userInfo: any, submitObject: any, status: string, infoForExtraData: any): Promise<any>;
|
5
|
+
}
|
6
|
+
export { Doffing };
|
@@ -0,0 +1,64 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Doffing = void 0;
|
4
|
+
const post_model_1 = require("../post.model");
|
5
|
+
const user_model_1 = require("../user.model");
|
6
|
+
class Doffing {
|
7
|
+
static async doffing(firestore, doffingInfo, submitObject, status, infoForExtraData) {
|
8
|
+
try {
|
9
|
+
const companyId = doffingInfo.companyId;
|
10
|
+
const userId = doffingInfo.userId;
|
11
|
+
const userInfo = await user_model_1.User.getUserInfoById(firestore, userId, companyId);
|
12
|
+
console.log("going to create doffing card object");
|
13
|
+
const doffingCardObj = await this.createDoffingCard(doffingInfo, userInfo, submitObject, status, infoForExtraData);
|
14
|
+
let eventId = await post_model_1.Post.createNewPost(firestore, doffingCardObj);
|
15
|
+
// const userRef = await Offline.createRefForUser(firestore, companyId, userId);
|
16
|
+
// console.log("sending doffing card to user");
|
17
|
+
// await userRef.set(doffingCardObj);
|
18
|
+
// console.log("sending doffing card to managers");
|
19
|
+
// await Offline.sendFeedToManagers(firestore, companyId, userId, doffingCardObj);
|
20
|
+
// await Offline.deleteInfoFromIncoming(firestore, doffingInfo.id);
|
21
|
+
// console.log("deleted doc from incoming");
|
22
|
+
return eventId;
|
23
|
+
}
|
24
|
+
catch (error) {
|
25
|
+
throw new Error(error.message);
|
26
|
+
}
|
27
|
+
}
|
28
|
+
static async createDoffingCard(doffingInfo, userInfo, submitObject, status, infoForExtraData) {
|
29
|
+
let extraData = doffingInfo.extra.extraData;
|
30
|
+
extraData.time = doffingInfo.createdAt;
|
31
|
+
extraData.userName = userInfo.name;
|
32
|
+
extraData.designNo = submitObject.designNo;
|
33
|
+
extraData.rollNo = submitObject.rollNo;
|
34
|
+
let rollNoList = submitObject.rollNo.split(",");
|
35
|
+
extraData.status = status;
|
36
|
+
extraData.lotNo = "";
|
37
|
+
extraData.date = new Date(doffingInfo.createdAt).toLocaleDateString("en-GB");
|
38
|
+
extraData.time = doffingInfo.createdAt;
|
39
|
+
const printInfo = [];
|
40
|
+
for (let rollNo of rollNoList) {
|
41
|
+
let obj = {
|
42
|
+
barcodeVal: rollNo,
|
43
|
+
design: submitObject.designNo,
|
44
|
+
isQrCode: true,
|
45
|
+
machine: submitObject.machineNo,
|
46
|
+
meter: submitObject.rollMeter,
|
47
|
+
roll: rollNo,
|
48
|
+
rpm: submitObject.rpm,
|
49
|
+
lot_no: ""
|
50
|
+
};
|
51
|
+
printInfo.push(obj);
|
52
|
+
}
|
53
|
+
extraData.toBePrinted = printInfo;
|
54
|
+
extraData = { ...extraData, ...infoForExtraData };
|
55
|
+
const doffingCard = { ...doffingInfo };
|
56
|
+
doffingCard.actionType = doffingInfo.extra.actionType;
|
57
|
+
doffingCard.actionId = doffingInfo.extra.actionId;
|
58
|
+
doffingCard.description = submitObject.machineNo;
|
59
|
+
delete doffingCard.extra;
|
60
|
+
doffingCard.extraData = extraData;
|
61
|
+
return doffingCard;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
exports.Doffing = Doffing;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import * as admin from "firebase-admin";
|
2
|
+
import { HttpResponseAndErrorHandling } from "../response.model";
|
3
|
+
declare class Folding {
|
4
|
+
static folding(firestore: admin.firestore.Firestore, foldingInfo: any): Promise<HttpResponseAndErrorHandling>;
|
5
|
+
static createFoldingCard(foldingInfo: any, userInfo: any): Promise<any>;
|
6
|
+
}
|
7
|
+
export { Folding };
|
@@ -0,0 +1,37 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Folding = void 0;
|
4
|
+
const offline_model_1 = require("../offline.model");
|
5
|
+
const response_model_1 = require("../response.model");
|
6
|
+
const user_model_1 = require("../user.model");
|
7
|
+
class Folding {
|
8
|
+
static async folding(firestore, foldingInfo) {
|
9
|
+
try {
|
10
|
+
const companyId = foldingInfo.companyId;
|
11
|
+
const userId = foldingInfo.userId;
|
12
|
+
const userInfo = await user_model_1.User.getUserInfoById(firestore, userId, companyId);
|
13
|
+
console.log("going to create folding card obj");
|
14
|
+
const foldingCardObj = await this.createFoldingCard(foldingInfo, userInfo);
|
15
|
+
const userRef = await offline_model_1.Offline.createRefForUser(firestore, companyId, userId);
|
16
|
+
console.log("Sending folding card to user");
|
17
|
+
await userRef.set(foldingCardObj);
|
18
|
+
console.log("sending folding card to managers");
|
19
|
+
await offline_model_1.Offline.sendFeedToManagers(firestore, companyId, userId, foldingCardObj);
|
20
|
+
await offline_model_1.Offline.deleteInfoFromIncoming(firestore, foldingInfo.id);
|
21
|
+
return new response_model_1.HttpResponseAndErrorHandling(200, "Done", "Successfully sent feeds", null);
|
22
|
+
}
|
23
|
+
catch (error) {
|
24
|
+
return new response_model_1.HttpResponseAndErrorHandling(400, "Failed", null, 400);
|
25
|
+
}
|
26
|
+
}
|
27
|
+
static async createFoldingCard(foldingInfo, userInfo) {
|
28
|
+
const extraData = foldingInfo.extra.extraData;
|
29
|
+
extraData.time = foldingInfo.createdAt;
|
30
|
+
extraData.userName = userInfo.name;
|
31
|
+
const foldingCard = { ...foldingInfo };
|
32
|
+
delete foldingCard.extra;
|
33
|
+
foldingCard.extraData = extraData;
|
34
|
+
return foldingCard;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
exports.Folding = Folding;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import * as admin from "firebase-admin";
|
2
|
+
import { Pool } from 'mysql2';
|
3
|
+
declare class Attendance {
|
4
|
+
static getAttendancebyUser(firestore: admin.firestore.Firestore, company: string, phone: string, from_date: string, to_date: string, isOnlyMonthRequired: boolean): Promise<{
|
5
|
+
data: any;
|
6
|
+
message: string;
|
7
|
+
}>;
|
8
|
+
static getByDateAttendancebyUser(firestore: admin.firestore.Firestore, company: string, phone: string, from_date: string, to_date: string): Promise<{
|
9
|
+
data: {
|
10
|
+
"In Time": string;
|
11
|
+
"Out Time": string;
|
12
|
+
};
|
13
|
+
message: string;
|
14
|
+
}>;
|
15
|
+
static getDatesInMonth(date: string, from_date?: string): Promise<object[]>;
|
16
|
+
static getDatesInInterval(startDate: string, endDate: string, isOnlyMonthRequired: boolean): Promise<any>;
|
17
|
+
static isStartMonth(currMonth: number, startMonth: number): boolean;
|
18
|
+
static isEndMonth(currMonth: number, endMonth: number): boolean;
|
19
|
+
static isStartYear(currYear: number, startYear: number): boolean;
|
20
|
+
static isEndYear(currYear: number, endYear: number): boolean;
|
21
|
+
static getDaysOfYear(year: number, startMonth: number, endMonth: number, startDay: number, endDay: number, yearType: string): any[];
|
22
|
+
static getDaysOfMonth(startDay: string, endDay: string): any;
|
23
|
+
static getAttendancefromFirestore(firestore: admin.firestore.Firestore, companyId: string, actionId: string, userId: string, epochFromDate: number, epochToDate: number): Promise<admin.firestore.QuerySnapshot<admin.firestore.DocumentData>>;
|
24
|
+
static convertToTimestamp(date: any): Promise<number>;
|
25
|
+
static getformateddate(timestamp: number): Promise<string[]>;
|
26
|
+
static getAttendancebyMonth(firestore: admin.firestore.Firestore, nickName: string, phone: string, month: string, year: string, fromDate?: string, toDate?: string): Promise<{
|
27
|
+
data: any;
|
28
|
+
message: string;
|
29
|
+
}>;
|
30
|
+
static getAttendanceMonthlybyTeam(firestore: admin.firestore.Firestore, nickName: string, month: string, year: string): Promise<"No employees in present company" | {
|
31
|
+
name: string;
|
32
|
+
data: any;
|
33
|
+
}[]>;
|
34
|
+
static getDailyReport(firestore: admin.firestore.Firestore, nickName: string, phoneNo: string): Promise<object[] | null>;
|
35
|
+
static getCurrentdate(): Promise<string>;
|
36
|
+
static getCurrentTime(): Promise<string>;
|
37
|
+
static uploadEntryToReportDB(attendanceConnection: Pool, info: any): Promise<void>;
|
38
|
+
static enrollWorkerFaceToDB(connection: Pool, data: any): Promise<any>;
|
39
|
+
static checkUserExist(connection: Pool, id: string): Promise<any>;
|
40
|
+
static updateExistUser(connection: Pool, data: any, id: number): Promise<any>;
|
41
|
+
static workerCheckIn(connection: Pool, enrollId: number, companyId: string, actionName: string): Promise<any>;
|
42
|
+
static cicoValidate(connection: Pool, enrollId: number, action: string): Promise<any>;
|
43
|
+
}
|
44
|
+
export { Attendance };
|