@wix/referral 1.0.6 → 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.
@@ -30,7 +30,7 @@ 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. */
@@ -184,26 +184,32 @@ interface QueryReferralProgramsRequest$1 {
184
184
  query: CursorQuery$9;
185
185
  }
186
186
  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`. */
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
+ */
188
192
  cursorPaging?: CursorPaging$9;
189
193
  /**
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`
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).
196
197
  */
197
198
  filter?: Record<string, any> | null;
198
199
  /**
199
- * Sort object in the following format:
200
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
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).
201
203
  */
202
204
  sort?: Sorting$9[];
203
205
  }
204
206
  /** @oneof */
205
207
  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`. */
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
+ */
207
213
  cursorPaging?: CursorPaging$9;
208
214
  }
209
215
  interface Sorting$9 {
@@ -307,302 +313,71 @@ interface GetReferralProgramPremiumFeaturesResponse$1 {
307
313
  */
308
314
  referralProgram?: boolean;
309
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
+ }
310
357
  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
- };
358
+ referralProgram?: ReferralProgramNonNullableFields$1;
366
359
  }
367
360
  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
- }[];
361
+ referralPrograms: ReferralProgramNonNullableFields$1[];
423
362
  }
424
363
  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
- };
364
+ referralProgram?: ReferralProgramNonNullableFields$1;
480
365
  }
481
366
  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
- };
367
+ referralProgram?: ReferralProgramNonNullableFields$1;
537
368
  }
538
369
  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
- };
370
+ referralProgram?: ReferralProgramNonNullableFields$1;
371
+ }
372
+ interface AISocialMediaPostSuggestionNonNullableFields$1 {
373
+ postContent: string;
374
+ hashtags: string[];
594
375
  }
595
376
  interface GetAISocialMediaPostsSuggestionsResponseNonNullableFields$1 {
596
- suggestions: {
597
- postContent: string;
598
- hashtags: string[];
599
- }[];
377
+ suggestions: AISocialMediaPostSuggestionNonNullableFields$1[];
600
378
  }
601
379
  interface GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields$1 {
602
- suggestions: {
603
- postContent: string;
604
- hashtags: string[];
605
- }[];
380
+ suggestions: AISocialMediaPostSuggestionNonNullableFields$1[];
606
381
  }
607
382
  interface GetReferralProgramPremiumFeaturesResponseNonNullableFields$1 {
608
383
  referralProgram: boolean;
@@ -640,7 +415,7 @@ interface ReferralProgram {
640
415
  * @readonly
641
416
  * @deprecated Set to true if user has required plan to activate program.
642
417
  * @replacedBy GetReferralProgramPremiumFeatures
643
- * @removalDate 2024-09-01
418
+ * @targetRemovalDate 2024-09-01
644
419
  */
645
420
  isPremium?: boolean;
646
421
  /** Emails configuration. */
@@ -794,26 +569,32 @@ interface QueryReferralProgramsRequest {
794
569
  query: CursorQuery$8;
795
570
  }
796
571
  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`. */
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
+ */
798
577
  cursorPaging?: CursorPaging$8;
799
578
  /**
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`
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).
806
582
  */
807
583
  filter?: Record<string, any> | null;
808
584
  /**
809
- * Sort object in the following format:
810
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
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).
811
588
  */
812
589
  sort?: Sorting$8[];
813
590
  }
814
591
  /** @oneof */
815
592
  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`. */
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
+ */
817
598
  cursorPaging?: CursorPaging$8;
818
599
  }
819
600
  interface Sorting$8 {
@@ -917,302 +698,71 @@ interface GetReferralProgramPremiumFeaturesResponse {
917
698
  */
918
699
  referralProgram?: boolean;
919
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
+ }
920
742
  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
- };
743
+ referralProgram?: ReferralProgramNonNullableFields;
976
744
  }
977
745
  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
- }[];
746
+ referralPrograms: ReferralProgramNonNullableFields[];
1033
747
  }
1034
748
  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
- };
749
+ referralProgram?: ReferralProgramNonNullableFields;
1090
750
  }
1091
751
  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
- };
752
+ referralProgram?: ReferralProgramNonNullableFields;
1147
753
  }
1148
754
  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
- };
755
+ referralProgram?: ReferralProgramNonNullableFields;
756
+ }
757
+ interface AISocialMediaPostSuggestionNonNullableFields {
758
+ postContent: string;
759
+ hashtags: string[];
1204
760
  }
1205
761
  interface GetAISocialMediaPostsSuggestionsResponseNonNullableFields {
1206
- suggestions: {
1207
- postContent: string;
1208
- hashtags: string[];
1209
- }[];
762
+ suggestions: AISocialMediaPostSuggestionNonNullableFields[];
1210
763
  }
1211
764
  interface GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields {
1212
- suggestions: {
1213
- postContent: string;
1214
- hashtags: string[];
1215
- }[];
765
+ suggestions: AISocialMediaPostSuggestionNonNullableFields[];
1216
766
  }
1217
767
  interface GetReferralProgramPremiumFeaturesResponseNonNullableFields {
1218
768
  referralProgram: boolean;
@@ -1664,108 +1214,98 @@ interface LoyaltyPoints$1 {
1664
1214
  */
1665
1215
  amount?: number;
1666
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
+ }
1667
1245
  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
- };
1246
+ referralEvent?: ReferralEventNonNullableFields$1;
1691
1247
  }
1692
1248
  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
- }[];
1249
+ referralEvents: ReferralEventNonNullableFields$1[];
1716
1250
  }
1717
1251
  interface GetReferralStatisticsResponseNonNullableFields$1 {
1718
1252
  totalSignUpsCompleted: number;
1719
1253
  totalActionsCompleted: number;
1720
1254
  totalAmountGenerated: string;
1721
1255
  }
1256
+ interface ReferringCustomerTotalNonNullableFields$1 {
1257
+ referringCustomerId: string;
1258
+ contactId: string;
1259
+ totalSuccessfulReferrals: number;
1260
+ totalAmountGenerated: string;
1261
+ totalFriendsWithActions: number;
1262
+ }
1722
1263
  interface QueryReferringCustomerTotalsResponseNonNullableFields$1 {
1723
- referringCustomerTotals: {
1724
- referringCustomerId: string;
1725
- contactId: string;
1726
- totalSuccessfulReferrals: number;
1727
- totalAmountGenerated: string;
1728
- totalFriendsWithActions: number;
1729
- }[];
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;
1730
1306
  }
1731
1307
  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
- }[];
1308
+ referredFriendActions: ReferredFriendActionNonNullableFields$1[];
1769
1309
  }
1770
1310
 
1771
1311
  /** ReferralEvent. */
@@ -2183,108 +1723,98 @@ interface LoyaltyPoints {
2183
1723
  */
2184
1724
  amount?: number;
2185
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
+ }
2186
1754
  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
- };
1755
+ referralEvent?: ReferralEventNonNullableFields;
2210
1756
  }
2211
1757
  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
- }[];
1758
+ referralEvents: ReferralEventNonNullableFields[];
2235
1759
  }
2236
1760
  interface GetReferralStatisticsResponseNonNullableFields {
2237
1761
  totalSignUpsCompleted: number;
2238
1762
  totalActionsCompleted: number;
2239
1763
  totalAmountGenerated: string;
2240
1764
  }
1765
+ interface ReferringCustomerTotalNonNullableFields {
1766
+ referringCustomerId: string;
1767
+ contactId: string;
1768
+ totalSuccessfulReferrals: number;
1769
+ totalAmountGenerated: string;
1770
+ totalFriendsWithActions: number;
1771
+ }
2241
1772
  interface QueryReferringCustomerTotalsResponseNonNullableFields {
2242
- referringCustomerTotals: {
2243
- referringCustomerId: string;
2244
- contactId: string;
2245
- totalSuccessfulReferrals: number;
2246
- totalAmountGenerated: string;
2247
- totalFriendsWithActions: number;
2248
- }[];
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;
2249
1815
  }
2250
1816
  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
- }[];
1817
+ referredFriendActions: ReferredFriendActionNonNullableFields[];
2288
1818
  }
2289
1819
 
2290
1820
  type __PublicMethodMetaInfo$3<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
@@ -2565,71 +2095,49 @@ interface Cursors$5 {
2565
2095
  /** Cursor pointing to the previous page in the list of results. */
2566
2096
  prev?: string | null;
2567
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
+ }
2568
2136
  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
- };
2137
+ referralReward?: ReferralRewardNonNullableFields$1;
2600
2138
  }
2601
2139
  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
- }[];
2140
+ referralRewards: ReferralRewardNonNullableFields$1[];
2633
2141
  }
2634
2142
 
2635
2143
  /** ReferralReward is the main entity of ReferralRewards that can be used for lorem ipsum dolor */
@@ -2883,71 +2391,49 @@ interface Cursors$4 {
2883
2391
  /** Cursor pointing to the previous page in the list of results. */
2884
2392
  prev?: string | null;
2885
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
+ }
2886
2432
  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
- };
2433
+ referralReward?: ReferralRewardNonNullableFields;
2918
2434
  }
2919
2435
  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
- }[];
2436
+ referralRewards: ReferralRewardNonNullableFields[];
2951
2437
  }
2952
2438
 
2953
2439
  type __PublicMethodMetaInfo$2<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
@@ -3125,45 +2611,26 @@ interface Cursors$3 {
3125
2611
  /** Cursor pointing to the previous page in the list of results. */
3126
2612
  prev?: string | null;
3127
2613
  }
2614
+ interface ReferredFriendNonNullableFields$1 {
2615
+ id: string;
2616
+ contactId: string;
2617
+ referringCustomerId: string;
2618
+ status: Status$1;
2619
+ }
3128
2620
  interface CreateReferredFriendResponseNonNullableFields$1 {
3129
- referredFriend?: {
3130
- id: string;
3131
- contactId: string;
3132
- referringCustomerId: string;
3133
- status: Status$1;
3134
- };
2621
+ referredFriend?: ReferredFriendNonNullableFields$1;
3135
2622
  }
3136
2623
  interface GetReferredFriendResponseNonNullableFields$1 {
3137
- referredFriend?: {
3138
- id: string;
3139
- contactId: string;
3140
- referringCustomerId: string;
3141
- status: Status$1;
3142
- };
2624
+ referredFriend?: ReferredFriendNonNullableFields$1;
3143
2625
  }
3144
2626
  interface GetReferredFriendByContactIdResponseNonNullableFields$1 {
3145
- referredFriend?: {
3146
- id: string;
3147
- contactId: string;
3148
- referringCustomerId: string;
3149
- status: Status$1;
3150
- };
2627
+ referredFriend?: ReferredFriendNonNullableFields$1;
3151
2628
  }
3152
2629
  interface UpdateReferredFriendResponseNonNullableFields$1 {
3153
- referredFriend?: {
3154
- id: string;
3155
- contactId: string;
3156
- referringCustomerId: string;
3157
- status: Status$1;
3158
- };
2630
+ referredFriend?: ReferredFriendNonNullableFields$1;
3159
2631
  }
3160
2632
  interface QueryReferredFriendResponseNonNullableFields$1 {
3161
- referredFriends: {
3162
- id: string;
3163
- contactId: string;
3164
- referringCustomerId: string;
3165
- status: Status$1;
3166
- }[];
2633
+ referredFriends: ReferredFriendNonNullableFields$1[];
3167
2634
  }
3168
2635
 
3169
2636
  /** ReferredFriend is the main entity of ReferredFriends that can be used for lorem ipsum dolor */
@@ -3320,45 +2787,26 @@ interface Cursors$2 {
3320
2787
  /** Cursor pointing to the previous page in the list of results. */
3321
2788
  prev?: string | null;
3322
2789
  }
2790
+ interface ReferredFriendNonNullableFields {
2791
+ _id: string;
2792
+ contactId: string;
2793
+ referringCustomerId: string;
2794
+ status: Status;
2795
+ }
3323
2796
  interface CreateReferredFriendResponseNonNullableFields {
3324
- referredFriend?: {
3325
- _id: string;
3326
- contactId: string;
3327
- referringCustomerId: string;
3328
- status: Status;
3329
- };
2797
+ referredFriend?: ReferredFriendNonNullableFields;
3330
2798
  }
3331
2799
  interface GetReferredFriendResponseNonNullableFields {
3332
- referredFriend?: {
3333
- _id: string;
3334
- contactId: string;
3335
- referringCustomerId: string;
3336
- status: Status;
3337
- };
2800
+ referredFriend?: ReferredFriendNonNullableFields;
3338
2801
  }
3339
2802
  interface GetReferredFriendByContactIdResponseNonNullableFields {
3340
- referredFriend?: {
3341
- _id: string;
3342
- contactId: string;
3343
- referringCustomerId: string;
3344
- status: Status;
3345
- };
2803
+ referredFriend?: ReferredFriendNonNullableFields;
3346
2804
  }
3347
2805
  interface UpdateReferredFriendResponseNonNullableFields {
3348
- referredFriend?: {
3349
- _id: string;
3350
- contactId: string;
3351
- referringCustomerId: string;
3352
- status: Status;
3353
- };
2806
+ referredFriend?: ReferredFriendNonNullableFields;
3354
2807
  }
3355
2808
  interface QueryReferredFriendResponseNonNullableFields {
3356
- referredFriends: {
3357
- _id: string;
3358
- contactId: string;
3359
- referringCustomerId: string;
3360
- status: Status;
3361
- }[];
2809
+ referredFriends: ReferredFriendNonNullableFields[];
3362
2810
  }
3363
2811
 
3364
2812
  type __PublicMethodMetaInfo$1<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
@@ -3531,33 +2979,22 @@ interface DeleteReferringCustomerRequest$1 {
3531
2979
  }
3532
2980
  interface DeleteReferringCustomerResponse$1 {
3533
2981
  }
2982
+ interface ReferringCustomerNonNullableFields$1 {
2983
+ id: string;
2984
+ contactId: string;
2985
+ referralCode: string;
2986
+ }
3534
2987
  interface GenerateReferringCustomerForContactResponseNonNullableFields$1 {
3535
- referringCustomer?: {
3536
- id: string;
3537
- contactId: string;
3538
- referralCode: string;
3539
- };
2988
+ referringCustomer?: ReferringCustomerNonNullableFields$1;
3540
2989
  }
3541
2990
  interface GetReferringCustomerResponseNonNullableFields$1 {
3542
- referringCustomer?: {
3543
- id: string;
3544
- contactId: string;
3545
- referralCode: string;
3546
- };
2991
+ referringCustomer?: ReferringCustomerNonNullableFields$1;
3547
2992
  }
3548
2993
  interface GetReferringCustomerByReferralCodeResponseNonNullableFields$1 {
3549
- referringCustomer?: {
3550
- id: string;
3551
- contactId: string;
3552
- referralCode: string;
3553
- };
2994
+ referringCustomer?: ReferringCustomerNonNullableFields$1;
3554
2995
  }
3555
2996
  interface QueryReferringCustomersResponseNonNullableFields$1 {
3556
- referringCustomers: {
3557
- id: string;
3558
- contactId: string;
3559
- referralCode: string;
3560
- }[];
2997
+ referringCustomers: ReferringCustomerNonNullableFields$1[];
3561
2998
  }
3562
2999
 
3563
3000
  /** ReferringCustomer is the main entity of ReferringCustomers. */
@@ -3695,33 +3132,22 @@ interface DeleteReferringCustomerRequest {
3695
3132
  }
3696
3133
  interface DeleteReferringCustomerResponse {
3697
3134
  }
3135
+ interface ReferringCustomerNonNullableFields {
3136
+ _id: string;
3137
+ contactId: string;
3138
+ referralCode: string;
3139
+ }
3698
3140
  interface GenerateReferringCustomerForContactResponseNonNullableFields {
3699
- referringCustomer?: {
3700
- _id: string;
3701
- contactId: string;
3702
- referralCode: string;
3703
- };
3141
+ referringCustomer?: ReferringCustomerNonNullableFields;
3704
3142
  }
3705
3143
  interface GetReferringCustomerResponseNonNullableFields {
3706
- referringCustomer?: {
3707
- _id: string;
3708
- contactId: string;
3709
- referralCode: string;
3710
- };
3144
+ referringCustomer?: ReferringCustomerNonNullableFields;
3711
3145
  }
3712
3146
  interface GetReferringCustomerByReferralCodeResponseNonNullableFields {
3713
- referringCustomer?: {
3714
- _id: string;
3715
- contactId: string;
3716
- referralCode: string;
3717
- };
3147
+ referringCustomer?: ReferringCustomerNonNullableFields;
3718
3148
  }
3719
3149
  interface QueryReferringCustomersResponseNonNullableFields {
3720
- referringCustomers: {
3721
- _id: string;
3722
- contactId: string;
3723
- referralCode: string;
3724
- }[];
3150
+ referringCustomers: ReferringCustomerNonNullableFields[];
3725
3151
  }
3726
3152
 
3727
3153
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {