@7365admin1/core 2.40.0 → 2.42.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.42.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6e08f58: get latest changes
8
+
9
+ ## 2.41.0
10
+
11
+ ### Minor Changes
12
+
13
+ - a91bf1e: get latest changes
14
+
3
15
  ## 2.40.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -6,7 +6,6 @@ import * as bson from 'bson';
6
6
  import { z } from 'zod';
7
7
  import * as urllib from 'urllib';
8
8
  import { Server } from 'socket.io';
9
- import * as axios from 'axios';
10
9
 
11
10
  interface IBaseModel {
12
11
  unitNumber?: string;
@@ -1770,6 +1769,7 @@ type TBuildingUnit = {
1770
1769
  companyRegistrationNumber?: number | string;
1771
1770
  leaseStart?: Date | string;
1772
1771
  leaseEnd?: Date | string;
1772
+ unitNumber?: number | null;
1773
1773
  };
1774
1774
  declare const schemaBilling: Joi.ObjectSchema<any>;
1775
1775
  declare const schemaBuildingUnit: Joi.ObjectSchema<any>;
@@ -1810,6 +1810,7 @@ declare function MBuildingUnit(value: TBuildingUnit): {
1810
1810
  leaseStart: string | Date;
1811
1811
  leaseEnd: string | Date;
1812
1812
  billing: TBilling[];
1813
+ unitNumber: number | null;
1813
1814
  };
1814
1815
 
1815
1816
  declare const buildings_namespace_collection = "buildings";
@@ -1866,6 +1867,7 @@ declare function useBuildingUnitRepo(): {
1866
1867
  updateByBuildingId: (building: string | ObjectId, value: Partial<Pick<TBuildingUnit, "buildingName" | "block">>, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
1867
1868
  getBuildingUnits: (site: string | ObjectId, block: number, level: string) => Promise<{}>;
1868
1869
  getBuildingUnitsWithOwner: (site: string | ObjectId, unitIds?: ObjectId[]) => Promise<{}>;
1870
+ getUnitByBlockLevelUnitNumber: (block: number, level: string, unitNumber: string, site: string | ObjectId, session?: ClientSession) => Promise<TBuildingUnit>;
1869
1871
  };
1870
1872
 
1871
1873
  declare function useBuildingUnitService(): {
@@ -2000,6 +2002,8 @@ type TVehicle = {
2000
2002
  recNo?: string;
2001
2003
  seasonPassType?: string;
2002
2004
  peopleId?: string | ObjectId;
2005
+ vehicleModel?: string;
2006
+ vehicleColor?: string;
2003
2007
  createdAt?: Date | string;
2004
2008
  updatedAt?: Date | string;
2005
2009
  deletedAt?: Date | string;
@@ -2021,12 +2025,13 @@ declare function MVehicle(value: TVehicle): {
2021
2025
  nric: string;
2022
2026
  remarks: string;
2023
2027
  seasonPassType: string;
2024
- start: string | Date;
2028
+ start: Date;
2025
2029
  end: string | Date;
2026
2030
  status: string;
2027
2031
  unitName: string;
2028
2032
  peopleId: string | ObjectId;
2029
- createdAt: string;
2033
+ vehicleModel: string;
2034
+ createdAt: Date;
2030
2035
  updatedAt: string | Date;
2031
2036
  deletedAt: string | Date;
2032
2037
  };
@@ -2102,7 +2107,7 @@ declare function useVehicleRepo(): {
2102
2107
  pageRange: string;
2103
2108
  }>;
2104
2109
  getAllExpiredVehicles: () => Promise<mongodb.WithId<bson.Document>[]>;
2105
- bulkUpsertVehicles: (values: TVehicle[], session?: ClientSession) => Promise<{
2110
+ bulkUpsertVehicles: (values: TVehicle[]) => Promise<{
2106
2111
  matchedCount: number;
2107
2112
  modifiedCount: number;
2108
2113
  upsertedCount: number;
@@ -2134,7 +2139,7 @@ declare function useVehicleService(): {
2134
2139
  processDeletingExpiredVehicles: () => Promise<string>;
2135
2140
  reactivateVehicleById: (id: string, orgId: string, siteId: string) => Promise<string>;
2136
2141
  updateVehicleById: (_id: string, value: TVehicle) => Promise<void>;
2137
- bulkUpsertVehicles: (values: TVehicle[]) => Promise<{
2142
+ bulkUpsertVehicles: (values: TVehicle[], site: string, org: string) => Promise<{
2138
2143
  matchedCount: number;
2139
2144
  modifiedCount: number;
2140
2145
  upsertedCount: number;
@@ -2160,8 +2165,7 @@ declare function useVehicleController(): {
2160
2165
  getVehiclesByNRIC: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2161
2166
  reactivateVehicleById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2162
2167
  getAllVehiclesByUnitId: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2163
- uploadCsvVehicles: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2164
- uploadExcelVehicles: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2168
+ uploadSpreadsheetVehicles: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2165
2169
  };
2166
2170
 
2167
2171
  declare enum CameraType {
@@ -2476,6 +2480,7 @@ type TPerson = {
2476
2480
  plates?: TPlates[];
2477
2481
  isOwner?: boolean;
2478
2482
  files?: TFiles[];
2483
+ plateNumber?: string;
2479
2484
  createdAt?: string | Date;
2480
2485
  updatedAt?: string | Date;
2481
2486
  deletedAt?: string | Date;
@@ -2509,6 +2514,7 @@ declare function MPerson(value: TPerson): {
2509
2514
  plates: TPlates[];
2510
2515
  isOwner: boolean;
2511
2516
  files: TFiles[];
2517
+ plateNumber: string;
2512
2518
  createdAt: string | Date;
2513
2519
  updatedAt: string | Date | undefined;
2514
2520
  deletedAt: string | Date | undefined;
@@ -5765,6 +5771,7 @@ declare function useManpowerMonitoringRepo(): {
5765
5771
  message: string;
5766
5772
  }>;
5767
5773
  getAllSites: (serviceProviderId: string | ObjectId) => Promise<any>;
5774
+ createIndexes: () => Promise<string>;
5768
5775
  };
5769
5776
 
5770
5777
  declare function useManpowerMonitoringSrvc(): {
@@ -5819,6 +5826,7 @@ declare function useManpowerDesignationRepo(): {
5819
5826
  createManpowerDesignations: (value: TManpowerDesignations) => Promise<mongodb.InsertOneResult<bson.Document>>;
5820
5827
  getManpowerDesignationsBySiteId: (_id: string | ObjectId, serviceProviderId?: string | ObjectId) => Promise<mongodb.WithId<bson.Document> | null>;
5821
5828
  updateManpowerDesignations: (_id: string | ObjectId, value: TManpowerDesignationsUpdate) => Promise<number>;
5829
+ createIndexes: () => Promise<string>;
5822
5830
  };
5823
5831
 
5824
5832
  declare function useManpowerDesignationCtrl(): {
@@ -6166,6 +6174,7 @@ declare function useManpowerRemarksRepo(): {
6166
6174
  getManpowerRemarksBySiteId: (_id: string | ObjectId, date: string, serviceProviderId?: string | ObjectId) => Promise<mongodb.WithId<bson.Document> | null>;
6167
6175
  updateManpowerRemarks: (_id: string | ObjectId, value: TManpowerRemarksUpdate) => Promise<number>;
6168
6176
  updateRemarksStatus: (_id: string | ObjectId, value: TManpowerRemarksStatusUpdate) => Promise<number>;
6177
+ createIndexes: () => Promise<string>;
6169
6178
  };
6170
6179
 
6171
6180
  declare function useManpowerRemarkCtrl(): {
@@ -6229,11 +6238,6 @@ declare function useRedDotPaymentController(): {
6229
6238
  createPayment: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
6230
6239
  };
6231
6240
 
6232
- type TPaymentRequest = {
6233
- cardNumber: string;
6234
- rdpMid: string;
6235
- orderId: string;
6236
- };
6237
6241
  interface IDirectPayment extends IBaseModel {
6238
6242
  _id?: ObjectId;
6239
6243
  mid?: string | ObjectId;
@@ -6265,7 +6269,6 @@ interface IDirectPayment extends IBaseModel {
6265
6269
  declare const useRedDotPaymentSvc: () => {
6266
6270
  redirectPaymentTransaction: (payload: IDirectPayment) => Promise<any>;
6267
6271
  enquirePaymentTransaction: (payload: IDirectPayment) => Promise<any>;
6268
- payInvoice: (payload: TPaymentRequest) => Promise<axios.AxiosResponse<any, any, {}>>;
6269
6272
  };
6270
6273
 
6271
6274
  type TBillingItems = {
@@ -6294,6 +6297,10 @@ type TBillingPayments = {
6294
6297
  declare const useRedDotPaymentRepo: () => {
6295
6298
  paySingleUnitBill: (refId: string, payload: Partial<TUnitBilling>) => Promise<mongodb.WithId<bson.Document> | null>;
6296
6299
  createPayment: (type: string, payload: Partial<TBillingPayments>, session?: ClientSession) => Promise<ObjectId | undefined>;
6300
+ payMultipleUnitBill: (refId: string[], payload: Partial<TUnitBilling>) => Promise<{
6301
+ message: string;
6302
+ remainingBalance: number;
6303
+ }>;
6297
6304
  };
6298
6305
 
6299
6306
  declare enum VerificationType {