@apotech-os/support-kit 2.7.1 → 2.8.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/dist/{chunk-HE7Q4VCS.js → chunk-47QWWJBP.js} +6 -4
- package/dist/chunk-47QWWJBP.js.map +1 -0
- package/dist/index.cjs +14 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/dist/ui/index.cjs +19 -0
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.js +19 -1
- package/dist/ui/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-HE7Q4VCS.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1287,6 +1287,7 @@ var CATEGORY_FIELD_ORDER_UID = "25e85490-f365-4d28-98cd-87f93b24f653";
|
|
|
1287
1287
|
var CATEGORY_FIELD_GROUP_ID_UID = "667697a4-9877-4df7-9b41-86e60b8b0039";
|
|
1288
1288
|
var CATEGORY_FIELD_AGENT_ID_UID = "96e36d98-537c-4db1-ab84-2bb3c188b078";
|
|
1289
1289
|
var CATEGORY_FIELD_EXTRA_TAGS_UID = "8673a239-1a7d-4e4f-b951-b6c5c9d4787e";
|
|
1290
|
+
var CATEGORY_FIELD_DESCRIPTION_UID = "fa2aeb51-47b0-4c26-845a-0b9f543f0c89";
|
|
1290
1291
|
var CATEGORY_FIELD_EXAMPLES_UID = "39e52ad6-34b1-4151-a70b-7f996648b9b0";
|
|
1291
1292
|
var CATEGORY_FIELD_FAST_RESPONSE_ENABLED_UID = "4fa75e78-b826-4741-9612-b6cf28bde9f9";
|
|
1292
1293
|
var CATEGORY_FIELD_AUTO_REPLY_ENABLED_UID = "c6822551-821f-4255-b220-be40c9b56052";
|
|
@@ -1467,6 +1468,17 @@ function buildCategoryRecord(slug) {
|
|
|
1467
1468
|
isNullable: false,
|
|
1468
1469
|
defaultValue: []
|
|
1469
1470
|
},
|
|
1471
|
+
{
|
|
1472
|
+
universalIdentifier: CATEGORY_FIELD_DESCRIPTION_UID,
|
|
1473
|
+
name: "description",
|
|
1474
|
+
type: appKit.FieldType.TEXT,
|
|
1475
|
+
label: "Description",
|
|
1476
|
+
description: "Short definition of what belongs in this category \u2014 what triage shows the model to choose between categories. `examples` stays what it says: sample customer messages. Kept separate because the two feed the referential under different keys, and folding one into the other sends the same text twice.",
|
|
1477
|
+
// Nullable, and not merely by convention: every category already in a
|
|
1478
|
+
// tenant's base predates this field. A required one would fail the
|
|
1479
|
+
// read of every existing row.
|
|
1480
|
+
isNullable: true
|
|
1481
|
+
},
|
|
1470
1482
|
{
|
|
1471
1483
|
universalIdentifier: CATEGORY_FIELD_EXAMPLES_UID,
|
|
1472
1484
|
name: "examples",
|
|
@@ -3024,6 +3036,7 @@ function toCategory(record) {
|
|
|
3024
3036
|
groupId: data.groupId ?? null,
|
|
3025
3037
|
order: data.order ?? 0,
|
|
3026
3038
|
extraTags: data.extraTags ?? [],
|
|
3039
|
+
description: data.description ?? null,
|
|
3027
3040
|
examples: data.examples ?? null,
|
|
3028
3041
|
autoReplyEnabled: data.autoReplyEnabled ?? false,
|
|
3029
3042
|
fastResponseEnabled: data.fastResponseEnabled ?? false
|
|
@@ -3086,7 +3099,7 @@ function toCategoryReferential(categories) {
|
|
|
3086
3099
|
return categories.map((c) => ({
|
|
3087
3100
|
name: c.name,
|
|
3088
3101
|
tag: c.tagName,
|
|
3089
|
-
desc: c.examples ?? c.name,
|
|
3102
|
+
desc: c.description ?? c.examples ?? c.name,
|
|
3090
3103
|
...c.examples ? { examples: c.examples } : {}
|
|
3091
3104
|
}));
|
|
3092
3105
|
}
|