@wix/referral 1.0.5 → 1.0.7

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,3 +1,804 @@
1
+ /** ReferralProgram is the main entity of ReferralPrograms that can be used to manage the program. */
2
+ interface ReferralProgram$1 {
3
+ /** Referral program name. */
4
+ name?: string | null;
5
+ /**
6
+ * Referral program status.
7
+ * @readonly
8
+ */
9
+ status?: ProgramStatus$1;
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. */
11
+ revision?: string | null;
12
+ /**
13
+ * Program's creation date and time.
14
+ * @readonly
15
+ */
16
+ createdDate?: Date;
17
+ /**
18
+ * Program's last update date and time
19
+ * @readonly
20
+ */
21
+ updatedDate?: Date;
22
+ /** Referred friend reward configuration. */
23
+ referredFriendReward?: Reward$3;
24
+ /** Referring customer reward configuration. */
25
+ referringCustomerReward?: Reward$3;
26
+ /** List of actions that complete referral. */
27
+ successfulReferralActions?: Action$1[];
28
+ /**
29
+ * Set to true if user has required plan to activate program.
30
+ * @readonly
31
+ * @deprecated Set to true if user has required plan to activate program.
32
+ * @replacedBy GetReferralProgramPremiumFeatures
33
+ * @targetRemovalDate 2024-09-01
34
+ */
35
+ isPremium?: boolean;
36
+ /** Emails configuration. */
37
+ emails?: Emails$1;
38
+ }
39
+ declare enum ProgramStatus$1 {
40
+ /** unknown status. */
41
+ UNKNOWN = "UNKNOWN",
42
+ /** initial program status (program was created but was not enabled yet). */
43
+ DRAFT = "DRAFT",
44
+ /** program is active. */
45
+ ACTIVE = "ACTIVE",
46
+ /** program was manually disabled by the user (this action can be reverted, meaning user can set it to be active again). */
47
+ PAUSED = "PAUSED"
48
+ }
49
+ interface Reward$3 extends RewardOptionsOneOf$1 {
50
+ /** Options for coupon reward type. */
51
+ couponOptions?: Coupon$5;
52
+ /** Options for Loyalty points reward type. */
53
+ loyaltyPointsOptions?: LoyaltyPoints$3;
54
+ /** Type of the reward. */
55
+ type?: Type$1;
56
+ }
57
+ /** @oneof */
58
+ interface RewardOptionsOneOf$1 {
59
+ /** Options for coupon reward type. */
60
+ couponOptions?: Coupon$5;
61
+ /** Options for Loyalty points reward type. */
62
+ loyaltyPointsOptions?: LoyaltyPoints$3;
63
+ }
64
+ declare enum Type$1 {
65
+ /** Unknown reward type. */
66
+ UNKNOWN = "UNKNOWN",
67
+ /** Coupon reward type. */
68
+ COUPON = "COUPON",
69
+ /** Loyalty points reward type. */
70
+ LOYALTY_POINTS = "LOYALTY_POINTS",
71
+ /** No reward type. */
72
+ NOTHING = "NOTHING"
73
+ }
74
+ interface Coupon$5 extends CouponDiscountTypeOptionsOneOf$5, CouponScopeOrMinSubtotalOneOf$5 {
75
+ /** Options for fixed amount discount type. */
76
+ fixedAmountOptions?: FixedAmountDiscount$5;
77
+ /** Options for percentage discount type. */
78
+ percentageOptions?: PercentageDiscount$5;
79
+ /** Limit the coupon to carts with a subtotal above this number. */
80
+ minimumSubtotal?: number;
81
+ /** Specifies the type of line items this coupon will apply to. */
82
+ scope?: CouponScope$5;
83
+ /** Coupon name. */
84
+ name?: string;
85
+ /** Coupon discount type. */
86
+ discountType?: DiscountType$5;
87
+ /** Limit the coupon to only apply to one item in cart. */
88
+ limitedToOneItem?: boolean | null;
89
+ /** If true, coupon also applies to subscriptions. */
90
+ appliesToSubscriptions?: boolean | null;
91
+ /** Specifies the amount of discounted cycles for subscription item. See Stores Coupons documentation for more info. */
92
+ discountedCycleCount?: number | null;
93
+ }
94
+ /** @oneof */
95
+ interface CouponDiscountTypeOptionsOneOf$5 {
96
+ /** Options for fixed amount discount type. */
97
+ fixedAmountOptions?: FixedAmountDiscount$5;
98
+ /** Options for percentage discount type. */
99
+ percentageOptions?: PercentageDiscount$5;
100
+ }
101
+ /** @oneof */
102
+ interface CouponScopeOrMinSubtotalOneOf$5 {
103
+ /** Limit the coupon to carts with a subtotal above this number. */
104
+ minimumSubtotal?: number;
105
+ /** Specifies the type of line items this coupon will apply to. */
106
+ scope?: CouponScope$5;
107
+ }
108
+ declare enum DiscountType$5 {
109
+ /** Unknown discount type. */
110
+ UNKNOWN = "UNKNOWN",
111
+ /** Discount as a fixed amount. */
112
+ FIXED_AMOUNT = "FIXED_AMOUNT",
113
+ /** Discount as a percentage. */
114
+ PERCENTAGE = "PERCENTAGE",
115
+ /** Free shipping. */
116
+ FREE_SHIPPING = "FREE_SHIPPING"
117
+ }
118
+ interface FixedAmountDiscount$5 {
119
+ /** Fixed amount to discount. */
120
+ amount?: number;
121
+ }
122
+ interface PercentageDiscount$5 {
123
+ /** Percentage to discount. */
124
+ percentage?: number;
125
+ }
126
+ interface CouponScope$5 {
127
+ /** Namespace of the coupon scope. */
128
+ namespace?: string;
129
+ /** Group of the coupon scope. */
130
+ group?: Group$5;
131
+ }
132
+ interface Group$5 {
133
+ /** Name of the group. */
134
+ name?: string;
135
+ /** Entity ID of the group. */
136
+ entityId?: string | null;
137
+ }
138
+ interface LoyaltyPoints$3 {
139
+ /** Amount of points to give. */
140
+ amount?: number;
141
+ }
142
+ declare enum Action$1 {
143
+ /** Unknown action. */
144
+ UNKNOWN = "UNKNOWN",
145
+ /** Store order placed. */
146
+ STORE_ORDER_PLACED = "STORE_ORDER_PLACED",
147
+ /** Pricing plan ordered. */
148
+ PLAN_ORDERED = "PLAN_ORDERED",
149
+ /** Wix events ticket ordered. */
150
+ TICKET_ORDERED = "TICKET_ORDERED",
151
+ /** Bookings session booked. */
152
+ SESSION_BOOKED = "SESSION_BOOKED",
153
+ /** Restaurant order placed. */
154
+ RESTAURANT_ORDER_PLACED = "RESTAURANT_ORDER_PLACED"
155
+ }
156
+ interface Emails$1 {
157
+ /** Encourage customers to refer their friends email. Select for which apps to enable. */
158
+ encourageToReferFriends?: App$1[];
159
+ /** Notify customers about their referral reward email. Set true to enable email. */
160
+ notifyCustomersAboutReward?: boolean;
161
+ }
162
+ declare enum App$1 {
163
+ /** Unknown app. */
164
+ UNKNOWN = "UNKNOWN",
165
+ /** Wix stores. */
166
+ STORES = "STORES",
167
+ /** Wix pricing plans. */
168
+ PRICING_PLANS = "PRICING_PLANS",
169
+ /** Wix events. */
170
+ EVENTS = "EVENTS",
171
+ /** Wix bookings. */
172
+ BOOKINGS = "BOOKINGS",
173
+ /** Wix restaurants. */
174
+ RESTAURANTS = "RESTAURANTS"
175
+ }
176
+ interface GetReferralProgramRequest$1 {
177
+ }
178
+ interface GetReferralProgramResponse$1 {
179
+ /** The retrieved ReferralProgram. */
180
+ referralProgram?: ReferralProgram$1;
181
+ }
182
+ interface QueryReferralProgramsRequest$1 {
183
+ /** Query to filter ReferralPrograms. */
184
+ query: CursorQuery$9;
185
+ }
186
+ interface CursorQuery$9 extends CursorQueryPagingMethodOneOf$9 {
187
+ /**
188
+ * Cursor paging options.
189
+ *
190
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
191
+ */
192
+ cursorPaging?: CursorPaging$9;
193
+ /**
194
+ * Filter object.
195
+ *
196
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
197
+ */
198
+ filter?: Record<string, any> | null;
199
+ /**
200
+ * Sort object.
201
+ *
202
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
203
+ */
204
+ sort?: Sorting$9[];
205
+ }
206
+ /** @oneof */
207
+ interface CursorQueryPagingMethodOneOf$9 {
208
+ /**
209
+ * Cursor paging options.
210
+ *
211
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
212
+ */
213
+ cursorPaging?: CursorPaging$9;
214
+ }
215
+ interface Sorting$9 {
216
+ /** Name of the field to sort by. */
217
+ fieldName?: string;
218
+ /** Sort order. */
219
+ order?: SortOrder$9;
220
+ }
221
+ declare enum SortOrder$9 {
222
+ ASC = "ASC",
223
+ DESC = "DESC"
224
+ }
225
+ interface CursorPaging$9 {
226
+ /** Maximum number of items to return in the results. */
227
+ limit?: number | null;
228
+ /**
229
+ * Pointer to the next or previous page in the list of results.
230
+ *
231
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
232
+ * Not relevant for the first request.
233
+ */
234
+ cursor?: string | null;
235
+ }
236
+ interface QueryReferralProgramsResponse$1 {
237
+ /** ReferralPrograms that match the query. */
238
+ referralPrograms?: ReferralProgram$1[];
239
+ /** Paging metadata. */
240
+ pagingMetadata?: CursorPagingMetadata$9;
241
+ }
242
+ interface CursorPagingMetadata$9 {
243
+ /** Number of items returned in the response. */
244
+ count?: number | null;
245
+ /** Cursor strings that point to the next page, previous page, or both. */
246
+ cursors?: Cursors$9;
247
+ /**
248
+ * Whether there are more pages to retrieve following the current page.
249
+ *
250
+ * + `true`: Another page of results can be retrieved.
251
+ * + `false`: This is the last page.
252
+ */
253
+ hasNext?: boolean | null;
254
+ }
255
+ interface Cursors$9 {
256
+ /** Cursor string pointing to the next page in the list of results. */
257
+ next?: string | null;
258
+ /** Cursor pointing to the previous page in the list of results. */
259
+ prev?: string | null;
260
+ }
261
+ interface UpdateReferralProgramRequest$1 {
262
+ /** ReferralProgram to be updated, may be partial. */
263
+ referralProgram: ReferralProgram$1;
264
+ }
265
+ interface UpdateReferralProgramResponse$1 {
266
+ /** The updated ReferralProgram. */
267
+ referralProgram?: ReferralProgram$1;
268
+ }
269
+ interface ActivateReferralProgramRequest$1 {
270
+ }
271
+ interface ActivateReferralProgramResponse$1 {
272
+ /** The activated ReferralProgram. */
273
+ referralProgram?: ReferralProgram$1;
274
+ }
275
+ interface PauseReferralProgramRequest$1 {
276
+ }
277
+ interface PauseReferralProgramResponse$1 {
278
+ /** The paused ReferralProgram. */
279
+ referralProgram?: ReferralProgram$1;
280
+ }
281
+ interface GetAISocialMediaPostsSuggestionsRequest$1 {
282
+ /** The topic to generate suggestions for. */
283
+ topic?: string;
284
+ }
285
+ interface GetAISocialMediaPostsSuggestionsResponse$1 {
286
+ /** The generated suggestions. */
287
+ suggestions?: AISocialMediaPostSuggestion$1[];
288
+ /** The refer friends page URL. */
289
+ referFriendsPageUrl?: string | null;
290
+ }
291
+ interface AISocialMediaPostSuggestion$1 {
292
+ /** The suggested post content. */
293
+ postContent?: string;
294
+ /** The suggested hashtags. */
295
+ hashtags?: string[];
296
+ }
297
+ interface GenerateAISocialMediaPostsSuggestionsRequest$1 {
298
+ /** The topic to generate suggestions for. */
299
+ topic?: string;
300
+ }
301
+ interface GenerateAISocialMediaPostsSuggestionsResponse$1 {
302
+ /** The generated suggestions. */
303
+ suggestions?: AISocialMediaPostSuggestion$1[];
304
+ /** The refer friends page URL. */
305
+ referFriendsPageUrl?: string | null;
306
+ }
307
+ interface GetReferralProgramPremiumFeaturesRequest$1 {
308
+ }
309
+ interface GetReferralProgramPremiumFeaturesResponse$1 {
310
+ /**
311
+ * Set to true if user has referral program feature.
312
+ * @readonly
313
+ */
314
+ referralProgram?: boolean;
315
+ }
316
+ interface FixedAmountDiscountNonNullableFields$5 {
317
+ amount: number;
318
+ }
319
+ interface PercentageDiscountNonNullableFields$5 {
320
+ percentage: number;
321
+ }
322
+ interface GroupNonNullableFields$5 {
323
+ name: string;
324
+ }
325
+ interface CouponScopeNonNullableFields$5 {
326
+ namespace: string;
327
+ group?: GroupNonNullableFields$5;
328
+ }
329
+ interface CouponNonNullableFields$5 {
330
+ fixedAmountOptions?: FixedAmountDiscountNonNullableFields$5;
331
+ percentageOptions?: PercentageDiscountNonNullableFields$5;
332
+ minimumSubtotal: number;
333
+ scope?: CouponScopeNonNullableFields$5;
334
+ name: string;
335
+ discountType: DiscountType$5;
336
+ }
337
+ interface LoyaltyPointsNonNullableFields$3 {
338
+ amount: number;
339
+ }
340
+ interface RewardNonNullableFields$1 {
341
+ couponOptions?: CouponNonNullableFields$5;
342
+ loyaltyPointsOptions?: LoyaltyPointsNonNullableFields$3;
343
+ type: Type$1;
344
+ }
345
+ interface EmailsNonNullableFields$1 {
346
+ encourageToReferFriends: App$1[];
347
+ notifyCustomersAboutReward: boolean;
348
+ }
349
+ interface ReferralProgramNonNullableFields$1 {
350
+ status: ProgramStatus$1;
351
+ referredFriendReward?: RewardNonNullableFields$1;
352
+ referringCustomerReward?: RewardNonNullableFields$1;
353
+ successfulReferralActions: Action$1[];
354
+ isPremium: boolean;
355
+ emails?: EmailsNonNullableFields$1;
356
+ }
357
+ interface GetReferralProgramResponseNonNullableFields$1 {
358
+ referralProgram?: ReferralProgramNonNullableFields$1;
359
+ }
360
+ interface QueryReferralProgramsResponseNonNullableFields$1 {
361
+ referralPrograms: ReferralProgramNonNullableFields$1[];
362
+ }
363
+ interface UpdateReferralProgramResponseNonNullableFields$1 {
364
+ referralProgram?: ReferralProgramNonNullableFields$1;
365
+ }
366
+ interface ActivateReferralProgramResponseNonNullableFields$1 {
367
+ referralProgram?: ReferralProgramNonNullableFields$1;
368
+ }
369
+ interface PauseReferralProgramResponseNonNullableFields$1 {
370
+ referralProgram?: ReferralProgramNonNullableFields$1;
371
+ }
372
+ interface AISocialMediaPostSuggestionNonNullableFields$1 {
373
+ postContent: string;
374
+ hashtags: string[];
375
+ }
376
+ interface GetAISocialMediaPostsSuggestionsResponseNonNullableFields$1 {
377
+ suggestions: AISocialMediaPostSuggestionNonNullableFields$1[];
378
+ }
379
+ interface GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields$1 {
380
+ suggestions: AISocialMediaPostSuggestionNonNullableFields$1[];
381
+ }
382
+ interface GetReferralProgramPremiumFeaturesResponseNonNullableFields$1 {
383
+ referralProgram: boolean;
384
+ }
385
+
386
+ /** ReferralProgram is the main entity of ReferralPrograms that can be used to manage the program. */
387
+ interface ReferralProgram {
388
+ /** Referral program name. */
389
+ name?: string | null;
390
+ /**
391
+ * Referral program status.
392
+ * @readonly
393
+ */
394
+ status?: ProgramStatus;
395
+ /** 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. */
396
+ revision?: string | null;
397
+ /**
398
+ * Program's creation date and time.
399
+ * @readonly
400
+ */
401
+ _createdDate?: Date;
402
+ /**
403
+ * Program's last update date and time
404
+ * @readonly
405
+ */
406
+ _updatedDate?: Date;
407
+ /** Referred friend reward configuration. */
408
+ referredFriendReward?: Reward$2;
409
+ /** Referring customer reward configuration. */
410
+ referringCustomerReward?: Reward$2;
411
+ /** List of actions that complete referral. */
412
+ successfulReferralActions?: Action[];
413
+ /**
414
+ * Set to true if user has required plan to activate program.
415
+ * @readonly
416
+ * @deprecated Set to true if user has required plan to activate program.
417
+ * @replacedBy GetReferralProgramPremiumFeatures
418
+ * @targetRemovalDate 2024-09-01
419
+ */
420
+ isPremium?: boolean;
421
+ /** Emails configuration. */
422
+ emails?: Emails;
423
+ }
424
+ declare enum ProgramStatus {
425
+ /** unknown status. */
426
+ UNKNOWN = "UNKNOWN",
427
+ /** initial program status (program was created but was not enabled yet). */
428
+ DRAFT = "DRAFT",
429
+ /** program is active. */
430
+ ACTIVE = "ACTIVE",
431
+ /** program was manually disabled by the user (this action can be reverted, meaning user can set it to be active again). */
432
+ PAUSED = "PAUSED"
433
+ }
434
+ interface Reward$2 extends RewardOptionsOneOf {
435
+ /** Options for coupon reward type. */
436
+ couponOptions?: Coupon$4;
437
+ /** Options for Loyalty points reward type. */
438
+ loyaltyPointsOptions?: LoyaltyPoints$2;
439
+ /** Type of the reward. */
440
+ type?: Type;
441
+ }
442
+ /** @oneof */
443
+ interface RewardOptionsOneOf {
444
+ /** Options for coupon reward type. */
445
+ couponOptions?: Coupon$4;
446
+ /** Options for Loyalty points reward type. */
447
+ loyaltyPointsOptions?: LoyaltyPoints$2;
448
+ }
449
+ declare enum Type {
450
+ /** Unknown reward type. */
451
+ UNKNOWN = "UNKNOWN",
452
+ /** Coupon reward type. */
453
+ COUPON = "COUPON",
454
+ /** Loyalty points reward type. */
455
+ LOYALTY_POINTS = "LOYALTY_POINTS",
456
+ /** No reward type. */
457
+ NOTHING = "NOTHING"
458
+ }
459
+ interface Coupon$4 extends CouponDiscountTypeOptionsOneOf$4, CouponScopeOrMinSubtotalOneOf$4 {
460
+ /** Options for fixed amount discount type. */
461
+ fixedAmountOptions?: FixedAmountDiscount$4;
462
+ /** Options for percentage discount type. */
463
+ percentageOptions?: PercentageDiscount$4;
464
+ /** Limit the coupon to carts with a subtotal above this number. */
465
+ minimumSubtotal?: number;
466
+ /** Specifies the type of line items this coupon will apply to. */
467
+ scope?: CouponScope$4;
468
+ /** Coupon name. */
469
+ name?: string;
470
+ /** Coupon discount type. */
471
+ discountType?: DiscountType$4;
472
+ /** Limit the coupon to only apply to one item in cart. */
473
+ limitedToOneItem?: boolean | null;
474
+ /** If true, coupon also applies to subscriptions. */
475
+ appliesToSubscriptions?: boolean | null;
476
+ /** Specifies the amount of discounted cycles for subscription item. See Stores Coupons documentation for more info. */
477
+ discountedCycleCount?: number | null;
478
+ }
479
+ /** @oneof */
480
+ interface CouponDiscountTypeOptionsOneOf$4 {
481
+ /** Options for fixed amount discount type. */
482
+ fixedAmountOptions?: FixedAmountDiscount$4;
483
+ /** Options for percentage discount type. */
484
+ percentageOptions?: PercentageDiscount$4;
485
+ }
486
+ /** @oneof */
487
+ interface CouponScopeOrMinSubtotalOneOf$4 {
488
+ /** Limit the coupon to carts with a subtotal above this number. */
489
+ minimumSubtotal?: number;
490
+ /** Specifies the type of line items this coupon will apply to. */
491
+ scope?: CouponScope$4;
492
+ }
493
+ declare enum DiscountType$4 {
494
+ /** Unknown discount type. */
495
+ UNKNOWN = "UNKNOWN",
496
+ /** Discount as a fixed amount. */
497
+ FIXED_AMOUNT = "FIXED_AMOUNT",
498
+ /** Discount as a percentage. */
499
+ PERCENTAGE = "PERCENTAGE",
500
+ /** Free shipping. */
501
+ FREE_SHIPPING = "FREE_SHIPPING"
502
+ }
503
+ interface FixedAmountDiscount$4 {
504
+ /** Fixed amount to discount. */
505
+ amount?: number;
506
+ }
507
+ interface PercentageDiscount$4 {
508
+ /** Percentage to discount. */
509
+ percentage?: number;
510
+ }
511
+ interface CouponScope$4 {
512
+ /** Namespace of the coupon scope. */
513
+ namespace?: string;
514
+ /** Group of the coupon scope. */
515
+ group?: Group$4;
516
+ }
517
+ interface Group$4 {
518
+ /** Name of the group. */
519
+ name?: string;
520
+ /** Entity ID of the group. */
521
+ entityId?: string | null;
522
+ }
523
+ interface LoyaltyPoints$2 {
524
+ /** Amount of points to give. */
525
+ amount?: number;
526
+ }
527
+ declare enum Action {
528
+ /** Unknown action. */
529
+ UNKNOWN = "UNKNOWN",
530
+ /** Store order placed. */
531
+ STORE_ORDER_PLACED = "STORE_ORDER_PLACED",
532
+ /** Pricing plan ordered. */
533
+ PLAN_ORDERED = "PLAN_ORDERED",
534
+ /** Wix events ticket ordered. */
535
+ TICKET_ORDERED = "TICKET_ORDERED",
536
+ /** Bookings session booked. */
537
+ SESSION_BOOKED = "SESSION_BOOKED",
538
+ /** Restaurant order placed. */
539
+ RESTAURANT_ORDER_PLACED = "RESTAURANT_ORDER_PLACED"
540
+ }
541
+ interface Emails {
542
+ /** Encourage customers to refer their friends email. Select for which apps to enable. */
543
+ encourageToReferFriends?: App[];
544
+ /** Notify customers about their referral reward email. Set true to enable email. */
545
+ notifyCustomersAboutReward?: boolean;
546
+ }
547
+ declare enum App {
548
+ /** Unknown app. */
549
+ UNKNOWN = "UNKNOWN",
550
+ /** Wix stores. */
551
+ STORES = "STORES",
552
+ /** Wix pricing plans. */
553
+ PRICING_PLANS = "PRICING_PLANS",
554
+ /** Wix events. */
555
+ EVENTS = "EVENTS",
556
+ /** Wix bookings. */
557
+ BOOKINGS = "BOOKINGS",
558
+ /** Wix restaurants. */
559
+ RESTAURANTS = "RESTAURANTS"
560
+ }
561
+ interface GetReferralProgramRequest {
562
+ }
563
+ interface GetReferralProgramResponse {
564
+ /** The retrieved ReferralProgram. */
565
+ referralProgram?: ReferralProgram;
566
+ }
567
+ interface QueryReferralProgramsRequest {
568
+ /** Query to filter ReferralPrograms. */
569
+ query: CursorQuery$8;
570
+ }
571
+ interface CursorQuery$8 extends CursorQueryPagingMethodOneOf$8 {
572
+ /**
573
+ * Cursor paging options.
574
+ *
575
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
576
+ */
577
+ cursorPaging?: CursorPaging$8;
578
+ /**
579
+ * Filter object.
580
+ *
581
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
582
+ */
583
+ filter?: Record<string, any> | null;
584
+ /**
585
+ * Sort object.
586
+ *
587
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
588
+ */
589
+ sort?: Sorting$8[];
590
+ }
591
+ /** @oneof */
592
+ interface CursorQueryPagingMethodOneOf$8 {
593
+ /**
594
+ * Cursor paging options.
595
+ *
596
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
597
+ */
598
+ cursorPaging?: CursorPaging$8;
599
+ }
600
+ interface Sorting$8 {
601
+ /** Name of the field to sort by. */
602
+ fieldName?: string;
603
+ /** Sort order. */
604
+ order?: SortOrder$8;
605
+ }
606
+ declare enum SortOrder$8 {
607
+ ASC = "ASC",
608
+ DESC = "DESC"
609
+ }
610
+ interface CursorPaging$8 {
611
+ /** Maximum number of items to return in the results. */
612
+ limit?: number | null;
613
+ /**
614
+ * Pointer to the next or previous page in the list of results.
615
+ *
616
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
617
+ * Not relevant for the first request.
618
+ */
619
+ cursor?: string | null;
620
+ }
621
+ interface QueryReferralProgramsResponse {
622
+ /** ReferralPrograms that match the query. */
623
+ referralPrograms?: ReferralProgram[];
624
+ /** Paging metadata. */
625
+ pagingMetadata?: CursorPagingMetadata$8;
626
+ }
627
+ interface CursorPagingMetadata$8 {
628
+ /** Number of items returned in the response. */
629
+ count?: number | null;
630
+ /** Cursor strings that point to the next page, previous page, or both. */
631
+ cursors?: Cursors$8;
632
+ /**
633
+ * Whether there are more pages to retrieve following the current page.
634
+ *
635
+ * + `true`: Another page of results can be retrieved.
636
+ * + `false`: This is the last page.
637
+ */
638
+ hasNext?: boolean | null;
639
+ }
640
+ interface Cursors$8 {
641
+ /** Cursor string pointing to the next page in the list of results. */
642
+ next?: string | null;
643
+ /** Cursor pointing to the previous page in the list of results. */
644
+ prev?: string | null;
645
+ }
646
+ interface UpdateReferralProgramRequest {
647
+ /** ReferralProgram to be updated, may be partial. */
648
+ referralProgram: ReferralProgram;
649
+ }
650
+ interface UpdateReferralProgramResponse {
651
+ /** The updated ReferralProgram. */
652
+ referralProgram?: ReferralProgram;
653
+ }
654
+ interface ActivateReferralProgramRequest {
655
+ }
656
+ interface ActivateReferralProgramResponse {
657
+ /** The activated ReferralProgram. */
658
+ referralProgram?: ReferralProgram;
659
+ }
660
+ interface PauseReferralProgramRequest {
661
+ }
662
+ interface PauseReferralProgramResponse {
663
+ /** The paused ReferralProgram. */
664
+ referralProgram?: ReferralProgram;
665
+ }
666
+ interface GetAISocialMediaPostsSuggestionsRequest {
667
+ /** The topic to generate suggestions for. */
668
+ topic?: string;
669
+ }
670
+ interface GetAISocialMediaPostsSuggestionsResponse {
671
+ /** The generated suggestions. */
672
+ suggestions?: AISocialMediaPostSuggestion[];
673
+ /** The refer friends page URL. */
674
+ referFriendsPageUrl?: string | null;
675
+ }
676
+ interface AISocialMediaPostSuggestion {
677
+ /** The suggested post content. */
678
+ postContent?: string;
679
+ /** The suggested hashtags. */
680
+ hashtags?: string[];
681
+ }
682
+ interface GenerateAISocialMediaPostsSuggestionsRequest {
683
+ /** The topic to generate suggestions for. */
684
+ topic?: string;
685
+ }
686
+ interface GenerateAISocialMediaPostsSuggestionsResponse {
687
+ /** The generated suggestions. */
688
+ suggestions?: AISocialMediaPostSuggestion[];
689
+ /** The refer friends page URL. */
690
+ referFriendsPageUrl?: string | null;
691
+ }
692
+ interface GetReferralProgramPremiumFeaturesRequest {
693
+ }
694
+ interface GetReferralProgramPremiumFeaturesResponse {
695
+ /**
696
+ * Set to true if user has referral program feature.
697
+ * @readonly
698
+ */
699
+ referralProgram?: boolean;
700
+ }
701
+ interface FixedAmountDiscountNonNullableFields$4 {
702
+ amount: number;
703
+ }
704
+ interface PercentageDiscountNonNullableFields$4 {
705
+ percentage: number;
706
+ }
707
+ interface GroupNonNullableFields$4 {
708
+ name: string;
709
+ }
710
+ interface CouponScopeNonNullableFields$4 {
711
+ namespace: string;
712
+ group?: GroupNonNullableFields$4;
713
+ }
714
+ interface CouponNonNullableFields$4 {
715
+ fixedAmountOptions?: FixedAmountDiscountNonNullableFields$4;
716
+ percentageOptions?: PercentageDiscountNonNullableFields$4;
717
+ minimumSubtotal: number;
718
+ scope?: CouponScopeNonNullableFields$4;
719
+ name: string;
720
+ discountType: DiscountType$4;
721
+ }
722
+ interface LoyaltyPointsNonNullableFields$2 {
723
+ amount: number;
724
+ }
725
+ interface RewardNonNullableFields {
726
+ couponOptions?: CouponNonNullableFields$4;
727
+ loyaltyPointsOptions?: LoyaltyPointsNonNullableFields$2;
728
+ type: Type;
729
+ }
730
+ interface EmailsNonNullableFields {
731
+ encourageToReferFriends: App[];
732
+ notifyCustomersAboutReward: boolean;
733
+ }
734
+ interface ReferralProgramNonNullableFields {
735
+ status: ProgramStatus;
736
+ referredFriendReward?: RewardNonNullableFields;
737
+ referringCustomerReward?: RewardNonNullableFields;
738
+ successfulReferralActions: Action[];
739
+ isPremium: boolean;
740
+ emails?: EmailsNonNullableFields;
741
+ }
742
+ interface GetReferralProgramResponseNonNullableFields {
743
+ referralProgram?: ReferralProgramNonNullableFields;
744
+ }
745
+ interface QueryReferralProgramsResponseNonNullableFields {
746
+ referralPrograms: ReferralProgramNonNullableFields[];
747
+ }
748
+ interface UpdateReferralProgramResponseNonNullableFields {
749
+ referralProgram?: ReferralProgramNonNullableFields;
750
+ }
751
+ interface ActivateReferralProgramResponseNonNullableFields {
752
+ referralProgram?: ReferralProgramNonNullableFields;
753
+ }
754
+ interface PauseReferralProgramResponseNonNullableFields {
755
+ referralProgram?: ReferralProgramNonNullableFields;
756
+ }
757
+ interface AISocialMediaPostSuggestionNonNullableFields {
758
+ postContent: string;
759
+ hashtags: string[];
760
+ }
761
+ interface GetAISocialMediaPostsSuggestionsResponseNonNullableFields {
762
+ suggestions: AISocialMediaPostSuggestionNonNullableFields[];
763
+ }
764
+ interface GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields {
765
+ suggestions: AISocialMediaPostSuggestionNonNullableFields[];
766
+ }
767
+ interface GetReferralProgramPremiumFeaturesResponseNonNullableFields {
768
+ referralProgram: boolean;
769
+ }
770
+
771
+ type __PublicMethodMetaInfo$4<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
772
+ getUrl: (context: any) => string;
773
+ httpMethod: K;
774
+ path: string;
775
+ pathParams: M;
776
+ __requestType: T;
777
+ __originalRequestType: S;
778
+ __responseType: Q;
779
+ __originalResponseType: R;
780
+ };
781
+ declare function getReferralProgram(): __PublicMethodMetaInfo$4<'GET', {}, GetReferralProgramRequest, GetReferralProgramRequest$1, GetReferralProgramResponse & GetReferralProgramResponseNonNullableFields, GetReferralProgramResponse$1 & GetReferralProgramResponseNonNullableFields$1>;
782
+ declare function queryReferralPrograms(): __PublicMethodMetaInfo$4<'POST', {}, QueryReferralProgramsRequest, QueryReferralProgramsRequest$1, QueryReferralProgramsResponse & QueryReferralProgramsResponseNonNullableFields, QueryReferralProgramsResponse$1 & QueryReferralProgramsResponseNonNullableFields$1>;
783
+ declare function updateReferralProgram(): __PublicMethodMetaInfo$4<'PATCH', {}, UpdateReferralProgramRequest, UpdateReferralProgramRequest$1, UpdateReferralProgramResponse & UpdateReferralProgramResponseNonNullableFields, UpdateReferralProgramResponse$1 & UpdateReferralProgramResponseNonNullableFields$1>;
784
+ declare function activateReferralProgram(): __PublicMethodMetaInfo$4<'PATCH', {}, ActivateReferralProgramRequest, ActivateReferralProgramRequest$1, ActivateReferralProgramResponse & ActivateReferralProgramResponseNonNullableFields, ActivateReferralProgramResponse$1 & ActivateReferralProgramResponseNonNullableFields$1>;
785
+ declare function pauseReferralProgram(): __PublicMethodMetaInfo$4<'PATCH', {}, PauseReferralProgramRequest, PauseReferralProgramRequest$1, PauseReferralProgramResponse & PauseReferralProgramResponseNonNullableFields, PauseReferralProgramResponse$1 & PauseReferralProgramResponseNonNullableFields$1>;
786
+ declare function getAiSocialMediaPostsSuggestions(): __PublicMethodMetaInfo$4<'GET', {}, GetAISocialMediaPostsSuggestionsRequest, GetAISocialMediaPostsSuggestionsRequest$1, GetAISocialMediaPostsSuggestionsResponse & GetAISocialMediaPostsSuggestionsResponseNonNullableFields, GetAISocialMediaPostsSuggestionsResponse$1 & GetAISocialMediaPostsSuggestionsResponseNonNullableFields$1>;
787
+ declare function generateAiSocialMediaPostsSuggestions(): __PublicMethodMetaInfo$4<'POST', {}, GenerateAISocialMediaPostsSuggestionsRequest, GenerateAISocialMediaPostsSuggestionsRequest$1, GenerateAISocialMediaPostsSuggestionsResponse & GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields, GenerateAISocialMediaPostsSuggestionsResponse$1 & GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields$1>;
788
+ declare function getReferralProgramPremiumFeatures(): __PublicMethodMetaInfo$4<'GET', {}, GetReferralProgramPremiumFeaturesRequest, GetReferralProgramPremiumFeaturesRequest$1, GetReferralProgramPremiumFeaturesResponse & GetReferralProgramPremiumFeaturesResponseNonNullableFields, GetReferralProgramPremiumFeaturesResponse$1 & GetReferralProgramPremiumFeaturesResponseNonNullableFields$1>;
789
+
790
+ declare const meta$4_activateReferralProgram: typeof activateReferralProgram;
791
+ declare const meta$4_generateAiSocialMediaPostsSuggestions: typeof generateAiSocialMediaPostsSuggestions;
792
+ declare const meta$4_getAiSocialMediaPostsSuggestions: typeof getAiSocialMediaPostsSuggestions;
793
+ declare const meta$4_getReferralProgram: typeof getReferralProgram;
794
+ declare const meta$4_getReferralProgramPremiumFeatures: typeof getReferralProgramPremiumFeatures;
795
+ declare const meta$4_pauseReferralProgram: typeof pauseReferralProgram;
796
+ declare const meta$4_queryReferralPrograms: typeof queryReferralPrograms;
797
+ declare const meta$4_updateReferralProgram: typeof updateReferralProgram;
798
+ declare namespace meta$4 {
799
+ export { type __PublicMethodMetaInfo$4 as __PublicMethodMetaInfo, meta$4_activateReferralProgram as activateReferralProgram, meta$4_generateAiSocialMediaPostsSuggestions as generateAiSocialMediaPostsSuggestions, meta$4_getAiSocialMediaPostsSuggestions as getAiSocialMediaPostsSuggestions, meta$4_getReferralProgram as getReferralProgram, meta$4_getReferralProgramPremiumFeatures as getReferralProgramPremiumFeatures, meta$4_pauseReferralProgram as pauseReferralProgram, meta$4_queryReferralPrograms as queryReferralPrograms, meta$4_updateReferralProgram as updateReferralProgram };
800
+ }
801
+
1
802
  /** ReferralEvent. */
2
803
  interface ReferralEvent$1 extends ReferralEventEventTypeOneOf$1 {
3
804
  /** ReferredFriendSignupEvent is an event that is triggered when a referred friend signs up. */
@@ -338,17 +1139,17 @@ declare enum Status$5 {
338
1139
  DELETED = "DELETED"
339
1140
  }
340
1141
  interface Coupon$3 extends CouponDiscountTypeOptionsOneOf$3, CouponScopeOrMinSubtotalOneOf$3 {
341
- /** Options for fixed amount discount type */
1142
+ /** Options for fixed amount discount type. */
342
1143
  fixedAmountOptions?: FixedAmountDiscount$3;
343
- /** Options for percentage discount type */
1144
+ /** Options for percentage discount type. */
344
1145
  percentageOptions?: PercentageDiscount$3;
345
1146
  /** Limit the coupon to carts with a subtotal above this number. */
346
1147
  minimumSubtotal?: number;
347
1148
  /** Specifies the type of line items this coupon will apply to. */
348
1149
  scope?: CouponScope$3;
349
- /** Coupon name */
1150
+ /** Coupon name. */
350
1151
  name?: string;
351
- /** Coupon discount type */
1152
+ /** Coupon discount type. */
352
1153
  discountType?: DiscountType$3;
353
1154
  /** Limit the coupon to only apply to one item in cart. */
354
1155
  limitedToOneItem?: boolean | null;
@@ -359,9 +1160,9 @@ interface Coupon$3 extends CouponDiscountTypeOptionsOneOf$3, CouponScopeOrMinSub
359
1160
  }
360
1161
  /** @oneof */
361
1162
  interface CouponDiscountTypeOptionsOneOf$3 {
362
- /** Options for fixed amount discount type */
1163
+ /** Options for fixed amount discount type. */
363
1164
  fixedAmountOptions?: FixedAmountDiscount$3;
364
- /** Options for percentage discount type */
1165
+ /** Options for percentage discount type. */
365
1166
  percentageOptions?: PercentageDiscount$3;
366
1167
  }
367
1168
  /** @oneof */
@@ -372,27 +1173,33 @@ interface CouponScopeOrMinSubtotalOneOf$3 {
372
1173
  scope?: CouponScope$3;
373
1174
  }
374
1175
  declare enum DiscountType$3 {
1176
+ /** Unknown discount type. */
375
1177
  UNKNOWN = "UNKNOWN",
376
- /** Discount as a fixed amount */
1178
+ /** Discount as a fixed amount. */
377
1179
  FIXED_AMOUNT = "FIXED_AMOUNT",
378
- /** Discount as a percentage */
1180
+ /** Discount as a percentage. */
379
1181
  PERCENTAGE = "PERCENTAGE",
380
- /** Free shipping */
1182
+ /** Free shipping. */
381
1183
  FREE_SHIPPING = "FREE_SHIPPING"
382
1184
  }
383
1185
  interface FixedAmountDiscount$3 {
384
- /** Fixed amount to discount */
1186
+ /** Fixed amount to discount. */
385
1187
  amount?: number;
386
1188
  }
387
1189
  interface PercentageDiscount$3 {
1190
+ /** Percentage to discount. */
388
1191
  percentage?: number;
389
1192
  }
390
1193
  interface CouponScope$3 {
1194
+ /** Namespace of the coupon scope. */
391
1195
  namespace?: string;
1196
+ /** Group of the coupon scope. */
392
1197
  group?: Group$3;
393
1198
  }
394
1199
  interface Group$3 {
1200
+ /** Name of the group. */
395
1201
  name?: string;
1202
+ /** Entity ID of the group. */
396
1203
  entityId?: string | null;
397
1204
  }
398
1205
  interface LoyaltyPoints$1 {
@@ -407,108 +1214,98 @@ interface LoyaltyPoints$1 {
407
1214
  */
408
1215
  amount?: number;
409
1216
  }
1217
+ interface ReferredFriendSignupEventNonNullableFields$1 {
1218
+ referredFriendId: string;
1219
+ }
1220
+ interface V1SuccessfulReferralEventNonNullableFields$1 {
1221
+ referredFriendId: string;
1222
+ referringCustomerId: string;
1223
+ }
1224
+ interface V1TriggerNonNullableFields$1 {
1225
+ appId: string;
1226
+ activityType: string;
1227
+ }
1228
+ interface V1ActionEventNonNullableFields$1 {
1229
+ referredFriendId: string;
1230
+ referringCustomerId: string;
1231
+ trigger?: V1TriggerNonNullableFields$1;
1232
+ }
1233
+ interface RewardEventNonNullableFields$1 {
1234
+ rewardedReferringCustomerId: string;
1235
+ rewardedReferredFriendId: string;
1236
+ referralRewardId: string;
1237
+ rewardType: Reward$1;
1238
+ }
1239
+ interface ReferralEventNonNullableFields$1 {
1240
+ referredFriendSignupEvent?: ReferredFriendSignupEventNonNullableFields$1;
1241
+ successfulReferralEvent?: V1SuccessfulReferralEventNonNullableFields$1;
1242
+ actionEvent?: V1ActionEventNonNullableFields$1;
1243
+ rewardEvent?: RewardEventNonNullableFields$1;
1244
+ }
410
1245
  interface GetReferralEventResponseNonNullableFields$1 {
411
- referralEvent?: {
412
- referredFriendSignupEvent?: {
413
- referredFriendId: string;
414
- };
415
- successfulReferralEvent?: {
416
- referredFriendId: string;
417
- referringCustomerId: string;
418
- };
419
- actionEvent?: {
420
- referredFriendId: string;
421
- referringCustomerId: string;
422
- trigger?: {
423
- appId: string;
424
- activityType: string;
425
- };
426
- };
427
- rewardEvent?: {
428
- rewardedReferringCustomerId: string;
429
- rewardedReferredFriendId: string;
430
- referralRewardId: string;
431
- rewardType: Reward$1;
432
- };
433
- };
1246
+ referralEvent?: ReferralEventNonNullableFields$1;
434
1247
  }
435
1248
  interface QueryReferralEventResponseNonNullableFields$1 {
436
- referralEvents: {
437
- referredFriendSignupEvent?: {
438
- referredFriendId: string;
439
- };
440
- successfulReferralEvent?: {
441
- referredFriendId: string;
442
- referringCustomerId: string;
443
- };
444
- actionEvent?: {
445
- referredFriendId: string;
446
- referringCustomerId: string;
447
- trigger?: {
448
- appId: string;
449
- activityType: string;
450
- };
451
- };
452
- rewardEvent?: {
453
- rewardedReferringCustomerId: string;
454
- rewardedReferredFriendId: string;
455
- referralRewardId: string;
456
- rewardType: Reward$1;
457
- };
458
- }[];
1249
+ referralEvents: ReferralEventNonNullableFields$1[];
459
1250
  }
460
1251
  interface GetReferralStatisticsResponseNonNullableFields$1 {
461
1252
  totalSignUpsCompleted: number;
462
1253
  totalActionsCompleted: number;
463
1254
  totalAmountGenerated: string;
464
1255
  }
1256
+ interface ReferringCustomerTotalNonNullableFields$1 {
1257
+ referringCustomerId: string;
1258
+ contactId: string;
1259
+ totalSuccessfulReferrals: number;
1260
+ totalAmountGenerated: string;
1261
+ totalFriendsWithActions: number;
1262
+ }
465
1263
  interface QueryReferringCustomerTotalsResponseNonNullableFields$1 {
466
- referringCustomerTotals: {
467
- referringCustomerId: string;
468
- contactId: string;
469
- totalSuccessfulReferrals: number;
470
- totalAmountGenerated: string;
471
- totalFriendsWithActions: number;
472
- }[];
1264
+ referringCustomerTotals: ReferringCustomerTotalNonNullableFields$1[];
1265
+ }
1266
+ interface FixedAmountDiscountNonNullableFields$3 {
1267
+ amount: number;
1268
+ }
1269
+ interface PercentageDiscountNonNullableFields$3 {
1270
+ percentage: number;
1271
+ }
1272
+ interface GroupNonNullableFields$3 {
1273
+ name: string;
1274
+ }
1275
+ interface CouponScopeNonNullableFields$3 {
1276
+ namespace: string;
1277
+ group?: GroupNonNullableFields$3;
1278
+ }
1279
+ interface CouponNonNullableFields$3 {
1280
+ fixedAmountOptions?: FixedAmountDiscountNonNullableFields$3;
1281
+ percentageOptions?: PercentageDiscountNonNullableFields$3;
1282
+ minimumSubtotal: number;
1283
+ scope?: CouponScopeNonNullableFields$3;
1284
+ name: string;
1285
+ discountType: DiscountType$3;
1286
+ }
1287
+ interface V1CouponNonNullableFields$3 {
1288
+ id: string;
1289
+ code: string;
1290
+ status: Status$5;
1291
+ couponSpecification?: CouponNonNullableFields$3;
1292
+ }
1293
+ interface LoyaltyPointsNonNullableFields$1 {
1294
+ transactionId: string;
1295
+ amount: number;
1296
+ }
1297
+ interface ReferredFriendActionNonNullableFields$1 {
1298
+ coupon?: V1CouponNonNullableFields$3;
1299
+ loyaltyPoints?: LoyaltyPointsNonNullableFields$1;
1300
+ referredFriendId: string;
1301
+ contactId: string;
1302
+ trigger?: V1TriggerNonNullableFields$1;
1303
+ rewardType: Reward$1;
1304
+ totalActions: number;
1305
+ totalAmountSpent: string;
473
1306
  }
474
1307
  interface QueryReferredFriendActionsResponseNonNullableFields$1 {
475
- referredFriendActions: {
476
- coupon?: {
477
- id: string;
478
- code: string;
479
- status: Status$5;
480
- couponSpecification?: {
481
- fixedAmountOptions?: {
482
- amount: number;
483
- };
484
- percentageOptions?: {
485
- percentage: number;
486
- };
487
- minimumSubtotal: number;
488
- scope?: {
489
- namespace: string;
490
- group?: {
491
- name: string;
492
- };
493
- };
494
- name: string;
495
- discountType: DiscountType$3;
496
- };
497
- };
498
- loyaltyPoints?: {
499
- transactionId: string;
500
- amount: number;
501
- };
502
- referredFriendId: string;
503
- contactId: string;
504
- trigger?: {
505
- appId: string;
506
- activityType: string;
507
- };
508
- rewardType: Reward$1;
509
- totalActions: number;
510
- totalAmountSpent: string;
511
- }[];
1308
+ referredFriendActions: ReferredFriendActionNonNullableFields$1[];
512
1309
  }
513
1310
 
514
1311
  /** ReferralEvent. */
@@ -851,17 +1648,17 @@ declare enum Status$4 {
851
1648
  DELETED = "DELETED"
852
1649
  }
853
1650
  interface Coupon$2 extends CouponDiscountTypeOptionsOneOf$2, CouponScopeOrMinSubtotalOneOf$2 {
854
- /** Options for fixed amount discount type */
1651
+ /** Options for fixed amount discount type. */
855
1652
  fixedAmountOptions?: FixedAmountDiscount$2;
856
- /** Options for percentage discount type */
1653
+ /** Options for percentage discount type. */
857
1654
  percentageOptions?: PercentageDiscount$2;
858
1655
  /** Limit the coupon to carts with a subtotal above this number. */
859
1656
  minimumSubtotal?: number;
860
1657
  /** Specifies the type of line items this coupon will apply to. */
861
1658
  scope?: CouponScope$2;
862
- /** Coupon name */
1659
+ /** Coupon name. */
863
1660
  name?: string;
864
- /** Coupon discount type */
1661
+ /** Coupon discount type. */
865
1662
  discountType?: DiscountType$2;
866
1663
  /** Limit the coupon to only apply to one item in cart. */
867
1664
  limitedToOneItem?: boolean | null;
@@ -872,9 +1669,9 @@ interface Coupon$2 extends CouponDiscountTypeOptionsOneOf$2, CouponScopeOrMinSub
872
1669
  }
873
1670
  /** @oneof */
874
1671
  interface CouponDiscountTypeOptionsOneOf$2 {
875
- /** Options for fixed amount discount type */
1672
+ /** Options for fixed amount discount type. */
876
1673
  fixedAmountOptions?: FixedAmountDiscount$2;
877
- /** Options for percentage discount type */
1674
+ /** Options for percentage discount type. */
878
1675
  percentageOptions?: PercentageDiscount$2;
879
1676
  }
880
1677
  /** @oneof */
@@ -885,27 +1682,33 @@ interface CouponScopeOrMinSubtotalOneOf$2 {
885
1682
  scope?: CouponScope$2;
886
1683
  }
887
1684
  declare enum DiscountType$2 {
1685
+ /** Unknown discount type. */
888
1686
  UNKNOWN = "UNKNOWN",
889
- /** Discount as a fixed amount */
1687
+ /** Discount as a fixed amount. */
890
1688
  FIXED_AMOUNT = "FIXED_AMOUNT",
891
- /** Discount as a percentage */
1689
+ /** Discount as a percentage. */
892
1690
  PERCENTAGE = "PERCENTAGE",
893
- /** Free shipping */
1691
+ /** Free shipping. */
894
1692
  FREE_SHIPPING = "FREE_SHIPPING"
895
1693
  }
896
1694
  interface FixedAmountDiscount$2 {
897
- /** Fixed amount to discount */
1695
+ /** Fixed amount to discount. */
898
1696
  amount?: number;
899
1697
  }
900
1698
  interface PercentageDiscount$2 {
1699
+ /** Percentage to discount. */
901
1700
  percentage?: number;
902
1701
  }
903
1702
  interface CouponScope$2 {
1703
+ /** Namespace of the coupon scope. */
904
1704
  namespace?: string;
1705
+ /** Group of the coupon scope. */
905
1706
  group?: Group$2;
906
1707
  }
907
1708
  interface Group$2 {
1709
+ /** Name of the group. */
908
1710
  name?: string;
1711
+ /** Entity ID of the group. */
909
1712
  entityId?: string | null;
910
1713
  }
911
1714
  interface LoyaltyPoints {
@@ -920,108 +1723,98 @@ interface LoyaltyPoints {
920
1723
  */
921
1724
  amount?: number;
922
1725
  }
1726
+ interface ReferredFriendSignupEventNonNullableFields {
1727
+ referredFriendId: string;
1728
+ }
1729
+ interface V1SuccessfulReferralEventNonNullableFields {
1730
+ referredFriendId: string;
1731
+ referringCustomerId: string;
1732
+ }
1733
+ interface V1TriggerNonNullableFields {
1734
+ appId: string;
1735
+ activityType: string;
1736
+ }
1737
+ interface V1ActionEventNonNullableFields {
1738
+ referredFriendId: string;
1739
+ referringCustomerId: string;
1740
+ trigger?: V1TriggerNonNullableFields;
1741
+ }
1742
+ interface RewardEventNonNullableFields {
1743
+ rewardedReferringCustomerId: string;
1744
+ rewardedReferredFriendId: string;
1745
+ referralRewardId: string;
1746
+ rewardType: Reward;
1747
+ }
1748
+ interface ReferralEventNonNullableFields {
1749
+ referredFriendSignupEvent?: ReferredFriendSignupEventNonNullableFields;
1750
+ successfulReferralEvent?: V1SuccessfulReferralEventNonNullableFields;
1751
+ actionEvent?: V1ActionEventNonNullableFields;
1752
+ rewardEvent?: RewardEventNonNullableFields;
1753
+ }
923
1754
  interface GetReferralEventResponseNonNullableFields {
924
- referralEvent?: {
925
- referredFriendSignupEvent?: {
926
- referredFriendId: string;
927
- };
928
- successfulReferralEvent?: {
929
- referredFriendId: string;
930
- referringCustomerId: string;
931
- };
932
- actionEvent?: {
933
- referredFriendId: string;
934
- referringCustomerId: string;
935
- trigger?: {
936
- appId: string;
937
- activityType: string;
938
- };
939
- };
940
- rewardEvent?: {
941
- rewardedReferringCustomerId: string;
942
- rewardedReferredFriendId: string;
943
- referralRewardId: string;
944
- rewardType: Reward;
945
- };
946
- };
1755
+ referralEvent?: ReferralEventNonNullableFields;
947
1756
  }
948
1757
  interface QueryReferralEventResponseNonNullableFields {
949
- referralEvents: {
950
- referredFriendSignupEvent?: {
951
- referredFriendId: string;
952
- };
953
- successfulReferralEvent?: {
954
- referredFriendId: string;
955
- referringCustomerId: string;
956
- };
957
- actionEvent?: {
958
- referredFriendId: string;
959
- referringCustomerId: string;
960
- trigger?: {
961
- appId: string;
962
- activityType: string;
963
- };
964
- };
965
- rewardEvent?: {
966
- rewardedReferringCustomerId: string;
967
- rewardedReferredFriendId: string;
968
- referralRewardId: string;
969
- rewardType: Reward;
970
- };
971
- }[];
1758
+ referralEvents: ReferralEventNonNullableFields[];
972
1759
  }
973
1760
  interface GetReferralStatisticsResponseNonNullableFields {
974
1761
  totalSignUpsCompleted: number;
975
1762
  totalActionsCompleted: number;
976
1763
  totalAmountGenerated: string;
977
1764
  }
1765
+ interface ReferringCustomerTotalNonNullableFields {
1766
+ referringCustomerId: string;
1767
+ contactId: string;
1768
+ totalSuccessfulReferrals: number;
1769
+ totalAmountGenerated: string;
1770
+ totalFriendsWithActions: number;
1771
+ }
978
1772
  interface QueryReferringCustomerTotalsResponseNonNullableFields {
979
- referringCustomerTotals: {
980
- referringCustomerId: string;
981
- contactId: string;
982
- totalSuccessfulReferrals: number;
983
- totalAmountGenerated: string;
984
- totalFriendsWithActions: number;
985
- }[];
1773
+ referringCustomerTotals: ReferringCustomerTotalNonNullableFields[];
1774
+ }
1775
+ interface FixedAmountDiscountNonNullableFields$2 {
1776
+ amount: number;
1777
+ }
1778
+ interface PercentageDiscountNonNullableFields$2 {
1779
+ percentage: number;
1780
+ }
1781
+ interface GroupNonNullableFields$2 {
1782
+ name: string;
1783
+ }
1784
+ interface CouponScopeNonNullableFields$2 {
1785
+ namespace: string;
1786
+ group?: GroupNonNullableFields$2;
1787
+ }
1788
+ interface CouponNonNullableFields$2 {
1789
+ fixedAmountOptions?: FixedAmountDiscountNonNullableFields$2;
1790
+ percentageOptions?: PercentageDiscountNonNullableFields$2;
1791
+ minimumSubtotal: number;
1792
+ scope?: CouponScopeNonNullableFields$2;
1793
+ name: string;
1794
+ discountType: DiscountType$2;
1795
+ }
1796
+ interface V1CouponNonNullableFields$2 {
1797
+ _id: string;
1798
+ code: string;
1799
+ status: Status$4;
1800
+ couponSpecification?: CouponNonNullableFields$2;
1801
+ }
1802
+ interface LoyaltyPointsNonNullableFields {
1803
+ transactionId: string;
1804
+ amount: number;
1805
+ }
1806
+ interface ReferredFriendActionNonNullableFields {
1807
+ coupon?: V1CouponNonNullableFields$2;
1808
+ loyaltyPoints?: LoyaltyPointsNonNullableFields;
1809
+ referredFriendId: string;
1810
+ contactId: string;
1811
+ trigger?: V1TriggerNonNullableFields;
1812
+ rewardType: Reward;
1813
+ totalActions: number;
1814
+ totalAmountSpent: string;
986
1815
  }
987
1816
  interface QueryReferredFriendActionsResponseNonNullableFields {
988
- referredFriendActions: {
989
- coupon?: {
990
- _id: string;
991
- code: string;
992
- status: Status$4;
993
- couponSpecification?: {
994
- fixedAmountOptions?: {
995
- amount: number;
996
- };
997
- percentageOptions?: {
998
- percentage: number;
999
- };
1000
- minimumSubtotal: number;
1001
- scope?: {
1002
- namespace: string;
1003
- group?: {
1004
- name: string;
1005
- };
1006
- };
1007
- name: string;
1008
- discountType: DiscountType$2;
1009
- };
1010
- };
1011
- loyaltyPoints?: {
1012
- transactionId: string;
1013
- amount: number;
1014
- };
1015
- referredFriendId: string;
1016
- contactId: string;
1017
- trigger?: {
1018
- appId: string;
1019
- activityType: string;
1020
- };
1021
- rewardType: Reward;
1022
- totalActions: number;
1023
- totalAmountSpent: string;
1024
- }[];
1817
+ referredFriendActions: ReferredFriendActionNonNullableFields[];
1025
1818
  }
1026
1819
 
1027
1820
  type __PublicMethodMetaInfo$3<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
@@ -1302,71 +2095,49 @@ interface Cursors$5 {
1302
2095
  /** Cursor pointing to the previous page in the list of results. */
1303
2096
  prev?: string | null;
1304
2097
  }
2098
+ interface FixedAmountDiscountNonNullableFields$1 {
2099
+ amount: number;
2100
+ }
2101
+ interface PercentageDiscountNonNullableFields$1 {
2102
+ percentage: number;
2103
+ }
2104
+ interface GroupNonNullableFields$1 {
2105
+ name: string;
2106
+ }
2107
+ interface CouponScopeNonNullableFields$1 {
2108
+ namespace: string;
2109
+ group?: GroupNonNullableFields$1;
2110
+ }
2111
+ interface CouponNonNullableFields$1 {
2112
+ fixedAmountOptions?: FixedAmountDiscountNonNullableFields$1;
2113
+ percentageOptions?: PercentageDiscountNonNullableFields$1;
2114
+ minimumSubtotal: number;
2115
+ scope?: CouponScopeNonNullableFields$1;
2116
+ name: string;
2117
+ discountType: DiscountType$1;
2118
+ }
2119
+ interface V1CouponNonNullableFields$1 {
2120
+ id: string;
2121
+ code: string;
2122
+ status: Status$3;
2123
+ couponSpecification?: CouponNonNullableFields$1;
2124
+ }
2125
+ interface V1LoyaltyPointsNonNullableFields$1 {
2126
+ transactionId: string;
2127
+ amount: number;
2128
+ }
2129
+ interface ReferralRewardNonNullableFields$1 {
2130
+ rewardedReferringCustomerId: string;
2131
+ rewardedReferredFriendId: string;
2132
+ coupon?: V1CouponNonNullableFields$1;
2133
+ loyaltyPoints?: V1LoyaltyPointsNonNullableFields$1;
2134
+ rewardType: RewardTypeType$1;
2135
+ }
1305
2136
  interface GetReferralRewardResponseNonNullableFields$1 {
1306
- referralReward?: {
1307
- rewardedReferringCustomerId: string;
1308
- rewardedReferredFriendId: string;
1309
- coupon?: {
1310
- id: string;
1311
- code: string;
1312
- status: Status$3;
1313
- couponSpecification?: {
1314
- fixedAmountOptions?: {
1315
- amount: number;
1316
- };
1317
- percentageOptions?: {
1318
- percentage: number;
1319
- };
1320
- minimumSubtotal: number;
1321
- scope?: {
1322
- namespace: string;
1323
- group?: {
1324
- name: string;
1325
- };
1326
- };
1327
- name: string;
1328
- discountType: DiscountType$1;
1329
- };
1330
- };
1331
- loyaltyPoints?: {
1332
- transactionId: string;
1333
- amount: number;
1334
- };
1335
- rewardType: RewardTypeType$1;
1336
- };
2137
+ referralReward?: ReferralRewardNonNullableFields$1;
1337
2138
  }
1338
2139
  interface QueryReferralRewardsResponseNonNullableFields$1 {
1339
- referralRewards: {
1340
- rewardedReferringCustomerId: string;
1341
- rewardedReferredFriendId: string;
1342
- coupon?: {
1343
- id: string;
1344
- code: string;
1345
- status: Status$3;
1346
- couponSpecification?: {
1347
- fixedAmountOptions?: {
1348
- amount: number;
1349
- };
1350
- percentageOptions?: {
1351
- percentage: number;
1352
- };
1353
- minimumSubtotal: number;
1354
- scope?: {
1355
- namespace: string;
1356
- group?: {
1357
- name: string;
1358
- };
1359
- };
1360
- name: string;
1361
- discountType: DiscountType$1;
1362
- };
1363
- };
1364
- loyaltyPoints?: {
1365
- transactionId: string;
1366
- amount: number;
1367
- };
1368
- rewardType: RewardTypeType$1;
1369
- }[];
2140
+ referralRewards: ReferralRewardNonNullableFields$1[];
1370
2141
  }
1371
2142
 
1372
2143
  /** ReferralReward is the main entity of ReferralRewards that can be used for lorem ipsum dolor */
@@ -1620,71 +2391,49 @@ interface Cursors$4 {
1620
2391
  /** Cursor pointing to the previous page in the list of results. */
1621
2392
  prev?: string | null;
1622
2393
  }
2394
+ interface FixedAmountDiscountNonNullableFields {
2395
+ amount: number;
2396
+ }
2397
+ interface PercentageDiscountNonNullableFields {
2398
+ percentage: number;
2399
+ }
2400
+ interface GroupNonNullableFields {
2401
+ name: string;
2402
+ }
2403
+ interface CouponScopeNonNullableFields {
2404
+ namespace: string;
2405
+ group?: GroupNonNullableFields;
2406
+ }
2407
+ interface CouponNonNullableFields {
2408
+ fixedAmountOptions?: FixedAmountDiscountNonNullableFields;
2409
+ percentageOptions?: PercentageDiscountNonNullableFields;
2410
+ minimumSubtotal: number;
2411
+ scope?: CouponScopeNonNullableFields;
2412
+ name: string;
2413
+ discountType: DiscountType;
2414
+ }
2415
+ interface V1CouponNonNullableFields {
2416
+ _id: string;
2417
+ code: string;
2418
+ status: Status$2;
2419
+ couponSpecification?: CouponNonNullableFields;
2420
+ }
2421
+ interface V1LoyaltyPointsNonNullableFields {
2422
+ transactionId: string;
2423
+ amount: number;
2424
+ }
2425
+ interface ReferralRewardNonNullableFields {
2426
+ rewardedReferringCustomerId: string;
2427
+ rewardedReferredFriendId: string;
2428
+ coupon?: V1CouponNonNullableFields;
2429
+ loyaltyPoints?: V1LoyaltyPointsNonNullableFields;
2430
+ rewardType: RewardTypeType;
2431
+ }
1623
2432
  interface GetReferralRewardResponseNonNullableFields {
1624
- referralReward?: {
1625
- rewardedReferringCustomerId: string;
1626
- rewardedReferredFriendId: string;
1627
- coupon?: {
1628
- _id: string;
1629
- code: string;
1630
- status: Status$2;
1631
- couponSpecification?: {
1632
- fixedAmountOptions?: {
1633
- amount: number;
1634
- };
1635
- percentageOptions?: {
1636
- percentage: number;
1637
- };
1638
- minimumSubtotal: number;
1639
- scope?: {
1640
- namespace: string;
1641
- group?: {
1642
- name: string;
1643
- };
1644
- };
1645
- name: string;
1646
- discountType: DiscountType;
1647
- };
1648
- };
1649
- loyaltyPoints?: {
1650
- transactionId: string;
1651
- amount: number;
1652
- };
1653
- rewardType: RewardTypeType;
1654
- };
2433
+ referralReward?: ReferralRewardNonNullableFields;
1655
2434
  }
1656
2435
  interface QueryReferralRewardsResponseNonNullableFields {
1657
- referralRewards: {
1658
- rewardedReferringCustomerId: string;
1659
- rewardedReferredFriendId: string;
1660
- coupon?: {
1661
- _id: string;
1662
- code: string;
1663
- status: Status$2;
1664
- couponSpecification?: {
1665
- fixedAmountOptions?: {
1666
- amount: number;
1667
- };
1668
- percentageOptions?: {
1669
- percentage: number;
1670
- };
1671
- minimumSubtotal: number;
1672
- scope?: {
1673
- namespace: string;
1674
- group?: {
1675
- name: string;
1676
- };
1677
- };
1678
- name: string;
1679
- discountType: DiscountType;
1680
- };
1681
- };
1682
- loyaltyPoints?: {
1683
- transactionId: string;
1684
- amount: number;
1685
- };
1686
- rewardType: RewardTypeType;
1687
- }[];
2436
+ referralRewards: ReferralRewardNonNullableFields[];
1688
2437
  }
1689
2438
 
1690
2439
  type __PublicMethodMetaInfo$2<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
@@ -1862,45 +2611,26 @@ interface Cursors$3 {
1862
2611
  /** Cursor pointing to the previous page in the list of results. */
1863
2612
  prev?: string | null;
1864
2613
  }
2614
+ interface ReferredFriendNonNullableFields$1 {
2615
+ id: string;
2616
+ contactId: string;
2617
+ referringCustomerId: string;
2618
+ status: Status$1;
2619
+ }
1865
2620
  interface CreateReferredFriendResponseNonNullableFields$1 {
1866
- referredFriend?: {
1867
- id: string;
1868
- contactId: string;
1869
- referringCustomerId: string;
1870
- status: Status$1;
1871
- };
2621
+ referredFriend?: ReferredFriendNonNullableFields$1;
1872
2622
  }
1873
2623
  interface GetReferredFriendResponseNonNullableFields$1 {
1874
- referredFriend?: {
1875
- id: string;
1876
- contactId: string;
1877
- referringCustomerId: string;
1878
- status: Status$1;
1879
- };
2624
+ referredFriend?: ReferredFriendNonNullableFields$1;
1880
2625
  }
1881
2626
  interface GetReferredFriendByContactIdResponseNonNullableFields$1 {
1882
- referredFriend?: {
1883
- id: string;
1884
- contactId: string;
1885
- referringCustomerId: string;
1886
- status: Status$1;
1887
- };
2627
+ referredFriend?: ReferredFriendNonNullableFields$1;
1888
2628
  }
1889
2629
  interface UpdateReferredFriendResponseNonNullableFields$1 {
1890
- referredFriend?: {
1891
- id: string;
1892
- contactId: string;
1893
- referringCustomerId: string;
1894
- status: Status$1;
1895
- };
2630
+ referredFriend?: ReferredFriendNonNullableFields$1;
1896
2631
  }
1897
2632
  interface QueryReferredFriendResponseNonNullableFields$1 {
1898
- referredFriends: {
1899
- id: string;
1900
- contactId: string;
1901
- referringCustomerId: string;
1902
- status: Status$1;
1903
- }[];
2633
+ referredFriends: ReferredFriendNonNullableFields$1[];
1904
2634
  }
1905
2635
 
1906
2636
  /** ReferredFriend is the main entity of ReferredFriends that can be used for lorem ipsum dolor */
@@ -2057,45 +2787,26 @@ interface Cursors$2 {
2057
2787
  /** Cursor pointing to the previous page in the list of results. */
2058
2788
  prev?: string | null;
2059
2789
  }
2790
+ interface ReferredFriendNonNullableFields {
2791
+ _id: string;
2792
+ contactId: string;
2793
+ referringCustomerId: string;
2794
+ status: Status;
2795
+ }
2060
2796
  interface CreateReferredFriendResponseNonNullableFields {
2061
- referredFriend?: {
2062
- _id: string;
2063
- contactId: string;
2064
- referringCustomerId: string;
2065
- status: Status;
2066
- };
2797
+ referredFriend?: ReferredFriendNonNullableFields;
2067
2798
  }
2068
2799
  interface GetReferredFriendResponseNonNullableFields {
2069
- referredFriend?: {
2070
- _id: string;
2071
- contactId: string;
2072
- referringCustomerId: string;
2073
- status: Status;
2074
- };
2800
+ referredFriend?: ReferredFriendNonNullableFields;
2075
2801
  }
2076
2802
  interface GetReferredFriendByContactIdResponseNonNullableFields {
2077
- referredFriend?: {
2078
- _id: string;
2079
- contactId: string;
2080
- referringCustomerId: string;
2081
- status: Status;
2082
- };
2803
+ referredFriend?: ReferredFriendNonNullableFields;
2083
2804
  }
2084
2805
  interface UpdateReferredFriendResponseNonNullableFields {
2085
- referredFriend?: {
2086
- _id: string;
2087
- contactId: string;
2088
- referringCustomerId: string;
2089
- status: Status;
2090
- };
2806
+ referredFriend?: ReferredFriendNonNullableFields;
2091
2807
  }
2092
2808
  interface QueryReferredFriendResponseNonNullableFields {
2093
- referredFriends: {
2094
- _id: string;
2095
- contactId: string;
2096
- referringCustomerId: string;
2097
- status: Status;
2098
- }[];
2809
+ referredFriends: ReferredFriendNonNullableFields[];
2099
2810
  }
2100
2811
 
2101
2812
  type __PublicMethodMetaInfo$1<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
@@ -2268,33 +2979,22 @@ interface DeleteReferringCustomerRequest$1 {
2268
2979
  }
2269
2980
  interface DeleteReferringCustomerResponse$1 {
2270
2981
  }
2982
+ interface ReferringCustomerNonNullableFields$1 {
2983
+ id: string;
2984
+ contactId: string;
2985
+ referralCode: string;
2986
+ }
2271
2987
  interface GenerateReferringCustomerForContactResponseNonNullableFields$1 {
2272
- referringCustomer?: {
2273
- id: string;
2274
- contactId: string;
2275
- referralCode: string;
2276
- };
2988
+ referringCustomer?: ReferringCustomerNonNullableFields$1;
2277
2989
  }
2278
2990
  interface GetReferringCustomerResponseNonNullableFields$1 {
2279
- referringCustomer?: {
2280
- id: string;
2281
- contactId: string;
2282
- referralCode: string;
2283
- };
2991
+ referringCustomer?: ReferringCustomerNonNullableFields$1;
2284
2992
  }
2285
2993
  interface GetReferringCustomerByReferralCodeResponseNonNullableFields$1 {
2286
- referringCustomer?: {
2287
- id: string;
2288
- contactId: string;
2289
- referralCode: string;
2290
- };
2994
+ referringCustomer?: ReferringCustomerNonNullableFields$1;
2291
2995
  }
2292
2996
  interface QueryReferringCustomersResponseNonNullableFields$1 {
2293
- referringCustomers: {
2294
- id: string;
2295
- contactId: string;
2296
- referralCode: string;
2297
- }[];
2997
+ referringCustomers: ReferringCustomerNonNullableFields$1[];
2298
2998
  }
2299
2999
 
2300
3000
  /** ReferringCustomer is the main entity of ReferringCustomers. */
@@ -2432,33 +3132,22 @@ interface DeleteReferringCustomerRequest {
2432
3132
  }
2433
3133
  interface DeleteReferringCustomerResponse {
2434
3134
  }
3135
+ interface ReferringCustomerNonNullableFields {
3136
+ _id: string;
3137
+ contactId: string;
3138
+ referralCode: string;
3139
+ }
2435
3140
  interface GenerateReferringCustomerForContactResponseNonNullableFields {
2436
- referringCustomer?: {
2437
- _id: string;
2438
- contactId: string;
2439
- referralCode: string;
2440
- };
3141
+ referringCustomer?: ReferringCustomerNonNullableFields;
2441
3142
  }
2442
3143
  interface GetReferringCustomerResponseNonNullableFields {
2443
- referringCustomer?: {
2444
- _id: string;
2445
- contactId: string;
2446
- referralCode: string;
2447
- };
3144
+ referringCustomer?: ReferringCustomerNonNullableFields;
2448
3145
  }
2449
3146
  interface GetReferringCustomerByReferralCodeResponseNonNullableFields {
2450
- referringCustomer?: {
2451
- _id: string;
2452
- contactId: string;
2453
- referralCode: string;
2454
- };
3147
+ referringCustomer?: ReferringCustomerNonNullableFields;
2455
3148
  }
2456
3149
  interface QueryReferringCustomersResponseNonNullableFields {
2457
- referringCustomers: {
2458
- _id: string;
2459
- contactId: string;
2460
- referralCode: string;
2461
- }[];
3150
+ referringCustomers: ReferringCustomerNonNullableFields[];
2462
3151
  }
2463
3152
 
2464
3153
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
@@ -2493,4 +3182,4 @@ declare namespace meta {
2493
3182
  export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_deleteReferringCustomer as deleteReferringCustomer, meta_generateReferringCustomerForContact as generateReferringCustomerForContact, meta_getReferringCustomer as getReferringCustomer, meta_getReferringCustomerByReferralCode as getReferringCustomerByReferralCode, meta_queryReferringCustomers as queryReferringCustomers };
2494
3183
  }
2495
3184
 
2496
- export { meta as customers, meta$1 as friends, meta$2 as rewards, meta$3 as tracker };
3185
+ export { meta as customers, meta$1 as friends, meta$4 as programs, meta$2 as rewards, meta$3 as tracker };