@moonbase.sh/storefront-api 0.1.88 → 0.1.90

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/index.cjs CHANGED
@@ -199,7 +199,7 @@ var ActivationRequestEndpoints = class {
199
199
  }
200
200
  async isCompleted(requestId) {
201
201
  const response = await this.api.fetch(`/api/customer/activations/${requestId}/completed`);
202
- return import_zod5.z.boolean().parse(response.data);
202
+ return import_zod5.z.boolean().parse(response);
203
203
  }
204
204
  async fulfillLicense(requestId) {
205
205
  const response = await this.api.authenticatedFetch(`/api/customer/activations/${requestId}/license`, "POST");
@@ -421,7 +421,7 @@ var LicenseEndpoints = class {
421
421
  return paged(activationSchema).parse(response);
422
422
  }
423
423
  async revokeActivation(licenseId, activationId) {
424
- await this.api.authenticatedFetch(`/api/customer/licenses/${licenseId}/activations/${activationId}/revoke`);
424
+ await this.api.authenticatedFetch(`/api/customer/licenses/${licenseId}/activations/${activationId}/revoke`, "POST");
425
425
  }
426
426
  };
427
427
 
package/dist/index.js CHANGED
@@ -154,7 +154,7 @@ var ActivationRequestEndpoints = class {
154
154
  }
155
155
  async isCompleted(requestId) {
156
156
  const response = await this.api.fetch(`/api/customer/activations/${requestId}/completed`);
157
- return z5.boolean().parse(response.data);
157
+ return z5.boolean().parse(response);
158
158
  }
159
159
  async fulfillLicense(requestId) {
160
160
  const response = await this.api.authenticatedFetch(`/api/customer/activations/${requestId}/license`, "POST");
@@ -376,7 +376,7 @@ var LicenseEndpoints = class {
376
376
  return paged(activationSchema).parse(response);
377
377
  }
378
378
  async revokeActivation(licenseId, activationId) {
379
- await this.api.authenticatedFetch(`/api/customer/licenses/${licenseId}/activations/${activationId}/revoke`);
379
+ await this.api.authenticatedFetch(`/api/customer/licenses/${licenseId}/activations/${activationId}/revoke`, "POST");
380
380
  }
381
381
  };
382
382
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@moonbase.sh/storefront-api",
3
3
  "type": "module",
4
- "version": "0.1.88",
4
+ "version": "0.1.90",
5
5
  "description": "Package to let you build storefronts with Moonbase.sh as payment and delivery provider",
6
6
  "author": "Tobias Lønnerød Madsen <m@dsen.tv>",
7
7
  "license": "MIT",