@7365admin1/core 2.10.0 → 2.12.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.
@@ -13,5 +13,5 @@ jobs:
13
13
  with:
14
14
  node-version: 20.x
15
15
  cache: "yarn"
16
- - run: yarn install --frozen-lockfile
16
+ - run: yarn install
17
17
  - run: yarn lint && yarn build
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @iservice365/core
2
2
 
3
+ ## 2.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - aeab1d6: get latest changes
8
+
9
+ ## 2.11.0
10
+
11
+ ### Minor Changes
12
+
13
+ - c5565e2: update to latest changes
14
+
3
15
  ## 2.10.0
4
16
 
5
17
  ### Minor Changes
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<string>;
195
+ deleteRole: (_id: string | ObjectId, session?: ClientSession) => Promise<void>;
196
196
  getOwnerRolesByTypeOrg: (type: string, org: string | ObjectId) => Promise<TRole[]>;
197
197
  };
198
198
 
@@ -341,6 +341,7 @@ declare function useVerificationRepo(): {
341
341
  }) => Promise<{}>;
342
342
  getByIdByType: (type: string) => Promise<TVerification[]>;
343
343
  updateStatusById: (_id: string | ObjectId, status: string, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
344
+ getByStatus: (status: string) => Promise<TVerification[]>;
344
345
  };
345
346
 
346
347
  type TKeyValuePair<K extends string | number | symbol = string, V = any> = {
@@ -367,6 +368,7 @@ declare function useVerificationService(): {
367
368
  email: string;
368
369
  metadata: TKeyValuePair;
369
370
  }) => Promise<bson.ObjectId>;
371
+ checkExpiredInvitation: () => Promise<string>;
370
372
  };
371
373
 
372
374
  declare function useVerificationController(): {
@@ -400,6 +402,7 @@ declare function useFileRepo(): {
400
402
  getAllDraftedFiles: () => Promise<mongodb.WithId<bson.Document>[] | TFile>;
401
403
  updateStatusById: (_id: string | ObjectId, value: Pick<TFile, "status">, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
402
404
  getFileById: (_id: string | ObjectId) => Promise<TFile | null>;
405
+ createIndex: () => Promise<void>;
403
406
  };
404
407
 
405
408
  declare function useFileService(): {
@@ -2600,6 +2603,7 @@ declare function usePatrolRouteRepo(): {
2600
2603
  start: string;
2601
2604
  day: number;
2602
2605
  }, session?: ClientSession) => Promise<{}>;
2606
+ getById: (_id: string | ObjectId, session?: ClientSession) => Promise<mongodb.WithId<bson.Document> | TPatrolRoute | null>;
2603
2607
  };
2604
2608
 
2605
2609
  declare function usePatrolRouteController(): {
@@ -2608,6 +2612,7 @@ declare function usePatrolRouteController(): {
2608
2612
  updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2609
2613
  deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2610
2614
  getScheduledRoute: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2615
+ getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2611
2616
  };
2612
2617
 
2613
2618
  type logCamera = {
@@ -2671,6 +2676,7 @@ declare function usePatrolLogRepo(): {
2671
2676
  }, session?: ClientSession) => Promise<{}>;
2672
2677
  updateById: (_id: string | ObjectId, value: Partial<TPatrolLog>, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
2673
2678
  deleteById: (_id: string | ObjectId, session?: ClientSession) => Promise<string>;
2679
+ getById: (_id: string | ObjectId, session?: ClientSession) => Promise<mongodb.WithId<bson.Document> | TPatrolLog | null>;
2674
2680
  };
2675
2681
 
2676
2682
  declare function usePatrolLogController(): {
@@ -2678,6 +2684,7 @@ declare function usePatrolLogController(): {
2678
2684
  getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2679
2685
  updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2680
2686
  deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2687
+ getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2681
2688
  };
2682
2689
 
2683
2690
  type TimeSlot = {
@@ -3834,6 +3841,17 @@ declare function UseAccessManagementRepo(): {
3834
3841
  pages: number;
3835
3842
  pageRange: string;
3836
3843
  }>;
3844
+ assignedAccessCardsRepo: (params: {
3845
+ site: string;
3846
+ userType: string;
3847
+ type: string;
3848
+ search: string;
3849
+ }) => Promise<bson.Document[]>;
3850
+ acknowlegdeCardRepo: (params: {
3851
+ userId: string[];
3852
+ cardId: string[];
3853
+ site: string;
3854
+ }) => Promise<mongodb.UpdateResult<bson.Document>>;
3837
3855
  };
3838
3856
 
3839
3857
  declare function useAccessManagementController(): {
@@ -3846,6 +3864,8 @@ declare function useAccessManagementController(): {
3846
3864
  allAccessCardsCounts: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
3847
3865
  availableAccessCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
3848
3866
  userTypeAccessCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
3867
+ assignedAccessCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
3868
+ acknowlegdeCard: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
3849
3869
  };
3850
3870
 
3851
3871
  declare const DEVICE_STATUS: {