@7365admin1/core 3.31.0 → 3.32.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 -3
- package/dist/index.js +328 -102
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +328 -102
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -4750,6 +4750,13 @@ declare function UseAccessManagementRepo(): {
|
|
|
4750
4750
|
type: string;
|
|
4751
4751
|
search: string;
|
|
4752
4752
|
}) => Promise<bson.Document[]>;
|
|
4753
|
+
assignedAccessCardsByUnitRepo: (params: {
|
|
4754
|
+
site: string;
|
|
4755
|
+
unitId: string;
|
|
4756
|
+
userType: string;
|
|
4757
|
+
type: string;
|
|
4758
|
+
search: string;
|
|
4759
|
+
}) => Promise<bson.Document>;
|
|
4753
4760
|
acknowlegdeCardRepo: (params: {
|
|
4754
4761
|
userId: string[];
|
|
4755
4762
|
cardId: string[];
|
|
@@ -4925,11 +4932,12 @@ declare function UseAccessManagementRepo(): {
|
|
|
4925
4932
|
pages: number;
|
|
4926
4933
|
pageRange: string;
|
|
4927
4934
|
}>;
|
|
4928
|
-
assignMultipleCardsRepo: ({ assignees, unit, type, acm_url, }: {
|
|
4935
|
+
assignMultipleCardsRepo: ({ assignees, unit, type, acm_url, id }: {
|
|
4929
4936
|
assignees: string[] | ObjectId[];
|
|
4930
4937
|
unit: string | ObjectId;
|
|
4931
4938
|
type: string;
|
|
4932
4939
|
acm_url: string;
|
|
4940
|
+
id?: string | ObjectId | null | undefined;
|
|
4933
4941
|
}) => Promise<string>;
|
|
4934
4942
|
visitorCheckoutRepo: ({ userId }: {
|
|
4935
4943
|
userId: string;
|
|
@@ -4975,6 +4983,7 @@ declare function useAccessManagementController(): {
|
|
|
4975
4983
|
availableAccessCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4976
4984
|
userTypeAccessCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4977
4985
|
assignedAccessCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4986
|
+
assignedAccessCardsByUnit: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4978
4987
|
acknowlegdeCard: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4979
4988
|
accessandLiftCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
4980
4989
|
replaceCard: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
@@ -5230,7 +5239,6 @@ declare function useBulletinVideoRepo(): {
|
|
|
5230
5239
|
updateBulletinVideoById: (_id: ObjectId | string, value: Partial<TBulletinVideo>, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
5231
5240
|
deleteBulletinVideoById: (_id: string | ObjectId, session?: ClientSession) => Promise<number>;
|
|
5232
5241
|
createIndexes: () => Promise<void>;
|
|
5233
|
-
createTextIndex: () => Promise<void>;
|
|
5234
5242
|
};
|
|
5235
5243
|
|
|
5236
5244
|
declare function useBulletinVideoService(): {
|
|
@@ -6057,11 +6065,12 @@ declare function MNfcPatrolLog(valueArg: TNfcPatrolLog): {
|
|
|
6057
6065
|
declare function useNfcPatrolLogRepo(): {
|
|
6058
6066
|
createIndexes: () => Promise<void>;
|
|
6059
6067
|
add: (value: TNfcPatrolLog, session?: ClientSession) => Promise<ObjectId>;
|
|
6060
|
-
getAllBySite: ({ page, limit, site, date, route, }: {
|
|
6068
|
+
getAllBySite: ({ page, limit, site, date, type, route, }: {
|
|
6061
6069
|
page?: number | undefined;
|
|
6062
6070
|
limit?: number | undefined;
|
|
6063
6071
|
site: string | ObjectId;
|
|
6064
6072
|
date?: string | undefined;
|
|
6073
|
+
type?: "month" | undefined;
|
|
6065
6074
|
route?: {
|
|
6066
6075
|
_id: ObjectId | string;
|
|
6067
6076
|
startTime: string;
|