@wix/referral 1.0.47 → 1.0.49

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.47",
3
+ "version": "1.0.49",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -22,10 +22,10 @@
22
22
  ],
23
23
  "dependencies": {
24
24
  "@wix/referral_customers": "1.0.18",
25
- "@wix/referral_friends": "1.0.17",
26
- "@wix/referral_programs": "1.0.25",
27
- "@wix/referral_rewards": "1.0.16",
28
- "@wix/referral_tracker": "1.0.21"
25
+ "@wix/referral_friends": "1.0.19",
26
+ "@wix/referral_programs": "1.0.26",
27
+ "@wix/referral_rewards": "1.0.17",
28
+ "@wix/referral_tracker": "1.0.22"
29
29
  },
30
30
  "devDependencies": {
31
31
  "glob": "^10.4.1",
@@ -50,5 +50,5 @@
50
50
  "fqdn": ""
51
51
  }
52
52
  },
53
- "falconPackageHash": "631cd2a2bc2401e8997f16c89fb314967e550bc82f83a186bc5fd09a"
53
+ "falconPackageHash": "d06cf004f2bf5e090f10bc90abd087e944d2bbea4e455e7ee4cd26a4"
54
54
  }
@@ -506,18 +506,7 @@ interface ReferralProgram {
506
506
  * Specifies the reward given to an existing customer who referred a new customer to the business.
507
507
  */
508
508
  referringCustomerReward?: Reward$2;
509
- /**
510
- * List of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an item.
511
- *
512
- * Possible values:
513
- *
514
- * - `UNKNOWN`: Action is unknown.
515
- * - `STORE_ORDER_PLACED`: Referred friend ordered and paid for an order in a store.
516
- * - `PLAN_ORDERED`: Referred friend ordered and paid for a plan.
517
- * - `TICKET_ORDERED`: Referred friend ordered and paid for a ticket.
518
- * - `SESSION_BOOKED`: Referred friend booked and paid for a session.
519
- * - `RESTAURANT_ORDER_PLACED`: Referred friend placed and paid for a restaurant order.
520
- */
509
+ /** List of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an item. */
521
510
  successfulReferralActions?: Action[];
522
511
  /** Configures email notifications for the referral program. */
523
512
  emails?: Emails;
@@ -529,13 +518,13 @@ interface ReferralProgram {
529
518
  }
530
519
  /** Status of the referral program. */
531
520
  declare enum ProgramStatus {
532
- /** The status of the referral program is unknown. This value is not used. */
521
+ /** Unknown program status. */
533
522
  UNKNOWN = "UNKNOWN",
534
- /** The referral program is in a draft state and is being modified. It is not yet active. */
523
+ /** Referral program is in a draft state and is being modified. It is not yet active. */
535
524
  DRAFT = "DRAFT",
536
- /** The referral program is active. */
525
+ /** Referral program is active. */
537
526
  ACTIVE = "ACTIVE",
538
- /** The referral program is paused. */
527
+ /** Referral program is paused. */
539
528
  PAUSED = "PAUSED"
540
529
  }
541
530
  interface Reward$2 extends RewardOptionsOneOf$1 {
@@ -574,14 +563,7 @@ interface Coupon$2 extends CouponDiscountTypeOptionsOneOf$2, CouponScopeOrMinSub
574
563
  scope?: CouponScope$2;
575
564
  /** Coupon name. */
576
565
  name?: string;
577
- /**
578
- * Coupon discount type.
579
- *
580
- * - `UNKNOWN`: Unknown discount type.
581
- * - `FIXED_AMOUNT`: Discount as a fixed amount.
582
- * - `PERCENTAGE`: Discount as a perctange.
583
- * - `FREE_SHIPPING`: Free shipping. If `true`, the coupon applies to all items in all `namespaces`.
584
- */
566
+ /** Coupon discount type. */
585
567
  discountType?: DiscountType$2;
586
568
  /**
587
569
  * Whether the coupon is limited to one item.
@@ -655,7 +637,7 @@ declare enum Action {
655
637
  UNKNOWN = "UNKNOWN",
656
638
  /** Referred friend ordered and paid for an order in a store. */
657
639
  STORE_ORDER_PLACED = "STORE_ORDER_PLACED",
658
- /** Referred friend ordered and paid for a plan */
640
+ /** Referred friend ordered and paid for a plan. */
659
641
  PLAN_ORDERED = "PLAN_ORDERED",
660
642
  /** Referred friend ordered and paid for a ticket. */
661
643
  TICKET_ORDERED = "TICKET_ORDERED",
@@ -665,18 +647,7 @@ declare enum Action {
665
647
  RESTAURANT_ORDER_PLACED = "RESTAURANT_ORDER_PLACED"
666
648
  }
667
649
  interface Emails {
668
- /**
669
- * Configures email invitations to encourage customers to refer their friends. Select the apps for which this feature is enabled.
670
- *
671
- * Available apps:
672
- *
673
- * - `UNKNOWN`: Unknown email.
674
- * - `STORES`: Send an email to customers who've placed an order with stores.
675
- * - `PRICING_PLANS`: Send an email to customers who've placed an order with pricing plans.
676
- * - `EVENTS`: Send an email to customers who've placed an order with events.
677
- * - `BOOKINGS`: Send an email to customers who've placed an order with bookings.
678
- * - `RESTAURANTS`: Send an email to customers who've placed an order with restaurants.
679
- */
650
+ /** Configures email invitations to encourage customers to refer their friends. Select the apps for which this feature is enabled. */
680
651
  encourageToReferFriends?: App[];
681
652
  /**
682
653
  * Whether to send email notifications to referring customers when they receive a referral reward.
@@ -2392,13 +2363,6 @@ interface V1Coupon$1 {
2392
2363
  code?: string;
2393
2364
  /**
2394
2365
  * Current status of the coupon.
2395
- *
2396
- * Possible values:
2397
- *
2398
- * - `UNKNOWN`: Unknown coupon status.
2399
- * - `ACTIVE`: Coupon is active and can be applied.
2400
- * - `APPLIED`: Coupon was already applied and can't be used anymore.
2401
- * - `DELETED`: Coupon was deleted.
2402
2366
  * @readonly
2403
2367
  */
2404
2368
  status?: Status$2;
@@ -2409,13 +2373,13 @@ interface V1Coupon$1 {
2409
2373
  couponSpecification?: Coupon$1;
2410
2374
  }
2411
2375
  declare enum Status$2 {
2412
- /** The coupon status is unknown or not specified. */
2376
+ /** Coupon status is unknown or not specified. */
2413
2377
  UNKNOWN = "UNKNOWN",
2414
- /** The coupon is active and can be applied to purchases. */
2378
+ /** Coupon is active and can be applied to purchases. */
2415
2379
  ACTIVE = "ACTIVE",
2416
- /** The coupon has been applied and can't be used again. */
2380
+ /** Coupon was applied and can't be used again. */
2417
2381
  APPLIED = "APPLIED",
2418
- /** The coupon has been deleted and is no longer valid. */
2382
+ /** Coupon was deleted and is no longer valid. */
2419
2383
  DELETED = "DELETED"
2420
2384
  }
2421
2385
  interface Coupon$1 extends CouponDiscountTypeOptionsOneOf$1, CouponScopeOrMinSubtotalOneOf$1 {
@@ -2429,14 +2393,7 @@ interface Coupon$1 extends CouponDiscountTypeOptionsOneOf$1, CouponScopeOrMinSub
2429
2393
  scope?: CouponScope$1;
2430
2394
  /** Coupon name. */
2431
2395
  name?: string;
2432
- /**
2433
- * Coupon discount type.
2434
- *
2435
- * - `UNKNOWN`: Unknown discount type.
2436
- * - `FIXED_AMOUNT`: Discount as a fixed amount.
2437
- * - `PERCENTAGE`: Discount as a perctange.
2438
- * - `FREE_SHIPPING`: Free shipping. If `true`, the coupon applies to all items in all `namespaces`.
2439
- */
2396
+ /** Coupon discount type. */
2440
2397
  discountType?: DiscountType$1;
2441
2398
  /**
2442
2399
  * Whether the coupon is limited to one item.
@@ -3040,15 +2997,7 @@ interface ReferralReward extends ReferralRewardReceiverOneOf, ReferralRewardRewa
3040
2997
  * @readonly
3041
2998
  */
3042
2999
  _updatedDate?: Date | null;
3043
- /**
3044
- * Type of reward given.
3045
- *
3046
- * Possible values:
3047
- * - `UNKNOWN`: Unknown reward.
3048
- * - `COUPON`: A loyalty coupon is given.
3049
- * - `LOYALTY_POINTS`: Loyalty points are awarded.
3050
- * - `NOTHING`: No reward is given.
3051
- */
3000
+ /** Type of reward given. */
3052
3001
  rewardType?: RewardTypeType;
3053
3002
  }
3054
3003
  /** @oneof */
@@ -3072,9 +3021,9 @@ interface ReferralRewardRewardTypeOptionsOneOf {
3072
3021
  loyaltyPoints?: V1LoyaltyPoints;
3073
3022
  }
3074
3023
  declare enum RewardTypeType {
3075
- /** Unknown reward. */
3024
+ /** Unknown reward type. */
3076
3025
  UNKNOWN = "UNKNOWN",
3077
- /** A loyalty coupon is given. */
3026
+ /** Loyalty coupon is given. */
3078
3027
  COUPON = "COUPON",
3079
3028
  /** Loyalty points are awarded. */
3080
3029
  LOYALTY_POINTS = "LOYALTY_POINTS",
@@ -3094,13 +3043,6 @@ interface V1Coupon {
3094
3043
  code?: string;
3095
3044
  /**
3096
3045
  * Current status of the coupon.
3097
- *
3098
- * Possible values:
3099
- *
3100
- * - `UNKNOWN`: Unknown coupon status.
3101
- * - `ACTIVE`: Coupon is active and can be applied.
3102
- * - `APPLIED`: Coupon was already applied and can't be used anymore.
3103
- * - `DELETED`: Coupon was deleted.
3104
3046
  * @readonly
3105
3047
  */
3106
3048
  status?: Status$1;
@@ -3111,13 +3053,13 @@ interface V1Coupon {
3111
3053
  couponSpecification?: Coupon;
3112
3054
  }
3113
3055
  declare enum Status$1 {
3114
- /** The coupon status is unknown or not specified. */
3056
+ /** Coupon status is unknown or not specified. */
3115
3057
  UNKNOWN = "UNKNOWN",
3116
- /** The coupon is active and can be applied to purchases. */
3058
+ /** Coupon is active and can be applied to purchases. */
3117
3059
  ACTIVE = "ACTIVE",
3118
- /** The coupon has been applied and can't be used again. */
3060
+ /** Coupon was applied and can't be used again. */
3119
3061
  APPLIED = "APPLIED",
3120
- /** The coupon has been deleted and is no longer valid. */
3062
+ /** Coupon was deleted and is no longer valid. */
3121
3063
  DELETED = "DELETED"
3122
3064
  }
3123
3065
  interface Coupon extends CouponDiscountTypeOptionsOneOf, CouponScopeOrMinSubtotalOneOf {
@@ -3131,14 +3073,7 @@ interface Coupon extends CouponDiscountTypeOptionsOneOf, CouponScopeOrMinSubtota
3131
3073
  scope?: CouponScope;
3132
3074
  /** Coupon name. */
3133
3075
  name?: string;
3134
- /**
3135
- * Coupon discount type.
3136
- *
3137
- * - `UNKNOWN`: Unknown discount type.
3138
- * - `FIXED_AMOUNT`: Discount as a fixed amount.
3139
- * - `PERCENTAGE`: Discount as a perctange.
3140
- * - `FREE_SHIPPING`: Free shipping. If `true`, the coupon applies to all items in all `namespaces`.
3141
- */
3076
+ /** Coupon discount type. */
3142
3077
  discountType?: DiscountType;
3143
3078
  /**
3144
3079
  * Whether the coupon is limited to one item.
@@ -3180,7 +3115,7 @@ declare enum DiscountType {
3180
3115
  FIXED_AMOUNT = "FIXED_AMOUNT",
3181
3116
  /** Discount as a percentage. */
3182
3117
  PERCENTAGE = "PERCENTAGE",
3183
- /** Free shipping. */
3118
+ /** Free shipping. If `true`, the coupon applies to all items in all `namespaces`. */
3184
3119
  FREE_SHIPPING = "FREE_SHIPPING"
3185
3120
  }
3186
3121
  interface FixedAmountDiscount {
@@ -3622,12 +3557,20 @@ interface GetReferralRewardSignature {
3622
3557
  declare function queryReferralRewards$1(httpClient: HttpClient): QueryReferralRewardsSignature;
3623
3558
  interface QueryReferralRewardsSignature {
3624
3559
  /**
3625
- * Retrieves a list of referral rewards, given the provided paging, filtering, and sorting.
3560
+ * Creates a query to retrieve a list of referral rewards.
3626
3561
  *
3627
- * To learn about working with _Query_ endpoints, see
3628
- * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
3629
- * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),
3630
- * and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
3562
+ * The `queryReferralRewards()` function builds a query to retrieve a list of events and returns a `ReferralRewardsQueryBuilder` object.
3563
+ *
3564
+ * The returned object contains the query definition, which is typically used to run the query using the `find()` function.
3565
+ *
3566
+ * You can refine the query by chaining `ReferralRewardsQueryBuilder` functions onto the query. `ReferralRewardsQueryBuilder` functions enable you to sort, filter, and control the results `queryReferralRewards()` returns.
3567
+ *
3568
+ * `queryReferralRewards()` runs with these `ReferralRewardsQueryBuilder` defaults, which you can override:
3569
+ *
3570
+ * - `limit(50)`
3571
+ * - `descending("_createdDate")`
3572
+ *
3573
+ * The functions that are chained to `queryReferralRewards()` are applied in the order they're called. For example, if you apply ascending('rewardedReferredFriendId') and then descending('rewardType'), the results are sorted first by the referred friend ID, and then, if there are multiple results with the same ID, the items are sorted by reward type.
3631
3574
  */
3632
3575
  (options?: QueryReferralRewardsOptions | undefined): ReferralRewardsQueryBuilder;
3633
3576
  }
@@ -3717,7 +3660,7 @@ declare enum Status {
3717
3660
  UNKNOWN = "UNKNOWN",
3718
3661
  /** Initial status when the referred friend joins the site as a member. */
3719
3662
  SIGN_UP_COMPLETED = "SIGN_UP_COMPLETED",
3720
- /** Status after the referred friend completes specific actions, such as making a purchase. */
3663
+ /** Status after the referred friend completes a specific action, such as making a purchase. */
3721
3664
  ACTIONS_COMPLETED = "ACTIONS_COMPLETED"
3722
3665
  }
3723
3666
  interface CreateReferredFriendRequest {
@@ -4195,8 +4138,9 @@ interface GetReferredFriendSignature {
4195
4138
  /**
4196
4139
  * Retrieves a referred friend by ID.
4197
4140
  * @param - ID of the referred friend to retrieve.
4141
+ * @returns Retrieved referred friend.
4198
4142
  */
4199
- (referredFriendId: string): Promise<GetReferredFriendResponse & GetReferredFriendResponseNonNullableFields>;
4143
+ (referredFriendId: string): Promise<ReferredFriend & ReferredFriendNonNullableFields>;
4200
4144
  }
4201
4145
  declare function getReferredFriendByContactId$1(httpClient: HttpClient): GetReferredFriendByContactIdSignature;
4202
4146
  interface GetReferredFriendByContactIdSignature {
@@ -4205,9 +4149,8 @@ interface GetReferredFriendByContactIdSignature {
4205
4149
  *
4206
4150
  * You can use `me` instead of a specific contact ID to get the referred friend for the current identity's contact.
4207
4151
  * @param - Contact ID or "me" to get the current identity's contact.
4208
- * @returns Retrieved referred friend.
4209
4152
  */
4210
- (contactId: string): Promise<ReferredFriend & ReferredFriendNonNullableFields>;
4153
+ (contactId: string): Promise<GetReferredFriendByContactIdResponse & GetReferredFriendByContactIdResponseNonNullableFields>;
4211
4154
  }
4212
4155
  declare function updateReferredFriend$1(httpClient: HttpClient): UpdateReferredFriendSignature;
4213
4156
  interface UpdateReferredFriendSignature {
@@ -506,18 +506,7 @@ interface ReferralProgram {
506
506
  * Specifies the reward given to an existing customer who referred a new customer to the business.
507
507
  */
508
508
  referringCustomerReward?: Reward$2;
509
- /**
510
- * List of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an item.
511
- *
512
- * Possible values:
513
- *
514
- * - `UNKNOWN`: Action is unknown.
515
- * - `STORE_ORDER_PLACED`: Referred friend ordered and paid for an order in a store.
516
- * - `PLAN_ORDERED`: Referred friend ordered and paid for a plan.
517
- * - `TICKET_ORDERED`: Referred friend ordered and paid for a ticket.
518
- * - `SESSION_BOOKED`: Referred friend booked and paid for a session.
519
- * - `RESTAURANT_ORDER_PLACED`: Referred friend placed and paid for a restaurant order.
520
- */
509
+ /** List of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an item. */
521
510
  successfulReferralActions?: Action[];
522
511
  /** Configures email notifications for the referral program. */
523
512
  emails?: Emails;
@@ -529,13 +518,13 @@ interface ReferralProgram {
529
518
  }
530
519
  /** Status of the referral program. */
531
520
  declare enum ProgramStatus {
532
- /** The status of the referral program is unknown. This value is not used. */
521
+ /** Unknown program status. */
533
522
  UNKNOWN = "UNKNOWN",
534
- /** The referral program is in a draft state and is being modified. It is not yet active. */
523
+ /** Referral program is in a draft state and is being modified. It is not yet active. */
535
524
  DRAFT = "DRAFT",
536
- /** The referral program is active. */
525
+ /** Referral program is active. */
537
526
  ACTIVE = "ACTIVE",
538
- /** The referral program is paused. */
527
+ /** Referral program is paused. */
539
528
  PAUSED = "PAUSED"
540
529
  }
541
530
  interface Reward$2 extends RewardOptionsOneOf$1 {
@@ -574,14 +563,7 @@ interface Coupon$2 extends CouponDiscountTypeOptionsOneOf$2, CouponScopeOrMinSub
574
563
  scope?: CouponScope$2;
575
564
  /** Coupon name. */
576
565
  name?: string;
577
- /**
578
- * Coupon discount type.
579
- *
580
- * - `UNKNOWN`: Unknown discount type.
581
- * - `FIXED_AMOUNT`: Discount as a fixed amount.
582
- * - `PERCENTAGE`: Discount as a perctange.
583
- * - `FREE_SHIPPING`: Free shipping. If `true`, the coupon applies to all items in all `namespaces`.
584
- */
566
+ /** Coupon discount type. */
585
567
  discountType?: DiscountType$2;
586
568
  /**
587
569
  * Whether the coupon is limited to one item.
@@ -655,7 +637,7 @@ declare enum Action {
655
637
  UNKNOWN = "UNKNOWN",
656
638
  /** Referred friend ordered and paid for an order in a store. */
657
639
  STORE_ORDER_PLACED = "STORE_ORDER_PLACED",
658
- /** Referred friend ordered and paid for a plan */
640
+ /** Referred friend ordered and paid for a plan. */
659
641
  PLAN_ORDERED = "PLAN_ORDERED",
660
642
  /** Referred friend ordered and paid for a ticket. */
661
643
  TICKET_ORDERED = "TICKET_ORDERED",
@@ -665,18 +647,7 @@ declare enum Action {
665
647
  RESTAURANT_ORDER_PLACED = "RESTAURANT_ORDER_PLACED"
666
648
  }
667
649
  interface Emails {
668
- /**
669
- * Configures email invitations to encourage customers to refer their friends. Select the apps for which this feature is enabled.
670
- *
671
- * Available apps:
672
- *
673
- * - `UNKNOWN`: Unknown email.
674
- * - `STORES`: Send an email to customers who've placed an order with stores.
675
- * - `PRICING_PLANS`: Send an email to customers who've placed an order with pricing plans.
676
- * - `EVENTS`: Send an email to customers who've placed an order with events.
677
- * - `BOOKINGS`: Send an email to customers who've placed an order with bookings.
678
- * - `RESTAURANTS`: Send an email to customers who've placed an order with restaurants.
679
- */
650
+ /** Configures email invitations to encourage customers to refer their friends. Select the apps for which this feature is enabled. */
680
651
  encourageToReferFriends?: App[];
681
652
  /**
682
653
  * Whether to send email notifications to referring customers when they receive a referral reward.
@@ -2392,13 +2363,6 @@ interface V1Coupon$1 {
2392
2363
  code?: string;
2393
2364
  /**
2394
2365
  * Current status of the coupon.
2395
- *
2396
- * Possible values:
2397
- *
2398
- * - `UNKNOWN`: Unknown coupon status.
2399
- * - `ACTIVE`: Coupon is active and can be applied.
2400
- * - `APPLIED`: Coupon was already applied and can't be used anymore.
2401
- * - `DELETED`: Coupon was deleted.
2402
2366
  * @readonly
2403
2367
  */
2404
2368
  status?: Status$2;
@@ -2409,13 +2373,13 @@ interface V1Coupon$1 {
2409
2373
  couponSpecification?: Coupon$1;
2410
2374
  }
2411
2375
  declare enum Status$2 {
2412
- /** The coupon status is unknown or not specified. */
2376
+ /** Coupon status is unknown or not specified. */
2413
2377
  UNKNOWN = "UNKNOWN",
2414
- /** The coupon is active and can be applied to purchases. */
2378
+ /** Coupon is active and can be applied to purchases. */
2415
2379
  ACTIVE = "ACTIVE",
2416
- /** The coupon has been applied and can't be used again. */
2380
+ /** Coupon was applied and can't be used again. */
2417
2381
  APPLIED = "APPLIED",
2418
- /** The coupon has been deleted and is no longer valid. */
2382
+ /** Coupon was deleted and is no longer valid. */
2419
2383
  DELETED = "DELETED"
2420
2384
  }
2421
2385
  interface Coupon$1 extends CouponDiscountTypeOptionsOneOf$1, CouponScopeOrMinSubtotalOneOf$1 {
@@ -2429,14 +2393,7 @@ interface Coupon$1 extends CouponDiscountTypeOptionsOneOf$1, CouponScopeOrMinSub
2429
2393
  scope?: CouponScope$1;
2430
2394
  /** Coupon name. */
2431
2395
  name?: string;
2432
- /**
2433
- * Coupon discount type.
2434
- *
2435
- * - `UNKNOWN`: Unknown discount type.
2436
- * - `FIXED_AMOUNT`: Discount as a fixed amount.
2437
- * - `PERCENTAGE`: Discount as a perctange.
2438
- * - `FREE_SHIPPING`: Free shipping. If `true`, the coupon applies to all items in all `namespaces`.
2439
- */
2396
+ /** Coupon discount type. */
2440
2397
  discountType?: DiscountType$1;
2441
2398
  /**
2442
2399
  * Whether the coupon is limited to one item.
@@ -3040,15 +2997,7 @@ interface ReferralReward extends ReferralRewardReceiverOneOf, ReferralRewardRewa
3040
2997
  * @readonly
3041
2998
  */
3042
2999
  _updatedDate?: Date | null;
3043
- /**
3044
- * Type of reward given.
3045
- *
3046
- * Possible values:
3047
- * - `UNKNOWN`: Unknown reward.
3048
- * - `COUPON`: A loyalty coupon is given.
3049
- * - `LOYALTY_POINTS`: Loyalty points are awarded.
3050
- * - `NOTHING`: No reward is given.
3051
- */
3000
+ /** Type of reward given. */
3052
3001
  rewardType?: RewardTypeType;
3053
3002
  }
3054
3003
  /** @oneof */
@@ -3072,9 +3021,9 @@ interface ReferralRewardRewardTypeOptionsOneOf {
3072
3021
  loyaltyPoints?: V1LoyaltyPoints;
3073
3022
  }
3074
3023
  declare enum RewardTypeType {
3075
- /** Unknown reward. */
3024
+ /** Unknown reward type. */
3076
3025
  UNKNOWN = "UNKNOWN",
3077
- /** A loyalty coupon is given. */
3026
+ /** Loyalty coupon is given. */
3078
3027
  COUPON = "COUPON",
3079
3028
  /** Loyalty points are awarded. */
3080
3029
  LOYALTY_POINTS = "LOYALTY_POINTS",
@@ -3094,13 +3043,6 @@ interface V1Coupon {
3094
3043
  code?: string;
3095
3044
  /**
3096
3045
  * Current status of the coupon.
3097
- *
3098
- * Possible values:
3099
- *
3100
- * - `UNKNOWN`: Unknown coupon status.
3101
- * - `ACTIVE`: Coupon is active and can be applied.
3102
- * - `APPLIED`: Coupon was already applied and can't be used anymore.
3103
- * - `DELETED`: Coupon was deleted.
3104
3046
  * @readonly
3105
3047
  */
3106
3048
  status?: Status$1;
@@ -3111,13 +3053,13 @@ interface V1Coupon {
3111
3053
  couponSpecification?: Coupon;
3112
3054
  }
3113
3055
  declare enum Status$1 {
3114
- /** The coupon status is unknown or not specified. */
3056
+ /** Coupon status is unknown or not specified. */
3115
3057
  UNKNOWN = "UNKNOWN",
3116
- /** The coupon is active and can be applied to purchases. */
3058
+ /** Coupon is active and can be applied to purchases. */
3117
3059
  ACTIVE = "ACTIVE",
3118
- /** The coupon has been applied and can't be used again. */
3060
+ /** Coupon was applied and can't be used again. */
3119
3061
  APPLIED = "APPLIED",
3120
- /** The coupon has been deleted and is no longer valid. */
3062
+ /** Coupon was deleted and is no longer valid. */
3121
3063
  DELETED = "DELETED"
3122
3064
  }
3123
3065
  interface Coupon extends CouponDiscountTypeOptionsOneOf, CouponScopeOrMinSubtotalOneOf {
@@ -3131,14 +3073,7 @@ interface Coupon extends CouponDiscountTypeOptionsOneOf, CouponScopeOrMinSubtota
3131
3073
  scope?: CouponScope;
3132
3074
  /** Coupon name. */
3133
3075
  name?: string;
3134
- /**
3135
- * Coupon discount type.
3136
- *
3137
- * - `UNKNOWN`: Unknown discount type.
3138
- * - `FIXED_AMOUNT`: Discount as a fixed amount.
3139
- * - `PERCENTAGE`: Discount as a perctange.
3140
- * - `FREE_SHIPPING`: Free shipping. If `true`, the coupon applies to all items in all `namespaces`.
3141
- */
3076
+ /** Coupon discount type. */
3142
3077
  discountType?: DiscountType;
3143
3078
  /**
3144
3079
  * Whether the coupon is limited to one item.
@@ -3180,7 +3115,7 @@ declare enum DiscountType {
3180
3115
  FIXED_AMOUNT = "FIXED_AMOUNT",
3181
3116
  /** Discount as a percentage. */
3182
3117
  PERCENTAGE = "PERCENTAGE",
3183
- /** Free shipping. */
3118
+ /** Free shipping. If `true`, the coupon applies to all items in all `namespaces`. */
3184
3119
  FREE_SHIPPING = "FREE_SHIPPING"
3185
3120
  }
3186
3121
  interface FixedAmountDiscount {
@@ -3622,12 +3557,20 @@ interface GetReferralRewardSignature {
3622
3557
  declare function queryReferralRewards$1(httpClient: HttpClient): QueryReferralRewardsSignature;
3623
3558
  interface QueryReferralRewardsSignature {
3624
3559
  /**
3625
- * Retrieves a list of referral rewards, given the provided paging, filtering, and sorting.
3560
+ * Creates a query to retrieve a list of referral rewards.
3626
3561
  *
3627
- * To learn about working with _Query_ endpoints, see
3628
- * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
3629
- * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),
3630
- * and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
3562
+ * The `queryReferralRewards()` function builds a query to retrieve a list of events and returns a `ReferralRewardsQueryBuilder` object.
3563
+ *
3564
+ * The returned object contains the query definition, which is typically used to run the query using the `find()` function.
3565
+ *
3566
+ * You can refine the query by chaining `ReferralRewardsQueryBuilder` functions onto the query. `ReferralRewardsQueryBuilder` functions enable you to sort, filter, and control the results `queryReferralRewards()` returns.
3567
+ *
3568
+ * `queryReferralRewards()` runs with these `ReferralRewardsQueryBuilder` defaults, which you can override:
3569
+ *
3570
+ * - `limit(50)`
3571
+ * - `descending("_createdDate")`
3572
+ *
3573
+ * The functions that are chained to `queryReferralRewards()` are applied in the order they're called. For example, if you apply ascending('rewardedReferredFriendId') and then descending('rewardType'), the results are sorted first by the referred friend ID, and then, if there are multiple results with the same ID, the items are sorted by reward type.
3631
3574
  */
3632
3575
  (options?: QueryReferralRewardsOptions | undefined): ReferralRewardsQueryBuilder;
3633
3576
  }
@@ -3717,7 +3660,7 @@ declare enum Status {
3717
3660
  UNKNOWN = "UNKNOWN",
3718
3661
  /** Initial status when the referred friend joins the site as a member. */
3719
3662
  SIGN_UP_COMPLETED = "SIGN_UP_COMPLETED",
3720
- /** Status after the referred friend completes specific actions, such as making a purchase. */
3663
+ /** Status after the referred friend completes a specific action, such as making a purchase. */
3721
3664
  ACTIONS_COMPLETED = "ACTIONS_COMPLETED"
3722
3665
  }
3723
3666
  interface CreateReferredFriendRequest {
@@ -4195,8 +4138,9 @@ interface GetReferredFriendSignature {
4195
4138
  /**
4196
4139
  * Retrieves a referred friend by ID.
4197
4140
  * @param - ID of the referred friend to retrieve.
4141
+ * @returns Retrieved referred friend.
4198
4142
  */
4199
- (referredFriendId: string): Promise<GetReferredFriendResponse & GetReferredFriendResponseNonNullableFields>;
4143
+ (referredFriendId: string): Promise<ReferredFriend & ReferredFriendNonNullableFields>;
4200
4144
  }
4201
4145
  declare function getReferredFriendByContactId$1(httpClient: HttpClient): GetReferredFriendByContactIdSignature;
4202
4146
  interface GetReferredFriendByContactIdSignature {
@@ -4205,9 +4149,8 @@ interface GetReferredFriendByContactIdSignature {
4205
4149
  *
4206
4150
  * You can use `me` instead of a specific contact ID to get the referred friend for the current identity's contact.
4207
4151
  * @param - Contact ID or "me" to get the current identity's contact.
4208
- * @returns Retrieved referred friend.
4209
4152
  */
4210
- (contactId: string): Promise<ReferredFriend & ReferredFriendNonNullableFields>;
4153
+ (contactId: string): Promise<GetReferredFriendByContactIdResponse & GetReferredFriendByContactIdResponseNonNullableFields>;
4211
4154
  }
4212
4155
  declare function updateReferredFriend$1(httpClient: HttpClient): UpdateReferredFriendSignature;
4213
4156
  interface UpdateReferredFriendSignature {
@@ -28,18 +28,7 @@ interface ReferralProgram$1 {
28
28
  * Specifies the reward given to an existing customer who referred a new customer to the business.
29
29
  */
30
30
  referringCustomerReward?: Reward$3;
31
- /**
32
- * List of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an item.
33
- *
34
- * Possible values:
35
- *
36
- * - `UNKNOWN`: Action is unknown.
37
- * - `STORE_ORDER_PLACED`: Referred friend ordered and paid for an order in a store.
38
- * - `PLAN_ORDERED`: Referred friend ordered and paid for a plan.
39
- * - `TICKET_ORDERED`: Referred friend ordered and paid for a ticket.
40
- * - `SESSION_BOOKED`: Referred friend booked and paid for a session.
41
- * - `RESTAURANT_ORDER_PLACED`: Referred friend placed and paid for a restaurant order.
42
- */
31
+ /** 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
32
  successfulReferralActions?: Action$1[];
44
33
  /** Configures email notifications for the referral program. */
45
34
  emails?: Emails$1;
@@ -51,13 +40,13 @@ interface ReferralProgram$1 {
51
40
  }
52
41
  /** Status of the referral program. */
53
42
  declare enum ProgramStatus$1 {
54
- /** The status of the referral program is unknown. This value is not used. */
43
+ /** Unknown program status. */
55
44
  UNKNOWN = "UNKNOWN",
56
- /** The referral program is in a draft state and is being modified. It is not yet active. */
45
+ /** Referral program is in a draft state and is being modified. It is not yet active. */
57
46
  DRAFT = "DRAFT",
58
- /** The referral program is active. */
47
+ /** Referral program is active. */
59
48
  ACTIVE = "ACTIVE",
60
- /** The referral program is paused. */
49
+ /** Referral program is paused. */
61
50
  PAUSED = "PAUSED"
62
51
  }
63
52
  interface Reward$3 extends RewardOptionsOneOf$1 {
@@ -96,14 +85,7 @@ interface Coupon$5 extends CouponDiscountTypeOptionsOneOf$5, CouponScopeOrMinSub
96
85
  scope?: CouponScope$5;
97
86
  /** Coupon name. */
98
87
  name?: string;
99
- /**
100
- * Coupon discount type.
101
- *
102
- * - `UNKNOWN`: Unknown discount type.
103
- * - `FIXED_AMOUNT`: Discount as a fixed amount.
104
- * - `PERCENTAGE`: Discount as a perctange.
105
- * - `FREE_SHIPPING`: Free shipping. If `true`, the coupon applies to all items in all `namespaces`.
106
- */
88
+ /** Coupon discount type. */
107
89
  discountType?: DiscountType$5;
108
90
  /**
109
91
  * Whether the coupon is limited to one item.
@@ -177,7 +159,7 @@ declare enum Action$1 {
177
159
  UNKNOWN = "UNKNOWN",
178
160
  /** Referred friend ordered and paid for an order in a store. */
179
161
  STORE_ORDER_PLACED = "STORE_ORDER_PLACED",
180
- /** Referred friend ordered and paid for a plan */
162
+ /** Referred friend ordered and paid for a plan. */
181
163
  PLAN_ORDERED = "PLAN_ORDERED",
182
164
  /** Referred friend ordered and paid for a ticket. */
183
165
  TICKET_ORDERED = "TICKET_ORDERED",
@@ -187,18 +169,7 @@ declare enum Action$1 {
187
169
  RESTAURANT_ORDER_PLACED = "RESTAURANT_ORDER_PLACED"
188
170
  }
189
171
  interface Emails$1 {
190
- /**
191
- * Configures email invitations to encourage customers to refer their friends. Select the apps for which this feature is enabled.
192
- *
193
- * Available apps:
194
- *
195
- * - `UNKNOWN`: Unknown email.
196
- * - `STORES`: Send an email to customers who've placed an order with stores.
197
- * - `PRICING_PLANS`: Send an email to customers who've placed an order with pricing plans.
198
- * - `EVENTS`: Send an email to customers who've placed an order with events.
199
- * - `BOOKINGS`: Send an email to customers who've placed an order with bookings.
200
- * - `RESTAURANTS`: Send an email to customers who've placed an order with restaurants.
201
- */
172
+ /** Configures email invitations to encourage customers to refer their friends. Select the apps for which this feature is enabled. */
202
173
  encourageToReferFriends?: App$1[];
203
174
  /**
204
175
  * Whether to send email notifications to referring customers when they receive a referral reward.
@@ -388,18 +359,7 @@ interface ReferralProgram {
388
359
  * Specifies the reward given to an existing customer who referred a new customer to the business.
389
360
  */
390
361
  referringCustomerReward?: Reward$2;
391
- /**
392
- * List of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an item.
393
- *
394
- * Possible values:
395
- *
396
- * - `UNKNOWN`: Action is unknown.
397
- * - `STORE_ORDER_PLACED`: Referred friend ordered and paid for an order in a store.
398
- * - `PLAN_ORDERED`: Referred friend ordered and paid for a plan.
399
- * - `TICKET_ORDERED`: Referred friend ordered and paid for a ticket.
400
- * - `SESSION_BOOKED`: Referred friend booked and paid for a session.
401
- * - `RESTAURANT_ORDER_PLACED`: Referred friend placed and paid for a restaurant order.
402
- */
362
+ /** List of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an item. */
403
363
  successfulReferralActions?: Action[];
404
364
  /** Configures email notifications for the referral program. */
405
365
  emails?: Emails;
@@ -411,13 +371,13 @@ interface ReferralProgram {
411
371
  }
412
372
  /** Status of the referral program. */
413
373
  declare enum ProgramStatus {
414
- /** The status of the referral program is unknown. This value is not used. */
374
+ /** Unknown program status. */
415
375
  UNKNOWN = "UNKNOWN",
416
- /** The referral program is in a draft state and is being modified. It is not yet active. */
376
+ /** Referral program is in a draft state and is being modified. It is not yet active. */
417
377
  DRAFT = "DRAFT",
418
- /** The referral program is active. */
378
+ /** Referral program is active. */
419
379
  ACTIVE = "ACTIVE",
420
- /** The referral program is paused. */
380
+ /** Referral program is paused. */
421
381
  PAUSED = "PAUSED"
422
382
  }
423
383
  interface Reward$2 extends RewardOptionsOneOf {
@@ -456,14 +416,7 @@ interface Coupon$4 extends CouponDiscountTypeOptionsOneOf$4, CouponScopeOrMinSub
456
416
  scope?: CouponScope$4;
457
417
  /** Coupon name. */
458
418
  name?: string;
459
- /**
460
- * Coupon discount type.
461
- *
462
- * - `UNKNOWN`: Unknown discount type.
463
- * - `FIXED_AMOUNT`: Discount as a fixed amount.
464
- * - `PERCENTAGE`: Discount as a perctange.
465
- * - `FREE_SHIPPING`: Free shipping. If `true`, the coupon applies to all items in all `namespaces`.
466
- */
419
+ /** Coupon discount type. */
467
420
  discountType?: DiscountType$4;
468
421
  /**
469
422
  * Whether the coupon is limited to one item.
@@ -537,7 +490,7 @@ declare enum Action {
537
490
  UNKNOWN = "UNKNOWN",
538
491
  /** Referred friend ordered and paid for an order in a store. */
539
492
  STORE_ORDER_PLACED = "STORE_ORDER_PLACED",
540
- /** Referred friend ordered and paid for a plan */
493
+ /** Referred friend ordered and paid for a plan. */
541
494
  PLAN_ORDERED = "PLAN_ORDERED",
542
495
  /** Referred friend ordered and paid for a ticket. */
543
496
  TICKET_ORDERED = "TICKET_ORDERED",
@@ -547,18 +500,7 @@ declare enum Action {
547
500
  RESTAURANT_ORDER_PLACED = "RESTAURANT_ORDER_PLACED"
548
501
  }
549
502
  interface Emails {
550
- /**
551
- * Configures email invitations to encourage customers to refer their friends. Select the apps for which this feature is enabled.
552
- *
553
- * Available apps:
554
- *
555
- * - `UNKNOWN`: Unknown email.
556
- * - `STORES`: Send an email to customers who've placed an order with stores.
557
- * - `PRICING_PLANS`: Send an email to customers who've placed an order with pricing plans.
558
- * - `EVENTS`: Send an email to customers who've placed an order with events.
559
- * - `BOOKINGS`: Send an email to customers who've placed an order with bookings.
560
- * - `RESTAURANTS`: Send an email to customers who've placed an order with restaurants.
561
- */
503
+ /** Configures email invitations to encourage customers to refer their friends. Select the apps for which this feature is enabled. */
562
504
  encourageToReferFriends?: App[];
563
505
  /**
564
506
  * Whether to send email notifications to referring customers when they receive a referral reward.
@@ -1074,13 +1016,6 @@ interface V1Coupon$3 {
1074
1016
  code?: string;
1075
1017
  /**
1076
1018
  * Current status of the coupon.
1077
- *
1078
- * Possible values:
1079
- *
1080
- * - `UNKNOWN`: Unknown coupon status.
1081
- * - `ACTIVE`: Coupon is active and can be applied.
1082
- * - `APPLIED`: Coupon was already applied and can't be used anymore.
1083
- * - `DELETED`: Coupon was deleted.
1084
1019
  * @readonly
1085
1020
  */
1086
1021
  status?: Status$5;
@@ -1091,13 +1026,13 @@ interface V1Coupon$3 {
1091
1026
  couponSpecification?: Coupon$3;
1092
1027
  }
1093
1028
  declare enum Status$5 {
1094
- /** The coupon status is unknown or not specified. */
1029
+ /** Coupon status is unknown or not specified. */
1095
1030
  UNKNOWN = "UNKNOWN",
1096
- /** The coupon is active and can be applied to purchases. */
1031
+ /** Coupon is active and can be applied to purchases. */
1097
1032
  ACTIVE = "ACTIVE",
1098
- /** The coupon has been applied and can't be used again. */
1033
+ /** Coupon was applied and can't be used again. */
1099
1034
  APPLIED = "APPLIED",
1100
- /** The coupon has been deleted and is no longer valid. */
1035
+ /** Coupon was deleted and is no longer valid. */
1101
1036
  DELETED = "DELETED"
1102
1037
  }
1103
1038
  interface Coupon$3 extends CouponDiscountTypeOptionsOneOf$3, CouponScopeOrMinSubtotalOneOf$3 {
@@ -1111,14 +1046,7 @@ interface Coupon$3 extends CouponDiscountTypeOptionsOneOf$3, CouponScopeOrMinSub
1111
1046
  scope?: CouponScope$3;
1112
1047
  /** Coupon name. */
1113
1048
  name?: string;
1114
- /**
1115
- * Coupon discount type.
1116
- *
1117
- * - `UNKNOWN`: Unknown discount type.
1118
- * - `FIXED_AMOUNT`: Discount as a fixed amount.
1119
- * - `PERCENTAGE`: Discount as a perctange.
1120
- * - `FREE_SHIPPING`: Free shipping. If `true`, the coupon applies to all items in all `namespaces`.
1121
- */
1049
+ /** Coupon discount type. */
1122
1050
  discountType?: DiscountType$3;
1123
1051
  /**
1124
1052
  * Whether the coupon is limited to one item.
@@ -1616,13 +1544,6 @@ interface V1Coupon$2 {
1616
1544
  code?: string;
1617
1545
  /**
1618
1546
  * Current status of the coupon.
1619
- *
1620
- * Possible values:
1621
- *
1622
- * - `UNKNOWN`: Unknown coupon status.
1623
- * - `ACTIVE`: Coupon is active and can be applied.
1624
- * - `APPLIED`: Coupon was already applied and can't be used anymore.
1625
- * - `DELETED`: Coupon was deleted.
1626
1547
  * @readonly
1627
1548
  */
1628
1549
  status?: Status$4;
@@ -1633,13 +1554,13 @@ interface V1Coupon$2 {
1633
1554
  couponSpecification?: Coupon$2;
1634
1555
  }
1635
1556
  declare enum Status$4 {
1636
- /** The coupon status is unknown or not specified. */
1557
+ /** Coupon status is unknown or not specified. */
1637
1558
  UNKNOWN = "UNKNOWN",
1638
- /** The coupon is active and can be applied to purchases. */
1559
+ /** Coupon is active and can be applied to purchases. */
1639
1560
  ACTIVE = "ACTIVE",
1640
- /** The coupon has been applied and can't be used again. */
1561
+ /** Coupon was applied and can't be used again. */
1641
1562
  APPLIED = "APPLIED",
1642
- /** The coupon has been deleted and is no longer valid. */
1563
+ /** Coupon was deleted and is no longer valid. */
1643
1564
  DELETED = "DELETED"
1644
1565
  }
1645
1566
  interface Coupon$2 extends CouponDiscountTypeOptionsOneOf$2, CouponScopeOrMinSubtotalOneOf$2 {
@@ -1653,14 +1574,7 @@ interface Coupon$2 extends CouponDiscountTypeOptionsOneOf$2, CouponScopeOrMinSub
1653
1574
  scope?: CouponScope$2;
1654
1575
  /** Coupon name. */
1655
1576
  name?: string;
1656
- /**
1657
- * Coupon discount type.
1658
- *
1659
- * - `UNKNOWN`: Unknown discount type.
1660
- * - `FIXED_AMOUNT`: Discount as a fixed amount.
1661
- * - `PERCENTAGE`: Discount as a perctange.
1662
- * - `FREE_SHIPPING`: Free shipping. If `true`, the coupon applies to all items in all `namespaces`.
1663
- */
1577
+ /** Coupon discount type. */
1664
1578
  discountType?: DiscountType$2;
1665
1579
  /**
1666
1580
  * Whether the coupon is limited to one item.
@@ -1893,15 +1807,7 @@ interface ReferralReward$1 extends ReferralRewardReceiverOneOf$1, ReferralReward
1893
1807
  * @readonly
1894
1808
  */
1895
1809
  updatedDate?: Date | null;
1896
- /**
1897
- * Type of reward given.
1898
- *
1899
- * Possible values:
1900
- * - `UNKNOWN`: Unknown reward.
1901
- * - `COUPON`: A loyalty coupon is given.
1902
- * - `LOYALTY_POINTS`: Loyalty points are awarded.
1903
- * - `NOTHING`: No reward is given.
1904
- */
1810
+ /** Type of reward given. */
1905
1811
  rewardType?: RewardTypeType$1;
1906
1812
  }
1907
1813
  /** @oneof */
@@ -1925,9 +1831,9 @@ interface ReferralRewardRewardTypeOptionsOneOf$1 {
1925
1831
  loyaltyPoints?: V1LoyaltyPoints$1;
1926
1832
  }
1927
1833
  declare enum RewardTypeType$1 {
1928
- /** Unknown reward. */
1834
+ /** Unknown reward type. */
1929
1835
  UNKNOWN = "UNKNOWN",
1930
- /** A loyalty coupon is given. */
1836
+ /** Loyalty coupon is given. */
1931
1837
  COUPON = "COUPON",
1932
1838
  /** Loyalty points are awarded. */
1933
1839
  LOYALTY_POINTS = "LOYALTY_POINTS",
@@ -1947,13 +1853,6 @@ interface V1Coupon$1 {
1947
1853
  code?: string;
1948
1854
  /**
1949
1855
  * Current status of the coupon.
1950
- *
1951
- * Possible values:
1952
- *
1953
- * - `UNKNOWN`: Unknown coupon status.
1954
- * - `ACTIVE`: Coupon is active and can be applied.
1955
- * - `APPLIED`: Coupon was already applied and can't be used anymore.
1956
- * - `DELETED`: Coupon was deleted.
1957
1856
  * @readonly
1958
1857
  */
1959
1858
  status?: Status$3;
@@ -1964,13 +1863,13 @@ interface V1Coupon$1 {
1964
1863
  couponSpecification?: Coupon$1;
1965
1864
  }
1966
1865
  declare enum Status$3 {
1967
- /** The coupon status is unknown or not specified. */
1866
+ /** Coupon status is unknown or not specified. */
1968
1867
  UNKNOWN = "UNKNOWN",
1969
- /** The coupon is active and can be applied to purchases. */
1868
+ /** Coupon is active and can be applied to purchases. */
1970
1869
  ACTIVE = "ACTIVE",
1971
- /** The coupon has been applied and can't be used again. */
1870
+ /** Coupon was applied and can't be used again. */
1972
1871
  APPLIED = "APPLIED",
1973
- /** The coupon has been deleted and is no longer valid. */
1872
+ /** Coupon was deleted and is no longer valid. */
1974
1873
  DELETED = "DELETED"
1975
1874
  }
1976
1875
  interface Coupon$1 extends CouponDiscountTypeOptionsOneOf$1, CouponScopeOrMinSubtotalOneOf$1 {
@@ -1984,14 +1883,7 @@ interface Coupon$1 extends CouponDiscountTypeOptionsOneOf$1, CouponScopeOrMinSub
1984
1883
  scope?: CouponScope$1;
1985
1884
  /** Coupon name. */
1986
1885
  name?: string;
1987
- /**
1988
- * Coupon discount type.
1989
- *
1990
- * - `UNKNOWN`: Unknown discount type.
1991
- * - `FIXED_AMOUNT`: Discount as a fixed amount.
1992
- * - `PERCENTAGE`: Discount as a perctange.
1993
- * - `FREE_SHIPPING`: Free shipping. If `true`, the coupon applies to all items in all `namespaces`.
1994
- */
1886
+ /** Coupon discount type. */
1995
1887
  discountType?: DiscountType$1;
1996
1888
  /**
1997
1889
  * Whether the coupon is limited to one item.
@@ -2033,7 +1925,7 @@ declare enum DiscountType$1 {
2033
1925
  FIXED_AMOUNT = "FIXED_AMOUNT",
2034
1926
  /** Discount as a percentage. */
2035
1927
  PERCENTAGE = "PERCENTAGE",
2036
- /** Free shipping. */
1928
+ /** Free shipping. If `true`, the coupon applies to all items in all `namespaces`. */
2037
1929
  FREE_SHIPPING = "FREE_SHIPPING"
2038
1930
  }
2039
1931
  interface FixedAmountDiscount$1 {
@@ -2237,15 +2129,7 @@ interface ReferralReward extends ReferralRewardReceiverOneOf, ReferralRewardRewa
2237
2129
  * @readonly
2238
2130
  */
2239
2131
  _updatedDate?: Date | null;
2240
- /**
2241
- * Type of reward given.
2242
- *
2243
- * Possible values:
2244
- * - `UNKNOWN`: Unknown reward.
2245
- * - `COUPON`: A loyalty coupon is given.
2246
- * - `LOYALTY_POINTS`: Loyalty points are awarded.
2247
- * - `NOTHING`: No reward is given.
2248
- */
2132
+ /** Type of reward given. */
2249
2133
  rewardType?: RewardTypeType;
2250
2134
  }
2251
2135
  /** @oneof */
@@ -2269,9 +2153,9 @@ interface ReferralRewardRewardTypeOptionsOneOf {
2269
2153
  loyaltyPoints?: V1LoyaltyPoints;
2270
2154
  }
2271
2155
  declare enum RewardTypeType {
2272
- /** Unknown reward. */
2156
+ /** Unknown reward type. */
2273
2157
  UNKNOWN = "UNKNOWN",
2274
- /** A loyalty coupon is given. */
2158
+ /** Loyalty coupon is given. */
2275
2159
  COUPON = "COUPON",
2276
2160
  /** Loyalty points are awarded. */
2277
2161
  LOYALTY_POINTS = "LOYALTY_POINTS",
@@ -2291,13 +2175,6 @@ interface V1Coupon {
2291
2175
  code?: string;
2292
2176
  /**
2293
2177
  * Current status of the coupon.
2294
- *
2295
- * Possible values:
2296
- *
2297
- * - `UNKNOWN`: Unknown coupon status.
2298
- * - `ACTIVE`: Coupon is active and can be applied.
2299
- * - `APPLIED`: Coupon was already applied and can't be used anymore.
2300
- * - `DELETED`: Coupon was deleted.
2301
2178
  * @readonly
2302
2179
  */
2303
2180
  status?: Status$2;
@@ -2308,13 +2185,13 @@ interface V1Coupon {
2308
2185
  couponSpecification?: Coupon;
2309
2186
  }
2310
2187
  declare enum Status$2 {
2311
- /** The coupon status is unknown or not specified. */
2188
+ /** Coupon status is unknown or not specified. */
2312
2189
  UNKNOWN = "UNKNOWN",
2313
- /** The coupon is active and can be applied to purchases. */
2190
+ /** Coupon is active and can be applied to purchases. */
2314
2191
  ACTIVE = "ACTIVE",
2315
- /** The coupon has been applied and can't be used again. */
2192
+ /** Coupon was applied and can't be used again. */
2316
2193
  APPLIED = "APPLIED",
2317
- /** The coupon has been deleted and is no longer valid. */
2194
+ /** Coupon was deleted and is no longer valid. */
2318
2195
  DELETED = "DELETED"
2319
2196
  }
2320
2197
  interface Coupon extends CouponDiscountTypeOptionsOneOf, CouponScopeOrMinSubtotalOneOf {
@@ -2328,14 +2205,7 @@ interface Coupon extends CouponDiscountTypeOptionsOneOf, CouponScopeOrMinSubtota
2328
2205
  scope?: CouponScope;
2329
2206
  /** Coupon name. */
2330
2207
  name?: string;
2331
- /**
2332
- * Coupon discount type.
2333
- *
2334
- * - `UNKNOWN`: Unknown discount type.
2335
- * - `FIXED_AMOUNT`: Discount as a fixed amount.
2336
- * - `PERCENTAGE`: Discount as a perctange.
2337
- * - `FREE_SHIPPING`: Free shipping. If `true`, the coupon applies to all items in all `namespaces`.
2338
- */
2208
+ /** Coupon discount type. */
2339
2209
  discountType?: DiscountType;
2340
2210
  /**
2341
2211
  * Whether the coupon is limited to one item.
@@ -2377,7 +2247,7 @@ declare enum DiscountType {
2377
2247
  FIXED_AMOUNT = "FIXED_AMOUNT",
2378
2248
  /** Discount as a percentage. */
2379
2249
  PERCENTAGE = "PERCENTAGE",
2380
- /** Free shipping. */
2250
+ /** Free shipping. If `true`, the coupon applies to all items in all `namespaces`. */
2381
2251
  FREE_SHIPPING = "FREE_SHIPPING"
2382
2252
  }
2383
2253
  interface FixedAmountDiscount {
@@ -2607,7 +2477,7 @@ declare enum Status$1 {
2607
2477
  UNKNOWN = "UNKNOWN",
2608
2478
  /** Initial status when the referred friend joins the site as a member. */
2609
2479
  SIGN_UP_COMPLETED = "SIGN_UP_COMPLETED",
2610
- /** Status after the referred friend completes specific actions, such as making a purchase. */
2480
+ /** Status after the referred friend completes a specific action, such as making a purchase. */
2611
2481
  ACTIONS_COMPLETED = "ACTIONS_COMPLETED"
2612
2482
  }
2613
2483
  interface CreateReferredFriendRequest$1 {
@@ -2794,7 +2664,7 @@ declare enum Status {
2794
2664
  UNKNOWN = "UNKNOWN",
2795
2665
  /** Initial status when the referred friend joins the site as a member. */
2796
2666
  SIGN_UP_COMPLETED = "SIGN_UP_COMPLETED",
2797
- /** Status after the referred friend completes specific actions, such as making a purchase. */
2667
+ /** Status after the referred friend completes a specific action, such as making a purchase. */
2798
2668
  ACTIONS_COMPLETED = "ACTIONS_COMPLETED"
2799
2669
  }
2800
2670
  interface CreateReferredFriendRequest {