@claspo/common 7.5.0-sp3 → 7.5.0-sp5
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/PrizePool.interface.d.ts
CHANGED
|
@@ -26,24 +26,24 @@ export declare enum PrizeOptionValueType {
|
|
|
26
26
|
}
|
|
27
27
|
export interface PrizeOptionConfigI {
|
|
28
28
|
imageUrl?: string;
|
|
29
|
+
codeType?: PrizeCodeType;
|
|
29
30
|
discountNodeId?: string;
|
|
30
31
|
shopify?: PrizeOptionShopifyConfigI;
|
|
31
32
|
}
|
|
33
|
+
export declare enum PrizeCodeType {
|
|
34
|
+
STATIC = "STATIC",
|
|
35
|
+
UNIQUE = "UNIQUE"
|
|
36
|
+
}
|
|
32
37
|
export interface PrizeOptionShopifyConfigI {
|
|
33
|
-
mode?: ShopifyPromoCodeMode;
|
|
34
38
|
discountClass?: string;
|
|
35
|
-
discountType
|
|
36
|
-
discountValue
|
|
39
|
+
discountType?: ShopifyDiscountType | null;
|
|
40
|
+
discountValue?: string | null;
|
|
37
41
|
startsAt?: string | null;
|
|
38
42
|
endsAt?: string | null;
|
|
39
43
|
shopifyAdminUrl?: string;
|
|
40
44
|
available?: boolean;
|
|
41
45
|
unavailableReason?: ShopifyPromoUnavailableReason;
|
|
42
46
|
}
|
|
43
|
-
export declare enum ShopifyPromoCodeMode {
|
|
44
|
-
STATIC = "STATIC",
|
|
45
|
-
UNIQUE = "UNIQUE"
|
|
46
|
-
}
|
|
47
47
|
export declare enum ShopifyDiscountType {
|
|
48
48
|
PERCENTAGE = "PERCENTAGE",
|
|
49
49
|
FIXED_AMOUNT = "FIXED_AMOUNT"
|
package/PrizePool.interface.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export var PrizeSourceType;!function(
|
|
1
|
+
export var PrizeSourceType;!function(e){e.MANUAL="MANUAL",e.SHOPIFY="SHOPIFY"}(PrizeSourceType||(PrizeSourceType={}));export var PrizeDistributionType;!function(e){e.PERCENT_CHANCE="PERCENT_CHANCE"}(PrizeDistributionType||(PrizeDistributionType={}));export var PrizeOptionValueType;!function(e){e.DISCOUNT_PERCENTAGE="DISCOUNT_PERCENTAGE",e.CUSTOM="CUSTOM",e.PROMOCODE="PROMOCODE"}(PrizeOptionValueType||(PrizeOptionValueType={}));export var PrizeCodeType;!function(e){e.STATIC="STATIC",e.UNIQUE="UNIQUE"}(PrizeCodeType||(PrizeCodeType={}));export var ShopifyDiscountType;!function(e){e.PERCENTAGE="PERCENTAGE",e.FIXED_AMOUNT="FIXED_AMOUNT"}(ShopifyDiscountType||(ShopifyDiscountType={}));export var ShopifyPromoUnavailableReason;!function(e){e.SHOPIFY_UNAVAILABLE="SHOPIFY_UNAVAILABLE",e.DISCOUNT_NOT_FOUND="DISCOUNT_NOT_FOUND",e.EXPIRED="EXPIRED",e.NOT_STARTED="NOT_STARTED",e.UNSUPPORTED_DISCOUNT="UNSUPPORTED_DISCOUNT"}(ShopifyPromoUnavailableReason||(ShopifyPromoUnavailableReason={}));
|
|
@@ -24,7 +24,6 @@ export interface WidgetInitConfigI {
|
|
|
24
24
|
actionFactoryClass?: any;
|
|
25
25
|
widgetId?: number;
|
|
26
26
|
prizePoolModels?: PrizePoolModelI[];
|
|
27
|
-
prizePoolIds?: string[];
|
|
28
27
|
bundledComponentClasses?: any[];
|
|
29
28
|
translations?: TranslationsI;
|
|
30
29
|
trackingService?: TrackingServiceI;
|