@7365admin1/layer-common 4.46.0 → 4.47.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,11 @@
1
1
  # @iservice365/layer-common
2
2
 
3
+ ## 4.47.0
4
+
5
+ ### Minor Changes
6
+
7
+ - cde8389: `getVerifications` takes `origin`; the console Client List's Pending tab lists only invitations Seven365 sent.
8
+
3
9
  ## 4.46.0
4
10
 
5
11
  ### Minor Changes
@@ -1515,11 +1521,11 @@
1515
1521
  `utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
1516
1522
  own rule from two endpoints the console already calls, unprojected:
1517
1523
 
1518
- GET /api/members/user/:user/app/admin the Seven365 staff membership
1519
- GET /api/roles/id/:role that membership's role document
1524
+ GET /api/members/user/:user/app/admin the Seven365 staff membership
1525
+ GET /api/roles/id/:role that membership's role document
1520
1526
 
1521
- owner = member.type === "admin" && role.type === "admin" && role.default === true
1522
- staff = member.type === "admin" && role.type === "admin"
1527
+ owner = member.type === "admin" && role.type === "admin" && role.default === true
1528
+ staff = member.type === "admin" && role.type === "admin"
1523
1529
 
1524
1530
  `role.default` is the marker because it is the only property of a platform
1525
1531
  staff role no API caller can set - `role.controller.ts` validates create and
@@ -636,6 +636,8 @@ async function fetchPending() {
636
636
  const res = await getVerifications({
637
637
  status: 'pending',
638
638
  type: 'user-invite',
639
+ // Only what Seven365 sent - never a client's own invitations (owner, 2026-09-25).
640
+ origin: 'seven365',
639
641
  page: page.value,
640
642
  search: search.value,
641
643
  email: search.value,
@@ -9,6 +9,8 @@ export default function useVerification() {
9
9
  siteId = "",
10
10
  orgId = "",
11
11
  limit = 20,
12
+ // "seven365": only the invitations Seven365 sent (the console's lists).
13
+ origin = "",
12
14
  } = {}): Promise<{
13
15
  items: TMiniVerification[];
14
16
  pages: number;
@@ -16,7 +18,11 @@ export default function useVerification() {
16
18
  }> {
17
19
  return useNuxtApp().$api("/api/verifications", {
18
20
  method: "GET",
19
- query: { status, search, page, type, email, app, siteId, orgId, limit },
21
+ query: {
22
+ status, search, page, type, email, app, siteId, orgId, limit,
23
+ // Sent only when asked for: an older API refuses a key it does not know.
24
+ ...(origin && { origin }),
25
+ },
20
26
  });
21
27
  }
22
28
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@7365admin1/layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "4.46.0",
5
+ "version": "4.47.0",
6
6
  "author": "7365admin1",
7
7
  "main": "./nuxt.config.ts",
8
8
  "//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",