@sunsteel/contracts 0.92.0 → 0.94.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/index.cjs +2 -1
- package/dist/index.d.cts +596 -507
- package/dist/index.d.ts +596 -507
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1702,6 +1702,7 @@ var API_ERROR_MESSAGES = {
|
|
|
1702
1702
|
// ── Direct messages (MSG-01) ───────────────────────────────────────────
|
|
1703
1703
|
MESSAGE_SELF: "You cannot message yourself",
|
|
1704
1704
|
MESSAGE_LENGTH: "A message must not be empty and may be at most {max} characters.",
|
|
1705
|
+
MESSAGE_ONE_ATTACHMENT: "A message can carry one routine, one workout or one record.",
|
|
1705
1706
|
MESSAGES_PER_MINUTE: "You can send at most {max} messages a minute.",
|
|
1706
1707
|
CONVERSATIONS_PER_DAY: "You can start at most {max} new conversations a day.",
|
|
1707
1708
|
MESSAGE_NOT_ADMITTED: "This member is not taking messages from you.",
|
|
@@ -1810,7 +1811,7 @@ function normalizeMessageBody(body) {
|
|
|
1810
1811
|
}
|
|
1811
1812
|
return text;
|
|
1812
1813
|
}
|
|
1813
|
-
var MESSAGE_ATTACHMENT_KINDS = ["ROUTINE"];
|
|
1814
|
+
var MESSAGE_ATTACHMENT_KINDS = ["ROUTINE", "WORKOUT", "RECORD"];
|
|
1814
1815
|
function messageNote(body, hasAttachment) {
|
|
1815
1816
|
if ((body ?? "").trim().length === 0) {
|
|
1816
1817
|
return hasAttachment ? null : void 0;
|