glitch-javascript-sdk 3.5.3 → 3.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/dist/cjs/index.js +47 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/GameAdvertising.d.ts +24 -0
- package/dist/esm/api/index.d.ts +2 -0
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +47 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/routes/GameAdvertisingRoute.d.ts +7 -0
- package/dist/index.d.ts +23 -0
- package/package.json +2 -2
- package/src/api/GameAdvertising.ts +52 -0
- package/src/api/Titles.ts +1 -1
- package/src/api/index.ts +2 -0
- package/src/index.ts +2 -0
- package/src/routes/GameAdvertisingRoute.ts +17 -0
package/dist/cjs/index.js
CHANGED
|
@@ -32956,6 +32956,52 @@ var MarketResearch = /** @class */ (function () {
|
|
|
32956
32956
|
return MarketResearch;
|
|
32957
32957
|
}());
|
|
32958
32958
|
|
|
32959
|
+
var GameAdvertisingRoute = /** @class */ (function () {
|
|
32960
|
+
function GameAdvertisingRoute() {
|
|
32961
|
+
}
|
|
32962
|
+
GameAdvertisingRoute.routes = {
|
|
32963
|
+
settings: { url: '/titles/{title_id}/advertising/settings', method: HTTP_METHODS.GET },
|
|
32964
|
+
updateSettings: { url: '/titles/{title_id}/advertising/settings', method: HTTP_METHODS.PUT },
|
|
32965
|
+
createSession: { url: '/titles/{title_id}/advertising/sessions', method: HTTP_METHODS.POST },
|
|
32966
|
+
storeEvent: { url: '/titles/{title_id}/advertising/sessions/{session_id}/events', method: HTTP_METHODS.POST },
|
|
32967
|
+
revenueSummary: { url: '/titles/{title_id}/advertising/revenue-summary', method: HTTP_METHODS.GET },
|
|
32968
|
+
adminDashboard: { url: '/admin/game-advertising', method: HTTP_METHODS.GET },
|
|
32969
|
+
adminUpdateSettings: { url: '/admin/game-advertising/settings', method: HTTP_METHODS.PUT },
|
|
32970
|
+
adminStoreRevenue: { url: '/admin/game-advertising/revenue', method: HTTP_METHODS.POST },
|
|
32971
|
+
};
|
|
32972
|
+
return GameAdvertisingRoute;
|
|
32973
|
+
}());
|
|
32974
|
+
|
|
32975
|
+
var GameAdvertising = /** @class */ (function () {
|
|
32976
|
+
function GameAdvertising() {
|
|
32977
|
+
}
|
|
32978
|
+
GameAdvertising.settings = function (title_id) {
|
|
32979
|
+
return Requests.processRoute(GameAdvertisingRoute.routes.settings, undefined, { title_id: title_id });
|
|
32980
|
+
};
|
|
32981
|
+
GameAdvertising.updateSettings = function (title_id, data) {
|
|
32982
|
+
return Requests.processRoute(GameAdvertisingRoute.routes.updateSettings, data, { title_id: title_id });
|
|
32983
|
+
};
|
|
32984
|
+
GameAdvertising.createSession = function (title_id, data) {
|
|
32985
|
+
return Requests.processRoute(GameAdvertisingRoute.routes.createSession, data, { title_id: title_id });
|
|
32986
|
+
};
|
|
32987
|
+
GameAdvertising.storeEvent = function (title_id, session_id, data) {
|
|
32988
|
+
return Requests.processRoute(GameAdvertisingRoute.routes.storeEvent, data, { title_id: title_id, session_id: session_id });
|
|
32989
|
+
};
|
|
32990
|
+
GameAdvertising.revenueSummary = function (title_id, params) {
|
|
32991
|
+
return Requests.processRoute(GameAdvertisingRoute.routes.revenueSummary, undefined, { title_id: title_id }, params);
|
|
32992
|
+
};
|
|
32993
|
+
GameAdvertising.adminDashboard = function () {
|
|
32994
|
+
return Requests.processRoute(GameAdvertisingRoute.routes.adminDashboard);
|
|
32995
|
+
};
|
|
32996
|
+
GameAdvertising.adminUpdateSettings = function (data) {
|
|
32997
|
+
return Requests.processRoute(GameAdvertisingRoute.routes.adminUpdateSettings, data);
|
|
32998
|
+
};
|
|
32999
|
+
GameAdvertising.adminStoreRevenue = function (data) {
|
|
33000
|
+
return Requests.processRoute(GameAdvertisingRoute.routes.adminStoreRevenue, data);
|
|
33001
|
+
};
|
|
33002
|
+
return GameAdvertising;
|
|
33003
|
+
}());
|
|
33004
|
+
|
|
32959
33005
|
var Parser = /** @class */ (function () {
|
|
32960
33006
|
function Parser() {
|
|
32961
33007
|
}
|
|
@@ -33505,6 +33551,7 @@ var Glitch = /** @class */ (function () {
|
|
|
33505
33551
|
AdminReports: AdminReports,
|
|
33506
33552
|
AdminUsers: AdminUsers,
|
|
33507
33553
|
MarketResearch: MarketResearch,
|
|
33554
|
+
GameAdvertising: GameAdvertising,
|
|
33508
33555
|
};
|
|
33509
33556
|
Glitch.util = {
|
|
33510
33557
|
Requests: Requests,
|