upload-post 2.5.0 → 2.6.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/index.d.ts +12 -3
- package/index.js +10 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2,13 +2,13 @@ declare module 'upload-post' {
|
|
|
2
2
|
// ==================== Common Types ====================
|
|
3
3
|
|
|
4
4
|
/** Supported platforms for video upload */
|
|
5
|
-
export type VideoPlatform = 'tiktok' | 'instagram' | 'youtube' | 'linkedin' | 'facebook' | 'pinterest' | 'threads' | 'reddit' | 'bluesky' | 'x' | 'google_business' | 'discord' | 'telegram';
|
|
5
|
+
export type VideoPlatform = 'tiktok' | 'instagram' | 'youtube' | 'linkedin' | 'facebook' | 'pinterest' | 'threads' | 'reddit' | 'bluesky' | 'x' | 'google_business' | 'discord' | 'telegram' | 'mastodon' | 'wordpress';
|
|
6
6
|
|
|
7
7
|
/** Supported platforms for photo upload */
|
|
8
|
-
export type PhotoPlatform = 'tiktok' | 'instagram' | 'linkedin' | 'facebook' | 'pinterest' | 'threads' | 'reddit' | 'bluesky' | 'x' | 'google_business' | 'discord' | 'telegram';
|
|
8
|
+
export type PhotoPlatform = 'tiktok' | 'instagram' | 'linkedin' | 'facebook' | 'pinterest' | 'threads' | 'reddit' | 'bluesky' | 'x' | 'google_business' | 'discord' | 'telegram' | 'mastodon' | 'lemmy' | 'wordpress';
|
|
9
9
|
|
|
10
10
|
/** Supported platforms for text upload */
|
|
11
|
-
export type TextPlatform = 'x' | 'linkedin' | 'facebook' | 'threads' | 'reddit' | 'bluesky' | 'google_business' | 'discord' | 'telegram';
|
|
11
|
+
export type TextPlatform = 'x' | 'linkedin' | 'facebook' | 'threads' | 'reddit' | 'bluesky' | 'google_business' | 'discord' | 'telegram' | 'slack' | 'mastodon' | 'nostr' | 'lemmy' | 'devto' | 'hashnode' | 'wordpress' | 'whop' | 'listmonk';
|
|
12
12
|
|
|
13
13
|
/** TikTok privacy levels */
|
|
14
14
|
export type TikTokPrivacyLevel = 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | 'SELF_ONLY';
|
|
@@ -87,6 +87,15 @@ declare module 'upload-post' {
|
|
|
87
87
|
youtubeTitle?: string;
|
|
88
88
|
pinterestTitle?: string;
|
|
89
89
|
threadsTitle?: string;
|
|
90
|
+
slackTitle?: string;
|
|
91
|
+
mastodonTitle?: string;
|
|
92
|
+
nostrTitle?: string;
|
|
93
|
+
lemmyTitle?: string;
|
|
94
|
+
devtoTitle?: string;
|
|
95
|
+
hashnodeTitle?: string;
|
|
96
|
+
wordpressTitle?: string;
|
|
97
|
+
whopTitle?: string;
|
|
98
|
+
listmonkTitle?: string;
|
|
90
99
|
|
|
91
100
|
// Platform-specific description overrides
|
|
92
101
|
description?: string;
|
package/index.js
CHANGED
|
@@ -104,6 +104,16 @@ export class UploadPost {
|
|
|
104
104
|
if (options.youtubeTitle) form.append('youtube_title', options.youtubeTitle);
|
|
105
105
|
if (options.pinterestTitle) form.append('pinterest_title', options.pinterestTitle);
|
|
106
106
|
if (options.threadsTitle) form.append('threads_title', options.threadsTitle);
|
|
107
|
+
// New credential-based platforms
|
|
108
|
+
if (options.slackTitle) form.append('slack_title', options.slackTitle);
|
|
109
|
+
if (options.mastodonTitle) form.append('mastodon_title', options.mastodonTitle);
|
|
110
|
+
if (options.nostrTitle) form.append('nostr_title', options.nostrTitle);
|
|
111
|
+
if (options.lemmyTitle) form.append('lemmy_title', options.lemmyTitle);
|
|
112
|
+
if (options.devtoTitle) form.append('devto_title', options.devtoTitle);
|
|
113
|
+
if (options.hashnodeTitle) form.append('hashnode_title', options.hashnodeTitle);
|
|
114
|
+
if (options.wordpressTitle) form.append('wordpress_title', options.wordpressTitle);
|
|
115
|
+
if (options.whopTitle) form.append('whop_title', options.whopTitle);
|
|
116
|
+
if (options.listmonkTitle) form.append('listmonk_title', options.listmonkTitle);
|
|
107
117
|
|
|
108
118
|
// Platform-specific description overrides
|
|
109
119
|
if (options.description) form.append('description', options.description);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "upload-post",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "Official client library for Upload-Post API - Cross-platform social media upload for TikTok, Instagram, YouTube, LinkedIn, Facebook, Pinterest, Threads, Reddit, Bluesky, and X (Twitter)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|