glitch-javascript-sdk 2.9.2 → 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 +30 -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 +12 -0
- package/dist/esm/index.js +30 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +18 -0
- package/package.json +1 -1
- package/src/api/Newsletters.ts +9 -0
- package/src/api/Titles.ts +21 -0
- package/src/routes/NewslettersRoutes.ts +1 -0
- package/src/routes/TitlesRoute.ts +6 -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 },
|
|
@@ -25733,6 +25736,24 @@ var Titles = /** @class */ (function () {
|
|
|
25733
25736
|
Titles.getMatchmakerServer = function (title_id) {
|
|
25734
25737
|
return Requests.processRoute(TitlesRoute.routes.getMatchmakerServer, {}, { title_id: title_id });
|
|
25735
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
|
+
};
|
|
25736
25757
|
return Titles;
|
|
25737
25758
|
}());
|
|
25738
25759
|
|
|
@@ -27536,6 +27557,7 @@ var NewslettersRoutes = /** @class */ (function () {
|
|
|
27536
27557
|
updateSubscriber: { url: '/admin/newsletters/subscribers/{id}', method: HTTP_METHODS.PUT },
|
|
27537
27558
|
deleteSubscriber: { url: '/admin/newsletters/subscribers/{id}', method: HTTP_METHODS.DELETE },
|
|
27538
27559
|
joinDistributionWaitlist: { url: '/newsletters/joinDistributionWaitlist', method: HTTP_METHODS.POST },
|
|
27560
|
+
joinConsumerWaitlist: { url: '/newsletters/joinConsumerWaitlist', method: HTTP_METHODS.POST },
|
|
27539
27561
|
};
|
|
27540
27562
|
return NewslettersRoutes;
|
|
27541
27563
|
}());
|
|
@@ -27685,6 +27707,14 @@ var Newsletters = /** @class */ (function () {
|
|
|
27685
27707
|
Newsletters.joinDistributionWaitlist = function (data, params) {
|
|
27686
27708
|
return Requests.processRoute(NewslettersRoutes.routes.joinDistributionWaitlist, data, undefined, params);
|
|
27687
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
|
+
};
|
|
27688
27718
|
return Newsletters;
|
|
27689
27719
|
}());
|
|
27690
27720
|
|