@7365admin1/core 3.68.3-staging.315 → 3.68.3-staging.317
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/.changeset/client-invite-owner-role-permissions.md +5 -0
- package/.changeset/member-list-site-scope.md +5 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +5495 -5338
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1106 -949
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/test/e2e/client-invite-modules.e2e.test.mjs +119 -2
- package/test/e2e/member-list-site-scope.e2e.test.mjs +111 -0
- package/test/member-list-site-scope.test.mjs +30 -0
- package/test/org-default-roles.test.mjs +22 -0
- package/test/org-modules.test.mjs +26 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
---
|
|
2
|
+
"@7365admin1/core": minor
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Invite Client: Seven365 staff choose the new client owner's role permissions with the modules (`permissions` on `POST /api/auth/invite/user`, only with `modules`, each inside them, never a console permission). Onboarding writes them on the client's own application owner role and records it as the organisation's `invitedRole`, so the owner's application membership gets exactly that role. Role writes for that application in that organisation stay within it (`*`/empty becomes the grant; wider strings are refused; Seven365 staff are not capped). Clients invited before this are unchanged. Kill switch: `CLIENT_INVITE_OWNER_PERMISSIONS=off`.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
---
|
|
2
|
+
"@7365admin1/core": minor
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
`GET /api/members?org=` lists only the sites a caller is pinned to when the caller holds no organisation-wide membership or organisation-level role there; a `siteId` outside those sites is refused. Organisation-wide members, owners/invitees and Seven365 staff are unchanged; a resident-only caller lists no staff.
|
package/dist/index.d.ts
CHANGED
|
@@ -442,13 +442,15 @@ declare function useMemberRepo(): {
|
|
|
442
442
|
getByUserIdType: (user: string | ObjectId, type: string) => Promise<TMember>;
|
|
443
443
|
getByRoleId: (role: string | ObjectId) => Promise<any>;
|
|
444
444
|
getAssignedByRoleId: (role: string | ObjectId) => Promise<TMember[]>;
|
|
445
|
-
getAll: ({ search, page, limit, user, org, siteId, type, status, }: {
|
|
445
|
+
getAll: ({ search, page, limit, user, org, siteId, siteIds, type, status, }: {
|
|
446
446
|
search?: string | undefined;
|
|
447
447
|
page?: number | undefined;
|
|
448
448
|
limit?: number | undefined;
|
|
449
449
|
user?: string | ObjectId | undefined;
|
|
450
450
|
org?: string | ObjectId | undefined;
|
|
451
451
|
siteId?: string | ObjectId | undefined;
|
|
452
|
+
/** Restrict to these sites (the caller's pinned sites); `[]` lists nothing. */
|
|
453
|
+
siteIds?: string[] | undefined;
|
|
452
454
|
type: string;
|
|
453
455
|
status: string;
|
|
454
456
|
}) => Promise<{
|
|
@@ -11307,6 +11309,8 @@ type TVerificationMetadataV2 = {
|
|
|
11307
11309
|
invitedByPropertyManagement?: boolean;
|
|
11308
11310
|
/** A new client's modules, chosen by Seven365 on Invite Client. */
|
|
11309
11311
|
modules?: string[];
|
|
11312
|
+
/** The new client owner's permissions in that application, chosen with the modules. */
|
|
11313
|
+
permissions?: string[];
|
|
11310
11314
|
};
|
|
11311
11315
|
/**
|
|
11312
11316
|
* The one-time code an invitee types to prove they own the mailbox, held on the
|