@moonbase.sh/storefront-api 0.4.64 → 0.4.66
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 -0
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +7 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -41,6 +41,7 @@ __export(index_exports, {
|
|
|
41
41
|
LicenseStatus: () => LicenseStatus,
|
|
42
42
|
LocalStorageStore: () => LocalStorageStore,
|
|
43
43
|
LogLevel: () => LogLevel,
|
|
44
|
+
MarketingConsentType: () => MarketingConsentType,
|
|
44
45
|
MoneyCollectionUtils: () => MoneyCollectionUtils,
|
|
45
46
|
MoonbaseApi: () => MoonbaseApi,
|
|
46
47
|
MoonbaseClient: () => MoonbaseClient,
|
|
@@ -93,6 +94,12 @@ var CycleLength = /* @__PURE__ */ ((CycleLength2) => {
|
|
|
93
94
|
CycleLength2["Yearly"] = "Yearly";
|
|
94
95
|
return CycleLength2;
|
|
95
96
|
})(CycleLength || {});
|
|
97
|
+
var MarketingConsentType = /* @__PURE__ */ ((MarketingConsentType2) => {
|
|
98
|
+
MarketingConsentType2["OptIn"] = "OptIn";
|
|
99
|
+
MarketingConsentType2["OptedInByDefault"] = "OptedInByDefault";
|
|
100
|
+
MarketingConsentType2["OptOut"] = "OptOut";
|
|
101
|
+
return MarketingConsentType2;
|
|
102
|
+
})(MarketingConsentType || {});
|
|
96
103
|
function utmToObject(utm) {
|
|
97
104
|
return Object.entries({
|
|
98
105
|
utm_source: utm == null ? void 0 : utm.source,
|
|
@@ -1537,6 +1544,7 @@ var MoonbaseClient = class {
|
|
|
1537
1544
|
LicenseStatus,
|
|
1538
1545
|
LocalStorageStore,
|
|
1539
1546
|
LogLevel,
|
|
1547
|
+
MarketingConsentType,
|
|
1540
1548
|
MoneyCollectionUtils,
|
|
1541
1549
|
MoonbaseApi,
|
|
1542
1550
|
MoonbaseClient,
|
package/dist/index.d.cts
CHANGED
|
@@ -1755,6 +1755,11 @@ declare enum CycleLength {
|
|
|
1755
1755
|
}
|
|
1756
1756
|
type IRecurrence = z.infer<typeof recurrenceSchema>;
|
|
1757
1757
|
type Money = z.infer<typeof moneySchema>;
|
|
1758
|
+
declare enum MarketingConsentType {
|
|
1759
|
+
OptIn = "OptIn",
|
|
1760
|
+
OptedInByDefault = "OptedInByDefault",
|
|
1761
|
+
OptOut = "OptOut"
|
|
1762
|
+
}
|
|
1758
1763
|
/**
|
|
1759
1764
|
* A money collection is a dict of currency to amount
|
|
1760
1765
|
*/
|
|
@@ -37820,4 +37825,4 @@ declare class MoonbaseClient {
|
|
|
37820
37825
|
orders: OrderEndpoints;
|
|
37821
37826
|
}
|
|
37822
37827
|
|
|
37823
|
-
export { type Activation, ActivationMethod, type ActivationRequest, ActivationRequestFulfillmentType, ActivationRequestStatus, ActivationStatus, type Address, type BundleLineItem, type CommunicationPreferences, type CompletedOrder, 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, 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 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 };
|
|
37828
|
+
export { type Activation, ActivationMethod, type ActivationRequest, ActivationRequestFulfillmentType, ActivationRequestStatus, ActivationStatus, type Address, type BundleLineItem, type CommunicationPreferences, type CompletedOrder, 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 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1755,6 +1755,11 @@ declare enum CycleLength {
|
|
|
1755
1755
|
}
|
|
1756
1756
|
type IRecurrence = z.infer<typeof recurrenceSchema>;
|
|
1757
1757
|
type Money = z.infer<typeof moneySchema>;
|
|
1758
|
+
declare enum MarketingConsentType {
|
|
1759
|
+
OptIn = "OptIn",
|
|
1760
|
+
OptedInByDefault = "OptedInByDefault",
|
|
1761
|
+
OptOut = "OptOut"
|
|
1762
|
+
}
|
|
1758
1763
|
/**
|
|
1759
1764
|
* A money collection is a dict of currency to amount
|
|
1760
1765
|
*/
|
|
@@ -37820,4 +37825,4 @@ declare class MoonbaseClient {
|
|
|
37820
37825
|
orders: OrderEndpoints;
|
|
37821
37826
|
}
|
|
37822
37827
|
|
|
37823
|
-
export { type Activation, ActivationMethod, type ActivationRequest, ActivationRequestFulfillmentType, ActivationRequestStatus, ActivationStatus, type Address, type BundleLineItem, type CommunicationPreferences, type CompletedOrder, 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, 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 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 };
|
|
37828
|
+
export { type Activation, ActivationMethod, type ActivationRequest, ActivationRequestFulfillmentType, ActivationRequestStatus, ActivationStatus, type Address, type BundleLineItem, type CommunicationPreferences, type CompletedOrder, 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 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 };
|
package/dist/index.js
CHANGED
|
@@ -37,6 +37,12 @@ var CycleLength = /* @__PURE__ */ ((CycleLength2) => {
|
|
|
37
37
|
CycleLength2["Yearly"] = "Yearly";
|
|
38
38
|
return CycleLength2;
|
|
39
39
|
})(CycleLength || {});
|
|
40
|
+
var MarketingConsentType = /* @__PURE__ */ ((MarketingConsentType2) => {
|
|
41
|
+
MarketingConsentType2["OptIn"] = "OptIn";
|
|
42
|
+
MarketingConsentType2["OptedInByDefault"] = "OptedInByDefault";
|
|
43
|
+
MarketingConsentType2["OptOut"] = "OptOut";
|
|
44
|
+
return MarketingConsentType2;
|
|
45
|
+
})(MarketingConsentType || {});
|
|
40
46
|
function utmToObject(utm) {
|
|
41
47
|
return Object.entries({
|
|
42
48
|
utm_source: utm == null ? void 0 : utm.source,
|
|
@@ -1480,6 +1486,7 @@ export {
|
|
|
1480
1486
|
LicenseStatus,
|
|
1481
1487
|
LocalStorageStore,
|
|
1482
1488
|
LogLevel,
|
|
1489
|
+
MarketingConsentType,
|
|
1483
1490
|
MoneyCollectionUtils,
|
|
1484
1491
|
MoonbaseApi,
|
|
1485
1492
|
MoonbaseClient,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbase.sh/storefront-api",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.66",
|
|
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",
|