@7365admin1/core 2.24.0 → 2.25.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,11 @@
1
1
  # @iservice365/core
2
2
 
3
+ ## 2.25.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 14e1cbb: update package to latest changes
8
+
3
9
  ## 2.24.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -2301,6 +2301,7 @@ type TFiles = {
2301
2301
  };
2302
2302
  type TPerson = {
2303
2303
  _id?: ObjectId;
2304
+ user?: string | ObjectId;
2304
2305
  name: string;
2305
2306
  nirc?: string;
2306
2307
  type?: PersonType;
@@ -2334,6 +2335,7 @@ declare const schemaPerson: Joi.ObjectSchema<any>;
2334
2335
  declare const schemaUpdatePerson: Joi.ObjectSchema<any>;
2335
2336
  declare function MPerson(value: TPerson): {
2336
2337
  _id: ObjectId | undefined;
2338
+ user: string | ObjectId;
2337
2339
  name: string;
2338
2340
  contact: string;
2339
2341
  block: number;
@@ -2379,7 +2381,7 @@ type TVisitorTransaction = {
2379
2381
  unit?: string | ObjectId;
2380
2382
  checkIn?: string | Date;
2381
2383
  checkOut?: string | Date;
2382
- status?: string;
2384
+ status?: VisitorStatus;
2383
2385
  nric?: string;
2384
2386
  remarks?: string;
2385
2387
  org?: string | ObjectId;
@@ -2403,6 +2405,11 @@ type TVisitorTransaction = {
2403
2405
  }[];
2404
2406
  visitorPass?: string | null;
2405
2407
  expiredAt?: string | Date | null;
2408
+ arrivalTime?: string | null;
2409
+ duration?: number | null;
2410
+ isOvernightParking?: boolean;
2411
+ email?: string;
2412
+ numberOfPassengers?: number | null;
2406
2413
  createdAt?: string | Date;
2407
2414
  updatedAt?: string | Date;
2408
2415
  deletedAt?: string | Date;
@@ -2424,7 +2431,7 @@ declare function MVisitorTransaction(value: TVisitorTransaction): {
2424
2431
  recNo: string | undefined;
2425
2432
  checkIn: string | Date;
2426
2433
  checkOut: string | Date | undefined;
2427
- status: string | undefined;
2434
+ status: VisitorStatus | undefined;
2428
2435
  remarks: string | undefined;
2429
2436
  deliveryType: string | undefined;
2430
2437
  attachments: string[] | undefined;
@@ -2472,6 +2479,7 @@ declare function useVisitorTransactionService(): {
2472
2479
  add: (value: TVisitorTransaction) => Promise<ObjectId>;
2473
2480
  updateById: (id: string | ObjectId, value: TVisitorTransaction) => Promise<string>;
2474
2481
  processTransactionDahuaStatus: () => Promise<void>;
2482
+ inviteVisitor: (value: TVisitorTransaction, userId: string) => Promise<ObjectId>;
2475
2483
  };
2476
2484
 
2477
2485
  declare function useVisitorTransactionController(): {
@@ -2479,6 +2487,7 @@ declare function useVisitorTransactionController(): {
2479
2487
  getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2480
2488
  updateVisitorTansactionById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2481
2489
  deleteVisitorTransaction: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2490
+ inviteVisitor: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2482
2491
  };
2483
2492
 
2484
2493
  declare enum GuestStatus {
@@ -2608,6 +2617,7 @@ declare function usePersonRepo(): {
2608
2617
  recNo: string;
2609
2618
  }, session?: ClientSession) => Promise<void>;
2610
2619
  pullVehicleByRecNo: (recNo: string, session?: ClientSession) => Promise<void>;
2620
+ getByUserId: (userId: string | ObjectId) => Promise<TPerson | null>;
2611
2621
  };
2612
2622
 
2613
2623
  declare function usePersonController(): {