glitch-javascript-sdk 2.8.3 → 2.8.5
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 +39 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Titles.d.ts +17 -0
- package/dist/esm/api/Utility.d.ts +7 -0
- package/dist/esm/index.js +39 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +24 -0
- package/package.json +1 -1
- package/src/api/Titles.ts +34 -5
- package/src/api/Utility.ts +10 -0
- package/src/routes/TitlesRoute.ts +7 -0
- package/src/routes/UtilityRoutes.ts +1 -0
package/dist/cjs/index.js
CHANGED
|
@@ -23929,6 +23929,7 @@ var UtilityRoutes = /** @class */ (function () {
|
|
|
23929
23929
|
genders: { url: '/util/genders', method: HTTP_METHODS.GET },
|
|
23930
23930
|
ethnicities: { url: '/util/ethnicities', method: HTTP_METHODS.GET },
|
|
23931
23931
|
types: { url: '/util/types', method: HTTP_METHODS.GET },
|
|
23932
|
+
genres_active: { url: '/util/genres/active', method: HTTP_METHODS.GET },
|
|
23932
23933
|
};
|
|
23933
23934
|
return UtilityRoutes;
|
|
23934
23935
|
}());
|
|
@@ -23996,6 +23997,15 @@ var Utility = /** @class */ (function () {
|
|
|
23996
23997
|
Utility.listTypes = function (params) {
|
|
23997
23998
|
return Requests.processRoute(UtilityRoutes.routes.types, undefined, undefined, params);
|
|
23998
23999
|
};
|
|
24000
|
+
/**
|
|
24001
|
+
* Get all genres that are associated with at least one game title.
|
|
24002
|
+
* Includes the 'titles_count' property.
|
|
24003
|
+
*
|
|
24004
|
+
* @returns promise
|
|
24005
|
+
*/
|
|
24006
|
+
Utility.listActiveGenres = function (params) {
|
|
24007
|
+
return Requests.processRoute(UtilityRoutes.routes.genres_active, undefined, undefined, params);
|
|
24008
|
+
};
|
|
23999
24009
|
return Utility;
|
|
24000
24010
|
}());
|
|
24001
24011
|
|
|
@@ -24893,6 +24903,10 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
24893
24903
|
url: '/titles/{title_id}/installs/{install_id}/validate',
|
|
24894
24904
|
method: HTTP_METHODS.POST
|
|
24895
24905
|
},
|
|
24906
|
+
listBuilds: { url: '/titles/{title_id}/deployments', method: HTTP_METHODS.GET },
|
|
24907
|
+
listSaves: { url: '/titles/{title_id}/installs/{install_id}/saves', method: HTTP_METHODS.GET },
|
|
24908
|
+
storeSave: { url: '/titles/{title_id}/installs/{install_id}/saves', method: HTTP_METHODS.POST },
|
|
24909
|
+
resolveSaveConflict: { url: '/titles/{title_id}/installs/{install_id}/saves/{save_id}/resolve', method: HTTP_METHODS.POST },
|
|
24896
24910
|
};
|
|
24897
24911
|
return TitlesRoute;
|
|
24898
24912
|
}());
|
|
@@ -25565,6 +25579,31 @@ var Titles = /** @class */ (function () {
|
|
|
25565
25579
|
Titles.validateInstall = function (title_id, install_id) {
|
|
25566
25580
|
return Requests.processRoute(TitlesRoute.routes.validateInstall, {}, { title_id: title_id, install_id: install_id });
|
|
25567
25581
|
};
|
|
25582
|
+
/**
|
|
25583
|
+
* List all builds/deployments for a specific title.
|
|
25584
|
+
* @param title_id The UUID of the title.
|
|
25585
|
+
*/
|
|
25586
|
+
Titles.listBuilds = function (title_id, params) {
|
|
25587
|
+
return Requests.processRoute(TitlesRoute.routes.listBuilds, {}, { title_id: title_id }, params);
|
|
25588
|
+
};
|
|
25589
|
+
/**
|
|
25590
|
+
* List all cloud save slots for the player associated with this install.
|
|
25591
|
+
*/
|
|
25592
|
+
Titles.listSaves = function (title_id, install_id) {
|
|
25593
|
+
return Requests.processRoute(TitlesRoute.routes.listSaves, {}, { title_id: title_id, install_id: install_id });
|
|
25594
|
+
};
|
|
25595
|
+
/**
|
|
25596
|
+
* Upload game progress. The user is identified by the install_id.
|
|
25597
|
+
*/
|
|
25598
|
+
Titles.storeSave = function (title_id, install_id, data) {
|
|
25599
|
+
return Requests.processRoute(TitlesRoute.routes.storeSave, data, { title_id: title_id, install_id: install_id });
|
|
25600
|
+
};
|
|
25601
|
+
/**
|
|
25602
|
+
* Resolve a conflict.
|
|
25603
|
+
*/
|
|
25604
|
+
Titles.resolveSaveConflict = function (title_id, install_id, save_id, conflict_id, choice) {
|
|
25605
|
+
return Requests.processRoute(TitlesRoute.routes.resolveSaveConflict, { conflict_id: conflict_id, choice: choice }, { title_id: title_id, install_id: install_id, save_id: save_id });
|
|
25606
|
+
};
|
|
25568
25607
|
return Titles;
|
|
25569
25608
|
}());
|
|
25570
25609
|
|