@7365admin1/layer-common 4.97.1-staging.666 → 4.97.1-staging.669

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.
@@ -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
 
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.97.1-staging.666",
5
+ "version": "4.97.1-staging.669",
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.