@wix/referral 1.0.6 → 1.0.8

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.
@@ -30,11 +30,16 @@ interface ReferralProgram$1 {
30
30
  * @readonly
31
31
  * @deprecated Set to true if user has required plan to activate program.
32
32
  * @replacedBy GetReferralProgramPremiumFeatures
33
- * @removalDate 2024-09-01
33
+ * @targetRemovalDate 2024-09-01
34
34
  */
35
35
  isPremium?: boolean;
36
36
  /** Emails configuration. */
37
37
  emails?: Emails$1;
38
+ /**
39
+ * Information about available premium features
40
+ * @readonly
41
+ */
42
+ premiumFeatures?: PremiumFeatures$1;
38
43
  }
39
44
  declare enum ProgramStatus$1 {
40
45
  /** unknown status. */
@@ -173,6 +178,13 @@ declare enum App$1 {
173
178
  /** Wix restaurants. */
174
179
  RESTAURANTS = "RESTAURANTS"
175
180
  }
181
+ interface PremiumFeatures$1 {
182
+ /**
183
+ * Set to true if user has referral program feature.
184
+ * @readonly
185
+ */
186
+ referralProgram?: boolean;
187
+ }
176
188
  interface GetReferralProgramRequest$1 {
177
189
  }
178
190
  interface GetReferralProgramResponse$1 {
@@ -184,26 +196,32 @@ interface QueryReferralProgramsRequest$1 {
184
196
  query: CursorQuery$9;
185
197
  }
186
198
  interface CursorQuery$9 extends CursorQueryPagingMethodOneOf$9 {
187
- /** 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`. */
199
+ /**
200
+ * Cursor paging options.
201
+ *
202
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
203
+ */
188
204
  cursorPaging?: CursorPaging$9;
189
205
  /**
190
- * Filter object in the following format:
191
- * `"filter" : {
192
- * "fieldName1": "value1",
193
- * "fieldName2":{"$operator":"value2"}
194
- * }`
195
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
206
+ * Filter object.
207
+ *
208
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
196
209
  */
197
210
  filter?: Record<string, any> | null;
198
211
  /**
199
- * Sort object in the following format:
200
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
212
+ * Sort object.
213
+ *
214
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
201
215
  */
202
216
  sort?: Sorting$9[];
203
217
  }
204
218
  /** @oneof */
205
219
  interface CursorQueryPagingMethodOneOf$9 {
206
- /** 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`. */
220
+ /**
221
+ * Cursor paging options.
222
+ *
223
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
224
+ */
207
225
  cursorPaging?: CursorPaging$9;
208
226
  }
209
227
  interface Sorting$9 {
@@ -307,302 +325,75 @@ interface GetReferralProgramPremiumFeaturesResponse$1 {
307
325
  */
308
326
  referralProgram?: boolean;
309
327
  }
328
+ interface FixedAmountDiscountNonNullableFields$5 {
329
+ amount: number;
330
+ }
331
+ interface PercentageDiscountNonNullableFields$5 {
332
+ percentage: number;
333
+ }
334
+ interface GroupNonNullableFields$5 {
335
+ name: string;
336
+ }
337
+ interface CouponScopeNonNullableFields$5 {
338
+ namespace: string;
339
+ group?: GroupNonNullableFields$5;
340
+ }
341
+ interface CouponNonNullableFields$5 {
342
+ fixedAmountOptions?: FixedAmountDiscountNonNullableFields$5;
343
+ percentageOptions?: PercentageDiscountNonNullableFields$5;
344
+ minimumSubtotal: number;
345
+ scope?: CouponScopeNonNullableFields$5;
346
+ name: string;
347
+ discountType: DiscountType$5;
348
+ }
349
+ interface LoyaltyPointsNonNullableFields$3 {
350
+ amount: number;
351
+ }
352
+ interface RewardNonNullableFields$1 {
353
+ couponOptions?: CouponNonNullableFields$5;
354
+ loyaltyPointsOptions?: LoyaltyPointsNonNullableFields$3;
355
+ type: Type$1;
356
+ }
357
+ interface EmailsNonNullableFields$1 {
358
+ encourageToReferFriends: App$1[];
359
+ notifyCustomersAboutReward: boolean;
360
+ }
361
+ interface PremiumFeaturesNonNullableFields$1 {
362
+ referralProgram: boolean;
363
+ }
364
+ interface ReferralProgramNonNullableFields$1 {
365
+ status: ProgramStatus$1;
366
+ referredFriendReward?: RewardNonNullableFields$1;
367
+ referringCustomerReward?: RewardNonNullableFields$1;
368
+ successfulReferralActions: Action$1[];
369
+ isPremium: boolean;
370
+ emails?: EmailsNonNullableFields$1;
371
+ premiumFeatures?: PremiumFeaturesNonNullableFields$1;
372
+ }
310
373
  interface GetReferralProgramResponseNonNullableFields$1 {
311
- referralProgram?: {
312
- status: ProgramStatus$1;
313
- referredFriendReward?: {
314
- couponOptions?: {
315
- fixedAmountOptions?: {
316
- amount: number;
317
- };
318
- percentageOptions?: {
319
- percentage: number;
320
- };
321
- minimumSubtotal: number;
322
- scope?: {
323
- namespace: string;
324
- group?: {
325
- name: string;
326
- };
327
- };
328
- name: string;
329
- discountType: DiscountType$5;
330
- };
331
- loyaltyPointsOptions?: {
332
- amount: number;
333
- };
334
- type: Type$1;
335
- };
336
- referringCustomerReward?: {
337
- couponOptions?: {
338
- fixedAmountOptions?: {
339
- amount: number;
340
- };
341
- percentageOptions?: {
342
- percentage: number;
343
- };
344
- minimumSubtotal: number;
345
- scope?: {
346
- namespace: string;
347
- group?: {
348
- name: string;
349
- };
350
- };
351
- name: string;
352
- discountType: DiscountType$5;
353
- };
354
- loyaltyPointsOptions?: {
355
- amount: number;
356
- };
357
- type: Type$1;
358
- };
359
- successfulReferralActions: Action$1[];
360
- isPremium: boolean;
361
- emails?: {
362
- encourageToReferFriends: App$1[];
363
- notifyCustomersAboutReward: boolean;
364
- };
365
- };
374
+ referralProgram?: ReferralProgramNonNullableFields$1;
366
375
  }
367
376
  interface QueryReferralProgramsResponseNonNullableFields$1 {
368
- referralPrograms: {
369
- status: ProgramStatus$1;
370
- referredFriendReward?: {
371
- couponOptions?: {
372
- fixedAmountOptions?: {
373
- amount: number;
374
- };
375
- percentageOptions?: {
376
- percentage: number;
377
- };
378
- minimumSubtotal: number;
379
- scope?: {
380
- namespace: string;
381
- group?: {
382
- name: string;
383
- };
384
- };
385
- name: string;
386
- discountType: DiscountType$5;
387
- };
388
- loyaltyPointsOptions?: {
389
- amount: number;
390
- };
391
- type: Type$1;
392
- };
393
- referringCustomerReward?: {
394
- couponOptions?: {
395
- fixedAmountOptions?: {
396
- amount: number;
397
- };
398
- percentageOptions?: {
399
- percentage: number;
400
- };
401
- minimumSubtotal: number;
402
- scope?: {
403
- namespace: string;
404
- group?: {
405
- name: string;
406
- };
407
- };
408
- name: string;
409
- discountType: DiscountType$5;
410
- };
411
- loyaltyPointsOptions?: {
412
- amount: number;
413
- };
414
- type: Type$1;
415
- };
416
- successfulReferralActions: Action$1[];
417
- isPremium: boolean;
418
- emails?: {
419
- encourageToReferFriends: App$1[];
420
- notifyCustomersAboutReward: boolean;
421
- };
422
- }[];
377
+ referralPrograms: ReferralProgramNonNullableFields$1[];
423
378
  }
424
379
  interface UpdateReferralProgramResponseNonNullableFields$1 {
425
- referralProgram?: {
426
- status: ProgramStatus$1;
427
- referredFriendReward?: {
428
- couponOptions?: {
429
- fixedAmountOptions?: {
430
- amount: number;
431
- };
432
- percentageOptions?: {
433
- percentage: number;
434
- };
435
- minimumSubtotal: number;
436
- scope?: {
437
- namespace: string;
438
- group?: {
439
- name: string;
440
- };
441
- };
442
- name: string;
443
- discountType: DiscountType$5;
444
- };
445
- loyaltyPointsOptions?: {
446
- amount: number;
447
- };
448
- type: Type$1;
449
- };
450
- referringCustomerReward?: {
451
- couponOptions?: {
452
- fixedAmountOptions?: {
453
- amount: number;
454
- };
455
- percentageOptions?: {
456
- percentage: number;
457
- };
458
- minimumSubtotal: number;
459
- scope?: {
460
- namespace: string;
461
- group?: {
462
- name: string;
463
- };
464
- };
465
- name: string;
466
- discountType: DiscountType$5;
467
- };
468
- loyaltyPointsOptions?: {
469
- amount: number;
470
- };
471
- type: Type$1;
472
- };
473
- successfulReferralActions: Action$1[];
474
- isPremium: boolean;
475
- emails?: {
476
- encourageToReferFriends: App$1[];
477
- notifyCustomersAboutReward: boolean;
478
- };
479
- };
380
+ referralProgram?: ReferralProgramNonNullableFields$1;
480
381
  }
481
382
  interface ActivateReferralProgramResponseNonNullableFields$1 {
482
- referralProgram?: {
483
- status: ProgramStatus$1;
484
- referredFriendReward?: {
485
- couponOptions?: {
486
- fixedAmountOptions?: {
487
- amount: number;
488
- };
489
- percentageOptions?: {
490
- percentage: number;
491
- };
492
- minimumSubtotal: number;
493
- scope?: {
494
- namespace: string;
495
- group?: {
496
- name: string;
497
- };
498
- };
499
- name: string;
500
- discountType: DiscountType$5;
501
- };
502
- loyaltyPointsOptions?: {
503
- amount: number;
504
- };
505
- type: Type$1;
506
- };
507
- referringCustomerReward?: {
508
- couponOptions?: {
509
- fixedAmountOptions?: {
510
- amount: number;
511
- };
512
- percentageOptions?: {
513
- percentage: number;
514
- };
515
- minimumSubtotal: number;
516
- scope?: {
517
- namespace: string;
518
- group?: {
519
- name: string;
520
- };
521
- };
522
- name: string;
523
- discountType: DiscountType$5;
524
- };
525
- loyaltyPointsOptions?: {
526
- amount: number;
527
- };
528
- type: Type$1;
529
- };
530
- successfulReferralActions: Action$1[];
531
- isPremium: boolean;
532
- emails?: {
533
- encourageToReferFriends: App$1[];
534
- notifyCustomersAboutReward: boolean;
535
- };
536
- };
383
+ referralProgram?: ReferralProgramNonNullableFields$1;
537
384
  }
538
385
  interface PauseReferralProgramResponseNonNullableFields$1 {
539
- referralProgram?: {
540
- status: ProgramStatus$1;
541
- referredFriendReward?: {
542
- couponOptions?: {
543
- fixedAmountOptions?: {
544
- amount: number;
545
- };
546
- percentageOptions?: {
547
- percentage: number;
548
- };
549
- minimumSubtotal: number;
550
- scope?: {
551
- namespace: string;
552
- group?: {
553
- name: string;
554
- };
555
- };
556
- name: string;
557
- discountType: DiscountType$5;
558
- };
559
- loyaltyPointsOptions?: {
560
- amount: number;
561
- };
562
- type: Type$1;
563
- };
564
- referringCustomerReward?: {
565
- couponOptions?: {
566
- fixedAmountOptions?: {
567
- amount: number;
568
- };
569
- percentageOptions?: {
570
- percentage: number;
571
- };
572
- minimumSubtotal: number;
573
- scope?: {
574
- namespace: string;
575
- group?: {
576
- name: string;
577
- };
578
- };
579
- name: string;
580
- discountType: DiscountType$5;
581
- };
582
- loyaltyPointsOptions?: {
583
- amount: number;
584
- };
585
- type: Type$1;
586
- };
587
- successfulReferralActions: Action$1[];
588
- isPremium: boolean;
589
- emails?: {
590
- encourageToReferFriends: App$1[];
591
- notifyCustomersAboutReward: boolean;
592
- };
593
- };
386
+ referralProgram?: ReferralProgramNonNullableFields$1;
387
+ }
388
+ interface AISocialMediaPostSuggestionNonNullableFields$1 {
389
+ postContent: string;
390
+ hashtags: string[];
594
391
  }
595
392
  interface GetAISocialMediaPostsSuggestionsResponseNonNullableFields$1 {
596
- suggestions: {
597
- postContent: string;
598
- hashtags: string[];
599
- }[];
393
+ suggestions: AISocialMediaPostSuggestionNonNullableFields$1[];
600
394
  }
601
395
  interface GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields$1 {
602
- suggestions: {
603
- postContent: string;
604
- hashtags: string[];
605
- }[];
396
+ suggestions: AISocialMediaPostSuggestionNonNullableFields$1[];
606
397
  }
607
398
  interface GetReferralProgramPremiumFeaturesResponseNonNullableFields$1 {
608
399
  referralProgram: boolean;
@@ -640,11 +431,16 @@ interface ReferralProgram {
640
431
  * @readonly
641
432
  * @deprecated Set to true if user has required plan to activate program.
642
433
  * @replacedBy GetReferralProgramPremiumFeatures
643
- * @removalDate 2024-09-01
434
+ * @targetRemovalDate 2024-09-01
644
435
  */
645
436
  isPremium?: boolean;
646
437
  /** Emails configuration. */
647
438
  emails?: Emails;
439
+ /**
440
+ * Information about available premium features
441
+ * @readonly
442
+ */
443
+ premiumFeatures?: PremiumFeatures;
648
444
  }
649
445
  declare enum ProgramStatus {
650
446
  /** unknown status. */
@@ -783,6 +579,13 @@ declare enum App {
783
579
  /** Wix restaurants. */
784
580
  RESTAURANTS = "RESTAURANTS"
785
581
  }
582
+ interface PremiumFeatures {
583
+ /**
584
+ * Set to true if user has referral program feature.
585
+ * @readonly
586
+ */
587
+ referralProgram?: boolean;
588
+ }
786
589
  interface GetReferralProgramRequest {
787
590
  }
788
591
  interface GetReferralProgramResponse {
@@ -794,26 +597,32 @@ interface QueryReferralProgramsRequest {
794
597
  query: CursorQuery$8;
795
598
  }
796
599
  interface CursorQuery$8 extends CursorQueryPagingMethodOneOf$8 {
797
- /** 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`. */
600
+ /**
601
+ * Cursor paging options.
602
+ *
603
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
604
+ */
798
605
  cursorPaging?: CursorPaging$8;
799
606
  /**
800
- * Filter object in the following format:
801
- * `"filter" : {
802
- * "fieldName1": "value1",
803
- * "fieldName2":{"$operator":"value2"}
804
- * }`
805
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
607
+ * Filter object.
608
+ *
609
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
806
610
  */
807
611
  filter?: Record<string, any> | null;
808
612
  /**
809
- * Sort object in the following format:
810
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
613
+ * Sort object.
614
+ *
615
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
811
616
  */
812
617
  sort?: Sorting$8[];
813
618
  }
814
619
  /** @oneof */
815
620
  interface CursorQueryPagingMethodOneOf$8 {
816
- /** 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`. */
621
+ /**
622
+ * Cursor paging options.
623
+ *
624
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
625
+ */
817
626
  cursorPaging?: CursorPaging$8;
818
627
  }
819
628
  interface Sorting$8 {
@@ -917,302 +726,75 @@ interface GetReferralProgramPremiumFeaturesResponse {
917
726
  */
918
727
  referralProgram?: boolean;
919
728
  }
729
+ interface FixedAmountDiscountNonNullableFields$4 {
730
+ amount: number;
731
+ }
732
+ interface PercentageDiscountNonNullableFields$4 {
733
+ percentage: number;
734
+ }
735
+ interface GroupNonNullableFields$4 {
736
+ name: string;
737
+ }
738
+ interface CouponScopeNonNullableFields$4 {
739
+ namespace: string;
740
+ group?: GroupNonNullableFields$4;
741
+ }
742
+ interface CouponNonNullableFields$4 {
743
+ fixedAmountOptions?: FixedAmountDiscountNonNullableFields$4;
744
+ percentageOptions?: PercentageDiscountNonNullableFields$4;
745
+ minimumSubtotal: number;
746
+ scope?: CouponScopeNonNullableFields$4;
747
+ name: string;
748
+ discountType: DiscountType$4;
749
+ }
750
+ interface LoyaltyPointsNonNullableFields$2 {
751
+ amount: number;
752
+ }
753
+ interface RewardNonNullableFields {
754
+ couponOptions?: CouponNonNullableFields$4;
755
+ loyaltyPointsOptions?: LoyaltyPointsNonNullableFields$2;
756
+ type: Type;
757
+ }
758
+ interface EmailsNonNullableFields {
759
+ encourageToReferFriends: App[];
760
+ notifyCustomersAboutReward: boolean;
761
+ }
762
+ interface PremiumFeaturesNonNullableFields {
763
+ referralProgram: boolean;
764
+ }
765
+ interface ReferralProgramNonNullableFields {
766
+ status: ProgramStatus;
767
+ referredFriendReward?: RewardNonNullableFields;
768
+ referringCustomerReward?: RewardNonNullableFields;
769
+ successfulReferralActions: Action[];
770
+ isPremium: boolean;
771
+ emails?: EmailsNonNullableFields;
772
+ premiumFeatures?: PremiumFeaturesNonNullableFields;
773
+ }
920
774
  interface GetReferralProgramResponseNonNullableFields {
921
- referralProgram?: {
922
- status: ProgramStatus;
923
- referredFriendReward?: {
924
- couponOptions?: {
925
- fixedAmountOptions?: {
926
- amount: number;
927
- };
928
- percentageOptions?: {
929
- percentage: number;
930
- };
931
- minimumSubtotal: number;
932
- scope?: {
933
- namespace: string;
934
- group?: {
935
- name: string;
936
- };
937
- };
938
- name: string;
939
- discountType: DiscountType$4;
940
- };
941
- loyaltyPointsOptions?: {
942
- amount: number;
943
- };
944
- type: Type;
945
- };
946
- referringCustomerReward?: {
947
- couponOptions?: {
948
- fixedAmountOptions?: {
949
- amount: number;
950
- };
951
- percentageOptions?: {
952
- percentage: number;
953
- };
954
- minimumSubtotal: number;
955
- scope?: {
956
- namespace: string;
957
- group?: {
958
- name: string;
959
- };
960
- };
961
- name: string;
962
- discountType: DiscountType$4;
963
- };
964
- loyaltyPointsOptions?: {
965
- amount: number;
966
- };
967
- type: Type;
968
- };
969
- successfulReferralActions: Action[];
970
- isPremium: boolean;
971
- emails?: {
972
- encourageToReferFriends: App[];
973
- notifyCustomersAboutReward: boolean;
974
- };
975
- };
775
+ referralProgram?: ReferralProgramNonNullableFields;
976
776
  }
977
777
  interface QueryReferralProgramsResponseNonNullableFields {
978
- referralPrograms: {
979
- status: ProgramStatus;
980
- referredFriendReward?: {
981
- couponOptions?: {
982
- fixedAmountOptions?: {
983
- amount: number;
984
- };
985
- percentageOptions?: {
986
- percentage: number;
987
- };
988
- minimumSubtotal: number;
989
- scope?: {
990
- namespace: string;
991
- group?: {
992
- name: string;
993
- };
994
- };
995
- name: string;
996
- discountType: DiscountType$4;
997
- };
998
- loyaltyPointsOptions?: {
999
- amount: number;
1000
- };
1001
- type: Type;
1002
- };
1003
- referringCustomerReward?: {
1004
- couponOptions?: {
1005
- fixedAmountOptions?: {
1006
- amount: number;
1007
- };
1008
- percentageOptions?: {
1009
- percentage: number;
1010
- };
1011
- minimumSubtotal: number;
1012
- scope?: {
1013
- namespace: string;
1014
- group?: {
1015
- name: string;
1016
- };
1017
- };
1018
- name: string;
1019
- discountType: DiscountType$4;
1020
- };
1021
- loyaltyPointsOptions?: {
1022
- amount: number;
1023
- };
1024
- type: Type;
1025
- };
1026
- successfulReferralActions: Action[];
1027
- isPremium: boolean;
1028
- emails?: {
1029
- encourageToReferFriends: App[];
1030
- notifyCustomersAboutReward: boolean;
1031
- };
1032
- }[];
778
+ referralPrograms: ReferralProgramNonNullableFields[];
1033
779
  }
1034
780
  interface UpdateReferralProgramResponseNonNullableFields {
1035
- referralProgram?: {
1036
- status: ProgramStatus;
1037
- referredFriendReward?: {
1038
- couponOptions?: {
1039
- fixedAmountOptions?: {
1040
- amount: number;
1041
- };
1042
- percentageOptions?: {
1043
- percentage: number;
1044
- };
1045
- minimumSubtotal: number;
1046
- scope?: {
1047
- namespace: string;
1048
- group?: {
1049
- name: string;
1050
- };
1051
- };
1052
- name: string;
1053
- discountType: DiscountType$4;
1054
- };
1055
- loyaltyPointsOptions?: {
1056
- amount: number;
1057
- };
1058
- type: Type;
1059
- };
1060
- referringCustomerReward?: {
1061
- couponOptions?: {
1062
- fixedAmountOptions?: {
1063
- amount: number;
1064
- };
1065
- percentageOptions?: {
1066
- percentage: number;
1067
- };
1068
- minimumSubtotal: number;
1069
- scope?: {
1070
- namespace: string;
1071
- group?: {
1072
- name: string;
1073
- };
1074
- };
1075
- name: string;
1076
- discountType: DiscountType$4;
1077
- };
1078
- loyaltyPointsOptions?: {
1079
- amount: number;
1080
- };
1081
- type: Type;
1082
- };
1083
- successfulReferralActions: Action[];
1084
- isPremium: boolean;
1085
- emails?: {
1086
- encourageToReferFriends: App[];
1087
- notifyCustomersAboutReward: boolean;
1088
- };
1089
- };
781
+ referralProgram?: ReferralProgramNonNullableFields;
1090
782
  }
1091
783
  interface ActivateReferralProgramResponseNonNullableFields {
1092
- referralProgram?: {
1093
- status: ProgramStatus;
1094
- referredFriendReward?: {
1095
- couponOptions?: {
1096
- fixedAmountOptions?: {
1097
- amount: number;
1098
- };
1099
- percentageOptions?: {
1100
- percentage: number;
1101
- };
1102
- minimumSubtotal: number;
1103
- scope?: {
1104
- namespace: string;
1105
- group?: {
1106
- name: string;
1107
- };
1108
- };
1109
- name: string;
1110
- discountType: DiscountType$4;
1111
- };
1112
- loyaltyPointsOptions?: {
1113
- amount: number;
1114
- };
1115
- type: Type;
1116
- };
1117
- referringCustomerReward?: {
1118
- couponOptions?: {
1119
- fixedAmountOptions?: {
1120
- amount: number;
1121
- };
1122
- percentageOptions?: {
1123
- percentage: number;
1124
- };
1125
- minimumSubtotal: number;
1126
- scope?: {
1127
- namespace: string;
1128
- group?: {
1129
- name: string;
1130
- };
1131
- };
1132
- name: string;
1133
- discountType: DiscountType$4;
1134
- };
1135
- loyaltyPointsOptions?: {
1136
- amount: number;
1137
- };
1138
- type: Type;
1139
- };
1140
- successfulReferralActions: Action[];
1141
- isPremium: boolean;
1142
- emails?: {
1143
- encourageToReferFriends: App[];
1144
- notifyCustomersAboutReward: boolean;
1145
- };
1146
- };
784
+ referralProgram?: ReferralProgramNonNullableFields;
1147
785
  }
1148
786
  interface PauseReferralProgramResponseNonNullableFields {
1149
- referralProgram?: {
1150
- status: ProgramStatus;
1151
- referredFriendReward?: {
1152
- couponOptions?: {
1153
- fixedAmountOptions?: {
1154
- amount: number;
1155
- };
1156
- percentageOptions?: {
1157
- percentage: number;
1158
- };
1159
- minimumSubtotal: number;
1160
- scope?: {
1161
- namespace: string;
1162
- group?: {
1163
- name: string;
1164
- };
1165
- };
1166
- name: string;
1167
- discountType: DiscountType$4;
1168
- };
1169
- loyaltyPointsOptions?: {
1170
- amount: number;
1171
- };
1172
- type: Type;
1173
- };
1174
- referringCustomerReward?: {
1175
- couponOptions?: {
1176
- fixedAmountOptions?: {
1177
- amount: number;
1178
- };
1179
- percentageOptions?: {
1180
- percentage: number;
1181
- };
1182
- minimumSubtotal: number;
1183
- scope?: {
1184
- namespace: string;
1185
- group?: {
1186
- name: string;
1187
- };
1188
- };
1189
- name: string;
1190
- discountType: DiscountType$4;
1191
- };
1192
- loyaltyPointsOptions?: {
1193
- amount: number;
1194
- };
1195
- type: Type;
1196
- };
1197
- successfulReferralActions: Action[];
1198
- isPremium: boolean;
1199
- emails?: {
1200
- encourageToReferFriends: App[];
1201
- notifyCustomersAboutReward: boolean;
1202
- };
1203
- };
787
+ referralProgram?: ReferralProgramNonNullableFields;
788
+ }
789
+ interface AISocialMediaPostSuggestionNonNullableFields {
790
+ postContent: string;
791
+ hashtags: string[];
1204
792
  }
1205
793
  interface GetAISocialMediaPostsSuggestionsResponseNonNullableFields {
1206
- suggestions: {
1207
- postContent: string;
1208
- hashtags: string[];
1209
- }[];
794
+ suggestions: AISocialMediaPostSuggestionNonNullableFields[];
1210
795
  }
1211
796
  interface GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields {
1212
- suggestions: {
1213
- postContent: string;
1214
- hashtags: string[];
1215
- }[];
797
+ suggestions: AISocialMediaPostSuggestionNonNullableFields[];
1216
798
  }
1217
799
  interface GetReferralProgramPremiumFeaturesResponseNonNullableFields {
1218
800
  referralProgram: boolean;
@@ -1664,108 +1246,98 @@ interface LoyaltyPoints$1 {
1664
1246
  */
1665
1247
  amount?: number;
1666
1248
  }
1249
+ interface ReferredFriendSignupEventNonNullableFields$1 {
1250
+ referredFriendId: string;
1251
+ }
1252
+ interface V1SuccessfulReferralEventNonNullableFields$1 {
1253
+ referredFriendId: string;
1254
+ referringCustomerId: string;
1255
+ }
1256
+ interface V1TriggerNonNullableFields$1 {
1257
+ appId: string;
1258
+ activityType: string;
1259
+ }
1260
+ interface V1ActionEventNonNullableFields$1 {
1261
+ referredFriendId: string;
1262
+ referringCustomerId: string;
1263
+ trigger?: V1TriggerNonNullableFields$1;
1264
+ }
1265
+ interface RewardEventNonNullableFields$1 {
1266
+ rewardedReferringCustomerId: string;
1267
+ rewardedReferredFriendId: string;
1268
+ referralRewardId: string;
1269
+ rewardType: Reward$1;
1270
+ }
1271
+ interface ReferralEventNonNullableFields$1 {
1272
+ referredFriendSignupEvent?: ReferredFriendSignupEventNonNullableFields$1;
1273
+ successfulReferralEvent?: V1SuccessfulReferralEventNonNullableFields$1;
1274
+ actionEvent?: V1ActionEventNonNullableFields$1;
1275
+ rewardEvent?: RewardEventNonNullableFields$1;
1276
+ }
1667
1277
  interface GetReferralEventResponseNonNullableFields$1 {
1668
- referralEvent?: {
1669
- referredFriendSignupEvent?: {
1670
- referredFriendId: string;
1671
- };
1672
- successfulReferralEvent?: {
1673
- referredFriendId: string;
1674
- referringCustomerId: string;
1675
- };
1676
- actionEvent?: {
1677
- referredFriendId: string;
1678
- referringCustomerId: string;
1679
- trigger?: {
1680
- appId: string;
1681
- activityType: string;
1682
- };
1683
- };
1684
- rewardEvent?: {
1685
- rewardedReferringCustomerId: string;
1686
- rewardedReferredFriendId: string;
1687
- referralRewardId: string;
1688
- rewardType: Reward$1;
1689
- };
1690
- };
1278
+ referralEvent?: ReferralEventNonNullableFields$1;
1691
1279
  }
1692
1280
  interface QueryReferralEventResponseNonNullableFields$1 {
1693
- referralEvents: {
1694
- referredFriendSignupEvent?: {
1695
- referredFriendId: string;
1696
- };
1697
- successfulReferralEvent?: {
1698
- referredFriendId: string;
1699
- referringCustomerId: string;
1700
- };
1701
- actionEvent?: {
1702
- referredFriendId: string;
1703
- referringCustomerId: string;
1704
- trigger?: {
1705
- appId: string;
1706
- activityType: string;
1707
- };
1708
- };
1709
- rewardEvent?: {
1710
- rewardedReferringCustomerId: string;
1711
- rewardedReferredFriendId: string;
1712
- referralRewardId: string;
1713
- rewardType: Reward$1;
1714
- };
1715
- }[];
1281
+ referralEvents: ReferralEventNonNullableFields$1[];
1716
1282
  }
1717
1283
  interface GetReferralStatisticsResponseNonNullableFields$1 {
1718
1284
  totalSignUpsCompleted: number;
1719
1285
  totalActionsCompleted: number;
1720
1286
  totalAmountGenerated: string;
1721
1287
  }
1288
+ interface ReferringCustomerTotalNonNullableFields$1 {
1289
+ referringCustomerId: string;
1290
+ contactId: string;
1291
+ totalSuccessfulReferrals: number;
1292
+ totalAmountGenerated: string;
1293
+ totalFriendsWithActions: number;
1294
+ }
1722
1295
  interface QueryReferringCustomerTotalsResponseNonNullableFields$1 {
1723
- referringCustomerTotals: {
1724
- referringCustomerId: string;
1725
- contactId: string;
1726
- totalSuccessfulReferrals: number;
1727
- totalAmountGenerated: string;
1728
- totalFriendsWithActions: number;
1729
- }[];
1296
+ referringCustomerTotals: ReferringCustomerTotalNonNullableFields$1[];
1297
+ }
1298
+ interface FixedAmountDiscountNonNullableFields$3 {
1299
+ amount: number;
1300
+ }
1301
+ interface PercentageDiscountNonNullableFields$3 {
1302
+ percentage: number;
1303
+ }
1304
+ interface GroupNonNullableFields$3 {
1305
+ name: string;
1306
+ }
1307
+ interface CouponScopeNonNullableFields$3 {
1308
+ namespace: string;
1309
+ group?: GroupNonNullableFields$3;
1310
+ }
1311
+ interface CouponNonNullableFields$3 {
1312
+ fixedAmountOptions?: FixedAmountDiscountNonNullableFields$3;
1313
+ percentageOptions?: PercentageDiscountNonNullableFields$3;
1314
+ minimumSubtotal: number;
1315
+ scope?: CouponScopeNonNullableFields$3;
1316
+ name: string;
1317
+ discountType: DiscountType$3;
1318
+ }
1319
+ interface V1CouponNonNullableFields$3 {
1320
+ id: string;
1321
+ code: string;
1322
+ status: Status$5;
1323
+ couponSpecification?: CouponNonNullableFields$3;
1324
+ }
1325
+ interface LoyaltyPointsNonNullableFields$1 {
1326
+ transactionId: string;
1327
+ amount: number;
1328
+ }
1329
+ interface ReferredFriendActionNonNullableFields$1 {
1330
+ coupon?: V1CouponNonNullableFields$3;
1331
+ loyaltyPoints?: LoyaltyPointsNonNullableFields$1;
1332
+ referredFriendId: string;
1333
+ contactId: string;
1334
+ trigger?: V1TriggerNonNullableFields$1;
1335
+ rewardType: Reward$1;
1336
+ totalActions: number;
1337
+ totalAmountSpent: string;
1730
1338
  }
1731
1339
  interface QueryReferredFriendActionsResponseNonNullableFields$1 {
1732
- referredFriendActions: {
1733
- coupon?: {
1734
- id: string;
1735
- code: string;
1736
- status: Status$5;
1737
- couponSpecification?: {
1738
- fixedAmountOptions?: {
1739
- amount: number;
1740
- };
1741
- percentageOptions?: {
1742
- percentage: number;
1743
- };
1744
- minimumSubtotal: number;
1745
- scope?: {
1746
- namespace: string;
1747
- group?: {
1748
- name: string;
1749
- };
1750
- };
1751
- name: string;
1752
- discountType: DiscountType$3;
1753
- };
1754
- };
1755
- loyaltyPoints?: {
1756
- transactionId: string;
1757
- amount: number;
1758
- };
1759
- referredFriendId: string;
1760
- contactId: string;
1761
- trigger?: {
1762
- appId: string;
1763
- activityType: string;
1764
- };
1765
- rewardType: Reward$1;
1766
- totalActions: number;
1767
- totalAmountSpent: string;
1768
- }[];
1340
+ referredFriendActions: ReferredFriendActionNonNullableFields$1[];
1769
1341
  }
1770
1342
 
1771
1343
  /** ReferralEvent. */
@@ -2183,108 +1755,98 @@ interface LoyaltyPoints {
2183
1755
  */
2184
1756
  amount?: number;
2185
1757
  }
1758
+ interface ReferredFriendSignupEventNonNullableFields {
1759
+ referredFriendId: string;
1760
+ }
1761
+ interface V1SuccessfulReferralEventNonNullableFields {
1762
+ referredFriendId: string;
1763
+ referringCustomerId: string;
1764
+ }
1765
+ interface V1TriggerNonNullableFields {
1766
+ appId: string;
1767
+ activityType: string;
1768
+ }
1769
+ interface V1ActionEventNonNullableFields {
1770
+ referredFriendId: string;
1771
+ referringCustomerId: string;
1772
+ trigger?: V1TriggerNonNullableFields;
1773
+ }
1774
+ interface RewardEventNonNullableFields {
1775
+ rewardedReferringCustomerId: string;
1776
+ rewardedReferredFriendId: string;
1777
+ referralRewardId: string;
1778
+ rewardType: Reward;
1779
+ }
1780
+ interface ReferralEventNonNullableFields {
1781
+ referredFriendSignupEvent?: ReferredFriendSignupEventNonNullableFields;
1782
+ successfulReferralEvent?: V1SuccessfulReferralEventNonNullableFields;
1783
+ actionEvent?: V1ActionEventNonNullableFields;
1784
+ rewardEvent?: RewardEventNonNullableFields;
1785
+ }
2186
1786
  interface GetReferralEventResponseNonNullableFields {
2187
- referralEvent?: {
2188
- referredFriendSignupEvent?: {
2189
- referredFriendId: string;
2190
- };
2191
- successfulReferralEvent?: {
2192
- referredFriendId: string;
2193
- referringCustomerId: string;
2194
- };
2195
- actionEvent?: {
2196
- referredFriendId: string;
2197
- referringCustomerId: string;
2198
- trigger?: {
2199
- appId: string;
2200
- activityType: string;
2201
- };
2202
- };
2203
- rewardEvent?: {
2204
- rewardedReferringCustomerId: string;
2205
- rewardedReferredFriendId: string;
2206
- referralRewardId: string;
2207
- rewardType: Reward;
2208
- };
2209
- };
1787
+ referralEvent?: ReferralEventNonNullableFields;
2210
1788
  }
2211
1789
  interface QueryReferralEventResponseNonNullableFields {
2212
- referralEvents: {
2213
- referredFriendSignupEvent?: {
2214
- referredFriendId: string;
2215
- };
2216
- successfulReferralEvent?: {
2217
- referredFriendId: string;
2218
- referringCustomerId: string;
2219
- };
2220
- actionEvent?: {
2221
- referredFriendId: string;
2222
- referringCustomerId: string;
2223
- trigger?: {
2224
- appId: string;
2225
- activityType: string;
2226
- };
2227
- };
2228
- rewardEvent?: {
2229
- rewardedReferringCustomerId: string;
2230
- rewardedReferredFriendId: string;
2231
- referralRewardId: string;
2232
- rewardType: Reward;
2233
- };
2234
- }[];
1790
+ referralEvents: ReferralEventNonNullableFields[];
2235
1791
  }
2236
1792
  interface GetReferralStatisticsResponseNonNullableFields {
2237
1793
  totalSignUpsCompleted: number;
2238
1794
  totalActionsCompleted: number;
2239
1795
  totalAmountGenerated: string;
2240
1796
  }
1797
+ interface ReferringCustomerTotalNonNullableFields {
1798
+ referringCustomerId: string;
1799
+ contactId: string;
1800
+ totalSuccessfulReferrals: number;
1801
+ totalAmountGenerated: string;
1802
+ totalFriendsWithActions: number;
1803
+ }
2241
1804
  interface QueryReferringCustomerTotalsResponseNonNullableFields {
2242
- referringCustomerTotals: {
2243
- referringCustomerId: string;
2244
- contactId: string;
2245
- totalSuccessfulReferrals: number;
2246
- totalAmountGenerated: string;
2247
- totalFriendsWithActions: number;
2248
- }[];
1805
+ referringCustomerTotals: ReferringCustomerTotalNonNullableFields[];
1806
+ }
1807
+ interface FixedAmountDiscountNonNullableFields$2 {
1808
+ amount: number;
1809
+ }
1810
+ interface PercentageDiscountNonNullableFields$2 {
1811
+ percentage: number;
1812
+ }
1813
+ interface GroupNonNullableFields$2 {
1814
+ name: string;
1815
+ }
1816
+ interface CouponScopeNonNullableFields$2 {
1817
+ namespace: string;
1818
+ group?: GroupNonNullableFields$2;
1819
+ }
1820
+ interface CouponNonNullableFields$2 {
1821
+ fixedAmountOptions?: FixedAmountDiscountNonNullableFields$2;
1822
+ percentageOptions?: PercentageDiscountNonNullableFields$2;
1823
+ minimumSubtotal: number;
1824
+ scope?: CouponScopeNonNullableFields$2;
1825
+ name: string;
1826
+ discountType: DiscountType$2;
1827
+ }
1828
+ interface V1CouponNonNullableFields$2 {
1829
+ _id: string;
1830
+ code: string;
1831
+ status: Status$4;
1832
+ couponSpecification?: CouponNonNullableFields$2;
1833
+ }
1834
+ interface LoyaltyPointsNonNullableFields {
1835
+ transactionId: string;
1836
+ amount: number;
1837
+ }
1838
+ interface ReferredFriendActionNonNullableFields {
1839
+ coupon?: V1CouponNonNullableFields$2;
1840
+ loyaltyPoints?: LoyaltyPointsNonNullableFields;
1841
+ referredFriendId: string;
1842
+ contactId: string;
1843
+ trigger?: V1TriggerNonNullableFields;
1844
+ rewardType: Reward;
1845
+ totalActions: number;
1846
+ totalAmountSpent: string;
2249
1847
  }
2250
1848
  interface QueryReferredFriendActionsResponseNonNullableFields {
2251
- referredFriendActions: {
2252
- coupon?: {
2253
- _id: string;
2254
- code: string;
2255
- status: Status$4;
2256
- couponSpecification?: {
2257
- fixedAmountOptions?: {
2258
- amount: number;
2259
- };
2260
- percentageOptions?: {
2261
- percentage: number;
2262
- };
2263
- minimumSubtotal: number;
2264
- scope?: {
2265
- namespace: string;
2266
- group?: {
2267
- name: string;
2268
- };
2269
- };
2270
- name: string;
2271
- discountType: DiscountType$2;
2272
- };
2273
- };
2274
- loyaltyPoints?: {
2275
- transactionId: string;
2276
- amount: number;
2277
- };
2278
- referredFriendId: string;
2279
- contactId: string;
2280
- trigger?: {
2281
- appId: string;
2282
- activityType: string;
2283
- };
2284
- rewardType: Reward;
2285
- totalActions: number;
2286
- totalAmountSpent: string;
2287
- }[];
1849
+ referredFriendActions: ReferredFriendActionNonNullableFields[];
2288
1850
  }
2289
1851
 
2290
1852
  type __PublicMethodMetaInfo$3<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
@@ -2565,71 +2127,49 @@ interface Cursors$5 {
2565
2127
  /** Cursor pointing to the previous page in the list of results. */
2566
2128
  prev?: string | null;
2567
2129
  }
2130
+ interface FixedAmountDiscountNonNullableFields$1 {
2131
+ amount: number;
2132
+ }
2133
+ interface PercentageDiscountNonNullableFields$1 {
2134
+ percentage: number;
2135
+ }
2136
+ interface GroupNonNullableFields$1 {
2137
+ name: string;
2138
+ }
2139
+ interface CouponScopeNonNullableFields$1 {
2140
+ namespace: string;
2141
+ group?: GroupNonNullableFields$1;
2142
+ }
2143
+ interface CouponNonNullableFields$1 {
2144
+ fixedAmountOptions?: FixedAmountDiscountNonNullableFields$1;
2145
+ percentageOptions?: PercentageDiscountNonNullableFields$1;
2146
+ minimumSubtotal: number;
2147
+ scope?: CouponScopeNonNullableFields$1;
2148
+ name: string;
2149
+ discountType: DiscountType$1;
2150
+ }
2151
+ interface V1CouponNonNullableFields$1 {
2152
+ id: string;
2153
+ code: string;
2154
+ status: Status$3;
2155
+ couponSpecification?: CouponNonNullableFields$1;
2156
+ }
2157
+ interface V1LoyaltyPointsNonNullableFields$1 {
2158
+ transactionId: string;
2159
+ amount: number;
2160
+ }
2161
+ interface ReferralRewardNonNullableFields$1 {
2162
+ rewardedReferringCustomerId: string;
2163
+ rewardedReferredFriendId: string;
2164
+ coupon?: V1CouponNonNullableFields$1;
2165
+ loyaltyPoints?: V1LoyaltyPointsNonNullableFields$1;
2166
+ rewardType: RewardTypeType$1;
2167
+ }
2568
2168
  interface GetReferralRewardResponseNonNullableFields$1 {
2569
- referralReward?: {
2570
- rewardedReferringCustomerId: string;
2571
- rewardedReferredFriendId: string;
2572
- coupon?: {
2573
- id: string;
2574
- code: string;
2575
- status: Status$3;
2576
- couponSpecification?: {
2577
- fixedAmountOptions?: {
2578
- amount: number;
2579
- };
2580
- percentageOptions?: {
2581
- percentage: number;
2582
- };
2583
- minimumSubtotal: number;
2584
- scope?: {
2585
- namespace: string;
2586
- group?: {
2587
- name: string;
2588
- };
2589
- };
2590
- name: string;
2591
- discountType: DiscountType$1;
2592
- };
2593
- };
2594
- loyaltyPoints?: {
2595
- transactionId: string;
2596
- amount: number;
2597
- };
2598
- rewardType: RewardTypeType$1;
2599
- };
2169
+ referralReward?: ReferralRewardNonNullableFields$1;
2600
2170
  }
2601
2171
  interface QueryReferralRewardsResponseNonNullableFields$1 {
2602
- referralRewards: {
2603
- rewardedReferringCustomerId: string;
2604
- rewardedReferredFriendId: string;
2605
- coupon?: {
2606
- id: string;
2607
- code: string;
2608
- status: Status$3;
2609
- couponSpecification?: {
2610
- fixedAmountOptions?: {
2611
- amount: number;
2612
- };
2613
- percentageOptions?: {
2614
- percentage: number;
2615
- };
2616
- minimumSubtotal: number;
2617
- scope?: {
2618
- namespace: string;
2619
- group?: {
2620
- name: string;
2621
- };
2622
- };
2623
- name: string;
2624
- discountType: DiscountType$1;
2625
- };
2626
- };
2627
- loyaltyPoints?: {
2628
- transactionId: string;
2629
- amount: number;
2630
- };
2631
- rewardType: RewardTypeType$1;
2632
- }[];
2172
+ referralRewards: ReferralRewardNonNullableFields$1[];
2633
2173
  }
2634
2174
 
2635
2175
  /** ReferralReward is the main entity of ReferralRewards that can be used for lorem ipsum dolor */
@@ -2883,71 +2423,49 @@ interface Cursors$4 {
2883
2423
  /** Cursor pointing to the previous page in the list of results. */
2884
2424
  prev?: string | null;
2885
2425
  }
2426
+ interface FixedAmountDiscountNonNullableFields {
2427
+ amount: number;
2428
+ }
2429
+ interface PercentageDiscountNonNullableFields {
2430
+ percentage: number;
2431
+ }
2432
+ interface GroupNonNullableFields {
2433
+ name: string;
2434
+ }
2435
+ interface CouponScopeNonNullableFields {
2436
+ namespace: string;
2437
+ group?: GroupNonNullableFields;
2438
+ }
2439
+ interface CouponNonNullableFields {
2440
+ fixedAmountOptions?: FixedAmountDiscountNonNullableFields;
2441
+ percentageOptions?: PercentageDiscountNonNullableFields;
2442
+ minimumSubtotal: number;
2443
+ scope?: CouponScopeNonNullableFields;
2444
+ name: string;
2445
+ discountType: DiscountType;
2446
+ }
2447
+ interface V1CouponNonNullableFields {
2448
+ _id: string;
2449
+ code: string;
2450
+ status: Status$2;
2451
+ couponSpecification?: CouponNonNullableFields;
2452
+ }
2453
+ interface V1LoyaltyPointsNonNullableFields {
2454
+ transactionId: string;
2455
+ amount: number;
2456
+ }
2457
+ interface ReferralRewardNonNullableFields {
2458
+ rewardedReferringCustomerId: string;
2459
+ rewardedReferredFriendId: string;
2460
+ coupon?: V1CouponNonNullableFields;
2461
+ loyaltyPoints?: V1LoyaltyPointsNonNullableFields;
2462
+ rewardType: RewardTypeType;
2463
+ }
2886
2464
  interface GetReferralRewardResponseNonNullableFields {
2887
- referralReward?: {
2888
- rewardedReferringCustomerId: string;
2889
- rewardedReferredFriendId: string;
2890
- coupon?: {
2891
- _id: string;
2892
- code: string;
2893
- status: Status$2;
2894
- couponSpecification?: {
2895
- fixedAmountOptions?: {
2896
- amount: number;
2897
- };
2898
- percentageOptions?: {
2899
- percentage: number;
2900
- };
2901
- minimumSubtotal: number;
2902
- scope?: {
2903
- namespace: string;
2904
- group?: {
2905
- name: string;
2906
- };
2907
- };
2908
- name: string;
2909
- discountType: DiscountType;
2910
- };
2911
- };
2912
- loyaltyPoints?: {
2913
- transactionId: string;
2914
- amount: number;
2915
- };
2916
- rewardType: RewardTypeType;
2917
- };
2465
+ referralReward?: ReferralRewardNonNullableFields;
2918
2466
  }
2919
2467
  interface QueryReferralRewardsResponseNonNullableFields {
2920
- referralRewards: {
2921
- rewardedReferringCustomerId: string;
2922
- rewardedReferredFriendId: string;
2923
- coupon?: {
2924
- _id: string;
2925
- code: string;
2926
- status: Status$2;
2927
- couponSpecification?: {
2928
- fixedAmountOptions?: {
2929
- amount: number;
2930
- };
2931
- percentageOptions?: {
2932
- percentage: number;
2933
- };
2934
- minimumSubtotal: number;
2935
- scope?: {
2936
- namespace: string;
2937
- group?: {
2938
- name: string;
2939
- };
2940
- };
2941
- name: string;
2942
- discountType: DiscountType;
2943
- };
2944
- };
2945
- loyaltyPoints?: {
2946
- transactionId: string;
2947
- amount: number;
2948
- };
2949
- rewardType: RewardTypeType;
2950
- }[];
2468
+ referralRewards: ReferralRewardNonNullableFields[];
2951
2469
  }
2952
2470
 
2953
2471
  type __PublicMethodMetaInfo$2<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
@@ -3125,45 +2643,26 @@ interface Cursors$3 {
3125
2643
  /** Cursor pointing to the previous page in the list of results. */
3126
2644
  prev?: string | null;
3127
2645
  }
2646
+ interface ReferredFriendNonNullableFields$1 {
2647
+ id: string;
2648
+ contactId: string;
2649
+ referringCustomerId: string;
2650
+ status: Status$1;
2651
+ }
3128
2652
  interface CreateReferredFriendResponseNonNullableFields$1 {
3129
- referredFriend?: {
3130
- id: string;
3131
- contactId: string;
3132
- referringCustomerId: string;
3133
- status: Status$1;
3134
- };
2653
+ referredFriend?: ReferredFriendNonNullableFields$1;
3135
2654
  }
3136
2655
  interface GetReferredFriendResponseNonNullableFields$1 {
3137
- referredFriend?: {
3138
- id: string;
3139
- contactId: string;
3140
- referringCustomerId: string;
3141
- status: Status$1;
3142
- };
2656
+ referredFriend?: ReferredFriendNonNullableFields$1;
3143
2657
  }
3144
2658
  interface GetReferredFriendByContactIdResponseNonNullableFields$1 {
3145
- referredFriend?: {
3146
- id: string;
3147
- contactId: string;
3148
- referringCustomerId: string;
3149
- status: Status$1;
3150
- };
2659
+ referredFriend?: ReferredFriendNonNullableFields$1;
3151
2660
  }
3152
2661
  interface UpdateReferredFriendResponseNonNullableFields$1 {
3153
- referredFriend?: {
3154
- id: string;
3155
- contactId: string;
3156
- referringCustomerId: string;
3157
- status: Status$1;
3158
- };
2662
+ referredFriend?: ReferredFriendNonNullableFields$1;
3159
2663
  }
3160
2664
  interface QueryReferredFriendResponseNonNullableFields$1 {
3161
- referredFriends: {
3162
- id: string;
3163
- contactId: string;
3164
- referringCustomerId: string;
3165
- status: Status$1;
3166
- }[];
2665
+ referredFriends: ReferredFriendNonNullableFields$1[];
3167
2666
  }
3168
2667
 
3169
2668
  /** ReferredFriend is the main entity of ReferredFriends that can be used for lorem ipsum dolor */
@@ -3320,45 +2819,26 @@ interface Cursors$2 {
3320
2819
  /** Cursor pointing to the previous page in the list of results. */
3321
2820
  prev?: string | null;
3322
2821
  }
2822
+ interface ReferredFriendNonNullableFields {
2823
+ _id: string;
2824
+ contactId: string;
2825
+ referringCustomerId: string;
2826
+ status: Status;
2827
+ }
3323
2828
  interface CreateReferredFriendResponseNonNullableFields {
3324
- referredFriend?: {
3325
- _id: string;
3326
- contactId: string;
3327
- referringCustomerId: string;
3328
- status: Status;
3329
- };
2829
+ referredFriend?: ReferredFriendNonNullableFields;
3330
2830
  }
3331
2831
  interface GetReferredFriendResponseNonNullableFields {
3332
- referredFriend?: {
3333
- _id: string;
3334
- contactId: string;
3335
- referringCustomerId: string;
3336
- status: Status;
3337
- };
2832
+ referredFriend?: ReferredFriendNonNullableFields;
3338
2833
  }
3339
2834
  interface GetReferredFriendByContactIdResponseNonNullableFields {
3340
- referredFriend?: {
3341
- _id: string;
3342
- contactId: string;
3343
- referringCustomerId: string;
3344
- status: Status;
3345
- };
2835
+ referredFriend?: ReferredFriendNonNullableFields;
3346
2836
  }
3347
2837
  interface UpdateReferredFriendResponseNonNullableFields {
3348
- referredFriend?: {
3349
- _id: string;
3350
- contactId: string;
3351
- referringCustomerId: string;
3352
- status: Status;
3353
- };
2838
+ referredFriend?: ReferredFriendNonNullableFields;
3354
2839
  }
3355
2840
  interface QueryReferredFriendResponseNonNullableFields {
3356
- referredFriends: {
3357
- _id: string;
3358
- contactId: string;
3359
- referringCustomerId: string;
3360
- status: Status;
3361
- }[];
2841
+ referredFriends: ReferredFriendNonNullableFields[];
3362
2842
  }
3363
2843
 
3364
2844
  type __PublicMethodMetaInfo$1<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
@@ -3531,33 +3011,22 @@ interface DeleteReferringCustomerRequest$1 {
3531
3011
  }
3532
3012
  interface DeleteReferringCustomerResponse$1 {
3533
3013
  }
3014
+ interface ReferringCustomerNonNullableFields$1 {
3015
+ id: string;
3016
+ contactId: string;
3017
+ referralCode: string;
3018
+ }
3534
3019
  interface GenerateReferringCustomerForContactResponseNonNullableFields$1 {
3535
- referringCustomer?: {
3536
- id: string;
3537
- contactId: string;
3538
- referralCode: string;
3539
- };
3020
+ referringCustomer?: ReferringCustomerNonNullableFields$1;
3540
3021
  }
3541
3022
  interface GetReferringCustomerResponseNonNullableFields$1 {
3542
- referringCustomer?: {
3543
- id: string;
3544
- contactId: string;
3545
- referralCode: string;
3546
- };
3023
+ referringCustomer?: ReferringCustomerNonNullableFields$1;
3547
3024
  }
3548
3025
  interface GetReferringCustomerByReferralCodeResponseNonNullableFields$1 {
3549
- referringCustomer?: {
3550
- id: string;
3551
- contactId: string;
3552
- referralCode: string;
3553
- };
3026
+ referringCustomer?: ReferringCustomerNonNullableFields$1;
3554
3027
  }
3555
3028
  interface QueryReferringCustomersResponseNonNullableFields$1 {
3556
- referringCustomers: {
3557
- id: string;
3558
- contactId: string;
3559
- referralCode: string;
3560
- }[];
3029
+ referringCustomers: ReferringCustomerNonNullableFields$1[];
3561
3030
  }
3562
3031
 
3563
3032
  /** ReferringCustomer is the main entity of ReferringCustomers. */
@@ -3695,33 +3164,22 @@ interface DeleteReferringCustomerRequest {
3695
3164
  }
3696
3165
  interface DeleteReferringCustomerResponse {
3697
3166
  }
3167
+ interface ReferringCustomerNonNullableFields {
3168
+ _id: string;
3169
+ contactId: string;
3170
+ referralCode: string;
3171
+ }
3698
3172
  interface GenerateReferringCustomerForContactResponseNonNullableFields {
3699
- referringCustomer?: {
3700
- _id: string;
3701
- contactId: string;
3702
- referralCode: string;
3703
- };
3173
+ referringCustomer?: ReferringCustomerNonNullableFields;
3704
3174
  }
3705
3175
  interface GetReferringCustomerResponseNonNullableFields {
3706
- referringCustomer?: {
3707
- _id: string;
3708
- contactId: string;
3709
- referralCode: string;
3710
- };
3176
+ referringCustomer?: ReferringCustomerNonNullableFields;
3711
3177
  }
3712
3178
  interface GetReferringCustomerByReferralCodeResponseNonNullableFields {
3713
- referringCustomer?: {
3714
- _id: string;
3715
- contactId: string;
3716
- referralCode: string;
3717
- };
3179
+ referringCustomer?: ReferringCustomerNonNullableFields;
3718
3180
  }
3719
3181
  interface QueryReferringCustomersResponseNonNullableFields {
3720
- referringCustomers: {
3721
- _id: string;
3722
- contactId: string;
3723
- referralCode: string;
3724
- }[];
3182
+ referringCustomers: ReferringCustomerNonNullableFields[];
3725
3183
  }
3726
3184
 
3727
3185
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {