@moonbase.sh/storefront-api 1.0.17 → 1.0.19
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 +8 -2
- package/dist/index.d.cts +177 -2
- package/dist/index.d.ts +177 -2
- package/dist/index.js +8 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -151,6 +151,9 @@ var pricingVariationSchema = import_zod.z.object({
|
|
|
151
151
|
recurrence: recurrenceSchema,
|
|
152
152
|
pricingTiers: import_zod.z.array(pricingTierSchema).nullish()
|
|
153
153
|
});
|
|
154
|
+
var rawPropertyValueSchema = import_zod.z.lazy(
|
|
155
|
+
() => import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.boolean(), import_zod.z.record(rawPropertyValueSchema)])
|
|
156
|
+
);
|
|
154
157
|
function paged(itemSchema) {
|
|
155
158
|
return import_zod.z.object({
|
|
156
159
|
items: import_zod.z.array(itemSchema),
|
|
@@ -239,6 +242,7 @@ var storefrontProductSchema = import_zod3.z.object({
|
|
|
239
242
|
downloads: downloadSchema.array().optional(),
|
|
240
243
|
defaultVariation: pricingVariationSchema.optional(),
|
|
241
244
|
variations: pricingVariationSchema.array().optional(),
|
|
245
|
+
properties: import_zod3.z.record(rawPropertyValueSchema).nullish(),
|
|
242
246
|
type: import_zod3.z.string().optional().default("Product").pipe(import_zod3.z.literal("Product"))
|
|
243
247
|
});
|
|
244
248
|
var storefrontBundleSchema = import_zod3.z.object({
|
|
@@ -254,6 +258,7 @@ var storefrontBundleSchema = import_zod3.z.object({
|
|
|
254
258
|
})).array(),
|
|
255
259
|
defaultVariation: pricingVariationSchema.optional(),
|
|
256
260
|
variations: pricingVariationSchema.array().optional(),
|
|
261
|
+
properties: import_zod3.z.record(rawPropertyValueSchema).nullish(),
|
|
257
262
|
type: import_zod3.z.string().optional().default("Bundle").pipe(import_zod3.z.literal("Bundle"))
|
|
258
263
|
});
|
|
259
264
|
var cartContainsItemsConditionSchema = import_zod3.z.object({
|
|
@@ -438,7 +443,7 @@ var import_zod7 = require("zod");
|
|
|
438
443
|
|
|
439
444
|
// src/identity/models.ts
|
|
440
445
|
var ConnectableAccountProvider = /* @__PURE__ */ ((ConnectableAccountProvider2) => {
|
|
441
|
-
ConnectableAccountProvider2["
|
|
446
|
+
ConnectableAccountProvider2["iLok"] = "iLok";
|
|
442
447
|
return ConnectableAccountProvider2;
|
|
443
448
|
})(ConnectableAccountProvider || {});
|
|
444
449
|
|
|
@@ -456,7 +461,7 @@ var communicationPreferencesSchema = import_zod7.z.object({
|
|
|
456
461
|
// productUpdatesOptIn: z.boolean(), // TODO: Enable when relevant
|
|
457
462
|
});
|
|
458
463
|
var ilokConnectedAccountSchema = import_zod7.z.object({
|
|
459
|
-
provider: import_zod7.z.literal("
|
|
464
|
+
provider: import_zod7.z.literal("iLok" /* iLok */),
|
|
460
465
|
isConnected: import_zod7.z.boolean(),
|
|
461
466
|
pendingLicenseFulfillments: import_zod7.z.boolean(),
|
|
462
467
|
accountId: import_zod7.z.string().nullish()
|
|
@@ -673,6 +678,7 @@ var licenseSchema = import_zod8.z.object({
|
|
|
673
678
|
externalFulfillment: externalLicenseContent.optional(),
|
|
674
679
|
requiredConnectedAccount: import_zod8.z.nativeEnum(ConnectableAccountProvider).nullish(),
|
|
675
680
|
fulfillmentMessage: import_zod8.z.string().optional(),
|
|
681
|
+
properties: import_zod8.z.record(rawPropertyValueSchema).nullish(),
|
|
676
682
|
expiresAt: import_zod8.z.coerce.date().optional(),
|
|
677
683
|
createdAt: import_zod8.z.coerce.date()
|
|
678
684
|
});
|