glitch-javascript-sdk 3.1.2 → 3.1.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/dist/cjs/index.js +2 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Users.d.ts +11 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +11 -1
- package/package.json +1 -1
- package/src/api/Users.ts +18 -4
package/dist/esm/api/Users.d.ts
CHANGED
|
@@ -456,14 +456,24 @@ declare class Users {
|
|
|
456
456
|
static suggestSmartTrim<T>(id: string): AxiosPromise<Response<T>>;
|
|
457
457
|
/**
|
|
458
458
|
* Share a library item to social media as User Generated Content (UGC).
|
|
459
|
+
* This uses the player media share route, not the developer/scheduler post route.
|
|
459
460
|
*
|
|
460
461
|
* @param id The UUID of the UserMedia record.
|
|
461
|
-
* @param data
|
|
462
|
+
* @param data Player post payload, including platform/channel/schedule options.
|
|
462
463
|
*/
|
|
463
464
|
static shareMedia<T>(id: string, data: {
|
|
464
465
|
platform: string;
|
|
466
|
+
social_platform?: string;
|
|
465
467
|
title?: string;
|
|
466
468
|
content: string;
|
|
469
|
+
status?: 'pending' | 'scheduled' | string;
|
|
470
|
+
scheduled_at?: string;
|
|
471
|
+
main_channel_id?: string;
|
|
472
|
+
sub_channel_id?: string;
|
|
473
|
+
token?: string;
|
|
474
|
+
track_links?: boolean;
|
|
475
|
+
media_type?: string;
|
|
476
|
+
[key: string]: any;
|
|
467
477
|
}): AxiosPromise<Response<T>>;
|
|
468
478
|
/**
|
|
469
479
|
* List all gifts purchased by the current user.
|
package/dist/esm/index.js
CHANGED
|
@@ -9394,9 +9394,10 @@ var Users = /** @class */ (function () {
|
|
|
9394
9394
|
};
|
|
9395
9395
|
/**
|
|
9396
9396
|
* Share a library item to social media as User Generated Content (UGC).
|
|
9397
|
+
* This uses the player media share route, not the developer/scheduler post route.
|
|
9397
9398
|
*
|
|
9398
9399
|
* @param id The UUID of the UserMedia record.
|
|
9399
|
-
* @param data
|
|
9400
|
+
* @param data Player post payload, including platform/channel/schedule options.
|
|
9400
9401
|
*/
|
|
9401
9402
|
Users.shareMedia = function (id, data) {
|
|
9402
9403
|
return Requests.processRoute(UserRoutes.routes.shareMedia, data, { id: id });
|