n8n-nodes-upload-post 0.6.0 → 0.7.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/README.md +34 -4
- package/dist/nodes/UploadPost/NetworkOperations.d.ts +14 -0
- package/dist/nodes/UploadPost/NetworkOperations.js +1322 -0
- package/dist/nodes/UploadPost/NetworkOperations.js.map +1 -0
- package/dist/nodes/UploadPost/UploadPost.node.js +117 -14
- package/dist/nodes/UploadPost/UploadPost.node.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -65,6 +65,13 @@ The node provides the following operations grouped for clarity:
|
|
|
65
65
|
- **Threads**: Long text as single post option.
|
|
66
66
|
- **Reddit**: Subreddit selection, flair ID.
|
|
67
67
|
|
|
68
|
+
- **Upload Document**: LinkedIn document posts (PDF, PPT/PPTX, DOC/DOCX) and, on Telegram, any file up to 50 MB (audio, voice, sticker, GIF, video note...) with **Telegram Options > Send As**.
|
|
69
|
+
|
|
70
|
+
- **Paid Partnership** (Upload Photo(s), Video and Text): one switch for sponsored posts, mapped to each network's native label (TikTok branded content, YouTube paid promotion, X paid partnership). Facebook and Pinterest also need **Facebook Sponsor ID** / **Pinterest Sponsor ID** (the sponsor's Page / account). Networks without a label publish without it and the response carries a warning; a network-specific field always wins. TikTok refuses it with the Only Me privacy level (`commercial_disclosure_privacy_conflict`) and drafts do not carry it.
|
|
71
|
+
- **Telegram Options** (collection): text and caption override, first comment (as a reply by default), pin after publishing (silent unless Pin Notify), reply to a message (with quote), inline URL buttons (Reply Markup), message effect, link preview options, polls, locations (live too), venues, contacts, dice and rich messages (Upload Text), video cover / thumbnail / start time, album with extra Media URLs, Send As (animation, video note, live photo, audio, voice, sticker, document), caption overflow (split), paid media in Telegram Stars, Send By URL. Names and JSON objects follow the Telegram Bot API.
|
|
72
|
+
- **Bluesky Options** (collection): Tags (up to 8, not shown in the text), Created At (import older posts), Thread Overflow (long text continues as replies), GIF As Video, Captions (WebVTT, video), Video Presentation (GIF-style video).
|
|
73
|
+
- **Google Business Options** (collection): Alert Type, Upload To Gallery, Multiple Media (up to 10 photos), recurring EVENT/OFFER posts (Recurrence, days, day of month, week occurrence, end) and Google's own Scheduled Time.
|
|
74
|
+
|
|
68
75
|
### Status & History Actions
|
|
69
76
|
- **Get Upload Status**: Check the status/result of an async upload by `request_id`.
|
|
70
77
|
- Parameters: Request ID.
|
|
@@ -72,7 +79,7 @@ The node provides the following operations grouped for clarity:
|
|
|
72
79
|
- Parameters: Page (default 1), Limit (default 20). Limit can be 20, 50, or 100.
|
|
73
80
|
- **Get Analytics**: Retrieve aggregated profile analytics.
|
|
74
81
|
- Parameters: Profile Username, Platforms (required — at least one), Facebook Page ID (required when Facebook is selected), LinkedIn Page URN (optional).
|
|
75
|
-
- Supported: Facebook, Instagram, LinkedIn, Pinterest, Reddit, Threads, TikTok, X, YouTube. Analytics are not available for
|
|
82
|
+
- Supported: Facebook, Instagram, LinkedIn, Pinterest, Reddit, Telegram, Threads, TikTok, X, YouTube. Telegram returns subscribers or members, reactions and active boosts (the Bot API has no views). Analytics are not available for Discord.
|
|
76
83
|
- **Get Post Analytics**: Per-post metrics for an upload, by `request_id`.
|
|
77
84
|
- Parameters: Request ID, Platform (optional filter).
|
|
78
85
|
- On TikTok, `post_metrics` also carries `retention`, `impression_sources`, `audience_types`, `new_followers`, `reach` and the watch times, plus `original_publish_id`.
|
|
@@ -99,11 +106,34 @@ The node provides the following operations grouped for clarity:
|
|
|
99
106
|
|
|
100
107
|
### Post Actions
|
|
101
108
|
- **Retry Post**: Re-enqueue failed platforms of an upload without re-uploading media (`request_id` or `job_id`).
|
|
102
|
-
- **Unpublish Post**: Delete a live post. Not available for Instagram, TikTok or Threads.
|
|
103
|
-
- **Edit Post**: Update caption/metadata on a live post.
|
|
104
|
-
- **Repost**: Repost on LinkedIn or
|
|
109
|
+
- **Unpublish Post**: Delete a live post. Not available for Instagram, TikTok or Threads. Telegram: **Telegram Delete All Messages** removes every message of the post (album items, caption rest, first comment), not only Post ID.
|
|
110
|
+
- **Edit Post**: Update caption/metadata on a live post. Telegram: new text or caption, **Telegram Action** (pin, unpin, stop poll, stop live location); Google Business: Message becomes the post summary. **Extra Fields (JSON)** passes any other documented field (buttons, media replacement, call to action...).
|
|
111
|
+
- **Repost**: Repost on LinkedIn, X or Threads, or forward / copy a Telegram post (**Telegram Mode**, **Telegram Target Chat ID**, **Telegram All Messages**; Message is the new caption of a copy).
|
|
105
112
|
- **Save Pin**: Save a Pinterest pin to a board.
|
|
106
113
|
|
|
114
|
+
### Queue & Best Time
|
|
115
|
+
- **Get Best Times**: Best hours to publish for a connected account (Bluesky, Facebook, Instagram, LinkedIn, Pinterest, Threads, TikTok, YouTube), with `source` (`audience_activity`, `account_posts`, `upload_post_history`, `none`) and `confidence`.
|
|
116
|
+
- Parameters: Profile, Platform, Time Zone, Top Hours, Refresh; LinkedIn Page URN / Facebook Page ID.
|
|
117
|
+
- **Get Queue Settings / Get Queue Preview / Get Next Queue Slot**: read the profile queue (`slots_mode`, `auto_slots`, `effective_slots`).
|
|
118
|
+
- **Update Queue Settings**: **Slots Mode = Automatic** (`slots=auto`) fills the queue with the best hours of the profile's networks (Automatic Slots per Day, Automatic Slots Platforms, Refresh); **Fixed** goes back to fixed slots (Fixed Slots JSON). Also Time Zone, Days of Week and Max Posts per Slot. Posts already scheduled do not move.
|
|
119
|
+
|
|
120
|
+
### Telegram Actions
|
|
121
|
+
Your own bot in the connected chat, group or channel.
|
|
122
|
+
- **Get Chat Info / Update Chat Info**: details, subscribers or members and administrators; change title, description and (Extra Fields) permissions, slow mode...
|
|
123
|
+
- **Get Boosts**, **Get Member** (one member, or the administrators), **Moderate Member** (ban, unban, restrict, promote, demote, custom title; ban/promote/demote need **Confirm**).
|
|
124
|
+
- **Create Invite Link / Revoke Invite Link** (revoke needs Confirm).
|
|
125
|
+
- **Get Bot Profile / Update Bot Profile**, **Get Bot Commands / Set Bot Commands**.
|
|
126
|
+
|
|
127
|
+
### Bluesky Actions
|
|
128
|
+
- **Get Profile** (one or several handles/DIDs, or the connected account), **Get Notifications**, **Get Unread Count**, **Search Posts**, **Search Accounts**.
|
|
129
|
+
- **List Drafts / Create Draft / Delete Draft**: drafts shown in the Bluesky app (text only; delete needs **Confirm**).
|
|
130
|
+
|
|
131
|
+
### Google Business Actions
|
|
132
|
+
- **List Posts / Get Post**: the location's posts. Edit them with Post Action > Edit Post and delete them with Unpublish Post (platform Google Business).
|
|
133
|
+
- **List Reviews / Get Review**.
|
|
134
|
+
- **Get Performance** (daily metrics for a date range) and **Get Search Keywords** (monthly).
|
|
135
|
+
- **Get Location Info / Update Location Info**: `edit_mode` legacy (default) or strict (title, address, categories, open status; Dry Run and Confirm), Extra Fields for hours and the rest.
|
|
136
|
+
|
|
107
137
|
### Scheduled Posts
|
|
108
138
|
- **List Scheduled Posts**: Lists future scheduled jobs.
|
|
109
139
|
- **Cancel Scheduled Post**: Cancels a scheduled job by its Job ID.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IDataObject, IExecuteFunctions, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export type NetworkRequest = {
|
|
3
|
+
endpoint: string;
|
|
4
|
+
method: 'GET' | 'POST' | 'PATCH' | 'DELETE';
|
|
5
|
+
body?: IDataObject;
|
|
6
|
+
qs?: IDataObject;
|
|
7
|
+
isUploadOperation: boolean;
|
|
8
|
+
waitForCompletion: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const NETWORK_RESOURCES: string[];
|
|
11
|
+
export declare const applyNetworkUploadOptions: (node: IExecuteFunctions, itemIndex: number, operation: string, platforms: string[], formData: IDataObject) => void;
|
|
12
|
+
export declare const uploadExtraProperties: INodeProperties[];
|
|
13
|
+
export declare const networkProperties: INodeProperties[];
|
|
14
|
+
export declare const buildNetworkRequest: (node: IExecuteFunctions, itemIndex: number, resource: string, operation: string) => NetworkRequest;
|