@7365admin1/core 3.30.0 → 3.31.0
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/CHANGELOG.md +6 -0
- package/dist/index.d.ts +12 -1
- package/dist/index.js +78 -22
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +109 -53
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -6022,6 +6022,12 @@ type TCreateNfcPatrolLog = {
|
|
|
6022
6022
|
createdBy?: ObjectId | string;
|
|
6023
6023
|
};
|
|
6024
6024
|
declare const schemaCreateNfcPatrolLog: Joi.ObjectSchema<any>;
|
|
6025
|
+
type TSignNfcPatrolLog = {
|
|
6026
|
+
guardName: string;
|
|
6027
|
+
guardSignatureFileId: ObjectId | string;
|
|
6028
|
+
signedAt?: Date;
|
|
6029
|
+
};
|
|
6030
|
+
declare const schemaSignNfcPatrolLog: Joi.ObjectSchema<any>;
|
|
6025
6031
|
type TNfcPatrolLog = {
|
|
6026
6032
|
_id?: ObjectId;
|
|
6027
6033
|
site: ObjectId;
|
|
@@ -6030,6 +6036,7 @@ type TNfcPatrolLog = {
|
|
|
6030
6036
|
startDateTime: Date;
|
|
6031
6037
|
endDateTime: Date;
|
|
6032
6038
|
checkPoints: TCheckPoint[];
|
|
6039
|
+
sign?: TSignNfcPatrolLog;
|
|
6033
6040
|
createdAt?: Date;
|
|
6034
6041
|
createdBy?: string | ObjectId;
|
|
6035
6042
|
};
|
|
@@ -6042,6 +6049,7 @@ declare function MNfcPatrolLog(valueArg: TNfcPatrolLog): {
|
|
|
6042
6049
|
startDateTime: any;
|
|
6043
6050
|
endDateTime: any;
|
|
6044
6051
|
checkPoints: any;
|
|
6052
|
+
sign: any;
|
|
6045
6053
|
createdAt: any;
|
|
6046
6054
|
createdBy: any;
|
|
6047
6055
|
};
|
|
@@ -6065,6 +6073,7 @@ declare function useNfcPatrolLogRepo(): {
|
|
|
6065
6073
|
}>;
|
|
6066
6074
|
getById: (id: string | ObjectId, session?: ClientSession) => Promise<mongodb.WithId<bson.Document> | null>;
|
|
6067
6075
|
updateCheckpoint: (id: string | ObjectId, checkpointIndex: number, payload: any, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
6076
|
+
sign: (id: string | ObjectId, value: TSignNfcPatrolLog, session?: ClientSession) => Promise<void>;
|
|
6068
6077
|
};
|
|
6069
6078
|
|
|
6070
6079
|
declare function useNfcPatrolLogService(): {
|
|
@@ -6081,6 +6090,7 @@ declare function useNfcPatrolLogService(): {
|
|
|
6081
6090
|
action: "complete" | "skip";
|
|
6082
6091
|
skippedRemarks?: string;
|
|
6083
6092
|
}) => Promise<string>;
|
|
6093
|
+
sign: (id: string, value: TSignNfcPatrolLog) => Promise<string>;
|
|
6084
6094
|
};
|
|
6085
6095
|
|
|
6086
6096
|
declare function useNfcPatrolLogController(): {
|
|
@@ -6088,6 +6098,7 @@ declare function useNfcPatrolLogController(): {
|
|
|
6088
6098
|
getAllBySite: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
6089
6099
|
completeCheckpoint: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
6090
6100
|
getLog: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
6101
|
+
sign: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
6091
6102
|
};
|
|
6092
6103
|
|
|
6093
6104
|
declare function useAddressRepo(): {
|
|
@@ -8042,4 +8053,4 @@ declare function useHidAmicoController(): {
|
|
|
8042
8053
|
finalizeIntercomCall: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
8043
8054
|
};
|
|
8044
8055
|
|
|
8045
|
-
export { ANPRMode, AccessTypeProps, AppServiceType, AssignCardConfig, BidStatus, BidType, BuildingLevelStatus, BuildingStatus, BulkCardUpdate, BulletinOrder, BulletinRecipient, BulletinSort, BulletinStatus, BulletinVideoOrder, BulletinVideoSort, Camera, CameraType, DEVICE_STATUS, DOBStatus, DayOfWeek, DynamicFormFields, EAccessCardTypes, EAccessCardUserTypes, EmailSender, EntryOrder, EntrySort, EventOrder, EventSort, EventStatus, EventType, FacilitySort, FacilityStatus, FormEntryStatus, GuestSort, GuestStatus, IAccessCard, IAccessCardTransaction, MAccessCard, MAccessCardTransaction, MAddress, MAttendance, MAttendanceSettings, MBidPreloved, MBillingConfiguration, MBillingItem, MBuilding, MBuildingLevel, MBuildingUnit, MBulletinBoard, MBulletinVideo, MCategoryPreloved, MChannelPreloved, MChat, MChatPreloved, MCustomer, MCustomerSite, MDocumentManagement, MEntryPassSettings, MEventManagement, MFeedback, MFile, MFormEntry, MGuestManagement, MHidAmicoEvent, MHidAmicoIdentity, MHidAmicoReader, MIncidentReport, MManpowerDesignations, MManpowerMonitoring, MManpowerRemarks, MManpowerSites, MMember, MNfcPatrolLog, MNfcPatrolRoute, MNfcPatrolSettings, MNfcPatrolSettingsUpdate, MNfcPatrolTag, MOccurrenceBook, MOccurrenceEntry, MOccurrenceSubject, MOnlineForm, MOrg, MOvernightParkingApprovalHours, MOvernightParkingRequest, MPatrolLog, MPatrolQuestion, MPatrolRoute, MPerson, MPost, MPostFavorite, MPromoCode, MRobot, MRole, MRoleV2, MServiceProvider, MServiceProviderBilling, MSession, MSite, MSiteCamera, MSiteFacility, MSiteFacilityBooking, MStatementOfAccount, MSubcategoryPreloved, MSubscription, MUnitBilling, MUser, MVehicle, MVehicleTransaction, MVerification, MVerificationV2, MVisitorTransaction, MWorkOrder, OrgNature, OvernightParkingRequestSort, OvernightParkingRequestStatus, PERSON_TYPES, PStatus, Period, PersonStatus, PersonType, PersonTypes, PostOrder, PostSort, PostStatus, QrTagProps, SiteAddress, SiteCategories, SiteStatus, SortFields, SortOrder, Status, SubjectOrder, SubjectSort, SubscriptionType, TAccessMngmntSettings, TActionStatus, TAddress, TAffectedEntities, TAffectedInjured, TAppServiceType, TApprovedBy, TApprover, TAttendance, TAttendanceCheckIn, TAttendanceCheckOut, TAttendanceCheckTime, TAttendanceLocation, TAttendanceSettings, TAttendanceSettingsGetBySite, TAuthorities, TAuthoritiesCalled, TBidPreloved, TBilling, TBillingConfiguration, TBillingItem, TBuilding, TBuildingLevel, TBuildingUnit, TBulletinBoard, TBulletinVideo, TCamera, TCategoryPreloved, TChannelPreloved, TChat, TChatPreloved, TCheckPoint$1 as TCheckPoint, TComplaintInfo, TComplaintReceivedTo, TCounter, TCreateNfcPatrolLog, TCustomer, TCustomerSite, TDayNumber, TDaySchedule, TDefaultAccessCard, TDesignations, TDocs, TDocumentCreate, TDocumentManagement, TEntryPassSettings, TEventManagement, TFeedback, TFeedbackMetadata, TFeedbackUpdate, TFeedbackUpdateCategory, TFeedbackUpdateServiceProvider, TFeedbackUpdateStatus, TFeedbackUpdateToCompleted, TFile, TFiles, TFolderUpdate, TFormEntry, TGetAttendancesByUserQuery, TGetAttendancesQuery, TGuestManagement, THidAmicoEvent, THidAmicoIdentity, THidAmicoReader, TIncidentInformation, TIncidentReport, TIncidentTypeAndTime, TInvoice, TKeyRef, TManpowerDesignations, TManpowerDesignationsUpdate, TManpowerMonitoring, TManpowerMonitoringUpdate, TManpowerRemarks, TManpowerRemarksStatusUpdate, TManpowerRemarksUpdate, TManpowerSearchFilter, TManpowerSites, TMember, TMemberUpdateStatus, TMessagePreloved, TMiniRole, TNfcPatrolLog, TNfcPatrolRoute, TNfcPatrolRouteEdit, TNfcPatrolSettings, TNfcPatrolSettingsGetBySite, TNfcPatrolSettingsUpdate, TNfcPatrolTag, TNfcPatrolTagConfigureReset, TNfcPatrolTagEdit, TNfcPatrolTagUpdateData, TOccurrenceBook, TOccurrenceEntry, TOccurrenceSubject, TOnlineForm, TOrg, TOvernightParkingApprovalHours, TOvernightParkingRequest, TPatrolLog, TPatrolQuestion, TPatrolRoute, TPerson, TPlaceOfIncident, TPlates, TPost, TPostFavorite, TPrice, TPriceType, TPromoCode, TPromoTier, TRecipientOfComplaint, TRemarks, TResident, TRobot, TRobotMetadata, TRole, TRoleV2, TRoute, TSOABillingItem, TSOAStatus, TServiceProvider, TServiceProviderBilling, TSession, TSessionCreate, TShifts, TSite, TSiteCamera, TSiteFacility, TSiteFacilityBooking, TSiteInfo, TSiteInformation, TSiteMetadata, TSiteUpdateBlock, TStatementOfAccount, TSubcategoryPreloved, TSubmissionForm, TSubscription, TUnitBilling, TUnits, TUpdateFormEntry, TUpdateName, TUser, TUserCreate, TVehicle, TVehicleTransaction, TVehicleUpdate, TVerification, TVerificationMetadata, TVerificationMetadataV2, TVerificationV2, TVisitorTransaction, TWorkOrder, TWorkOrderMetadata, TWorkOrderUpdate, TWorkOrderUpdateStatus, TWorkOrderUpdateToCompleted, TanyoneDamageToProperty, UseAccessManagementRepo, UserStatus, VehicleCategory, VehicleOrder, VehicleSort, VehicleStatus, VehicleType, VerificationLinkType, VerificationStatus, VerificationSubjectType, VerificationType, VisitorSort, VisitorStatus, addressSchema, allowedFieldsSite, allowedNatures, attendanceSchema, attendanceSettingsSchema, building_level_namespace_collection, building_units_namespace_collection, buildings_namespace_collection, bulletin_boards_namespace_collection, chatPrelovedEvents, chatSchema, createManpowerRemarksDaily, customerSchema, designationsSchema, events_namespace_collection, facility_bookings_namespace_collection, feedbackSchema, feedbacks2_namespace_collection, feedbacks_namespace_collection, formatDahuaDate, guests_namespace_collection, incidentReport, incidentReportLog, incidents_namespace_collection, logCamera, manpowerDesignationsSchema, manpowerEvents, manpowerMonitoringSchema, manpowerRemarksSchema, manpowerSitesSchema, nfcPatrolSettingsSchema, nfcPatrolSettingsSchemaUpdate, occurrence_book_namespace_collection, online_forms_namespace_collection, orgSchema, overnight_parking_requests_namespace_collection, parseDahuaFind, promoCodeSchema, remarksSchema, residentFormEntry, robotSchema, schema, schemaApprovedBy, schemaApprover, schemaBidPreloved, schemaBilling, schemaBillingConfiguration, schemaBillingItem, schemaBuilding, schemaBuildingLevel, schemaBuildingUnit, schemaBuildingUpdateOptions, schemaBulletinBoard, schemaBulletinVideo, schemaCategoryPreloved, schemaChannelPreloved, schemaChatPreloved, schemaCreateHidAmicoIdentity, schemaCreateNfcPatrolLog, schemaCustomerSite, schemaDocumentManagement, schemaEntryPassSettings, schemaEventManagement, schemaFiles, schemaFormEntry, schemaGuestManagement, schemaHidAmicoConfiguration, schemaHidAmicoEvent, schemaHidAmicoExecuteActions, schemaHidAmicoIdentity, schemaHidAmicoIdentityIdParams, schemaHidAmicoIdentityQuery, schemaHidAmicoIntercomCall, schemaHidAmicoLogQuery, schemaHidAmicoNotificationParams, schemaHidAmicoObjectOperation, schemaHidAmicoReader, schemaHidAmicoReaderIdParams, schemaHidAmicoReaderListQuery, schemaHidAmicoSetConfiguration, schemaHidAmicoSync, schemaHidAmicoUserImageParams, schemaIncidentReport, schemaMultipleDocumentManagement, schemaNfcPatrolLog, schemaNfcPatrolRoute, schemaNfcPatrolTag, schemaNfcPatrolTagUpdateData, schemaOccurrenceBook, schemaOccurrenceEntry, schemaOccurrenceSubject, schemaOnlineForm, schemaOvernightParkingApprovalHours, schemaOvernightParkingRequest, schemaPatrolLog, schemaPatrolQuestion, schemaPatrolRoute, schemaPerson, schemaPlate, schemaPost, schemaPostFavorite, schemaServiceProvider, schemaServiceProviderBilling, schemaSiteCamera, schemaSiteFacility, schemaSiteFacilityBooking, schemaStatementOfAccount, schemaSubcategoryPreloved, schemaUnitBilling, schemaUpdateBidPreloved, schemaUpdateBuildingLevel, schemaUpdateBulletinBoard, schemaUpdateBulletinVideo, schemaUpdateCategoryPreloved, schemaUpdateChatPreloved, schemaUpdateDocumentManagement, schemaUpdateEntryPassSettings, schemaUpdateEventManagement, schemaUpdateFolderManagement, schemaUpdateFormEntry, schemaUpdateGuestManagement, schemaUpdateHidAmicoIdentity, schemaUpdateHidAmicoReader, schemaUpdateIncidentReport, schemaUpdateOccurrenceBook, schemaUpdateOccurrenceEntry, schemaUpdateOccurrenceSubject, schemaUpdateOnlineForm, schemaUpdateOptions, schemaUpdateOvernightParkingRequest, schemaUpdatePatrolLog, schemaUpdatePatrolQuestion, schemaUpdatePatrolRoute, schemaUpdatePerson, schemaUpdatePost, schemaUpdatePostFavorite, schemaUpdateServiceProviderBilling, schemaUpdateSiteBillingConfiguration, schemaUpdateSiteBillingItem, schemaUpdateSiteCamera, schemaUpdateSiteFacility, schemaUpdateSiteFacilityBooking, schemaUpdateSiteUnitBilling, schemaUpdateStatementOfAccount, schemaUpdateSubcategoryPreloved, schemaUpdateVisTrans, schemaVehicleTransaction, schemaVisitorTransaction, schemeCamera, schemeLogCamera, shiftSchema, siteSchema, site_people_namespace_collection, tokenSchema, updateRemarksStatusEod, updateRemarksisAcknowledged, updateSiteSchema, useAccessManagementController, useAddressRepo, useAttendanceController, useAttendanceRepository, useAttendanceSettingsController, useAttendanceSettingsRepository, useAttendanceSettingsService, useAuthController, useAuthControllerV2, useAuthService, useAuthServiceV2, useBidPrelovedController, useBidPrelovedRepo, useBidPrelovedService, useBuildingController, useBuildingLevelController, useBuildingLevelRepo, useBuildingLevelService, useBuildingRepo, useBuildingService, useBuildingUnitController, useBuildingUnitRepo, useBuildingUnitService, useBulletinBoardController, useBulletinBoardRepo, useBulletinBoardService, useBulletinVideoController, useBulletinVideoRepo, useBulletinVideoService, useCategoryPrelovedController, useCategoryPrelovedRepo, useChannelPrelovedController, useChannelPrelovedRepo, useChatController, useChatPrelovedController, useChatPrelovedRepo, useChatPrelovedService, useChatRepo, useCounterModel, useCounterRepo, useCustomerController, useCustomerRepo, useCustomerSiteController, useCustomerSiteRepo, useCustomerSiteService, useDahuaService, useDashboardController, useDashboardRepo, useDocumentManagementController, useDocumentManagementRepo, useDocumentManagementService, useEntryPassSettingsController, useEntryPassSettingsRepo, useEventManagementController, useEventManagementRepo, useEventManagementService, useFeedbackController, useFeedbackRepo, useFeedbackService, useFileController, useFileRepo, useFileService, useFormEntryController, useFormEntryRepo, useGuestManagementController, useGuestManagementRepo, useGuestManagementService, useHidAmicoController, useHidAmicoRepo, useHidAmicoService, useHrmLabsAttendanceCtrl, useHrmLabsAttendanceSrvc, useIncidentReportController, useIncidentReportRepo, useIncidentReportService, useInvoiceController, useInvoiceModel, useInvoiceRepo, useManpowerDesignationCtrl, useManpowerDesignationRepo, useManpowerMonitoringCtrl, useManpowerMonitoringRepo, useManpowerMonitoringSrvc, useManpowerRemarkCtrl, useManpowerRemarksRepo, useManpowerSitesCtrl, useManpowerSitesRepo, useManpowerSitesSrvc, useMemberController, useMemberRepo, useMemberService, useNewDashboardController, useNewDashboardRepo, useNfcPatrolLogController, useNfcPatrolLogRepo, useNfcPatrolLogService, useNfcPatrolRouteController, useNfcPatrolRouteRepo, useNfcPatrolRouteService, useNfcPatrolSettingsController, useNfcPatrolSettingsRepository, useNfcPatrolSettingsService, useNfcPatrolTagController, useNfcPatrolTagRepo, useNfcPatrolTagService, useOccurrenceBookController, useOccurrenceBookRepo, useOccurrenceBookService, useOccurrenceEntryController, useOccurrenceEntryRepo, useOccurrenceEntryService, useOccurrenceSubjectController, useOccurrenceSubjectRepo, useOccurrenceSubjectService, useOnlineFormController, useOnlineFormRepo, useOrgController, useOrgControllerV2, useOrgRepo, useOvernightParkingController, useOvernightParkingRepo, useOvernightParkingRequestController, useOvernightParkingRequestRepo, useOvernightParkingRequestService, usePatrolLogController, usePatrolLogRepo, usePatrolQuestionController, usePatrolQuestionRepo, usePatrolRouteController, usePatrolRouteRepo, usePersonController, usePersonRepo, usePostFavoriteController, usePostFavoriteRepo, usePostFavoriteService, usePostPrelovedController, usePostPrelovedRepo, usePriceController, usePriceModel, usePriceRepo, usePromoCodeController, usePromoCodeRepo, useRedDotPaymentController, useRedDotPaymentRepo, useRedDotPaymentSvc, useRobotController, useRobotRepo, useRobotService, useRoleController, useRoleControllerV2, useRoleRepo, useRoleRepoV2, useRoleServiceV2, useServiceProviderBillingController, useServiceProviderBillingRepo, useServiceProviderBillingService, useServiceProviderController, useServiceProviderRepo, useSessionRepo, useSiteBillingConfigurationController, useSiteBillingConfigurationRepo, useSiteBillingItemController, useSiteBillingItemRepo, useSiteCameraController, useSiteCameraRepo, useSiteCameraService, useSiteController, useSiteFacilityBookingController, useSiteFacilityBookingRepo, useSiteFacilityBookingService, useSiteFacilityController, useSiteFacilityRepo, useSiteFacilityService, useSiteRepo, useSiteService, useSiteUnitBillingController, useSiteUnitBillingRepo, useSiteUnitBillingService, useStatementOfAccountController, useStatementOfAccountRepo, useSubcategoryPrelovedController, useSubcategoryPrelovedRepo, useSubscriptionController, useSubscriptionRepo, useSubscriptionService, useUserController, useUserControllerV2, useUserRepo, useUserRepoV2, useUserService, useUserServiceV2, useVehicleController, useVehicleRepo, useVehicleService, useVerificationController, useVerificationControllerV2, useVerificationRepo, useVerificationRepoV2, useVerificationService, useVerificationServiceV2, useVisitorTransactionController, useVisitorTransactionRepo, useVisitorTransactionService, useWorkOrderController, useWorkOrderRepo, useWorkOrderService, userSchema, vehicleSchema, vehicles_namespace_collection, visitors_namespace_collection, workOrderSchema, work_orders2_namespace_collection, work_orders_namespace_collection };
|
|
8056
|
+
export { ANPRMode, AccessTypeProps, AppServiceType, AssignCardConfig, BidStatus, BidType, BuildingLevelStatus, BuildingStatus, BulkCardUpdate, BulletinOrder, BulletinRecipient, BulletinSort, BulletinStatus, BulletinVideoOrder, BulletinVideoSort, Camera, CameraType, DEVICE_STATUS, DOBStatus, DayOfWeek, DynamicFormFields, EAccessCardTypes, EAccessCardUserTypes, EmailSender, EntryOrder, EntrySort, EventOrder, EventSort, EventStatus, EventType, FacilitySort, FacilityStatus, FormEntryStatus, GuestSort, GuestStatus, IAccessCard, IAccessCardTransaction, MAccessCard, MAccessCardTransaction, MAddress, MAttendance, MAttendanceSettings, MBidPreloved, MBillingConfiguration, MBillingItem, MBuilding, MBuildingLevel, MBuildingUnit, MBulletinBoard, MBulletinVideo, MCategoryPreloved, MChannelPreloved, MChat, MChatPreloved, MCustomer, MCustomerSite, MDocumentManagement, MEntryPassSettings, MEventManagement, MFeedback, MFile, MFormEntry, MGuestManagement, MHidAmicoEvent, MHidAmicoIdentity, MHidAmicoReader, MIncidentReport, MManpowerDesignations, MManpowerMonitoring, MManpowerRemarks, MManpowerSites, MMember, MNfcPatrolLog, MNfcPatrolRoute, MNfcPatrolSettings, MNfcPatrolSettingsUpdate, MNfcPatrolTag, MOccurrenceBook, MOccurrenceEntry, MOccurrenceSubject, MOnlineForm, MOrg, MOvernightParkingApprovalHours, MOvernightParkingRequest, MPatrolLog, MPatrolQuestion, MPatrolRoute, MPerson, MPost, MPostFavorite, MPromoCode, MRobot, MRole, MRoleV2, MServiceProvider, MServiceProviderBilling, MSession, MSite, MSiteCamera, MSiteFacility, MSiteFacilityBooking, MStatementOfAccount, MSubcategoryPreloved, MSubscription, MUnitBilling, MUser, MVehicle, MVehicleTransaction, MVerification, MVerificationV2, MVisitorTransaction, MWorkOrder, OrgNature, OvernightParkingRequestSort, OvernightParkingRequestStatus, PERSON_TYPES, PStatus, Period, PersonStatus, PersonType, PersonTypes, PostOrder, PostSort, PostStatus, QrTagProps, SiteAddress, SiteCategories, SiteStatus, SortFields, SortOrder, Status, SubjectOrder, SubjectSort, SubscriptionType, TAccessMngmntSettings, TActionStatus, TAddress, TAffectedEntities, TAffectedInjured, TAppServiceType, TApprovedBy, TApprover, TAttendance, TAttendanceCheckIn, TAttendanceCheckOut, TAttendanceCheckTime, TAttendanceLocation, TAttendanceSettings, TAttendanceSettingsGetBySite, TAuthorities, TAuthoritiesCalled, TBidPreloved, TBilling, TBillingConfiguration, TBillingItem, TBuilding, TBuildingLevel, TBuildingUnit, TBulletinBoard, TBulletinVideo, TCamera, TCategoryPreloved, TChannelPreloved, TChat, TChatPreloved, TCheckPoint$1 as TCheckPoint, TComplaintInfo, TComplaintReceivedTo, TCounter, TCreateNfcPatrolLog, TCustomer, TCustomerSite, TDayNumber, TDaySchedule, TDefaultAccessCard, TDesignations, TDocs, TDocumentCreate, TDocumentManagement, TEntryPassSettings, TEventManagement, TFeedback, TFeedbackMetadata, TFeedbackUpdate, TFeedbackUpdateCategory, TFeedbackUpdateServiceProvider, TFeedbackUpdateStatus, TFeedbackUpdateToCompleted, TFile, TFiles, TFolderUpdate, TFormEntry, TGetAttendancesByUserQuery, TGetAttendancesQuery, TGuestManagement, THidAmicoEvent, THidAmicoIdentity, THidAmicoReader, TIncidentInformation, TIncidentReport, TIncidentTypeAndTime, TInvoice, TKeyRef, TManpowerDesignations, TManpowerDesignationsUpdate, TManpowerMonitoring, TManpowerMonitoringUpdate, TManpowerRemarks, TManpowerRemarksStatusUpdate, TManpowerRemarksUpdate, TManpowerSearchFilter, TManpowerSites, TMember, TMemberUpdateStatus, TMessagePreloved, TMiniRole, TNfcPatrolLog, TNfcPatrolRoute, TNfcPatrolRouteEdit, TNfcPatrolSettings, TNfcPatrolSettingsGetBySite, TNfcPatrolSettingsUpdate, TNfcPatrolTag, TNfcPatrolTagConfigureReset, TNfcPatrolTagEdit, TNfcPatrolTagUpdateData, TOccurrenceBook, TOccurrenceEntry, TOccurrenceSubject, TOnlineForm, TOrg, TOvernightParkingApprovalHours, TOvernightParkingRequest, TPatrolLog, TPatrolQuestion, TPatrolRoute, TPerson, TPlaceOfIncident, TPlates, TPost, TPostFavorite, TPrice, TPriceType, TPromoCode, TPromoTier, TRecipientOfComplaint, TRemarks, TResident, TRobot, TRobotMetadata, TRole, TRoleV2, TRoute, TSOABillingItem, TSOAStatus, TServiceProvider, TServiceProviderBilling, TSession, TSessionCreate, TShifts, TSignNfcPatrolLog, TSite, TSiteCamera, TSiteFacility, TSiteFacilityBooking, TSiteInfo, TSiteInformation, TSiteMetadata, TSiteUpdateBlock, TStatementOfAccount, TSubcategoryPreloved, TSubmissionForm, TSubscription, TUnitBilling, TUnits, TUpdateFormEntry, TUpdateName, TUser, TUserCreate, TVehicle, TVehicleTransaction, TVehicleUpdate, TVerification, TVerificationMetadata, TVerificationMetadataV2, TVerificationV2, TVisitorTransaction, TWorkOrder, TWorkOrderMetadata, TWorkOrderUpdate, TWorkOrderUpdateStatus, TWorkOrderUpdateToCompleted, TanyoneDamageToProperty, UseAccessManagementRepo, UserStatus, VehicleCategory, VehicleOrder, VehicleSort, VehicleStatus, VehicleType, VerificationLinkType, VerificationStatus, VerificationSubjectType, VerificationType, VisitorSort, VisitorStatus, addressSchema, allowedFieldsSite, allowedNatures, attendanceSchema, attendanceSettingsSchema, building_level_namespace_collection, building_units_namespace_collection, buildings_namespace_collection, bulletin_boards_namespace_collection, chatPrelovedEvents, chatSchema, createManpowerRemarksDaily, customerSchema, designationsSchema, events_namespace_collection, facility_bookings_namespace_collection, feedbackSchema, feedbacks2_namespace_collection, feedbacks_namespace_collection, formatDahuaDate, guests_namespace_collection, incidentReport, incidentReportLog, incidents_namespace_collection, logCamera, manpowerDesignationsSchema, manpowerEvents, manpowerMonitoringSchema, manpowerRemarksSchema, manpowerSitesSchema, nfcPatrolSettingsSchema, nfcPatrolSettingsSchemaUpdate, occurrence_book_namespace_collection, online_forms_namespace_collection, orgSchema, overnight_parking_requests_namespace_collection, parseDahuaFind, promoCodeSchema, remarksSchema, residentFormEntry, robotSchema, schema, schemaApprovedBy, schemaApprover, schemaBidPreloved, schemaBilling, schemaBillingConfiguration, schemaBillingItem, schemaBuilding, schemaBuildingLevel, schemaBuildingUnit, schemaBuildingUpdateOptions, schemaBulletinBoard, schemaBulletinVideo, schemaCategoryPreloved, schemaChannelPreloved, schemaChatPreloved, schemaCreateHidAmicoIdentity, schemaCreateNfcPatrolLog, schemaCustomerSite, schemaDocumentManagement, schemaEntryPassSettings, schemaEventManagement, schemaFiles, schemaFormEntry, schemaGuestManagement, schemaHidAmicoConfiguration, schemaHidAmicoEvent, schemaHidAmicoExecuteActions, schemaHidAmicoIdentity, schemaHidAmicoIdentityIdParams, schemaHidAmicoIdentityQuery, schemaHidAmicoIntercomCall, schemaHidAmicoLogQuery, schemaHidAmicoNotificationParams, schemaHidAmicoObjectOperation, schemaHidAmicoReader, schemaHidAmicoReaderIdParams, schemaHidAmicoReaderListQuery, schemaHidAmicoSetConfiguration, schemaHidAmicoSync, schemaHidAmicoUserImageParams, schemaIncidentReport, schemaMultipleDocumentManagement, schemaNfcPatrolLog, schemaNfcPatrolRoute, schemaNfcPatrolTag, schemaNfcPatrolTagUpdateData, schemaOccurrenceBook, schemaOccurrenceEntry, schemaOccurrenceSubject, schemaOnlineForm, schemaOvernightParkingApprovalHours, schemaOvernightParkingRequest, schemaPatrolLog, schemaPatrolQuestion, schemaPatrolRoute, schemaPerson, schemaPlate, schemaPost, schemaPostFavorite, schemaServiceProvider, schemaServiceProviderBilling, schemaSignNfcPatrolLog, schemaSiteCamera, schemaSiteFacility, schemaSiteFacilityBooking, schemaStatementOfAccount, schemaSubcategoryPreloved, schemaUnitBilling, schemaUpdateBidPreloved, schemaUpdateBuildingLevel, schemaUpdateBulletinBoard, schemaUpdateBulletinVideo, schemaUpdateCategoryPreloved, schemaUpdateChatPreloved, schemaUpdateDocumentManagement, schemaUpdateEntryPassSettings, schemaUpdateEventManagement, schemaUpdateFolderManagement, schemaUpdateFormEntry, schemaUpdateGuestManagement, schemaUpdateHidAmicoIdentity, schemaUpdateHidAmicoReader, schemaUpdateIncidentReport, schemaUpdateOccurrenceBook, schemaUpdateOccurrenceEntry, schemaUpdateOccurrenceSubject, schemaUpdateOnlineForm, schemaUpdateOptions, schemaUpdateOvernightParkingRequest, schemaUpdatePatrolLog, schemaUpdatePatrolQuestion, schemaUpdatePatrolRoute, schemaUpdatePerson, schemaUpdatePost, schemaUpdatePostFavorite, schemaUpdateServiceProviderBilling, schemaUpdateSiteBillingConfiguration, schemaUpdateSiteBillingItem, schemaUpdateSiteCamera, schemaUpdateSiteFacility, schemaUpdateSiteFacilityBooking, schemaUpdateSiteUnitBilling, schemaUpdateStatementOfAccount, schemaUpdateSubcategoryPreloved, schemaUpdateVisTrans, schemaVehicleTransaction, schemaVisitorTransaction, schemeCamera, schemeLogCamera, shiftSchema, siteSchema, site_people_namespace_collection, tokenSchema, updateRemarksStatusEod, updateRemarksisAcknowledged, updateSiteSchema, useAccessManagementController, useAddressRepo, useAttendanceController, useAttendanceRepository, useAttendanceSettingsController, useAttendanceSettingsRepository, useAttendanceSettingsService, useAuthController, useAuthControllerV2, useAuthService, useAuthServiceV2, useBidPrelovedController, useBidPrelovedRepo, useBidPrelovedService, useBuildingController, useBuildingLevelController, useBuildingLevelRepo, useBuildingLevelService, useBuildingRepo, useBuildingService, useBuildingUnitController, useBuildingUnitRepo, useBuildingUnitService, useBulletinBoardController, useBulletinBoardRepo, useBulletinBoardService, useBulletinVideoController, useBulletinVideoRepo, useBulletinVideoService, useCategoryPrelovedController, useCategoryPrelovedRepo, useChannelPrelovedController, useChannelPrelovedRepo, useChatController, useChatPrelovedController, useChatPrelovedRepo, useChatPrelovedService, useChatRepo, useCounterModel, useCounterRepo, useCustomerController, useCustomerRepo, useCustomerSiteController, useCustomerSiteRepo, useCustomerSiteService, useDahuaService, useDashboardController, useDashboardRepo, useDocumentManagementController, useDocumentManagementRepo, useDocumentManagementService, useEntryPassSettingsController, useEntryPassSettingsRepo, useEventManagementController, useEventManagementRepo, useEventManagementService, useFeedbackController, useFeedbackRepo, useFeedbackService, useFileController, useFileRepo, useFileService, useFormEntryController, useFormEntryRepo, useGuestManagementController, useGuestManagementRepo, useGuestManagementService, useHidAmicoController, useHidAmicoRepo, useHidAmicoService, useHrmLabsAttendanceCtrl, useHrmLabsAttendanceSrvc, useIncidentReportController, useIncidentReportRepo, useIncidentReportService, useInvoiceController, useInvoiceModel, useInvoiceRepo, useManpowerDesignationCtrl, useManpowerDesignationRepo, useManpowerMonitoringCtrl, useManpowerMonitoringRepo, useManpowerMonitoringSrvc, useManpowerRemarkCtrl, useManpowerRemarksRepo, useManpowerSitesCtrl, useManpowerSitesRepo, useManpowerSitesSrvc, useMemberController, useMemberRepo, useMemberService, useNewDashboardController, useNewDashboardRepo, useNfcPatrolLogController, useNfcPatrolLogRepo, useNfcPatrolLogService, useNfcPatrolRouteController, useNfcPatrolRouteRepo, useNfcPatrolRouteService, useNfcPatrolSettingsController, useNfcPatrolSettingsRepository, useNfcPatrolSettingsService, useNfcPatrolTagController, useNfcPatrolTagRepo, useNfcPatrolTagService, useOccurrenceBookController, useOccurrenceBookRepo, useOccurrenceBookService, useOccurrenceEntryController, useOccurrenceEntryRepo, useOccurrenceEntryService, useOccurrenceSubjectController, useOccurrenceSubjectRepo, useOccurrenceSubjectService, useOnlineFormController, useOnlineFormRepo, useOrgController, useOrgControllerV2, useOrgRepo, useOvernightParkingController, useOvernightParkingRepo, useOvernightParkingRequestController, useOvernightParkingRequestRepo, useOvernightParkingRequestService, usePatrolLogController, usePatrolLogRepo, usePatrolQuestionController, usePatrolQuestionRepo, usePatrolRouteController, usePatrolRouteRepo, usePersonController, usePersonRepo, usePostFavoriteController, usePostFavoriteRepo, usePostFavoriteService, usePostPrelovedController, usePostPrelovedRepo, usePriceController, usePriceModel, usePriceRepo, usePromoCodeController, usePromoCodeRepo, useRedDotPaymentController, useRedDotPaymentRepo, useRedDotPaymentSvc, useRobotController, useRobotRepo, useRobotService, useRoleController, useRoleControllerV2, useRoleRepo, useRoleRepoV2, useRoleServiceV2, useServiceProviderBillingController, useServiceProviderBillingRepo, useServiceProviderBillingService, useServiceProviderController, useServiceProviderRepo, useSessionRepo, useSiteBillingConfigurationController, useSiteBillingConfigurationRepo, useSiteBillingItemController, useSiteBillingItemRepo, useSiteCameraController, useSiteCameraRepo, useSiteCameraService, useSiteController, useSiteFacilityBookingController, useSiteFacilityBookingRepo, useSiteFacilityBookingService, useSiteFacilityController, useSiteFacilityRepo, useSiteFacilityService, useSiteRepo, useSiteService, useSiteUnitBillingController, useSiteUnitBillingRepo, useSiteUnitBillingService, useStatementOfAccountController, useStatementOfAccountRepo, useSubcategoryPrelovedController, useSubcategoryPrelovedRepo, useSubscriptionController, useSubscriptionRepo, useSubscriptionService, useUserController, useUserControllerV2, useUserRepo, useUserRepoV2, useUserService, useUserServiceV2, useVehicleController, useVehicleRepo, useVehicleService, useVerificationController, useVerificationControllerV2, useVerificationRepo, useVerificationRepoV2, useVerificationService, useVerificationServiceV2, useVisitorTransactionController, useVisitorTransactionRepo, useVisitorTransactionService, useWorkOrderController, useWorkOrderRepo, useWorkOrderService, userSchema, vehicleSchema, vehicles_namespace_collection, visitors_namespace_collection, workOrderSchema, work_orders2_namespace_collection, work_orders_namespace_collection };
|
package/dist/index.js
CHANGED
|
@@ -6128,6 +6128,7 @@ __export(src_exports, {
|
|
|
6128
6128
|
schemaPostFavorite: () => schemaPostFavorite,
|
|
6129
6129
|
schemaServiceProvider: () => schemaServiceProvider,
|
|
6130
6130
|
schemaServiceProviderBilling: () => schemaServiceProviderBilling,
|
|
6131
|
+
schemaSignNfcPatrolLog: () => schemaSignNfcPatrolLog,
|
|
6131
6132
|
schemaSiteCamera: () => schemaSiteCamera,
|
|
6132
6133
|
schemaSiteFacility: () => schemaSiteFacility,
|
|
6133
6134
|
schemaSiteFacilityBooking: () => schemaSiteFacilityBooking,
|
|
@@ -36459,7 +36460,6 @@ function usePersonService() {
|
|
|
36459
36460
|
}
|
|
36460
36461
|
return "People added successfully.";
|
|
36461
36462
|
} catch (error) {
|
|
36462
|
-
console.log("error message service", error);
|
|
36463
36463
|
import_node_server_utils112.logger.error("Error in people service add:", error);
|
|
36464
36464
|
await session.abortTransaction();
|
|
36465
36465
|
throw error;
|
|
@@ -36616,8 +36616,8 @@ function usePersonService() {
|
|
|
36616
36616
|
phoneNumber: person.contact,
|
|
36617
36617
|
org: person.org.toString(),
|
|
36618
36618
|
site: person.site.toString(),
|
|
36619
|
-
block: person.block ?? void 0,
|
|
36620
|
-
level: person.level ?? void 0,
|
|
36619
|
+
block: person.block?.toString() ?? void 0,
|
|
36620
|
+
level: person.level?.toString() ?? void 0,
|
|
36621
36621
|
unit: person.unit?.toString() ?? void 0,
|
|
36622
36622
|
nric: person.nric,
|
|
36623
36623
|
status: "active",
|
|
@@ -51464,6 +51464,11 @@ var schemaCreateNfcPatrolLog = import_joi89.default.object({
|
|
|
51464
51464
|
startTime: import_joi89.default.string().required(),
|
|
51465
51465
|
createdBy: import_joi89.default.string().length(24).hex().optional().allow("", null)
|
|
51466
51466
|
});
|
|
51467
|
+
var schemaSignNfcPatrolLog = import_joi89.default.object({
|
|
51468
|
+
guardName: import_joi89.default.string().required(),
|
|
51469
|
+
guardSignatureFileId: import_joi89.default.string().length(24).hex().required(),
|
|
51470
|
+
signedAt: import_joi89.default.date().optional()
|
|
51471
|
+
});
|
|
51467
51472
|
var schemaNfcPatrolLog = import_joi89.default.object({
|
|
51468
51473
|
_id: import_joi89.default.string().length(24).hex().optional().allow(null, ""),
|
|
51469
51474
|
site: import_joi89.default.string().length(24).hex().required(),
|
|
@@ -51502,6 +51507,7 @@ var schemaNfcPatrolLog = import_joi89.default.object({
|
|
|
51502
51507
|
skippedRemarks: import_joi89.default.string().required()
|
|
51503
51508
|
})
|
|
51504
51509
|
).min(0).required(),
|
|
51510
|
+
sign: schemaSignNfcPatrolLog.optional(),
|
|
51505
51511
|
createdBy: import_joi89.default.string().length(24).hex().optional().allow(null, ""),
|
|
51506
51512
|
createdAt: import_joi89.default.date().optional()
|
|
51507
51513
|
});
|
|
@@ -51537,6 +51543,15 @@ function MNfcPatrolLog(valueArg) {
|
|
|
51537
51543
|
throw new import_node_server_utils163.BadRequestError("Invalid route _id format");
|
|
51538
51544
|
}
|
|
51539
51545
|
}
|
|
51546
|
+
if (value.sign?.guardSignatureFileId) {
|
|
51547
|
+
try {
|
|
51548
|
+
value.sign.guardSignatureFileId = new import_mongodb100.ObjectId(
|
|
51549
|
+
value.sign.guardSignatureFileId
|
|
51550
|
+
);
|
|
51551
|
+
} catch {
|
|
51552
|
+
throw new import_node_server_utils163.BadRequestError("Invalid guardSignatureFileId format");
|
|
51553
|
+
}
|
|
51554
|
+
}
|
|
51540
51555
|
return {
|
|
51541
51556
|
_id: value._id ?? new import_mongodb100.ObjectId(),
|
|
51542
51557
|
site: value.site,
|
|
@@ -51545,6 +51560,7 @@ function MNfcPatrolLog(valueArg) {
|
|
|
51545
51560
|
startDateTime: value.startDateTime,
|
|
51546
51561
|
endDateTime: value.endDateTime,
|
|
51547
51562
|
checkPoints: value.checkPoints,
|
|
51563
|
+
sign: value.sign,
|
|
51548
51564
|
createdAt: value.createdAt ?? /* @__PURE__ */ new Date(),
|
|
51549
51565
|
createdBy: value.createdBy ?? void 0
|
|
51550
51566
|
};
|
|
@@ -52995,8 +53011,8 @@ function useStatementOfAccountRepo() {
|
|
|
52995
53011
|
async function createIndexes() {
|
|
52996
53012
|
try {
|
|
52997
53013
|
await collection.createIndexes([
|
|
52998
|
-
{ key: { site: 1, status: 1 } },
|
|
52999
|
-
{ key: { site: 1, unitId: 1, status: 1 } },
|
|
53014
|
+
{ key: { site: 1, status: 1, createdAt: -1 } },
|
|
53015
|
+
{ key: { site: 1, unitId: 1, status: 1, createdAt: -1 } },
|
|
53000
53016
|
{ key: { createdAt: -1 } }
|
|
53001
53017
|
]);
|
|
53002
53018
|
return `Successfully created indexes for ${namespace_collection}.`;
|
|
@@ -53062,12 +53078,7 @@ function useStatementOfAccountRepo() {
|
|
|
53062
53078
|
let endDate = new Date(dateTo);
|
|
53063
53079
|
endDate.setHours(23, 59, 59, 999);
|
|
53064
53080
|
dateExpr = {
|
|
53065
|
-
$
|
|
53066
|
-
$and: [
|
|
53067
|
-
{ $gte: ["$createdAt", startDate] },
|
|
53068
|
-
{ $lte: ["$createdAt", endDate] }
|
|
53069
|
-
]
|
|
53070
|
-
}
|
|
53081
|
+
createdAt: { $gte: startDate, $lte: endDate }
|
|
53071
53082
|
};
|
|
53072
53083
|
}
|
|
53073
53084
|
const unitSearchRegex = search ? search.trim().replace(/\s+/g, "").replace(/\//g, "\\s*/\\s*") : null;
|
|
@@ -53252,12 +53263,7 @@ function useStatementOfAccountRepo() {
|
|
|
53252
53263
|
let endDate = new Date(dateTo);
|
|
53253
53264
|
endDate.setHours(23, 59, 59, 999);
|
|
53254
53265
|
dateExpr = {
|
|
53255
|
-
$
|
|
53256
|
-
$and: [
|
|
53257
|
-
{ $gte: ["$createdAt", startDate] },
|
|
53258
|
-
{ $lte: ["$createdAt", endDate] }
|
|
53259
|
-
]
|
|
53260
|
-
}
|
|
53266
|
+
createdAt: { $gte: startDate, $lte: endDate }
|
|
53261
53267
|
};
|
|
53262
53268
|
}
|
|
53263
53269
|
const unitSearchRegex = search ? search.trim().replace(/\s+/g, "").replace(/\//g, "\\s*/\\s*") : null;
|
|
@@ -58221,12 +58227,28 @@ function useNfcPatrolLogRepo() {
|
|
|
58221
58227
|
delCachedData();
|
|
58222
58228
|
return res;
|
|
58223
58229
|
}
|
|
58230
|
+
async function sign(id, value, session) {
|
|
58231
|
+
id = new import_mongodb121.ObjectId(id);
|
|
58232
|
+
await collection.updateOne(
|
|
58233
|
+
{ _id: id },
|
|
58234
|
+
{
|
|
58235
|
+
$set: {
|
|
58236
|
+
sign: {
|
|
58237
|
+
...value,
|
|
58238
|
+
signedAt: /* @__PURE__ */ new Date()
|
|
58239
|
+
}
|
|
58240
|
+
}
|
|
58241
|
+
},
|
|
58242
|
+
{ session }
|
|
58243
|
+
);
|
|
58244
|
+
}
|
|
58224
58245
|
return {
|
|
58225
58246
|
createIndexes,
|
|
58226
58247
|
add,
|
|
58227
58248
|
getAllBySite,
|
|
58228
58249
|
getById,
|
|
58229
|
-
updateCheckpoint
|
|
58250
|
+
updateCheckpoint,
|
|
58251
|
+
sign
|
|
58230
58252
|
};
|
|
58231
58253
|
}
|
|
58232
58254
|
|
|
@@ -58237,7 +58259,8 @@ function useNfcPatrolLogService() {
|
|
|
58237
58259
|
add: _add,
|
|
58238
58260
|
getById,
|
|
58239
58261
|
updateCheckpoint,
|
|
58240
|
-
getAllBySite: _getAllBySite
|
|
58262
|
+
getAllBySite: _getAllBySite,
|
|
58263
|
+
sign: repoSign
|
|
58241
58264
|
} = useNfcPatrolLogRepo();
|
|
58242
58265
|
const routeRepo = useNfcPatrolRouteRepo();
|
|
58243
58266
|
const tagRepo = useNfcPatrolTagRepo();
|
|
@@ -58373,9 +58396,26 @@ function useNfcPatrolLogService() {
|
|
|
58373
58396
|
await session?.endSession();
|
|
58374
58397
|
}
|
|
58375
58398
|
}
|
|
58399
|
+
async function sign(id, value) {
|
|
58400
|
+
const log = await getById(id);
|
|
58401
|
+
if (!log) {
|
|
58402
|
+
throw new import_node_server_utils199.NotFoundError("Patrol log not found.");
|
|
58403
|
+
}
|
|
58404
|
+
const canSign = log.checkPoints.every(
|
|
58405
|
+
(c) => c.status === "Completed" || c.status === "Skipped"
|
|
58406
|
+
);
|
|
58407
|
+
if (!canSign) {
|
|
58408
|
+
throw new import_node_server_utils199.BadRequestError(
|
|
58409
|
+
"All checkpoints must be completed or skipped before signing."
|
|
58410
|
+
);
|
|
58411
|
+
}
|
|
58412
|
+
await repoSign(id, value);
|
|
58413
|
+
return "Successfully signed patrol.";
|
|
58414
|
+
}
|
|
58376
58415
|
return {
|
|
58377
58416
|
add,
|
|
58378
|
-
completeCheckpoint
|
|
58417
|
+
completeCheckpoint,
|
|
58418
|
+
sign
|
|
58379
58419
|
};
|
|
58380
58420
|
}
|
|
58381
58421
|
|
|
@@ -58383,7 +58423,7 @@ function useNfcPatrolLogService() {
|
|
|
58383
58423
|
var import_node_server_utils200 = require("@7365admin1/node-server-utils");
|
|
58384
58424
|
var import_joi111 = __toESM(require("joi"));
|
|
58385
58425
|
function useNfcPatrolLogController() {
|
|
58386
|
-
const { add: _add, completeCheckpoint: _completeCheckpoint } = useNfcPatrolLogService();
|
|
58426
|
+
const { add: _add, completeCheckpoint: _completeCheckpoint, sign: _sign } = useNfcPatrolLogService();
|
|
58387
58427
|
const { getAllBySite: _getAllBySite, getById: _getById } = useNfcPatrolLogRepo();
|
|
58388
58428
|
async function add(req, res, next) {
|
|
58389
58429
|
try {
|
|
@@ -58475,11 +58515,26 @@ function useNfcPatrolLogController() {
|
|
|
58475
58515
|
next(error);
|
|
58476
58516
|
}
|
|
58477
58517
|
}
|
|
58518
|
+
async function sign(req, res, next) {
|
|
58519
|
+
try {
|
|
58520
|
+
const value = await schemaSignNfcPatrolLog.validateAsync(req.body);
|
|
58521
|
+
const result = await _sign(
|
|
58522
|
+
req.params.id,
|
|
58523
|
+
value
|
|
58524
|
+
);
|
|
58525
|
+
res.json({
|
|
58526
|
+
message: result
|
|
58527
|
+
});
|
|
58528
|
+
} catch (err) {
|
|
58529
|
+
next(err);
|
|
58530
|
+
}
|
|
58531
|
+
}
|
|
58478
58532
|
return {
|
|
58479
58533
|
add,
|
|
58480
58534
|
getAllBySite,
|
|
58481
58535
|
completeCheckpoint,
|
|
58482
|
-
getLog
|
|
58536
|
+
getLog,
|
|
58537
|
+
sign
|
|
58483
58538
|
};
|
|
58484
58539
|
}
|
|
58485
58540
|
|
|
@@ -71760,6 +71815,7 @@ function useHidAmicoController() {
|
|
|
71760
71815
|
schemaPostFavorite,
|
|
71761
71816
|
schemaServiceProvider,
|
|
71762
71817
|
schemaServiceProviderBilling,
|
|
71818
|
+
schemaSignNfcPatrolLog,
|
|
71763
71819
|
schemaSiteCamera,
|
|
71764
71820
|
schemaSiteFacility,
|
|
71765
71821
|
schemaSiteFacilityBooking,
|