@wix/referral 1.0.16 → 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 +7 -7
- package/type-bundles/context.bundle.d.ts +72 -118
- package/type-bundles/index.bundle.d.ts +72 -118
- package/type-bundles/meta.bundle.d.ts +44 -38
|
@@ -39,7 +39,7 @@ interface ReferralProgram$1 {
|
|
|
39
39
|
*/
|
|
40
40
|
referringCustomerReward?: Reward$3;
|
|
41
41
|
/**
|
|
42
|
-
* List of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an
|
|
42
|
+
* List of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an item.
|
|
43
43
|
*
|
|
44
44
|
* Possible values:
|
|
45
45
|
*
|
|
@@ -84,7 +84,7 @@ declare enum ProgramStatus$1 {
|
|
|
84
84
|
interface Reward$3 extends RewardOptionsOneOf$1 {
|
|
85
85
|
/** Options for coupon reward type. */
|
|
86
86
|
couponOptions?: Coupon$5;
|
|
87
|
-
/** Options for Loyalty points reward type. */
|
|
87
|
+
/** Options for the Loyalty points reward type. */
|
|
88
88
|
loyaltyPointsOptions?: LoyaltyPoints$3;
|
|
89
89
|
/** Type of the reward. */
|
|
90
90
|
type?: Type$1;
|
|
@@ -93,7 +93,7 @@ interface Reward$3 extends RewardOptionsOneOf$1 {
|
|
|
93
93
|
interface RewardOptionsOneOf$1 {
|
|
94
94
|
/** Options for coupon reward type. */
|
|
95
95
|
couponOptions?: Coupon$5;
|
|
96
|
-
/** Options for Loyalty points reward type. */
|
|
96
|
+
/** Options for the Loyalty points reward type. */
|
|
97
97
|
loyaltyPointsOptions?: LoyaltyPoints$3;
|
|
98
98
|
}
|
|
99
99
|
declare enum Type$1 {
|
|
@@ -109,7 +109,7 @@ declare enum Type$1 {
|
|
|
109
109
|
interface Coupon$5 extends CouponDiscountTypeOptionsOneOf$5, CouponScopeOrMinSubtotalOneOf$5 {
|
|
110
110
|
/** Options for fixed amount discount. */
|
|
111
111
|
fixedAmountOptions?: FixedAmountDiscount$5;
|
|
112
|
-
/** Options for percentage
|
|
112
|
+
/** Options for percentage discounts. */
|
|
113
113
|
percentageOptions?: PercentageDiscount$5;
|
|
114
114
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
115
115
|
minimumSubtotal?: number;
|
|
@@ -149,7 +149,7 @@ interface Coupon$5 extends CouponDiscountTypeOptionsOneOf$5, CouponScopeOrMinSub
|
|
|
149
149
|
interface CouponDiscountTypeOptionsOneOf$5 {
|
|
150
150
|
/** Options for fixed amount discount. */
|
|
151
151
|
fixedAmountOptions?: FixedAmountDiscount$5;
|
|
152
|
-
/** Options for percentage
|
|
152
|
+
/** Options for percentage discounts. */
|
|
153
153
|
percentageOptions?: PercentageDiscount$5;
|
|
154
154
|
}
|
|
155
155
|
/** @oneof */
|
|
@@ -170,7 +170,7 @@ declare enum DiscountType$5 {
|
|
|
170
170
|
FREE_SHIPPING = "FREE_SHIPPING"
|
|
171
171
|
}
|
|
172
172
|
interface FixedAmountDiscount$5 {
|
|
173
|
-
/** Amount of discount as a fixed value. */
|
|
173
|
+
/** Amount of the discount as a fixed value. */
|
|
174
174
|
amount?: number;
|
|
175
175
|
}
|
|
176
176
|
interface PercentageDiscount$5 {
|
|
@@ -180,7 +180,7 @@ interface PercentageDiscount$5 {
|
|
|
180
180
|
interface CouponScope$5 {
|
|
181
181
|
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
182
182
|
namespace?: string;
|
|
183
|
-
/** Coupon scope's applied group, for example
|
|
183
|
+
/** Coupon scope's applied group, for example, Event or ticket in Wix Events. */
|
|
184
184
|
group?: Group$5;
|
|
185
185
|
}
|
|
186
186
|
interface Group$5 {
|
|
@@ -221,7 +221,10 @@ interface Emails$1 {
|
|
|
221
221
|
* - `RESTAURANTS`: Send an email to customers who've placed an order with restaurants.
|
|
222
222
|
*/
|
|
223
223
|
encourageToReferFriends?: App$1[];
|
|
224
|
-
/**
|
|
224
|
+
/**
|
|
225
|
+
* Whether to send email notifications to referring customers when they receive a referral reward.
|
|
226
|
+
* If true, referring customers will be notified by email when their referred friend completes a qualifying action (for example, placing an order).
|
|
227
|
+
*/
|
|
225
228
|
notifyCustomersAboutReward?: boolean;
|
|
226
229
|
}
|
|
227
230
|
declare enum App$1 {
|
|
@@ -240,7 +243,7 @@ declare enum App$1 {
|
|
|
240
243
|
}
|
|
241
244
|
interface PremiumFeatures$1 {
|
|
242
245
|
/**
|
|
243
|
-
* Whether the
|
|
246
|
+
* Whether the site owner has access to the referral program feature.
|
|
244
247
|
* @readonly
|
|
245
248
|
*/
|
|
246
249
|
referralProgram?: boolean;
|
|
@@ -351,7 +354,7 @@ interface PauseReferralProgramResponse$1 {
|
|
|
351
354
|
referralProgram?: ReferralProgram$1;
|
|
352
355
|
}
|
|
353
356
|
interface GetAISocialMediaPostsSuggestionsRequest$1 {
|
|
354
|
-
/** Topic to generate social media post suggestions for. */
|
|
357
|
+
/** Topic to generate social media post suggestions for. For example, fitness, education, technology. */
|
|
355
358
|
topic?: string;
|
|
356
359
|
}
|
|
357
360
|
interface GetAISocialMediaPostsSuggestionsResponse$1 {
|
|
@@ -367,7 +370,7 @@ interface AISocialMediaPostSuggestion$1 {
|
|
|
367
370
|
hashtags?: string[];
|
|
368
371
|
}
|
|
369
372
|
interface GenerateAISocialMediaPostsSuggestionsRequest$1 {
|
|
370
|
-
/** Topic to generate social media post suggestions for. */
|
|
373
|
+
/** Topic to generate social media post suggestions for. For example, fitness, education, technology. */
|
|
371
374
|
topic?: string;
|
|
372
375
|
}
|
|
373
376
|
interface GenerateAISocialMediaPostsSuggestionsResponse$1 {
|
|
@@ -500,7 +503,7 @@ interface ReferralProgram {
|
|
|
500
503
|
*/
|
|
501
504
|
referringCustomerReward?: Reward$2;
|
|
502
505
|
/**
|
|
503
|
-
* List of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an
|
|
506
|
+
* List of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an item.
|
|
504
507
|
*
|
|
505
508
|
* Possible values:
|
|
506
509
|
*
|
|
@@ -545,7 +548,7 @@ declare enum ProgramStatus {
|
|
|
545
548
|
interface Reward$2 extends RewardOptionsOneOf {
|
|
546
549
|
/** Options for coupon reward type. */
|
|
547
550
|
couponOptions?: Coupon$4;
|
|
548
|
-
/** Options for Loyalty points reward type. */
|
|
551
|
+
/** Options for the Loyalty points reward type. */
|
|
549
552
|
loyaltyPointsOptions?: LoyaltyPoints$2;
|
|
550
553
|
/** Type of the reward. */
|
|
551
554
|
type?: Type;
|
|
@@ -554,7 +557,7 @@ interface Reward$2 extends RewardOptionsOneOf {
|
|
|
554
557
|
interface RewardOptionsOneOf {
|
|
555
558
|
/** Options for coupon reward type. */
|
|
556
559
|
couponOptions?: Coupon$4;
|
|
557
|
-
/** Options for Loyalty points reward type. */
|
|
560
|
+
/** Options for the Loyalty points reward type. */
|
|
558
561
|
loyaltyPointsOptions?: LoyaltyPoints$2;
|
|
559
562
|
}
|
|
560
563
|
declare enum Type {
|
|
@@ -570,7 +573,7 @@ declare enum Type {
|
|
|
570
573
|
interface Coupon$4 extends CouponDiscountTypeOptionsOneOf$4, CouponScopeOrMinSubtotalOneOf$4 {
|
|
571
574
|
/** Options for fixed amount discount. */
|
|
572
575
|
fixedAmountOptions?: FixedAmountDiscount$4;
|
|
573
|
-
/** Options for percentage
|
|
576
|
+
/** Options for percentage discounts. */
|
|
574
577
|
percentageOptions?: PercentageDiscount$4;
|
|
575
578
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
576
579
|
minimumSubtotal?: number;
|
|
@@ -610,7 +613,7 @@ interface Coupon$4 extends CouponDiscountTypeOptionsOneOf$4, CouponScopeOrMinSub
|
|
|
610
613
|
interface CouponDiscountTypeOptionsOneOf$4 {
|
|
611
614
|
/** Options for fixed amount discount. */
|
|
612
615
|
fixedAmountOptions?: FixedAmountDiscount$4;
|
|
613
|
-
/** Options for percentage
|
|
616
|
+
/** Options for percentage discounts. */
|
|
614
617
|
percentageOptions?: PercentageDiscount$4;
|
|
615
618
|
}
|
|
616
619
|
/** @oneof */
|
|
@@ -631,7 +634,7 @@ declare enum DiscountType$4 {
|
|
|
631
634
|
FREE_SHIPPING = "FREE_SHIPPING"
|
|
632
635
|
}
|
|
633
636
|
interface FixedAmountDiscount$4 {
|
|
634
|
-
/** Amount of discount as a fixed value. */
|
|
637
|
+
/** Amount of the discount as a fixed value. */
|
|
635
638
|
amount?: number;
|
|
636
639
|
}
|
|
637
640
|
interface PercentageDiscount$4 {
|
|
@@ -641,7 +644,7 @@ interface PercentageDiscount$4 {
|
|
|
641
644
|
interface CouponScope$4 {
|
|
642
645
|
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
643
646
|
namespace?: string;
|
|
644
|
-
/** Coupon scope's applied group, for example
|
|
647
|
+
/** Coupon scope's applied group, for example, Event or ticket in Wix Events. */
|
|
645
648
|
group?: Group$4;
|
|
646
649
|
}
|
|
647
650
|
interface Group$4 {
|
|
@@ -682,7 +685,10 @@ interface Emails {
|
|
|
682
685
|
* - `RESTAURANTS`: Send an email to customers who've placed an order with restaurants.
|
|
683
686
|
*/
|
|
684
687
|
encourageToReferFriends?: App[];
|
|
685
|
-
/**
|
|
688
|
+
/**
|
|
689
|
+
* Whether to send email notifications to referring customers when they receive a referral reward.
|
|
690
|
+
* If true, referring customers will be notified by email when their referred friend completes a qualifying action (for example, placing an order).
|
|
691
|
+
*/
|
|
686
692
|
notifyCustomersAboutReward?: boolean;
|
|
687
693
|
}
|
|
688
694
|
declare enum App {
|
|
@@ -701,7 +707,7 @@ declare enum App {
|
|
|
701
707
|
}
|
|
702
708
|
interface PremiumFeatures {
|
|
703
709
|
/**
|
|
704
|
-
* Whether the
|
|
710
|
+
* Whether the site owner has access to the referral program feature.
|
|
705
711
|
* @readonly
|
|
706
712
|
*/
|
|
707
713
|
referralProgram?: boolean;
|
|
@@ -812,7 +818,7 @@ interface PauseReferralProgramResponse {
|
|
|
812
818
|
referralProgram?: ReferralProgram;
|
|
813
819
|
}
|
|
814
820
|
interface GetAISocialMediaPostsSuggestionsRequest {
|
|
815
|
-
/** Topic to generate social media post suggestions for. */
|
|
821
|
+
/** Topic to generate social media post suggestions for. For example, fitness, education, technology. */
|
|
816
822
|
topic?: string;
|
|
817
823
|
}
|
|
818
824
|
interface GetAISocialMediaPostsSuggestionsResponse {
|
|
@@ -828,7 +834,7 @@ interface AISocialMediaPostSuggestion {
|
|
|
828
834
|
hashtags?: string[];
|
|
829
835
|
}
|
|
830
836
|
interface GenerateAISocialMediaPostsSuggestionsRequest {
|
|
831
|
-
/** Topic to generate social media post suggestions for. */
|
|
837
|
+
/** Topic to generate social media post suggestions for. For example, fitness, education, technology. */
|
|
832
838
|
topic?: string;
|
|
833
839
|
}
|
|
834
840
|
interface GenerateAISocialMediaPostsSuggestionsResponse {
|
|
@@ -1307,7 +1313,7 @@ declare enum Status$5 {
|
|
|
1307
1313
|
interface Coupon$3 extends CouponDiscountTypeOptionsOneOf$3, CouponScopeOrMinSubtotalOneOf$3 {
|
|
1308
1314
|
/** Options for fixed amount discount. */
|
|
1309
1315
|
fixedAmountOptions?: FixedAmountDiscount$3;
|
|
1310
|
-
/** Options for percentage
|
|
1316
|
+
/** Options for percentage discounts. */
|
|
1311
1317
|
percentageOptions?: PercentageDiscount$3;
|
|
1312
1318
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
1313
1319
|
minimumSubtotal?: number;
|
|
@@ -1347,7 +1353,7 @@ interface Coupon$3 extends CouponDiscountTypeOptionsOneOf$3, CouponScopeOrMinSub
|
|
|
1347
1353
|
interface CouponDiscountTypeOptionsOneOf$3 {
|
|
1348
1354
|
/** Options for fixed amount discount. */
|
|
1349
1355
|
fixedAmountOptions?: FixedAmountDiscount$3;
|
|
1350
|
-
/** Options for percentage
|
|
1356
|
+
/** Options for percentage discounts. */
|
|
1351
1357
|
percentageOptions?: PercentageDiscount$3;
|
|
1352
1358
|
}
|
|
1353
1359
|
/** @oneof */
|
|
@@ -1368,7 +1374,7 @@ declare enum DiscountType$3 {
|
|
|
1368
1374
|
FREE_SHIPPING = "FREE_SHIPPING"
|
|
1369
1375
|
}
|
|
1370
1376
|
interface FixedAmountDiscount$3 {
|
|
1371
|
-
/** Amount of discount as a fixed value. */
|
|
1377
|
+
/** Amount of the discount as a fixed value. */
|
|
1372
1378
|
amount?: number;
|
|
1373
1379
|
}
|
|
1374
1380
|
interface PercentageDiscount$3 {
|
|
@@ -1378,7 +1384,7 @@ interface PercentageDiscount$3 {
|
|
|
1378
1384
|
interface CouponScope$3 {
|
|
1379
1385
|
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
1380
1386
|
namespace?: string;
|
|
1381
|
-
/** Coupon scope's applied group, for example
|
|
1387
|
+
/** Coupon scope's applied group, for example, Event or ticket in Wix Events. */
|
|
1382
1388
|
group?: Group$3;
|
|
1383
1389
|
}
|
|
1384
1390
|
interface Group$3 {
|
|
@@ -1849,7 +1855,7 @@ declare enum Status$4 {
|
|
|
1849
1855
|
interface Coupon$2 extends CouponDiscountTypeOptionsOneOf$2, CouponScopeOrMinSubtotalOneOf$2 {
|
|
1850
1856
|
/** Options for fixed amount discount. */
|
|
1851
1857
|
fixedAmountOptions?: FixedAmountDiscount$2;
|
|
1852
|
-
/** Options for percentage
|
|
1858
|
+
/** Options for percentage discounts. */
|
|
1853
1859
|
percentageOptions?: PercentageDiscount$2;
|
|
1854
1860
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
1855
1861
|
minimumSubtotal?: number;
|
|
@@ -1889,7 +1895,7 @@ interface Coupon$2 extends CouponDiscountTypeOptionsOneOf$2, CouponScopeOrMinSub
|
|
|
1889
1895
|
interface CouponDiscountTypeOptionsOneOf$2 {
|
|
1890
1896
|
/** Options for fixed amount discount. */
|
|
1891
1897
|
fixedAmountOptions?: FixedAmountDiscount$2;
|
|
1892
|
-
/** Options for percentage
|
|
1898
|
+
/** Options for percentage discounts. */
|
|
1893
1899
|
percentageOptions?: PercentageDiscount$2;
|
|
1894
1900
|
}
|
|
1895
1901
|
/** @oneof */
|
|
@@ -1910,7 +1916,7 @@ declare enum DiscountType$2 {
|
|
|
1910
1916
|
FREE_SHIPPING = "FREE_SHIPPING"
|
|
1911
1917
|
}
|
|
1912
1918
|
interface FixedAmountDiscount$2 {
|
|
1913
|
-
/** Amount of discount as a fixed value. */
|
|
1919
|
+
/** Amount of the discount as a fixed value. */
|
|
1914
1920
|
amount?: number;
|
|
1915
1921
|
}
|
|
1916
1922
|
interface PercentageDiscount$2 {
|
|
@@ -1920,7 +1926,7 @@ interface PercentageDiscount$2 {
|
|
|
1920
1926
|
interface CouponScope$2 {
|
|
1921
1927
|
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
1922
1928
|
namespace?: string;
|
|
1923
|
-
/** Coupon scope's applied group, for example
|
|
1929
|
+
/** Coupon scope's applied group, for example, Event or ticket in Wix Events. */
|
|
1924
1930
|
group?: Group$2;
|
|
1925
1931
|
}
|
|
1926
1932
|
interface Group$2 {
|
|
@@ -2180,7 +2186,7 @@ declare enum Status$3 {
|
|
|
2180
2186
|
interface Coupon$1 extends CouponDiscountTypeOptionsOneOf$1, CouponScopeOrMinSubtotalOneOf$1 {
|
|
2181
2187
|
/** Options for fixed amount discount. */
|
|
2182
2188
|
fixedAmountOptions?: FixedAmountDiscount$1;
|
|
2183
|
-
/** Options for percentage
|
|
2189
|
+
/** Options for percentage discounts. */
|
|
2184
2190
|
percentageOptions?: PercentageDiscount$1;
|
|
2185
2191
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
2186
2192
|
minimumSubtotal?: number;
|
|
@@ -2220,7 +2226,7 @@ interface Coupon$1 extends CouponDiscountTypeOptionsOneOf$1, CouponScopeOrMinSub
|
|
|
2220
2226
|
interface CouponDiscountTypeOptionsOneOf$1 {
|
|
2221
2227
|
/** Options for fixed amount discount. */
|
|
2222
2228
|
fixedAmountOptions?: FixedAmountDiscount$1;
|
|
2223
|
-
/** Options for percentage
|
|
2229
|
+
/** Options for percentage discounts. */
|
|
2224
2230
|
percentageOptions?: PercentageDiscount$1;
|
|
2225
2231
|
}
|
|
2226
2232
|
/** @oneof */
|
|
@@ -2241,7 +2247,7 @@ declare enum DiscountType$1 {
|
|
|
2241
2247
|
FREE_SHIPPING = "FREE_SHIPPING"
|
|
2242
2248
|
}
|
|
2243
2249
|
interface FixedAmountDiscount$1 {
|
|
2244
|
-
/** Amount of discount as a fixed value. */
|
|
2250
|
+
/** Amount of the discount as a fixed value. */
|
|
2245
2251
|
amount?: number;
|
|
2246
2252
|
}
|
|
2247
2253
|
interface PercentageDiscount$1 {
|
|
@@ -2251,7 +2257,7 @@ interface PercentageDiscount$1 {
|
|
|
2251
2257
|
interface CouponScope$1 {
|
|
2252
2258
|
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
2253
2259
|
namespace?: string;
|
|
2254
|
-
/** Coupon scope's applied group, for example
|
|
2260
|
+
/** Coupon scope's applied group, for example, Event or ticket in Wix Events. */
|
|
2255
2261
|
group?: Group$1;
|
|
2256
2262
|
}
|
|
2257
2263
|
interface Group$1 {
|
|
@@ -2524,7 +2530,7 @@ declare enum Status$2 {
|
|
|
2524
2530
|
interface Coupon extends CouponDiscountTypeOptionsOneOf, CouponScopeOrMinSubtotalOneOf {
|
|
2525
2531
|
/** Options for fixed amount discount. */
|
|
2526
2532
|
fixedAmountOptions?: FixedAmountDiscount;
|
|
2527
|
-
/** Options for percentage
|
|
2533
|
+
/** Options for percentage discounts. */
|
|
2528
2534
|
percentageOptions?: PercentageDiscount;
|
|
2529
2535
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
2530
2536
|
minimumSubtotal?: number;
|
|
@@ -2564,7 +2570,7 @@ interface Coupon extends CouponDiscountTypeOptionsOneOf, CouponScopeOrMinSubtota
|
|
|
2564
2570
|
interface CouponDiscountTypeOptionsOneOf {
|
|
2565
2571
|
/** Options for fixed amount discount. */
|
|
2566
2572
|
fixedAmountOptions?: FixedAmountDiscount;
|
|
2567
|
-
/** Options for percentage
|
|
2573
|
+
/** Options for percentage discounts. */
|
|
2568
2574
|
percentageOptions?: PercentageDiscount;
|
|
2569
2575
|
}
|
|
2570
2576
|
/** @oneof */
|
|
@@ -2585,7 +2591,7 @@ declare enum DiscountType {
|
|
|
2585
2591
|
FREE_SHIPPING = "FREE_SHIPPING"
|
|
2586
2592
|
}
|
|
2587
2593
|
interface FixedAmountDiscount {
|
|
2588
|
-
/** Amount of discount as a fixed value. */
|
|
2594
|
+
/** Amount of the discount as a fixed value. */
|
|
2589
2595
|
amount?: number;
|
|
2590
2596
|
}
|
|
2591
2597
|
interface PercentageDiscount {
|
|
@@ -2595,7 +2601,7 @@ interface PercentageDiscount {
|
|
|
2595
2601
|
interface CouponScope {
|
|
2596
2602
|
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
2597
2603
|
namespace?: string;
|
|
2598
|
-
/** Coupon scope's applied group, for example
|
|
2604
|
+
/** Coupon scope's applied group, for example, Event or ticket in Wix Events. */
|
|
2599
2605
|
group?: Group;
|
|
2600
2606
|
}
|
|
2601
2607
|
interface Group {
|