@7365admin1/layer-common 4.97.1-staging.664 → 4.97.1-staging.665
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.
|
@@ -212,6 +212,19 @@ export default function usePropertyPermission() {
|
|
|
212
212
|
"Allows the user to remove a bulletin-video from the system permanently.",
|
|
213
213
|
},
|
|
214
214
|
},
|
|
215
|
+
|
|
216
|
+
"chatbot-mgmt": {
|
|
217
|
+
"see-chatbot": {
|
|
218
|
+
check: true,
|
|
219
|
+
description:
|
|
220
|
+
"Allows the user to open the Liza page and read its Q&As, documents, suggested and unanswered questions.",
|
|
221
|
+
},
|
|
222
|
+
"manage-chatbot": {
|
|
223
|
+
check: true,
|
|
224
|
+
description:
|
|
225
|
+
"Allows the user to add, edit, import, publish and archive Liza's Q&As and documents, and edit her greeting.",
|
|
226
|
+
},
|
|
227
|
+
},
|
|
215
228
|
"document-mgmt": {
|
|
216
229
|
"see-all-documents": {
|
|
217
230
|
check: true,
|
package/constants/permissions.ts
CHANGED
|
@@ -134,6 +134,8 @@ export const PERMISSIONS = {
|
|
|
134
134
|
"update-bulletin-video",
|
|
135
135
|
"delete-bulletin-video",
|
|
136
136
|
],
|
|
137
|
+
// Liza, the resident chat assistant: see = read the page, manage = every write.
|
|
138
|
+
"chatbot-mgmt": ["see-chatbot", "manage-chatbot"],
|
|
137
139
|
|
|
138
140
|
// ---- site settings: the server reads five of these, so it decides ----
|
|
139
141
|
"site-settings": [
|
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.
|
|
5
|
+
"version": "4.97.1-staging.665",
|
|
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.",
|
|
@@ -56,6 +56,7 @@ export const RESIDENT_APP_MODULES: readonly { value: string; label: string }[] =
|
|
|
56
56
|
{ value: "facilityBooking", label: "Facility booking" },
|
|
57
57
|
{ value: "onlineForm", label: "Online form" },
|
|
58
58
|
{ value: "emergencyContact", label: "Emergency contact" },
|
|
59
|
+
{ value: "chatbot", label: "Liza (chat assistant)" },
|
|
59
60
|
]);
|
|
60
61
|
|
|
61
62
|
/** Does a new client of this nature get the Service365 resident app? */
|
package/utils/module-routes.ts
CHANGED
|
@@ -32,6 +32,7 @@ export const MODULE_ROUTES: Readonly<Record<string, string>> = Object.freeze({
|
|
|
32
32
|
"org-site-incident-reports": "incident-reports",
|
|
33
33
|
"org-site-bulletin-board": "bulletin-board",
|
|
34
34
|
"org-site-bulletin-videos": "bulletin-videos-mgmt",
|
|
35
|
+
"org-site-liza": "chatbot-mgmt",
|
|
35
36
|
"org-site-visitor-mgmt": "visitor-mgmt",
|
|
36
37
|
"org-site-visitor-management": "visitor-mgmt",
|
|
37
38
|
"org-site-vehicle-management": "vehicle-mgmt",
|
|
@@ -48,6 +48,7 @@ export const RESOURCE_LABELS: Record<string, string> = {
|
|
|
48
48
|
"my-attendance": "My attendance",
|
|
49
49
|
"online-form-configuration": "Online forms",
|
|
50
50
|
"bulletin-videos-mgmt": "Bulletin videos",
|
|
51
|
+
"chatbot-mgmt": "Liza (chat assistant)",
|
|
51
52
|
"access-card-mgmt": "Access cards",
|
|
52
53
|
feedbacks: "Feedback",
|
|
53
54
|
// The legacy singular resource: its own permission, same module (see `feedbacks`).
|