@7365admin1/layer-common 4.172.0 → 4.174.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,22 @@
1
1
  # @iservice365/layer-common
2
2
 
3
+ ## 4.174.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b616873: Property Management role editor: Marketplace at this site (marketplace-mgmt:view-site-vendors), the read-only vendor view and complaint route of decision #226.
8
+
9
+ ## 4.173.0
10
+
11
+ ### Minor Changes
12
+
13
+ - edcb290: Role editor: the three marketplace-mgmt permissions (manage listings, view orders, manage orders) for vendor roles in the cleaning catalogue. They prepare roles only until the API runs MARKETPLACE_PERMISSION_MODE=enforce.
14
+
15
+ ### Patch Changes
16
+
17
+ - b695480: Top bar: iRanger console pages are titled after the app ("iRanger Dispatch") instead of "Super Admin Iranger Dispatch".
18
+ - 4a4cae3: Fix web sign-up: `signUp()` now sends `referralCode` (the field `POST /api/auth/sign-up` accepts) instead of `referral`, which the server rejected with `"referral" is not allowed`, so every sign-up from the main web app failed.
19
+
3
20
  ## 4.172.0
4
21
 
5
22
  ### Minor Changes
@@ -3898,11 +3915,11 @@ Monthly report: a month that had patrols opens the list of that month's patrol r
3898
3915
  `utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
3899
3916
  own rule from two endpoints the console already calls, unprojected:
3900
3917
 
3901
- GET /api/members/user/:user/app/admin the Seven365 staff membership
3902
- GET /api/roles/id/:role that membership's role document
3918
+ GET /api/members/user/:user/app/admin the Seven365 staff membership
3919
+ GET /api/roles/id/:role that membership's role document
3903
3920
 
3904
- owner = member.type === "admin" && role.type === "admin" && role.default === true
3905
- staff = member.type === "admin" && role.type === "admin"
3921
+ owner = member.type === "admin" && role.type === "admin" && role.default === true
3922
+ staff = member.type === "admin" && role.type === "admin"
3906
3923
 
3907
3924
  `role.default` is the marker because it is the only property of a platform
3908
3925
  staff role no API caller can set - `role.controller.ts` validates create and
@@ -95,6 +95,27 @@ export default function useCleaningPermission() {
95
95
  "Allows the user to see HID Access in the app and use their own QR code, face, PIN, card and intercom at this site.",
96
96
  },
97
97
  },
98
+ // Marketplace vendor roles (decision #223, build #1100). Mirrored from
99
+ // API-core `src/utils/marketplace-permissions.ts`; manage-orders implies
100
+ // view-orders. Until the API runs `MARKETPLACE_PERMISSION_MODE=enforce`
101
+ // these only prepare roles; existing explicit roles are backfilled.
102
+ "marketplace-mgmt": {
103
+ "manage-listings": {
104
+ check: true,
105
+ description:
106
+ "Allows the user to create, edit, price, publish and delete marketplace listings, add stock, and manage discounts and vendor settings.",
107
+ },
108
+ "view-orders": {
109
+ check: true,
110
+ description:
111
+ "Allows the user to view the marketplace order queue and order chat (read-only).",
112
+ },
113
+ "manage-orders": {
114
+ check: true,
115
+ description:
116
+ "Allows the user to update marketplace order status and bookings, cancel, and post in order chat. Includes viewing orders.",
117
+ },
118
+ },
98
119
  toilet_locations: {
99
120
  "create-toilet-location": {
100
121
  check: true,
@@ -134,10 +134,10 @@ export default function useLocalAuth() {
134
134
  })
135
135
  }
136
136
 
137
- function signUp(email: string, referral: string) {
137
+ function signUp(email: string, referralCode: string) {
138
138
  return useNuxtApp().$api<Record<string, any>>("/api/auth/sign-up", {
139
139
  method: "POST",
140
- body: { email, referral },
140
+ body: { email, referralCode },
141
141
  });
142
142
  }
143
143
 
@@ -317,6 +317,16 @@ export default function usePropertyPermission() {
317
317
  "Allows the user to view the list of all service providers.",
318
318
  },
319
319
  },
320
+ // Marketplace at this site (decision #226): read-only, plus raising a
321
+ // complaint to Seven365. Mirrored from API-core
322
+ // `src/utils/marketplace-pm-authz.util.ts`. No approve / suspend right.
323
+ "marketplace-mgmt": {
324
+ "view-site-vendors": {
325
+ check: true,
326
+ description:
327
+ "Allows the user to see the marketplace vendors at the site (their live listings and order counts, no resident details) and raise a complaint about a vendor to Seven365.",
328
+ },
329
+ },
320
330
  "online-form-configuration": {
321
331
  "add-online-form-configuration": {
322
332
  check: true,
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.172.0",
5
+ "version": "4.174.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.",
@@ -20,9 +20,12 @@ const ACRONYMS: Record<string, string> = {
20
20
  soa: "SOA",
21
21
  sp: "SP",
22
22
  id: "ID",
23
+ iranger: "iRanger",
23
24
  };
24
25
 
25
26
  const RENAMED: [string, string][] = [
27
+ // iRanger console pages live under /super-admin/iranger but are named after the app alone.
28
+ ["Super Admin iRanger", "iRanger"],
26
29
  ["Building Mgmt", "Occupancy Mgmt"],
27
30
  ["Event Mgmt", "Task Calendar"],
28
31
  // Schedule screens (owner 21 Oct): the same names the menu and the mobile apps use.