glitch-javascript-sdk 3.9.6 → 3.9.7
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 +15 -0
- package/dist/browser/hosting-runtime.js.map +1 -1
- package/dist/cjs/index.js +15 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Hosting.d.ts +24 -1
- package/dist/esm/index.js +15 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +6 -0
- package/package.json +1 -1
- package/src/api/Hosting.ts +34 -1
- package/src/routes/HostingRoute.ts +3 -0
|
@@ -5663,6 +5663,9 @@
|
|
|
5663
5663
|
resolveMarketplacePurchase: { url: '/hosting/marketplace/resolve', method: HTTP_METHODS.POST },
|
|
5664
5664
|
activateMarketplaceSubscription: { url: '/hosting/marketplace/subscriptions/{subscription_id}/activate', method: HTTP_METHODS.POST },
|
|
5665
5665
|
marketplaceSubscription: { url: '/hosting/marketplace/subscriptions/{subscription_id}', method: HTTP_METHODS.GET },
|
|
5666
|
+
resolveAwsMarketplacePurchase: { url: '/hosting/aws-marketplace/resolve', method: HTTP_METHODS.POST },
|
|
5667
|
+
activateAwsMarketplaceSubscription: { url: '/hosting/aws-marketplace/subscriptions/{subscription_id}/activate', method: HTTP_METHODS.POST },
|
|
5668
|
+
awsMarketplaceSubscription: { url: '/hosting/aws-marketplace/subscriptions/{subscription_id}', method: HTTP_METHODS.GET },
|
|
5666
5669
|
createSite: { url: '/titles/{title_id}/hosting/sites', method: HTTP_METHODS.POST },
|
|
5667
5670
|
updateSite: { url: '/titles/{title_id}/hosting/sites/{site_id}', method: HTTP_METHODS.PUT },
|
|
5668
5671
|
uploadUrl: { url: '/titles/{title_id}/hosting/sites/{site_id}/upload-url', method: HTTP_METHODS.POST },
|
|
@@ -6196,6 +6199,18 @@
|
|
|
6196
6199
|
static marketplaceSubscription(subscription_id) {
|
|
6197
6200
|
return Requests.processRoute(HostingRoute.routes.marketplaceSubscription, undefined, { subscription_id });
|
|
6198
6201
|
}
|
|
6202
|
+
/** Claim the one-time Glitch code created after AWS ResolveCustomer succeeds. */
|
|
6203
|
+
static resolveAwsMarketplacePurchase(activation_code) {
|
|
6204
|
+
return Requests.processRoute(HostingRoute.routes.resolveAwsMarketplacePurchase, { activation_code });
|
|
6205
|
+
}
|
|
6206
|
+
/** Connect a paid AWS Marketplace contract to one Glitch business account. */
|
|
6207
|
+
static activateAwsMarketplaceSubscription(subscription_id, community_id) {
|
|
6208
|
+
return Requests.processRoute(HostingRoute.routes.activateAwsMarketplaceSubscription, { community_id }, { subscription_id });
|
|
6209
|
+
}
|
|
6210
|
+
/** Refresh and retrieve the safe AWS Marketplace entitlement state. */
|
|
6211
|
+
static awsMarketplaceSubscription(subscription_id) {
|
|
6212
|
+
return Requests.processRoute(HostingRoute.routes.awsMarketplaceSubscription, undefined, { subscription_id });
|
|
6213
|
+
}
|
|
6199
6214
|
static createSite(title_id, data) {
|
|
6200
6215
|
return Requests.processRoute(HostingRoute.routes.createSite, data, { title_id });
|
|
6201
6216
|
}
|