@moonbase.sh/storefront-api 1.0.19 → 1.0.20
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 +11 -2
- package/dist/index.d.cts +54 -2
- package/dist/index.d.ts +54 -2
- package/dist/index.js +11 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -69,7 +69,8 @@ __export(schemas_exports2, {
|
|
|
69
69
|
storefrontBundleSchema: () => storefrontBundleSchema,
|
|
70
70
|
storefrontOfferSchema: () => storefrontOfferSchema,
|
|
71
71
|
storefrontProductSchema: () => storefrontProductSchema,
|
|
72
|
-
storefrontSchema: () => storefrontSchema
|
|
72
|
+
storefrontSchema: () => storefrontSchema,
|
|
73
|
+
taxEstimateSchema: () => taxEstimateSchema
|
|
73
74
|
});
|
|
74
75
|
var import_zod3 = require("zod");
|
|
75
76
|
|
|
@@ -274,6 +275,12 @@ var storefrontOfferSchema = import_zod3.z.object({
|
|
|
274
275
|
condition: offerConditionSchema,
|
|
275
276
|
discount: discountSchema
|
|
276
277
|
});
|
|
278
|
+
var taxEstimateSchema = import_zod3.z.object({
|
|
279
|
+
rate: import_zod3.z.number(),
|
|
280
|
+
mode: import_zod3.z.enum(["Exclusive", "Inclusive"]),
|
|
281
|
+
countryCode: import_zod3.z.string(),
|
|
282
|
+
region: import_zod3.z.string().optional()
|
|
283
|
+
});
|
|
277
284
|
var storefrontSchema = import_zod3.z.object({
|
|
278
285
|
suggestedCurrency: import_zod3.z.string(),
|
|
279
286
|
// Enabled currencies need to be optional since we may still have old, cached representations in browsers
|
|
@@ -281,7 +288,9 @@ var storefrontSchema = import_zod3.z.object({
|
|
|
281
288
|
products: storefrontProductSchema.array(),
|
|
282
289
|
bundles: storefrontBundleSchema.array(),
|
|
283
290
|
// Offers need to be optional since we may still have old, cached representations in browsers
|
|
284
|
-
offers: storefrontOfferSchema.array().optional()
|
|
291
|
+
offers: storefrontOfferSchema.array().optional(),
|
|
292
|
+
// Depending on circumstances, we may have a tax estimate available
|
|
293
|
+
estimatedTax: taxEstimateSchema.optional()
|
|
285
294
|
});
|
|
286
295
|
|
|
287
296
|
// src/activationRequests/models.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -20477,6 +20477,12 @@ declare class StorefrontEndpoints {
|
|
|
20477
20477
|
relevantItemVariations: Record<string, string[]>;
|
|
20478
20478
|
};
|
|
20479
20479
|
}[] | undefined;
|
|
20480
|
+
estimatedTax?: {
|
|
20481
|
+
countryCode: string;
|
|
20482
|
+
mode: "Exclusive" | "Inclusive";
|
|
20483
|
+
rate: number;
|
|
20484
|
+
region?: string | undefined;
|
|
20485
|
+
} | undefined;
|
|
20480
20486
|
}>;
|
|
20481
20487
|
}
|
|
20482
20488
|
|
|
@@ -29919,6 +29925,22 @@ declare const storefrontOfferSchema: z.ZodObject<{
|
|
|
29919
29925
|
relevantItemVariations: Record<string, string[]>;
|
|
29920
29926
|
};
|
|
29921
29927
|
}>;
|
|
29928
|
+
declare const taxEstimateSchema: z.ZodObject<{
|
|
29929
|
+
rate: z.ZodNumber;
|
|
29930
|
+
mode: z.ZodEnum<["Exclusive", "Inclusive"]>;
|
|
29931
|
+
countryCode: z.ZodString;
|
|
29932
|
+
region: z.ZodOptional<z.ZodString>;
|
|
29933
|
+
}, "strip", z.ZodTypeAny, {
|
|
29934
|
+
countryCode: string;
|
|
29935
|
+
mode: "Exclusive" | "Inclusive";
|
|
29936
|
+
rate: number;
|
|
29937
|
+
region?: string | undefined;
|
|
29938
|
+
}, {
|
|
29939
|
+
countryCode: string;
|
|
29940
|
+
mode: "Exclusive" | "Inclusive";
|
|
29941
|
+
rate: number;
|
|
29942
|
+
region?: string | undefined;
|
|
29943
|
+
}>;
|
|
29922
29944
|
declare const storefrontSchema: z.ZodObject<{
|
|
29923
29945
|
suggestedCurrency: z.ZodString;
|
|
29924
29946
|
enabledCurrencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -36395,6 +36417,22 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
36395
36417
|
relevantItemVariations: Record<string, string[]>;
|
|
36396
36418
|
};
|
|
36397
36419
|
}>, "many">>;
|
|
36420
|
+
estimatedTax: z.ZodOptional<z.ZodObject<{
|
|
36421
|
+
rate: z.ZodNumber;
|
|
36422
|
+
mode: z.ZodEnum<["Exclusive", "Inclusive"]>;
|
|
36423
|
+
countryCode: z.ZodString;
|
|
36424
|
+
region: z.ZodOptional<z.ZodString>;
|
|
36425
|
+
}, "strip", z.ZodTypeAny, {
|
|
36426
|
+
countryCode: string;
|
|
36427
|
+
mode: "Exclusive" | "Inclusive";
|
|
36428
|
+
rate: number;
|
|
36429
|
+
region?: string | undefined;
|
|
36430
|
+
}, {
|
|
36431
|
+
countryCode: string;
|
|
36432
|
+
mode: "Exclusive" | "Inclusive";
|
|
36433
|
+
rate: number;
|
|
36434
|
+
region?: string | undefined;
|
|
36435
|
+
}>>;
|
|
36398
36436
|
}, "strip", z.ZodTypeAny, {
|
|
36399
36437
|
products: {
|
|
36400
36438
|
id: string;
|
|
@@ -37227,6 +37265,12 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
37227
37265
|
relevantItemVariations: Record<string, string[]>;
|
|
37228
37266
|
};
|
|
37229
37267
|
}[] | undefined;
|
|
37268
|
+
estimatedTax?: {
|
|
37269
|
+
countryCode: string;
|
|
37270
|
+
mode: "Exclusive" | "Inclusive";
|
|
37271
|
+
rate: number;
|
|
37272
|
+
region?: string | undefined;
|
|
37273
|
+
} | undefined;
|
|
37230
37274
|
}, {
|
|
37231
37275
|
products: {
|
|
37232
37276
|
id: string;
|
|
@@ -38059,6 +38103,12 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
38059
38103
|
relevantItemVariations: Record<string, string[]>;
|
|
38060
38104
|
};
|
|
38061
38105
|
}[] | undefined;
|
|
38106
|
+
estimatedTax?: {
|
|
38107
|
+
countryCode: string;
|
|
38108
|
+
mode: "Exclusive" | "Inclusive";
|
|
38109
|
+
rate: number;
|
|
38110
|
+
region?: string | undefined;
|
|
38111
|
+
} | undefined;
|
|
38062
38112
|
}>;
|
|
38063
38113
|
|
|
38064
38114
|
declare const schemas$1_offerConditionSchema: typeof offerConditionSchema;
|
|
@@ -38066,8 +38116,9 @@ declare const schemas$1_storefrontBundleSchema: typeof storefrontBundleSchema;
|
|
|
38066
38116
|
declare const schemas$1_storefrontOfferSchema: typeof storefrontOfferSchema;
|
|
38067
38117
|
declare const schemas$1_storefrontProductSchema: typeof storefrontProductSchema;
|
|
38068
38118
|
declare const schemas$1_storefrontSchema: typeof storefrontSchema;
|
|
38119
|
+
declare const schemas$1_taxEstimateSchema: typeof taxEstimateSchema;
|
|
38069
38120
|
declare namespace schemas$1 {
|
|
38070
|
-
export { schemas$1_offerConditionSchema as offerConditionSchema, schemas$1_storefrontBundleSchema as storefrontBundleSchema, schemas$1_storefrontOfferSchema as storefrontOfferSchema, schemas$1_storefrontProductSchema as storefrontProductSchema, schemas$1_storefrontSchema as storefrontSchema };
|
|
38121
|
+
export { schemas$1_offerConditionSchema as offerConditionSchema, schemas$1_storefrontBundleSchema as storefrontBundleSchema, schemas$1_storefrontOfferSchema as storefrontOfferSchema, schemas$1_storefrontProductSchema as storefrontProductSchema, schemas$1_storefrontSchema as storefrontSchema, schemas$1_taxEstimateSchema as taxEstimateSchema };
|
|
38071
38122
|
}
|
|
38072
38123
|
|
|
38073
38124
|
declare namespace schemas {
|
|
@@ -38079,6 +38130,7 @@ type StorefrontBundle = z.infer<typeof storefrontBundleSchema>;
|
|
|
38079
38130
|
type OfferCondition = z.infer<typeof offerConditionSchema>;
|
|
38080
38131
|
type StorefrontOffer = z.infer<typeof storefrontOfferSchema>;
|
|
38081
38132
|
type Storefront = z.infer<typeof storefrontSchema>;
|
|
38133
|
+
type TaxEstimate = z.infer<typeof taxEstimateSchema>;
|
|
38082
38134
|
|
|
38083
38135
|
declare class NotAuthorizedError extends Error {
|
|
38084
38136
|
constructor();
|
|
@@ -38159,4 +38211,4 @@ declare class MoonbaseClient {
|
|
|
38159
38211
|
orders: OrderEndpoints;
|
|
38160
38212
|
}
|
|
38161
38213
|
|
|
38162
|
-
export { type Activation, ActivationMethod, type ActivationRequest, ActivationRequestFulfillmentType, ActivationRequestStatus, ActivationStatus, type Address, type BundleLineItem, type CommunicationPreferences, type CompletedOrder, ConnectableAccountProvider, type ConnectedAccount, ConsoleLogger, CycleLength, type Discount, DiscountUtils, type Download, type DownloadManifest, type ILogger, type IRecurrence, type IStore, type ITokenStore, type Identity, InMemoryStore, type License, LicenseStatus, type LineItem, LocalStorageStore, LogLevel, MarketingConsentType, type MilestoneProgress, type Money, type MoneyCollection, MoneyCollectionUtils, MoonbaseApi, MoonbaseClient, type MoonbaseConfiguration, MoonbaseError, NotAuthenticatedError, NotAuthorizedError, NotFoundError, type OfferCondition, OfferUtils, type OpenOrder, type Order, OrderStatus, type OwnedProduct, type Page, Platform, type PricingTier, type PricingVariation, type ProblemDetails, type ProductLineItem, type Quantifiable, type RawPropertyObject, type RawPropertyValue, type SingleOrMultiple, type Storefront, type StorefrontBundle, type StorefrontOffer, type StorefrontProduct, type Subscription, SubscriptionStatus, TokenStore, type UrchinTrackingModule, type User, type UserAccountConfirmed, type Vendor, type Voucher, objectToQuery, problemDetailsSchema, schemas, utmToObject };
|
|
38214
|
+
export { type Activation, ActivationMethod, type ActivationRequest, ActivationRequestFulfillmentType, ActivationRequestStatus, ActivationStatus, type Address, type BundleLineItem, type CommunicationPreferences, type CompletedOrder, ConnectableAccountProvider, type ConnectedAccount, ConsoleLogger, CycleLength, type Discount, DiscountUtils, type Download, type DownloadManifest, type ILogger, type IRecurrence, type IStore, type ITokenStore, type Identity, InMemoryStore, type License, LicenseStatus, type LineItem, LocalStorageStore, LogLevel, MarketingConsentType, type MilestoneProgress, type Money, type MoneyCollection, MoneyCollectionUtils, MoonbaseApi, MoonbaseClient, type MoonbaseConfiguration, MoonbaseError, NotAuthenticatedError, NotAuthorizedError, NotFoundError, type OfferCondition, OfferUtils, type OpenOrder, type Order, OrderStatus, type OwnedProduct, type Page, Platform, type PricingTier, type PricingVariation, type ProblemDetails, type ProductLineItem, type Quantifiable, type RawPropertyObject, type RawPropertyValue, type SingleOrMultiple, type Storefront, type StorefrontBundle, type StorefrontOffer, type StorefrontProduct, type Subscription, SubscriptionStatus, type TaxEstimate, TokenStore, type UrchinTrackingModule, type User, type UserAccountConfirmed, type Vendor, type Voucher, objectToQuery, problemDetailsSchema, schemas, utmToObject };
|
package/dist/index.d.ts
CHANGED
|
@@ -20477,6 +20477,12 @@ declare class StorefrontEndpoints {
|
|
|
20477
20477
|
relevantItemVariations: Record<string, string[]>;
|
|
20478
20478
|
};
|
|
20479
20479
|
}[] | undefined;
|
|
20480
|
+
estimatedTax?: {
|
|
20481
|
+
countryCode: string;
|
|
20482
|
+
mode: "Exclusive" | "Inclusive";
|
|
20483
|
+
rate: number;
|
|
20484
|
+
region?: string | undefined;
|
|
20485
|
+
} | undefined;
|
|
20480
20486
|
}>;
|
|
20481
20487
|
}
|
|
20482
20488
|
|
|
@@ -29919,6 +29925,22 @@ declare const storefrontOfferSchema: z.ZodObject<{
|
|
|
29919
29925
|
relevantItemVariations: Record<string, string[]>;
|
|
29920
29926
|
};
|
|
29921
29927
|
}>;
|
|
29928
|
+
declare const taxEstimateSchema: z.ZodObject<{
|
|
29929
|
+
rate: z.ZodNumber;
|
|
29930
|
+
mode: z.ZodEnum<["Exclusive", "Inclusive"]>;
|
|
29931
|
+
countryCode: z.ZodString;
|
|
29932
|
+
region: z.ZodOptional<z.ZodString>;
|
|
29933
|
+
}, "strip", z.ZodTypeAny, {
|
|
29934
|
+
countryCode: string;
|
|
29935
|
+
mode: "Exclusive" | "Inclusive";
|
|
29936
|
+
rate: number;
|
|
29937
|
+
region?: string | undefined;
|
|
29938
|
+
}, {
|
|
29939
|
+
countryCode: string;
|
|
29940
|
+
mode: "Exclusive" | "Inclusive";
|
|
29941
|
+
rate: number;
|
|
29942
|
+
region?: string | undefined;
|
|
29943
|
+
}>;
|
|
29922
29944
|
declare const storefrontSchema: z.ZodObject<{
|
|
29923
29945
|
suggestedCurrency: z.ZodString;
|
|
29924
29946
|
enabledCurrencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -36395,6 +36417,22 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
36395
36417
|
relevantItemVariations: Record<string, string[]>;
|
|
36396
36418
|
};
|
|
36397
36419
|
}>, "many">>;
|
|
36420
|
+
estimatedTax: z.ZodOptional<z.ZodObject<{
|
|
36421
|
+
rate: z.ZodNumber;
|
|
36422
|
+
mode: z.ZodEnum<["Exclusive", "Inclusive"]>;
|
|
36423
|
+
countryCode: z.ZodString;
|
|
36424
|
+
region: z.ZodOptional<z.ZodString>;
|
|
36425
|
+
}, "strip", z.ZodTypeAny, {
|
|
36426
|
+
countryCode: string;
|
|
36427
|
+
mode: "Exclusive" | "Inclusive";
|
|
36428
|
+
rate: number;
|
|
36429
|
+
region?: string | undefined;
|
|
36430
|
+
}, {
|
|
36431
|
+
countryCode: string;
|
|
36432
|
+
mode: "Exclusive" | "Inclusive";
|
|
36433
|
+
rate: number;
|
|
36434
|
+
region?: string | undefined;
|
|
36435
|
+
}>>;
|
|
36398
36436
|
}, "strip", z.ZodTypeAny, {
|
|
36399
36437
|
products: {
|
|
36400
36438
|
id: string;
|
|
@@ -37227,6 +37265,12 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
37227
37265
|
relevantItemVariations: Record<string, string[]>;
|
|
37228
37266
|
};
|
|
37229
37267
|
}[] | undefined;
|
|
37268
|
+
estimatedTax?: {
|
|
37269
|
+
countryCode: string;
|
|
37270
|
+
mode: "Exclusive" | "Inclusive";
|
|
37271
|
+
rate: number;
|
|
37272
|
+
region?: string | undefined;
|
|
37273
|
+
} | undefined;
|
|
37230
37274
|
}, {
|
|
37231
37275
|
products: {
|
|
37232
37276
|
id: string;
|
|
@@ -38059,6 +38103,12 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
38059
38103
|
relevantItemVariations: Record<string, string[]>;
|
|
38060
38104
|
};
|
|
38061
38105
|
}[] | undefined;
|
|
38106
|
+
estimatedTax?: {
|
|
38107
|
+
countryCode: string;
|
|
38108
|
+
mode: "Exclusive" | "Inclusive";
|
|
38109
|
+
rate: number;
|
|
38110
|
+
region?: string | undefined;
|
|
38111
|
+
} | undefined;
|
|
38062
38112
|
}>;
|
|
38063
38113
|
|
|
38064
38114
|
declare const schemas$1_offerConditionSchema: typeof offerConditionSchema;
|
|
@@ -38066,8 +38116,9 @@ declare const schemas$1_storefrontBundleSchema: typeof storefrontBundleSchema;
|
|
|
38066
38116
|
declare const schemas$1_storefrontOfferSchema: typeof storefrontOfferSchema;
|
|
38067
38117
|
declare const schemas$1_storefrontProductSchema: typeof storefrontProductSchema;
|
|
38068
38118
|
declare const schemas$1_storefrontSchema: typeof storefrontSchema;
|
|
38119
|
+
declare const schemas$1_taxEstimateSchema: typeof taxEstimateSchema;
|
|
38069
38120
|
declare namespace schemas$1 {
|
|
38070
|
-
export { schemas$1_offerConditionSchema as offerConditionSchema, schemas$1_storefrontBundleSchema as storefrontBundleSchema, schemas$1_storefrontOfferSchema as storefrontOfferSchema, schemas$1_storefrontProductSchema as storefrontProductSchema, schemas$1_storefrontSchema as storefrontSchema };
|
|
38121
|
+
export { schemas$1_offerConditionSchema as offerConditionSchema, schemas$1_storefrontBundleSchema as storefrontBundleSchema, schemas$1_storefrontOfferSchema as storefrontOfferSchema, schemas$1_storefrontProductSchema as storefrontProductSchema, schemas$1_storefrontSchema as storefrontSchema, schemas$1_taxEstimateSchema as taxEstimateSchema };
|
|
38071
38122
|
}
|
|
38072
38123
|
|
|
38073
38124
|
declare namespace schemas {
|
|
@@ -38079,6 +38130,7 @@ type StorefrontBundle = z.infer<typeof storefrontBundleSchema>;
|
|
|
38079
38130
|
type OfferCondition = z.infer<typeof offerConditionSchema>;
|
|
38080
38131
|
type StorefrontOffer = z.infer<typeof storefrontOfferSchema>;
|
|
38081
38132
|
type Storefront = z.infer<typeof storefrontSchema>;
|
|
38133
|
+
type TaxEstimate = z.infer<typeof taxEstimateSchema>;
|
|
38082
38134
|
|
|
38083
38135
|
declare class NotAuthorizedError extends Error {
|
|
38084
38136
|
constructor();
|
|
@@ -38159,4 +38211,4 @@ declare class MoonbaseClient {
|
|
|
38159
38211
|
orders: OrderEndpoints;
|
|
38160
38212
|
}
|
|
38161
38213
|
|
|
38162
|
-
export { type Activation, ActivationMethod, type ActivationRequest, ActivationRequestFulfillmentType, ActivationRequestStatus, ActivationStatus, type Address, type BundleLineItem, type CommunicationPreferences, type CompletedOrder, ConnectableAccountProvider, type ConnectedAccount, ConsoleLogger, CycleLength, type Discount, DiscountUtils, type Download, type DownloadManifest, type ILogger, type IRecurrence, type IStore, type ITokenStore, type Identity, InMemoryStore, type License, LicenseStatus, type LineItem, LocalStorageStore, LogLevel, MarketingConsentType, type MilestoneProgress, type Money, type MoneyCollection, MoneyCollectionUtils, MoonbaseApi, MoonbaseClient, type MoonbaseConfiguration, MoonbaseError, NotAuthenticatedError, NotAuthorizedError, NotFoundError, type OfferCondition, OfferUtils, type OpenOrder, type Order, OrderStatus, type OwnedProduct, type Page, Platform, type PricingTier, type PricingVariation, type ProblemDetails, type ProductLineItem, type Quantifiable, type RawPropertyObject, type RawPropertyValue, type SingleOrMultiple, type Storefront, type StorefrontBundle, type StorefrontOffer, type StorefrontProduct, type Subscription, SubscriptionStatus, TokenStore, type UrchinTrackingModule, type User, type UserAccountConfirmed, type Vendor, type Voucher, objectToQuery, problemDetailsSchema, schemas, utmToObject };
|
|
38214
|
+
export { type Activation, ActivationMethod, type ActivationRequest, ActivationRequestFulfillmentType, ActivationRequestStatus, ActivationStatus, type Address, type BundleLineItem, type CommunicationPreferences, type CompletedOrder, ConnectableAccountProvider, type ConnectedAccount, ConsoleLogger, CycleLength, type Discount, DiscountUtils, type Download, type DownloadManifest, type ILogger, type IRecurrence, type IStore, type ITokenStore, type Identity, InMemoryStore, type License, LicenseStatus, type LineItem, LocalStorageStore, LogLevel, MarketingConsentType, type MilestoneProgress, type Money, type MoneyCollection, MoneyCollectionUtils, MoonbaseApi, MoonbaseClient, type MoonbaseConfiguration, MoonbaseError, NotAuthenticatedError, NotAuthorizedError, NotFoundError, type OfferCondition, OfferUtils, type OpenOrder, type Order, OrderStatus, type OwnedProduct, type Page, Platform, type PricingTier, type PricingVariation, type ProblemDetails, type ProductLineItem, type Quantifiable, type RawPropertyObject, type RawPropertyValue, type SingleOrMultiple, type Storefront, type StorefrontBundle, type StorefrontOffer, type StorefrontProduct, type Subscription, SubscriptionStatus, type TaxEstimate, TokenStore, type UrchinTrackingModule, type User, type UserAccountConfirmed, type Vendor, type Voucher, objectToQuery, problemDetailsSchema, schemas, utmToObject };
|
package/dist/index.js
CHANGED
|
@@ -21,7 +21,8 @@ __export(schemas_exports2, {
|
|
|
21
21
|
storefrontBundleSchema: () => storefrontBundleSchema,
|
|
22
22
|
storefrontOfferSchema: () => storefrontOfferSchema,
|
|
23
23
|
storefrontProductSchema: () => storefrontProductSchema,
|
|
24
|
-
storefrontSchema: () => storefrontSchema
|
|
24
|
+
storefrontSchema: () => storefrontSchema,
|
|
25
|
+
taxEstimateSchema: () => taxEstimateSchema
|
|
25
26
|
});
|
|
26
27
|
import { z as z3 } from "zod";
|
|
27
28
|
|
|
@@ -226,6 +227,12 @@ var storefrontOfferSchema = z3.object({
|
|
|
226
227
|
condition: offerConditionSchema,
|
|
227
228
|
discount: discountSchema
|
|
228
229
|
});
|
|
230
|
+
var taxEstimateSchema = z3.object({
|
|
231
|
+
rate: z3.number(),
|
|
232
|
+
mode: z3.enum(["Exclusive", "Inclusive"]),
|
|
233
|
+
countryCode: z3.string(),
|
|
234
|
+
region: z3.string().optional()
|
|
235
|
+
});
|
|
229
236
|
var storefrontSchema = z3.object({
|
|
230
237
|
suggestedCurrency: z3.string(),
|
|
231
238
|
// Enabled currencies need to be optional since we may still have old, cached representations in browsers
|
|
@@ -233,7 +240,9 @@ var storefrontSchema = z3.object({
|
|
|
233
240
|
products: storefrontProductSchema.array(),
|
|
234
241
|
bundles: storefrontBundleSchema.array(),
|
|
235
242
|
// Offers need to be optional since we may still have old, cached representations in browsers
|
|
236
|
-
offers: storefrontOfferSchema.array().optional()
|
|
243
|
+
offers: storefrontOfferSchema.array().optional(),
|
|
244
|
+
// Depending on circumstances, we may have a tax estimate available
|
|
245
|
+
estimatedTax: taxEstimateSchema.optional()
|
|
237
246
|
});
|
|
238
247
|
|
|
239
248
|
// src/activationRequests/models.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbase.sh/storefront-api",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.20",
|
|
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",
|