@wix/referral 1.0.15 → 1.0.17

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.
@@ -83,7 +83,7 @@ interface ReferralProgram {
83
83
  */
84
84
  referringCustomerReward?: Reward$2;
85
85
  /**
86
- * List of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an order.
86
+ * List of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an item.
87
87
  *
88
88
  * Possible values:
89
89
  *
@@ -128,7 +128,7 @@ declare enum ProgramStatus {
128
128
  interface Reward$2 extends RewardOptionsOneOf$1 {
129
129
  /** Options for coupon reward type. */
130
130
  couponOptions?: Coupon$2;
131
- /** Options for Loyalty points reward type. */
131
+ /** Options for the Loyalty points reward type. */
132
132
  loyaltyPointsOptions?: LoyaltyPoints$2;
133
133
  /** Type of the reward. */
134
134
  type?: Type$1;
@@ -137,7 +137,7 @@ interface Reward$2 extends RewardOptionsOneOf$1 {
137
137
  interface RewardOptionsOneOf$1 {
138
138
  /** Options for coupon reward type. */
139
139
  couponOptions?: Coupon$2;
140
- /** Options for Loyalty points reward type. */
140
+ /** Options for the Loyalty points reward type. */
141
141
  loyaltyPointsOptions?: LoyaltyPoints$2;
142
142
  }
143
143
  declare enum Type$1 {
@@ -153,7 +153,7 @@ declare enum Type$1 {
153
153
  interface Coupon$2 extends CouponDiscountTypeOptionsOneOf$2, CouponScopeOrMinSubtotalOneOf$2 {
154
154
  /** Options for fixed amount discount. */
155
155
  fixedAmountOptions?: FixedAmountDiscount$2;
156
- /** Options for percentage discount. */
156
+ /** Options for percentage discounts. */
157
157
  percentageOptions?: PercentageDiscount$2;
158
158
  /** Limit the coupon to carts with a subtotal above this number. */
159
159
  minimumSubtotal?: number;
@@ -193,7 +193,7 @@ interface Coupon$2 extends CouponDiscountTypeOptionsOneOf$2, CouponScopeOrMinSub
193
193
  interface CouponDiscountTypeOptionsOneOf$2 {
194
194
  /** Options for fixed amount discount. */
195
195
  fixedAmountOptions?: FixedAmountDiscount$2;
196
- /** Options for percentage discount. */
196
+ /** Options for percentage discounts. */
197
197
  percentageOptions?: PercentageDiscount$2;
198
198
  }
199
199
  /** @oneof */
@@ -214,7 +214,7 @@ declare enum DiscountType$2 {
214
214
  FREE_SHIPPING = "FREE_SHIPPING"
215
215
  }
216
216
  interface FixedAmountDiscount$2 {
217
- /** Amount of discount as a fixed value. */
217
+ /** Amount of the discount as a fixed value. */
218
218
  amount?: number;
219
219
  }
220
220
  interface PercentageDiscount$2 {
@@ -224,7 +224,7 @@ interface PercentageDiscount$2 {
224
224
  interface CouponScope$2 {
225
225
  /** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
226
226
  namespace?: string;
227
- /** Coupon scope's applied group, for example: Event or ticket in Wix Events */
227
+ /** Coupon scope's applied group, for example, Event or ticket in Wix Events. */
228
228
  group?: Group$2;
229
229
  }
230
230
  interface Group$2 {
@@ -265,7 +265,10 @@ interface Emails {
265
265
  * - `RESTAURANTS`: Send an email to customers who've placed an order with restaurants.
266
266
  */
267
267
  encourageToReferFriends?: App[];
268
- /** Whether to notify customers about their referral reward email. Set to `true` to enable email notifications. */
268
+ /**
269
+ * Whether to send email notifications to referring customers when they receive a referral reward.
270
+ * If true, referring customers will be notified by email when their referred friend completes a qualifying action (for example, placing an order).
271
+ */
269
272
  notifyCustomersAboutReward?: boolean;
270
273
  }
271
274
  declare enum App {
@@ -284,7 +287,7 @@ declare enum App {
284
287
  }
285
288
  interface PremiumFeatures {
286
289
  /**
287
- * Whether the user has access to the referral program feature.
290
+ * Whether the site owner has access to the referral program feature.
288
291
  * @readonly
289
292
  */
290
293
  referralProgram?: boolean;
@@ -407,7 +410,7 @@ interface PauseReferralProgramResponse {
407
410
  referralProgram?: ReferralProgram;
408
411
  }
409
412
  interface GetAISocialMediaPostsSuggestionsRequest {
410
- /** Topic to generate social media post suggestions for. */
413
+ /** Topic to generate social media post suggestions for. For example, fitness, education, technology. */
411
414
  topic?: string;
412
415
  }
413
416
  interface GetAISocialMediaPostsSuggestionsResponse {
@@ -423,7 +426,7 @@ interface AISocialMediaPostSuggestion {
423
426
  hashtags?: string[];
424
427
  }
425
428
  interface GenerateAISocialMediaPostsSuggestionsRequest {
426
- /** Topic to generate social media post suggestions for. */
429
+ /** Topic to generate social media post suggestions for. For example, fitness, education, technology. */
427
430
  topic?: string;
428
431
  }
429
432
  interface GenerateAISocialMediaPostsSuggestionsResponse {
@@ -493,7 +496,7 @@ interface DomainEventBodyOneOf$4 {
493
496
  interface EntityCreatedEvent$4 {
494
497
  entity?: string;
495
498
  }
496
- interface RestoreInfo$3 {
499
+ interface RestoreInfo$4 {
497
500
  deletedDate?: Date;
498
501
  }
499
502
  interface EntityUpdatedEvent$4 {
@@ -1528,11 +1531,11 @@ interface ReferralProgramsQueryBuilder {
1528
1531
  find: () => Promise<ReferralProgramsQueryResult>;
1529
1532
  }
1530
1533
  interface GetAiSocialMediaPostsSuggestionsOptions {
1531
- /** Topic to generate social media post suggestions for. */
1534
+ /** Topic to generate social media post suggestions for. For example, fitness, education, technology. */
1532
1535
  topic?: string;
1533
1536
  }
1534
1537
  interface GenerateAiSocialMediaPostsSuggestionsOptions {
1535
- /** Topic to generate social media post suggestions for. */
1538
+ /** Topic to generate social media post suggestions for. For example, fitness, education, technology. */
1536
1539
  topic?: string;
1537
1540
  }
1538
1541
 
@@ -1584,7 +1587,15 @@ interface PauseReferralProgramSignature {
1584
1587
  declare function getAiSocialMediaPostsSuggestions$1(httpClient: HttpClient): GetAiSocialMediaPostsSuggestionsSignature;
1585
1588
  interface GetAiSocialMediaPostsSuggestionsSignature {
1586
1589
  /**
1587
- * Retrieves pre-generated social media post suggestions for promoting the referral program.
1590
+ * Retrieves pre-generated AI social media post suggestions for promoting the referral program.
1591
+ *
1592
+ * Use this method to get a list of AI-generated social media post suggestions
1593
+ * that site owners or members can use to promote the referral program.
1594
+ *
1595
+ * These suggestions can be displayed to users in your app's UI, allowing them to easily copy and share on their preferred social media platforms.
1596
+ *
1597
+ * >**Note**: This endpoint retrieves existing suggestions. To generate new ones,
1598
+ * use the [Generate AI Social Media Posts Suggestions](https://dev.wix.com/docs/velo/api-reference/wix-marketing-v2/referral-program/programs/generate-ai-social-media-posts-suggestions) endpoint.
1588
1599
  */
1589
1600
  (options?: GetAiSocialMediaPostsSuggestionsOptions | undefined): Promise<GetAISocialMediaPostsSuggestionsResponse & GetAISocialMediaPostsSuggestionsResponseNonNullableFields>;
1590
1601
  }
@@ -1592,6 +1603,11 @@ declare function generateAiSocialMediaPostsSuggestions$1(httpClient: HttpClient)
1592
1603
  interface GenerateAiSocialMediaPostsSuggestionsSignature {
1593
1604
  /**
1594
1605
  * Creates new AI-generated social media post suggestions for promoting the referral program.
1606
+ *
1607
+ * Use this method to generate fresh AI-powered social media post suggestions for promoting the referral program. This is useful when you want to refresh
1608
+ * the content or generate alternatives to the existing suggestions.
1609
+ *
1610
+ * >**Note**: This endpoint generates new suggestions each time it's called. To retrieve existing suggestions without generating new ones, use the [Get AI Social Media Posts Suggestions](https://dev.wix.com/docs/velo/api-reference/wix-marketing-v2/referral-program/programs/get-ai-social-media-posts-suggestions) method.
1595
1611
  */
1596
1612
  (options?: GenerateAiSocialMediaPostsSuggestionsOptions | undefined): Promise<GenerateAISocialMediaPostsSuggestionsResponse & GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields>;
1597
1613
  }
@@ -1604,26 +1620,16 @@ interface GetReferralProgramPremiumFeaturesSignature {
1604
1620
  }
1605
1621
  declare const onProgramUpdated$1: EventDefinition<ProgramUpdatedEnvelope, "wix.loyalty.referral.v1.program_updated">;
1606
1622
 
1607
- declare function createRESTModule$4<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
1608
-
1609
1623
  declare function createEventModule$3<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
1610
1624
 
1611
- type _publicGetReferralProgramType = typeof getReferralProgram$1;
1612
- declare const getReferralProgram: ReturnType<typeof createRESTModule$4<_publicGetReferralProgramType>>;
1613
- type _publicQueryReferralProgramsType = typeof queryReferralPrograms$1;
1614
- declare const queryReferralPrograms: ReturnType<typeof createRESTModule$4<_publicQueryReferralProgramsType>>;
1615
- type _publicUpdateReferralProgramType = typeof updateReferralProgram$1;
1616
- declare const updateReferralProgram: ReturnType<typeof createRESTModule$4<_publicUpdateReferralProgramType>>;
1617
- type _publicActivateReferralProgramType = typeof activateReferralProgram$1;
1618
- declare const activateReferralProgram: ReturnType<typeof createRESTModule$4<_publicActivateReferralProgramType>>;
1619
- type _publicPauseReferralProgramType = typeof pauseReferralProgram$1;
1620
- declare const pauseReferralProgram: ReturnType<typeof createRESTModule$4<_publicPauseReferralProgramType>>;
1621
- type _publicGetAiSocialMediaPostsSuggestionsType = typeof getAiSocialMediaPostsSuggestions$1;
1622
- declare const getAiSocialMediaPostsSuggestions: ReturnType<typeof createRESTModule$4<_publicGetAiSocialMediaPostsSuggestionsType>>;
1623
- type _publicGenerateAiSocialMediaPostsSuggestionsType = typeof generateAiSocialMediaPostsSuggestions$1;
1624
- declare const generateAiSocialMediaPostsSuggestions: ReturnType<typeof createRESTModule$4<_publicGenerateAiSocialMediaPostsSuggestionsType>>;
1625
- type _publicGetReferralProgramPremiumFeaturesType = typeof getReferralProgramPremiumFeatures$1;
1626
- declare const getReferralProgramPremiumFeatures: ReturnType<typeof createRESTModule$4<_publicGetReferralProgramPremiumFeaturesType>>;
1625
+ declare const getReferralProgram: BuildRESTFunction<typeof getReferralProgram$1> & typeof getReferralProgram$1;
1626
+ declare const queryReferralPrograms: BuildRESTFunction<typeof queryReferralPrograms$1> & typeof queryReferralPrograms$1;
1627
+ declare const updateReferralProgram: BuildRESTFunction<typeof updateReferralProgram$1> & typeof updateReferralProgram$1;
1628
+ declare const activateReferralProgram: BuildRESTFunction<typeof activateReferralProgram$1> & typeof activateReferralProgram$1;
1629
+ declare const pauseReferralProgram: BuildRESTFunction<typeof pauseReferralProgram$1> & typeof pauseReferralProgram$1;
1630
+ declare const getAiSocialMediaPostsSuggestions: BuildRESTFunction<typeof getAiSocialMediaPostsSuggestions$1> & typeof getAiSocialMediaPostsSuggestions$1;
1631
+ declare const generateAiSocialMediaPostsSuggestions: BuildRESTFunction<typeof generateAiSocialMediaPostsSuggestions$1> & typeof generateAiSocialMediaPostsSuggestions$1;
1632
+ declare const getReferralProgramPremiumFeatures: BuildRESTFunction<typeof getReferralProgramPremiumFeatures$1> & typeof getReferralProgramPremiumFeatures$1;
1627
1633
 
1628
1634
  type _publicOnProgramUpdatedType = typeof onProgramUpdated$1;
1629
1635
  /** */
@@ -1742,15 +1748,7 @@ declare const context$4_UnassignReason: typeof UnassignReason;
1742
1748
  type context$4_UpdateReferralProgramRequest = UpdateReferralProgramRequest;
1743
1749
  type context$4_UpdateReferralProgramResponse = UpdateReferralProgramResponse;
1744
1750
  type context$4_UpdateReferralProgramResponseNonNullableFields = UpdateReferralProgramResponseNonNullableFields;
1745
- type context$4__publicActivateReferralProgramType = _publicActivateReferralProgramType;
1746
- type context$4__publicGenerateAiSocialMediaPostsSuggestionsType = _publicGenerateAiSocialMediaPostsSuggestionsType;
1747
- type context$4__publicGetAiSocialMediaPostsSuggestionsType = _publicGetAiSocialMediaPostsSuggestionsType;
1748
- type context$4__publicGetReferralProgramPremiumFeaturesType = _publicGetReferralProgramPremiumFeaturesType;
1749
- type context$4__publicGetReferralProgramType = _publicGetReferralProgramType;
1750
1751
  type context$4__publicOnProgramUpdatedType = _publicOnProgramUpdatedType;
1751
- type context$4__publicPauseReferralProgramType = _publicPauseReferralProgramType;
1752
- type context$4__publicQueryReferralProgramsType = _publicQueryReferralProgramsType;
1753
- type context$4__publicUpdateReferralProgramType = _publicUpdateReferralProgramType;
1754
1752
  declare const context$4_activateReferralProgram: typeof activateReferralProgram;
1755
1753
  declare const context$4_generateAiSocialMediaPostsSuggestions: typeof generateAiSocialMediaPostsSuggestions;
1756
1754
  declare const context$4_getAiSocialMediaPostsSuggestions: typeof getAiSocialMediaPostsSuggestions;
@@ -1761,7 +1759,7 @@ declare const context$4_pauseReferralProgram: typeof pauseReferralProgram;
1761
1759
  declare const context$4_queryReferralPrograms: typeof queryReferralPrograms;
1762
1760
  declare const context$4_updateReferralProgram: typeof updateReferralProgram;
1763
1761
  declare namespace context$4 {
1764
- export { type context$4_AISocialMediaPostSuggestion as AISocialMediaPostSuggestion, context$4_Action as Action, type ActionEvent$4 as ActionEvent, type context$4_ActivateReferralProgramRequest as ActivateReferralProgramRequest, type context$4_ActivateReferralProgramResponse as ActivateReferralProgramResponse, type context$4_ActivateReferralProgramResponseNonNullableFields as ActivateReferralProgramResponseNonNullableFields, context$4_App as App, type context$4_Asset as Asset, type BaseEventMetadata$3 as BaseEventMetadata, type context$4_BillingReference as BillingReference, type context$4_BulkGetReferralProgramRequest as BulkGetReferralProgramRequest, type context$4_BulkGetReferralProgramResponse as BulkGetReferralProgramResponse, type context$4_CancellationDetails as CancellationDetails, context$4_ContractSwitchReason as ContractSwitchReason, context$4_ContractSwitchType as ContractSwitchType, type context$4_ContractSwitched as ContractSwitched, type Coupon$2 as Coupon, type CouponDiscountTypeOptionsOneOf$2 as CouponDiscountTypeOptionsOneOf, type CouponScope$2 as CouponScope, type CouponScopeOrMinSubtotalOneOf$2 as CouponScopeOrMinSubtotalOneOf, type CursorPaging$4 as CursorPaging, type CursorPagingMetadata$4 as CursorPagingMetadata, type CursorQuery$4 as CursorQuery, type CursorQueryPagingMethodOneOf$4 as CursorQueryPagingMethodOneOf, type Cursors$4 as Cursors, type context$4_Cycle as Cycle, type context$4_CycleCycleSelectorOneOf as CycleCycleSelectorOneOf, type context$4_DeleteContext as DeleteContext, context$4_DeleteStatus as DeleteStatus, DiscountType$2 as DiscountType, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type context$4_Emails as Emails, type Empty$3 as Empty, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type EventMetadata$3 as EventMetadata, type FixedAmountDiscount$2 as FixedAmountDiscount, type context$4_GenerateAISocialMediaPostsSuggestionsRequest as GenerateAISocialMediaPostsSuggestionsRequest, type context$4_GenerateAISocialMediaPostsSuggestionsResponse as GenerateAISocialMediaPostsSuggestionsResponse, type context$4_GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields as GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields, type context$4_GenerateAiSocialMediaPostsSuggestionsOptions as GenerateAiSocialMediaPostsSuggestionsOptions, type context$4_GetAISocialMediaPostsSuggestionsRequest as GetAISocialMediaPostsSuggestionsRequest, type context$4_GetAISocialMediaPostsSuggestionsResponse as GetAISocialMediaPostsSuggestionsResponse, type context$4_GetAISocialMediaPostsSuggestionsResponseNonNullableFields as GetAISocialMediaPostsSuggestionsResponseNonNullableFields, type context$4_GetAiSocialMediaPostsSuggestionsOptions as GetAiSocialMediaPostsSuggestionsOptions, type context$4_GetReferralProgramPremiumFeaturesRequest as GetReferralProgramPremiumFeaturesRequest, type context$4_GetReferralProgramPremiumFeaturesResponse as GetReferralProgramPremiumFeaturesResponse, type context$4_GetReferralProgramPremiumFeaturesResponseNonNullableFields as GetReferralProgramPremiumFeaturesResponseNonNullableFields, type context$4_GetReferralProgramRequest as GetReferralProgramRequest, type context$4_GetReferralProgramResponse as GetReferralProgramResponse, type context$4_GetReferralProgramResponseNonNullableFields as GetReferralProgramResponseNonNullableFields, type Group$2 as Group, type context$4_HtmlSitePublished as HtmlSitePublished, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, context$4_Initiator as Initiator, type context$4_Interval as Interval, context$4_IntervalUnit as IntervalUnit, type LoyaltyPoints$2 as LoyaltyPoints, type MessageEnvelope$4 as MessageEnvelope, type context$4_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type context$4_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, context$4_Namespace as Namespace, type context$4_NamespaceChanged as NamespaceChanged, type context$4_OneTime as OneTime, type context$4_Page as Page, type context$4_PauseReferralProgramRequest as PauseReferralProgramRequest, type context$4_PauseReferralProgramResponse as PauseReferralProgramResponse, type context$4_PauseReferralProgramResponseNonNullableFields as PauseReferralProgramResponseNonNullableFields, type PercentageDiscount$2 as PercentageDiscount, type context$4_PremiumFeatures as PremiumFeatures, context$4_PriceIncreaseTrigger as PriceIncreaseTrigger, context$4_ProductAdjustment as ProductAdjustment, type context$4_ProductPriceIncreaseData as ProductPriceIncreaseData, type context$4_ProgramInSite as ProgramInSite, context$4_ProgramStatus as ProgramStatus, type context$4_ProgramUpdatedEnvelope as ProgramUpdatedEnvelope, context$4_ProviderName as ProviderName, type context$4_QueryReferralProgramsRequest as QueryReferralProgramsRequest, type context$4_QueryReferralProgramsResponse as QueryReferralProgramsResponse, type context$4_QueryReferralProgramsResponseNonNullableFields as QueryReferralProgramsResponseNonNullableFields, type context$4_ReactivationData as ReactivationData, context$4_ReactivationReasonEnum as ReactivationReasonEnum, type context$4_RecurringChargeSucceeded as RecurringChargeSucceeded, type context$4_ReferralProgram as ReferralProgram, type context$4_ReferralProgramsQueryBuilder as ReferralProgramsQueryBuilder, type context$4_ReferralProgramsQueryResult as ReferralProgramsQueryResult, type RestoreInfo$3 as RestoreInfo, type Reward$2 as Reward, type RewardOptionsOneOf$1 as RewardOptionsOneOf, type context$4_ServiceProvisioned as ServiceProvisioned, type context$4_ServiceRemoved as ServiceRemoved, type context$4_SiteCreated as SiteCreated, context$4_SiteCreatedContext as SiteCreatedContext, type context$4_SiteDeleted as SiteDeleted, type context$4_SiteHardDeleted as SiteHardDeleted, type context$4_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type context$4_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type context$4_SitePublished as SitePublished, type context$4_SiteRenamed as SiteRenamed, type context$4_SiteTransferred as SiteTransferred, type context$4_SiteUndeleted as SiteUndeleted, type context$4_SiteUnpublished as SiteUnpublished, SortOrder$4 as SortOrder, type Sorting$4 as Sorting, context$4_State as State, type context$4_StudioAssigned as StudioAssigned, type context$4_StudioUnassigned as StudioUnassigned, type context$4_Subscription as Subscription, type context$4_SubscriptionAssigned as SubscriptionAssigned, type context$4_SubscriptionAutoRenewTurnedOff as SubscriptionAutoRenewTurnedOff, type context$4_SubscriptionAutoRenewTurnedOn as SubscriptionAutoRenewTurnedOn, type context$4_SubscriptionCancelled as SubscriptionCancelled, type context$4_SubscriptionCreated as SubscriptionCreated, type context$4_SubscriptionEvent as SubscriptionEvent, type context$4_SubscriptionEventEventOneOf as SubscriptionEventEventOneOf, type context$4_SubscriptionNearEndOfPeriod as SubscriptionNearEndOfPeriod, type context$4_SubscriptionPendingChange as SubscriptionPendingChange, context$4_SubscriptionStatus as SubscriptionStatus, type context$4_SubscriptionTransferred as SubscriptionTransferred, type context$4_SubscriptionUnassigned as SubscriptionUnassigned, Type$1 as Type, context$4_UnassignReason as UnassignReason, type context$4_UpdateReferralProgramRequest as UpdateReferralProgramRequest, type context$4_UpdateReferralProgramResponse as UpdateReferralProgramResponse, type context$4_UpdateReferralProgramResponseNonNullableFields as UpdateReferralProgramResponseNonNullableFields, WebhookIdentityType$4 as WebhookIdentityType, type context$4__publicActivateReferralProgramType as _publicActivateReferralProgramType, type context$4__publicGenerateAiSocialMediaPostsSuggestionsType as _publicGenerateAiSocialMediaPostsSuggestionsType, type context$4__publicGetAiSocialMediaPostsSuggestionsType as _publicGetAiSocialMediaPostsSuggestionsType, type context$4__publicGetReferralProgramPremiumFeaturesType as _publicGetReferralProgramPremiumFeaturesType, type context$4__publicGetReferralProgramType as _publicGetReferralProgramType, type context$4__publicOnProgramUpdatedType as _publicOnProgramUpdatedType, type context$4__publicPauseReferralProgramType as _publicPauseReferralProgramType, type context$4__publicQueryReferralProgramsType as _publicQueryReferralProgramsType, type context$4__publicUpdateReferralProgramType as _publicUpdateReferralProgramType, context$4_activateReferralProgram as activateReferralProgram, context$4_generateAiSocialMediaPostsSuggestions as generateAiSocialMediaPostsSuggestions, context$4_getAiSocialMediaPostsSuggestions as getAiSocialMediaPostsSuggestions, context$4_getReferralProgram as getReferralProgram, context$4_getReferralProgramPremiumFeatures as getReferralProgramPremiumFeatures, context$4_onProgramUpdated as onProgramUpdated, context$4_pauseReferralProgram as pauseReferralProgram, onProgramUpdated$1 as publicOnProgramUpdated, context$4_queryReferralPrograms as queryReferralPrograms, context$4_updateReferralProgram as updateReferralProgram };
1762
+ export { type context$4_AISocialMediaPostSuggestion as AISocialMediaPostSuggestion, context$4_Action as Action, type ActionEvent$4 as ActionEvent, type context$4_ActivateReferralProgramRequest as ActivateReferralProgramRequest, type context$4_ActivateReferralProgramResponse as ActivateReferralProgramResponse, type context$4_ActivateReferralProgramResponseNonNullableFields as ActivateReferralProgramResponseNonNullableFields, context$4_App as App, type context$4_Asset as Asset, type BaseEventMetadata$3 as BaseEventMetadata, type context$4_BillingReference as BillingReference, type context$4_BulkGetReferralProgramRequest as BulkGetReferralProgramRequest, type context$4_BulkGetReferralProgramResponse as BulkGetReferralProgramResponse, type context$4_CancellationDetails as CancellationDetails, context$4_ContractSwitchReason as ContractSwitchReason, context$4_ContractSwitchType as ContractSwitchType, type context$4_ContractSwitched as ContractSwitched, type Coupon$2 as Coupon, type CouponDiscountTypeOptionsOneOf$2 as CouponDiscountTypeOptionsOneOf, type CouponScope$2 as CouponScope, type CouponScopeOrMinSubtotalOneOf$2 as CouponScopeOrMinSubtotalOneOf, type CursorPaging$4 as CursorPaging, type CursorPagingMetadata$4 as CursorPagingMetadata, type CursorQuery$4 as CursorQuery, type CursorQueryPagingMethodOneOf$4 as CursorQueryPagingMethodOneOf, type Cursors$4 as Cursors, type context$4_Cycle as Cycle, type context$4_CycleCycleSelectorOneOf as CycleCycleSelectorOneOf, type context$4_DeleteContext as DeleteContext, context$4_DeleteStatus as DeleteStatus, DiscountType$2 as DiscountType, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type context$4_Emails as Emails, type Empty$3 as Empty, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type EventMetadata$3 as EventMetadata, type FixedAmountDiscount$2 as FixedAmountDiscount, type context$4_GenerateAISocialMediaPostsSuggestionsRequest as GenerateAISocialMediaPostsSuggestionsRequest, type context$4_GenerateAISocialMediaPostsSuggestionsResponse as GenerateAISocialMediaPostsSuggestionsResponse, type context$4_GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields as GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields, type context$4_GenerateAiSocialMediaPostsSuggestionsOptions as GenerateAiSocialMediaPostsSuggestionsOptions, type context$4_GetAISocialMediaPostsSuggestionsRequest as GetAISocialMediaPostsSuggestionsRequest, type context$4_GetAISocialMediaPostsSuggestionsResponse as GetAISocialMediaPostsSuggestionsResponse, type context$4_GetAISocialMediaPostsSuggestionsResponseNonNullableFields as GetAISocialMediaPostsSuggestionsResponseNonNullableFields, type context$4_GetAiSocialMediaPostsSuggestionsOptions as GetAiSocialMediaPostsSuggestionsOptions, type context$4_GetReferralProgramPremiumFeaturesRequest as GetReferralProgramPremiumFeaturesRequest, type context$4_GetReferralProgramPremiumFeaturesResponse as GetReferralProgramPremiumFeaturesResponse, type context$4_GetReferralProgramPremiumFeaturesResponseNonNullableFields as GetReferralProgramPremiumFeaturesResponseNonNullableFields, type context$4_GetReferralProgramRequest as GetReferralProgramRequest, type context$4_GetReferralProgramResponse as GetReferralProgramResponse, type context$4_GetReferralProgramResponseNonNullableFields as GetReferralProgramResponseNonNullableFields, type Group$2 as Group, type context$4_HtmlSitePublished as HtmlSitePublished, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, context$4_Initiator as Initiator, type context$4_Interval as Interval, context$4_IntervalUnit as IntervalUnit, type LoyaltyPoints$2 as LoyaltyPoints, type MessageEnvelope$4 as MessageEnvelope, type context$4_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type context$4_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, context$4_Namespace as Namespace, type context$4_NamespaceChanged as NamespaceChanged, type context$4_OneTime as OneTime, type context$4_Page as Page, type context$4_PauseReferralProgramRequest as PauseReferralProgramRequest, type context$4_PauseReferralProgramResponse as PauseReferralProgramResponse, type context$4_PauseReferralProgramResponseNonNullableFields as PauseReferralProgramResponseNonNullableFields, type PercentageDiscount$2 as PercentageDiscount, type context$4_PremiumFeatures as PremiumFeatures, context$4_PriceIncreaseTrigger as PriceIncreaseTrigger, context$4_ProductAdjustment as ProductAdjustment, type context$4_ProductPriceIncreaseData as ProductPriceIncreaseData, type context$4_ProgramInSite as ProgramInSite, context$4_ProgramStatus as ProgramStatus, type context$4_ProgramUpdatedEnvelope as ProgramUpdatedEnvelope, context$4_ProviderName as ProviderName, type context$4_QueryReferralProgramsRequest as QueryReferralProgramsRequest, type context$4_QueryReferralProgramsResponse as QueryReferralProgramsResponse, type context$4_QueryReferralProgramsResponseNonNullableFields as QueryReferralProgramsResponseNonNullableFields, type context$4_ReactivationData as ReactivationData, context$4_ReactivationReasonEnum as ReactivationReasonEnum, type context$4_RecurringChargeSucceeded as RecurringChargeSucceeded, type context$4_ReferralProgram as ReferralProgram, type context$4_ReferralProgramsQueryBuilder as ReferralProgramsQueryBuilder, type context$4_ReferralProgramsQueryResult as ReferralProgramsQueryResult, type RestoreInfo$4 as RestoreInfo, type Reward$2 as Reward, type RewardOptionsOneOf$1 as RewardOptionsOneOf, type context$4_ServiceProvisioned as ServiceProvisioned, type context$4_ServiceRemoved as ServiceRemoved, type context$4_SiteCreated as SiteCreated, context$4_SiteCreatedContext as SiteCreatedContext, type context$4_SiteDeleted as SiteDeleted, type context$4_SiteHardDeleted as SiteHardDeleted, type context$4_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type context$4_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type context$4_SitePublished as SitePublished, type context$4_SiteRenamed as SiteRenamed, type context$4_SiteTransferred as SiteTransferred, type context$4_SiteUndeleted as SiteUndeleted, type context$4_SiteUnpublished as SiteUnpublished, SortOrder$4 as SortOrder, type Sorting$4 as Sorting, context$4_State as State, type context$4_StudioAssigned as StudioAssigned, type context$4_StudioUnassigned as StudioUnassigned, type context$4_Subscription as Subscription, type context$4_SubscriptionAssigned as SubscriptionAssigned, type context$4_SubscriptionAutoRenewTurnedOff as SubscriptionAutoRenewTurnedOff, type context$4_SubscriptionAutoRenewTurnedOn as SubscriptionAutoRenewTurnedOn, type context$4_SubscriptionCancelled as SubscriptionCancelled, type context$4_SubscriptionCreated as SubscriptionCreated, type context$4_SubscriptionEvent as SubscriptionEvent, type context$4_SubscriptionEventEventOneOf as SubscriptionEventEventOneOf, type context$4_SubscriptionNearEndOfPeriod as SubscriptionNearEndOfPeriod, type context$4_SubscriptionPendingChange as SubscriptionPendingChange, context$4_SubscriptionStatus as SubscriptionStatus, type context$4_SubscriptionTransferred as SubscriptionTransferred, type context$4_SubscriptionUnassigned as SubscriptionUnassigned, Type$1 as Type, context$4_UnassignReason as UnassignReason, type context$4_UpdateReferralProgramRequest as UpdateReferralProgramRequest, type context$4_UpdateReferralProgramResponse as UpdateReferralProgramResponse, type context$4_UpdateReferralProgramResponseNonNullableFields as UpdateReferralProgramResponseNonNullableFields, WebhookIdentityType$4 as WebhookIdentityType, type context$4__publicOnProgramUpdatedType as _publicOnProgramUpdatedType, context$4_activateReferralProgram as activateReferralProgram, context$4_generateAiSocialMediaPostsSuggestions as generateAiSocialMediaPostsSuggestions, context$4_getAiSocialMediaPostsSuggestions as getAiSocialMediaPostsSuggestions, context$4_getReferralProgram as getReferralProgram, context$4_getReferralProgramPremiumFeatures as getReferralProgramPremiumFeatures, context$4_onProgramUpdated as onProgramUpdated, context$4_pauseReferralProgram as pauseReferralProgram, onProgramUpdated$1 as publicOnProgramUpdated, context$4_queryReferralPrograms as queryReferralPrograms, context$4_updateReferralProgram as updateReferralProgram };
1765
1763
  }
1766
1764
 
1767
1765
  interface ReferralEvent extends ReferralEventEventTypeOneOf {
@@ -2128,7 +2126,7 @@ declare enum Status$2 {
2128
2126
  interface Coupon$1 extends CouponDiscountTypeOptionsOneOf$1, CouponScopeOrMinSubtotalOneOf$1 {
2129
2127
  /** Options for fixed amount discount. */
2130
2128
  fixedAmountOptions?: FixedAmountDiscount$1;
2131
- /** Options for percentage discount. */
2129
+ /** Options for percentage discounts. */
2132
2130
  percentageOptions?: PercentageDiscount$1;
2133
2131
  /** Limit the coupon to carts with a subtotal above this number. */
2134
2132
  minimumSubtotal?: number;
@@ -2168,7 +2166,7 @@ interface Coupon$1 extends CouponDiscountTypeOptionsOneOf$1, CouponScopeOrMinSub
2168
2166
  interface CouponDiscountTypeOptionsOneOf$1 {
2169
2167
  /** Options for fixed amount discount. */
2170
2168
  fixedAmountOptions?: FixedAmountDiscount$1;
2171
- /** Options for percentage discount. */
2169
+ /** Options for percentage discounts. */
2172
2170
  percentageOptions?: PercentageDiscount$1;
2173
2171
  }
2174
2172
  /** @oneof */
@@ -2189,7 +2187,7 @@ declare enum DiscountType$1 {
2189
2187
  FREE_SHIPPING = "FREE_SHIPPING"
2190
2188
  }
2191
2189
  interface FixedAmountDiscount$1 {
2192
- /** Amount of discount as a fixed value. */
2190
+ /** Amount of the discount as a fixed value. */
2193
2191
  amount?: number;
2194
2192
  }
2195
2193
  interface PercentageDiscount$1 {
@@ -2199,7 +2197,7 @@ interface PercentageDiscount$1 {
2199
2197
  interface CouponScope$1 {
2200
2198
  /** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
2201
2199
  namespace?: string;
2202
- /** Coupon scope's applied group, for example: Event or ticket in Wix Events */
2200
+ /** Coupon scope's applied group, for example, Event or ticket in Wix Events. */
2203
2201
  group?: Group$1;
2204
2202
  }
2205
2203
  interface Group$1 {
@@ -2272,7 +2270,7 @@ interface DomainEventBodyOneOf$3 {
2272
2270
  interface EntityCreatedEvent$3 {
2273
2271
  entity?: string;
2274
2272
  }
2275
- interface RestoreInfo$2 {
2273
+ interface RestoreInfo$3 {
2276
2274
  deletedDate?: Date;
2277
2275
  }
2278
2276
  interface EntityUpdatedEvent$3 {
@@ -2653,20 +2651,13 @@ interface QueryReferredFriendActionsSignature {
2653
2651
  }
2654
2652
  declare const onReferralEventCreated$1: EventDefinition<ReferralEventCreatedEnvelope, "wix.loyalty.referral.v1.referral_event_created">;
2655
2653
 
2656
- declare function createRESTModule$3<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
2657
-
2658
2654
  declare function createEventModule$2<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
2659
2655
 
2660
- type _publicGetReferralEventType = typeof getReferralEvent$1;
2661
- declare const getReferralEvent: ReturnType<typeof createRESTModule$3<_publicGetReferralEventType>>;
2662
- type _publicQueryReferralEventType = typeof queryReferralEvent$1;
2663
- declare const queryReferralEvent: ReturnType<typeof createRESTModule$3<_publicQueryReferralEventType>>;
2664
- type _publicGetReferralStatisticsType = typeof getReferralStatistics$1;
2665
- declare const getReferralStatistics: ReturnType<typeof createRESTModule$3<_publicGetReferralStatisticsType>>;
2666
- type _publicQueryReferringCustomerTotalsType = typeof queryReferringCustomerTotals$1;
2667
- declare const queryReferringCustomerTotals: ReturnType<typeof createRESTModule$3<_publicQueryReferringCustomerTotalsType>>;
2668
- type _publicQueryReferredFriendActionsType = typeof queryReferredFriendActions$1;
2669
- declare const queryReferredFriendActions: ReturnType<typeof createRESTModule$3<_publicQueryReferredFriendActionsType>>;
2656
+ declare const getReferralEvent: BuildRESTFunction<typeof getReferralEvent$1> & typeof getReferralEvent$1;
2657
+ declare const queryReferralEvent: BuildRESTFunction<typeof queryReferralEvent$1> & typeof queryReferralEvent$1;
2658
+ declare const getReferralStatistics: BuildRESTFunction<typeof getReferralStatistics$1> & typeof getReferralStatistics$1;
2659
+ declare const queryReferringCustomerTotals: BuildRESTFunction<typeof queryReferringCustomerTotals$1> & typeof queryReferringCustomerTotals$1;
2660
+ declare const queryReferredFriendActions: BuildRESTFunction<typeof queryReferredFriendActions$1> & typeof queryReferredFriendActions$1;
2670
2661
 
2671
2662
  type _publicOnReferralEventCreatedType = typeof onReferralEventCreated$1;
2672
2663
  /** */
@@ -2708,12 +2699,7 @@ type context$3_Trigger = Trigger;
2708
2699
  type context$3_V1ActionEvent = V1ActionEvent;
2709
2700
  type context$3_V1SuccessfulReferralEvent = V1SuccessfulReferralEvent;
2710
2701
  type context$3_V1Trigger = V1Trigger;
2711
- type context$3__publicGetReferralEventType = _publicGetReferralEventType;
2712
- type context$3__publicGetReferralStatisticsType = _publicGetReferralStatisticsType;
2713
2702
  type context$3__publicOnReferralEventCreatedType = _publicOnReferralEventCreatedType;
2714
- type context$3__publicQueryReferralEventType = _publicQueryReferralEventType;
2715
- type context$3__publicQueryReferredFriendActionsType = _publicQueryReferredFriendActionsType;
2716
- type context$3__publicQueryReferringCustomerTotalsType = _publicQueryReferringCustomerTotalsType;
2717
2703
  declare const context$3_getReferralEvent: typeof getReferralEvent;
2718
2704
  declare const context$3_getReferralStatistics: typeof getReferralStatistics;
2719
2705
  declare const context$3_onReferralEventCreated: typeof onReferralEventCreated;
@@ -2721,163 +2707,205 @@ declare const context$3_queryReferralEvent: typeof queryReferralEvent;
2721
2707
  declare const context$3_queryReferredFriendActions: typeof queryReferredFriendActions;
2722
2708
  declare const context$3_queryReferringCustomerTotals: typeof queryReferringCustomerTotals;
2723
2709
  declare namespace context$3 {
2724
- export { type ActionEvent$3 as ActionEvent, type BaseEventMetadata$2 as BaseEventMetadata, type Coupon$1 as Coupon, type CouponDiscountTypeOptionsOneOf$1 as CouponDiscountTypeOptionsOneOf, type CouponScope$1 as CouponScope, type CouponScopeOrMinSubtotalOneOf$1 as CouponScopeOrMinSubtotalOneOf, type context$3_CreateReferralEventRequest as CreateReferralEventRequest, type context$3_CreateReferralEventResponse as CreateReferralEventResponse, type CursorPaging$3 as CursorPaging, type CursorPagingMetadata$3 as CursorPagingMetadata, type CursorQuery$3 as CursorQuery, type CursorQueryPagingMethodOneOf$3 as CursorQueryPagingMethodOneOf, type Cursors$3 as Cursors, DiscountType$1 as DiscountType, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type Empty$2 as Empty, type EntityCreatedEvent$3 as EntityCreatedEvent, type EntityDeletedEvent$3 as EntityDeletedEvent, type EntityUpdatedEvent$3 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type FixedAmountDiscount$1 as FixedAmountDiscount, type context$3_GetReferralEventRequest as GetReferralEventRequest, type context$3_GetReferralEventResponse as GetReferralEventResponse, type context$3_GetReferralEventResponseNonNullableFields as GetReferralEventResponseNonNullableFields, type context$3_GetReferralStatisticsRequest as GetReferralStatisticsRequest, type context$3_GetReferralStatisticsResponse as GetReferralStatisticsResponse, type context$3_GetReferralStatisticsResponseNonNullableFields as GetReferralStatisticsResponseNonNullableFields, type Group$1 as Group, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type LoyaltyPoints$1 as LoyaltyPoints, type MessageEnvelope$3 as MessageEnvelope, type PercentageDiscount$1 as PercentageDiscount, type context$3_QueryReferralEventRequest as QueryReferralEventRequest, type context$3_QueryReferralEventResponse as QueryReferralEventResponse, type context$3_QueryReferralEventResponseNonNullableFields as QueryReferralEventResponseNonNullableFields, type context$3_QueryReferredFriendActionsOptions as QueryReferredFriendActionsOptions, type context$3_QueryReferredFriendActionsRequest as QueryReferredFriendActionsRequest, type context$3_QueryReferredFriendActionsResponse as QueryReferredFriendActionsResponse, type context$3_QueryReferredFriendActionsResponseNonNullableFields as QueryReferredFriendActionsResponseNonNullableFields, type context$3_QueryReferringCustomerTotalsOptions as QueryReferringCustomerTotalsOptions, type context$3_QueryReferringCustomerTotalsRequest as QueryReferringCustomerTotalsRequest, type context$3_QueryReferringCustomerTotalsResponse as QueryReferringCustomerTotalsResponse, type context$3_QueryReferringCustomerTotalsResponseNonNullableFields as QueryReferringCustomerTotalsResponseNonNullableFields, type context$3_ReferralEvent as ReferralEvent, type context$3_ReferralEventCreatedEnvelope as ReferralEventCreatedEnvelope, type context$3_ReferralEventEventTypeOneOf as ReferralEventEventTypeOneOf, type context$3_ReferralEventNonNullableFields as ReferralEventNonNullableFields, type context$3_ReferralEventsQueryBuilder as ReferralEventsQueryBuilder, type context$3_ReferralEventsQueryResult as ReferralEventsQueryResult, type context$3_ReferredFriendAction as ReferredFriendAction, type context$3_ReferredFriendActionEvent as ReferredFriendActionEvent, type context$3_ReferredFriendActionRewardTypeOptionsOneOf as ReferredFriendActionRewardTypeOptionsOneOf, type ReferredFriendDetails$2 as ReferredFriendDetails, type context$3_ReferredFriendSignupEvent as ReferredFriendSignupEvent, type context$3_ReferringCustomerTotal as ReferringCustomerTotal, type RestoreInfo$2 as RestoreInfo, Reward$1 as Reward, type context$3_RewardEvent as RewardEvent, type context$3_RewardEventReceiverOneOf as RewardEventReceiverOneOf, SortOrder$3 as SortOrder, type Sorting$3 as Sorting, Status$2 as Status, type SuccessfulReferralEvent$2 as SuccessfulReferralEvent, type context$3_Trigger as Trigger, type context$3_V1ActionEvent as V1ActionEvent, type V1Coupon$1 as V1Coupon, type context$3_V1SuccessfulReferralEvent as V1SuccessfulReferralEvent, type context$3_V1Trigger as V1Trigger, WebhookIdentityType$3 as WebhookIdentityType, type context$3__publicGetReferralEventType as _publicGetReferralEventType, type context$3__publicGetReferralStatisticsType as _publicGetReferralStatisticsType, type context$3__publicOnReferralEventCreatedType as _publicOnReferralEventCreatedType, type context$3__publicQueryReferralEventType as _publicQueryReferralEventType, type context$3__publicQueryReferredFriendActionsType as _publicQueryReferredFriendActionsType, type context$3__publicQueryReferringCustomerTotalsType as _publicQueryReferringCustomerTotalsType, context$3_getReferralEvent as getReferralEvent, context$3_getReferralStatistics as getReferralStatistics, context$3_onReferralEventCreated as onReferralEventCreated, onReferralEventCreated$1 as publicOnReferralEventCreated, context$3_queryReferralEvent as queryReferralEvent, context$3_queryReferredFriendActions as queryReferredFriendActions, context$3_queryReferringCustomerTotals as queryReferringCustomerTotals };
2710
+ export { type ActionEvent$3 as ActionEvent, type BaseEventMetadata$2 as BaseEventMetadata, type Coupon$1 as Coupon, type CouponDiscountTypeOptionsOneOf$1 as CouponDiscountTypeOptionsOneOf, type CouponScope$1 as CouponScope, type CouponScopeOrMinSubtotalOneOf$1 as CouponScopeOrMinSubtotalOneOf, type context$3_CreateReferralEventRequest as CreateReferralEventRequest, type context$3_CreateReferralEventResponse as CreateReferralEventResponse, type CursorPaging$3 as CursorPaging, type CursorPagingMetadata$3 as CursorPagingMetadata, type CursorQuery$3 as CursorQuery, type CursorQueryPagingMethodOneOf$3 as CursorQueryPagingMethodOneOf, type Cursors$3 as Cursors, DiscountType$1 as DiscountType, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type Empty$2 as Empty, type EntityCreatedEvent$3 as EntityCreatedEvent, type EntityDeletedEvent$3 as EntityDeletedEvent, type EntityUpdatedEvent$3 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type FixedAmountDiscount$1 as FixedAmountDiscount, type context$3_GetReferralEventRequest as GetReferralEventRequest, type context$3_GetReferralEventResponse as GetReferralEventResponse, type context$3_GetReferralEventResponseNonNullableFields as GetReferralEventResponseNonNullableFields, type context$3_GetReferralStatisticsRequest as GetReferralStatisticsRequest, type context$3_GetReferralStatisticsResponse as GetReferralStatisticsResponse, type context$3_GetReferralStatisticsResponseNonNullableFields as GetReferralStatisticsResponseNonNullableFields, type Group$1 as Group, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type LoyaltyPoints$1 as LoyaltyPoints, type MessageEnvelope$3 as MessageEnvelope, type PercentageDiscount$1 as PercentageDiscount, type context$3_QueryReferralEventRequest as QueryReferralEventRequest, type context$3_QueryReferralEventResponse as QueryReferralEventResponse, type context$3_QueryReferralEventResponseNonNullableFields as QueryReferralEventResponseNonNullableFields, type context$3_QueryReferredFriendActionsOptions as QueryReferredFriendActionsOptions, type context$3_QueryReferredFriendActionsRequest as QueryReferredFriendActionsRequest, type context$3_QueryReferredFriendActionsResponse as QueryReferredFriendActionsResponse, type context$3_QueryReferredFriendActionsResponseNonNullableFields as QueryReferredFriendActionsResponseNonNullableFields, type context$3_QueryReferringCustomerTotalsOptions as QueryReferringCustomerTotalsOptions, type context$3_QueryReferringCustomerTotalsRequest as QueryReferringCustomerTotalsRequest, type context$3_QueryReferringCustomerTotalsResponse as QueryReferringCustomerTotalsResponse, type context$3_QueryReferringCustomerTotalsResponseNonNullableFields as QueryReferringCustomerTotalsResponseNonNullableFields, type context$3_ReferralEvent as ReferralEvent, type context$3_ReferralEventCreatedEnvelope as ReferralEventCreatedEnvelope, type context$3_ReferralEventEventTypeOneOf as ReferralEventEventTypeOneOf, type context$3_ReferralEventNonNullableFields as ReferralEventNonNullableFields, type context$3_ReferralEventsQueryBuilder as ReferralEventsQueryBuilder, type context$3_ReferralEventsQueryResult as ReferralEventsQueryResult, type context$3_ReferredFriendAction as ReferredFriendAction, type context$3_ReferredFriendActionEvent as ReferredFriendActionEvent, type context$3_ReferredFriendActionRewardTypeOptionsOneOf as ReferredFriendActionRewardTypeOptionsOneOf, type ReferredFriendDetails$2 as ReferredFriendDetails, type context$3_ReferredFriendSignupEvent as ReferredFriendSignupEvent, type context$3_ReferringCustomerTotal as ReferringCustomerTotal, type RestoreInfo$3 as RestoreInfo, Reward$1 as Reward, type context$3_RewardEvent as RewardEvent, type context$3_RewardEventReceiverOneOf as RewardEventReceiverOneOf, SortOrder$3 as SortOrder, type Sorting$3 as Sorting, Status$2 as Status, type SuccessfulReferralEvent$2 as SuccessfulReferralEvent, type context$3_Trigger as Trigger, type context$3_V1ActionEvent as V1ActionEvent, type V1Coupon$1 as V1Coupon, type context$3_V1SuccessfulReferralEvent as V1SuccessfulReferralEvent, type context$3_V1Trigger as V1Trigger, WebhookIdentityType$3 as WebhookIdentityType, type context$3__publicOnReferralEventCreatedType as _publicOnReferralEventCreatedType, context$3_getReferralEvent as getReferralEvent, context$3_getReferralStatistics as getReferralStatistics, context$3_onReferralEventCreated as onReferralEventCreated, onReferralEventCreated$1 as publicOnReferralEventCreated, context$3_queryReferralEvent as queryReferralEvent, context$3_queryReferredFriendActions as queryReferredFriendActions, context$3_queryReferringCustomerTotals as queryReferringCustomerTotals };
2725
2711
  }
2726
2712
 
2727
- /** ReferralReward is the main entity of ReferralRewards that can be used for lorem ipsum dolor */
2728
2713
  interface ReferralReward extends ReferralRewardReceiverOneOf, ReferralRewardRewardTypeOptionsOneOf {
2729
2714
  /**
2730
- * Referring customer ID.
2715
+ * ID of the referring customer who received the reward.
2731
2716
  * @readonly
2732
2717
  */
2733
2718
  rewardedReferringCustomerId?: string;
2734
2719
  /**
2735
- * Referred friend ID.
2720
+ * ID of the referred friend who received the reward.
2736
2721
  * @readonly
2737
2722
  */
2738
2723
  rewardedReferredFriendId?: string;
2739
- /** Coupon reward type options. */
2724
+ /** Details of a coupon reward. Present when `reward_type` is `COUPON`. */
2740
2725
  coupon?: V1Coupon;
2741
- /** Loyalty points reward type options. */
2726
+ /** Details of a loyalty points reward. Present when `reward_type` is `LOYALTY_POINTS`. */
2742
2727
  loyaltyPoints?: V1LoyaltyPoints;
2743
2728
  /**
2744
- * ReferralReward ID.
2729
+ * Referral reward ID.
2745
2730
  * @readonly
2746
2731
  */
2747
2732
  _id?: string | null;
2748
- /** Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision. */
2733
+ /**
2734
+ * Revision number, which increments by 1 each time the referral reward is updated.
2735
+ * To prevent conflicting changes, the current revision must be passed when updating the referral reward.
2736
+ */
2749
2737
  revision?: string | null;
2750
2738
  /**
2751
- * Represents the time this ReferralReward was created.
2739
+ * Date and time the referral reward was created.
2752
2740
  * @readonly
2753
2741
  */
2754
2742
  _createdDate?: Date;
2755
2743
  /**
2756
- * Represents the time this ReferralReward was last updated.
2744
+ * Date and time the referral reward was last updated.
2757
2745
  * @readonly
2758
2746
  */
2759
2747
  _updatedDate?: Date;
2760
- /** Reward type. */
2748
+ /**
2749
+ * Type of reward given.
2750
+ *
2751
+ * Possible values:
2752
+ * - `UNKNOWN`: Unknown reward.
2753
+ * - `COUPON`: A loyalty coupon is given.
2754
+ * - `LOYALTY_POINTS`: Loyalty points are awarded.
2755
+ * - `NOTHING`: No reward is given.
2756
+ */
2761
2757
  rewardType?: RewardTypeType;
2762
2758
  }
2763
2759
  /** @oneof */
2764
2760
  interface ReferralRewardReceiverOneOf {
2765
2761
  /**
2766
- * Referring customer ID.
2762
+ * ID of the referring customer who received the reward.
2767
2763
  * @readonly
2768
2764
  */
2769
2765
  rewardedReferringCustomerId?: string;
2770
2766
  /**
2771
- * Referred friend ID.
2767
+ * ID of the referred friend who received the reward.
2772
2768
  * @readonly
2773
2769
  */
2774
2770
  rewardedReferredFriendId?: string;
2775
2771
  }
2776
2772
  /** @oneof */
2777
2773
  interface ReferralRewardRewardTypeOptionsOneOf {
2778
- /** Coupon reward type options. */
2774
+ /** Details of a coupon reward. Present when `reward_type` is `COUPON`. */
2779
2775
  coupon?: V1Coupon;
2780
- /** Loyalty points reward type options. */
2776
+ /** Details of a loyalty points reward. Present when `reward_type` is `LOYALTY_POINTS`. */
2781
2777
  loyaltyPoints?: V1LoyaltyPoints;
2782
2778
  }
2783
2779
  declare enum RewardTypeType {
2784
- /** Unknown reward type. */
2780
+ /** Unknown reward. */
2785
2781
  UNKNOWN = "UNKNOWN",
2786
- /** Coupon reward type. */
2782
+ /** A loyalty coupon is given. */
2787
2783
  COUPON = "COUPON",
2788
- /** Loyalty points reward type. */
2784
+ /** Loyalty points are awarded. */
2789
2785
  LOYALTY_POINTS = "LOYALTY_POINTS",
2790
- /** No reward. */
2786
+ /** No reward is given. */
2791
2787
  NOTHING = "NOTHING"
2792
2788
  }
2793
2789
  interface V1Coupon {
2794
2790
  /**
2795
- * Coupon ID.
2791
+ * Coupon ID. Example: `8934b045-7052-4a90-be2b-832c70afc9da`.
2796
2792
  * @readonly
2797
2793
  */
2798
2794
  _id?: string;
2799
2795
  /**
2800
- * Coupon code.
2796
+ * The code that customers can use to apply the coupon. Example: `6RFD2A3HSPXW`.
2801
2797
  * @readonly
2802
2798
  */
2803
2799
  code?: string;
2804
2800
  /**
2805
- * Coupon status.
2801
+ * Current status of the coupon.
2802
+ *
2803
+ * Possible values:
2804
+ *
2805
+ * - `UNKNOWN`: Unknown coupon status.
2806
+ * - `ACTIVE`: Coupon is active and can be applied.
2807
+ * - `APPLIED`: Coupon was already applied and can't be used anymore.
2808
+ * - `DELETED`: Coupon was deleted.
2806
2809
  * @readonly
2807
2810
  */
2808
2811
  status?: Status$1;
2809
2812
  /**
2810
- * Coupon specification.
2813
+ * Detailed specifications of the coupon.
2811
2814
  * @readonly
2812
2815
  */
2813
2816
  couponSpecification?: Coupon;
2814
2817
  }
2815
2818
  declare enum Status$1 {
2816
- /** Unknown coupon status. */
2819
+ /** The coupon status is unknown or not specified. */
2817
2820
  UNKNOWN = "UNKNOWN",
2818
- /** Coupon is active and can be applied. */
2821
+ /** The coupon is active and can be applied to purchases. */
2819
2822
  ACTIVE = "ACTIVE",
2820
- /** Coupon was already applied and can not be used anymore. */
2823
+ /** The coupon has been applied and can't be used again. */
2821
2824
  APPLIED = "APPLIED",
2822
- /** Coupon was deleted. */
2825
+ /** The coupon has been deleted and is no longer valid. */
2823
2826
  DELETED = "DELETED"
2824
2827
  }
2825
2828
  interface Coupon extends CouponDiscountTypeOptionsOneOf, CouponScopeOrMinSubtotalOneOf {
2826
- /** Options for fixed amount discount type */
2829
+ /** Options for fixed amount discount. */
2827
2830
  fixedAmountOptions?: FixedAmountDiscount;
2828
- /** Options for percentage discount type */
2831
+ /** Options for percentage discount. */
2829
2832
  percentageOptions?: PercentageDiscount;
2830
2833
  /** Limit the coupon to carts with a subtotal above this number. */
2831
2834
  minimumSubtotal?: number;
2832
- /** Specifies the type of line items this coupon will apply to. */
2835
+ /** Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */
2833
2836
  scope?: CouponScope;
2834
- /** Coupon name */
2837
+ /** Coupon name. */
2835
2838
  name?: string;
2836
- /** Coupon discount type */
2839
+ /**
2840
+ * Coupon discount type.
2841
+ *
2842
+ * - `UNKNOWN`: Unknown discount type.
2843
+ * - `FIXED_AMOUNT`: Discount as a fixed amount.
2844
+ * - `PERCENTAGE`: Discount as a perctange.
2845
+ * - `FREE_SHIPPING`: Free shipping. If `true`, the coupon applies to all items in all `namespaces`.
2846
+ */
2837
2847
  discountType?: DiscountType;
2838
- /** Limit the coupon to only apply to one item in cart. */
2848
+ /**
2849
+ * Whether the coupon is limited to one item.
2850
+ * If `true` and a customer pays for multiple items, the discount applies to only the lowest priced item.
2851
+ * Coupons with a bookings `scope.namespace` are always limited to one item.
2852
+ */
2839
2853
  limitedToOneItem?: boolean | null;
2840
- /** If true, coupon also applies to subscriptions. */
2854
+ /** Whether the coupon applies to subscription products. */
2841
2855
  appliesToSubscriptions?: boolean | null;
2842
- /** Specifies the amount of discounted cycles for subscription item. See Stores Coupons documentation for more info. */
2856
+ /**
2857
+ * Specifies the amount of discounted cycles for a subscription item.
2858
+ *
2859
+ * - Can only be set when `scope.namespace = pricingPlans`.
2860
+ * - If `discountedCycleCount` is empty, the coupon applies to all available cycles.
2861
+ * - `discountedCycleCount` is ignored if `appliesToSubscriptions = true`.
2862
+ *
2863
+ * Max: `999`
2864
+ */
2843
2865
  discountedCycleCount?: number | null;
2844
2866
  }
2845
2867
  /** @oneof */
2846
2868
  interface CouponDiscountTypeOptionsOneOf {
2847
- /** Options for fixed amount discount type */
2869
+ /** Options for fixed amount discount. */
2848
2870
  fixedAmountOptions?: FixedAmountDiscount;
2849
- /** Options for percentage discount type */
2871
+ /** Options for percentage discount. */
2850
2872
  percentageOptions?: PercentageDiscount;
2851
2873
  }
2852
2874
  /** @oneof */
2853
2875
  interface CouponScopeOrMinSubtotalOneOf {
2854
2876
  /** Limit the coupon to carts with a subtotal above this number. */
2855
2877
  minimumSubtotal?: number;
2856
- /** Specifies the type of line items this coupon will apply to. */
2878
+ /** Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */
2857
2879
  scope?: CouponScope;
2858
2880
  }
2859
2881
  declare enum DiscountType {
2882
+ /** Unknown discount type. */
2860
2883
  UNKNOWN = "UNKNOWN",
2861
- /** Discount as a fixed amount */
2884
+ /** Discount as a fixed amount. */
2862
2885
  FIXED_AMOUNT = "FIXED_AMOUNT",
2863
- /** Discount as a percentage */
2886
+ /** Discount as a percentage. */
2864
2887
  PERCENTAGE = "PERCENTAGE",
2865
- /** Free shipping */
2888
+ /** Free shipping. */
2866
2889
  FREE_SHIPPING = "FREE_SHIPPING"
2867
2890
  }
2868
2891
  interface FixedAmountDiscount {
2869
- /** Fixed amount to discount */
2892
+ /** Amount of discount as a fixed value. */
2870
2893
  amount?: number;
2871
2894
  }
2872
2895
  interface PercentageDiscount {
2896
+ /** Percentage of discount. */
2873
2897
  percentage?: number;
2874
2898
  }
2875
2899
  interface CouponScope {
2900
+ /** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
2876
2901
  namespace?: string;
2902
+ /** Coupon scope's applied group, for example: Event or ticket in Wix Events */
2877
2903
  group?: Group;
2878
2904
  }
2879
2905
  interface Group {
2906
+ /** Name of the group. */
2880
2907
  name?: string;
2908
+ /** Entity ID of the group. */
2881
2909
  entityId?: string | null;
2882
2910
  }
2883
2911
  interface V1LoyaltyPoints {
@@ -2887,46 +2915,52 @@ interface V1LoyaltyPoints {
2887
2915
  */
2888
2916
  transactionId?: string;
2889
2917
  /**
2890
- * Loyalty points amount given.
2918
+ * The number of loyalty points awarded.
2891
2919
  * @readonly
2892
2920
  */
2893
2921
  amount?: number;
2894
2922
  }
2895
2923
  interface GetReferralRewardRequest {
2896
- /** Id of the ReferralReward to retrieve. */
2924
+ /** Referral reward ID. */
2897
2925
  _id: string;
2898
2926
  }
2899
2927
  interface GetReferralRewardResponse {
2900
- /** The retrieved ReferralReward. */
2928
+ /** Retrieved referral reward. */
2901
2929
  referralReward?: ReferralReward;
2902
2930
  }
2903
2931
  interface QueryReferralRewardsRequest {
2904
- /** Query to filter ReferralRewards. */
2932
+ /** Query to filter referral rewards. */
2905
2933
  query: CursorQuery$2;
2906
- /** Filter by contact id or set to "me" for current identity's rewards. */
2934
+ /** Contact ID to filter rewards by. Use `"me"` for current identity's rewards. */
2907
2935
  contactId?: string | null;
2908
2936
  }
2909
2937
  interface CursorQuery$2 extends CursorQueryPagingMethodOneOf$2 {
2910
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
2938
+ /**
2939
+ * Cursor paging options.
2940
+ *
2941
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
2942
+ */
2911
2943
  cursorPaging?: CursorPaging$2;
2912
2944
  /**
2913
- * Filter object in the following format:
2914
- * `"filter" : {
2915
- * "fieldName1": "value1",
2916
- * "fieldName2":{"$operator":"value2"}
2917
- * }`
2918
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
2945
+ * Filter object.
2946
+ *
2947
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
2919
2948
  */
2920
2949
  filter?: Record<string, any> | null;
2921
2950
  /**
2922
- * Sort object in the following format:
2923
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
2951
+ * Sort object.
2952
+ *
2953
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
2924
2954
  */
2925
2955
  sort?: Sorting$2[];
2926
2956
  }
2927
2957
  /** @oneof */
2928
2958
  interface CursorQueryPagingMethodOneOf$2 {
2929
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
2959
+ /**
2960
+ * Cursor paging options.
2961
+ *
2962
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
2963
+ */
2930
2964
  cursorPaging?: CursorPaging$2;
2931
2965
  }
2932
2966
  interface Sorting$2 {
@@ -2951,13 +2985,13 @@ interface CursorPaging$2 {
2951
2985
  cursor?: string | null;
2952
2986
  }
2953
2987
  interface QueryReferralRewardsResponse {
2954
- /** The retrieved ReferralRewards. */
2988
+ /** Retrieved referral rewards. */
2955
2989
  referralRewards?: ReferralReward[];
2956
2990
  /** Metadata for paging. */
2957
2991
  metadata?: CursorPagingMetadata$2;
2958
2992
  }
2959
2993
  interface CursorPagingMetadata$2 {
2960
- /** Number of items returned in the response. */
2994
+ /** Number of items returned in current page. */
2961
2995
  count?: number | null;
2962
2996
  /** Cursor strings that point to the next page, previous page, or both. */
2963
2997
  cursors?: Cursors$2;
@@ -2980,31 +3014,32 @@ interface ValidateReferralRewardRequest {
2980
3014
  reward?: Reward;
2981
3015
  }
2982
3016
  interface Reward extends RewardOptionsOneOf {
2983
- /** Options for coupon reward type */
3017
+ /** Options for coupon reward type. */
2984
3018
  couponOptions?: Coupon;
2985
- /** Options for Loyalty points reward type */
3019
+ /** Options for Loyalty points reward type. */
2986
3020
  loyaltyPointsOptions?: LoyaltyPoints;
2987
- /** Type of the reward */
3021
+ /** Type of the reward. */
2988
3022
  type?: Type;
2989
3023
  }
2990
3024
  /** @oneof */
2991
3025
  interface RewardOptionsOneOf {
2992
- /** Options for coupon reward type */
3026
+ /** Options for coupon reward type. */
2993
3027
  couponOptions?: Coupon;
2994
- /** Options for Loyalty points reward type */
3028
+ /** Options for Loyalty points reward type. */
2995
3029
  loyaltyPointsOptions?: LoyaltyPoints;
2996
3030
  }
2997
3031
  declare enum Type {
3032
+ /** Unknown reward type. */
2998
3033
  UNKNOWN = "UNKNOWN",
2999
- /** Coupon reward type */
3034
+ /** Coupon reward type. */
3000
3035
  COUPON = "COUPON",
3001
- /** Loyalty points reward type */
3036
+ /** Loyalty points reward type. */
3002
3037
  LOYALTY_POINTS = "LOYALTY_POINTS",
3003
- /** No reward type */
3038
+ /** No reward type. */
3004
3039
  NOTHING = "NOTHING"
3005
3040
  }
3006
3041
  interface LoyaltyPoints {
3007
- /** Amount of points to give */
3042
+ /** Number of loyalty points to give. */
3008
3043
  amount?: number;
3009
3044
  }
3010
3045
  interface ValidateReferralRewardResponse {
@@ -3012,13 +3047,13 @@ interface ValidateReferralRewardResponse {
3012
3047
  interface BulkGetReferralRewardsRequest {
3013
3048
  }
3014
3049
  interface BulkGetReferralRewardsResponse {
3015
- /** Found rewards per site. */
3050
+ /** Rewards grouped by site. */
3016
3051
  rewardsInSite?: RewardsInSite[];
3017
3052
  }
3018
3053
  interface RewardsInSite {
3019
3054
  /** Metasite ID. */
3020
3055
  metaSiteId?: string;
3021
- /** Rewards. */
3056
+ /** List of rewards for the site. */
3022
3057
  rewards?: ReferralReward[];
3023
3058
  }
3024
3059
  interface DomainEvent$2 extends DomainEventBodyOneOf$2 {
@@ -3044,7 +3079,7 @@ interface DomainEvent$2 extends DomainEventBodyOneOf$2 {
3044
3079
  slug?: string;
3045
3080
  /** ID of the entity associated with the event. */
3046
3081
  entityId?: string;
3047
- /** Event timestamp. */
3082
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
3048
3083
  eventTime?: Date;
3049
3084
  /**
3050
3085
  * Whether the event was triggered as a result of a privacy regulation application
@@ -3073,7 +3108,7 @@ interface DomainEventBodyOneOf$2 {
3073
3108
  interface EntityCreatedEvent$2 {
3074
3109
  entity?: string;
3075
3110
  }
3076
- interface UndeleteInfo {
3111
+ interface RestoreInfo$2 {
3077
3112
  deletedDate?: Date;
3078
3113
  }
3079
3114
  interface EntityUpdatedEvent$2 {
@@ -3094,22 +3129,22 @@ interface ActionEvent$2 {
3094
3129
  interface Empty$1 {
3095
3130
  }
3096
3131
  interface SuccessfulReferralEvent$1 {
3097
- /** ReferredFriend that completed his referral details. */
3132
+ /** Details of the referred friend who completed their referral. */
3098
3133
  referredFriendDetails?: ReferredFriendDetails$1;
3099
3134
  }
3100
3135
  interface ReferredFriendDetails$1 {
3101
3136
  /**
3102
- * ReferredFriend ID.
3137
+ * ID of the referred friend.
3103
3138
  * @readonly
3104
3139
  */
3105
3140
  referredFriendId?: string;
3106
3141
  /**
3107
- * ReferredFriend Contact ID.
3142
+ * Contact ID of the referred friend.
3108
3143
  * @readonly
3109
3144
  */
3110
3145
  contactId?: string;
3111
3146
  /**
3112
- * Customer who referred this ReferredFriend.
3147
+ * ID of the customer who referred this friend.
3113
3148
  * @readonly
3114
3149
  */
3115
3150
  referringCustomerId?: string;
@@ -3199,37 +3234,40 @@ interface QueryReferralRewardsResponseNonNullableFields {
3199
3234
  referralRewards: ReferralRewardNonNullableFields[];
3200
3235
  }
3201
3236
  interface QueryReferralRewardsOptions {
3202
- /** Filter by contact id or set to "me" for current identity's rewards. */
3237
+ /** Contact ID to filter rewards by. Use `"me"` for current identity's rewards. */
3203
3238
  contactId?: string | null;
3204
3239
  }
3205
3240
 
3206
3241
  declare function getReferralReward$1(httpClient: HttpClient): GetReferralRewardSignature;
3207
3242
  interface GetReferralRewardSignature {
3208
3243
  /**
3209
- * Get a ReferralReward by id.
3210
- * @param - Id of the ReferralReward to retrieve.
3211
- * @returns The retrieved ReferralReward.
3244
+ * Retrieves a referral reward.
3245
+ * @param - Referral reward ID.
3246
+ * @returns Retrieved referral reward.
3212
3247
  */
3213
3248
  (_id: string): Promise<ReferralReward & ReferralRewardNonNullableFields>;
3214
3249
  }
3215
3250
  declare function queryReferralRewards$1(httpClient: HttpClient): QueryReferralRewardsSignature;
3216
3251
  interface QueryReferralRewardsSignature {
3217
3252
  /**
3218
- * Query ReferralRewards.
3253
+ * Retrieves a list of referral rewards, given the provided paging, filtering, and sorting.
3219
3254
  *
3220
- * Can be filtered by `contact_id`. If it's set to `me` current identity's rewards are returned.
3221
- * Supports filtering on `owner_type`, `reward_type` fields.
3222
- * @param - Query to filter ReferralRewards.
3255
+ * You can filter the results by:
3256
+ * - `contact_id`: Set to `me` to return rewards for the current identity.
3257
+ * - `owner_type`.
3258
+ * - `reward_type`.
3259
+ *
3260
+ * To learn about working with _Query_ endpoints, see
3261
+ * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
3262
+ * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),
3263
+ * and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
3264
+ * @param - Query to filter referral rewards.
3223
3265
  */
3224
3266
  (query: CursorQuery$2, options?: QueryReferralRewardsOptions | undefined): Promise<QueryReferralRewardsResponse & QueryReferralRewardsResponseNonNullableFields>;
3225
3267
  }
3226
3268
 
3227
- declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
3228
-
3229
- type _publicGetReferralRewardType = typeof getReferralReward$1;
3230
- declare const getReferralReward: ReturnType<typeof createRESTModule$2<_publicGetReferralRewardType>>;
3231
- type _publicQueryReferralRewardsType = typeof queryReferralRewards$1;
3232
- declare const queryReferralRewards: ReturnType<typeof createRESTModule$2<_publicQueryReferralRewardsType>>;
3269
+ declare const getReferralReward: BuildRESTFunction<typeof getReferralReward$1> & typeof getReferralReward$1;
3270
+ declare const queryReferralRewards: BuildRESTFunction<typeof queryReferralRewards$1> & typeof queryReferralRewards$1;
3233
3271
 
3234
3272
  type context$2_BulkGetReferralRewardsRequest = BulkGetReferralRewardsRequest;
3235
3273
  type context$2_BulkGetReferralRewardsResponse = BulkGetReferralRewardsResponse;
@@ -3261,17 +3299,14 @@ declare const context$2_RewardTypeType: typeof RewardTypeType;
3261
3299
  type context$2_RewardsInSite = RewardsInSite;
3262
3300
  type context$2_Type = Type;
3263
3301
  declare const context$2_Type: typeof Type;
3264
- type context$2_UndeleteInfo = UndeleteInfo;
3265
3302
  type context$2_V1Coupon = V1Coupon;
3266
3303
  type context$2_V1LoyaltyPoints = V1LoyaltyPoints;
3267
3304
  type context$2_ValidateReferralRewardRequest = ValidateReferralRewardRequest;
3268
3305
  type context$2_ValidateReferralRewardResponse = ValidateReferralRewardResponse;
3269
- type context$2__publicGetReferralRewardType = _publicGetReferralRewardType;
3270
- type context$2__publicQueryReferralRewardsType = _publicQueryReferralRewardsType;
3271
3306
  declare const context$2_getReferralReward: typeof getReferralReward;
3272
3307
  declare const context$2_queryReferralRewards: typeof queryReferralRewards;
3273
3308
  declare namespace context$2 {
3274
- export { type ActionEvent$2 as ActionEvent, type context$2_BulkGetReferralRewardsRequest as BulkGetReferralRewardsRequest, type context$2_BulkGetReferralRewardsResponse as BulkGetReferralRewardsResponse, type context$2_Coupon as Coupon, type context$2_CouponDiscountTypeOptionsOneOf as CouponDiscountTypeOptionsOneOf, type context$2_CouponScope as CouponScope, type context$2_CouponScopeOrMinSubtotalOneOf as CouponScopeOrMinSubtotalOneOf, type CursorPaging$2 as CursorPaging, type CursorPagingMetadata$2 as CursorPagingMetadata, type CursorQuery$2 as CursorQuery, type CursorQueryPagingMethodOneOf$2 as CursorQueryPagingMethodOneOf, type Cursors$2 as Cursors, context$2_DiscountType as DiscountType, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type context$2_FixedAmountDiscount as FixedAmountDiscount, type context$2_GetReferralRewardRequest as GetReferralRewardRequest, type context$2_GetReferralRewardResponse as GetReferralRewardResponse, type context$2_GetReferralRewardResponseNonNullableFields as GetReferralRewardResponseNonNullableFields, type context$2_Group as Group, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type context$2_LoyaltyPoints as LoyaltyPoints, type MessageEnvelope$2 as MessageEnvelope, type context$2_PercentageDiscount as PercentageDiscount, type context$2_QueryReferralRewardsOptions as QueryReferralRewardsOptions, type context$2_QueryReferralRewardsRequest as QueryReferralRewardsRequest, type context$2_QueryReferralRewardsResponse as QueryReferralRewardsResponse, type context$2_QueryReferralRewardsResponseNonNullableFields as QueryReferralRewardsResponseNonNullableFields, type context$2_ReferralReward as ReferralReward, type context$2_ReferralRewardNonNullableFields as ReferralRewardNonNullableFields, type context$2_ReferralRewardReceiverOneOf as ReferralRewardReceiverOneOf, type context$2_ReferralRewardRewardTypeOptionsOneOf as ReferralRewardRewardTypeOptionsOneOf, type ReferredFriendDetails$1 as ReferredFriendDetails, type context$2_Reward as Reward, type context$2_RewardOptionsOneOf as RewardOptionsOneOf, context$2_RewardTypeType as RewardTypeType, type context$2_RewardsInSite as RewardsInSite, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, Status$1 as Status, type SuccessfulReferralEvent$1 as SuccessfulReferralEvent, context$2_Type as Type, type context$2_UndeleteInfo as UndeleteInfo, type context$2_V1Coupon as V1Coupon, type context$2_V1LoyaltyPoints as V1LoyaltyPoints, type context$2_ValidateReferralRewardRequest as ValidateReferralRewardRequest, type context$2_ValidateReferralRewardResponse as ValidateReferralRewardResponse, WebhookIdentityType$2 as WebhookIdentityType, type context$2__publicGetReferralRewardType as _publicGetReferralRewardType, type context$2__publicQueryReferralRewardsType as _publicQueryReferralRewardsType, context$2_getReferralReward as getReferralReward, context$2_queryReferralRewards as queryReferralRewards };
3309
+ export { type ActionEvent$2 as ActionEvent, type context$2_BulkGetReferralRewardsRequest as BulkGetReferralRewardsRequest, type context$2_BulkGetReferralRewardsResponse as BulkGetReferralRewardsResponse, type context$2_Coupon as Coupon, type context$2_CouponDiscountTypeOptionsOneOf as CouponDiscountTypeOptionsOneOf, type context$2_CouponScope as CouponScope, type context$2_CouponScopeOrMinSubtotalOneOf as CouponScopeOrMinSubtotalOneOf, type CursorPaging$2 as CursorPaging, type CursorPagingMetadata$2 as CursorPagingMetadata, type CursorQuery$2 as CursorQuery, type CursorQueryPagingMethodOneOf$2 as CursorQueryPagingMethodOneOf, type Cursors$2 as Cursors, context$2_DiscountType as DiscountType, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type context$2_FixedAmountDiscount as FixedAmountDiscount, type context$2_GetReferralRewardRequest as GetReferralRewardRequest, type context$2_GetReferralRewardResponse as GetReferralRewardResponse, type context$2_GetReferralRewardResponseNonNullableFields as GetReferralRewardResponseNonNullableFields, type context$2_Group as Group, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type context$2_LoyaltyPoints as LoyaltyPoints, type MessageEnvelope$2 as MessageEnvelope, type context$2_PercentageDiscount as PercentageDiscount, type context$2_QueryReferralRewardsOptions as QueryReferralRewardsOptions, type context$2_QueryReferralRewardsRequest as QueryReferralRewardsRequest, type context$2_QueryReferralRewardsResponse as QueryReferralRewardsResponse, type context$2_QueryReferralRewardsResponseNonNullableFields as QueryReferralRewardsResponseNonNullableFields, type context$2_ReferralReward as ReferralReward, type context$2_ReferralRewardNonNullableFields as ReferralRewardNonNullableFields, type context$2_ReferralRewardReceiverOneOf as ReferralRewardReceiverOneOf, type context$2_ReferralRewardRewardTypeOptionsOneOf as ReferralRewardRewardTypeOptionsOneOf, type ReferredFriendDetails$1 as ReferredFriendDetails, type RestoreInfo$2 as RestoreInfo, type context$2_Reward as Reward, type context$2_RewardOptionsOneOf as RewardOptionsOneOf, context$2_RewardTypeType as RewardTypeType, type context$2_RewardsInSite as RewardsInSite, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, Status$1 as Status, type SuccessfulReferralEvent$1 as SuccessfulReferralEvent, context$2_Type as Type, type context$2_V1Coupon as V1Coupon, type context$2_V1LoyaltyPoints as V1LoyaltyPoints, type context$2_ValidateReferralRewardRequest as ValidateReferralRewardRequest, type context$2_ValidateReferralRewardResponse as ValidateReferralRewardResponse, WebhookIdentityType$2 as WebhookIdentityType, context$2_getReferralReward as getReferralReward, context$2_queryReferralRewards as queryReferralRewards };
3275
3310
  }
3276
3311
 
3277
3312
  interface ReferredFriend {
@@ -3846,22 +3881,14 @@ declare const onReferredFriendCreated$1: EventDefinition<ReferredFriendCreatedEn
3846
3881
  declare const onReferredFriendUpdated$1: EventDefinition<ReferredFriendUpdatedEnvelope, "wix.loyalty.referral.v1.referred_friend_updated">;
3847
3882
  declare const onReferredFriendDeleted$1: EventDefinition<ReferredFriendDeletedEnvelope, "wix.loyalty.referral.v1.referred_friend_deleted">;
3848
3883
 
3849
- declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
3850
-
3851
3884
  declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
3852
3885
 
3853
- type _publicCreateReferredFriendType = typeof createReferredFriend$1;
3854
- declare const createReferredFriend: ReturnType<typeof createRESTModule$1<_publicCreateReferredFriendType>>;
3855
- type _publicGetReferredFriendType = typeof getReferredFriend$1;
3856
- declare const getReferredFriend: ReturnType<typeof createRESTModule$1<_publicGetReferredFriendType>>;
3857
- type _publicGetReferredFriendByContactIdType = typeof getReferredFriendByContactId$1;
3858
- declare const getReferredFriendByContactId: ReturnType<typeof createRESTModule$1<_publicGetReferredFriendByContactIdType>>;
3859
- type _publicUpdateReferredFriendType = typeof updateReferredFriend$1;
3860
- declare const updateReferredFriend: ReturnType<typeof createRESTModule$1<_publicUpdateReferredFriendType>>;
3861
- type _publicDeleteReferredFriendType = typeof deleteReferredFriend$1;
3862
- declare const deleteReferredFriend: ReturnType<typeof createRESTModule$1<_publicDeleteReferredFriendType>>;
3863
- type _publicQueryReferredFriendType = typeof queryReferredFriend$1;
3864
- declare const queryReferredFriend: ReturnType<typeof createRESTModule$1<_publicQueryReferredFriendType>>;
3886
+ declare const createReferredFriend: BuildRESTFunction<typeof createReferredFriend$1> & typeof createReferredFriend$1;
3887
+ declare const getReferredFriend: BuildRESTFunction<typeof getReferredFriend$1> & typeof getReferredFriend$1;
3888
+ declare const getReferredFriendByContactId: BuildRESTFunction<typeof getReferredFriendByContactId$1> & typeof getReferredFriendByContactId$1;
3889
+ declare const updateReferredFriend: BuildRESTFunction<typeof updateReferredFriend$1> & typeof updateReferredFriend$1;
3890
+ declare const deleteReferredFriend: BuildRESTFunction<typeof deleteReferredFriend$1> & typeof deleteReferredFriend$1;
3891
+ declare const queryReferredFriend: BuildRESTFunction<typeof queryReferredFriend$1> & typeof queryReferredFriend$1;
3865
3892
 
3866
3893
  type _publicOnReferredFriendCreatedType = typeof onReferredFriendCreated$1;
3867
3894
  /** */
@@ -3907,15 +3934,9 @@ type context$1_UpdateReferredFriend = UpdateReferredFriend;
3907
3934
  type context$1_UpdateReferredFriendRequest = UpdateReferredFriendRequest;
3908
3935
  type context$1_UpdateReferredFriendResponse = UpdateReferredFriendResponse;
3909
3936
  type context$1_UpdateReferredFriendResponseNonNullableFields = UpdateReferredFriendResponseNonNullableFields;
3910
- type context$1__publicCreateReferredFriendType = _publicCreateReferredFriendType;
3911
- type context$1__publicDeleteReferredFriendType = _publicDeleteReferredFriendType;
3912
- type context$1__publicGetReferredFriendByContactIdType = _publicGetReferredFriendByContactIdType;
3913
- type context$1__publicGetReferredFriendType = _publicGetReferredFriendType;
3914
3937
  type context$1__publicOnReferredFriendCreatedType = _publicOnReferredFriendCreatedType;
3915
3938
  type context$1__publicOnReferredFriendDeletedType = _publicOnReferredFriendDeletedType;
3916
3939
  type context$1__publicOnReferredFriendUpdatedType = _publicOnReferredFriendUpdatedType;
3917
- type context$1__publicQueryReferredFriendType = _publicQueryReferredFriendType;
3918
- type context$1__publicUpdateReferredFriendType = _publicUpdateReferredFriendType;
3919
3940
  declare const context$1_createReferredFriend: typeof createReferredFriend;
3920
3941
  declare const context$1_deleteReferredFriend: typeof deleteReferredFriend;
3921
3942
  declare const context$1_getReferredFriend: typeof getReferredFriend;
@@ -3926,7 +3947,7 @@ declare const context$1_onReferredFriendUpdated: typeof onReferredFriendUpdated;
3926
3947
  declare const context$1_queryReferredFriend: typeof queryReferredFriend;
3927
3948
  declare const context$1_updateReferredFriend: typeof updateReferredFriend;
3928
3949
  declare namespace context$1 {
3929
- export { type ActionEvent$1 as ActionEvent, type BaseEventMetadata$1 as BaseEventMetadata, type context$1_CreateReferredFriendOptions as CreateReferredFriendOptions, type context$1_CreateReferredFriendRequest as CreateReferredFriendRequest, type context$1_CreateReferredFriendResponse as CreateReferredFriendResponse, type context$1_CreateReferredFriendResponseNonNullableFields as CreateReferredFriendResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type CursorQuery$1 as CursorQuery, type CursorQueryPagingMethodOneOf$1 as CursorQueryPagingMethodOneOf, type Cursors$1 as Cursors, type context$1_DeleteReferredFriendOptions as DeleteReferredFriendOptions, type context$1_DeleteReferredFriendRequest as DeleteReferredFriendRequest, type context$1_DeleteReferredFriendResponse as DeleteReferredFriendResponse, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type context$1_Empty as Empty, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type context$1_GetReferredFriendByContactIdRequest as GetReferredFriendByContactIdRequest, type context$1_GetReferredFriendByContactIdResponse as GetReferredFriendByContactIdResponse, type context$1_GetReferredFriendByContactIdResponseNonNullableFields as GetReferredFriendByContactIdResponseNonNullableFields, type context$1_GetReferredFriendRequest as GetReferredFriendRequest, type context$1_GetReferredFriendResponse as GetReferredFriendResponse, type context$1_GetReferredFriendResponseNonNullableFields as GetReferredFriendResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type MessageEnvelope$1 as MessageEnvelope, type context$1_QueryReferredFriendRequest as QueryReferredFriendRequest, type context$1_QueryReferredFriendResponse as QueryReferredFriendResponse, type context$1_QueryReferredFriendResponseNonNullableFields as QueryReferredFriendResponseNonNullableFields, type context$1_ReferredFriend as ReferredFriend, type context$1_ReferredFriendCreatedEnvelope as ReferredFriendCreatedEnvelope, type context$1_ReferredFriendDeletedEnvelope as ReferredFriendDeletedEnvelope, type context$1_ReferredFriendDetails as ReferredFriendDetails, type context$1_ReferredFriendNonNullableFields as ReferredFriendNonNullableFields, type context$1_ReferredFriendUpdatedEnvelope as ReferredFriendUpdatedEnvelope, type context$1_ReferredFriendsQueryBuilder as ReferredFriendsQueryBuilder, type context$1_ReferredFriendsQueryResult as ReferredFriendsQueryResult, type RestoreInfo$1 as RestoreInfo, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, context$1_Status as Status, type context$1_SuccessfulReferralEvent as SuccessfulReferralEvent, type context$1_UpdateReferredFriend as UpdateReferredFriend, type context$1_UpdateReferredFriendRequest as UpdateReferredFriendRequest, type context$1_UpdateReferredFriendResponse as UpdateReferredFriendResponse, type context$1_UpdateReferredFriendResponseNonNullableFields as UpdateReferredFriendResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, type context$1__publicCreateReferredFriendType as _publicCreateReferredFriendType, type context$1__publicDeleteReferredFriendType as _publicDeleteReferredFriendType, type context$1__publicGetReferredFriendByContactIdType as _publicGetReferredFriendByContactIdType, type context$1__publicGetReferredFriendType as _publicGetReferredFriendType, type context$1__publicOnReferredFriendCreatedType as _publicOnReferredFriendCreatedType, type context$1__publicOnReferredFriendDeletedType as _publicOnReferredFriendDeletedType, type context$1__publicOnReferredFriendUpdatedType as _publicOnReferredFriendUpdatedType, type context$1__publicQueryReferredFriendType as _publicQueryReferredFriendType, type context$1__publicUpdateReferredFriendType as _publicUpdateReferredFriendType, context$1_createReferredFriend as createReferredFriend, context$1_deleteReferredFriend as deleteReferredFriend, context$1_getReferredFriend as getReferredFriend, context$1_getReferredFriendByContactId as getReferredFriendByContactId, context$1_onReferredFriendCreated as onReferredFriendCreated, context$1_onReferredFriendDeleted as onReferredFriendDeleted, context$1_onReferredFriendUpdated as onReferredFriendUpdated, onReferredFriendCreated$1 as publicOnReferredFriendCreated, onReferredFriendDeleted$1 as publicOnReferredFriendDeleted, onReferredFriendUpdated$1 as publicOnReferredFriendUpdated, context$1_queryReferredFriend as queryReferredFriend, context$1_updateReferredFriend as updateReferredFriend };
3950
+ export { type ActionEvent$1 as ActionEvent, type BaseEventMetadata$1 as BaseEventMetadata, type context$1_CreateReferredFriendOptions as CreateReferredFriendOptions, type context$1_CreateReferredFriendRequest as CreateReferredFriendRequest, type context$1_CreateReferredFriendResponse as CreateReferredFriendResponse, type context$1_CreateReferredFriendResponseNonNullableFields as CreateReferredFriendResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type CursorQuery$1 as CursorQuery, type CursorQueryPagingMethodOneOf$1 as CursorQueryPagingMethodOneOf, type Cursors$1 as Cursors, type context$1_DeleteReferredFriendOptions as DeleteReferredFriendOptions, type context$1_DeleteReferredFriendRequest as DeleteReferredFriendRequest, type context$1_DeleteReferredFriendResponse as DeleteReferredFriendResponse, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type context$1_Empty as Empty, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type context$1_GetReferredFriendByContactIdRequest as GetReferredFriendByContactIdRequest, type context$1_GetReferredFriendByContactIdResponse as GetReferredFriendByContactIdResponse, type context$1_GetReferredFriendByContactIdResponseNonNullableFields as GetReferredFriendByContactIdResponseNonNullableFields, type context$1_GetReferredFriendRequest as GetReferredFriendRequest, type context$1_GetReferredFriendResponse as GetReferredFriendResponse, type context$1_GetReferredFriendResponseNonNullableFields as GetReferredFriendResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type MessageEnvelope$1 as MessageEnvelope, type context$1_QueryReferredFriendRequest as QueryReferredFriendRequest, type context$1_QueryReferredFriendResponse as QueryReferredFriendResponse, type context$1_QueryReferredFriendResponseNonNullableFields as QueryReferredFriendResponseNonNullableFields, type context$1_ReferredFriend as ReferredFriend, type context$1_ReferredFriendCreatedEnvelope as ReferredFriendCreatedEnvelope, type context$1_ReferredFriendDeletedEnvelope as ReferredFriendDeletedEnvelope, type context$1_ReferredFriendDetails as ReferredFriendDetails, type context$1_ReferredFriendNonNullableFields as ReferredFriendNonNullableFields, type context$1_ReferredFriendUpdatedEnvelope as ReferredFriendUpdatedEnvelope, type context$1_ReferredFriendsQueryBuilder as ReferredFriendsQueryBuilder, type context$1_ReferredFriendsQueryResult as ReferredFriendsQueryResult, type RestoreInfo$1 as RestoreInfo, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, context$1_Status as Status, type context$1_SuccessfulReferralEvent as SuccessfulReferralEvent, type context$1_UpdateReferredFriend as UpdateReferredFriend, type context$1_UpdateReferredFriendRequest as UpdateReferredFriendRequest, type context$1_UpdateReferredFriendResponse as UpdateReferredFriendResponse, type context$1_UpdateReferredFriendResponseNonNullableFields as UpdateReferredFriendResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, type context$1__publicOnReferredFriendCreatedType as _publicOnReferredFriendCreatedType, type context$1__publicOnReferredFriendDeletedType as _publicOnReferredFriendDeletedType, type context$1__publicOnReferredFriendUpdatedType as _publicOnReferredFriendUpdatedType, context$1_createReferredFriend as createReferredFriend, context$1_deleteReferredFriend as deleteReferredFriend, context$1_getReferredFriend as getReferredFriend, context$1_getReferredFriendByContactId as getReferredFriendByContactId, context$1_onReferredFriendCreated as onReferredFriendCreated, context$1_onReferredFriendDeleted as onReferredFriendDeleted, context$1_onReferredFriendUpdated as onReferredFriendUpdated, onReferredFriendCreated$1 as publicOnReferredFriendCreated, onReferredFriendDeleted$1 as publicOnReferredFriendDeleted, onReferredFriendUpdated$1 as publicOnReferredFriendUpdated, context$1_queryReferredFriend as queryReferredFriend, context$1_updateReferredFriend as updateReferredFriend };
3930
3951
  }
3931
3952
 
3932
3953
  /** ReferringCustomer is the main entity of ReferringCustomers. */
@@ -4392,20 +4413,13 @@ interface DeleteReferringCustomerSignature {
4392
4413
  declare const onReferringCustomerCreated$1: EventDefinition<ReferringCustomerCreatedEnvelope, "wix.loyalty.referral.v1.referring_customer_created">;
4393
4414
  declare const onReferringCustomerDeleted$1: EventDefinition<ReferringCustomerDeletedEnvelope, "wix.loyalty.referral.v1.referring_customer_deleted">;
4394
4415
 
4395
- declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
4396
-
4397
4416
  declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
4398
4417
 
4399
- type _publicGenerateReferringCustomerForContactType = typeof generateReferringCustomerForContact$1;
4400
- declare const generateReferringCustomerForContact: ReturnType<typeof createRESTModule<_publicGenerateReferringCustomerForContactType>>;
4401
- type _publicGetReferringCustomerType = typeof getReferringCustomer$1;
4402
- declare const getReferringCustomer: ReturnType<typeof createRESTModule<_publicGetReferringCustomerType>>;
4403
- type _publicGetReferringCustomerByReferralCodeType = typeof getReferringCustomerByReferralCode$1;
4404
- declare const getReferringCustomerByReferralCode: ReturnType<typeof createRESTModule<_publicGetReferringCustomerByReferralCodeType>>;
4405
- type _publicQueryReferringCustomersType = typeof queryReferringCustomers$1;
4406
- declare const queryReferringCustomers: ReturnType<typeof createRESTModule<_publicQueryReferringCustomersType>>;
4407
- type _publicDeleteReferringCustomerType = typeof deleteReferringCustomer$1;
4408
- declare const deleteReferringCustomer: ReturnType<typeof createRESTModule<_publicDeleteReferringCustomerType>>;
4418
+ declare const generateReferringCustomerForContact: BuildRESTFunction<typeof generateReferringCustomerForContact$1> & typeof generateReferringCustomerForContact$1;
4419
+ declare const getReferringCustomer: BuildRESTFunction<typeof getReferringCustomer$1> & typeof getReferringCustomer$1;
4420
+ declare const getReferringCustomerByReferralCode: BuildRESTFunction<typeof getReferringCustomerByReferralCode$1> & typeof getReferringCustomerByReferralCode$1;
4421
+ declare const queryReferringCustomers: BuildRESTFunction<typeof queryReferringCustomers$1> & typeof queryReferringCustomers$1;
4422
+ declare const deleteReferringCustomer: BuildRESTFunction<typeof deleteReferringCustomer$1> & typeof deleteReferringCustomer$1;
4409
4423
 
4410
4424
  type _publicOnReferringCustomerCreatedType = typeof onReferringCustomerCreated$1;
4411
4425
  /** */
@@ -4458,13 +4472,8 @@ declare const context_SortOrder: typeof SortOrder;
4458
4472
  type context_Sorting = Sorting;
4459
4473
  type context_WebhookIdentityType = WebhookIdentityType;
4460
4474
  declare const context_WebhookIdentityType: typeof WebhookIdentityType;
4461
- type context__publicDeleteReferringCustomerType = _publicDeleteReferringCustomerType;
4462
- type context__publicGenerateReferringCustomerForContactType = _publicGenerateReferringCustomerForContactType;
4463
- type context__publicGetReferringCustomerByReferralCodeType = _publicGetReferringCustomerByReferralCodeType;
4464
- type context__publicGetReferringCustomerType = _publicGetReferringCustomerType;
4465
4475
  type context__publicOnReferringCustomerCreatedType = _publicOnReferringCustomerCreatedType;
4466
4476
  type context__publicOnReferringCustomerDeletedType = _publicOnReferringCustomerDeletedType;
4467
- type context__publicQueryReferringCustomersType = _publicQueryReferringCustomersType;
4468
4477
  declare const context_deleteReferringCustomer: typeof deleteReferringCustomer;
4469
4478
  declare const context_generateReferringCustomerForContact: typeof generateReferringCustomerForContact;
4470
4479
  declare const context_getReferringCustomer: typeof getReferringCustomer;
@@ -4473,7 +4482,7 @@ declare const context_onReferringCustomerCreated: typeof onReferringCustomerCrea
4473
4482
  declare const context_onReferringCustomerDeleted: typeof onReferringCustomerDeleted;
4474
4483
  declare const context_queryReferringCustomers: typeof queryReferringCustomers;
4475
4484
  declare namespace context {
4476
- export { type context_ActionEvent as ActionEvent, type context_BaseEventMetadata as BaseEventMetadata, type context_CursorPaging as CursorPaging, type context_CursorPagingMetadata as CursorPagingMetadata, type context_CursorQuery as CursorQuery, type context_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type context_Cursors as Cursors, type context_DeleteReferringCustomerOptions as DeleteReferringCustomerOptions, type context_DeleteReferringCustomerRequest as DeleteReferringCustomerRequest, type context_DeleteReferringCustomerResponse as DeleteReferringCustomerResponse, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_GenerateReferringCustomerForContactRequest as GenerateReferringCustomerForContactRequest, type context_GenerateReferringCustomerForContactResponse as GenerateReferringCustomerForContactResponse, type context_GenerateReferringCustomerForContactResponseNonNullableFields as GenerateReferringCustomerForContactResponseNonNullableFields, type context_GetReferringCustomerByReferralCodeRequest as GetReferringCustomerByReferralCodeRequest, type context_GetReferringCustomerByReferralCodeResponse as GetReferringCustomerByReferralCodeResponse, type context_GetReferringCustomerByReferralCodeResponseNonNullableFields as GetReferringCustomerByReferralCodeResponseNonNullableFields, type context_GetReferringCustomerRequest as GetReferringCustomerRequest, type context_GetReferringCustomerResponse as GetReferringCustomerResponse, type context_GetReferringCustomerResponseNonNullableFields as GetReferringCustomerResponseNonNullableFields, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_MessageEnvelope as MessageEnvelope, type context_QueryReferringCustomersRequest as QueryReferringCustomersRequest, type context_QueryReferringCustomersResponse as QueryReferringCustomersResponse, type context_QueryReferringCustomersResponseNonNullableFields as QueryReferringCustomersResponseNonNullableFields, type context_ReferringCustomer as ReferringCustomer, type context_ReferringCustomerCreatedEnvelope as ReferringCustomerCreatedEnvelope, type context_ReferringCustomerDeletedEnvelope as ReferringCustomerDeletedEnvelope, type context_ReferringCustomerNonNullableFields as ReferringCustomerNonNullableFields, type context_ReferringCustomersQueryBuilder as ReferringCustomersQueryBuilder, type context_ReferringCustomersQueryResult as ReferringCustomersQueryResult, type context_RestoreInfo as RestoreInfo, context_SortOrder as SortOrder, type context_Sorting as Sorting, context_WebhookIdentityType as WebhookIdentityType, type context__publicDeleteReferringCustomerType as _publicDeleteReferringCustomerType, type context__publicGenerateReferringCustomerForContactType as _publicGenerateReferringCustomerForContactType, type context__publicGetReferringCustomerByReferralCodeType as _publicGetReferringCustomerByReferralCodeType, type context__publicGetReferringCustomerType as _publicGetReferringCustomerType, type context__publicOnReferringCustomerCreatedType as _publicOnReferringCustomerCreatedType, type context__publicOnReferringCustomerDeletedType as _publicOnReferringCustomerDeletedType, type context__publicQueryReferringCustomersType as _publicQueryReferringCustomersType, context_deleteReferringCustomer as deleteReferringCustomer, context_generateReferringCustomerForContact as generateReferringCustomerForContact, context_getReferringCustomer as getReferringCustomer, context_getReferringCustomerByReferralCode as getReferringCustomerByReferralCode, context_onReferringCustomerCreated as onReferringCustomerCreated, context_onReferringCustomerDeleted as onReferringCustomerDeleted, onReferringCustomerCreated$1 as publicOnReferringCustomerCreated, onReferringCustomerDeleted$1 as publicOnReferringCustomerDeleted, context_queryReferringCustomers as queryReferringCustomers };
4485
+ export { type context_ActionEvent as ActionEvent, type context_BaseEventMetadata as BaseEventMetadata, type context_CursorPaging as CursorPaging, type context_CursorPagingMetadata as CursorPagingMetadata, type context_CursorQuery as CursorQuery, type context_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type context_Cursors as Cursors, type context_DeleteReferringCustomerOptions as DeleteReferringCustomerOptions, type context_DeleteReferringCustomerRequest as DeleteReferringCustomerRequest, type context_DeleteReferringCustomerResponse as DeleteReferringCustomerResponse, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_GenerateReferringCustomerForContactRequest as GenerateReferringCustomerForContactRequest, type context_GenerateReferringCustomerForContactResponse as GenerateReferringCustomerForContactResponse, type context_GenerateReferringCustomerForContactResponseNonNullableFields as GenerateReferringCustomerForContactResponseNonNullableFields, type context_GetReferringCustomerByReferralCodeRequest as GetReferringCustomerByReferralCodeRequest, type context_GetReferringCustomerByReferralCodeResponse as GetReferringCustomerByReferralCodeResponse, type context_GetReferringCustomerByReferralCodeResponseNonNullableFields as GetReferringCustomerByReferralCodeResponseNonNullableFields, type context_GetReferringCustomerRequest as GetReferringCustomerRequest, type context_GetReferringCustomerResponse as GetReferringCustomerResponse, type context_GetReferringCustomerResponseNonNullableFields as GetReferringCustomerResponseNonNullableFields, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_MessageEnvelope as MessageEnvelope, type context_QueryReferringCustomersRequest as QueryReferringCustomersRequest, type context_QueryReferringCustomersResponse as QueryReferringCustomersResponse, type context_QueryReferringCustomersResponseNonNullableFields as QueryReferringCustomersResponseNonNullableFields, type context_ReferringCustomer as ReferringCustomer, type context_ReferringCustomerCreatedEnvelope as ReferringCustomerCreatedEnvelope, type context_ReferringCustomerDeletedEnvelope as ReferringCustomerDeletedEnvelope, type context_ReferringCustomerNonNullableFields as ReferringCustomerNonNullableFields, type context_ReferringCustomersQueryBuilder as ReferringCustomersQueryBuilder, type context_ReferringCustomersQueryResult as ReferringCustomersQueryResult, type context_RestoreInfo as RestoreInfo, context_SortOrder as SortOrder, type context_Sorting as Sorting, context_WebhookIdentityType as WebhookIdentityType, type context__publicOnReferringCustomerCreatedType as _publicOnReferringCustomerCreatedType, type context__publicOnReferringCustomerDeletedType as _publicOnReferringCustomerDeletedType, context_deleteReferringCustomer as deleteReferringCustomer, context_generateReferringCustomerForContact as generateReferringCustomerForContact, context_getReferringCustomer as getReferringCustomer, context_getReferringCustomerByReferralCode as getReferringCustomerByReferralCode, context_onReferringCustomerCreated as onReferringCustomerCreated, context_onReferringCustomerDeleted as onReferringCustomerDeleted, onReferringCustomerCreated$1 as publicOnReferringCustomerCreated, onReferringCustomerDeleted$1 as publicOnReferringCustomerDeleted, context_queryReferringCustomers as queryReferringCustomers };
4477
4486
  }
4478
4487
 
4479
4488
  export { context as customers, context$1 as friends, context$4 as programs, context$2 as rewards, context$3 as tracker };