@7365admin1/layer-common 4.15.1 → 4.15.2
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.15.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 01e9fa3: A Real Estate Developer client links to the Property Management app (app switcher, cross-app redirects, client details service link).
|
|
8
|
+
|
|
3
9
|
## 4.15.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -1137,11 +1143,11 @@
|
|
|
1137
1143
|
`utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
|
|
1138
1144
|
own rule from two endpoints the console already calls, unprojected:
|
|
1139
1145
|
|
|
1140
|
-
|
|
1141
|
-
|
|
1146
|
+
GET /api/members/user/:user/app/admin the Seven365 staff membership
|
|
1147
|
+
GET /api/roles/id/:role that membership's role document
|
|
1142
1148
|
|
|
1143
|
-
|
|
1144
|
-
|
|
1149
|
+
owner = member.type === "admin" && role.type === "admin" && role.default === true
|
|
1150
|
+
staff = member.type === "admin" && role.type === "admin"
|
|
1145
1151
|
|
|
1146
1152
|
`role.default` is the marker because it is the only property of a platform
|
|
1147
1153
|
staff role no API caller can set - `role.controller.ts` validates create and
|
|
@@ -234,6 +234,9 @@ const APP_CONFIG: Record<string, any> = {
|
|
|
234
234
|
link: APP_POOL_MAINTENANCE
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
|
+
// A Real Estate Developer client is served by the Property Management app
|
|
238
|
+
// (product decision 2026-09-12: developer = the Property Management set).
|
|
239
|
+
APP_CONFIG.real_estate_developer = APP_CONFIG.property_management_agency
|
|
237
240
|
|
|
238
241
|
const orgApi = useOrg()
|
|
239
242
|
const userApi = useUser()
|
|
@@ -6,12 +6,14 @@
|
|
|
6
6
|
* runtime config. Without this map each app had to carry its own copy, which is
|
|
7
7
|
* how a switcher ends up able to LIST an organisation it cannot open.
|
|
8
8
|
*
|
|
9
|
-
* `real_estate_developer`
|
|
10
|
-
*
|
|
9
|
+
* `real_estate_developer` has no app of its own: a developer is the Property
|
|
10
|
+
* Management set (product decision 2026-09-12), and the server stores its
|
|
11
|
+
* memberships and roles as Property Management ones, so it opens that app.
|
|
11
12
|
*/
|
|
12
13
|
const APP_URL_KEY_BY_NATURE: Record<string, string> = {
|
|
13
14
|
security_agency: "APP_SECURITY",
|
|
14
15
|
property_management_agency: "APP_PROPERTY_MANAGEMENT",
|
|
16
|
+
real_estate_developer: "APP_PROPERTY_MANAGEMENT",
|
|
15
17
|
cleaning_services: "APP_HYGIENE",
|
|
16
18
|
mechanical_electrical_services: "APP_MECHANICAL_ELECTRICAL",
|
|
17
19
|
pest_control_services: "APP_PEST_CONTROL",
|
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.15.
|
|
5
|
+
"version": "4.15.2",
|
|
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.",
|