@7365admin1/core 2.39.0 → 2.40.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 +6 -0
- package/dist/index.d.ts +26 -1
- package/dist/index.js +4642 -4409
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4826 -4587
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -399,7 +399,7 @@ declare function useVerificationService(): {
|
|
|
399
399
|
metadata: TKeyValuePair;
|
|
400
400
|
}) => Promise<bson.ObjectId>;
|
|
401
401
|
createForgetPassword: (email: string) => Promise<string>;
|
|
402
|
-
createServiceProviderInvite: ({ email, orgId, siteId, siteName
|
|
402
|
+
createServiceProviderInvite: ({ email, orgId, siteId, siteName }: {
|
|
403
403
|
email: string;
|
|
404
404
|
orgId: string;
|
|
405
405
|
siteId: string;
|
|
@@ -6226,6 +6226,7 @@ declare function manpowerEvents(io: Server): Promise<void>;
|
|
|
6226
6226
|
declare function useRedDotPaymentController(): {
|
|
6227
6227
|
redirectPaymentTransaction: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
6228
6228
|
enquirePaymentTransaction: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
|
|
6229
|
+
createPayment: (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;
|
|
6229
6230
|
};
|
|
6230
6231
|
|
|
6231
6232
|
type TPaymentRequest = {
|
|
@@ -6267,8 +6268,32 @@ declare const useRedDotPaymentSvc: () => {
|
|
|
6267
6268
|
payInvoice: (payload: TPaymentRequest) => Promise<axios.AxiosResponse<any, any, {}>>;
|
|
6268
6269
|
};
|
|
6269
6270
|
|
|
6271
|
+
type TBillingItems = {
|
|
6272
|
+
_id: ObjectId | string;
|
|
6273
|
+
name: string;
|
|
6274
|
+
};
|
|
6275
|
+
type TBillingPayments = {
|
|
6276
|
+
_id?: ObjectId;
|
|
6277
|
+
unitBillingItems?: TBillingItems[];
|
|
6278
|
+
unitId?: string | ObjectId;
|
|
6279
|
+
unitOwner?: string;
|
|
6280
|
+
category?: string;
|
|
6281
|
+
totalAmount?: number;
|
|
6282
|
+
referenceNumber?: string;
|
|
6283
|
+
status?: string;
|
|
6284
|
+
paidBy?: string | ObjectId;
|
|
6285
|
+
datePaid?: string | Date;
|
|
6286
|
+
transaction_id?: string;
|
|
6287
|
+
message?: string;
|
|
6288
|
+
method?: string;
|
|
6289
|
+
createdAt?: Date;
|
|
6290
|
+
updatedAt?: string | Date;
|
|
6291
|
+
deletedAt?: string | Date;
|
|
6292
|
+
};
|
|
6293
|
+
|
|
6270
6294
|
declare const useRedDotPaymentRepo: () => {
|
|
6271
6295
|
paySingleUnitBill: (refId: string, payload: Partial<TUnitBilling>) => Promise<mongodb.WithId<bson.Document> | null>;
|
|
6296
|
+
createPayment: (type: string, payload: Partial<TBillingPayments>, session?: ClientSession) => Promise<ObjectId | undefined>;
|
|
6272
6297
|
};
|
|
6273
6298
|
|
|
6274
6299
|
declare enum VerificationType {
|