@moonbase.sh/storefront-api
Advanced tools
Comparing version 0.2.109 to 0.2.112
@@ -145,2 +145,7 @@ var __defProp = Object.defineProperty; | ||
// src/activationRequests/models.ts | ||
var ActivationRequestFulfillmentType = /* @__PURE__ */ ((ActivationRequestFulfillmentType2) => { | ||
ActivationRequestFulfillmentType2["License"] = "License"; | ||
ActivationRequestFulfillmentType2["Trial"] = "Trial"; | ||
return ActivationRequestFulfillmentType2; | ||
})(ActivationRequestFulfillmentType || {}); | ||
var ActivationRequestStatus = /* @__PURE__ */ ((ActivationRequestStatus2) => { | ||
@@ -159,2 +164,3 @@ ActivationRequestStatus2["Requested"] = "Requested"; | ||
product: storefrontProductSchema, | ||
fulfillmentType: z4.nativeEnum(ActivationRequestFulfillmentType).optional(), | ||
trialEligibility: z4.object({ | ||
@@ -202,5 +208,2 @@ eligible: z4.boolean(), | ||
// src/utils/problemHandler.ts | ||
import { z as z6 } from "zod"; | ||
// src/utils/errors.ts | ||
@@ -245,2 +248,3 @@ var NotAuthorizedError = class extends Error { | ||
// src/utils/problemHandler.ts | ||
import { z as z6 } from "zod"; | ||
var problemDetailsSchema = z6.object({ | ||
@@ -346,3 +350,3 @@ type: z6.string(), | ||
this.tokenStore.setUser(user); | ||
return user; | ||
return userSchema.parse(user); | ||
} catch (err) { | ||
@@ -366,3 +370,3 @@ console.warn("Could not sign in user", { email, response, err }); | ||
this.tokenStore.setUser(response.data); | ||
return response.data; | ||
return userSchema.parse(response.data); | ||
} | ||
@@ -957,2 +961,3 @@ async update(name, email, emailConfirmationToken, communicationPreferences) { | ||
ActivationMethod, | ||
ActivationRequestFulfillmentType, | ||
ActivationRequestStatus, | ||
@@ -959,0 +964,0 @@ ActivationStatus, |
{ | ||
"name": "@moonbase.sh/storefront-api", | ||
"type": "module", | ||
"version": "0.2.109", | ||
"version": "0.2.112", | ||
"description": "Package to let you build storefronts with Moonbase.sh as payment and delivery provider", | ||
@@ -6,0 +6,0 @@ "author": "Tobias Lønnerød Madsen <m@dsen.tv>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
903523
13440