@7365admin1/core 2.11.0 → 2.13.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 +12 -0
- package/dist/index.d.ts +54 -5
- package/dist/index.js +793 -145
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +793 -145
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -192,7 +192,7 @@ declare function useRoleRepo(): {
|
|
|
192
192
|
}) => Promise<{}>;
|
|
193
193
|
updateRole: (_id: string | ObjectId, value: TMiniRole, session?: ClientSession) => Promise<ObjectId>;
|
|
194
194
|
updatePermissionsById: (_id: string | ObjectId, permissions: TRole["permissions"], session?: ClientSession) => Promise<string>;
|
|
195
|
-
deleteRole: (_id: string | ObjectId, session?: ClientSession) => Promise<
|
|
195
|
+
deleteRole: (_id: string | ObjectId, session?: ClientSession) => Promise<void>;
|
|
196
196
|
getOwnerRolesByTypeOrg: (type: string, org: string | ObjectId) => Promise<TRole[]>;
|
|
197
197
|
};
|
|
198
198
|
|
|
@@ -2140,7 +2140,6 @@ type TPlates = {
|
|
|
2140
2140
|
type TPerson = {
|
|
2141
2141
|
_id?: ObjectId;
|
|
2142
2142
|
name: string;
|
|
2143
|
-
contact?: string;
|
|
2144
2143
|
nirc?: string;
|
|
2145
2144
|
type?: PersonType;
|
|
2146
2145
|
email?: string;
|
|
@@ -2151,6 +2150,7 @@ type TPerson = {
|
|
|
2151
2150
|
end?: string | Date;
|
|
2152
2151
|
status?: string;
|
|
2153
2152
|
nric?: string;
|
|
2153
|
+
contact?: string;
|
|
2154
2154
|
remarks?: string;
|
|
2155
2155
|
org: string | ObjectId;
|
|
2156
2156
|
site: string | ObjectId;
|
|
@@ -2169,7 +2169,7 @@ declare const schemaUpdatePerson: Joi.ObjectSchema<any>;
|
|
|
2169
2169
|
declare function MPerson(value: TPerson): {
|
|
2170
2170
|
_id: ObjectId | undefined;
|
|
2171
2171
|
name: string;
|
|
2172
|
-
contact: string
|
|
2172
|
+
contact: string;
|
|
2173
2173
|
block: number;
|
|
2174
2174
|
level: string;
|
|
2175
2175
|
unit: string;
|
|
@@ -2603,6 +2603,7 @@ declare function usePatrolRouteRepo(): {
|
|
|
2603
2603
|
start: string;
|
|
2604
2604
|
day: number;
|
|
2605
2605
|
}, session?: ClientSession) => Promise<{}>;
|
|
2606
|
+
getById: (_id: string | ObjectId, session?: ClientSession) => Promise<mongodb.WithId<bson.Document> | TPatrolRoute | null>;
|
|
2606
2607
|
};
|
|
2607
2608
|
|
|
2608
2609
|
declare function usePatrolRouteController(): {
|
|
@@ -2611,6 +2612,7 @@ declare function usePatrolRouteController(): {
|
|
|
2611
2612
|
updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2612
2613
|
deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2613
2614
|
getScheduledRoute: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2615
|
+
getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2614
2616
|
};
|
|
2615
2617
|
|
|
2616
2618
|
type logCamera = {
|
|
@@ -2674,6 +2676,7 @@ declare function usePatrolLogRepo(): {
|
|
|
2674
2676
|
}, session?: ClientSession) => Promise<{}>;
|
|
2675
2677
|
updateById: (_id: string | ObjectId, value: Partial<TPatrolLog>, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
2676
2678
|
deleteById: (_id: string | ObjectId, session?: ClientSession) => Promise<string>;
|
|
2679
|
+
getById: (_id: string | ObjectId, session?: ClientSession) => Promise<mongodb.WithId<bson.Document> | TPatrolLog | null>;
|
|
2677
2680
|
};
|
|
2678
2681
|
|
|
2679
2682
|
declare function usePatrolLogController(): {
|
|
@@ -2681,6 +2684,7 @@ declare function usePatrolLogController(): {
|
|
|
2681
2684
|
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2682
2685
|
updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2683
2686
|
deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2687
|
+
getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
2684
2688
|
};
|
|
2685
2689
|
|
|
2686
2690
|
type TimeSlot = {
|
|
@@ -3171,7 +3175,7 @@ declare function useDocumentManagementRepo(): {
|
|
|
3171
3175
|
sort?: Record<string, any> | undefined;
|
|
3172
3176
|
status: string;
|
|
3173
3177
|
org?: string | undefined;
|
|
3174
|
-
site?: string | undefined;
|
|
3178
|
+
site?: string | ObjectId | undefined;
|
|
3175
3179
|
}) => Promise<{
|
|
3176
3180
|
items: any[];
|
|
3177
3181
|
pages: number;
|
|
@@ -3843,6 +3847,45 @@ declare function UseAccessManagementRepo(): {
|
|
|
3843
3847
|
type: string;
|
|
3844
3848
|
search: string;
|
|
3845
3849
|
}) => Promise<bson.Document[]>;
|
|
3850
|
+
acknowlegdeCardRepo: (params: {
|
|
3851
|
+
userId: string[];
|
|
3852
|
+
cardId: string[];
|
|
3853
|
+
site: string;
|
|
3854
|
+
}) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
3855
|
+
accessandLiftCardsRepo: (params: {
|
|
3856
|
+
accessLevel: string | null;
|
|
3857
|
+
liftAccessLevel: string | null;
|
|
3858
|
+
site: string;
|
|
3859
|
+
userType: EAccessCardUserTypes;
|
|
3860
|
+
type: EAccessCardTypes;
|
|
3861
|
+
}) => Promise<bson.Document[]>;
|
|
3862
|
+
replaceCardRepo: (params: {
|
|
3863
|
+
userId: string;
|
|
3864
|
+
cardId: string;
|
|
3865
|
+
site: string;
|
|
3866
|
+
acm_url: string;
|
|
3867
|
+
}) => Promise<mongodb.InsertManyResult<bson.Document>>;
|
|
3868
|
+
updateNFCStatusRepo: (params: {
|
|
3869
|
+
nfcList: Array<{
|
|
3870
|
+
_id: string | ObjectId;
|
|
3871
|
+
status: string;
|
|
3872
|
+
vmsRemarks?: string;
|
|
3873
|
+
updatedAt?: Date;
|
|
3874
|
+
}>;
|
|
3875
|
+
visitorId: string;
|
|
3876
|
+
}) => Promise<{
|
|
3877
|
+
nfcId: string | ObjectId;
|
|
3878
|
+
modifiedCount?: number | undefined;
|
|
3879
|
+
}[]>;
|
|
3880
|
+
doorAndLiftDropdownRepo: (params: {
|
|
3881
|
+
site: string;
|
|
3882
|
+
type: string;
|
|
3883
|
+
userType: string;
|
|
3884
|
+
}) => Promise<bson.Document[]>;
|
|
3885
|
+
cardReplacementRepo: (params: {
|
|
3886
|
+
cardId: string;
|
|
3887
|
+
remarks: string;
|
|
3888
|
+
}) => Promise<mongodb.WithId<bson.Document> | null>;
|
|
3846
3889
|
};
|
|
3847
3890
|
|
|
3848
3891
|
declare function useAccessManagementController(): {
|
|
@@ -3856,6 +3899,12 @@ declare function useAccessManagementController(): {
|
|
|
3856
3899
|
availableAccessCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
3857
3900
|
userTypeAccessCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
3858
3901
|
assignedAccessCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
3902
|
+
acknowlegdeCard: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
3903
|
+
accessandLiftCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
3904
|
+
replaceCard: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
3905
|
+
updateNFCStatus: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
3906
|
+
doorAndLiftDropdown: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
3907
|
+
cardReplacement: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
3859
3908
|
};
|
|
3860
3909
|
|
|
3861
3910
|
declare const DEVICE_STATUS: {
|
|
@@ -4659,7 +4708,7 @@ declare function useOnlineFormRepo(): {
|
|
|
4659
4708
|
sort?: Record<string, any> | undefined;
|
|
4660
4709
|
status: string;
|
|
4661
4710
|
org?: string | undefined;
|
|
4662
|
-
site?: string | undefined;
|
|
4711
|
+
site?: string | ObjectId | undefined;
|
|
4663
4712
|
}) => Promise<{
|
|
4664
4713
|
items: any[];
|
|
4665
4714
|
pages: number;
|