glitch-javascript-sdk 3.0.7 → 3.0.9
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 +42 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Titles.d.ts +15 -0
- package/dist/esm/index.js +42 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +15 -0
- package/package.json +1 -1
- package/src/api/Titles.ts +57 -14
- package/src/routes/TitlesRoute.ts +13 -0
package/dist/esm/api/Titles.d.ts
CHANGED
|
@@ -685,5 +685,20 @@ declare class Titles {
|
|
|
685
685
|
* - per_page?: number
|
|
686
686
|
*/
|
|
687
687
|
static swipeFeed<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
688
|
+
/**
|
|
689
|
+
* Get a consolidated report of all earnings for a title, including
|
|
690
|
+
* playtime payouts, direct premium purchases, and rentals (minus refunds).
|
|
691
|
+
*
|
|
692
|
+
* @param title_id The UUID of the title.
|
|
693
|
+
* @returns AxiosPromise containing the consolidated financial data.
|
|
694
|
+
*/
|
|
695
|
+
static getDeveloperPayoutConsolidatedSummary<T>(title_id: string): AxiosPromise<Response<T>>;
|
|
696
|
+
static wishlistHistory<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
697
|
+
static wishlistInfluencers<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
698
|
+
static wishlistAds<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
699
|
+
static wishlistUtms<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
700
|
+
static wishlistConversions<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
701
|
+
static wishlistGeo<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
702
|
+
static wishlistDevices<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
688
703
|
}
|
|
689
704
|
export default Titles;
|
package/dist/esm/index.js
CHANGED
|
@@ -11986,6 +11986,17 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
11986
11986
|
* GET /titles/discovery/swipe
|
|
11987
11987
|
*/
|
|
11988
11988
|
swipeFeed: { url: '/titles/discovery/swipe', method: HTTP_METHODS.GET },
|
|
11989
|
+
developerPayoutConsolidatedSummary: {
|
|
11990
|
+
url: '/titles/{title_id}/payouts/consolidated-summary',
|
|
11991
|
+
method: HTTP_METHODS.GET
|
|
11992
|
+
},
|
|
11993
|
+
wishlistHistory: { url: '/titles/{title_id}/wishlist/history', method: HTTP_METHODS.GET },
|
|
11994
|
+
wishlistInfluencers: { url: '/titles/{title_id}/wishlist/influencers', method: HTTP_METHODS.GET },
|
|
11995
|
+
wishlistAds: { url: '/titles/{title_id}/wishlist/ads', method: HTTP_METHODS.GET },
|
|
11996
|
+
wishlistUtms: { url: '/titles/{title_id}/wishlist/utms', method: HTTP_METHODS.GET },
|
|
11997
|
+
wishlistConversions: { url: '/titles/{title_id}/wishlist/conversions', method: HTTP_METHODS.GET },
|
|
11998
|
+
wishlistGeo: { url: '/titles/{title_id}/wishlist/geo', method: HTTP_METHODS.GET },
|
|
11999
|
+
wishlistDevices: { url: '/titles/{title_id}/wishlist/devices', method: HTTP_METHODS.GET },
|
|
11989
12000
|
};
|
|
11990
12001
|
return TitlesRoute;
|
|
11991
12002
|
}());
|
|
@@ -12885,6 +12896,37 @@ var Titles = /** @class */ (function () {
|
|
|
12885
12896
|
Titles.swipeFeed = function (params) {
|
|
12886
12897
|
return Requests.processRoute(TitlesRoute.routes.swipeFeed, {}, undefined, params);
|
|
12887
12898
|
};
|
|
12899
|
+
/**
|
|
12900
|
+
* Get a consolidated report of all earnings for a title, including
|
|
12901
|
+
* playtime payouts, direct premium purchases, and rentals (minus refunds).
|
|
12902
|
+
*
|
|
12903
|
+
* @param title_id The UUID of the title.
|
|
12904
|
+
* @returns AxiosPromise containing the consolidated financial data.
|
|
12905
|
+
*/
|
|
12906
|
+
Titles.getDeveloperPayoutConsolidatedSummary = function (title_id) {
|
|
12907
|
+
return Requests.processRoute(TitlesRoute.routes.developerPayoutConsolidatedSummary, {}, { title_id: title_id });
|
|
12908
|
+
};
|
|
12909
|
+
Titles.wishlistHistory = function (title_id, params) {
|
|
12910
|
+
return Requests.processRoute(TitlesRoute.routes.wishlistHistory, undefined, { title_id: title_id }, params);
|
|
12911
|
+
};
|
|
12912
|
+
Titles.wishlistInfluencers = function (title_id, params) {
|
|
12913
|
+
return Requests.processRoute(TitlesRoute.routes.wishlistInfluencers, undefined, { title_id: title_id }, params);
|
|
12914
|
+
};
|
|
12915
|
+
Titles.wishlistAds = function (title_id, params) {
|
|
12916
|
+
return Requests.processRoute(TitlesRoute.routes.wishlistAds, undefined, { title_id: title_id }, params);
|
|
12917
|
+
};
|
|
12918
|
+
Titles.wishlistUtms = function (title_id, params) {
|
|
12919
|
+
return Requests.processRoute(TitlesRoute.routes.wishlistUtms, undefined, { title_id: title_id }, params);
|
|
12920
|
+
};
|
|
12921
|
+
Titles.wishlistConversions = function (title_id, params) {
|
|
12922
|
+
return Requests.processRoute(TitlesRoute.routes.wishlistConversions, undefined, { title_id: title_id }, params);
|
|
12923
|
+
};
|
|
12924
|
+
Titles.wishlistGeo = function (title_id, params) {
|
|
12925
|
+
return Requests.processRoute(TitlesRoute.routes.wishlistGeo, undefined, { title_id: title_id }, params);
|
|
12926
|
+
};
|
|
12927
|
+
Titles.wishlistDevices = function (title_id, params) {
|
|
12928
|
+
return Requests.processRoute(TitlesRoute.routes.wishlistDevices, undefined, { title_id: title_id }, params);
|
|
12929
|
+
};
|
|
12888
12930
|
return Titles;
|
|
12889
12931
|
}());
|
|
12890
12932
|
|