@7365admin1/core 2.40.0 → 2.41.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.41.0
4
+
5
+ ### Minor Changes
6
+
7
+ - a91bf1e: get latest changes
8
+
3
9
  ## 2.40.0
4
10
 
5
11
  ### 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;
@@ -2026,6 +2030,7 @@ declare function MVehicle(value: TVehicle): {
2026
2030
  status: string;
2027
2031
  unitName: string;
2028
2032
  peopleId: string | ObjectId;
2033
+ vehicleModel: string;
2029
2034
  createdAt: string;
2030
2035
  updatedAt: string | Date;
2031
2036
  deletedAt: string | Date;
@@ -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,7 +2165,6 @@ 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
2168
  uploadExcelVehicles: (req: Request, res: Response, next: NextFunction) => Promise<void>;
2165
2169
  };
2166
2170
 
@@ -6229,11 +6233,6 @@ declare function useRedDotPaymentController(): {
6229
6233
  createPayment: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
6230
6234
  };
6231
6235
 
6232
- type TPaymentRequest = {
6233
- cardNumber: string;
6234
- rdpMid: string;
6235
- orderId: string;
6236
- };
6237
6236
  interface IDirectPayment extends IBaseModel {
6238
6237
  _id?: ObjectId;
6239
6238
  mid?: string | ObjectId;
@@ -6265,7 +6264,6 @@ interface IDirectPayment extends IBaseModel {
6265
6264
  declare const useRedDotPaymentSvc: () => {
6266
6265
  redirectPaymentTransaction: (payload: IDirectPayment) => Promise<any>;
6267
6266
  enquirePaymentTransaction: (payload: IDirectPayment) => Promise<any>;
6268
- payInvoice: (payload: TPaymentRequest) => Promise<axios.AxiosResponse<any, any, {}>>;
6269
6267
  };
6270
6268
 
6271
6269
  type TBillingItems = {
@@ -6294,6 +6292,10 @@ type TBillingPayments = {
6294
6292
  declare const useRedDotPaymentRepo: () => {
6295
6293
  paySingleUnitBill: (refId: string, payload: Partial<TUnitBilling>) => Promise<mongodb.WithId<bson.Document> | null>;
6296
6294
  createPayment: (type: string, payload: Partial<TBillingPayments>, session?: ClientSession) => Promise<ObjectId | undefined>;
6295
+ payMultipleUnitBill: (refId: string[], payload: Partial<TUnitBilling>) => Promise<{
6296
+ message: string;
6297
+ remainingBalance: number;
6298
+ }>;
6297
6299
  };
6298
6300
 
6299
6301
  declare enum VerificationType {