@sunsteel/contracts 0.93.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 -2
- package/dist/index.d.cts +638 -607
- package/dist/index.d.ts +638 -607
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1702,7 +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 or one
|
|
1705
|
+
MESSAGE_ONE_ATTACHMENT: "A message can carry one routine, one workout or one record.",
|
|
1706
1706
|
MESSAGES_PER_MINUTE: "You can send at most {max} messages a minute.",
|
|
1707
1707
|
CONVERSATIONS_PER_DAY: "You can start at most {max} new conversations a day.",
|
|
1708
1708
|
MESSAGE_NOT_ADMITTED: "This member is not taking messages from you.",
|
|
@@ -1811,7 +1811,7 @@ function normalizeMessageBody(body) {
|
|
|
1811
1811
|
}
|
|
1812
1812
|
return text;
|
|
1813
1813
|
}
|
|
1814
|
-
var MESSAGE_ATTACHMENT_KINDS = ["ROUTINE", "WORKOUT"];
|
|
1814
|
+
var MESSAGE_ATTACHMENT_KINDS = ["ROUTINE", "WORKOUT", "RECORD"];
|
|
1815
1815
|
function messageNote(body, hasAttachment) {
|
|
1816
1816
|
if ((body ?? "").trim().length === 0) {
|
|
1817
1817
|
return hasAttachment ? null : void 0;
|