glitch-javascript-sdk 3.9.1 → 3.9.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/browser/hosting-runtime.js +12 -3
- package/dist/browser/hosting-runtime.js.map +1 -1
- package/dist/cjs/index.js +14 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Hosting.d.ts +5 -2
- package/dist/esm/index.js +14 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/api/Competitions.ts +184 -184
- package/src/api/Hosting.ts +15 -3
- package/src/hosting-runtime.ts +2 -1
- package/src/routes/TitlesRoute.ts +7 -7
package/dist/cjs/index.js
CHANGED
|
@@ -24065,9 +24065,9 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
24065
24065
|
method: HTTP_METHODS.PUT
|
|
24066
24066
|
},
|
|
24067
24067
|
importKeys: { url: '/titles/{title_id}/import-keys', method: HTTP_METHODS.POST },
|
|
24068
|
-
// ─────────────────────────────────────────────────────────────────
|
|
24069
|
-
// Purchase/Revenue Endpoints
|
|
24070
|
-
// ─────────────────────────────────────────────────────────────────
|
|
24068
|
+
// ─────────────────────────────────────────────────────────────────
|
|
24069
|
+
// Purchase/Revenue Endpoints
|
|
24070
|
+
// ─────────────────────────────────────────────────────────────────
|
|
24071
24071
|
purchasesList: {
|
|
24072
24072
|
url: "/titles/{title_id}/purchases",
|
|
24073
24073
|
method: HTTP_METHODS.GET,
|
|
@@ -24084,7 +24084,7 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
24084
24084
|
url: "/titles/{title_id}/purchases/summary",
|
|
24085
24085
|
method: HTTP_METHODS.GET,
|
|
24086
24086
|
},
|
|
24087
|
-
// Advanced analytics sub-routes
|
|
24087
|
+
// Advanced analytics sub-routes
|
|
24088
24088
|
purchasesTimeReport: {
|
|
24089
24089
|
url: "/titles/{title_id}/purchases/reports/time",
|
|
24090
24090
|
method: HTTP_METHODS.GET,
|
|
@@ -33449,8 +33449,16 @@ var Hosting = /** @class */ (function () {
|
|
|
33449
33449
|
if (data === void 0) { data = {}; }
|
|
33450
33450
|
return Requests.processRoute(HostingRoute.routes.aiInstructions, data, { title_id: title_id, site_id: site_id });
|
|
33451
33451
|
};
|
|
33452
|
-
Hosting.resolve = function (hostname) {
|
|
33453
|
-
|
|
33452
|
+
Hosting.resolve = function (hostname, gatewayToken) {
|
|
33453
|
+
if (!gatewayToken) {
|
|
33454
|
+
return Requests.processRoute(HostingRoute.routes.resolve, undefined, undefined, { hostname: hostname });
|
|
33455
|
+
}
|
|
33456
|
+
var base = (Config.getBaseUrl() || '').replace(/\/+$/, '');
|
|
33457
|
+
var path = HostingRoute.routes.resolve.url.replace(/^\/+/, '');
|
|
33458
|
+
return axios$1.get("".concat(base, "/").concat(path), {
|
|
33459
|
+
params: { hostname: hostname },
|
|
33460
|
+
headers: { 'X-Glitch-Hosting-Gateway': gatewayToken },
|
|
33461
|
+
});
|
|
33454
33462
|
};
|
|
33455
33463
|
Hosting.startPlaySession = function (data) {
|
|
33456
33464
|
return Requests.processRoute(HostingRoute.routes.startPlaySession, data);
|