@7365admin1/core 2.60.0 → 2.61.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 +22 -0
- package/dist/index.js +511 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +511 -20
- package/dist/index.mjs.map +1 -1
- package/dist/public/handlebars/user-invite.hbs +157 -67
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -282,6 +282,7 @@ declare function useMemberRepo(): {
|
|
|
282
282
|
add: (value: TMember, session?: ClientSession) => Promise<string>;
|
|
283
283
|
getById: (_id: string | ObjectId) => Promise<TMember>;
|
|
284
284
|
getByUserId: (user: string | ObjectId) => Promise<TMember>;
|
|
285
|
+
getAllByUserId: (user: string | ObjectId) => Promise<TMember[]>;
|
|
285
286
|
getByUserIdType: (user: string | ObjectId, type: string) => Promise<TMember>;
|
|
286
287
|
getByRoleId: (role: string | ObjectId) => Promise<any>;
|
|
287
288
|
getAll: ({ search, page, limit, user, org, type, status, }: {
|
|
@@ -327,6 +328,7 @@ declare function useMemberRepo(): {
|
|
|
327
328
|
countUserMembershipById: (user: string | ObjectId) => Promise<number | TMember>;
|
|
328
329
|
updateRoleById: (_id: string | ObjectId, role: string | ObjectId) => Promise<number>;
|
|
329
330
|
getByRoles: (roles: string[] | ObjectId[], type: string) => Promise<TMember[]>;
|
|
331
|
+
updateSiteById: (_id: string | ObjectId, siteId: string | ObjectId, siteName: string) => Promise<number>;
|
|
330
332
|
};
|
|
331
333
|
|
|
332
334
|
declare function useMemberController(): {
|
|
@@ -338,6 +340,8 @@ declare function useMemberController(): {
|
|
|
338
340
|
updateMemberStatus: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
339
341
|
updateRoleById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
340
342
|
createMemberDirect: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
343
|
+
updateSiteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
344
|
+
getAllByUser: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
341
345
|
};
|
|
342
346
|
|
|
343
347
|
type TVerificationMetadata = {
|
|
@@ -422,6 +426,19 @@ declare function useVerificationService(): {
|
|
|
422
426
|
createSimpleUserInvite: ({ email, metadata }: {
|
|
423
427
|
email: string;
|
|
424
428
|
metadata: TKeyValuePair;
|
|
429
|
+
}) => Promise<string[]>;
|
|
430
|
+
createSimpleMemberInvite: ({ email, metadata }: {
|
|
431
|
+
email: string;
|
|
432
|
+
metadata: TKeyValuePair;
|
|
433
|
+
}) => Promise<bson.ObjectId>;
|
|
434
|
+
createSimpleServiceProviderInvite: ({ email, app, name, role, orgId, siteId, siteName }: {
|
|
435
|
+
email: string;
|
|
436
|
+
app?: string | undefined;
|
|
437
|
+
name?: string | undefined;
|
|
438
|
+
role?: string | undefined;
|
|
439
|
+
orgId: string;
|
|
440
|
+
siteId: string;
|
|
441
|
+
siteName: string;
|
|
425
442
|
}) => Promise<bson.ObjectId>;
|
|
426
443
|
};
|
|
427
444
|
|
|
@@ -429,11 +446,13 @@ declare function useVerificationController(): {
|
|
|
429
446
|
getVerifications: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
430
447
|
createUserInvite: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
431
448
|
createServiceProviderInvite: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
449
|
+
createSimpleServiceProviderInvite: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
432
450
|
createForgetPassword: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
433
451
|
verify: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
434
452
|
updateVerificationStatus: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
435
453
|
cancelUserInvitation: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
436
454
|
createSimpleUserInvite: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
455
|
+
createSimpleMemberInvite: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
437
456
|
};
|
|
438
457
|
|
|
439
458
|
type TFile = {
|
|
@@ -497,6 +516,7 @@ declare function useOrgRepo(): {
|
|
|
497
516
|
createTextIndex: () => Promise<void>;
|
|
498
517
|
createUniqueIndex: () => Promise<void>;
|
|
499
518
|
add: (value: TOrg, session?: ClientSession) => Promise<ObjectId>;
|
|
519
|
+
update: (id: string, value: Partial<TOrg>, session?: ClientSession) => Promise<string>;
|
|
500
520
|
getAll: ({ search, page, limit, sort, status, nature, }: {
|
|
501
521
|
search?: string | undefined;
|
|
502
522
|
page?: number | undefined;
|
|
@@ -529,6 +549,7 @@ declare function useOrgController(): {
|
|
|
529
549
|
getByName: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
530
550
|
getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
531
551
|
getByEmail: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
552
|
+
update: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
532
553
|
};
|
|
533
554
|
|
|
534
555
|
/**
|
|
@@ -1937,6 +1958,7 @@ declare function useBuildingUnitRepo(): {
|
|
|
1937
1958
|
getBuildingUnitsWithOwner: (site: string | ObjectId, unitIds?: ObjectId[]) => Promise<{}>;
|
|
1938
1959
|
getUnitByBlockLevelUnitNumber: (block: number, level: string, unitNumber: string, site: string | ObjectId, session?: ClientSession) => Promise<TBuildingUnit>;
|
|
1939
1960
|
getBySiteBuildingLevel: (site: string | ObjectId, block: number, level: string) => Promise<TBuildingUnit | null>;
|
|
1961
|
+
bulkAddBuildingUnits: (value: TBuildingUnit[], session?: ClientSession) => Promise<mongodb.BulkWriteResult>;
|
|
1940
1962
|
};
|
|
1941
1963
|
|
|
1942
1964
|
declare function useBuildingUnitService(): {
|