glitch-javascript-sdk 2.8.3 → 2.8.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 +18 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Titles.d.ts +5 -0
- package/dist/esm/api/Utility.d.ts +7 -0
- package/dist/esm/index.js +18 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +12 -0
- package/package.json +1 -1
- package/src/api/Titles.ts +13 -5
- package/src/api/Utility.ts +10 -0
- package/src/routes/TitlesRoute.ts +3 -0
- package/src/routes/UtilityRoutes.ts +1 -0
package/dist/esm/api/Titles.d.ts
CHANGED
|
@@ -514,5 +514,10 @@ declare class Titles {
|
|
|
514
514
|
* @returns AxiosPromise containing { valid: boolean, user_name: string, license_type: string }
|
|
515
515
|
*/
|
|
516
516
|
static validateInstall<T>(title_id: string, install_id: string): AxiosPromise<Response<T>>;
|
|
517
|
+
/**
|
|
518
|
+
* List all builds/deployments for a specific title.
|
|
519
|
+
* @param title_id The UUID of the title.
|
|
520
|
+
*/
|
|
521
|
+
static listBuilds<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
517
522
|
}
|
|
518
523
|
export default Titles;
|
|
@@ -49,5 +49,12 @@ declare class Utility {
|
|
|
49
49
|
* @returns promise
|
|
50
50
|
*/
|
|
51
51
|
static listTypes<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
52
|
+
/**
|
|
53
|
+
* Get all genres that are associated with at least one game title.
|
|
54
|
+
* Includes the 'titles_count' property.
|
|
55
|
+
*
|
|
56
|
+
* @returns promise
|
|
57
|
+
*/
|
|
58
|
+
static listActiveGenres<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
52
59
|
}
|
|
53
60
|
export default Utility;
|
package/dist/esm/index.js
CHANGED
|
@@ -10745,6 +10745,7 @@ var UtilityRoutes = /** @class */ (function () {
|
|
|
10745
10745
|
genders: { url: '/util/genders', method: HTTP_METHODS.GET },
|
|
10746
10746
|
ethnicities: { url: '/util/ethnicities', method: HTTP_METHODS.GET },
|
|
10747
10747
|
types: { url: '/util/types', method: HTTP_METHODS.GET },
|
|
10748
|
+
genres_active: { url: '/util/genres/active', method: HTTP_METHODS.GET },
|
|
10748
10749
|
};
|
|
10749
10750
|
return UtilityRoutes;
|
|
10750
10751
|
}());
|
|
@@ -10812,6 +10813,15 @@ var Utility = /** @class */ (function () {
|
|
|
10812
10813
|
Utility.listTypes = function (params) {
|
|
10813
10814
|
return Requests.processRoute(UtilityRoutes.routes.types, undefined, undefined, params);
|
|
10814
10815
|
};
|
|
10816
|
+
/**
|
|
10817
|
+
* Get all genres that are associated with at least one game title.
|
|
10818
|
+
* Includes the 'titles_count' property.
|
|
10819
|
+
*
|
|
10820
|
+
* @returns promise
|
|
10821
|
+
*/
|
|
10822
|
+
Utility.listActiveGenres = function (params) {
|
|
10823
|
+
return Requests.processRoute(UtilityRoutes.routes.genres_active, undefined, undefined, params);
|
|
10824
|
+
};
|
|
10815
10825
|
return Utility;
|
|
10816
10826
|
}());
|
|
10817
10827
|
|
|
@@ -11709,6 +11719,7 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
11709
11719
|
url: '/titles/{title_id}/installs/{install_id}/validate',
|
|
11710
11720
|
method: HTTP_METHODS.POST
|
|
11711
11721
|
},
|
|
11722
|
+
listBuilds: { url: '/titles/{title_id}/deployments', method: HTTP_METHODS.GET },
|
|
11712
11723
|
};
|
|
11713
11724
|
return TitlesRoute;
|
|
11714
11725
|
}());
|
|
@@ -12381,6 +12392,13 @@ var Titles = /** @class */ (function () {
|
|
|
12381
12392
|
Titles.validateInstall = function (title_id, install_id) {
|
|
12382
12393
|
return Requests.processRoute(TitlesRoute.routes.validateInstall, {}, { title_id: title_id, install_id: install_id });
|
|
12383
12394
|
};
|
|
12395
|
+
/**
|
|
12396
|
+
* List all builds/deployments for a specific title.
|
|
12397
|
+
* @param title_id The UUID of the title.
|
|
12398
|
+
*/
|
|
12399
|
+
Titles.listBuilds = function (title_id, params) {
|
|
12400
|
+
return Requests.processRoute(TitlesRoute.routes.listBuilds, {}, { title_id: title_id }, params);
|
|
12401
|
+
};
|
|
12384
12402
|
return Titles;
|
|
12385
12403
|
}());
|
|
12386
12404
|
|