@7365admin1/core 2.60.0 → 2.62.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.62.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 28c46de: get latest changes today
8
+
9
+ ## 2.61.0
10
+
11
+ ### Minor Changes
12
+
13
+ - b8d9eaf: update core package 14-05-2026
14
+
3
15
  ## 2.60.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -282,6 +282,7 @@ declare function useMemberRepo(): {
282
282
  add: (value: TMember, session?: ClientSession) => Promise<string>;
283
283
  getById: (_id: string | ObjectId) => Promise<TMember>;
284
284
  getByUserId: (user: string | ObjectId) => Promise<TMember>;
285
+ getAllByUserId: (user: string | ObjectId) => Promise<TMember[]>;
285
286
  getByUserIdType: (user: string | ObjectId, type: string) => Promise<TMember>;
286
287
  getByRoleId: (role: string | ObjectId) => Promise<any>;
287
288
  getAll: ({ search, page, limit, user, org, type, status, }: {
@@ -327,6 +328,7 @@ declare function useMemberRepo(): {
327
328
  countUserMembershipById: (user: string | ObjectId) => Promise<number | TMember>;
328
329
  updateRoleById: (_id: string | ObjectId, role: string | ObjectId) => Promise<number>;
329
330
  getByRoles: (roles: string[] | ObjectId[], type: string) => Promise<TMember[]>;
331
+ updateSiteById: (_id: string | ObjectId, siteId: string | ObjectId, siteName: string) => Promise<number>;
330
332
  };
331
333
 
332
334
  declare function useMemberController(): {
@@ -338,6 +340,8 @@ declare function useMemberController(): {
338
340
  updateMemberStatus: (req: Request, res: Response, next: NextFunction) => Promise<void>;
339
341
  updateRoleById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
340
342
  createMemberDirect: (req: Request, res: Response, next: NextFunction) => Promise<void>;
343
+ updateSiteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
344
+ getAllByUser: (req: Request, res: Response, next: NextFunction) => Promise<void>;
341
345
  };
342
346
 
343
347
  type TVerificationMetadata = {
@@ -422,6 +426,19 @@ declare function useVerificationService(): {
422
426
  createSimpleUserInvite: ({ email, metadata }: {
423
427
  email: string;
424
428
  metadata: TKeyValuePair;
429
+ }) => Promise<string[]>;
430
+ createSimpleMemberInvite: ({ email, metadata }: {
431
+ email: string;
432
+ metadata: TKeyValuePair;
433
+ }) => Promise<bson.ObjectId>;
434
+ createSimpleServiceProviderInvite: ({ email, app, name, role, orgId, siteId, siteName }: {
435
+ email: string;
436
+ app?: string | undefined;
437
+ name?: string | undefined;
438
+ role?: string | undefined;
439
+ orgId: string;
440
+ siteId: string;
441
+ siteName: string;
425
442
  }) => Promise<bson.ObjectId>;
426
443
  };
427
444
 
@@ -429,11 +446,13 @@ declare function useVerificationController(): {
429
446
  getVerifications: (req: Request, res: Response, next: NextFunction) => Promise<void>;
430
447
  createUserInvite: (req: Request, res: Response, next: NextFunction) => Promise<void>;
431
448
  createServiceProviderInvite: (req: Request, res: Response, next: NextFunction) => Promise<void>;
449
+ createSimpleServiceProviderInvite: (req: Request, res: Response, next: NextFunction) => Promise<void>;
432
450
  createForgetPassword: (req: Request, res: Response, next: NextFunction) => Promise<void>;
433
451
  verify: (req: Request, res: Response, next: NextFunction) => Promise<void>;
434
452
  updateVerificationStatus: (req: Request, res: Response, next: NextFunction) => Promise<void>;
435
453
  cancelUserInvitation: (req: Request, res: Response, next: NextFunction) => Promise<void>;
436
454
  createSimpleUserInvite: (req: Request, res: Response, next: NextFunction) => Promise<void>;
455
+ createSimpleMemberInvite: (req: Request, res: Response, next: NextFunction) => Promise<void>;
437
456
  };
438
457
 
439
458
  type TFile = {
@@ -497,6 +516,7 @@ declare function useOrgRepo(): {
497
516
  createTextIndex: () => Promise<void>;
498
517
  createUniqueIndex: () => Promise<void>;
499
518
  add: (value: TOrg, session?: ClientSession) => Promise<ObjectId>;
519
+ update: (id: string, value: Partial<TOrg>, session?: ClientSession) => Promise<string>;
500
520
  getAll: ({ search, page, limit, sort, status, nature, }: {
501
521
  search?: string | undefined;
502
522
  page?: number | undefined;
@@ -529,6 +549,7 @@ declare function useOrgController(): {
529
549
  getByName: (req: Request, res: Response, next: NextFunction) => Promise<void>;
530
550
  getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
531
551
  getByEmail: (req: Request, res: Response, next: NextFunction) => Promise<void>;
552
+ update: (req: Request, res: Response, next: NextFunction) => Promise<void>;
532
553
  };
533
554
 
534
555
  /**
@@ -1937,6 +1958,7 @@ declare function useBuildingUnitRepo(): {
1937
1958
  getBuildingUnitsWithOwner: (site: string | ObjectId, unitIds?: ObjectId[]) => Promise<{}>;
1938
1959
  getUnitByBlockLevelUnitNumber: (block: number, level: string, unitNumber: string, site: string | ObjectId, session?: ClientSession) => Promise<TBuildingUnit>;
1939
1960
  getBySiteBuildingLevel: (site: string | ObjectId, block: number, level: string) => Promise<TBuildingUnit | null>;
1961
+ bulkAddBuildingUnits: (value: TBuildingUnit[], session?: ClientSession) => Promise<mongodb.BulkWriteResult>;
1940
1962
  };
1941
1963
 
1942
1964
  declare function useBuildingUnitService(): {
@@ -2059,7 +2081,7 @@ declare function useDahuaService(): {
2059
2081
  }) => Promise<urllib.HttpClientResponse<any>>;
2060
2082
  };
2061
2083
 
2062
- type TVehicleUpdate = Partial<Pick<TVehicle, "name" | "phoneNumber" | "block" | "level" | "unit" | "plateNumber" | "recNo">>;
2084
+ type TVehicleUpdate = Partial<Pick<TVehicle, "name" | "phoneNumber" | "block" | "level" | "unit" | "plateNumber" | "recNo" | "type">>;
2063
2085
  declare enum VehicleType {
2064
2086
  WHITELIST = "whitelist",
2065
2087
  BLOCKLIST = "blocklist"
@@ -2278,6 +2300,8 @@ declare function useVehicleService(): {
2278
2300
  [key: number]: any;
2279
2301
  };
2280
2302
  }>;
2303
+ blocklistVehicles: (_id: string, value: TVehicle) => Promise<void>;
2304
+ removeFromBlocklist: (_id: string, value: TVehicle) => Promise<void>;
2281
2305
  };
2282
2306
 
2283
2307
  declare function useVehicleController(): {
@@ -2294,6 +2318,8 @@ declare function useVehicleController(): {
2294
2318
  uploadSpreadsheetVehicles: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2295
2319
  getSpecificVehicleById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2296
2320
  getBlocklistedVehicles: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2321
+ blocklistVehicles: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2322
+ removeFromBlocklist: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2297
2323
  };
2298
2324
 
2299
2325
  declare function useSiteCameraRepo(): {
@@ -4711,6 +4737,11 @@ declare function UseAccessManagementRepo(): {
4711
4737
  visitorCheckoutRepo: ({ userId }: {
4712
4738
  userId: string;
4713
4739
  }) => Promise<string>;
4740
+ uploadTemplateRepo: ({ site, id, name }: {
4741
+ site: string | ObjectId;
4742
+ id: string | ObjectId;
4743
+ name: string;
4744
+ }) => Promise<mongodb.UpdateResult<bson.Document>>;
4714
4745
  };
4715
4746
 
4716
4747
  declare function useAccessManagementController(): {
@@ -4753,6 +4784,7 @@ declare function useAccessManagementController(): {
4753
4784
  getTransactions: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4754
4785
  assignMultipleCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4755
4786
  visitorCheckout: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4787
+ uploadTemplate: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4756
4788
  };
4757
4789
 
4758
4790
  declare const DEVICE_STATUS: {