@7365admin1/core 2.39.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 +12 -0
- package/dist/index.d.ts +37 -10
- package/dist/index.js +5708 -5266
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6146 -5698
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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;
|
|
@@ -399,7 +398,7 @@ declare function useVerificationService(): {
|
|
|
399
398
|
metadata: TKeyValuePair;
|
|
400
399
|
}) => Promise<bson.ObjectId>;
|
|
401
400
|
createForgetPassword: (email: string) => Promise<string>;
|
|
402
|
-
createServiceProviderInvite: ({ email, orgId, siteId, siteName
|
|
401
|
+
createServiceProviderInvite: ({ email, orgId, siteId, siteName }: {
|
|
403
402
|
email: string;
|
|
404
403
|
orgId: string;
|
|
405
404
|
siteId: 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
|
|
|
@@ -6226,13 +6230,9 @@ declare function manpowerEvents(io: Server): Promise<void>;
|
|
|
6226
6230
|
declare function useRedDotPaymentController(): {
|
|
6227
6231
|
redirectPaymentTransaction: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
6228
6232
|
enquirePaymentTransaction: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
6233
|
+
createPayment: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
|
|
6229
6234
|
};
|
|
6230
6235
|
|
|
6231
|
-
type TPaymentRequest = {
|
|
6232
|
-
cardNumber: string;
|
|
6233
|
-
rdpMid: string;
|
|
6234
|
-
orderId: string;
|
|
6235
|
-
};
|
|
6236
6236
|
interface IDirectPayment extends IBaseModel {
|
|
6237
6237
|
_id?: ObjectId;
|
|
6238
6238
|
mid?: string | ObjectId;
|
|
@@ -6264,11 +6264,38 @@ interface IDirectPayment extends IBaseModel {
|
|
|
6264
6264
|
declare const useRedDotPaymentSvc: () => {
|
|
6265
6265
|
redirectPaymentTransaction: (payload: IDirectPayment) => Promise<any>;
|
|
6266
6266
|
enquirePaymentTransaction: (payload: IDirectPayment) => Promise<any>;
|
|
6267
|
-
|
|
6267
|
+
};
|
|
6268
|
+
|
|
6269
|
+
type TBillingItems = {
|
|
6270
|
+
_id: ObjectId | string;
|
|
6271
|
+
name: string;
|
|
6272
|
+
};
|
|
6273
|
+
type TBillingPayments = {
|
|
6274
|
+
_id?: ObjectId;
|
|
6275
|
+
unitBillingItems?: TBillingItems[];
|
|
6276
|
+
unitId?: string | ObjectId;
|
|
6277
|
+
unitOwner?: string;
|
|
6278
|
+
category?: string;
|
|
6279
|
+
totalAmount?: number;
|
|
6280
|
+
referenceNumber?: string;
|
|
6281
|
+
status?: string;
|
|
6282
|
+
paidBy?: string | ObjectId;
|
|
6283
|
+
datePaid?: string | Date;
|
|
6284
|
+
transaction_id?: string;
|
|
6285
|
+
message?: string;
|
|
6286
|
+
method?: string;
|
|
6287
|
+
createdAt?: Date;
|
|
6288
|
+
updatedAt?: string | Date;
|
|
6289
|
+
deletedAt?: string | Date;
|
|
6268
6290
|
};
|
|
6269
6291
|
|
|
6270
6292
|
declare const useRedDotPaymentRepo: () => {
|
|
6271
6293
|
paySingleUnitBill: (refId: string, payload: Partial<TUnitBilling>) => Promise<mongodb.WithId<bson.Document> | null>;
|
|
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
|
+
}>;
|
|
6272
6299
|
};
|
|
6273
6300
|
|
|
6274
6301
|
declare enum VerificationType {
|