@7365admin1/core 3.70.0 → 3.72.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,17 @@
1
1
  # @iservice365/core
2
2
 
3
+ ## 3.72.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e38cc35: 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`.
8
+
9
+ ## 3.71.0
10
+
11
+ ### Minor Changes
12
+
13
+ - b9aff41: `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.
14
+
3
15
  ## 3.70.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -440,13 +440,15 @@ declare function useMemberRepo(): {
440
440
  getByUserIdType: (user: string | ObjectId, type: string) => Promise<TMember>;
441
441
  getByRoleId: (role: string | ObjectId) => Promise<any>;
442
442
  getAssignedByRoleId: (role: string | ObjectId) => Promise<TMember[]>;
443
- getAll: ({ search, page, limit, user, org, siteId, type, status, }: {
443
+ getAll: ({ search, page, limit, user, org, siteId, siteIds, type, status, }: {
444
444
  search?: string | undefined;
445
445
  page?: number | undefined;
446
446
  limit?: number | undefined;
447
447
  user?: string | ObjectId | undefined;
448
448
  org?: string | ObjectId | undefined;
449
449
  siteId?: string | ObjectId | undefined;
450
+ /** Restrict to these sites (the caller's pinned sites); `[]` lists nothing. */
451
+ siteIds?: string[] | undefined;
450
452
  type: string;
451
453
  status: string;
452
454
  }) => Promise<{
@@ -11192,6 +11194,8 @@ type TVerificationMetadataV2 = {
11192
11194
  invitedByPropertyManagement?: boolean;
11193
11195
  /** A new client's modules, chosen by Seven365 on Invite Client. */
11194
11196
  modules?: string[];
11197
+ /** The new client owner's permissions in that application, chosen with the modules. */
11198
+ permissions?: string[];
11195
11199
  };
11196
11200
  /**
11197
11201
  * The one-time code an invitee types to prove they own the mailbox, held on the