ugcinc 5.0.2 → 5.0.3
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/README.md
CHANGED
|
@@ -746,5 +746,5 @@ https://docs.ugc.inc/guides/imessage-conversations for the full contract.
|
|
|
746
746
|
Install the bundled instructions with:
|
|
747
747
|
|
|
748
748
|
```bash
|
|
749
|
-
npx ugcinc@5.0.
|
|
749
|
+
npx ugcinc@5.0.3 init --update imessage media content-automation automations
|
|
750
750
|
```
|
|
@@ -103,6 +103,9 @@ export declare const nodeDefinitions: {
|
|
|
103
103
|
platformInputType: import("./types").InputType;
|
|
104
104
|
imessageRenderMode: "still" | "conversation";
|
|
105
105
|
imessageConversationInputType: import("./types").InputType;
|
|
106
|
+
imessageOutputType: "video" | "image" | undefined;
|
|
107
|
+
imessageLegacyInputs: boolean;
|
|
108
|
+
imessageAttachmentMessageId: string;
|
|
106
109
|
imessageConversation: import("../..").IMessageConversationInput | undefined;
|
|
107
110
|
lightMode: boolean;
|
|
108
111
|
lightModeInputType: import("./types").InputType;
|
|
@@ -52,6 +52,8 @@ function prepareIMessageWorkflow(config, inputs = {}) {
|
|
|
52
52
|
unreadCount: unread === undefined || unread === '' ? 0 : Number(unread),
|
|
53
53
|
timestampText: header ? config.imessageMessageHeaderTimeInputType === 'variable' ? `Today ${header}` : header : undefined,
|
|
54
54
|
messages: messages.map((message, index) => {
|
|
55
|
+
if (message.hasImage && message.text.trim())
|
|
56
|
+
throw new Error(`Message ${index + 1} has an image caption. Split its text and image into separate native messages.`);
|
|
55
57
|
if (message.hasImage && !attachment)
|
|
56
58
|
throw new Error(`Message ${index + 1} needs a connected attachment image.`);
|
|
57
59
|
return message.hasImage
|