ugcinc 2.21.0 → 2.23.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/media.d.ts +9 -0
- package/dist/media.js +13 -0
- package/dist/types.d.ts +0 -4
- package/package.json +1 -1
package/dist/media.d.ts
CHANGED
|
@@ -36,4 +36,13 @@ export declare class MediaClient extends BaseClient {
|
|
|
36
36
|
* Extracts audio and cover image from TikTok video or music URL
|
|
37
37
|
*/
|
|
38
38
|
createSocialAudio(params: CreateSocialAudioParams): Promise<ApiResponse<SocialAudio>>;
|
|
39
|
+
/**
|
|
40
|
+
* Get a media item by ID
|
|
41
|
+
* Returns either user_media or social_audio based on what's found
|
|
42
|
+
*/
|
|
43
|
+
getById(id: string): Promise<ApiResponse<Media>>;
|
|
44
|
+
/**
|
|
45
|
+
* Get a social audio by ID
|
|
46
|
+
*/
|
|
47
|
+
getSocialAudioById(id: string): Promise<ApiResponse<SocialAudio>>;
|
|
39
48
|
}
|
package/dist/media.js
CHANGED
|
@@ -54,5 +54,18 @@ class MediaClient extends base_1.BaseClient {
|
|
|
54
54
|
async createSocialAudio(params) {
|
|
55
55
|
return this.post('/media/social-audio', params);
|
|
56
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* Get a media item by ID
|
|
59
|
+
* Returns either user_media or social_audio based on what's found
|
|
60
|
+
*/
|
|
61
|
+
async getById(id) {
|
|
62
|
+
return this.post(`/media/${id}`, {});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Get a social audio by ID
|
|
66
|
+
*/
|
|
67
|
+
async getSocialAudioById(id) {
|
|
68
|
+
return this.post(`/media/social-audio/${id}`, {});
|
|
69
|
+
}
|
|
57
70
|
}
|
|
58
71
|
exports.MediaClient = MediaClient;
|
package/dist/types.d.ts
CHANGED
|
@@ -174,8 +174,6 @@ export interface GetPostsParams {
|
|
|
174
174
|
export interface CreateSlideshowParams {
|
|
175
175
|
accountId: string | null;
|
|
176
176
|
caption?: string;
|
|
177
|
-
/** @deprecated Use socialAudioId instead */
|
|
178
|
-
musicPostId?: string;
|
|
179
177
|
socialAudioId?: string;
|
|
180
178
|
postTime?: string;
|
|
181
179
|
imageUrls: string[];
|
|
@@ -195,8 +193,6 @@ export interface GetPostStatusParams {
|
|
|
195
193
|
export interface CreateVideoParams {
|
|
196
194
|
accountId: string | null;
|
|
197
195
|
caption?: string;
|
|
198
|
-
/** @deprecated Use socialAudioId instead */
|
|
199
|
-
musicPostId?: string;
|
|
200
196
|
socialAudioId?: string;
|
|
201
197
|
postTime?: string;
|
|
202
198
|
videoUrl: string;
|