@7365admin1/core 2.50.0 → 2.52.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @iservice365/core
2
2
 
3
+ ## 2.52.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 8b9b973: get latest changes for today
8
+
9
+ ## 2.51.0
10
+
11
+ ### Minor Changes
12
+
13
+ - ab30f16: get latest changes for new onboarding process
14
+
3
15
  ## 2.50.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -337,6 +337,7 @@ declare function useMemberController(): {
337
337
  getOrgsByMembership: (req: Request, res: Response, next: NextFunction) => Promise<void>;
338
338
  updateMemberStatus: (req: Request, res: Response, next: NextFunction) => Promise<void>;
339
339
  updateRoleById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
340
+ createMemberDirect: (req: Request, res: Response, next: NextFunction) => Promise<void>;
340
341
  };
341
342
 
342
343
  type TVerificationMetadata = {
@@ -390,6 +391,7 @@ declare function useVerificationRepo(): {
390
391
  getByIdByType: (type: string) => Promise<TVerification[]>;
391
392
  updateStatusById: (_id: string | ObjectId, status: string, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
392
393
  getByStatus: (status: string) => Promise<TVerification[]>;
394
+ findOne: (query: any) => Promise<mongodb.WithId<bson.Document> | null>;
393
395
  };
394
396
 
395
397
  type TKeyValuePair<K extends string | number | symbol = string, V = any> = {
@@ -1852,7 +1854,7 @@ declare function useBuildingRepo(): {
1852
1854
  getById: (_id: string | ObjectId) => Promise<TBuilding | null>;
1853
1855
  updateById: (_id: ObjectId | string, value: Pick<TBuilding, "name" | "block" | "levels" | "buildingFiles">, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
1854
1856
  deleteById: (_id: string | ObjectId, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
1855
- getBuildingLevel: (site: string | ObjectId, block: number) => Promise<mongodb.WithId<bson.Document> | TBuilding | null>;
1857
+ getBuildingLevel: (site: string | ObjectId, block: number, isVMS: boolean) => Promise<bson.Document[] | TBuilding>;
1856
1858
  };
1857
1859
 
1858
1860
  declare function useBuildingService(): {
@@ -1868,6 +1870,7 @@ declare function useBuildingController(): {
1868
1870
  updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1869
1871
  deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1870
1872
  getBuildingLevel: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1873
+ uploadSpreadsheetBuilding: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1871
1874
  };
1872
1875
 
1873
1876
  declare function useBuildingUnitRepo(): {
@@ -1925,6 +1928,7 @@ type TCamera = {
1925
1928
  };
1926
1929
  type TSiteCamera = {
1927
1930
  _id?: ObjectId;
1931
+ name?: string;
1928
1932
  site: string | ObjectId;
1929
1933
  host: string;
1930
1934
  username: string;
@@ -1951,6 +1955,7 @@ declare function MSiteCamera(value: TSiteCamera): {
1951
1955
  guardPost: number;
1952
1956
  status: string;
1953
1957
  direction: string;
1958
+ name: string;
1954
1959
  createdAt: string | Date;
1955
1960
  updatedAt: string | Date;
1956
1961
  deletedAt: string | Date;
@@ -2283,7 +2288,7 @@ declare function useSiteCameraRepo(): {
2283
2288
  };
2284
2289
 
2285
2290
  declare function useSiteCameraService(): {
2286
- add: (value: TSiteCamera) => Promise<string>;
2291
+ add: (value: TSiteCamera) => Promise<"CCTV(s) added successfully." | "ANPR(s) added successfully.">;
2287
2292
  listenToCapturedPlateNumber: (onDetected?: ((data: any) => void) | undefined) => Promise<void>;
2288
2293
  };
2289
2294
 
@@ -2703,7 +2708,7 @@ declare function useVisitorTransactionRepo(): {
2703
2708
  pageRange: string;
2704
2709
  }>;
2705
2710
  getOpenByPlateNumber: (plateNumber: string, site: string | ObjectId) => Promise<TVisitorTransaction | null>;
2706
- updateById: (_id: string | ObjectId, value: Partial<TVisitorTransaction>, session?: ClientSession, isNotManualCheckOut?: boolean) => Promise<mongodb.UpdateResult<bson.Document>>;
2711
+ updateById: (_id: string | ObjectId, value: Partial<TVisitorTransaction>, session?: ClientSession, isManualCheckOut?: boolean) => Promise<mongodb.UpdateResult<bson.Document>>;
2707
2712
  deleteVisitorTransaction: (_id: string | ObjectId) => Promise<number>;
2708
2713
  createTextIndex: () => Promise<void>;
2709
2714
  getDeliveryPickupTransactions: () => Promise<mongodb.WithId<bson.Document>[]>;