@moonbase.sh/storefront-api 2.1.0 → 2.3.0

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.js CHANGED
@@ -105,7 +105,13 @@ var pricingVariationSchema = z.object({
105
105
  pricingTiers: z.array(pricingTierSchema).nullish()
106
106
  });
107
107
  var rawPropertyValueSchema = z.lazy(
108
- () => z.union([z.string(), z.number(), z.boolean(), z.record(rawPropertyValueSchema)])
108
+ () => z.union([
109
+ z.string(),
110
+ z.number(),
111
+ z.boolean(),
112
+ z.record(rawPropertyValueSchema),
113
+ z.array(rawPropertyValueSchema)
114
+ ])
109
115
  );
110
116
  function paged(itemSchema) {
111
117
  return z.object({
@@ -143,6 +149,15 @@ var Platform = /* @__PURE__ */ ((Platform2) => {
143
149
  Platform2["Android"] = "Android";
144
150
  return Platform2;
145
151
  })(Platform || {});
152
+ var Architecture = /* @__PURE__ */ ((Architecture2) => {
153
+ Architecture2["Unknown"] = "Unknown";
154
+ Architecture2["Universal"] = "Universal";
155
+ Architecture2["X86"] = "X86";
156
+ Architecture2["X64"] = "X64";
157
+ Architecture2["Arm"] = "Arm";
158
+ Architecture2["Arm64"] = "Arm64";
159
+ return Architecture2;
160
+ })(Architecture || {});
146
161
 
147
162
  // src/inventory/products/schemas.ts
148
163
  var manifestSchema = z2.object({
@@ -156,6 +171,7 @@ var downloadSchema = z2.object({
156
171
  name: z2.string(),
157
172
  key: z2.string(),
158
173
  platform: z2.nativeEnum(Platform),
174
+ arch: z2.nativeEnum(Architecture).nullish(),
159
175
  size: z2.number(),
160
176
  path: z2.string().nullable(),
161
177
  manifest: manifestSchema.optional()
@@ -1682,6 +1698,7 @@ export {
1682
1698
  ActivationRequestFulfillmentType,
1683
1699
  ActivationRequestStatus,
1684
1700
  ActivationStatus,
1701
+ Architecture,
1685
1702
  ConnectableAccountProvider,
1686
1703
  ConsoleLogger,
1687
1704
  CycleLength,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@moonbase.sh/storefront-api",
3
3
  "type": "module",
4
- "version": "2.1.0",
4
+ "version": "2.3.0",
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",