joye-backend-utility 8.2.4 → 8.2.6
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.
|
@@ -72,6 +72,14 @@ const OrganizationUserAttrPermission = new mongoose_1.Schema({
|
|
|
72
72
|
type: Object,
|
|
73
73
|
required: false,
|
|
74
74
|
},
|
|
75
|
+
/**
|
|
76
|
+
* Tenant crisis contacts as HTML (strong, links, tel:, mailto:).
|
|
77
|
+
* Used before platform safetyContacts, then the Joye master-data default.
|
|
78
|
+
*/
|
|
79
|
+
safetyContacts: {
|
|
80
|
+
type: String,
|
|
81
|
+
required: false,
|
|
82
|
+
},
|
|
75
83
|
// Sample data
|
|
76
84
|
/* aiModels: {
|
|
77
85
|
"brew": "claude-sonnet-4-20250514",
|
package/dist/schema/platform.js
CHANGED
|
@@ -41,6 +41,13 @@ const Platform = new mongoose_1.Schema({
|
|
|
41
41
|
type: Array,
|
|
42
42
|
required: false,
|
|
43
43
|
},
|
|
44
|
+
/**
|
|
45
|
+
* Platform crisis contacts as HTML. Used when the tenant has no safetyContacts.
|
|
46
|
+
*/
|
|
47
|
+
safetyContacts: {
|
|
48
|
+
type: String,
|
|
49
|
+
required: false,
|
|
50
|
+
},
|
|
44
51
|
// Sample data
|
|
45
52
|
/* aiModels: {
|
|
46
53
|
"brew": "claude-sonnet-4-20250514",
|
|
@@ -152,6 +152,14 @@ const UserAnalytic = new mongoose_1.Schema({
|
|
|
152
152
|
type: String,
|
|
153
153
|
required: false,
|
|
154
154
|
},
|
|
155
|
+
/**
|
|
156
|
+
* True on this employee + week/year row when generation hit a safety situation
|
|
157
|
+
* (model paused the routine wellness plan). Cleared when a later generation for the same row returns a normal plan.
|
|
158
|
+
*/
|
|
159
|
+
safetySituation: {
|
|
160
|
+
type: Boolean,
|
|
161
|
+
required: false,
|
|
162
|
+
},
|
|
155
163
|
/** Set when batch path failed/timed out and sync/fallback was used. */
|
|
156
164
|
aiInsightsBatchError: {
|
|
157
165
|
type: String,
|