@wix/referral 1.0.8 → 1.0.10

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.
@@ -1,54 +1,68 @@
1
- /** ReferralProgram is the main entity of ReferralPrograms that can be used to manage the program. */
2
1
  interface ReferralProgram {
3
2
  /** Referral program name. */
4
3
  name?: string | null;
5
4
  /**
6
- * Referral program status.
5
+ * The status of the referral program.
6
+ *
7
+ * `UNKNOWN`: Status is unknown, this status is never used.
8
+ * `DRAFT`: Rderral program is in a draft state, currently being modified, not yet active.
9
+ * `ACTIVE`: Referral program is active.
10
+ * `PAUSED`: Referral program is paused.
7
11
  * @readonly
8
12
  */
9
13
  status?: ProgramStatus;
10
- /** 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. */
14
+ /** Revision number, which increments by 1 each time the program is updated. To prevent conflicting changes, the current `revision` must be passed when updating the program. */
11
15
  revision?: string | null;
12
16
  /**
13
- * Program's creation date and time.
17
+ * Date and time the program was created.
14
18
  * @readonly
15
19
  */
16
20
  _createdDate?: Date;
17
21
  /**
18
- * Program's last update date and time
22
+ * Date and time the program was updated.
19
23
  * @readonly
20
24
  */
21
25
  _updatedDate?: Date;
22
- /** Referred friend reward configuration. */
26
+ /** Reward configuration for the referred friend. Specifies the reward given to a new customer who was referred to the business. */
23
27
  referredFriendReward?: Reward$2;
24
- /** Referring customer reward configuration. */
28
+ /** Reward configuration for the referring customer. Specifies the reward given to an existing customer who referred a new customer to the business. */
25
29
  referringCustomerReward?: Reward$2;
26
- /** List of actions that complete referral. */
30
+ /**
31
+ * A list of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an order.
32
+ *
33
+ * Possible values:
34
+ * -`UNKNOWN`: Action is unknown.
35
+ * -`STORE_ORDER_PLACED`: Referred friend ordered and paid for an order in a store.
36
+ * -`PLAN_ORDERED`: Referred friend ordered and paid for a plan.
37
+ * -`TICKET_ORDERED`: Referred friend ordered and paid for a ticket.
38
+ * -`SESSION_BOOKED`: Referred friend booked and paid for a session.
39
+ * -`RESTAURANT_ORDER_PLACED`: Referred friend placed and paid for a restaurant order.
40
+ */
27
41
  successfulReferralActions?: Action[];
28
42
  /**
29
- * Set to true if user has required plan to activate program.
43
+ * Whether the user has the required plan to use the referral program.
30
44
  * @readonly
31
- * @deprecated Set to true if user has required plan to activate program.
45
+ * @deprecated Whether the user has the required plan to use the referral program.
32
46
  * @replacedBy GetReferralProgramPremiumFeatures
33
47
  * @targetRemovalDate 2024-09-01
34
48
  */
35
49
  isPremium?: boolean;
36
- /** Emails configuration. */
50
+ /** Configures email notifications for the referral program. */
37
51
  emails?: Emails;
38
52
  /**
39
- * Information about available premium features
53
+ * Indicates which premium features are available for the current account.
40
54
  * @readonly
41
55
  */
42
56
  premiumFeatures?: PremiumFeatures;
43
57
  }
44
58
  declare enum ProgramStatus {
45
- /** unknown status. */
59
+ /** Program status is unknown. */
46
60
  UNKNOWN = "UNKNOWN",
47
- /** initial program status (program was created but was not enabled yet). */
61
+ /** Initial program status. The program was created but not activated. */
48
62
  DRAFT = "DRAFT",
49
- /** program is active. */
63
+ /** Program is active. */
50
64
  ACTIVE = "ACTIVE",
51
- /** program was manually disabled by the user (this action can be reverted, meaning user can set it to be active again). */
65
+ /** Program was manually disabled by the user. Can be reactivated. */
52
66
  PAUSED = "PAUSED"
53
67
  }
54
68
  interface Reward$2 extends RewardOptionsOneOf$1 {
@@ -77,37 +91,56 @@ declare enum Type$1 {
77
91
  NOTHING = "NOTHING"
78
92
  }
79
93
  interface Coupon$2 extends CouponDiscountTypeOptionsOneOf$2, CouponScopeOrMinSubtotalOneOf$2 {
80
- /** Options for fixed amount discount type. */
94
+ /** Options for fixed amount discount. */
81
95
  fixedAmountOptions?: FixedAmountDiscount$2;
82
- /** Options for percentage discount type. */
96
+ /** Options for percentage discount. */
83
97
  percentageOptions?: PercentageDiscount$2;
84
98
  /** Limit the coupon to carts with a subtotal above this number. */
85
99
  minimumSubtotal?: number;
86
- /** Specifies the type of line items this coupon will apply to. */
100
+ /** 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). */
87
101
  scope?: CouponScope$2;
88
102
  /** Coupon name. */
89
103
  name?: string;
90
- /** Coupon discount type. */
104
+ /**
105
+ * Coupon discount type.
106
+ *
107
+ * - `UNKNOWN`: Unknown discount type.
108
+ * - `FIXED_AMOUNT`: Discount as a fixed amount.
109
+ * - `PERCENTAGE`: Discount as a perctange.
110
+ * - `FREE_SHIPPING`: Free shipping. If `true`, the coupon applies to all items in all `namespaces`.
111
+ */
91
112
  discountType?: DiscountType$2;
92
- /** Limit the coupon to only apply to one item in cart. */
113
+ /**
114
+ * Whether the coupon is limited to one item.
115
+ * If `true` and a customer pays for multiple items, the discount applies to only the lowest priced item.
116
+ * Coupons with a bookings `scope.namespace` are always limited to one item.
117
+ */
93
118
  limitedToOneItem?: boolean | null;
94
- /** If true, coupon also applies to subscriptions. */
119
+ /** Whether the coupon applies to subscription products. */
95
120
  appliesToSubscriptions?: boolean | null;
96
- /** Specifies the amount of discounted cycles for subscription item. See Stores Coupons documentation for more info. */
121
+ /**
122
+ * Specifies the amount of discounted cycles for a subscription item.
123
+ *
124
+ * - Can only be set when `scope.namespace = pricingPlans`.
125
+ * - If `discountedCycleCount` is empty, the coupon applies to all available cycles.
126
+ * - `discountedCycleCount` is ignored if `appliesToSubscriptions = true`.
127
+ *
128
+ * Max: `999`
129
+ */
97
130
  discountedCycleCount?: number | null;
98
131
  }
99
132
  /** @oneof */
100
133
  interface CouponDiscountTypeOptionsOneOf$2 {
101
- /** Options for fixed amount discount type. */
134
+ /** Options for fixed amount discount. */
102
135
  fixedAmountOptions?: FixedAmountDiscount$2;
103
- /** Options for percentage discount type. */
136
+ /** Options for percentage discount. */
104
137
  percentageOptions?: PercentageDiscount$2;
105
138
  }
106
139
  /** @oneof */
107
140
  interface CouponScopeOrMinSubtotalOneOf$2 {
108
141
  /** Limit the coupon to carts with a subtotal above this number. */
109
142
  minimumSubtotal?: number;
110
- /** Specifies the type of line items this coupon will apply to. */
143
+ /** 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). */
111
144
  scope?: CouponScope$2;
112
145
  }
113
146
  declare enum DiscountType$2 {
@@ -121,17 +154,17 @@ declare enum DiscountType$2 {
121
154
  FREE_SHIPPING = "FREE_SHIPPING"
122
155
  }
123
156
  interface FixedAmountDiscount$2 {
124
- /** Fixed amount to discount. */
157
+ /** Amount of discount as a fixed value. */
125
158
  amount?: number;
126
159
  }
127
160
  interface PercentageDiscount$2 {
128
- /** Percentage to discount. */
161
+ /** Percentage of discount. */
129
162
  percentage?: number;
130
163
  }
131
164
  interface CouponScope$2 {
132
- /** Namespace of the coupon scope. */
165
+ /** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
133
166
  namespace?: string;
134
- /** Group of the coupon scope. */
167
+ /** Coupon scope's applied group, for example: Event or ticket in Wix Events */
135
168
  group?: Group$2;
136
169
  }
137
170
  interface Group$2 {
@@ -141,7 +174,7 @@ interface Group$2 {
141
174
  entityId?: string | null;
142
175
  }
143
176
  interface LoyaltyPoints$2 {
144
- /** Amount of points to give. */
177
+ /** Number of loyalty points to give. */
145
178
  amount?: number;
146
179
  }
147
180
  declare enum Action {
@@ -159,9 +192,18 @@ declare enum Action {
159
192
  RESTAURANT_ORDER_PLACED = "RESTAURANT_ORDER_PLACED"
160
193
  }
161
194
  interface Emails {
162
- /** Encourage customers to refer their friends email. Select for which apps to enable. */
195
+ /**
196
+ * Encourage customers to refer their friends email. Select for which apps to enable.
197
+ *
198
+ * - `UNKNOWN`: Unknwown email.
199
+ * - `STORES`: Send an email to customers who've placed an order with stores.
200
+ * - `PRICING_PLANS`: Send an email to customers who've placed an order with pricing plans.
201
+ * - `EVENTS`: Send an email to customers who've placed an order with events.
202
+ * - `BOOKINGS`: Send an email to customers who've placed an order with bookings.
203
+ * - `RESTAURANTS`: Send an email to customers who've placed an order with restaurants.
204
+ */
163
205
  encourageToReferFriends?: App[];
164
- /** Notify customers about their referral reward email. Set true to enable email. */
206
+ /** Whether to notify customers about their referral reward email. Set to `true` to enable email notifications. */
165
207
  notifyCustomersAboutReward?: boolean;
166
208
  }
167
209
  declare enum App {
@@ -180,7 +222,7 @@ declare enum App {
180
222
  }
181
223
  interface PremiumFeatures {
182
224
  /**
183
- * Set to true if user has referral program feature.
225
+ * Whether the user has the referral program feature.
184
226
  * @readonly
185
227
  */
186
228
  referralProgram?: boolean;
@@ -188,23 +230,23 @@ interface PremiumFeatures {
188
230
  interface GetReferralProgramRequest {
189
231
  }
190
232
  interface GetReferralProgramResponse {
191
- /** The retrieved ReferralProgram. */
233
+ /** The retrieved referral program. */
192
234
  referralProgram?: ReferralProgram;
193
235
  }
194
236
  interface BulkGetReferralProgramRequest {
195
237
  }
196
238
  interface BulkGetReferralProgramResponse {
197
- /** Referral programs. */
239
+ /** The retrieved referral programs. */
198
240
  programInSites?: ProgramInSite[];
199
241
  }
200
242
  interface ProgramInSite {
201
243
  /** Metasite ID. */
202
244
  metaSiteId?: string;
203
- /** Referral program. */
245
+ /** The retrieved referral program. */
204
246
  referralProgram?: ReferralProgram;
205
247
  }
206
248
  interface QueryReferralProgramsRequest {
207
- /** Query to filter ReferralPrograms. */
249
+ /** Query options. */
208
250
  query: CursorQuery$4;
209
251
  }
210
252
  interface CursorQuery$4 extends CursorQueryPagingMethodOneOf$4 {
@@ -258,13 +300,13 @@ interface CursorPaging$4 {
258
300
  cursor?: string | null;
259
301
  }
260
302
  interface QueryReferralProgramsResponse {
261
- /** ReferralPrograms that match the query. */
303
+ /** The referral programs that match the query. */
262
304
  referralPrograms?: ReferralProgram[];
263
305
  /** Paging metadata. */
264
306
  pagingMetadata?: CursorPagingMetadata$4;
265
307
  }
266
308
  interface CursorPagingMetadata$4 {
267
- /** Number of items returned in the response. */
309
+ /** Number of items returned in current page. */
268
310
  count?: number | null;
269
311
  /** Cursor strings that point to the next page, previous page, or both. */
270
312
  cursors?: Cursors$4;
@@ -283,56 +325,56 @@ interface Cursors$4 {
283
325
  prev?: string | null;
284
326
  }
285
327
  interface UpdateReferralProgramRequest {
286
- /** ReferralProgram to be updated, may be partial. */
328
+ /** Provide a `ReferralProgram` object with the fields to update. Include the latest `revision` for a successful update. */
287
329
  referralProgram: ReferralProgram;
288
330
  }
289
331
  interface UpdateReferralProgramResponse {
290
- /** The updated ReferralProgram. */
332
+ /** The updated referral program. */
291
333
  referralProgram?: ReferralProgram;
292
334
  }
293
335
  interface ActivateReferralProgramRequest {
294
336
  }
295
337
  interface ActivateReferralProgramResponse {
296
- /** The activated ReferralProgram. */
338
+ /** The activated referral program. */
297
339
  referralProgram?: ReferralProgram;
298
340
  }
299
341
  interface PauseReferralProgramRequest {
300
342
  }
301
343
  interface PauseReferralProgramResponse {
302
- /** The paused ReferralProgram. */
344
+ /** The paused referral program. */
303
345
  referralProgram?: ReferralProgram;
304
346
  }
305
347
  interface GetAISocialMediaPostsSuggestionsRequest {
306
- /** The topic to generate suggestions for. */
348
+ /** The topic to generate socia media post suggestions for. */
307
349
  topic?: string;
308
350
  }
309
351
  interface GetAISocialMediaPostsSuggestionsResponse {
310
- /** The generated suggestions. */
352
+ /** The generated social media post suggestions. */
311
353
  suggestions?: AISocialMediaPostSuggestion[];
312
- /** The refer friends page URL. */
354
+ /** The referral URL to refer friends. */
313
355
  referFriendsPageUrl?: string | null;
314
356
  }
315
357
  interface AISocialMediaPostSuggestion {
316
- /** The suggested post content. */
358
+ /** Suggested post content. */
317
359
  postContent?: string;
318
- /** The suggested hashtags. */
360
+ /** Suggested hashtags. */
319
361
  hashtags?: string[];
320
362
  }
321
363
  interface GenerateAISocialMediaPostsSuggestionsRequest {
322
- /** The topic to generate suggestions for. */
364
+ /** The topic to generate social media post suggestions for. */
323
365
  topic?: string;
324
366
  }
325
367
  interface GenerateAISocialMediaPostsSuggestionsResponse {
326
- /** The generated suggestions. */
368
+ /** Generated social media post suggestions. */
327
369
  suggestions?: AISocialMediaPostSuggestion[];
328
- /** The refer friends page URL. */
370
+ /** Referral URL to refer friends. */
329
371
  referFriendsPageUrl?: string | null;
330
372
  }
331
373
  interface GetReferralProgramPremiumFeaturesRequest {
332
374
  }
333
375
  interface GetReferralProgramPremiumFeaturesResponse {
334
376
  /**
335
- * Set to true if user has referral program feature.
377
+ * Whether the site has the referral program feature enabled.
336
378
  * @readonly
337
379
  */
338
380
  referralProgram?: boolean;
@@ -389,7 +431,7 @@ interface DomainEventBodyOneOf$4 {
389
431
  interface EntityCreatedEvent$4 {
390
432
  entity?: string;
391
433
  }
392
- interface RestoreInfo {
434
+ interface RestoreInfo$1 {
393
435
  deletedDate?: Date;
394
436
  }
395
437
  interface EntityUpdatedEvent$4 {
@@ -1424,11 +1466,11 @@ interface ReferralProgramsQueryBuilder {
1424
1466
  find: () => Promise<ReferralProgramsQueryResult>;
1425
1467
  }
1426
1468
  interface GetAiSocialMediaPostsSuggestionsOptions {
1427
- /** The topic to generate suggestions for. */
1469
+ /** The topic to generate socia media post suggestions for. */
1428
1470
  topic?: string;
1429
1471
  }
1430
1472
  interface GenerateAiSocialMediaPostsSuggestionsOptions {
1431
- /** The topic to generate suggestions for. */
1473
+ /** The topic to generate social media post suggestions for. */
1432
1474
  topic?: string;
1433
1475
  }
1434
1476
 
@@ -1476,19 +1518,39 @@ declare global {
1476
1518
  }
1477
1519
  }
1478
1520
 
1521
+ declare function getReferralProgram$1(httpClient: HttpClient): () => Promise<GetReferralProgramResponse & GetReferralProgramResponseNonNullableFields>;
1522
+ declare function queryReferralPrograms$1(httpClient: HttpClient): () => ReferralProgramsQueryBuilder;
1523
+ declare function updateReferralProgram$1(httpClient: HttpClient): (referralProgram: ReferralProgram) => Promise<UpdateReferralProgramResponse & UpdateReferralProgramResponseNonNullableFields>;
1524
+ declare function activateReferralProgram$1(httpClient: HttpClient): () => Promise<ActivateReferralProgramResponse & ActivateReferralProgramResponseNonNullableFields>;
1525
+ declare function pauseReferralProgram$1(httpClient: HttpClient): () => Promise<PauseReferralProgramResponse & PauseReferralProgramResponseNonNullableFields>;
1526
+ declare function getAiSocialMediaPostsSuggestions$1(httpClient: HttpClient): (options?: GetAiSocialMediaPostsSuggestionsOptions) => Promise<GetAISocialMediaPostsSuggestionsResponse & GetAISocialMediaPostsSuggestionsResponseNonNullableFields>;
1527
+ declare function generateAiSocialMediaPostsSuggestions$1(httpClient: HttpClient): (options?: GenerateAiSocialMediaPostsSuggestionsOptions) => Promise<GenerateAISocialMediaPostsSuggestionsResponse & GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields>;
1528
+ declare function getReferralProgramPremiumFeatures$1(httpClient: HttpClient): () => Promise<GetReferralProgramPremiumFeaturesResponse & GetReferralProgramPremiumFeaturesResponseNonNullableFields>;
1529
+ declare const onProgramUpdated$1: EventDefinition<ProgramUpdatedEnvelope, "wix.loyalty.referral.v1.program_updated">;
1530
+
1479
1531
  declare function createRESTModule$4<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
1480
1532
 
1481
1533
  declare function createEventModule$3<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
1482
1534
 
1483
- declare const getReferralProgram: ReturnType<typeof createRESTModule$4<typeof publicGetReferralProgram>>;
1484
- declare const queryReferralPrograms: ReturnType<typeof createRESTModule$4<typeof publicQueryReferralPrograms>>;
1485
- declare const updateReferralProgram: ReturnType<typeof createRESTModule$4<typeof publicUpdateReferralProgram>>;
1486
- declare const activateReferralProgram: ReturnType<typeof createRESTModule$4<typeof publicActivateReferralProgram>>;
1487
- declare const pauseReferralProgram: ReturnType<typeof createRESTModule$4<typeof publicPauseReferralProgram>>;
1488
- declare const getAiSocialMediaPostsSuggestions: ReturnType<typeof createRESTModule$4<typeof publicGetAiSocialMediaPostsSuggestions>>;
1489
- declare const generateAiSocialMediaPostsSuggestions: ReturnType<typeof createRESTModule$4<typeof publicGenerateAiSocialMediaPostsSuggestions>>;
1490
- declare const getReferralProgramPremiumFeatures: ReturnType<typeof createRESTModule$4<typeof publicGetReferralProgramPremiumFeatures>>;
1491
- declare const onProgramUpdated: ReturnType<typeof createEventModule$3<typeof publicOnProgramUpdated>>;
1535
+ type _publicGetReferralProgramType = typeof getReferralProgram$1;
1536
+ declare const getReferralProgram: ReturnType<typeof createRESTModule$4<_publicGetReferralProgramType>>;
1537
+ type _publicQueryReferralProgramsType = typeof queryReferralPrograms$1;
1538
+ declare const queryReferralPrograms: ReturnType<typeof createRESTModule$4<_publicQueryReferralProgramsType>>;
1539
+ type _publicUpdateReferralProgramType = typeof updateReferralProgram$1;
1540
+ declare const updateReferralProgram: ReturnType<typeof createRESTModule$4<_publicUpdateReferralProgramType>>;
1541
+ type _publicActivateReferralProgramType = typeof activateReferralProgram$1;
1542
+ declare const activateReferralProgram: ReturnType<typeof createRESTModule$4<_publicActivateReferralProgramType>>;
1543
+ type _publicPauseReferralProgramType = typeof pauseReferralProgram$1;
1544
+ declare const pauseReferralProgram: ReturnType<typeof createRESTModule$4<_publicPauseReferralProgramType>>;
1545
+ type _publicGetAiSocialMediaPostsSuggestionsType = typeof getAiSocialMediaPostsSuggestions$1;
1546
+ declare const getAiSocialMediaPostsSuggestions: ReturnType<typeof createRESTModule$4<_publicGetAiSocialMediaPostsSuggestionsType>>;
1547
+ type _publicGenerateAiSocialMediaPostsSuggestionsType = typeof generateAiSocialMediaPostsSuggestions$1;
1548
+ declare const generateAiSocialMediaPostsSuggestions: ReturnType<typeof createRESTModule$4<_publicGenerateAiSocialMediaPostsSuggestionsType>>;
1549
+ type _publicGetReferralProgramPremiumFeaturesType = typeof getReferralProgramPremiumFeatures$1;
1550
+ declare const getReferralProgramPremiumFeatures: ReturnType<typeof createRESTModule$4<_publicGetReferralProgramPremiumFeaturesType>>;
1551
+
1552
+ type _publicOnProgramUpdatedType = typeof onProgramUpdated$1;
1553
+ declare const onProgramUpdated: ReturnType<typeof createEventModule$3<_publicOnProgramUpdatedType>>;
1492
1554
 
1493
1555
  type index_d$4_AISocialMediaPostSuggestion = AISocialMediaPostSuggestion;
1494
1556
  type index_d$4_Action = Action;
@@ -1566,7 +1628,6 @@ type index_d$4_RecurringChargeSucceeded = RecurringChargeSucceeded;
1566
1628
  type index_d$4_ReferralProgram = ReferralProgram;
1567
1629
  type index_d$4_ReferralProgramsQueryBuilder = ReferralProgramsQueryBuilder;
1568
1630
  type index_d$4_ReferralProgramsQueryResult = ReferralProgramsQueryResult;
1569
- type index_d$4_RestoreInfo = RestoreInfo;
1570
1631
  type index_d$4_ServiceProvisioned = ServiceProvisioned;
1571
1632
  type index_d$4_ServiceRemoved = ServiceRemoved;
1572
1633
  type index_d$4_SiteCreated = SiteCreated;
@@ -1604,6 +1665,15 @@ declare const index_d$4_UnassignReason: typeof UnassignReason;
1604
1665
  type index_d$4_UpdateReferralProgramRequest = UpdateReferralProgramRequest;
1605
1666
  type index_d$4_UpdateReferralProgramResponse = UpdateReferralProgramResponse;
1606
1667
  type index_d$4_UpdateReferralProgramResponseNonNullableFields = UpdateReferralProgramResponseNonNullableFields;
1668
+ type index_d$4__publicActivateReferralProgramType = _publicActivateReferralProgramType;
1669
+ type index_d$4__publicGenerateAiSocialMediaPostsSuggestionsType = _publicGenerateAiSocialMediaPostsSuggestionsType;
1670
+ type index_d$4__publicGetAiSocialMediaPostsSuggestionsType = _publicGetAiSocialMediaPostsSuggestionsType;
1671
+ type index_d$4__publicGetReferralProgramPremiumFeaturesType = _publicGetReferralProgramPremiumFeaturesType;
1672
+ type index_d$4__publicGetReferralProgramType = _publicGetReferralProgramType;
1673
+ type index_d$4__publicOnProgramUpdatedType = _publicOnProgramUpdatedType;
1674
+ type index_d$4__publicPauseReferralProgramType = _publicPauseReferralProgramType;
1675
+ type index_d$4__publicQueryReferralProgramsType = _publicQueryReferralProgramsType;
1676
+ type index_d$4__publicUpdateReferralProgramType = _publicUpdateReferralProgramType;
1607
1677
  declare const index_d$4_activateReferralProgram: typeof activateReferralProgram;
1608
1678
  declare const index_d$4_generateAiSocialMediaPostsSuggestions: typeof generateAiSocialMediaPostsSuggestions;
1609
1679
  declare const index_d$4_getAiSocialMediaPostsSuggestions: typeof getAiSocialMediaPostsSuggestions;
@@ -1614,7 +1684,7 @@ declare const index_d$4_pauseReferralProgram: typeof pauseReferralProgram;
1614
1684
  declare const index_d$4_queryReferralPrograms: typeof queryReferralPrograms;
1615
1685
  declare const index_d$4_updateReferralProgram: typeof updateReferralProgram;
1616
1686
  declare namespace index_d$4 {
1617
- export { type index_d$4_AISocialMediaPostSuggestion as AISocialMediaPostSuggestion, index_d$4_Action as Action, type ActionEvent$4 as ActionEvent, type index_d$4_ActivateReferralProgramRequest as ActivateReferralProgramRequest, type index_d$4_ActivateReferralProgramResponse as ActivateReferralProgramResponse, type index_d$4_ActivateReferralProgramResponseNonNullableFields as ActivateReferralProgramResponseNonNullableFields, index_d$4_App as App, type index_d$4_Asset as Asset, type BaseEventMetadata$3 as BaseEventMetadata, type index_d$4_BillingReference as BillingReference, type index_d$4_BulkGetReferralProgramRequest as BulkGetReferralProgramRequest, type index_d$4_BulkGetReferralProgramResponse as BulkGetReferralProgramResponse, type index_d$4_CancellationDetails as CancellationDetails, index_d$4_ContractSwitchReason as ContractSwitchReason, index_d$4_ContractSwitchType as ContractSwitchType, type index_d$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 index_d$4_Cycle as Cycle, type index_d$4_CycleCycleSelectorOneOf as CycleCycleSelectorOneOf, type index_d$4_DeleteContext as DeleteContext, index_d$4_DeleteStatus as DeleteStatus, DiscountType$2 as DiscountType, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type index_d$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 index_d$4_GenerateAISocialMediaPostsSuggestionsRequest as GenerateAISocialMediaPostsSuggestionsRequest, type index_d$4_GenerateAISocialMediaPostsSuggestionsResponse as GenerateAISocialMediaPostsSuggestionsResponse, type index_d$4_GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields as GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields, type index_d$4_GenerateAiSocialMediaPostsSuggestionsOptions as GenerateAiSocialMediaPostsSuggestionsOptions, type index_d$4_GetAISocialMediaPostsSuggestionsRequest as GetAISocialMediaPostsSuggestionsRequest, type index_d$4_GetAISocialMediaPostsSuggestionsResponse as GetAISocialMediaPostsSuggestionsResponse, type index_d$4_GetAISocialMediaPostsSuggestionsResponseNonNullableFields as GetAISocialMediaPostsSuggestionsResponseNonNullableFields, type index_d$4_GetAiSocialMediaPostsSuggestionsOptions as GetAiSocialMediaPostsSuggestionsOptions, type index_d$4_GetReferralProgramPremiumFeaturesRequest as GetReferralProgramPremiumFeaturesRequest, type index_d$4_GetReferralProgramPremiumFeaturesResponse as GetReferralProgramPremiumFeaturesResponse, type index_d$4_GetReferralProgramPremiumFeaturesResponseNonNullableFields as GetReferralProgramPremiumFeaturesResponseNonNullableFields, type index_d$4_GetReferralProgramRequest as GetReferralProgramRequest, type index_d$4_GetReferralProgramResponse as GetReferralProgramResponse, type index_d$4_GetReferralProgramResponseNonNullableFields as GetReferralProgramResponseNonNullableFields, type Group$2 as Group, type index_d$4_HtmlSitePublished as HtmlSitePublished, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, index_d$4_Initiator as Initiator, type index_d$4_Interval as Interval, index_d$4_IntervalUnit as IntervalUnit, type LoyaltyPoints$2 as LoyaltyPoints, type MessageEnvelope$4 as MessageEnvelope, type index_d$4_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d$4_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, index_d$4_Namespace as Namespace, type index_d$4_NamespaceChanged as NamespaceChanged, type index_d$4_OneTime as OneTime, type index_d$4_Page as Page, type index_d$4_PauseReferralProgramRequest as PauseReferralProgramRequest, type index_d$4_PauseReferralProgramResponse as PauseReferralProgramResponse, type index_d$4_PauseReferralProgramResponseNonNullableFields as PauseReferralProgramResponseNonNullableFields, type PercentageDiscount$2 as PercentageDiscount, type index_d$4_PremiumFeatures as PremiumFeatures, index_d$4_PriceIncreaseTrigger as PriceIncreaseTrigger, index_d$4_ProductAdjustment as ProductAdjustment, type index_d$4_ProductPriceIncreaseData as ProductPriceIncreaseData, type index_d$4_ProgramInSite as ProgramInSite, index_d$4_ProgramStatus as ProgramStatus, type index_d$4_ProgramUpdatedEnvelope as ProgramUpdatedEnvelope, index_d$4_ProviderName as ProviderName, type index_d$4_QueryReferralProgramsRequest as QueryReferralProgramsRequest, type index_d$4_QueryReferralProgramsResponse as QueryReferralProgramsResponse, type index_d$4_QueryReferralProgramsResponseNonNullableFields as QueryReferralProgramsResponseNonNullableFields, type index_d$4_ReactivationData as ReactivationData, index_d$4_ReactivationReasonEnum as ReactivationReasonEnum, type index_d$4_RecurringChargeSucceeded as RecurringChargeSucceeded, type index_d$4_ReferralProgram as ReferralProgram, type index_d$4_ReferralProgramsQueryBuilder as ReferralProgramsQueryBuilder, type index_d$4_ReferralProgramsQueryResult as ReferralProgramsQueryResult, type index_d$4_RestoreInfo as RestoreInfo, type Reward$2 as Reward, type RewardOptionsOneOf$1 as RewardOptionsOneOf, type index_d$4_ServiceProvisioned as ServiceProvisioned, type index_d$4_ServiceRemoved as ServiceRemoved, type index_d$4_SiteCreated as SiteCreated, index_d$4_SiteCreatedContext as SiteCreatedContext, type index_d$4_SiteDeleted as SiteDeleted, type index_d$4_SiteHardDeleted as SiteHardDeleted, type index_d$4_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d$4_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type index_d$4_SitePublished as SitePublished, type index_d$4_SiteRenamed as SiteRenamed, type index_d$4_SiteTransferred as SiteTransferred, type index_d$4_SiteUndeleted as SiteUndeleted, type index_d$4_SiteUnpublished as SiteUnpublished, SortOrder$4 as SortOrder, type Sorting$4 as Sorting, index_d$4_State as State, type index_d$4_StudioAssigned as StudioAssigned, type index_d$4_StudioUnassigned as StudioUnassigned, type index_d$4_Subscription as Subscription, type index_d$4_SubscriptionAssigned as SubscriptionAssigned, type index_d$4_SubscriptionAutoRenewTurnedOff as SubscriptionAutoRenewTurnedOff, type index_d$4_SubscriptionAutoRenewTurnedOn as SubscriptionAutoRenewTurnedOn, type index_d$4_SubscriptionCancelled as SubscriptionCancelled, type index_d$4_SubscriptionCreated as SubscriptionCreated, type index_d$4_SubscriptionEvent as SubscriptionEvent, type index_d$4_SubscriptionEventEventOneOf as SubscriptionEventEventOneOf, type index_d$4_SubscriptionNearEndOfPeriod as SubscriptionNearEndOfPeriod, type index_d$4_SubscriptionPendingChange as SubscriptionPendingChange, index_d$4_SubscriptionStatus as SubscriptionStatus, type index_d$4_SubscriptionTransferred as SubscriptionTransferred, type index_d$4_SubscriptionUnassigned as SubscriptionUnassigned, Type$1 as Type, index_d$4_UnassignReason as UnassignReason, type index_d$4_UpdateReferralProgramRequest as UpdateReferralProgramRequest, type index_d$4_UpdateReferralProgramResponse as UpdateReferralProgramResponse, type index_d$4_UpdateReferralProgramResponseNonNullableFields as UpdateReferralProgramResponseNonNullableFields, WebhookIdentityType$4 as WebhookIdentityType, index_d$4_activateReferralProgram as activateReferralProgram, index_d$4_generateAiSocialMediaPostsSuggestions as generateAiSocialMediaPostsSuggestions, index_d$4_getAiSocialMediaPostsSuggestions as getAiSocialMediaPostsSuggestions, index_d$4_getReferralProgram as getReferralProgram, index_d$4_getReferralProgramPremiumFeatures as getReferralProgramPremiumFeatures, index_d$4_onProgramUpdated as onProgramUpdated, index_d$4_pauseReferralProgram as pauseReferralProgram, index_d$4_queryReferralPrograms as queryReferralPrograms, index_d$4_updateReferralProgram as updateReferralProgram };
1687
+ export { type index_d$4_AISocialMediaPostSuggestion as AISocialMediaPostSuggestion, index_d$4_Action as Action, type ActionEvent$4 as ActionEvent, type index_d$4_ActivateReferralProgramRequest as ActivateReferralProgramRequest, type index_d$4_ActivateReferralProgramResponse as ActivateReferralProgramResponse, type index_d$4_ActivateReferralProgramResponseNonNullableFields as ActivateReferralProgramResponseNonNullableFields, index_d$4_App as App, type index_d$4_Asset as Asset, type BaseEventMetadata$3 as BaseEventMetadata, type index_d$4_BillingReference as BillingReference, type index_d$4_BulkGetReferralProgramRequest as BulkGetReferralProgramRequest, type index_d$4_BulkGetReferralProgramResponse as BulkGetReferralProgramResponse, type index_d$4_CancellationDetails as CancellationDetails, index_d$4_ContractSwitchReason as ContractSwitchReason, index_d$4_ContractSwitchType as ContractSwitchType, type index_d$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 index_d$4_Cycle as Cycle, type index_d$4_CycleCycleSelectorOneOf as CycleCycleSelectorOneOf, type index_d$4_DeleteContext as DeleteContext, index_d$4_DeleteStatus as DeleteStatus, DiscountType$2 as DiscountType, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type index_d$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 index_d$4_GenerateAISocialMediaPostsSuggestionsRequest as GenerateAISocialMediaPostsSuggestionsRequest, type index_d$4_GenerateAISocialMediaPostsSuggestionsResponse as GenerateAISocialMediaPostsSuggestionsResponse, type index_d$4_GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields as GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields, type index_d$4_GenerateAiSocialMediaPostsSuggestionsOptions as GenerateAiSocialMediaPostsSuggestionsOptions, type index_d$4_GetAISocialMediaPostsSuggestionsRequest as GetAISocialMediaPostsSuggestionsRequest, type index_d$4_GetAISocialMediaPostsSuggestionsResponse as GetAISocialMediaPostsSuggestionsResponse, type index_d$4_GetAISocialMediaPostsSuggestionsResponseNonNullableFields as GetAISocialMediaPostsSuggestionsResponseNonNullableFields, type index_d$4_GetAiSocialMediaPostsSuggestionsOptions as GetAiSocialMediaPostsSuggestionsOptions, type index_d$4_GetReferralProgramPremiumFeaturesRequest as GetReferralProgramPremiumFeaturesRequest, type index_d$4_GetReferralProgramPremiumFeaturesResponse as GetReferralProgramPremiumFeaturesResponse, type index_d$4_GetReferralProgramPremiumFeaturesResponseNonNullableFields as GetReferralProgramPremiumFeaturesResponseNonNullableFields, type index_d$4_GetReferralProgramRequest as GetReferralProgramRequest, type index_d$4_GetReferralProgramResponse as GetReferralProgramResponse, type index_d$4_GetReferralProgramResponseNonNullableFields as GetReferralProgramResponseNonNullableFields, type Group$2 as Group, type index_d$4_HtmlSitePublished as HtmlSitePublished, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, index_d$4_Initiator as Initiator, type index_d$4_Interval as Interval, index_d$4_IntervalUnit as IntervalUnit, type LoyaltyPoints$2 as LoyaltyPoints, type MessageEnvelope$4 as MessageEnvelope, type index_d$4_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d$4_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, index_d$4_Namespace as Namespace, type index_d$4_NamespaceChanged as NamespaceChanged, type index_d$4_OneTime as OneTime, type index_d$4_Page as Page, type index_d$4_PauseReferralProgramRequest as PauseReferralProgramRequest, type index_d$4_PauseReferralProgramResponse as PauseReferralProgramResponse, type index_d$4_PauseReferralProgramResponseNonNullableFields as PauseReferralProgramResponseNonNullableFields, type PercentageDiscount$2 as PercentageDiscount, type index_d$4_PremiumFeatures as PremiumFeatures, index_d$4_PriceIncreaseTrigger as PriceIncreaseTrigger, index_d$4_ProductAdjustment as ProductAdjustment, type index_d$4_ProductPriceIncreaseData as ProductPriceIncreaseData, type index_d$4_ProgramInSite as ProgramInSite, index_d$4_ProgramStatus as ProgramStatus, type index_d$4_ProgramUpdatedEnvelope as ProgramUpdatedEnvelope, index_d$4_ProviderName as ProviderName, type index_d$4_QueryReferralProgramsRequest as QueryReferralProgramsRequest, type index_d$4_QueryReferralProgramsResponse as QueryReferralProgramsResponse, type index_d$4_QueryReferralProgramsResponseNonNullableFields as QueryReferralProgramsResponseNonNullableFields, type index_d$4_ReactivationData as ReactivationData, index_d$4_ReactivationReasonEnum as ReactivationReasonEnum, type index_d$4_RecurringChargeSucceeded as RecurringChargeSucceeded, type index_d$4_ReferralProgram as ReferralProgram, type index_d$4_ReferralProgramsQueryBuilder as ReferralProgramsQueryBuilder, type index_d$4_ReferralProgramsQueryResult as ReferralProgramsQueryResult, type RestoreInfo$1 as RestoreInfo, type Reward$2 as Reward, type RewardOptionsOneOf$1 as RewardOptionsOneOf, type index_d$4_ServiceProvisioned as ServiceProvisioned, type index_d$4_ServiceRemoved as ServiceRemoved, type index_d$4_SiteCreated as SiteCreated, index_d$4_SiteCreatedContext as SiteCreatedContext, type index_d$4_SiteDeleted as SiteDeleted, type index_d$4_SiteHardDeleted as SiteHardDeleted, type index_d$4_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d$4_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type index_d$4_SitePublished as SitePublished, type index_d$4_SiteRenamed as SiteRenamed, type index_d$4_SiteTransferred as SiteTransferred, type index_d$4_SiteUndeleted as SiteUndeleted, type index_d$4_SiteUnpublished as SiteUnpublished, SortOrder$4 as SortOrder, type Sorting$4 as Sorting, index_d$4_State as State, type index_d$4_StudioAssigned as StudioAssigned, type index_d$4_StudioUnassigned as StudioUnassigned, type index_d$4_Subscription as Subscription, type index_d$4_SubscriptionAssigned as SubscriptionAssigned, type index_d$4_SubscriptionAutoRenewTurnedOff as SubscriptionAutoRenewTurnedOff, type index_d$4_SubscriptionAutoRenewTurnedOn as SubscriptionAutoRenewTurnedOn, type index_d$4_SubscriptionCancelled as SubscriptionCancelled, type index_d$4_SubscriptionCreated as SubscriptionCreated, type index_d$4_SubscriptionEvent as SubscriptionEvent, type index_d$4_SubscriptionEventEventOneOf as SubscriptionEventEventOneOf, type index_d$4_SubscriptionNearEndOfPeriod as SubscriptionNearEndOfPeriod, type index_d$4_SubscriptionPendingChange as SubscriptionPendingChange, index_d$4_SubscriptionStatus as SubscriptionStatus, type index_d$4_SubscriptionTransferred as SubscriptionTransferred, type index_d$4_SubscriptionUnassigned as SubscriptionUnassigned, Type$1 as Type, index_d$4_UnassignReason as UnassignReason, type index_d$4_UpdateReferralProgramRequest as UpdateReferralProgramRequest, type index_d$4_UpdateReferralProgramResponse as UpdateReferralProgramResponse, type index_d$4_UpdateReferralProgramResponseNonNullableFields as UpdateReferralProgramResponseNonNullableFields, WebhookIdentityType$4 as WebhookIdentityType, type index_d$4__publicActivateReferralProgramType as _publicActivateReferralProgramType, type index_d$4__publicGenerateAiSocialMediaPostsSuggestionsType as _publicGenerateAiSocialMediaPostsSuggestionsType, type index_d$4__publicGetAiSocialMediaPostsSuggestionsType as _publicGetAiSocialMediaPostsSuggestionsType, type index_d$4__publicGetReferralProgramPremiumFeaturesType as _publicGetReferralProgramPremiumFeaturesType, type index_d$4__publicGetReferralProgramType as _publicGetReferralProgramType, type index_d$4__publicOnProgramUpdatedType as _publicOnProgramUpdatedType, type index_d$4__publicPauseReferralProgramType as _publicPauseReferralProgramType, type index_d$4__publicQueryReferralProgramsType as _publicQueryReferralProgramsType, type index_d$4__publicUpdateReferralProgramType as _publicUpdateReferralProgramType, index_d$4_activateReferralProgram as activateReferralProgram, index_d$4_generateAiSocialMediaPostsSuggestions as generateAiSocialMediaPostsSuggestions, index_d$4_getAiSocialMediaPostsSuggestions as getAiSocialMediaPostsSuggestions, index_d$4_getReferralProgram as getReferralProgram, index_d$4_getReferralProgramPremiumFeatures as getReferralProgramPremiumFeatures, index_d$4_onProgramUpdated as onProgramUpdated, index_d$4_pauseReferralProgram as pauseReferralProgram, onProgramUpdated$1 as publicOnProgramUpdated, index_d$4_queryReferralPrograms as queryReferralPrograms, index_d$4_updateReferralProgram as updateReferralProgram };
1618
1688
  }
1619
1689
 
1620
1690
  /** ReferralEvent. */
@@ -1746,26 +1816,32 @@ interface QueryReferralEventRequest {
1746
1816
  query: CursorQuery$3;
1747
1817
  }
1748
1818
  interface CursorQuery$3 extends CursorQueryPagingMethodOneOf$3 {
1749
- /** 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`. */
1819
+ /**
1820
+ * Cursor paging options.
1821
+ *
1822
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
1823
+ */
1750
1824
  cursorPaging?: CursorPaging$3;
1751
1825
  /**
1752
- * Filter object in the following format:
1753
- * `"filter" : {
1754
- * "fieldName1": "value1",
1755
- * "fieldName2":{"$operator":"value2"}
1756
- * }`
1757
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
1826
+ * Filter object.
1827
+ *
1828
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
1758
1829
  */
1759
1830
  filter?: Record<string, any> | null;
1760
1831
  /**
1761
- * Sort object in the following format:
1762
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
1832
+ * Sort object.
1833
+ *
1834
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
1763
1835
  */
1764
1836
  sort?: Sorting$3[];
1765
1837
  }
1766
1838
  /** @oneof */
1767
1839
  interface CursorQueryPagingMethodOneOf$3 {
1768
- /** 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`. */
1840
+ /**
1841
+ * Cursor paging options.
1842
+ *
1843
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
1844
+ */
1769
1845
  cursorPaging?: CursorPaging$3;
1770
1846
  }
1771
1847
  interface Sorting$3 {
@@ -1796,7 +1872,7 @@ interface QueryReferralEventResponse {
1796
1872
  metadata?: CursorPagingMetadata$3;
1797
1873
  }
1798
1874
  interface CursorPagingMetadata$3 {
1799
- /** Number of items returned in the response. */
1875
+ /** Number of items returned in current page. */
1800
1876
  count?: number | null;
1801
1877
  /** Cursor strings that point to the next page, previous page, or both. */
1802
1878
  cursors?: Cursors$3;
@@ -1965,37 +2041,56 @@ declare enum Status$2 {
1965
2041
  DELETED = "DELETED"
1966
2042
  }
1967
2043
  interface Coupon$1 extends CouponDiscountTypeOptionsOneOf$1, CouponScopeOrMinSubtotalOneOf$1 {
1968
- /** Options for fixed amount discount type. */
2044
+ /** Options for fixed amount discount. */
1969
2045
  fixedAmountOptions?: FixedAmountDiscount$1;
1970
- /** Options for percentage discount type. */
2046
+ /** Options for percentage discount. */
1971
2047
  percentageOptions?: PercentageDiscount$1;
1972
2048
  /** Limit the coupon to carts with a subtotal above this number. */
1973
2049
  minimumSubtotal?: number;
1974
- /** Specifies the type of line items this coupon will apply to. */
2050
+ /** 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). */
1975
2051
  scope?: CouponScope$1;
1976
2052
  /** Coupon name. */
1977
2053
  name?: string;
1978
- /** Coupon discount type. */
2054
+ /**
2055
+ * Coupon discount type.
2056
+ *
2057
+ * - `UNKNOWN`: Unknown discount type.
2058
+ * - `FIXED_AMOUNT`: Discount as a fixed amount.
2059
+ * - `PERCENTAGE`: Discount as a perctange.
2060
+ * - `FREE_SHIPPING`: Free shipping. If `true`, the coupon applies to all items in all `namespaces`.
2061
+ */
1979
2062
  discountType?: DiscountType$1;
1980
- /** Limit the coupon to only apply to one item in cart. */
2063
+ /**
2064
+ * Whether the coupon is limited to one item.
2065
+ * If `true` and a customer pays for multiple items, the discount applies to only the lowest priced item.
2066
+ * Coupons with a bookings `scope.namespace` are always limited to one item.
2067
+ */
1981
2068
  limitedToOneItem?: boolean | null;
1982
- /** If true, coupon also applies to subscriptions. */
2069
+ /** Whether the coupon applies to subscription products. */
1983
2070
  appliesToSubscriptions?: boolean | null;
1984
- /** Specifies the amount of discounted cycles for subscription item. See Stores Coupons documentation for more info. */
2071
+ /**
2072
+ * Specifies the amount of discounted cycles for a subscription item.
2073
+ *
2074
+ * - Can only be set when `scope.namespace = pricingPlans`.
2075
+ * - If `discountedCycleCount` is empty, the coupon applies to all available cycles.
2076
+ * - `discountedCycleCount` is ignored if `appliesToSubscriptions = true`.
2077
+ *
2078
+ * Max: `999`
2079
+ */
1985
2080
  discountedCycleCount?: number | null;
1986
2081
  }
1987
2082
  /** @oneof */
1988
2083
  interface CouponDiscountTypeOptionsOneOf$1 {
1989
- /** Options for fixed amount discount type. */
2084
+ /** Options for fixed amount discount. */
1990
2085
  fixedAmountOptions?: FixedAmountDiscount$1;
1991
- /** Options for percentage discount type. */
2086
+ /** Options for percentage discount. */
1992
2087
  percentageOptions?: PercentageDiscount$1;
1993
2088
  }
1994
2089
  /** @oneof */
1995
2090
  interface CouponScopeOrMinSubtotalOneOf$1 {
1996
2091
  /** Limit the coupon to carts with a subtotal above this number. */
1997
2092
  minimumSubtotal?: number;
1998
- /** Specifies the type of line items this coupon will apply to. */
2093
+ /** 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). */
1999
2094
  scope?: CouponScope$1;
2000
2095
  }
2001
2096
  declare enum DiscountType$1 {
@@ -2009,17 +2104,17 @@ declare enum DiscountType$1 {
2009
2104
  FREE_SHIPPING = "FREE_SHIPPING"
2010
2105
  }
2011
2106
  interface FixedAmountDiscount$1 {
2012
- /** Fixed amount to discount. */
2107
+ /** Amount of discount as a fixed value. */
2013
2108
  amount?: number;
2014
2109
  }
2015
2110
  interface PercentageDiscount$1 {
2016
- /** Percentage to discount. */
2111
+ /** Percentage of discount. */
2017
2112
  percentage?: number;
2018
2113
  }
2019
2114
  interface CouponScope$1 {
2020
- /** Namespace of the coupon scope. */
2115
+ /** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
2021
2116
  namespace?: string;
2022
- /** Group of the coupon scope. */
2117
+ /** Coupon scope's applied group, for example: Event or ticket in Wix Events */
2023
2118
  group?: Group$1;
2024
2119
  }
2025
2120
  interface Group$1 {
@@ -2063,7 +2158,7 @@ interface DomainEvent$3 extends DomainEventBodyOneOf$3 {
2063
2158
  slug?: string;
2064
2159
  /** ID of the entity associated with the event. */
2065
2160
  entityId?: string;
2066
- /** Event timestamp. */
2161
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
2067
2162
  eventTime?: Date;
2068
2163
  /**
2069
2164
  * Whether the event was triggered as a result of a privacy regulation application
@@ -2092,7 +2187,7 @@ interface DomainEventBodyOneOf$3 {
2092
2187
  interface EntityCreatedEvent$3 {
2093
2188
  entity?: string;
2094
2189
  }
2095
- interface UndeleteInfo$3 {
2190
+ interface RestoreInfo {
2096
2191
  deletedDate?: Date;
2097
2192
  }
2098
2193
  interface EntityUpdatedEvent$3 {
@@ -2311,7 +2406,7 @@ interface EventMetadata$2 extends BaseEventMetadata$2 {
2311
2406
  slug?: string;
2312
2407
  /** ID of the entity associated with the event. */
2313
2408
  entityId?: string;
2314
- /** Event timestamp. */
2409
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
2315
2410
  eventTime?: Date;
2316
2411
  /**
2317
2412
  * Whether the event was triggered as a result of a privacy regulation application
@@ -2419,16 +2514,30 @@ interface QueryReferredFriendActionsOptions {
2419
2514
  contactIds?: string[];
2420
2515
  }
2421
2516
 
2517
+ declare function getReferralEvent$1(httpClient: HttpClient): (referralEventId: string) => Promise<ReferralEvent & ReferralEventNonNullableFields>;
2518
+ declare function queryReferralEvent$1(httpClient: HttpClient): () => ReferralEventsQueryBuilder;
2519
+ declare function getReferralStatistics$1(httpClient: HttpClient): () => Promise<GetReferralStatisticsResponse & GetReferralStatisticsResponseNonNullableFields>;
2520
+ declare function queryReferringCustomerTotals$1(httpClient: HttpClient): (options?: QueryReferringCustomerTotalsOptions) => Promise<QueryReferringCustomerTotalsResponse & QueryReferringCustomerTotalsResponseNonNullableFields>;
2521
+ declare function queryReferredFriendActions$1(httpClient: HttpClient): (options?: QueryReferredFriendActionsOptions) => Promise<QueryReferredFriendActionsResponse & QueryReferredFriendActionsResponseNonNullableFields>;
2522
+ declare const onReferralEventCreated$1: EventDefinition<ReferralEventCreatedEnvelope, "wix.loyalty.referral.v1.referral_event_created">;
2523
+
2422
2524
  declare function createRESTModule$3<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
2423
2525
 
2424
2526
  declare function createEventModule$2<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
2425
2527
 
2426
- declare const getReferralEvent: ReturnType<typeof createRESTModule$3<typeof publicGetReferralEvent>>;
2427
- declare const queryReferralEvent: ReturnType<typeof createRESTModule$3<typeof publicQueryReferralEvent>>;
2428
- declare const getReferralStatistics: ReturnType<typeof createRESTModule$3<typeof publicGetReferralStatistics>>;
2429
- declare const queryReferringCustomerTotals: ReturnType<typeof createRESTModule$3<typeof publicQueryReferringCustomerTotals>>;
2430
- declare const queryReferredFriendActions: ReturnType<typeof createRESTModule$3<typeof publicQueryReferredFriendActions>>;
2431
- declare const onReferralEventCreated: ReturnType<typeof createEventModule$2<typeof publicOnReferralEventCreated>>;
2528
+ type _publicGetReferralEventType = typeof getReferralEvent$1;
2529
+ declare const getReferralEvent: ReturnType<typeof createRESTModule$3<_publicGetReferralEventType>>;
2530
+ type _publicQueryReferralEventType = typeof queryReferralEvent$1;
2531
+ declare const queryReferralEvent: ReturnType<typeof createRESTModule$3<_publicQueryReferralEventType>>;
2532
+ type _publicGetReferralStatisticsType = typeof getReferralStatistics$1;
2533
+ declare const getReferralStatistics: ReturnType<typeof createRESTModule$3<_publicGetReferralStatisticsType>>;
2534
+ type _publicQueryReferringCustomerTotalsType = typeof queryReferringCustomerTotals$1;
2535
+ declare const queryReferringCustomerTotals: ReturnType<typeof createRESTModule$3<_publicQueryReferringCustomerTotalsType>>;
2536
+ type _publicQueryReferredFriendActionsType = typeof queryReferredFriendActions$1;
2537
+ declare const queryReferredFriendActions: ReturnType<typeof createRESTModule$3<_publicQueryReferredFriendActionsType>>;
2538
+
2539
+ type _publicOnReferralEventCreatedType = typeof onReferralEventCreated$1;
2540
+ declare const onReferralEventCreated: ReturnType<typeof createEventModule$2<_publicOnReferralEventCreatedType>>;
2432
2541
 
2433
2542
  type index_d$3_CreateReferralEventRequest = CreateReferralEventRequest;
2434
2543
  type index_d$3_CreateReferralEventResponse = CreateReferralEventResponse;
@@ -2460,12 +2569,19 @@ type index_d$3_ReferredFriendActionEvent = ReferredFriendActionEvent;
2460
2569
  type index_d$3_ReferredFriendActionRewardTypeOptionsOneOf = ReferredFriendActionRewardTypeOptionsOneOf;
2461
2570
  type index_d$3_ReferredFriendSignupEvent = ReferredFriendSignupEvent;
2462
2571
  type index_d$3_ReferringCustomerTotal = ReferringCustomerTotal;
2572
+ type index_d$3_RestoreInfo = RestoreInfo;
2463
2573
  type index_d$3_RewardEvent = RewardEvent;
2464
2574
  type index_d$3_RewardEventReceiverOneOf = RewardEventReceiverOneOf;
2465
2575
  type index_d$3_Trigger = Trigger;
2466
2576
  type index_d$3_V1ActionEvent = V1ActionEvent;
2467
2577
  type index_d$3_V1SuccessfulReferralEvent = V1SuccessfulReferralEvent;
2468
2578
  type index_d$3_V1Trigger = V1Trigger;
2579
+ type index_d$3__publicGetReferralEventType = _publicGetReferralEventType;
2580
+ type index_d$3__publicGetReferralStatisticsType = _publicGetReferralStatisticsType;
2581
+ type index_d$3__publicOnReferralEventCreatedType = _publicOnReferralEventCreatedType;
2582
+ type index_d$3__publicQueryReferralEventType = _publicQueryReferralEventType;
2583
+ type index_d$3__publicQueryReferredFriendActionsType = _publicQueryReferredFriendActionsType;
2584
+ type index_d$3__publicQueryReferringCustomerTotalsType = _publicQueryReferringCustomerTotalsType;
2469
2585
  declare const index_d$3_getReferralEvent: typeof getReferralEvent;
2470
2586
  declare const index_d$3_getReferralStatistics: typeof getReferralStatistics;
2471
2587
  declare const index_d$3_onReferralEventCreated: typeof onReferralEventCreated;
@@ -2473,7 +2589,7 @@ declare const index_d$3_queryReferralEvent: typeof queryReferralEvent;
2473
2589
  declare const index_d$3_queryReferredFriendActions: typeof queryReferredFriendActions;
2474
2590
  declare const index_d$3_queryReferringCustomerTotals: typeof queryReferringCustomerTotals;
2475
2591
  declare namespace index_d$3 {
2476
- 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 index_d$3_CreateReferralEventRequest as CreateReferralEventRequest, type index_d$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 index_d$3_GetReferralEventRequest as GetReferralEventRequest, type index_d$3_GetReferralEventResponse as GetReferralEventResponse, type index_d$3_GetReferralEventResponseNonNullableFields as GetReferralEventResponseNonNullableFields, type index_d$3_GetReferralStatisticsRequest as GetReferralStatisticsRequest, type index_d$3_GetReferralStatisticsResponse as GetReferralStatisticsResponse, type index_d$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 index_d$3_QueryReferralEventRequest as QueryReferralEventRequest, type index_d$3_QueryReferralEventResponse as QueryReferralEventResponse, type index_d$3_QueryReferralEventResponseNonNullableFields as QueryReferralEventResponseNonNullableFields, type index_d$3_QueryReferredFriendActionsOptions as QueryReferredFriendActionsOptions, type index_d$3_QueryReferredFriendActionsRequest as QueryReferredFriendActionsRequest, type index_d$3_QueryReferredFriendActionsResponse as QueryReferredFriendActionsResponse, type index_d$3_QueryReferredFriendActionsResponseNonNullableFields as QueryReferredFriendActionsResponseNonNullableFields, type index_d$3_QueryReferringCustomerTotalsOptions as QueryReferringCustomerTotalsOptions, type index_d$3_QueryReferringCustomerTotalsRequest as QueryReferringCustomerTotalsRequest, type index_d$3_QueryReferringCustomerTotalsResponse as QueryReferringCustomerTotalsResponse, type index_d$3_QueryReferringCustomerTotalsResponseNonNullableFields as QueryReferringCustomerTotalsResponseNonNullableFields, type index_d$3_ReferralEvent as ReferralEvent, type index_d$3_ReferralEventCreatedEnvelope as ReferralEventCreatedEnvelope, type index_d$3_ReferralEventEventTypeOneOf as ReferralEventEventTypeOneOf, type index_d$3_ReferralEventNonNullableFields as ReferralEventNonNullableFields, type index_d$3_ReferralEventsQueryBuilder as ReferralEventsQueryBuilder, type index_d$3_ReferralEventsQueryResult as ReferralEventsQueryResult, type index_d$3_ReferredFriendAction as ReferredFriendAction, type index_d$3_ReferredFriendActionEvent as ReferredFriendActionEvent, type index_d$3_ReferredFriendActionRewardTypeOptionsOneOf as ReferredFriendActionRewardTypeOptionsOneOf, type ReferredFriendDetails$2 as ReferredFriendDetails, type index_d$3_ReferredFriendSignupEvent as ReferredFriendSignupEvent, type index_d$3_ReferringCustomerTotal as ReferringCustomerTotal, Reward$1 as Reward, type index_d$3_RewardEvent as RewardEvent, type index_d$3_RewardEventReceiverOneOf as RewardEventReceiverOneOf, SortOrder$3 as SortOrder, type Sorting$3 as Sorting, Status$2 as Status, type SuccessfulReferralEvent$2 as SuccessfulReferralEvent, type index_d$3_Trigger as Trigger, type UndeleteInfo$3 as UndeleteInfo, type index_d$3_V1ActionEvent as V1ActionEvent, type V1Coupon$1 as V1Coupon, type index_d$3_V1SuccessfulReferralEvent as V1SuccessfulReferralEvent, type index_d$3_V1Trigger as V1Trigger, WebhookIdentityType$3 as WebhookIdentityType, index_d$3_getReferralEvent as getReferralEvent, index_d$3_getReferralStatistics as getReferralStatistics, index_d$3_onReferralEventCreated as onReferralEventCreated, index_d$3_queryReferralEvent as queryReferralEvent, index_d$3_queryReferredFriendActions as queryReferredFriendActions, index_d$3_queryReferringCustomerTotals as queryReferringCustomerTotals };
2592
+ 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 index_d$3_CreateReferralEventRequest as CreateReferralEventRequest, type index_d$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 index_d$3_GetReferralEventRequest as GetReferralEventRequest, type index_d$3_GetReferralEventResponse as GetReferralEventResponse, type index_d$3_GetReferralEventResponseNonNullableFields as GetReferralEventResponseNonNullableFields, type index_d$3_GetReferralStatisticsRequest as GetReferralStatisticsRequest, type index_d$3_GetReferralStatisticsResponse as GetReferralStatisticsResponse, type index_d$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 index_d$3_QueryReferralEventRequest as QueryReferralEventRequest, type index_d$3_QueryReferralEventResponse as QueryReferralEventResponse, type index_d$3_QueryReferralEventResponseNonNullableFields as QueryReferralEventResponseNonNullableFields, type index_d$3_QueryReferredFriendActionsOptions as QueryReferredFriendActionsOptions, type index_d$3_QueryReferredFriendActionsRequest as QueryReferredFriendActionsRequest, type index_d$3_QueryReferredFriendActionsResponse as QueryReferredFriendActionsResponse, type index_d$3_QueryReferredFriendActionsResponseNonNullableFields as QueryReferredFriendActionsResponseNonNullableFields, type index_d$3_QueryReferringCustomerTotalsOptions as QueryReferringCustomerTotalsOptions, type index_d$3_QueryReferringCustomerTotalsRequest as QueryReferringCustomerTotalsRequest, type index_d$3_QueryReferringCustomerTotalsResponse as QueryReferringCustomerTotalsResponse, type index_d$3_QueryReferringCustomerTotalsResponseNonNullableFields as QueryReferringCustomerTotalsResponseNonNullableFields, type index_d$3_ReferralEvent as ReferralEvent, type index_d$3_ReferralEventCreatedEnvelope as ReferralEventCreatedEnvelope, type index_d$3_ReferralEventEventTypeOneOf as ReferralEventEventTypeOneOf, type index_d$3_ReferralEventNonNullableFields as ReferralEventNonNullableFields, type index_d$3_ReferralEventsQueryBuilder as ReferralEventsQueryBuilder, type index_d$3_ReferralEventsQueryResult as ReferralEventsQueryResult, type index_d$3_ReferredFriendAction as ReferredFriendAction, type index_d$3_ReferredFriendActionEvent as ReferredFriendActionEvent, type index_d$3_ReferredFriendActionRewardTypeOptionsOneOf as ReferredFriendActionRewardTypeOptionsOneOf, type ReferredFriendDetails$2 as ReferredFriendDetails, type index_d$3_ReferredFriendSignupEvent as ReferredFriendSignupEvent, type index_d$3_ReferringCustomerTotal as ReferringCustomerTotal, type index_d$3_RestoreInfo as RestoreInfo, Reward$1 as Reward, type index_d$3_RewardEvent as RewardEvent, type index_d$3_RewardEventReceiverOneOf as RewardEventReceiverOneOf, SortOrder$3 as SortOrder, type Sorting$3 as Sorting, Status$2 as Status, type SuccessfulReferralEvent$2 as SuccessfulReferralEvent, type index_d$3_Trigger as Trigger, type index_d$3_V1ActionEvent as V1ActionEvent, type V1Coupon$1 as V1Coupon, type index_d$3_V1SuccessfulReferralEvent as V1SuccessfulReferralEvent, type index_d$3_V1Trigger as V1Trigger, WebhookIdentityType$3 as WebhookIdentityType, type index_d$3__publicGetReferralEventType as _publicGetReferralEventType, type index_d$3__publicGetReferralStatisticsType as _publicGetReferralStatisticsType, type index_d$3__publicOnReferralEventCreatedType as _publicOnReferralEventCreatedType, type index_d$3__publicQueryReferralEventType as _publicQueryReferralEventType, type index_d$3__publicQueryReferredFriendActionsType as _publicQueryReferredFriendActionsType, type index_d$3__publicQueryReferringCustomerTotalsType as _publicQueryReferringCustomerTotalsType, index_d$3_getReferralEvent as getReferralEvent, index_d$3_getReferralStatistics as getReferralStatistics, index_d$3_onReferralEventCreated as onReferralEventCreated, onReferralEventCreated$1 as publicOnReferralEventCreated, index_d$3_queryReferralEvent as queryReferralEvent, index_d$3_queryReferredFriendActions as queryReferredFriendActions, index_d$3_queryReferringCustomerTotals as queryReferringCustomerTotals };
2477
2593
  }
2478
2594
 
2479
2595
  /** ReferralReward is the main entity of ReferralRewards that can be used for lorem ipsum dolor */
@@ -2955,10 +3071,15 @@ interface QueryReferralRewardsOptions {
2955
3071
  contactId?: string | null;
2956
3072
  }
2957
3073
 
3074
+ declare function getReferralReward$1(httpClient: HttpClient): (_id: string) => Promise<ReferralReward & ReferralRewardNonNullableFields>;
3075
+ declare function queryReferralRewards$1(httpClient: HttpClient): (query: CursorQuery$2, options?: QueryReferralRewardsOptions) => Promise<QueryReferralRewardsResponse & QueryReferralRewardsResponseNonNullableFields>;
3076
+
2958
3077
  declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
2959
3078
 
2960
- declare const getReferralReward: ReturnType<typeof createRESTModule$2<typeof publicGetReferralReward>>;
2961
- declare const queryReferralRewards: ReturnType<typeof createRESTModule$2<typeof publicQueryReferralRewards>>;
3079
+ type _publicGetReferralRewardType = typeof getReferralReward$1;
3080
+ declare const getReferralReward: ReturnType<typeof createRESTModule$2<_publicGetReferralRewardType>>;
3081
+ type _publicQueryReferralRewardsType = typeof queryReferralRewards$1;
3082
+ declare const queryReferralRewards: ReturnType<typeof createRESTModule$2<_publicQueryReferralRewardsType>>;
2962
3083
 
2963
3084
  type index_d$2_BulkGetReferralRewardsRequest = BulkGetReferralRewardsRequest;
2964
3085
  type index_d$2_BulkGetReferralRewardsResponse = BulkGetReferralRewardsResponse;
@@ -2994,10 +3115,12 @@ type index_d$2_V1Coupon = V1Coupon;
2994
3115
  type index_d$2_V1LoyaltyPoints = V1LoyaltyPoints;
2995
3116
  type index_d$2_ValidateReferralRewardRequest = ValidateReferralRewardRequest;
2996
3117
  type index_d$2_ValidateReferralRewardResponse = ValidateReferralRewardResponse;
3118
+ type index_d$2__publicGetReferralRewardType = _publicGetReferralRewardType;
3119
+ type index_d$2__publicQueryReferralRewardsType = _publicQueryReferralRewardsType;
2997
3120
  declare const index_d$2_getReferralReward: typeof getReferralReward;
2998
3121
  declare const index_d$2_queryReferralRewards: typeof queryReferralRewards;
2999
3122
  declare namespace index_d$2 {
3000
- export { type ActionEvent$2 as ActionEvent, type index_d$2_BulkGetReferralRewardsRequest as BulkGetReferralRewardsRequest, type index_d$2_BulkGetReferralRewardsResponse as BulkGetReferralRewardsResponse, type index_d$2_Coupon as Coupon, type index_d$2_CouponDiscountTypeOptionsOneOf as CouponDiscountTypeOptionsOneOf, type index_d$2_CouponScope as CouponScope, type index_d$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, index_d$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 index_d$2_FixedAmountDiscount as FixedAmountDiscount, type index_d$2_GetReferralRewardRequest as GetReferralRewardRequest, type index_d$2_GetReferralRewardResponse as GetReferralRewardResponse, type index_d$2_GetReferralRewardResponseNonNullableFields as GetReferralRewardResponseNonNullableFields, type index_d$2_Group as Group, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type index_d$2_LoyaltyPoints as LoyaltyPoints, type MessageEnvelope$2 as MessageEnvelope, type index_d$2_PercentageDiscount as PercentageDiscount, type index_d$2_QueryReferralRewardsOptions as QueryReferralRewardsOptions, type index_d$2_QueryReferralRewardsRequest as QueryReferralRewardsRequest, type index_d$2_QueryReferralRewardsResponse as QueryReferralRewardsResponse, type index_d$2_QueryReferralRewardsResponseNonNullableFields as QueryReferralRewardsResponseNonNullableFields, type index_d$2_ReferralReward as ReferralReward, type index_d$2_ReferralRewardNonNullableFields as ReferralRewardNonNullableFields, type index_d$2_ReferralRewardReceiverOneOf as ReferralRewardReceiverOneOf, type index_d$2_ReferralRewardRewardTypeOptionsOneOf as ReferralRewardRewardTypeOptionsOneOf, type ReferredFriendDetails$1 as ReferredFriendDetails, type index_d$2_Reward as Reward, type index_d$2_RewardOptionsOneOf as RewardOptionsOneOf, index_d$2_RewardTypeType as RewardTypeType, type index_d$2_RewardsInSite as RewardsInSite, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, Status$1 as Status, type SuccessfulReferralEvent$1 as SuccessfulReferralEvent, index_d$2_Type as Type, type UndeleteInfo$2 as UndeleteInfo, type index_d$2_V1Coupon as V1Coupon, type index_d$2_V1LoyaltyPoints as V1LoyaltyPoints, type index_d$2_ValidateReferralRewardRequest as ValidateReferralRewardRequest, type index_d$2_ValidateReferralRewardResponse as ValidateReferralRewardResponse, WebhookIdentityType$2 as WebhookIdentityType, index_d$2_getReferralReward as getReferralReward, index_d$2_queryReferralRewards as queryReferralRewards };
3123
+ export { type ActionEvent$2 as ActionEvent, type index_d$2_BulkGetReferralRewardsRequest as BulkGetReferralRewardsRequest, type index_d$2_BulkGetReferralRewardsResponse as BulkGetReferralRewardsResponse, type index_d$2_Coupon as Coupon, type index_d$2_CouponDiscountTypeOptionsOneOf as CouponDiscountTypeOptionsOneOf, type index_d$2_CouponScope as CouponScope, type index_d$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, index_d$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 index_d$2_FixedAmountDiscount as FixedAmountDiscount, type index_d$2_GetReferralRewardRequest as GetReferralRewardRequest, type index_d$2_GetReferralRewardResponse as GetReferralRewardResponse, type index_d$2_GetReferralRewardResponseNonNullableFields as GetReferralRewardResponseNonNullableFields, type index_d$2_Group as Group, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type index_d$2_LoyaltyPoints as LoyaltyPoints, type MessageEnvelope$2 as MessageEnvelope, type index_d$2_PercentageDiscount as PercentageDiscount, type index_d$2_QueryReferralRewardsOptions as QueryReferralRewardsOptions, type index_d$2_QueryReferralRewardsRequest as QueryReferralRewardsRequest, type index_d$2_QueryReferralRewardsResponse as QueryReferralRewardsResponse, type index_d$2_QueryReferralRewardsResponseNonNullableFields as QueryReferralRewardsResponseNonNullableFields, type index_d$2_ReferralReward as ReferralReward, type index_d$2_ReferralRewardNonNullableFields as ReferralRewardNonNullableFields, type index_d$2_ReferralRewardReceiverOneOf as ReferralRewardReceiverOneOf, type index_d$2_ReferralRewardRewardTypeOptionsOneOf as ReferralRewardRewardTypeOptionsOneOf, type ReferredFriendDetails$1 as ReferredFriendDetails, type index_d$2_Reward as Reward, type index_d$2_RewardOptionsOneOf as RewardOptionsOneOf, index_d$2_RewardTypeType as RewardTypeType, type index_d$2_RewardsInSite as RewardsInSite, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, Status$1 as Status, type SuccessfulReferralEvent$1 as SuccessfulReferralEvent, index_d$2_Type as Type, type UndeleteInfo$2 as UndeleteInfo, type index_d$2_V1Coupon as V1Coupon, type index_d$2_V1LoyaltyPoints as V1LoyaltyPoints, type index_d$2_ValidateReferralRewardRequest as ValidateReferralRewardRequest, type index_d$2_ValidateReferralRewardResponse as ValidateReferralRewardResponse, WebhookIdentityType$2 as WebhookIdentityType, type index_d$2__publicGetReferralRewardType as _publicGetReferralRewardType, type index_d$2__publicQueryReferralRewardsType as _publicQueryReferralRewardsType, index_d$2_getReferralReward as getReferralReward, index_d$2_queryReferralRewards as queryReferralRewards };
3001
3124
  }
3002
3125
 
3003
3126
  /** ReferredFriend is the main entity of ReferredFriends that can be used for lorem ipsum dolor */
@@ -3481,19 +3604,41 @@ interface ReferredFriendsQueryBuilder {
3481
3604
  find: () => Promise<ReferredFriendsQueryResult>;
3482
3605
  }
3483
3606
 
3607
+ declare function createReferredFriend$1(httpClient: HttpClient): () => Promise<CreateReferredFriendResponse & CreateReferredFriendResponseNonNullableFields>;
3608
+ declare function getReferredFriend$1(httpClient: HttpClient): (referredFriendId: string) => Promise<GetReferredFriendResponse & GetReferredFriendResponseNonNullableFields>;
3609
+ declare function getReferredFriendByContactId$1(httpClient: HttpClient): (contactId: string) => Promise<ReferredFriend & ReferredFriendNonNullableFields>;
3610
+ declare function updateReferredFriend$1(httpClient: HttpClient): (_id: string, referredFriend: UpdateReferredFriend) => Promise<ReferredFriend & ReferredFriendNonNullableFields>;
3611
+ declare function deleteReferredFriend$1(httpClient: HttpClient): (referredFriendId: string, options?: DeleteReferredFriendOptions) => Promise<void>;
3612
+ declare function queryReferredFriend$1(httpClient: HttpClient): () => ReferredFriendsQueryBuilder;
3613
+ declare const onReferredFriendCreated$1: EventDefinition<ReferredFriendCreatedEnvelope, "wix.loyalty.referral.v1.referred_friend_created">;
3614
+ declare const onReferredFriendUpdated$1: EventDefinition<ReferredFriendUpdatedEnvelope, "wix.loyalty.referral.v1.referred_friend_updated">;
3615
+ declare const onReferredFriendDeleted$1: EventDefinition<ReferredFriendDeletedEnvelope, "wix.loyalty.referral.v1.referred_friend_deleted">;
3616
+
3484
3617
  declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
3485
3618
 
3486
3619
  declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
3487
3620
 
3488
- declare const createReferredFriend: ReturnType<typeof createRESTModule$1<typeof publicCreateReferredFriend>>;
3489
- declare const getReferredFriend: ReturnType<typeof createRESTModule$1<typeof publicGetReferredFriend>>;
3490
- declare const getReferredFriendByContactId: ReturnType<typeof createRESTModule$1<typeof publicGetReferredFriendByContactId>>;
3491
- declare const updateReferredFriend: ReturnType<typeof createRESTModule$1<typeof publicUpdateReferredFriend>>;
3492
- declare const deleteReferredFriend: ReturnType<typeof createRESTModule$1<typeof publicDeleteReferredFriend>>;
3493
- declare const queryReferredFriend: ReturnType<typeof createRESTModule$1<typeof publicQueryReferredFriend>>;
3494
- declare const onReferredFriendCreated: ReturnType<typeof createEventModule$1<typeof publicOnReferredFriendCreated>>;
3495
- declare const onReferredFriendUpdated: ReturnType<typeof createEventModule$1<typeof publicOnReferredFriendUpdated>>;
3496
- declare const onReferredFriendDeleted: ReturnType<typeof createEventModule$1<typeof publicOnReferredFriendDeleted>>;
3621
+ type _publicCreateReferredFriendType = typeof createReferredFriend$1;
3622
+ declare const createReferredFriend: ReturnType<typeof createRESTModule$1<_publicCreateReferredFriendType>>;
3623
+ type _publicGetReferredFriendType = typeof getReferredFriend$1;
3624
+ declare const getReferredFriend: ReturnType<typeof createRESTModule$1<_publicGetReferredFriendType>>;
3625
+ type _publicGetReferredFriendByContactIdType = typeof getReferredFriendByContactId$1;
3626
+ declare const getReferredFriendByContactId: ReturnType<typeof createRESTModule$1<_publicGetReferredFriendByContactIdType>>;
3627
+ type _publicUpdateReferredFriendType = typeof updateReferredFriend$1;
3628
+ declare const updateReferredFriend: ReturnType<typeof createRESTModule$1<_publicUpdateReferredFriendType>>;
3629
+ type _publicDeleteReferredFriendType = typeof deleteReferredFriend$1;
3630
+ declare const deleteReferredFriend: ReturnType<typeof createRESTModule$1<_publicDeleteReferredFriendType>>;
3631
+ type _publicQueryReferredFriendType = typeof queryReferredFriend$1;
3632
+ declare const queryReferredFriend: ReturnType<typeof createRESTModule$1<_publicQueryReferredFriendType>>;
3633
+
3634
+ type _publicOnReferredFriendCreatedType = typeof onReferredFriendCreated$1;
3635
+ declare const onReferredFriendCreated: ReturnType<typeof createEventModule$1<_publicOnReferredFriendCreatedType>>;
3636
+
3637
+ type _publicOnReferredFriendUpdatedType = typeof onReferredFriendUpdated$1;
3638
+ declare const onReferredFriendUpdated: ReturnType<typeof createEventModule$1<_publicOnReferredFriendUpdatedType>>;
3639
+
3640
+ type _publicOnReferredFriendDeletedType = typeof onReferredFriendDeleted$1;
3641
+ declare const onReferredFriendDeleted: ReturnType<typeof createEventModule$1<_publicOnReferredFriendDeletedType>>;
3497
3642
 
3498
3643
  type index_d$1_CreateReferredFriendRequest = CreateReferredFriendRequest;
3499
3644
  type index_d$1_CreateReferredFriendResponse = CreateReferredFriendResponse;
@@ -3526,6 +3671,15 @@ type index_d$1_UpdateReferredFriend = UpdateReferredFriend;
3526
3671
  type index_d$1_UpdateReferredFriendRequest = UpdateReferredFriendRequest;
3527
3672
  type index_d$1_UpdateReferredFriendResponse = UpdateReferredFriendResponse;
3528
3673
  type index_d$1_UpdateReferredFriendResponseNonNullableFields = UpdateReferredFriendResponseNonNullableFields;
3674
+ type index_d$1__publicCreateReferredFriendType = _publicCreateReferredFriendType;
3675
+ type index_d$1__publicDeleteReferredFriendType = _publicDeleteReferredFriendType;
3676
+ type index_d$1__publicGetReferredFriendByContactIdType = _publicGetReferredFriendByContactIdType;
3677
+ type index_d$1__publicGetReferredFriendType = _publicGetReferredFriendType;
3678
+ type index_d$1__publicOnReferredFriendCreatedType = _publicOnReferredFriendCreatedType;
3679
+ type index_d$1__publicOnReferredFriendDeletedType = _publicOnReferredFriendDeletedType;
3680
+ type index_d$1__publicOnReferredFriendUpdatedType = _publicOnReferredFriendUpdatedType;
3681
+ type index_d$1__publicQueryReferredFriendType = _publicQueryReferredFriendType;
3682
+ type index_d$1__publicUpdateReferredFriendType = _publicUpdateReferredFriendType;
3529
3683
  declare const index_d$1_createReferredFriend: typeof createReferredFriend;
3530
3684
  declare const index_d$1_deleteReferredFriend: typeof deleteReferredFriend;
3531
3685
  declare const index_d$1_getReferredFriend: typeof getReferredFriend;
@@ -3536,7 +3690,7 @@ declare const index_d$1_onReferredFriendUpdated: typeof onReferredFriendUpdated;
3536
3690
  declare const index_d$1_queryReferredFriend: typeof queryReferredFriend;
3537
3691
  declare const index_d$1_updateReferredFriend: typeof updateReferredFriend;
3538
3692
  declare namespace index_d$1 {
3539
- export { type ActionEvent$1 as ActionEvent, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_CreateReferredFriendRequest as CreateReferredFriendRequest, type index_d$1_CreateReferredFriendResponse as CreateReferredFriendResponse, type index_d$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 index_d$1_DeleteReferredFriendOptions as DeleteReferredFriendOptions, type index_d$1_DeleteReferredFriendRequest as DeleteReferredFriendRequest, type index_d$1_DeleteReferredFriendResponse as DeleteReferredFriendResponse, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$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 index_d$1_GetReferredFriendByContactIdRequest as GetReferredFriendByContactIdRequest, type index_d$1_GetReferredFriendByContactIdResponse as GetReferredFriendByContactIdResponse, type index_d$1_GetReferredFriendByContactIdResponseNonNullableFields as GetReferredFriendByContactIdResponseNonNullableFields, type index_d$1_GetReferredFriendRequest as GetReferredFriendRequest, type index_d$1_GetReferredFriendResponse as GetReferredFriendResponse, type index_d$1_GetReferredFriendResponseNonNullableFields as GetReferredFriendResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_QueryReferredFriendRequest as QueryReferredFriendRequest, type index_d$1_QueryReferredFriendResponse as QueryReferredFriendResponse, type index_d$1_QueryReferredFriendResponseNonNullableFields as QueryReferredFriendResponseNonNullableFields, type index_d$1_ReferredFriend as ReferredFriend, type index_d$1_ReferredFriendCreatedEnvelope as ReferredFriendCreatedEnvelope, type index_d$1_ReferredFriendDeletedEnvelope as ReferredFriendDeletedEnvelope, type index_d$1_ReferredFriendDetails as ReferredFriendDetails, type index_d$1_ReferredFriendNonNullableFields as ReferredFriendNonNullableFields, type index_d$1_ReferredFriendUpdatedEnvelope as ReferredFriendUpdatedEnvelope, type index_d$1_ReferredFriendsQueryBuilder as ReferredFriendsQueryBuilder, type index_d$1_ReferredFriendsQueryResult as ReferredFriendsQueryResult, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, index_d$1_Status as Status, type index_d$1_SuccessfulReferralEvent as SuccessfulReferralEvent, type UndeleteInfo$1 as UndeleteInfo, type index_d$1_UpdateReferredFriend as UpdateReferredFriend, type index_d$1_UpdateReferredFriendRequest as UpdateReferredFriendRequest, type index_d$1_UpdateReferredFriendResponse as UpdateReferredFriendResponse, type index_d$1_UpdateReferredFriendResponseNonNullableFields as UpdateReferredFriendResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, index_d$1_createReferredFriend as createReferredFriend, index_d$1_deleteReferredFriend as deleteReferredFriend, index_d$1_getReferredFriend as getReferredFriend, index_d$1_getReferredFriendByContactId as getReferredFriendByContactId, index_d$1_onReferredFriendCreated as onReferredFriendCreated, index_d$1_onReferredFriendDeleted as onReferredFriendDeleted, index_d$1_onReferredFriendUpdated as onReferredFriendUpdated, index_d$1_queryReferredFriend as queryReferredFriend, index_d$1_updateReferredFriend as updateReferredFriend };
3693
+ export { type ActionEvent$1 as ActionEvent, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_CreateReferredFriendRequest as CreateReferredFriendRequest, type index_d$1_CreateReferredFriendResponse as CreateReferredFriendResponse, type index_d$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 index_d$1_DeleteReferredFriendOptions as DeleteReferredFriendOptions, type index_d$1_DeleteReferredFriendRequest as DeleteReferredFriendRequest, type index_d$1_DeleteReferredFriendResponse as DeleteReferredFriendResponse, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$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 index_d$1_GetReferredFriendByContactIdRequest as GetReferredFriendByContactIdRequest, type index_d$1_GetReferredFriendByContactIdResponse as GetReferredFriendByContactIdResponse, type index_d$1_GetReferredFriendByContactIdResponseNonNullableFields as GetReferredFriendByContactIdResponseNonNullableFields, type index_d$1_GetReferredFriendRequest as GetReferredFriendRequest, type index_d$1_GetReferredFriendResponse as GetReferredFriendResponse, type index_d$1_GetReferredFriendResponseNonNullableFields as GetReferredFriendResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_QueryReferredFriendRequest as QueryReferredFriendRequest, type index_d$1_QueryReferredFriendResponse as QueryReferredFriendResponse, type index_d$1_QueryReferredFriendResponseNonNullableFields as QueryReferredFriendResponseNonNullableFields, type index_d$1_ReferredFriend as ReferredFriend, type index_d$1_ReferredFriendCreatedEnvelope as ReferredFriendCreatedEnvelope, type index_d$1_ReferredFriendDeletedEnvelope as ReferredFriendDeletedEnvelope, type index_d$1_ReferredFriendDetails as ReferredFriendDetails, type index_d$1_ReferredFriendNonNullableFields as ReferredFriendNonNullableFields, type index_d$1_ReferredFriendUpdatedEnvelope as ReferredFriendUpdatedEnvelope, type index_d$1_ReferredFriendsQueryBuilder as ReferredFriendsQueryBuilder, type index_d$1_ReferredFriendsQueryResult as ReferredFriendsQueryResult, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, index_d$1_Status as Status, type index_d$1_SuccessfulReferralEvent as SuccessfulReferralEvent, type UndeleteInfo$1 as UndeleteInfo, type index_d$1_UpdateReferredFriend as UpdateReferredFriend, type index_d$1_UpdateReferredFriendRequest as UpdateReferredFriendRequest, type index_d$1_UpdateReferredFriendResponse as UpdateReferredFriendResponse, type index_d$1_UpdateReferredFriendResponseNonNullableFields as UpdateReferredFriendResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, type index_d$1__publicCreateReferredFriendType as _publicCreateReferredFriendType, type index_d$1__publicDeleteReferredFriendType as _publicDeleteReferredFriendType, type index_d$1__publicGetReferredFriendByContactIdType as _publicGetReferredFriendByContactIdType, type index_d$1__publicGetReferredFriendType as _publicGetReferredFriendType, type index_d$1__publicOnReferredFriendCreatedType as _publicOnReferredFriendCreatedType, type index_d$1__publicOnReferredFriendDeletedType as _publicOnReferredFriendDeletedType, type index_d$1__publicOnReferredFriendUpdatedType as _publicOnReferredFriendUpdatedType, type index_d$1__publicQueryReferredFriendType as _publicQueryReferredFriendType, type index_d$1__publicUpdateReferredFriendType as _publicUpdateReferredFriendType, index_d$1_createReferredFriend as createReferredFriend, index_d$1_deleteReferredFriend as deleteReferredFriend, index_d$1_getReferredFriend as getReferredFriend, index_d$1_getReferredFriendByContactId as getReferredFriendByContactId, index_d$1_onReferredFriendCreated as onReferredFriendCreated, index_d$1_onReferredFriendDeleted as onReferredFriendDeleted, index_d$1_onReferredFriendUpdated as onReferredFriendUpdated, onReferredFriendCreated$1 as publicOnReferredFriendCreated, onReferredFriendDeleted$1 as publicOnReferredFriendDeleted, onReferredFriendUpdated$1 as publicOnReferredFriendUpdated, index_d$1_queryReferredFriend as queryReferredFriend, index_d$1_updateReferredFriend as updateReferredFriend };
3540
3694
  }
3541
3695
 
3542
3696
  /** ReferringCustomer is the main entity of ReferringCustomers. */
@@ -3936,17 +4090,34 @@ interface DeleteReferringCustomerOptions {
3936
4090
  revision?: string;
3937
4091
  }
3938
4092
 
4093
+ declare function generateReferringCustomerForContact$1(httpClient: HttpClient): (contactId: string) => Promise<GenerateReferringCustomerForContactResponse & GenerateReferringCustomerForContactResponseNonNullableFields>;
4094
+ declare function getReferringCustomer$1(httpClient: HttpClient): (referringCustomerId: string) => Promise<ReferringCustomer & ReferringCustomerNonNullableFields>;
4095
+ declare function getReferringCustomerByReferralCode$1(httpClient: HttpClient): (referralCode: string) => Promise<GetReferringCustomerByReferralCodeResponse & GetReferringCustomerByReferralCodeResponseNonNullableFields>;
4096
+ declare function queryReferringCustomers$1(httpClient: HttpClient): () => ReferringCustomersQueryBuilder;
4097
+ declare function deleteReferringCustomer$1(httpClient: HttpClient): (referringCustomerId: string, options?: DeleteReferringCustomerOptions) => Promise<void>;
4098
+ declare const onReferringCustomerCreated$1: EventDefinition<ReferringCustomerCreatedEnvelope, "wix.loyalty.referral.v1.referring_customer_created">;
4099
+ declare const onReferringCustomerDeleted$1: EventDefinition<ReferringCustomerDeletedEnvelope, "wix.loyalty.referral.v1.referring_customer_deleted">;
4100
+
3939
4101
  declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
3940
4102
 
3941
4103
  declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
3942
4104
 
3943
- declare const generateReferringCustomerForContact: ReturnType<typeof createRESTModule<typeof publicGenerateReferringCustomerForContact>>;
3944
- declare const getReferringCustomer: ReturnType<typeof createRESTModule<typeof publicGetReferringCustomer>>;
3945
- declare const getReferringCustomerByReferralCode: ReturnType<typeof createRESTModule<typeof publicGetReferringCustomerByReferralCode>>;
3946
- declare const queryReferringCustomers: ReturnType<typeof createRESTModule<typeof publicQueryReferringCustomers>>;
3947
- declare const deleteReferringCustomer: ReturnType<typeof createRESTModule<typeof publicDeleteReferringCustomer>>;
3948
- declare const onReferringCustomerCreated: ReturnType<typeof createEventModule<typeof publicOnReferringCustomerCreated>>;
3949
- declare const onReferringCustomerDeleted: ReturnType<typeof createEventModule<typeof publicOnReferringCustomerDeleted>>;
4105
+ type _publicGenerateReferringCustomerForContactType = typeof generateReferringCustomerForContact$1;
4106
+ declare const generateReferringCustomerForContact: ReturnType<typeof createRESTModule<_publicGenerateReferringCustomerForContactType>>;
4107
+ type _publicGetReferringCustomerType = typeof getReferringCustomer$1;
4108
+ declare const getReferringCustomer: ReturnType<typeof createRESTModule<_publicGetReferringCustomerType>>;
4109
+ type _publicGetReferringCustomerByReferralCodeType = typeof getReferringCustomerByReferralCode$1;
4110
+ declare const getReferringCustomerByReferralCode: ReturnType<typeof createRESTModule<_publicGetReferringCustomerByReferralCodeType>>;
4111
+ type _publicQueryReferringCustomersType = typeof queryReferringCustomers$1;
4112
+ declare const queryReferringCustomers: ReturnType<typeof createRESTModule<_publicQueryReferringCustomersType>>;
4113
+ type _publicDeleteReferringCustomerType = typeof deleteReferringCustomer$1;
4114
+ declare const deleteReferringCustomer: ReturnType<typeof createRESTModule<_publicDeleteReferringCustomerType>>;
4115
+
4116
+ type _publicOnReferringCustomerCreatedType = typeof onReferringCustomerCreated$1;
4117
+ declare const onReferringCustomerCreated: ReturnType<typeof createEventModule<_publicOnReferringCustomerCreatedType>>;
4118
+
4119
+ type _publicOnReferringCustomerDeletedType = typeof onReferringCustomerDeleted$1;
4120
+ declare const onReferringCustomerDeleted: ReturnType<typeof createEventModule<_publicOnReferringCustomerDeletedType>>;
3950
4121
 
3951
4122
  type index_d_ActionEvent = ActionEvent;
3952
4123
  type index_d_BaseEventMetadata = BaseEventMetadata;
@@ -3991,6 +4162,13 @@ type index_d_Sorting = Sorting;
3991
4162
  type index_d_UndeleteInfo = UndeleteInfo;
3992
4163
  type index_d_WebhookIdentityType = WebhookIdentityType;
3993
4164
  declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
4165
+ type index_d__publicDeleteReferringCustomerType = _publicDeleteReferringCustomerType;
4166
+ type index_d__publicGenerateReferringCustomerForContactType = _publicGenerateReferringCustomerForContactType;
4167
+ type index_d__publicGetReferringCustomerByReferralCodeType = _publicGetReferringCustomerByReferralCodeType;
4168
+ type index_d__publicGetReferringCustomerType = _publicGetReferringCustomerType;
4169
+ type index_d__publicOnReferringCustomerCreatedType = _publicOnReferringCustomerCreatedType;
4170
+ type index_d__publicOnReferringCustomerDeletedType = _publicOnReferringCustomerDeletedType;
4171
+ type index_d__publicQueryReferringCustomersType = _publicQueryReferringCustomersType;
3994
4172
  declare const index_d_deleteReferringCustomer: typeof deleteReferringCustomer;
3995
4173
  declare const index_d_generateReferringCustomerForContact: typeof generateReferringCustomerForContact;
3996
4174
  declare const index_d_getReferringCustomer: typeof getReferringCustomer;
@@ -3999,7 +4177,7 @@ declare const index_d_onReferringCustomerCreated: typeof onReferringCustomerCrea
3999
4177
  declare const index_d_onReferringCustomerDeleted: typeof onReferringCustomerDeleted;
4000
4178
  declare const index_d_queryReferringCustomers: typeof queryReferringCustomers;
4001
4179
  declare namespace index_d {
4002
- export { type index_d_ActionEvent as ActionEvent, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CursorPaging as CursorPaging, type index_d_CursorPagingMetadata as CursorPagingMetadata, type index_d_CursorQuery as CursorQuery, type index_d_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type index_d_Cursors as Cursors, type index_d_DeleteReferringCustomerOptions as DeleteReferringCustomerOptions, type index_d_DeleteReferringCustomerRequest as DeleteReferringCustomerRequest, type index_d_DeleteReferringCustomerResponse as DeleteReferringCustomerResponse, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_GenerateReferringCustomerForContactRequest as GenerateReferringCustomerForContactRequest, type index_d_GenerateReferringCustomerForContactResponse as GenerateReferringCustomerForContactResponse, type index_d_GenerateReferringCustomerForContactResponseNonNullableFields as GenerateReferringCustomerForContactResponseNonNullableFields, type index_d_GetReferringCustomerByReferralCodeRequest as GetReferringCustomerByReferralCodeRequest, type index_d_GetReferringCustomerByReferralCodeResponse as GetReferringCustomerByReferralCodeResponse, type index_d_GetReferringCustomerByReferralCodeResponseNonNullableFields as GetReferringCustomerByReferralCodeResponseNonNullableFields, type index_d_GetReferringCustomerRequest as GetReferringCustomerRequest, type index_d_GetReferringCustomerResponse as GetReferringCustomerResponse, type index_d_GetReferringCustomerResponseNonNullableFields as GetReferringCustomerResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_MessageEnvelope as MessageEnvelope, type index_d_QueryReferringCustomersRequest as QueryReferringCustomersRequest, type index_d_QueryReferringCustomersResponse as QueryReferringCustomersResponse, type index_d_QueryReferringCustomersResponseNonNullableFields as QueryReferringCustomersResponseNonNullableFields, type index_d_ReferringCustomer as ReferringCustomer, type index_d_ReferringCustomerCreatedEnvelope as ReferringCustomerCreatedEnvelope, type index_d_ReferringCustomerDeletedEnvelope as ReferringCustomerDeletedEnvelope, type index_d_ReferringCustomerNonNullableFields as ReferringCustomerNonNullableFields, type index_d_ReferringCustomersQueryBuilder as ReferringCustomersQueryBuilder, type index_d_ReferringCustomersQueryResult as ReferringCustomersQueryResult, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, type index_d_UndeleteInfo as UndeleteInfo, index_d_WebhookIdentityType as WebhookIdentityType, index_d_deleteReferringCustomer as deleteReferringCustomer, index_d_generateReferringCustomerForContact as generateReferringCustomerForContact, index_d_getReferringCustomer as getReferringCustomer, index_d_getReferringCustomerByReferralCode as getReferringCustomerByReferralCode, index_d_onReferringCustomerCreated as onReferringCustomerCreated, index_d_onReferringCustomerDeleted as onReferringCustomerDeleted, index_d_queryReferringCustomers as queryReferringCustomers };
4180
+ export { type index_d_ActionEvent as ActionEvent, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CursorPaging as CursorPaging, type index_d_CursorPagingMetadata as CursorPagingMetadata, type index_d_CursorQuery as CursorQuery, type index_d_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type index_d_Cursors as Cursors, type index_d_DeleteReferringCustomerOptions as DeleteReferringCustomerOptions, type index_d_DeleteReferringCustomerRequest as DeleteReferringCustomerRequest, type index_d_DeleteReferringCustomerResponse as DeleteReferringCustomerResponse, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_GenerateReferringCustomerForContactRequest as GenerateReferringCustomerForContactRequest, type index_d_GenerateReferringCustomerForContactResponse as GenerateReferringCustomerForContactResponse, type index_d_GenerateReferringCustomerForContactResponseNonNullableFields as GenerateReferringCustomerForContactResponseNonNullableFields, type index_d_GetReferringCustomerByReferralCodeRequest as GetReferringCustomerByReferralCodeRequest, type index_d_GetReferringCustomerByReferralCodeResponse as GetReferringCustomerByReferralCodeResponse, type index_d_GetReferringCustomerByReferralCodeResponseNonNullableFields as GetReferringCustomerByReferralCodeResponseNonNullableFields, type index_d_GetReferringCustomerRequest as GetReferringCustomerRequest, type index_d_GetReferringCustomerResponse as GetReferringCustomerResponse, type index_d_GetReferringCustomerResponseNonNullableFields as GetReferringCustomerResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_MessageEnvelope as MessageEnvelope, type index_d_QueryReferringCustomersRequest as QueryReferringCustomersRequest, type index_d_QueryReferringCustomersResponse as QueryReferringCustomersResponse, type index_d_QueryReferringCustomersResponseNonNullableFields as QueryReferringCustomersResponseNonNullableFields, type index_d_ReferringCustomer as ReferringCustomer, type index_d_ReferringCustomerCreatedEnvelope as ReferringCustomerCreatedEnvelope, type index_d_ReferringCustomerDeletedEnvelope as ReferringCustomerDeletedEnvelope, type index_d_ReferringCustomerNonNullableFields as ReferringCustomerNonNullableFields, type index_d_ReferringCustomersQueryBuilder as ReferringCustomersQueryBuilder, type index_d_ReferringCustomersQueryResult as ReferringCustomersQueryResult, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, type index_d_UndeleteInfo as UndeleteInfo, index_d_WebhookIdentityType as WebhookIdentityType, type index_d__publicDeleteReferringCustomerType as _publicDeleteReferringCustomerType, type index_d__publicGenerateReferringCustomerForContactType as _publicGenerateReferringCustomerForContactType, type index_d__publicGetReferringCustomerByReferralCodeType as _publicGetReferringCustomerByReferralCodeType, type index_d__publicGetReferringCustomerType as _publicGetReferringCustomerType, type index_d__publicOnReferringCustomerCreatedType as _publicOnReferringCustomerCreatedType, type index_d__publicOnReferringCustomerDeletedType as _publicOnReferringCustomerDeletedType, type index_d__publicQueryReferringCustomersType as _publicQueryReferringCustomersType, index_d_deleteReferringCustomer as deleteReferringCustomer, index_d_generateReferringCustomerForContact as generateReferringCustomerForContact, index_d_getReferringCustomer as getReferringCustomer, index_d_getReferringCustomerByReferralCode as getReferringCustomerByReferralCode, index_d_onReferringCustomerCreated as onReferringCustomerCreated, index_d_onReferringCustomerDeleted as onReferringCustomerDeleted, onReferringCustomerCreated$1 as publicOnReferringCustomerCreated, onReferringCustomerDeleted$1 as publicOnReferringCustomerDeleted, index_d_queryReferringCustomers as queryReferringCustomers };
4003
4181
  }
4004
4182
 
4005
4183
  export { index_d as customers, index_d$1 as friends, index_d$4 as programs, index_d$2 as rewards, index_d$3 as tracker };