@7365admin1/core 2.65.0 → 2.66.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 +75 -13
- package/dist/index.js +1636 -626
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1635 -626
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -91,6 +91,13 @@ type TUser = {
|
|
|
91
91
|
defaultOrg?: string | ObjectId;
|
|
92
92
|
status?: string;
|
|
93
93
|
sid?: string;
|
|
94
|
+
block?: number | null;
|
|
95
|
+
level?: string;
|
|
96
|
+
type?: string;
|
|
97
|
+
unitName?: string;
|
|
98
|
+
contact?: string;
|
|
99
|
+
site?: string | ObjectId;
|
|
100
|
+
unitId?: string | ObjectId;
|
|
94
101
|
createdAt?: string;
|
|
95
102
|
updatedAt?: string;
|
|
96
103
|
deletedAt?: string;
|
|
@@ -102,7 +109,14 @@ declare function MUser(value: TUser): {
|
|
|
102
109
|
password: string;
|
|
103
110
|
name: string;
|
|
104
111
|
defaultOrg: string | ObjectId;
|
|
105
|
-
status:
|
|
112
|
+
status: string;
|
|
113
|
+
block: number | null;
|
|
114
|
+
level: string;
|
|
115
|
+
type: string;
|
|
116
|
+
unitName: string;
|
|
117
|
+
contact: string;
|
|
118
|
+
site: string | ObjectId;
|
|
119
|
+
unitId: string | ObjectId;
|
|
106
120
|
createdAt: string;
|
|
107
121
|
updatedAt: string;
|
|
108
122
|
deletedAt: string;
|
|
@@ -541,6 +555,7 @@ declare function useOrgRepo(): {
|
|
|
541
555
|
}, session?: ClientSession) => Promise<string>;
|
|
542
556
|
updateStatusById: (_id: string | ObjectId, status: string) => Promise<string>;
|
|
543
557
|
deleteById: (_id: string | ObjectId) => Promise<string>;
|
|
558
|
+
getOrgsByEmail: (email: string) => Promise<TOrg[]>;
|
|
544
559
|
};
|
|
545
560
|
|
|
546
561
|
declare function useOrgController(): {
|
|
@@ -552,6 +567,7 @@ declare function useOrgController(): {
|
|
|
552
567
|
getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
553
568
|
getByEmail: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
554
569
|
update: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
570
|
+
getOrgsByEmail: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
555
571
|
};
|
|
556
572
|
|
|
557
573
|
/**
|
|
@@ -704,8 +720,8 @@ declare const TPrice: z.ZodObject<{
|
|
|
704
720
|
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
705
721
|
}, "strip", z.ZodTypeAny, {
|
|
706
722
|
name: string;
|
|
707
|
-
value: number;
|
|
708
723
|
type: "one-time-payment" | "other" | "monthly-subscription" | "yearly-subscription";
|
|
724
|
+
value: number;
|
|
709
725
|
createdAt?: Date | undefined;
|
|
710
726
|
_id?: ObjectId | undefined;
|
|
711
727
|
updatedAt?: Date | undefined;
|
|
@@ -716,10 +732,10 @@ declare const TPrice: z.ZodObject<{
|
|
|
716
732
|
name: string;
|
|
717
733
|
createdAt?: Date | undefined;
|
|
718
734
|
_id?: string | ObjectId | undefined;
|
|
735
|
+
type?: "one-time-payment" | "other" | "monthly-subscription" | "yearly-subscription" | undefined;
|
|
719
736
|
updatedAt?: Date | undefined;
|
|
720
737
|
deletedAt?: Date | undefined;
|
|
721
738
|
value?: number | undefined;
|
|
722
|
-
type?: "one-time-payment" | "other" | "monthly-subscription" | "yearly-subscription" | undefined;
|
|
723
739
|
saleValue?: number | undefined;
|
|
724
740
|
saleExpiry?: Date | undefined;
|
|
725
741
|
}>;
|
|
@@ -727,8 +743,8 @@ type TPrice = z.infer<typeof TPrice>;
|
|
|
727
743
|
declare function usePriceModel(db: Db): {
|
|
728
744
|
createPrice: (value: Pick<TPrice, "type" | "name" | "value">) => {
|
|
729
745
|
name: string;
|
|
730
|
-
value: number;
|
|
731
746
|
type: "one-time-payment" | "other" | "monthly-subscription" | "yearly-subscription";
|
|
747
|
+
value: number;
|
|
732
748
|
createdAt?: Date | undefined;
|
|
733
749
|
_id?: ObjectId | undefined;
|
|
734
750
|
updatedAt?: Date | undefined;
|
|
@@ -740,16 +756,16 @@ declare function usePriceModel(db: Db): {
|
|
|
740
756
|
name: string;
|
|
741
757
|
createdAt?: Date | undefined;
|
|
742
758
|
_id?: string | ObjectId | undefined;
|
|
759
|
+
type?: "one-time-payment" | "other" | "monthly-subscription" | "yearly-subscription" | undefined;
|
|
743
760
|
updatedAt?: Date | undefined;
|
|
744
761
|
deletedAt?: Date | undefined;
|
|
745
762
|
value?: number | undefined;
|
|
746
|
-
type?: "one-time-payment" | "other" | "monthly-subscription" | "yearly-subscription" | undefined;
|
|
747
763
|
saleValue?: number | undefined;
|
|
748
764
|
saleExpiry?: Date | undefined;
|
|
749
765
|
}, {
|
|
750
766
|
name: string;
|
|
751
|
-
value: number;
|
|
752
767
|
type: "one-time-payment" | "other" | "monthly-subscription" | "yearly-subscription";
|
|
768
|
+
value: number;
|
|
753
769
|
createdAt?: Date | undefined;
|
|
754
770
|
_id?: ObjectId | undefined;
|
|
755
771
|
updatedAt?: Date | undefined;
|
|
@@ -759,8 +775,8 @@ declare function usePriceModel(db: Db): {
|
|
|
759
775
|
}>;
|
|
760
776
|
collection: Collection<{
|
|
761
777
|
name: string;
|
|
762
|
-
value: number;
|
|
763
778
|
type: "one-time-payment" | "other" | "monthly-subscription" | "yearly-subscription";
|
|
779
|
+
value: number;
|
|
764
780
|
createdAt?: Date | undefined;
|
|
765
781
|
_id?: ObjectId | undefined;
|
|
766
782
|
updatedAt?: Date | undefined;
|
|
@@ -974,6 +990,7 @@ declare const TInvoice: z.ZodObject<{
|
|
|
974
990
|
createdAt?: Date | undefined;
|
|
975
991
|
_id?: string | ObjectId | undefined;
|
|
976
992
|
status?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
993
|
+
type?: "organization-subscription" | "affiliate-subscription" | "one-time-payment" | "other" | undefined;
|
|
977
994
|
updatedAt?: Date | undefined;
|
|
978
995
|
metadata?: {
|
|
979
996
|
description?: string | undefined;
|
|
@@ -983,7 +1000,6 @@ declare const TInvoice: z.ZodObject<{
|
|
|
983
1000
|
billingCycle?: "monthly" | "yearly" | "quarterly" | undefined;
|
|
984
1001
|
subscriptionId?: string | ObjectId | undefined;
|
|
985
1002
|
} | undefined;
|
|
986
|
-
type?: "organization-subscription" | "affiliate-subscription" | "one-time-payment" | "other" | undefined;
|
|
987
1003
|
descriptions?: string | undefined;
|
|
988
1004
|
}>;
|
|
989
1005
|
type TInvoice = z.infer<typeof TInvoice>;
|
|
@@ -4722,7 +4738,7 @@ declare function UseAccessManagementRepo(): {
|
|
|
4722
4738
|
site: string;
|
|
4723
4739
|
}) => Promise<bson.Document[]>;
|
|
4724
4740
|
indexCombination: () => Promise<string>;
|
|
4725
|
-
getTransactionsRepo: ({ page, limit, site, cardNo, url }: {
|
|
4741
|
+
getTransactionsRepo: ({ page, limit, site, cardNo, url, }: {
|
|
4726
4742
|
page: number;
|
|
4727
4743
|
limit: number;
|
|
4728
4744
|
site: string | ObjectId;
|
|
@@ -4733,7 +4749,7 @@ declare function UseAccessManagementRepo(): {
|
|
|
4733
4749
|
pages: number;
|
|
4734
4750
|
pageRange: string;
|
|
4735
4751
|
}>;
|
|
4736
|
-
assignMultipleCardsRepo: ({ assignees, unit, type, acm_url }: {
|
|
4752
|
+
assignMultipleCardsRepo: ({ assignees, unit, type, acm_url, }: {
|
|
4737
4753
|
assignees: string[] | ObjectId[];
|
|
4738
4754
|
unit: string | ObjectId;
|
|
4739
4755
|
type: string;
|
|
@@ -4742,11 +4758,16 @@ declare function UseAccessManagementRepo(): {
|
|
|
4742
4758
|
visitorCheckoutRepo: ({ userId }: {
|
|
4743
4759
|
userId: string;
|
|
4744
4760
|
}) => Promise<string>;
|
|
4745
|
-
uploadTemplateRepo: ({ site, id, name }: {
|
|
4761
|
+
uploadTemplateRepo: ({ site, id, name, }: {
|
|
4746
4762
|
site: string | ObjectId;
|
|
4747
4763
|
id: string | ObjectId;
|
|
4748
4764
|
name: string;
|
|
4749
4765
|
}) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
4766
|
+
getResidentsRepo: ({ orgId, siteId, unitId, }: {
|
|
4767
|
+
orgId: string | ObjectId;
|
|
4768
|
+
siteId: string | ObjectId;
|
|
4769
|
+
unitId: string | ObjectId;
|
|
4770
|
+
}) => Promise<bson.Document[]>;
|
|
4750
4771
|
};
|
|
4751
4772
|
|
|
4752
4773
|
declare function useAccessManagementController(): {
|
|
@@ -4780,7 +4801,7 @@ declare function useAccessManagementController(): {
|
|
|
4780
4801
|
addVisitorAccessCard: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4781
4802
|
signQrCode: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4782
4803
|
checkoutVisitor: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4783
|
-
removeAccessCard: ({ cardNo, staffNo, url }: {
|
|
4804
|
+
removeAccessCard: ({ cardNo, staffNo, url, }: {
|
|
4784
4805
|
cardNo: string;
|
|
4785
4806
|
staffNo: string;
|
|
4786
4807
|
url: string;
|
|
@@ -4790,6 +4811,7 @@ declare function useAccessManagementController(): {
|
|
|
4790
4811
|
assignMultipleCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4791
4812
|
visitorCheckout: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4792
4813
|
uploadTemplate: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4814
|
+
getResidents: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4793
4815
|
};
|
|
4794
4816
|
|
|
4795
4817
|
declare const DEVICE_STATUS: {
|
|
@@ -6893,4 +6915,44 @@ declare function usePostPrelovedController(): {
|
|
|
6893
6915
|
updateStatus: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
6894
6916
|
};
|
|
6895
6917
|
|
|
6896
|
-
export { ANPRMode, AccessTypeProps, AppServiceType, AssignCardConfig, BuildingStatus, BulkCardUpdate, BulletinOrder, BulletinRecipient, BulletinSort, BulletinStatus, BulletinVideoOrder, BulletinVideoSort, Camera, CameraType, DEVICE_STATUS, DOBStatus, DayOfWeek, EAccessCardTypes, EAccessCardUserTypes, EmailSender, EntryOrder, EntrySort, EventOrder, EventSort, EventStatus, EventType, FacilitySort, FacilityStatus, GuestSort, GuestStatus, IAccessCard, IAccessCardTransaction, MAccessCard, MAccessCardTransaction, MAddress, MAttendance, MAttendanceSettings, MBillingConfiguration, MBillingItem, MBuilding, MBuildingUnit, MBulletinBoard, MBulletinVideo, MChat, MCustomer, MCustomerSite, MDocumentManagement, MEntryPassSettings, MEventManagement, MFeedback, MFile, MGuestManagement, MIncidentReport, MManpowerDesignations, MManpowerMonitoring, MManpowerRemarks, MManpowerSites, MMember, MNfcPatrolLog, MNfcPatrolRoute, MNfcPatrolSettings, MNfcPatrolSettingsUpdate, MNfcPatrolTag, MOccurrenceBook, MOccurrenceEntry, MOccurrenceSubject, MOnlineForm, MOrg, MOvernightParkingApprovalHours, MOvernightParkingRequest, MPatrolLog, MPatrolQuestion, MPatrolRoute, MPerson, MPost, MPromoCode, MRobot, MRole, MRoleV2, MServiceProvider, MServiceProviderBilling, MSession, MSite, MSiteCamera, MSiteFacility, MSiteFacilityBooking, MStatementOfAccount, MSubscription, MUnitBilling, MUser, MVehicle, MVehicleTransaction, MVerification, MVerificationV2, MVisitorTransaction, MWorkOrder, OrgNature, OvernightParkingRequestSort, OvernightParkingRequestStatus, PERSON_TYPES, PMDashboardCollection, 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, TBilling, TBillingConfiguration, TBillingItem, TBuilding, TBuildingUnit, TBulletinBoard, TBulletinVideo, TCamera, TChat, TCheckPoint$1 as TCheckPoint, TComplaintInfo, TComplaintReceivedTo, TCounter, TCustomer, TCustomerSite, TDayNumber, TDaySchedule, TDefaultAccessCard, TDesignations, TDocs, TDocumentManagement, TEntryPassSettings, TEventManagement, TFeedback, TFeedbackMetadata, TFeedbackUpdate, TFeedbackUpdateCategory, TFeedbackUpdateServiceProvider, TFeedbackUpdateStatus, TFeedbackUpdateToCompleted, TFile, TFiles, TGetAttendancesByUserQuery, TGetAttendancesQuery, TGuestManagement, TIncidentInformation, TIncidentReport, TIncidentTypeAndTime, TInvoice, TKeyRef, TManpowerDesignations, TManpowerDesignationsUpdate, TManpowerMonitoring, TManpowerMonitoringUpdate, TManpowerRemarks, TManpowerRemarksStatusUpdate, TManpowerRemarksUpdate, TManpowerSearchFilter, TManpowerSites, TMember, TMemberUpdateStatus, 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, 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, TSubmissionForm, TSubscription, TUnitBilling, TUnits, 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_units_namespace_collection, buildings_namespace_collection, bulletin_boards_namespace_collection, calculatePercentage, chatSchema, createManpowerRemarksDaily, customerSchema, designationsSchema, events_namespace_collection, facility_bookings_namespace_collection, feedbackSchema, feedbacks2_namespace_collection, feedbacks_namespace_collection, formatDahuaDate, getPeriodRangeWithPrevious, guests_namespace_collection, incidentReport, incidentReportLog, incidents_namespace_collection, landscapeDashboardCollection, logCamera, mAndEDashboardCollection, manpowerDesignationsSchema, manpowerEvents, manpowerMonitoringSchema, manpowerRemarksSchema, manpowerSitesSchema, nfcPatrolSettingsSchema, nfcPatrolSettingsSchemaUpdate, occurrence_book_namespace_collection, orgSchema, overnight_parking_requests_namespace_collection, parseDahuaFind, pestDashboardCollection, poolDashboardCollection, promoCodeSchema, remarksSchema, robotSchema, schema, schemaApprovedBy, schemaApprover, schemaBilling, schemaBillingConfiguration, schemaBillingItem, schemaBuilding, schemaBuildingUnit, schemaBuildingUpdateOptions, schemaBulletinBoard, schemaBulletinVideo, schemaCustomerSite, schemaDocumentManagement, schemaEntryPassSettings, schemaEventManagement, schemaFiles, schemaGuestManagement, schemaIncidentReport, schemaNfcPatrolLog, schemaNfcPatrolRoute, schemaNfcPatrolTag, schemaNfcPatrolTagUpdateData, schemaOccurrenceBook, schemaOccurrenceEntry, schemaOccurrenceSubject, schemaOnlineForm, schemaOvernightParkingApprovalHours, schemaOvernightParkingRequest, schemaPatrolLog, schemaPatrolQuestion, schemaPatrolRoute, schemaPerson, schemaPlate, schemaPost, schemaServiceProvider, schemaServiceProviderBilling, schemaSiteCamera, schemaSiteFacility, schemaSiteFacilityBooking, schemaStatementOfAccount, schemaUnitBilling, schemaUpdateBulletinBoard, schemaUpdateBulletinVideo, schemaUpdateDocumentManagement, schemaUpdateEntryPassSettings, schemaUpdateEventManagement, schemaUpdateGuestManagement, schemaUpdateIncidentReport, schemaUpdateOccurrenceBook, schemaUpdateOccurrenceEntry, schemaUpdateOccurrenceSubject, schemaUpdateOnlineForm, schemaUpdateOptions, schemaUpdateOvernightParkingRequest, schemaUpdatePatrolLog, schemaUpdatePatrolQuestion, schemaUpdatePatrolRoute, schemaUpdatePerson, schemaUpdatePost, schemaUpdateServiceProviderBilling, schemaUpdateSiteBillingConfiguration, schemaUpdateSiteBillingItem, schemaUpdateSiteCamera, schemaUpdateSiteFacility, schemaUpdateSiteFacilityBooking, schemaUpdateSiteUnitBilling, schemaUpdateStatementOfAccount, schemaUpdateVisTrans, schemaVehicleTransaction, schemaVisitorTransaction, schemeCamera, schemeLogCamera, securityDashboardCollection, shiftSchema, siteSchema, site_people_namespace_collection, tokenSchema, updateRemarksStatusEod, updateRemarksisAcknowledged, updateSiteSchema, useAccessManagementController, useAddressRepo, useAttendanceController, useAttendanceRepository, useAttendanceSettingsController, useAttendanceSettingsRepository, useAttendanceSettingsService, useAuthController, useAuthControllerV2, useAuthService, useAuthServiceV2, useBuildingController, useBuildingRepo, useBuildingService, useBuildingUnitController, useBuildingUnitRepo, useBuildingUnitService, useBulletinBoardController, useBulletinBoardRepo, useBulletinBoardService, useBulletinVideoController, useBulletinVideoRepo, useBulletinVideoService, useChatController, 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, useGuestManagementController, useGuestManagementRepo, useGuestManagementService, useHrmLabsAttendanceCtrl, useHrmLabsAttendanceSrvc, useIncidentReportController, useIncidentReportRepo, useIncidentReportService, useInvoiceController, useInvoiceModel, useInvoiceRepo, useManpowerDesignationCtrl, useManpowerDesignationRepo, useManpowerMonitoringCtrl, useManpowerMonitoringRepo, useManpowerMonitoringSrvc, useManpowerRemarkCtrl, useManpowerRemarksRepo, useManpowerSitesCtrl, useManpowerSitesRepo, useManpowerSitesSrvc, useMemberController, useMemberRepo, 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, 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, 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 };
|
|
6918
|
+
declare enum FormEntryStatus {
|
|
6919
|
+
ACTIVE = "active",
|
|
6920
|
+
INACTIVE = "inactive",
|
|
6921
|
+
DELETED = "deleted"
|
|
6922
|
+
}
|
|
6923
|
+
type TFormEntry = {
|
|
6924
|
+
_id?: ObjectId;
|
|
6925
|
+
formType: string;
|
|
6926
|
+
fields: Record<string, string | number | boolean | null>;
|
|
6927
|
+
status?: string;
|
|
6928
|
+
org?: string | ObjectId;
|
|
6929
|
+
site?: string | ObjectId;
|
|
6930
|
+
createdAt?: Date;
|
|
6931
|
+
updatedAt?: Date | null;
|
|
6932
|
+
deletedAt?: Date | null;
|
|
6933
|
+
};
|
|
6934
|
+
declare const schemaFormEntry: Joi.ObjectSchema<any>;
|
|
6935
|
+
declare const schemaUpdateFormEntry: Joi.ObjectSchema<any>;
|
|
6936
|
+
declare function MFormEntry(value: TFormEntry): {
|
|
6937
|
+
_id: ObjectId | undefined;
|
|
6938
|
+
formType: string;
|
|
6939
|
+
fields: Record<string, string | number | boolean | null>;
|
|
6940
|
+
status: string | undefined;
|
|
6941
|
+
org: string | ObjectId | undefined;
|
|
6942
|
+
site: string | ObjectId | undefined;
|
|
6943
|
+
createdAt: Date;
|
|
6944
|
+
updatedAt: Date | null;
|
|
6945
|
+
deletedAt: Date | null;
|
|
6946
|
+
};
|
|
6947
|
+
|
|
6948
|
+
declare const online_forms_namespace_collection = "online-forms";
|
|
6949
|
+
declare function useFormEntryRepo(): {
|
|
6950
|
+
add: (value: TFormEntry, session?: ClientSession) => Promise<ObjectId>;
|
|
6951
|
+
createTextIndex: () => Promise<void>;
|
|
6952
|
+
};
|
|
6953
|
+
|
|
6954
|
+
declare function useFormEntryController(): {
|
|
6955
|
+
uploadFormEntrys: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
6956
|
+
};
|
|
6957
|
+
|
|
6958
|
+
export { ANPRMode, AccessTypeProps, AppServiceType, AssignCardConfig, BuildingStatus, BulkCardUpdate, BulletinOrder, BulletinRecipient, BulletinSort, BulletinStatus, BulletinVideoOrder, BulletinVideoSort, Camera, CameraType, DEVICE_STATUS, DOBStatus, DayOfWeek, EAccessCardTypes, EAccessCardUserTypes, EmailSender, EntryOrder, EntrySort, EventOrder, EventSort, EventStatus, EventType, FacilitySort, FacilityStatus, FormEntryStatus, GuestSort, GuestStatus, IAccessCard, IAccessCardTransaction, MAccessCard, MAccessCardTransaction, MAddress, MAttendance, MAttendanceSettings, MBillingConfiguration, MBillingItem, MBuilding, MBuildingUnit, MBulletinBoard, MBulletinVideo, MChat, MCustomer, MCustomerSite, MDocumentManagement, MEntryPassSettings, MEventManagement, MFeedback, MFile, MFormEntry, MGuestManagement, MIncidentReport, MManpowerDesignations, MManpowerMonitoring, MManpowerRemarks, MManpowerSites, MMember, MNfcPatrolLog, MNfcPatrolRoute, MNfcPatrolSettings, MNfcPatrolSettingsUpdate, MNfcPatrolTag, MOccurrenceBook, MOccurrenceEntry, MOccurrenceSubject, MOnlineForm, MOrg, MOvernightParkingApprovalHours, MOvernightParkingRequest, MPatrolLog, MPatrolQuestion, MPatrolRoute, MPerson, MPost, MPromoCode, MRobot, MRole, MRoleV2, MServiceProvider, MServiceProviderBilling, MSession, MSite, MSiteCamera, MSiteFacility, MSiteFacilityBooking, MStatementOfAccount, MSubscription, MUnitBilling, MUser, MVehicle, MVehicleTransaction, MVerification, MVerificationV2, MVisitorTransaction, MWorkOrder, OrgNature, OvernightParkingRequestSort, OvernightParkingRequestStatus, PERSON_TYPES, PMDashboardCollection, 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, TBilling, TBillingConfiguration, TBillingItem, TBuilding, TBuildingUnit, TBulletinBoard, TBulletinVideo, TCamera, TChat, TCheckPoint$1 as TCheckPoint, TComplaintInfo, TComplaintReceivedTo, TCounter, TCustomer, TCustomerSite, TDayNumber, TDaySchedule, TDefaultAccessCard, TDesignations, TDocs, TDocumentManagement, TEntryPassSettings, TEventManagement, TFeedback, TFeedbackMetadata, TFeedbackUpdate, TFeedbackUpdateCategory, TFeedbackUpdateServiceProvider, TFeedbackUpdateStatus, TFeedbackUpdateToCompleted, TFile, TFiles, TFormEntry, TGetAttendancesByUserQuery, TGetAttendancesQuery, TGuestManagement, TIncidentInformation, TIncidentReport, TIncidentTypeAndTime, TInvoice, TKeyRef, TManpowerDesignations, TManpowerDesignationsUpdate, TManpowerMonitoring, TManpowerMonitoringUpdate, TManpowerRemarks, TManpowerRemarksStatusUpdate, TManpowerRemarksUpdate, TManpowerSearchFilter, TManpowerSites, TMember, TMemberUpdateStatus, 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, 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, TSubmissionForm, TSubscription, TUnitBilling, TUnits, 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_units_namespace_collection, buildings_namespace_collection, bulletin_boards_namespace_collection, calculatePercentage, chatSchema, createManpowerRemarksDaily, customerSchema, designationsSchema, events_namespace_collection, facility_bookings_namespace_collection, feedbackSchema, feedbacks2_namespace_collection, feedbacks_namespace_collection, formatDahuaDate, getPeriodRangeWithPrevious, guests_namespace_collection, incidentReport, incidentReportLog, incidents_namespace_collection, landscapeDashboardCollection, logCamera, mAndEDashboardCollection, manpowerDesignationsSchema, manpowerEvents, manpowerMonitoringSchema, manpowerRemarksSchema, manpowerSitesSchema, nfcPatrolSettingsSchema, nfcPatrolSettingsSchemaUpdate, occurrence_book_namespace_collection, online_forms_namespace_collection, orgSchema, overnight_parking_requests_namespace_collection, parseDahuaFind, pestDashboardCollection, poolDashboardCollection, promoCodeSchema, remarksSchema, robotSchema, schema, schemaApprovedBy, schemaApprover, schemaBilling, schemaBillingConfiguration, schemaBillingItem, schemaBuilding, schemaBuildingUnit, schemaBuildingUpdateOptions, schemaBulletinBoard, schemaBulletinVideo, schemaCustomerSite, schemaDocumentManagement, schemaEntryPassSettings, schemaEventManagement, schemaFiles, schemaFormEntry, schemaGuestManagement, schemaIncidentReport, schemaNfcPatrolLog, schemaNfcPatrolRoute, schemaNfcPatrolTag, schemaNfcPatrolTagUpdateData, schemaOccurrenceBook, schemaOccurrenceEntry, schemaOccurrenceSubject, schemaOnlineForm, schemaOvernightParkingApprovalHours, schemaOvernightParkingRequest, schemaPatrolLog, schemaPatrolQuestion, schemaPatrolRoute, schemaPerson, schemaPlate, schemaPost, schemaServiceProvider, schemaServiceProviderBilling, schemaSiteCamera, schemaSiteFacility, schemaSiteFacilityBooking, schemaStatementOfAccount, schemaUnitBilling, schemaUpdateBulletinBoard, schemaUpdateBulletinVideo, schemaUpdateDocumentManagement, schemaUpdateEntryPassSettings, schemaUpdateEventManagement, schemaUpdateFormEntry, schemaUpdateGuestManagement, schemaUpdateIncidentReport, schemaUpdateOccurrenceBook, schemaUpdateOccurrenceEntry, schemaUpdateOccurrenceSubject, schemaUpdateOnlineForm, schemaUpdateOptions, schemaUpdateOvernightParkingRequest, schemaUpdatePatrolLog, schemaUpdatePatrolQuestion, schemaUpdatePatrolRoute, schemaUpdatePerson, schemaUpdatePost, schemaUpdateServiceProviderBilling, schemaUpdateSiteBillingConfiguration, schemaUpdateSiteBillingItem, schemaUpdateSiteCamera, schemaUpdateSiteFacility, schemaUpdateSiteFacilityBooking, schemaUpdateSiteUnitBilling, schemaUpdateStatementOfAccount, schemaUpdateVisTrans, schemaVehicleTransaction, schemaVisitorTransaction, schemeCamera, schemeLogCamera, securityDashboardCollection, shiftSchema, siteSchema, site_people_namespace_collection, tokenSchema, updateRemarksStatusEod, updateRemarksisAcknowledged, updateSiteSchema, useAccessManagementController, useAddressRepo, useAttendanceController, useAttendanceRepository, useAttendanceSettingsController, useAttendanceSettingsRepository, useAttendanceSettingsService, useAuthController, useAuthControllerV2, useAuthService, useAuthServiceV2, useBuildingController, useBuildingRepo, useBuildingService, useBuildingUnitController, useBuildingUnitRepo, useBuildingUnitService, useBulletinBoardController, useBulletinBoardRepo, useBulletinBoardService, useBulletinVideoController, useBulletinVideoRepo, useBulletinVideoService, useChatController, 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, useHrmLabsAttendanceCtrl, useHrmLabsAttendanceSrvc, useIncidentReportController, useIncidentReportRepo, useIncidentReportService, useInvoiceController, useInvoiceModel, useInvoiceRepo, useManpowerDesignationCtrl, useManpowerDesignationRepo, useManpowerMonitoringCtrl, useManpowerMonitoringRepo, useManpowerMonitoringSrvc, useManpowerRemarkCtrl, useManpowerRemarksRepo, useManpowerSitesCtrl, useManpowerSitesRepo, useManpowerSitesSrvc, useMemberController, useMemberRepo, 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, 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, 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 };
|