@7365admin1/layer-common 4.172.0 → 4.173.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,16 @@
|
|
|
1
1
|
# @iservice365/layer-common
|
|
2
2
|
|
|
3
|
+
## 4.173.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 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.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- b695480: Top bar: iRanger console pages are titled after the app ("iRanger Dispatch") instead of "Super Admin Iranger Dispatch".
|
|
12
|
+
- 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.
|
|
13
|
+
|
|
3
14
|
## 4.172.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
|
@@ -3898,11 +3909,11 @@ Monthly report: a month that had patrols opens the list of that month's patrol r
|
|
|
3898
3909
|
`utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
|
|
3899
3910
|
own rule from two endpoints the console already calls, unprojected:
|
|
3900
3911
|
|
|
3901
|
-
|
|
3902
|
-
|
|
3912
|
+
GET /api/members/user/:user/app/admin the Seven365 staff membership
|
|
3913
|
+
GET /api/roles/id/:role that membership's role document
|
|
3903
3914
|
|
|
3904
|
-
|
|
3905
|
-
|
|
3915
|
+
owner = member.type === "admin" && role.type === "admin" && role.default === true
|
|
3916
|
+
staff = member.type === "admin" && role.type === "admin"
|
|
3906
3917
|
|
|
3907
3918
|
`role.default` is the marker because it is the only property of a platform
|
|
3908
3919
|
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,
|
|
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,
|
|
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.
|
|
5
|
+
"version": "4.173.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.",
|
package/utils/breadcrumb.ts
CHANGED
|
@@ -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.
|