glitch-javascript-sdk 3.1.3 → 3.1.4
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 +12 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Scheduler.d.ts +5 -0
- package/dist/esm/api/Titles.d.ts +7 -0
- package/dist/esm/index.js +12 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +12 -0
- package/package.json +1 -1
- package/src/api/Scheduler.ts +8 -0
- package/src/api/Titles.ts +8 -4
- package/src/routes/SchedulerRoute.ts +1 -0
|
@@ -576,5 +576,10 @@ declare class Scheduler {
|
|
|
576
576
|
* @param params { is_personalized: boolean }
|
|
577
577
|
*/
|
|
578
578
|
static getTikTokTrendingKeywords<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
579
|
+
/**
|
|
580
|
+
* Get recommended search keywords on TikTok.
|
|
581
|
+
* @param params { is_personalized: boolean }
|
|
582
|
+
*/
|
|
583
|
+
static getTikTokRecommendedKeywords<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
579
584
|
}
|
|
580
585
|
export default Scheduler;
|
package/dist/esm/api/Titles.d.ts
CHANGED
|
@@ -641,10 +641,12 @@ declare class Titles {
|
|
|
641
641
|
* @param params
|
|
642
642
|
* - window: number (hours, default 24)
|
|
643
643
|
* - limit: number (default 10)
|
|
644
|
+
* - is_nsfw: 1 for adult titles only, 0 for safe titles only
|
|
644
645
|
*/
|
|
645
646
|
static getCommunityActivity<T>(params?: {
|
|
646
647
|
window?: number;
|
|
647
648
|
limit?: number;
|
|
649
|
+
is_nsfw?: number | boolean;
|
|
648
650
|
}): AxiosPromise<Response<T>>;
|
|
649
651
|
/**
|
|
650
652
|
* Get games trending on social media.
|
|
@@ -653,11 +655,13 @@ declare class Titles {
|
|
|
653
655
|
* - type: 'influencer' (campaigns) or 'organic' (non-paid)
|
|
654
656
|
* - window: number (hours, default 168)
|
|
655
657
|
* - limit: number (default 10)
|
|
658
|
+
* - is_nsfw: 1 for adult titles only, 0 for safe titles only
|
|
656
659
|
*/
|
|
657
660
|
static getSocialTrending<T>(params: {
|
|
658
661
|
type: 'influencer' | 'organic';
|
|
659
662
|
window?: number;
|
|
660
663
|
limit?: number;
|
|
664
|
+
is_nsfw?: number | boolean;
|
|
661
665
|
}): AxiosPromise<Response<T>>;
|
|
662
666
|
/**
|
|
663
667
|
* Get a personalized discovery queue of games.
|
|
@@ -665,10 +669,12 @@ declare class Titles {
|
|
|
665
669
|
* @param params
|
|
666
670
|
* - limit: number (default 12)
|
|
667
671
|
* - device_id: string (highly recommended for guest tracking)
|
|
672
|
+
* - is_nsfw: 1 for adult titles only, 0 for safe titles only
|
|
668
673
|
*/
|
|
669
674
|
static getDiscoveryQueue<T>(params?: {
|
|
670
675
|
limit?: number;
|
|
671
676
|
device_id?: string;
|
|
677
|
+
is_nsfw?: number | boolean;
|
|
672
678
|
}): AxiosPromise<Response<T>>;
|
|
673
679
|
/**
|
|
674
680
|
* Get a curated, playable feed for the Swipe interface.
|
|
@@ -680,6 +686,7 @@ declare class Titles {
|
|
|
680
686
|
* - seed?: number (For consistent randomization)
|
|
681
687
|
* - genres?: string[] (Filter by genre names)
|
|
682
688
|
* - models?: string[] (premium, rental, subscription, free)
|
|
689
|
+
* - is_nsfw?: 1 | 0 (1 for adult titles only, 0 for safe titles only)
|
|
683
690
|
* - excluded_ids?: string[] (UUIDs to skip)
|
|
684
691
|
* - page?: number
|
|
685
692
|
* - per_page?: number
|
package/dist/esm/index.js
CHANGED
|
@@ -12902,6 +12902,7 @@ var Titles = /** @class */ (function () {
|
|
|
12902
12902
|
* @param params
|
|
12903
12903
|
* - window: number (hours, default 24)
|
|
12904
12904
|
* - limit: number (default 10)
|
|
12905
|
+
* - is_nsfw: 1 for adult titles only, 0 for safe titles only
|
|
12905
12906
|
*/
|
|
12906
12907
|
Titles.getCommunityActivity = function (params) {
|
|
12907
12908
|
return Requests.processRoute(TitlesRoute.routes.communityActivity, {}, {}, params);
|
|
@@ -12913,6 +12914,7 @@ var Titles = /** @class */ (function () {
|
|
|
12913
12914
|
* - type: 'influencer' (campaigns) or 'organic' (non-paid)
|
|
12914
12915
|
* - window: number (hours, default 168)
|
|
12915
12916
|
* - limit: number (default 10)
|
|
12917
|
+
* - is_nsfw: 1 for adult titles only, 0 for safe titles only
|
|
12916
12918
|
*/
|
|
12917
12919
|
Titles.getSocialTrending = function (params) {
|
|
12918
12920
|
return Requests.processRoute(TitlesRoute.routes.socialTrending, {}, {}, params);
|
|
@@ -12923,6 +12925,7 @@ var Titles = /** @class */ (function () {
|
|
|
12923
12925
|
* @param params
|
|
12924
12926
|
* - limit: number (default 12)
|
|
12925
12927
|
* - device_id: string (highly recommended for guest tracking)
|
|
12928
|
+
* - is_nsfw: 1 for adult titles only, 0 for safe titles only
|
|
12926
12929
|
*/
|
|
12927
12930
|
Titles.getDiscoveryQueue = function (params) {
|
|
12928
12931
|
return Requests.processRoute(TitlesRoute.routes.discoveryQueue, {}, {}, params);
|
|
@@ -12937,6 +12940,7 @@ var Titles = /** @class */ (function () {
|
|
|
12937
12940
|
* - seed?: number (For consistent randomization)
|
|
12938
12941
|
* - genres?: string[] (Filter by genre names)
|
|
12939
12942
|
* - models?: string[] (premium, rental, subscription, free)
|
|
12943
|
+
* - is_nsfw?: 1 | 0 (1 for adult titles only, 0 for safe titles only)
|
|
12940
12944
|
* - excluded_ids?: string[] (UUIDs to skip)
|
|
12941
12945
|
* - page?: number
|
|
12942
12946
|
* - per_page?: number
|
|
@@ -15541,6 +15545,7 @@ var SchedulerRoute = /** @class */ (function () {
|
|
|
15541
15545
|
getTikTokTrendingHashtags: { url: '/schedulers/{scheduler_id}/tiktok/discovery/hashtags/trending', method: HTTP_METHODS.GET },
|
|
15542
15546
|
getTikTokHashtagDetail: { url: '/schedulers/{scheduler_id}/tiktok/discovery/hashtags/detail', method: HTTP_METHODS.GET },
|
|
15543
15547
|
getTikTokTrendingKeywords: { url: '/schedulers/{scheduler_id}/tiktok/discovery/search-keywords', method: HTTP_METHODS.GET },
|
|
15548
|
+
getTikTokRecommendedKeywords: { url: '/schedulers/{scheduler_id}/tiktok/discovery/search-keywords/recommend', method: HTTP_METHODS.GET },
|
|
15544
15549
|
};
|
|
15545
15550
|
return SchedulerRoute;
|
|
15546
15551
|
}());
|
|
@@ -16269,6 +16274,13 @@ var Scheduler = /** @class */ (function () {
|
|
|
16269
16274
|
Scheduler.getTikTokTrendingKeywords = function (scheduler_id, params) {
|
|
16270
16275
|
return Requests.processRoute(SchedulerRoute.routes.getTikTokTrendingKeywords, {}, { scheduler_id: scheduler_id }, params);
|
|
16271
16276
|
};
|
|
16277
|
+
/**
|
|
16278
|
+
* Get recommended search keywords on TikTok.
|
|
16279
|
+
* @param params { is_personalized: boolean }
|
|
16280
|
+
*/
|
|
16281
|
+
Scheduler.getTikTokRecommendedKeywords = function (scheduler_id, params) {
|
|
16282
|
+
return Requests.processRoute(SchedulerRoute.routes.getTikTokRecommendedKeywords, {}, { scheduler_id: scheduler_id }, params);
|
|
16283
|
+
};
|
|
16272
16284
|
return Scheduler;
|
|
16273
16285
|
}());
|
|
16274
16286
|
|