@7365admin1/core 2.30.2 → 2.31.1

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.31.1
4
+
5
+ ### Patch Changes
6
+
7
+ - c95dbd4: Bug fix for dob entry
8
+
9
+ ## 2.31.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 4acecf5: get all changes
14
+
3
15
  ## 2.30.2
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -2479,6 +2479,14 @@ declare function MPerson(value: TPerson): {
2479
2479
  deletedAt: string | Date | undefined;
2480
2480
  };
2481
2481
 
2482
+ declare enum KeyStatus {
2483
+ AVAILABLE = "Available",
2484
+ RETURNED = "Returned",
2485
+ LOST = "Lost",
2486
+ DAMAGED = "Damaged",
2487
+ IN_USE = "In Use"
2488
+ }
2489
+
2482
2490
  declare enum VisitorSort {
2483
2491
  CREATED_AT = "createdAt",
2484
2492
  NAME = "name",
@@ -2491,6 +2499,8 @@ declare enum VisitorStatus {
2491
2499
  }
2492
2500
  type TKeyRef = {
2493
2501
  keyId: string | ObjectId;
2502
+ status?: KeyStatus;
2503
+ remarks?: string;
2494
2504
  };
2495
2505
  type TVisitorTransaction = {
2496
2506
  _id?: ObjectId;
@@ -2540,6 +2550,7 @@ type TVisitorTransaction = {
2540
2550
  updatedAt?: string | Date;
2541
2551
  deletedAt?: string | Date;
2542
2552
  purpose?: string;
2553
+ invitedId?: string | ObjectId;
2543
2554
  };
2544
2555
  declare const schemaVisitorTransaction: Joi.ObjectSchema<any>;
2545
2556
  declare const schemaUpdateVisTrans: Joi.ObjectSchema<any>;
@@ -2578,6 +2589,16 @@ declare function MVisitorTransaction(value: TVisitorTransaction): {
2578
2589
  createdAt: string | Date;
2579
2590
  updatedAt: string | Date;
2580
2591
  deletedAt: string | Date;
2592
+ purpose: string | undefined;
2593
+ numberOfPassengers: number | null;
2594
+ email: string | undefined;
2595
+ isOvernightParking: boolean;
2596
+ invitedId: ObjectId;
2597
+ overnightParking: {
2598
+ status: string;
2599
+ remarks: string;
2600
+ updatedBy: ObjectId;
2601
+ } | null;
2581
2602
  };
2582
2603
 
2583
2604
  declare const visitors_namespace_collection = "visitor.transactions";
@@ -2768,6 +2789,7 @@ declare function usePersonController(): {
2768
2789
  getCompany: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2769
2790
  getPeopleByPlateNumber: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2770
2791
  getPeopleByNRIC: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2792
+ getPersonByUserId: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2771
2793
  };
2772
2794
 
2773
2795
  type TRobotMetadata = {
@@ -4016,6 +4038,22 @@ declare function useSiteUnitBillingRepo(): {
4016
4038
  dateTo?: string | undefined;
4017
4039
  unitId: string;
4018
4040
  }, session?: ClientSession) => Promise<bson.Document[]>;
4041
+ getResidentUserBilling: ({ search, page, limit, sort, status, site, paymentStatus, month, year, unitId, }: {
4042
+ search?: string | undefined;
4043
+ page?: number | undefined;
4044
+ limit?: number | undefined;
4045
+ sort?: Record<string, any> | undefined;
4046
+ status: string;
4047
+ site?: string | undefined;
4048
+ paymentStatus?: string | undefined;
4049
+ month?: string | undefined;
4050
+ year?: string | undefined;
4051
+ unitId: string;
4052
+ }, session?: ClientSession) => Promise<{
4053
+ items: any[];
4054
+ pages: number;
4055
+ pageRange: string;
4056
+ }>;
4019
4057
  };
4020
4058
 
4021
4059
  declare function useSiteUnitBillingService(): {
@@ -4029,6 +4067,7 @@ declare function useSiteUnitBillingController(): {
4029
4067
  getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
4030
4068
  updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
4031
4069
  deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
4070
+ getResidentUserBilling: (req: Request, res: Response, next: NextFunction) => Promise<void>;
4032
4071
  };
4033
4072
 
4034
4073
  interface AssignCardConfig {
@@ -5379,7 +5418,7 @@ declare function useOccurrenceSubjectRepo(): {
5379
5418
  pages: number;
5380
5419
  pageRange: string;
5381
5420
  } | TOccurrenceSubject>;
5382
- getOccurrenceSubjectById: (_id: string | ObjectId, session?: ClientSession) => Promise<mongodb.WithId<bson.Document> | TOccurrenceSubject>;
5421
+ getOccurrenceSubjectById: (_id: string | ObjectId, session?: ClientSession) => Promise<mongodb.WithId<bson.Document>>;
5383
5422
  updateOccurrenceSubjectById: (_id: ObjectId | string, value: Partial<TOccurrenceSubject>, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
5384
5423
  deleteOccurrenceSubjectById: (_id: string | ObjectId) => Promise<number>;
5385
5424
  createIndexes: () => Promise<void>;