@wix/referral 1.0.33 → 1.0.35

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.33",
3
+ "version": "1.0.35",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -19,10 +19,10 @@
19
19
  ],
20
20
  "dependencies": {
21
21
  "@wix/referral_customers": "1.0.14",
22
- "@wix/referral_friends": "1.0.10",
23
- "@wix/referral_programs": "1.0.19",
22
+ "@wix/referral_friends": "1.0.11",
23
+ "@wix/referral_programs": "1.0.20",
24
24
  "@wix/referral_rewards": "1.0.13",
25
- "@wix/referral_tracker": "1.0.15"
25
+ "@wix/referral_tracker": "1.0.16"
26
26
  },
27
27
  "devDependencies": {
28
28
  "glob": "^10.4.1",
@@ -47,5 +47,5 @@
47
47
  "fqdn": ""
48
48
  }
49
49
  },
50
- "falconPackageHash": "136d2f2d04c9655789579dc82cc20eb39a8e5dbaf30a0504b041b98e"
50
+ "falconPackageHash": "0d2d37779fb713ff0f56e4f148745237dd99e7d8bf7f955bf39bd7a9"
51
51
  }
@@ -567,7 +567,7 @@ declare enum DiscountType$2 {
567
567
  FIXED_AMOUNT = "FIXED_AMOUNT",
568
568
  /** Discount as a percentage. */
569
569
  PERCENTAGE = "PERCENTAGE",
570
- /** Free shipping. */
570
+ /** Free shipping. If `true`, the coupon applies to all items in all `namespaces`. */
571
571
  FREE_SHIPPING = "FREE_SHIPPING"
572
572
  }
573
573
  interface FixedAmountDiscount$2 {
@@ -597,15 +597,15 @@ interface LoyaltyPoints$2 {
597
597
  declare enum Action {
598
598
  /** Unknown action. */
599
599
  UNKNOWN = "UNKNOWN",
600
- /** Store order placed. */
600
+ /** Referred friend ordered and paid for an order in a store. */
601
601
  STORE_ORDER_PLACED = "STORE_ORDER_PLACED",
602
- /** Pricing plan ordered. */
602
+ /** Referred friend ordered and paid for a plan */
603
603
  PLAN_ORDERED = "PLAN_ORDERED",
604
- /** Wix events ticket ordered. */
604
+ /** Referred friend ordered and paid for a ticket. */
605
605
  TICKET_ORDERED = "TICKET_ORDERED",
606
- /** Bookings session booked. */
606
+ /** Referred friend booked and paid for a session. */
607
607
  SESSION_BOOKED = "SESSION_BOOKED",
608
- /** Restaurant order placed. */
608
+ /** Referred friend placed and paid for a restaurant order. */
609
609
  RESTAURANT_ORDER_PLACED = "RESTAURANT_ORDER_PLACED"
610
610
  }
611
611
  interface Emails {
@@ -631,15 +631,15 @@ interface Emails {
631
631
  declare enum App {
632
632
  /** Unknown app. */
633
633
  UNKNOWN = "UNKNOWN",
634
- /** Wix stores. */
634
+ /** Send an email to customers who've placed an order with stores. */
635
635
  STORES = "STORES",
636
- /** Wix pricing plans. */
636
+ /** Send an email to customers who've placed an order with pricing plans. */
637
637
  PRICING_PLANS = "PRICING_PLANS",
638
- /** Wix events. */
638
+ /** Send an email to customers who've placed an order with events. */
639
639
  EVENTS = "EVENTS",
640
- /** Wix bookings. */
640
+ /** Send an email to customers who've placed an order with bookings. */
641
641
  BOOKINGS = "BOOKINGS",
642
- /** Wix restaurants. */
642
+ /** Send an email to customers who've placed an order with restaurants. */
643
643
  RESTAURANTS = "RESTAURANTS"
644
644
  }
645
645
  interface PremiumFeatures {
@@ -2439,7 +2439,7 @@ declare enum DiscountType$1 {
2439
2439
  FIXED_AMOUNT = "FIXED_AMOUNT",
2440
2440
  /** Discount as a percentage. */
2441
2441
  PERCENTAGE = "PERCENTAGE",
2442
- /** Free shipping. */
2442
+ /** Free shipping. If `true`, the coupon applies to all items in all `namespaces`. */
2443
2443
  FREE_SHIPPING = "FREE_SHIPPING"
2444
2444
  }
2445
2445
  interface FixedAmountDiscount$1 {
@@ -3732,10 +3732,11 @@ interface UpdateReferredFriendResponse {
3732
3732
  referredFriend?: ReferredFriend;
3733
3733
  }
3734
3734
  interface DeleteReferredFriendRequest {
3735
+ /** ID of the referred friend to delete. */
3735
3736
  referredFriendId: string;
3736
3737
  /**
3737
3738
  * Revision number, which increments by 1 each time the referred friend is updated.
3738
- * To prevent conflicting changes, the current revision must be passed when updating the referred friend.
3739
+ * To prevent conflicting changes, the current revision must be passed when deleting the referred friend.
3739
3740
  */
3740
3741
  revision?: string;
3741
3742
  }
@@ -4073,7 +4074,7 @@ interface UpdateReferredFriend {
4073
4074
  interface DeleteReferredFriendOptions {
4074
4075
  /**
4075
4076
  * Revision number, which increments by 1 each time the referred friend is updated.
4076
- * To prevent conflicting changes, the current revision must be passed when updating the referred friend.
4077
+ * To prevent conflicting changes, the current revision must be passed when deleting the referred friend.
4077
4078
  */
4078
4079
  revision?: string;
4079
4080
  }
@@ -4202,20 +4203,27 @@ declare function deleteReferredFriend$1(httpClient: HttpClient): DeleteReferredF
4202
4203
  interface DeleteReferredFriendSignature {
4203
4204
  /**
4204
4205
  * Deletes a referred friend.
4206
+ * @param - ID of the referred friend to delete.
4205
4207
  */
4206
4208
  (referredFriendId: string, options?: DeleteReferredFriendOptions | undefined): Promise<void>;
4207
4209
  }
4208
4210
  declare function queryReferredFriend$1(httpClient: HttpClient): QueryReferredFriendSignature;
4209
4211
  interface QueryReferredFriendSignature {
4210
4212
  /**
4211
- * Retrieves a list of referred friends, given the provided paging, filtering, and sorting.
4213
+ * Creates a query to retrieve a list of referred friends.
4212
4214
  *
4213
- * This endpoint supports [WQL (Wix Query Language)](https://dev.wix.com/api/rest/getting-started/api-query-language).
4215
+ * The `queryReferredFriend()` function builds a query to retrieve a list of events and returns a `ReferredFriendsQueryBuilder` object.
4214
4216
  *
4215
- * To learn about working with _Query_ endpoints, see
4216
- * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
4217
- * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),
4218
- * and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
4217
+ * The returned object contains the query definition, which is typically used to run the query using the `find()` function.
4218
+ *
4219
+ * You can refine the query by chaining `ReferredFriendsQueryBuilder` functions onto the query. `ReferredFriendsQueryBuilder` functions enable you to sort, filter, and control the results `queryReferredFriend()` returns.
4220
+ *
4221
+ * `queryReferredFriend()` runs with these `ReferredFriendQueryBuilder` defaults, which you can override:
4222
+ *
4223
+ * - `limit(50)`
4224
+ * - `descending("_createdDate")`
4225
+ *
4226
+ * The functions that are chained to `queryReferredFriend()` are applied in the order they're called. For example, if you apply ascending('status') and then descending('referringCustomerId'), the results are sorted first by the status, and then, if there are multiple results with the same status, the items are sorted by referring customer ID.
4219
4227
  */
4220
4228
  (): ReferredFriendsQueryBuilder;
4221
4229
  }
@@ -567,7 +567,7 @@ declare enum DiscountType$2 {
567
567
  FIXED_AMOUNT = "FIXED_AMOUNT",
568
568
  /** Discount as a percentage. */
569
569
  PERCENTAGE = "PERCENTAGE",
570
- /** Free shipping. */
570
+ /** Free shipping. If `true`, the coupon applies to all items in all `namespaces`. */
571
571
  FREE_SHIPPING = "FREE_SHIPPING"
572
572
  }
573
573
  interface FixedAmountDiscount$2 {
@@ -597,15 +597,15 @@ interface LoyaltyPoints$2 {
597
597
  declare enum Action {
598
598
  /** Unknown action. */
599
599
  UNKNOWN = "UNKNOWN",
600
- /** Store order placed. */
600
+ /** Referred friend ordered and paid for an order in a store. */
601
601
  STORE_ORDER_PLACED = "STORE_ORDER_PLACED",
602
- /** Pricing plan ordered. */
602
+ /** Referred friend ordered and paid for a plan */
603
603
  PLAN_ORDERED = "PLAN_ORDERED",
604
- /** Wix events ticket ordered. */
604
+ /** Referred friend ordered and paid for a ticket. */
605
605
  TICKET_ORDERED = "TICKET_ORDERED",
606
- /** Bookings session booked. */
606
+ /** Referred friend booked and paid for a session. */
607
607
  SESSION_BOOKED = "SESSION_BOOKED",
608
- /** Restaurant order placed. */
608
+ /** Referred friend placed and paid for a restaurant order. */
609
609
  RESTAURANT_ORDER_PLACED = "RESTAURANT_ORDER_PLACED"
610
610
  }
611
611
  interface Emails {
@@ -631,15 +631,15 @@ interface Emails {
631
631
  declare enum App {
632
632
  /** Unknown app. */
633
633
  UNKNOWN = "UNKNOWN",
634
- /** Wix stores. */
634
+ /** Send an email to customers who've placed an order with stores. */
635
635
  STORES = "STORES",
636
- /** Wix pricing plans. */
636
+ /** Send an email to customers who've placed an order with pricing plans. */
637
637
  PRICING_PLANS = "PRICING_PLANS",
638
- /** Wix events. */
638
+ /** Send an email to customers who've placed an order with events. */
639
639
  EVENTS = "EVENTS",
640
- /** Wix bookings. */
640
+ /** Send an email to customers who've placed an order with bookings. */
641
641
  BOOKINGS = "BOOKINGS",
642
- /** Wix restaurants. */
642
+ /** Send an email to customers who've placed an order with restaurants. */
643
643
  RESTAURANTS = "RESTAURANTS"
644
644
  }
645
645
  interface PremiumFeatures {
@@ -2439,7 +2439,7 @@ declare enum DiscountType$1 {
2439
2439
  FIXED_AMOUNT = "FIXED_AMOUNT",
2440
2440
  /** Discount as a percentage. */
2441
2441
  PERCENTAGE = "PERCENTAGE",
2442
- /** Free shipping. */
2442
+ /** Free shipping. If `true`, the coupon applies to all items in all `namespaces`. */
2443
2443
  FREE_SHIPPING = "FREE_SHIPPING"
2444
2444
  }
2445
2445
  interface FixedAmountDiscount$1 {
@@ -3732,10 +3732,11 @@ interface UpdateReferredFriendResponse {
3732
3732
  referredFriend?: ReferredFriend;
3733
3733
  }
3734
3734
  interface DeleteReferredFriendRequest {
3735
+ /** ID of the referred friend to delete. */
3735
3736
  referredFriendId: string;
3736
3737
  /**
3737
3738
  * Revision number, which increments by 1 each time the referred friend is updated.
3738
- * To prevent conflicting changes, the current revision must be passed when updating the referred friend.
3739
+ * To prevent conflicting changes, the current revision must be passed when deleting the referred friend.
3739
3740
  */
3740
3741
  revision?: string;
3741
3742
  }
@@ -4073,7 +4074,7 @@ interface UpdateReferredFriend {
4073
4074
  interface DeleteReferredFriendOptions {
4074
4075
  /**
4075
4076
  * Revision number, which increments by 1 each time the referred friend is updated.
4076
- * To prevent conflicting changes, the current revision must be passed when updating the referred friend.
4077
+ * To prevent conflicting changes, the current revision must be passed when deleting the referred friend.
4077
4078
  */
4078
4079
  revision?: string;
4079
4080
  }
@@ -4202,20 +4203,27 @@ declare function deleteReferredFriend$1(httpClient: HttpClient): DeleteReferredF
4202
4203
  interface DeleteReferredFriendSignature {
4203
4204
  /**
4204
4205
  * Deletes a referred friend.
4206
+ * @param - ID of the referred friend to delete.
4205
4207
  */
4206
4208
  (referredFriendId: string, options?: DeleteReferredFriendOptions | undefined): Promise<void>;
4207
4209
  }
4208
4210
  declare function queryReferredFriend$1(httpClient: HttpClient): QueryReferredFriendSignature;
4209
4211
  interface QueryReferredFriendSignature {
4210
4212
  /**
4211
- * Retrieves a list of referred friends, given the provided paging, filtering, and sorting.
4213
+ * Creates a query to retrieve a list of referred friends.
4212
4214
  *
4213
- * This endpoint supports [WQL (Wix Query Language)](https://dev.wix.com/api/rest/getting-started/api-query-language).
4215
+ * The `queryReferredFriend()` function builds a query to retrieve a list of events and returns a `ReferredFriendsQueryBuilder` object.
4214
4216
  *
4215
- * To learn about working with _Query_ endpoints, see
4216
- * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
4217
- * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),
4218
- * and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
4217
+ * The returned object contains the query definition, which is typically used to run the query using the `find()` function.
4218
+ *
4219
+ * You can refine the query by chaining `ReferredFriendsQueryBuilder` functions onto the query. `ReferredFriendsQueryBuilder` functions enable you to sort, filter, and control the results `queryReferredFriend()` returns.
4220
+ *
4221
+ * `queryReferredFriend()` runs with these `ReferredFriendQueryBuilder` defaults, which you can override:
4222
+ *
4223
+ * - `limit(50)`
4224
+ * - `descending("_createdDate")`
4225
+ *
4226
+ * The functions that are chained to `queryReferredFriend()` are applied in the order they're called. For example, if you apply ascending('status') and then descending('referringCustomerId'), the results are sorted first by the status, and then, if there are multiple results with the same status, the items are sorted by referring customer ID.
4219
4227
  */
4220
4228
  (): ReferredFriendsQueryBuilder;
4221
4229
  }
@@ -157,7 +157,7 @@ declare enum DiscountType$5 {
157
157
  FIXED_AMOUNT = "FIXED_AMOUNT",
158
158
  /** Discount as a percentage. */
159
159
  PERCENTAGE = "PERCENTAGE",
160
- /** Free shipping. */
160
+ /** Free shipping. If `true`, the coupon applies to all items in all `namespaces`. */
161
161
  FREE_SHIPPING = "FREE_SHIPPING"
162
162
  }
163
163
  interface FixedAmountDiscount$5 {
@@ -187,15 +187,15 @@ interface LoyaltyPoints$3 {
187
187
  declare enum Action$1 {
188
188
  /** Unknown action. */
189
189
  UNKNOWN = "UNKNOWN",
190
- /** Store order placed. */
190
+ /** Referred friend ordered and paid for an order in a store. */
191
191
  STORE_ORDER_PLACED = "STORE_ORDER_PLACED",
192
- /** Pricing plan ordered. */
192
+ /** Referred friend ordered and paid for a plan */
193
193
  PLAN_ORDERED = "PLAN_ORDERED",
194
- /** Wix events ticket ordered. */
194
+ /** Referred friend ordered and paid for a ticket. */
195
195
  TICKET_ORDERED = "TICKET_ORDERED",
196
- /** Bookings session booked. */
196
+ /** Referred friend booked and paid for a session. */
197
197
  SESSION_BOOKED = "SESSION_BOOKED",
198
- /** Restaurant order placed. */
198
+ /** Referred friend placed and paid for a restaurant order. */
199
199
  RESTAURANT_ORDER_PLACED = "RESTAURANT_ORDER_PLACED"
200
200
  }
201
201
  interface Emails$1 {
@@ -221,15 +221,15 @@ interface Emails$1 {
221
221
  declare enum App$1 {
222
222
  /** Unknown app. */
223
223
  UNKNOWN = "UNKNOWN",
224
- /** Wix stores. */
224
+ /** Send an email to customers who've placed an order with stores. */
225
225
  STORES = "STORES",
226
- /** Wix pricing plans. */
226
+ /** Send an email to customers who've placed an order with pricing plans. */
227
227
  PRICING_PLANS = "PRICING_PLANS",
228
- /** Wix events. */
228
+ /** Send an email to customers who've placed an order with events. */
229
229
  EVENTS = "EVENTS",
230
- /** Wix bookings. */
230
+ /** Send an email to customers who've placed an order with bookings. */
231
231
  BOOKINGS = "BOOKINGS",
232
- /** Wix restaurants. */
232
+ /** Send an email to customers who've placed an order with restaurants. */
233
233
  RESTAURANTS = "RESTAURANTS"
234
234
  }
235
235
  interface PremiumFeatures$1 {
@@ -530,7 +530,7 @@ declare enum DiscountType$4 {
530
530
  FIXED_AMOUNT = "FIXED_AMOUNT",
531
531
  /** Discount as a percentage. */
532
532
  PERCENTAGE = "PERCENTAGE",
533
- /** Free shipping. */
533
+ /** Free shipping. If `true`, the coupon applies to all items in all `namespaces`. */
534
534
  FREE_SHIPPING = "FREE_SHIPPING"
535
535
  }
536
536
  interface FixedAmountDiscount$4 {
@@ -560,15 +560,15 @@ interface LoyaltyPoints$2 {
560
560
  declare enum Action {
561
561
  /** Unknown action. */
562
562
  UNKNOWN = "UNKNOWN",
563
- /** Store order placed. */
563
+ /** Referred friend ordered and paid for an order in a store. */
564
564
  STORE_ORDER_PLACED = "STORE_ORDER_PLACED",
565
- /** Pricing plan ordered. */
565
+ /** Referred friend ordered and paid for a plan */
566
566
  PLAN_ORDERED = "PLAN_ORDERED",
567
- /** Wix events ticket ordered. */
567
+ /** Referred friend ordered and paid for a ticket. */
568
568
  TICKET_ORDERED = "TICKET_ORDERED",
569
- /** Bookings session booked. */
569
+ /** Referred friend booked and paid for a session. */
570
570
  SESSION_BOOKED = "SESSION_BOOKED",
571
- /** Restaurant order placed. */
571
+ /** Referred friend placed and paid for a restaurant order. */
572
572
  RESTAURANT_ORDER_PLACED = "RESTAURANT_ORDER_PLACED"
573
573
  }
574
574
  interface Emails {
@@ -594,15 +594,15 @@ interface Emails {
594
594
  declare enum App {
595
595
  /** Unknown app. */
596
596
  UNKNOWN = "UNKNOWN",
597
- /** Wix stores. */
597
+ /** Send an email to customers who've placed an order with stores. */
598
598
  STORES = "STORES",
599
- /** Wix pricing plans. */
599
+ /** Send an email to customers who've placed an order with pricing plans. */
600
600
  PRICING_PLANS = "PRICING_PLANS",
601
- /** Wix events. */
601
+ /** Send an email to customers who've placed an order with events. */
602
602
  EVENTS = "EVENTS",
603
- /** Wix bookings. */
603
+ /** Send an email to customers who've placed an order with bookings. */
604
604
  BOOKINGS = "BOOKINGS",
605
- /** Wix restaurants. */
605
+ /** Send an email to customers who've placed an order with restaurants. */
606
606
  RESTAURANTS = "RESTAURANTS"
607
607
  }
608
608
  interface PremiumFeatures {
@@ -1186,7 +1186,7 @@ declare enum DiscountType$3 {
1186
1186
  FIXED_AMOUNT = "FIXED_AMOUNT",
1187
1187
  /** Discount as a percentage. */
1188
1188
  PERCENTAGE = "PERCENTAGE",
1189
- /** Free shipping. */
1189
+ /** Free shipping. If `true`, the coupon applies to all items in all `namespaces`. */
1190
1190
  FREE_SHIPPING = "FREE_SHIPPING"
1191
1191
  }
1192
1192
  interface FixedAmountDiscount$3 {
@@ -1728,7 +1728,7 @@ declare enum DiscountType$2 {
1728
1728
  FIXED_AMOUNT = "FIXED_AMOUNT",
1729
1729
  /** Discount as a percentage. */
1730
1730
  PERCENTAGE = "PERCENTAGE",
1731
- /** Free shipping. */
1731
+ /** Free shipping. If `true`, the coupon applies to all items in all `namespaces`. */
1732
1732
  FREE_SHIPPING = "FREE_SHIPPING"
1733
1733
  }
1734
1734
  interface FixedAmountDiscount$2 {
@@ -2669,10 +2669,11 @@ interface UpdateReferredFriendResponse$1 {
2669
2669
  referredFriend?: ReferredFriend$1;
2670
2670
  }
2671
2671
  interface DeleteReferredFriendRequest$1 {
2672
+ /** ID of the referred friend to delete. */
2672
2673
  referredFriendId: string;
2673
2674
  /**
2674
2675
  * Revision number, which increments by 1 each time the referred friend is updated.
2675
- * To prevent conflicting changes, the current revision must be passed when updating the referred friend.
2676
+ * To prevent conflicting changes, the current revision must be passed when deleting the referred friend.
2676
2677
  */
2677
2678
  revision?: string;
2678
2679
  }
@@ -2855,10 +2856,11 @@ interface UpdateReferredFriendResponse {
2855
2856
  referredFriend?: ReferredFriend;
2856
2857
  }
2857
2858
  interface DeleteReferredFriendRequest {
2859
+ /** ID of the referred friend to delete. */
2858
2860
  referredFriendId: string;
2859
2861
  /**
2860
2862
  * Revision number, which increments by 1 each time the referred friend is updated.
2861
- * To prevent conflicting changes, the current revision must be passed when updating the referred friend.
2863
+ * To prevent conflicting changes, the current revision must be passed when deleting the referred friend.
2862
2864
  */
2863
2865
  revision?: string;
2864
2866
  }