glitch-javascript-sdk 2.9.1 → 2.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/cjs/index.js +45 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Newsletters.d.ts +6 -0
- package/dist/esm/api/Titles.d.ts +20 -0
- package/dist/esm/index.js +45 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +26 -0
- package/package.json +1 -1
- package/src/api/Newsletters.ts +9 -0
- package/src/api/Titles.ts +36 -0
- package/src/routes/NewslettersRoutes.ts +1 -0
- package/src/routes/TitlesRoute.ts +11 -0
package/dist/cjs/index.js
CHANGED
|
@@ -24920,6 +24920,9 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
24920
24920
|
getDeploymentUploadUrl: { url: '/titles/{title_id}/deployments/presigned-url', method: HTTP_METHODS.POST },
|
|
24921
24921
|
confirmDeployment: { url: '/titles/{title_id}/deployments/confirm', method: HTTP_METHODS.POST },
|
|
24922
24922
|
getPlaySession: { url: '/titles/{title_id}/play', method: HTTP_METHODS.GET },
|
|
24923
|
+
initiateMultipartUpload: { url: '/titles/{title_id}/deployments/multipart/initiate', method: HTTP_METHODS.POST },
|
|
24924
|
+
getMultipartUrls: { url: '/titles/{title_id}/deployments/multipart/urls', method: HTTP_METHODS.POST },
|
|
24925
|
+
completeMultipartUpload: { url: '/titles/{title_id}/deployments/multipart/complete', method: HTTP_METHODS.POST },
|
|
24923
24926
|
// Aegis Payouts
|
|
24924
24927
|
listDeveloperPayouts: { url: '/titles/{title_id}/payouts', method: HTTP_METHODS.GET },
|
|
24925
24928
|
viewDeveloperPayout: { url: '/titles/{title_id}/payouts/{payout_id}', method: HTTP_METHODS.GET },
|
|
@@ -24961,6 +24964,11 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
24961
24964
|
method: HTTP_METHODS.GET
|
|
24962
24965
|
},
|
|
24963
24966
|
updateBuildStatus: { url: '/titles/{title_id}/deployments/{build_id}/status', method: HTTP_METHODS.PUT },
|
|
24967
|
+
// Inside the routes object in TitlesRoute.ts
|
|
24968
|
+
getMatchmakerServer: {
|
|
24969
|
+
url: '/titles/{title_id}/matchmaker/server',
|
|
24970
|
+
method: HTTP_METHODS.GET
|
|
24971
|
+
},
|
|
24964
24972
|
};
|
|
24965
24973
|
return TitlesRoute;
|
|
24966
24974
|
}());
|
|
@@ -25718,6 +25726,34 @@ var Titles = /** @class */ (function () {
|
|
|
25718
25726
|
Titles.updateBuildStatus = function (title_id, build_id, status) {
|
|
25719
25727
|
return Requests.processRoute(TitlesRoute.routes.updateBuildStatus, { status: status }, { title_id: title_id, build_id: build_id });
|
|
25720
25728
|
};
|
|
25729
|
+
/**
|
|
25730
|
+
* Proxies a request through the backend to the matchmaker.
|
|
25731
|
+
* This avoids HTTPS -> HTTP mixed content blocks.
|
|
25732
|
+
*
|
|
25733
|
+
* @param title_id The UUID of the game title.
|
|
25734
|
+
* @returns AxiosPromise containing { signallingServer: string }
|
|
25735
|
+
*/
|
|
25736
|
+
Titles.getMatchmakerServer = function (title_id) {
|
|
25737
|
+
return Requests.processRoute(TitlesRoute.routes.getMatchmakerServer, {}, { title_id: title_id });
|
|
25738
|
+
};
|
|
25739
|
+
/**
|
|
25740
|
+
* Initiates a resumable S3 multipart upload for large files.
|
|
25741
|
+
*/
|
|
25742
|
+
Titles.initiateMultipartUpload = function (title_id, data) {
|
|
25743
|
+
return Requests.processRoute(TitlesRoute.routes.initiateMultipartUpload, data, { title_id: title_id });
|
|
25744
|
+
};
|
|
25745
|
+
/**
|
|
25746
|
+
* Get presigned URLs for specific chunk parts.
|
|
25747
|
+
*/
|
|
25748
|
+
Titles.getMultipartUrls = function (title_id, data) {
|
|
25749
|
+
return Requests.processRoute(TitlesRoute.routes.getMultipartUrls, data, { title_id: title_id });
|
|
25750
|
+
};
|
|
25751
|
+
/**
|
|
25752
|
+
* Stitch together all uploaded chunks to complete the file in S3.
|
|
25753
|
+
*/
|
|
25754
|
+
Titles.completeMultipartUpload = function (title_id, data) {
|
|
25755
|
+
return Requests.processRoute(TitlesRoute.routes.completeMultipartUpload, data, { title_id: title_id });
|
|
25756
|
+
};
|
|
25721
25757
|
return Titles;
|
|
25722
25758
|
}());
|
|
25723
25759
|
|
|
@@ -27521,6 +27557,7 @@ var NewslettersRoutes = /** @class */ (function () {
|
|
|
27521
27557
|
updateSubscriber: { url: '/admin/newsletters/subscribers/{id}', method: HTTP_METHODS.PUT },
|
|
27522
27558
|
deleteSubscriber: { url: '/admin/newsletters/subscribers/{id}', method: HTTP_METHODS.DELETE },
|
|
27523
27559
|
joinDistributionWaitlist: { url: '/newsletters/joinDistributionWaitlist', method: HTTP_METHODS.POST },
|
|
27560
|
+
joinConsumerWaitlist: { url: '/newsletters/joinConsumerWaitlist', method: HTTP_METHODS.POST },
|
|
27524
27561
|
};
|
|
27525
27562
|
return NewslettersRoutes;
|
|
27526
27563
|
}());
|
|
@@ -27670,6 +27707,14 @@ var Newsletters = /** @class */ (function () {
|
|
|
27670
27707
|
Newsletters.joinDistributionWaitlist = function (data, params) {
|
|
27671
27708
|
return Requests.processRoute(NewslettersRoutes.routes.joinDistributionWaitlist, data, undefined, params);
|
|
27672
27709
|
};
|
|
27710
|
+
/**
|
|
27711
|
+
* Register for Consumer Early Access to the streaming platform.
|
|
27712
|
+
*
|
|
27713
|
+
* @param data { name, email }
|
|
27714
|
+
*/
|
|
27715
|
+
Newsletters.joinConsumerWaitlist = function (data, params) {
|
|
27716
|
+
return Requests.processRoute(NewslettersRoutes.routes.joinConsumerWaitlist, data, undefined, params);
|
|
27717
|
+
};
|
|
27673
27718
|
return Newsletters;
|
|
27674
27719
|
}());
|
|
27675
27720
|
|