@7365admin1/core 2.41.0 → 2.43.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.43.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 08875ce: get latest changes
8
+
9
+ ## 2.42.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 6e08f58: get latest changes
14
+
3
15
  ## 2.41.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -1640,10 +1640,22 @@ declare function useSiteRepo(): {
1640
1640
  updateSiteIncidentCounter: (_id: string | ObjectId, incidentCounter: number, session?: ClientSession) => Promise<number>;
1641
1641
  updateSiteById: (id: string | ObjectId, payload: TSite, session?: ClientSession) => Promise<number>;
1642
1642
  getAllSitesUnpaginated: () => Promise<bson.Document[]>;
1643
- siteInformation: ({ id, payload }: {
1643
+ siteInformation: ({ id, payload, }: {
1644
1644
  id: string;
1645
1645
  payload: TSiteInformation;
1646
1646
  }) => Promise<number>;
1647
+ getAllSitesForResidentCreation: ({ search, page, limit, }: {
1648
+ search: string;
1649
+ page: number;
1650
+ limit: number;
1651
+ }) => Promise<{
1652
+ items: {
1653
+ _id: ObjectId;
1654
+ name: string;
1655
+ }[];
1656
+ pages: number;
1657
+ pageRange: string;
1658
+ }>;
1647
1659
  };
1648
1660
 
1649
1661
  declare function useSiteService(): {
@@ -1681,6 +1693,7 @@ declare function useSiteController(): {
1681
1693
  updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1682
1694
  updateGuardPostsById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1683
1695
  siteInformation: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1696
+ getAllSitesForResidentCreation: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1684
1697
  };
1685
1698
 
1686
1699
  type TChat = {
@@ -2025,13 +2038,13 @@ declare function MVehicle(value: TVehicle): {
2025
2038
  nric: string;
2026
2039
  remarks: string;
2027
2040
  seasonPassType: string;
2028
- start: string | Date;
2041
+ start: Date;
2029
2042
  end: string | Date;
2030
2043
  status: string;
2031
2044
  unitName: string;
2032
2045
  peopleId: string | ObjectId;
2033
2046
  vehicleModel: string;
2034
- createdAt: string;
2047
+ createdAt: Date;
2035
2048
  updatedAt: string | Date;
2036
2049
  deletedAt: string | Date;
2037
2050
  };
@@ -2107,7 +2120,7 @@ declare function useVehicleRepo(): {
2107
2120
  pageRange: string;
2108
2121
  }>;
2109
2122
  getAllExpiredVehicles: () => Promise<mongodb.WithId<bson.Document>[]>;
2110
- bulkUpsertVehicles: (values: TVehicle[], session?: ClientSession) => Promise<{
2123
+ bulkUpsertVehicles: (values: TVehicle[]) => Promise<{
2111
2124
  matchedCount: number;
2112
2125
  modifiedCount: number;
2113
2126
  upsertedCount: number;
@@ -2165,7 +2178,7 @@ declare function useVehicleController(): {
2165
2178
  getVehiclesByNRIC: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2166
2179
  reactivateVehicleById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2167
2180
  getAllVehiclesByUnitId: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2168
- uploadExcelVehicles: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2181
+ uploadSpreadsheetVehicles: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2169
2182
  };
2170
2183
 
2171
2184
  declare enum CameraType {
@@ -2480,6 +2493,8 @@ type TPerson = {
2480
2493
  plates?: TPlates[];
2481
2494
  isOwner?: boolean;
2482
2495
  files?: TFiles[];
2496
+ plateNumber?: string;
2497
+ platform?: string;
2483
2498
  createdAt?: string | Date;
2484
2499
  updatedAt?: string | Date;
2485
2500
  deletedAt?: string | Date;
@@ -2513,6 +2528,8 @@ declare function MPerson(value: TPerson): {
2513
2528
  plates: TPlates[];
2514
2529
  isOwner: boolean;
2515
2530
  files: TFiles[];
2531
+ plateNumber: string;
2532
+ platForm: string;
2516
2533
  createdAt: string | Date;
2517
2534
  updatedAt: string | Date | undefined;
2518
2535
  deletedAt: string | Date | undefined;
@@ -2552,7 +2569,7 @@ type TVisitorTransaction = {
2552
2569
  unit?: string | ObjectId;
2553
2570
  checkIn?: string | Date | null;
2554
2571
  expectedCheckIn?: string | Date;
2555
- checkOut?: string | Date;
2572
+ checkOut?: string | Date | null;
2556
2573
  status?: VisitorStatus;
2557
2574
  nric?: string;
2558
2575
  remarks?: string;
@@ -2609,7 +2626,7 @@ declare function MVisitorTransaction(value: TVisitorTransaction): {
2609
2626
  recNo: string | undefined;
2610
2627
  checkIn: string | Date | null;
2611
2628
  expectedCheckIn: Date | undefined;
2612
- checkOut: string | Date | undefined;
2629
+ checkOut: string | Date | null | undefined;
2613
2630
  status: VisitorStatus | undefined;
2614
2631
  remarks: string | undefined;
2615
2632
  deliveryType: string | undefined;
@@ -5769,6 +5786,7 @@ declare function useManpowerMonitoringRepo(): {
5769
5786
  message: string;
5770
5787
  }>;
5771
5788
  getAllSites: (serviceProviderId: string | ObjectId) => Promise<any>;
5789
+ createIndexes: () => Promise<string>;
5772
5790
  };
5773
5791
 
5774
5792
  declare function useManpowerMonitoringSrvc(): {
@@ -5823,6 +5841,7 @@ declare function useManpowerDesignationRepo(): {
5823
5841
  createManpowerDesignations: (value: TManpowerDesignations) => Promise<mongodb.InsertOneResult<bson.Document>>;
5824
5842
  getManpowerDesignationsBySiteId: (_id: string | ObjectId, serviceProviderId?: string | ObjectId) => Promise<mongodb.WithId<bson.Document> | null>;
5825
5843
  updateManpowerDesignations: (_id: string | ObjectId, value: TManpowerDesignationsUpdate) => Promise<number>;
5844
+ createIndexes: () => Promise<string>;
5826
5845
  };
5827
5846
 
5828
5847
  declare function useManpowerDesignationCtrl(): {
@@ -6170,6 +6189,7 @@ declare function useManpowerRemarksRepo(): {
6170
6189
  getManpowerRemarksBySiteId: (_id: string | ObjectId, date: string, serviceProviderId?: string | ObjectId) => Promise<mongodb.WithId<bson.Document> | null>;
6171
6190
  updateManpowerRemarks: (_id: string | ObjectId, value: TManpowerRemarksUpdate) => Promise<number>;
6172
6191
  updateRemarksStatus: (_id: string | ObjectId, value: TManpowerRemarksStatusUpdate) => Promise<number>;
6192
+ createIndexes: () => Promise<string>;
6173
6193
  };
6174
6194
 
6175
6195
  declare function useManpowerRemarkCtrl(): {