glitch-javascript-sdk 3.9.6 → 3.9.8

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 CHANGED
@@ -39397,6 +39397,9 @@ var HostingRoute = /** @class */ (function () {
39397
39397
  resolveMarketplacePurchase: { url: '/hosting/marketplace/resolve', method: HTTP_METHODS.POST },
39398
39398
  activateMarketplaceSubscription: { url: '/hosting/marketplace/subscriptions/{subscription_id}/activate', method: HTTP_METHODS.POST },
39399
39399
  marketplaceSubscription: { url: '/hosting/marketplace/subscriptions/{subscription_id}', method: HTTP_METHODS.GET },
39400
+ resolveAwsMarketplacePurchase: { url: '/hosting/aws-marketplace/resolve', method: HTTP_METHODS.POST },
39401
+ activateAwsMarketplaceSubscription: { url: '/hosting/aws-marketplace/subscriptions/{subscription_id}/activate', method: HTTP_METHODS.POST },
39402
+ awsMarketplaceSubscription: { url: '/hosting/aws-marketplace/subscriptions/{subscription_id}', method: HTTP_METHODS.GET },
39400
39403
  createSite: { url: '/titles/{title_id}/hosting/sites', method: HTTP_METHODS.POST },
39401
39404
  updateSite: { url: '/titles/{title_id}/hosting/sites/{site_id}', method: HTTP_METHODS.PUT },
39402
39405
  uploadUrl: { url: '/titles/{title_id}/hosting/sites/{site_id}/upload-url', method: HTTP_METHODS.POST },
@@ -39457,6 +39460,18 @@ var Hosting = /** @class */ (function () {
39457
39460
  Hosting.marketplaceSubscription = function (subscription_id) {
39458
39461
  return Requests.processRoute(HostingRoute.routes.marketplaceSubscription, undefined, { subscription_id: subscription_id });
39459
39462
  };
39463
+ /** Claim the one-time Glitch code created after AWS ResolveCustomer succeeds. */
39464
+ Hosting.resolveAwsMarketplacePurchase = function (activation_code) {
39465
+ return Requests.processRoute(HostingRoute.routes.resolveAwsMarketplacePurchase, { activation_code: activation_code });
39466
+ };
39467
+ /** Connect a paid AWS Marketplace contract to one Glitch business account. */
39468
+ Hosting.activateAwsMarketplaceSubscription = function (subscription_id, community_id) {
39469
+ return Requests.processRoute(HostingRoute.routes.activateAwsMarketplaceSubscription, { community_id: community_id }, { subscription_id: subscription_id });
39470
+ };
39471
+ /** Refresh and retrieve the safe AWS Marketplace entitlement state. */
39472
+ Hosting.awsMarketplaceSubscription = function (subscription_id) {
39473
+ return Requests.processRoute(HostingRoute.routes.awsMarketplaceSubscription, undefined, { subscription_id: subscription_id });
39474
+ };
39460
39475
  Hosting.createSite = function (title_id, data) {
39461
39476
  return Requests.processRoute(HostingRoute.routes.createSite, data, { title_id: title_id });
39462
39477
  };