@wix/referral 1.0.17 → 1.0.18
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/referral",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"type-bundles"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@wix/referral_customers": "1.0.
|
|
21
|
+
"@wix/referral_customers": "1.0.8",
|
|
22
22
|
"@wix/referral_friends": "1.0.6",
|
|
23
23
|
"@wix/referral_programs": "1.0.8",
|
|
24
|
-
"@wix/referral_rewards": "1.0.
|
|
24
|
+
"@wix/referral_rewards": "1.0.7",
|
|
25
25
|
"@wix/referral_tracker": "1.0.11"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"fqdn": ""
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
-
"falconPackageHash": "
|
|
50
|
+
"falconPackageHash": "d51c39b89dfcb79fe47576a7cbd4cb0152eaa9801bc66a6f14af9f46"
|
|
51
51
|
}
|
|
@@ -2828,7 +2828,7 @@ declare enum Status$1 {
|
|
|
2828
2828
|
interface Coupon extends CouponDiscountTypeOptionsOneOf, CouponScopeOrMinSubtotalOneOf {
|
|
2829
2829
|
/** Options for fixed amount discount. */
|
|
2830
2830
|
fixedAmountOptions?: FixedAmountDiscount;
|
|
2831
|
-
/** Options for percentage
|
|
2831
|
+
/** Options for percentage discounts. */
|
|
2832
2832
|
percentageOptions?: PercentageDiscount;
|
|
2833
2833
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
2834
2834
|
minimumSubtotal?: number;
|
|
@@ -2868,7 +2868,7 @@ interface Coupon extends CouponDiscountTypeOptionsOneOf, CouponScopeOrMinSubtota
|
|
|
2868
2868
|
interface CouponDiscountTypeOptionsOneOf {
|
|
2869
2869
|
/** Options for fixed amount discount. */
|
|
2870
2870
|
fixedAmountOptions?: FixedAmountDiscount;
|
|
2871
|
-
/** Options for percentage
|
|
2871
|
+
/** Options for percentage discounts. */
|
|
2872
2872
|
percentageOptions?: PercentageDiscount;
|
|
2873
2873
|
}
|
|
2874
2874
|
/** @oneof */
|
|
@@ -2889,7 +2889,7 @@ declare enum DiscountType {
|
|
|
2889
2889
|
FREE_SHIPPING = "FREE_SHIPPING"
|
|
2890
2890
|
}
|
|
2891
2891
|
interface FixedAmountDiscount {
|
|
2892
|
-
/** Amount of discount as a fixed value. */
|
|
2892
|
+
/** Amount of the discount as a fixed value. */
|
|
2893
2893
|
amount?: number;
|
|
2894
2894
|
}
|
|
2895
2895
|
interface PercentageDiscount {
|
|
@@ -2899,7 +2899,7 @@ interface PercentageDiscount {
|
|
|
2899
2899
|
interface CouponScope {
|
|
2900
2900
|
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
2901
2901
|
namespace?: string;
|
|
2902
|
-
/** Coupon scope's applied group, for example
|
|
2902
|
+
/** Coupon scope's applied group, for example, Event or ticket in Wix Events. */
|
|
2903
2903
|
group?: Group;
|
|
2904
2904
|
}
|
|
2905
2905
|
interface Group {
|
|
@@ -3016,7 +3016,7 @@ interface ValidateReferralRewardRequest {
|
|
|
3016
3016
|
interface Reward extends RewardOptionsOneOf {
|
|
3017
3017
|
/** Options for coupon reward type. */
|
|
3018
3018
|
couponOptions?: Coupon;
|
|
3019
|
-
/** Options for Loyalty points reward type. */
|
|
3019
|
+
/** Options for the Loyalty points reward type. */
|
|
3020
3020
|
loyaltyPointsOptions?: LoyaltyPoints;
|
|
3021
3021
|
/** Type of the reward. */
|
|
3022
3022
|
type?: Type;
|
|
@@ -3025,7 +3025,7 @@ interface Reward extends RewardOptionsOneOf {
|
|
|
3025
3025
|
interface RewardOptionsOneOf {
|
|
3026
3026
|
/** Options for coupon reward type. */
|
|
3027
3027
|
couponOptions?: Coupon;
|
|
3028
|
-
/** Options for Loyalty points reward type. */
|
|
3028
|
+
/** Options for the Loyalty points reward type. */
|
|
3029
3029
|
loyaltyPointsOptions?: LoyaltyPoints;
|
|
3030
3030
|
}
|
|
3031
3031
|
declare enum Type {
|
|
@@ -4361,7 +4361,7 @@ interface GenerateReferringCustomerForContactSignature {
|
|
|
4361
4361
|
/**
|
|
4362
4362
|
* Creates a new referring customer or returns an existing one for the provided contact ID.
|
|
4363
4363
|
*
|
|
4364
|
-
* You can use `
|
|
4364
|
+
* You can use `me` instead of a specific contact ID to generate a referring customer for the current identity's contact.
|
|
4365
4365
|
*
|
|
4366
4366
|
* See the [About Identities](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities) article to learn more about identies.
|
|
4367
4367
|
* @param - Contact ID or `"me"` to generate the current identity's referring customer.
|
|
@@ -2828,7 +2828,7 @@ declare enum Status$1 {
|
|
|
2828
2828
|
interface Coupon extends CouponDiscountTypeOptionsOneOf, CouponScopeOrMinSubtotalOneOf {
|
|
2829
2829
|
/** Options for fixed amount discount. */
|
|
2830
2830
|
fixedAmountOptions?: FixedAmountDiscount;
|
|
2831
|
-
/** Options for percentage
|
|
2831
|
+
/** Options for percentage discounts. */
|
|
2832
2832
|
percentageOptions?: PercentageDiscount;
|
|
2833
2833
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
2834
2834
|
minimumSubtotal?: number;
|
|
@@ -2868,7 +2868,7 @@ interface Coupon extends CouponDiscountTypeOptionsOneOf, CouponScopeOrMinSubtota
|
|
|
2868
2868
|
interface CouponDiscountTypeOptionsOneOf {
|
|
2869
2869
|
/** Options for fixed amount discount. */
|
|
2870
2870
|
fixedAmountOptions?: FixedAmountDiscount;
|
|
2871
|
-
/** Options for percentage
|
|
2871
|
+
/** Options for percentage discounts. */
|
|
2872
2872
|
percentageOptions?: PercentageDiscount;
|
|
2873
2873
|
}
|
|
2874
2874
|
/** @oneof */
|
|
@@ -2889,7 +2889,7 @@ declare enum DiscountType {
|
|
|
2889
2889
|
FREE_SHIPPING = "FREE_SHIPPING"
|
|
2890
2890
|
}
|
|
2891
2891
|
interface FixedAmountDiscount {
|
|
2892
|
-
/** Amount of discount as a fixed value. */
|
|
2892
|
+
/** Amount of the discount as a fixed value. */
|
|
2893
2893
|
amount?: number;
|
|
2894
2894
|
}
|
|
2895
2895
|
interface PercentageDiscount {
|
|
@@ -2899,7 +2899,7 @@ interface PercentageDiscount {
|
|
|
2899
2899
|
interface CouponScope {
|
|
2900
2900
|
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
2901
2901
|
namespace?: string;
|
|
2902
|
-
/** Coupon scope's applied group, for example
|
|
2902
|
+
/** Coupon scope's applied group, for example, Event or ticket in Wix Events. */
|
|
2903
2903
|
group?: Group;
|
|
2904
2904
|
}
|
|
2905
2905
|
interface Group {
|
|
@@ -3016,7 +3016,7 @@ interface ValidateReferralRewardRequest {
|
|
|
3016
3016
|
interface Reward extends RewardOptionsOneOf {
|
|
3017
3017
|
/** Options for coupon reward type. */
|
|
3018
3018
|
couponOptions?: Coupon;
|
|
3019
|
-
/** Options for Loyalty points reward type. */
|
|
3019
|
+
/** Options for the Loyalty points reward type. */
|
|
3020
3020
|
loyaltyPointsOptions?: LoyaltyPoints;
|
|
3021
3021
|
/** Type of the reward. */
|
|
3022
3022
|
type?: Type;
|
|
@@ -3025,7 +3025,7 @@ interface Reward extends RewardOptionsOneOf {
|
|
|
3025
3025
|
interface RewardOptionsOneOf {
|
|
3026
3026
|
/** Options for coupon reward type. */
|
|
3027
3027
|
couponOptions?: Coupon;
|
|
3028
|
-
/** Options for Loyalty points reward type. */
|
|
3028
|
+
/** Options for the Loyalty points reward type. */
|
|
3029
3029
|
loyaltyPointsOptions?: LoyaltyPoints;
|
|
3030
3030
|
}
|
|
3031
3031
|
declare enum Type {
|
|
@@ -4361,7 +4361,7 @@ interface GenerateReferringCustomerForContactSignature {
|
|
|
4361
4361
|
/**
|
|
4362
4362
|
* Creates a new referring customer or returns an existing one for the provided contact ID.
|
|
4363
4363
|
*
|
|
4364
|
-
* You can use `
|
|
4364
|
+
* You can use `me` instead of a specific contact ID to generate a referring customer for the current identity's contact.
|
|
4365
4365
|
*
|
|
4366
4366
|
* See the [About Identities](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities) article to learn more about identies.
|
|
4367
4367
|
* @param - Contact ID or `"me"` to generate the current identity's referring customer.
|
|
@@ -2186,7 +2186,7 @@ declare enum Status$3 {
|
|
|
2186
2186
|
interface Coupon$1 extends CouponDiscountTypeOptionsOneOf$1, CouponScopeOrMinSubtotalOneOf$1 {
|
|
2187
2187
|
/** Options for fixed amount discount. */
|
|
2188
2188
|
fixedAmountOptions?: FixedAmountDiscount$1;
|
|
2189
|
-
/** Options for percentage
|
|
2189
|
+
/** Options for percentage discounts. */
|
|
2190
2190
|
percentageOptions?: PercentageDiscount$1;
|
|
2191
2191
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
2192
2192
|
minimumSubtotal?: number;
|
|
@@ -2226,7 +2226,7 @@ interface Coupon$1 extends CouponDiscountTypeOptionsOneOf$1, CouponScopeOrMinSub
|
|
|
2226
2226
|
interface CouponDiscountTypeOptionsOneOf$1 {
|
|
2227
2227
|
/** Options for fixed amount discount. */
|
|
2228
2228
|
fixedAmountOptions?: FixedAmountDiscount$1;
|
|
2229
|
-
/** Options for percentage
|
|
2229
|
+
/** Options for percentage discounts. */
|
|
2230
2230
|
percentageOptions?: PercentageDiscount$1;
|
|
2231
2231
|
}
|
|
2232
2232
|
/** @oneof */
|
|
@@ -2247,7 +2247,7 @@ declare enum DiscountType$1 {
|
|
|
2247
2247
|
FREE_SHIPPING = "FREE_SHIPPING"
|
|
2248
2248
|
}
|
|
2249
2249
|
interface FixedAmountDiscount$1 {
|
|
2250
|
-
/** Amount of discount as a fixed value. */
|
|
2250
|
+
/** Amount of the discount as a fixed value. */
|
|
2251
2251
|
amount?: number;
|
|
2252
2252
|
}
|
|
2253
2253
|
interface PercentageDiscount$1 {
|
|
@@ -2257,7 +2257,7 @@ interface PercentageDiscount$1 {
|
|
|
2257
2257
|
interface CouponScope$1 {
|
|
2258
2258
|
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
2259
2259
|
namespace?: string;
|
|
2260
|
-
/** Coupon scope's applied group, for example
|
|
2260
|
+
/** Coupon scope's applied group, for example, Event or ticket in Wix Events. */
|
|
2261
2261
|
group?: Group$1;
|
|
2262
2262
|
}
|
|
2263
2263
|
interface Group$1 {
|
|
@@ -2530,7 +2530,7 @@ declare enum Status$2 {
|
|
|
2530
2530
|
interface Coupon extends CouponDiscountTypeOptionsOneOf, CouponScopeOrMinSubtotalOneOf {
|
|
2531
2531
|
/** Options for fixed amount discount. */
|
|
2532
2532
|
fixedAmountOptions?: FixedAmountDiscount;
|
|
2533
|
-
/** Options for percentage
|
|
2533
|
+
/** Options for percentage discounts. */
|
|
2534
2534
|
percentageOptions?: PercentageDiscount;
|
|
2535
2535
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
2536
2536
|
minimumSubtotal?: number;
|
|
@@ -2570,7 +2570,7 @@ interface Coupon extends CouponDiscountTypeOptionsOneOf, CouponScopeOrMinSubtota
|
|
|
2570
2570
|
interface CouponDiscountTypeOptionsOneOf {
|
|
2571
2571
|
/** Options for fixed amount discount. */
|
|
2572
2572
|
fixedAmountOptions?: FixedAmountDiscount;
|
|
2573
|
-
/** Options for percentage
|
|
2573
|
+
/** Options for percentage discounts. */
|
|
2574
2574
|
percentageOptions?: PercentageDiscount;
|
|
2575
2575
|
}
|
|
2576
2576
|
/** @oneof */
|
|
@@ -2591,7 +2591,7 @@ declare enum DiscountType {
|
|
|
2591
2591
|
FREE_SHIPPING = "FREE_SHIPPING"
|
|
2592
2592
|
}
|
|
2593
2593
|
interface FixedAmountDiscount {
|
|
2594
|
-
/** Amount of discount as a fixed value. */
|
|
2594
|
+
/** Amount of the discount as a fixed value. */
|
|
2595
2595
|
amount?: number;
|
|
2596
2596
|
}
|
|
2597
2597
|
interface PercentageDiscount {
|
|
@@ -2601,7 +2601,7 @@ interface PercentageDiscount {
|
|
|
2601
2601
|
interface CouponScope {
|
|
2602
2602
|
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
2603
2603
|
namespace?: string;
|
|
2604
|
-
/** Coupon scope's applied group, for example
|
|
2604
|
+
/** Coupon scope's applied group, for example, Event or ticket in Wix Events. */
|
|
2605
2605
|
group?: Group;
|
|
2606
2606
|
}
|
|
2607
2607
|
interface Group {
|