@wix/referral 1.0.12 → 1.0.14

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.
@@ -2,16 +2,21 @@ interface ReferralProgram$1 {
2
2
  /** Referral program name. */
3
3
  name?: string | null;
4
4
  /**
5
- * The status of the referral program. Possible values:
5
+ * Status of the referral program.
6
6
  *
7
- * - `UNKNOWN`: Status is unknown. This value is never used.
8
- * - `DRAFT`: Referral program is in a draft state and is currently being modified. Not yet active.
9
- * - `ACTIVE`: Referral program is active.
10
- * - `PAUSED`: Referral program is paused.
7
+ * Possible values:
8
+ *
9
+ * - `UNKNOWN`: The status of the referral program is unknown. This value is not used.
10
+ * - `DRAFT`: The referral program is in a draft state and is being modified. It is not yet active.
11
+ * - `ACTIVE`: The referral program is active.
12
+ * - `PAUSED`: The referral program is paused.
11
13
  * @readonly
12
14
  */
13
15
  status?: ProgramStatus$1;
14
- /** Revision number, which increments by 1 each time the program is updated. To prevent conflicting changes, the current `revision` must be passed when updating the program. */
16
+ /**
17
+ * Revision number, which increments by 1 each time the program is updated.
18
+ * To prevent conflicting changes, the current `revision` must be passed when updating the program.
19
+ */
15
20
  revision?: string | null;
16
21
  /**
17
22
  * Date and time the program was created.
@@ -19,7 +24,7 @@ interface ReferralProgram$1 {
19
24
  */
20
25
  createdDate?: Date;
21
26
  /**
22
- * Date and time the program was updated.
27
+ * Date and time the program was last updated.
23
28
  * @readonly
24
29
  */
25
30
  updatedDate?: Date;
@@ -34,7 +39,7 @@ interface ReferralProgram$1 {
34
39
  */
35
40
  referringCustomerReward?: Reward$3;
36
41
  /**
37
- * A list of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an order.
42
+ * List of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an order.
38
43
  *
39
44
  * Possible values:
40
45
  *
@@ -48,8 +53,12 @@ interface ReferralProgram$1 {
48
53
  successfulReferralActions?: Action$1[];
49
54
  /**
50
55
  * Whether the user has the required plan to use the referral program.
56
+ *
57
+ * Deprecated: Use `[GetReferralProgramPremiumFeatures](https://dev.wix.com/docs/velo/api-reference/wix-marketing-v2/referral-program/programs/get-referral-program-premium-features)` instead.
51
58
  * @readonly
52
59
  * @deprecated Whether the user has the required plan to use the referral program.
60
+ *
61
+ * Deprecated: Use `[GetReferralProgramPremiumFeatures](https://dev.wix.com/docs/velo/api-reference/wix-marketing-v2/referral-program/programs/get-referral-program-premium-features)` instead.
53
62
  * @replacedBy GetReferralProgramPremiumFeatures
54
63
  * @targetRemovalDate 2024-09-01
55
64
  */
@@ -200,7 +209,7 @@ declare enum Action$1 {
200
209
  }
201
210
  interface Emails$1 {
202
211
  /**
203
- * Encourage customers to refer their friends via email. Select which apps to enable.
212
+ * Configures email invitations to encourage customers to refer their friends. Select the apps for which this feature is enabled.
204
213
  *
205
214
  * Available apps:
206
215
  *
@@ -231,7 +240,7 @@ declare enum App$1 {
231
240
  }
232
241
  interface PremiumFeatures$1 {
233
242
  /**
234
- * Whether the user has the referral program feature.
243
+ * Whether the user has access to the referral program feature.
235
244
  * @readonly
236
245
  */
237
246
  referralProgram?: boolean;
@@ -454,16 +463,21 @@ interface ReferralProgram {
454
463
  /** Referral program name. */
455
464
  name?: string | null;
456
465
  /**
457
- * The status of the referral program. Possible values:
466
+ * Status of the referral program.
458
467
  *
459
- * - `UNKNOWN`: Status is unknown. This value is never used.
460
- * - `DRAFT`: Referral program is in a draft state and is currently being modified. Not yet active.
461
- * - `ACTIVE`: Referral program is active.
462
- * - `PAUSED`: Referral program is paused.
468
+ * Possible values:
469
+ *
470
+ * - `UNKNOWN`: The status of the referral program is unknown. This value is not used.
471
+ * - `DRAFT`: The referral program is in a draft state and is being modified. It is not yet active.
472
+ * - `ACTIVE`: The referral program is active.
473
+ * - `PAUSED`: The referral program is paused.
463
474
  * @readonly
464
475
  */
465
476
  status?: ProgramStatus;
466
- /** Revision number, which increments by 1 each time the program is updated. To prevent conflicting changes, the current `revision` must be passed when updating the program. */
477
+ /**
478
+ * Revision number, which increments by 1 each time the program is updated.
479
+ * To prevent conflicting changes, the current `revision` must be passed when updating the program.
480
+ */
467
481
  revision?: string | null;
468
482
  /**
469
483
  * Date and time the program was created.
@@ -471,7 +485,7 @@ interface ReferralProgram {
471
485
  */
472
486
  _createdDate?: Date;
473
487
  /**
474
- * Date and time the program was updated.
488
+ * Date and time the program was last updated.
475
489
  * @readonly
476
490
  */
477
491
  _updatedDate?: Date;
@@ -486,7 +500,7 @@ interface ReferralProgram {
486
500
  */
487
501
  referringCustomerReward?: Reward$2;
488
502
  /**
489
- * A list of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an order.
503
+ * List of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an order.
490
504
  *
491
505
  * Possible values:
492
506
  *
@@ -500,8 +514,12 @@ interface ReferralProgram {
500
514
  successfulReferralActions?: Action[];
501
515
  /**
502
516
  * Whether the user has the required plan to use the referral program.
517
+ *
518
+ * Deprecated: Use `[GetReferralProgramPremiumFeatures](https://dev.wix.com/docs/velo/api-reference/wix-marketing-v2/referral-program/programs/get-referral-program-premium-features)` instead.
503
519
  * @readonly
504
520
  * @deprecated Whether the user has the required plan to use the referral program.
521
+ *
522
+ * Deprecated: Use `[GetReferralProgramPremiumFeatures](https://dev.wix.com/docs/velo/api-reference/wix-marketing-v2/referral-program/programs/get-referral-program-premium-features)` instead.
505
523
  * @replacedBy GetReferralProgramPremiumFeatures
506
524
  * @targetRemovalDate 2024-09-01
507
525
  */
@@ -652,7 +670,7 @@ declare enum Action {
652
670
  }
653
671
  interface Emails {
654
672
  /**
655
- * Encourage customers to refer their friends via email. Select which apps to enable.
673
+ * Configures email invitations to encourage customers to refer their friends. Select the apps for which this feature is enabled.
656
674
  *
657
675
  * Available apps:
658
676
  *
@@ -683,7 +701,7 @@ declare enum App {
683
701
  }
684
702
  interface PremiumFeatures {
685
703
  /**
686
- * Whether the user has the referral program feature.
704
+ * Whether the user has access to the referral program feature.
687
705
  * @readonly
688
706
  */
689
707
  referralProgram?: boolean;
@@ -934,106 +952,109 @@ declare namespace meta$4 {
934
952
  }
935
953
 
936
954
  interface ReferralEvent$1 extends ReferralEventEventTypeOneOf$1 {
937
- /** ReferredFriendSignupEvent is an event that is triggered when a referred friend signs up. */
955
+ /** Event triggered when a referred friend signs up. */
938
956
  referredFriendSignupEvent?: ReferredFriendSignupEvent$1;
939
- /** SuccessfulReferralEvent is an event that is triggered when a referral is successful. */
957
+ /** Event triggered when a referral is successful. For example, customer places and pays for an order. */
940
958
  successfulReferralEvent?: V1SuccessfulReferralEvent$1;
941
- /** ActionEvent is an event that is triggered when an action is performed. */
959
+ /** Event triggered when an action is performed. For example, placing an order. */
942
960
  actionEvent?: V1ActionEvent$1;
943
- /** RewardEvent is an event that is triggered when a reward is given. */
961
+ /** Event triggered when a reward is given. */
944
962
  rewardEvent?: RewardEvent$1;
945
963
  /**
946
- * ReferralEvent ID.
964
+ * Referral event ID.
947
965
  * @readonly
948
966
  */
949
967
  id?: string | null;
950
- /** Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision. */
968
+ /**
969
+ * Revision number, which increments by 1 each time the referral event is updated.
970
+ * To prevent conflicting changes, the current revision must be passed when updating the referral event.
971
+ */
951
972
  revision?: string | null;
952
973
  /**
953
- * Represents the time this ReferralEvent was created.
974
+ * Date and time the referral event was created.
954
975
  * @readonly
955
976
  */
956
977
  createdDate?: Date;
957
978
  /**
958
- * Represents the time this ReferralEvent was last updated.
979
+ * Date and time the referral event was last updated.
959
980
  * @readonly
960
981
  */
961
982
  updatedDate?: Date;
962
983
  }
963
984
  /** @oneof */
964
985
  interface ReferralEventEventTypeOneOf$1 {
965
- /** ReferredFriendSignupEvent is an event that is triggered when a referred friend signs up. */
986
+ /** Event triggered when a referred friend signs up. */
966
987
  referredFriendSignupEvent?: ReferredFriendSignupEvent$1;
967
- /** SuccessfulReferralEvent is an event that is triggered when a referral is successful. */
988
+ /** Event triggered when a referral is successful. For example, customer places and pays for an order. */
968
989
  successfulReferralEvent?: V1SuccessfulReferralEvent$1;
969
- /** ActionEvent is an event that is triggered when an action is performed. */
990
+ /** Event triggered when an action is performed. For example, placing an order. */
970
991
  actionEvent?: V1ActionEvent$1;
971
- /** RewardEvent is an event that is triggered when a reward is given. */
992
+ /** Event triggered when a reward is given. */
972
993
  rewardEvent?: RewardEvent$1;
973
994
  }
974
995
  interface ReferredFriendSignupEvent$1 {
975
- /** The referred friend ID. */
996
+ /** ID of the referred friend */
976
997
  referredFriendId?: string;
977
998
  }
978
999
  interface V1SuccessfulReferralEvent$1 {
979
- /** The referred friend ID. */
1000
+ /** ID of the referred friend */
980
1001
  referredFriendId?: string;
981
- /** The referring customer ID. */
1002
+ /** ID of the referring customer */
982
1003
  referringCustomerId?: string;
983
1004
  }
984
1005
  interface V1ActionEvent$1 {
985
- /** The referred friend ID. */
1006
+ /** ID of the referred friend */
986
1007
  referredFriendId?: string;
987
- /** The referring customer ID. */
1008
+ /** ID of the referring customer */
988
1009
  referringCustomerId?: string;
989
- /** The trigger of the action. */
1010
+ /** Trigger for the action */
990
1011
  trigger?: V1Trigger$1;
991
- /** Amount. */
1012
+ /** Amount associated with the action. */
992
1013
  amount?: string | null;
993
- /** Currency. */
1014
+ /** Currency of the amount. */
994
1015
  currency?: string | null;
995
- /** Order ID. */
1016
+ /** ID of the associated order. */
996
1017
  orderId?: string | null;
997
1018
  }
998
1019
  interface V1Trigger$1 {
999
- /** The app id of the app that triggered the event. */
1020
+ /** ID of the app that triggered the event */
1000
1021
  appId?: string;
1001
- /** The activity type that triggered the event. */
1022
+ /** Type of activity that triggered the event */
1002
1023
  activityType?: string;
1003
1024
  }
1004
1025
  interface RewardEvent$1 extends RewardEventReceiverOneOf$1 {
1005
1026
  /**
1006
- * The referring customer ID.
1027
+ * ID of the rewarded referring customer.
1007
1028
  * @readonly
1008
1029
  */
1009
1030
  rewardedReferringCustomerId?: string;
1010
1031
  /**
1011
- * The referred friend ID.
1032
+ * ID of the rewarded referred friend.
1012
1033
  * @readonly
1013
1034
  */
1014
1035
  rewardedReferredFriendId?: string;
1015
- /** The referral reward ID. */
1036
+ /** ID of the referral reward. */
1016
1037
  referralRewardId?: string;
1017
- /** The reward type. */
1038
+ /** Type of reward. */
1018
1039
  rewardType?: Reward$1;
1019
1040
  }
1020
1041
  /** @oneof */
1021
1042
  interface RewardEventReceiverOneOf$1 {
1022
1043
  /**
1023
- * The referring customer ID.
1044
+ * ID of the rewarded referring customer.
1024
1045
  * @readonly
1025
1046
  */
1026
1047
  rewardedReferringCustomerId?: string;
1027
1048
  /**
1028
- * The referred friend ID.
1049
+ * ID of the rewarded referred friend.
1029
1050
  * @readonly
1030
1051
  */
1031
1052
  rewardedReferredFriendId?: string;
1032
1053
  }
1033
1054
  declare enum Reward$1 {
1034
- /** Unknown reward type. */
1055
+ /** Unknown reward. This field is not used. */
1035
1056
  UNKNOWN = "UNKNOWN",
1036
- /** Reward is a coupon. */
1057
+ /** Reward is a coupon */
1037
1058
  COUPON = "COUPON",
1038
1059
  /** Reward is loyalty points. */
1039
1060
  LOYALTY_POINTS = "LOYALTY_POINTS",
@@ -1041,15 +1062,15 @@ declare enum Reward$1 {
1041
1062
  NOTHING = "NOTHING"
1042
1063
  }
1043
1064
  interface GetReferralEventRequest$1 {
1044
- /** Id of the ReferralEvent to retrieve */
1065
+ /** ID of the referral event to retrieve. */
1045
1066
  referralEventId: string;
1046
1067
  }
1047
1068
  interface GetReferralEventResponse$1 {
1048
- /** The retrieved ReferralEvent */
1069
+ /** Retrieved referral event. */
1049
1070
  referralEvent?: ReferralEvent$1;
1050
1071
  }
1051
1072
  interface QueryReferralEventRequest$1 {
1052
- /** Query to filter ReferralEvents. */
1073
+ /** Query to filter referral events */
1053
1074
  query: CursorQuery$7;
1054
1075
  }
1055
1076
  interface CursorQuery$7 extends CursorQueryPagingMethodOneOf$7 {
@@ -1103,9 +1124,9 @@ interface CursorPaging$7 {
1103
1124
  cursor?: string | null;
1104
1125
  }
1105
1126
  interface QueryReferralEventResponse$1 {
1106
- /** List of ReferralEvents that match the query. */
1127
+ /** List of referral events. */
1107
1128
  referralEvents?: ReferralEvent$1[];
1108
- /** Paging metadata. */
1129
+ /** Metadata for the paginated results. */
1109
1130
  metadata?: CursorPagingMetadata$7;
1110
1131
  }
1111
1132
  interface CursorPagingMetadata$7 {
@@ -1130,72 +1151,71 @@ interface Cursors$7 {
1130
1151
  interface GetReferralStatisticsRequest$1 {
1131
1152
  }
1132
1153
  interface GetReferralStatisticsResponse$1 {
1133
- /** Total sign ups completed by referred friends */
1154
+ /** Total number of sign-ups completed by referred friends. */
1134
1155
  totalSignUpsCompleted?: number;
1135
- /** Total actions completed by referred friends */
1156
+ /** Total number of actions completed by referred friends. */
1136
1157
  totalActionsCompleted?: number;
1137
- /** Total amount of purchases made by referred friends */
1158
+ /** Total amount of purchases made by referred friends. */
1138
1159
  totalAmountGenerated?: string;
1139
1160
  }
1140
1161
  interface QueryReferringCustomerTotalsRequest$1 {
1141
- /** Query to filter ReferringCustomerTotals. */
1162
+ /** Query to filter referring customer totals. */
1142
1163
  query?: CursorQuery$7;
1143
- /** List of contact ids to filter ReferringCustomerTotals. */
1164
+ /** List of contact IDs to filter referring customer totals. */
1144
1165
  contactIds?: string[];
1145
1166
  }
1146
1167
  interface QueryReferringCustomerTotalsResponse$1 {
1147
- /** List of ReferringCustomerTotals that match the query. */
1148
1168
  referringCustomerTotals?: ReferringCustomerTotal$1[];
1149
- /** Paging metadata. */
1169
+ /** Paging metadata */
1150
1170
  metadata?: CursorPagingMetadata$7;
1151
1171
  }
1152
1172
  interface ReferringCustomerTotal$1 {
1153
1173
  /**
1154
- * Referring customer id.
1174
+ * ID of the referring customer.
1155
1175
  * @readonly
1156
1176
  */
1157
1177
  referringCustomerId?: string;
1158
1178
  /**
1159
- * Contact id.
1179
+ * Contact ID.
1160
1180
  * @readonly
1161
1181
  */
1162
1182
  contactId?: string;
1163
1183
  /**
1164
- * Last successful referral date.
1184
+ * Date and time of the last successful referral.
1165
1185
  * @readonly
1166
1186
  */
1167
1187
  lastSuccessfulReferral?: Date;
1168
1188
  /**
1169
- * Total successful referrals made by this customer.
1189
+ * Total number of successful referrals made by this customer.
1170
1190
  * @readonly
1171
1191
  */
1172
1192
  totalSuccessfulReferrals?: number;
1173
1193
  /**
1174
- * Total amount generated by friends referred by this customer.
1194
+ * Total amount of revenue generated by friends referred by this customer.
1175
1195
  * @readonly
1176
1196
  */
1177
1197
  totalAmountGenerated?: string;
1178
1198
  /**
1179
- * Last friend action date.
1199
+ * Date and time of the last friend action.
1180
1200
  * @readonly
1181
1201
  */
1182
1202
  lastFriendAction?: Date;
1183
1203
  /**
1184
- * Total friends that have actions done.
1204
+ * Number of friends who have completed actions.
1185
1205
  * @readonly
1186
1206
  */
1187
1207
  totalFriendsWithActions?: number;
1188
1208
  }
1189
1209
  interface QueryReferredFriendActionsRequest$1 {
1190
- /** Query to filter ReferredFriendActions. */
1210
+ /** Query to filter referred friend actions. */
1191
1211
  query?: CursorQuery$7;
1192
- /** List of contact ids to filter ReferredFriendActions. */
1212
+ /** List of contact IDs to filter referred friend actions. */
1193
1213
  contactIds?: string[];
1194
1214
  }
1195
1215
  interface QueryReferredFriendActionsResponse$1 {
1196
- /** List of ReferredFriendActions that match the query. */
1216
+ /** List of referred friend actions matching the query. */
1197
1217
  referredFriendActions?: ReferredFriendAction$1[];
1198
- /** Paging metadata. */
1218
+ /** Paging metadata */
1199
1219
  metadata?: CursorPagingMetadata$7;
1200
1220
  }
1201
1221
  interface ReferredFriendAction$1 extends ReferredFriendActionRewardTypeOptionsOneOf$1 {
@@ -1204,28 +1224,28 @@ interface ReferredFriendAction$1 extends ReferredFriendActionRewardTypeOptionsOn
1204
1224
  /** Loyalty points reward type options. */
1205
1225
  loyaltyPoints?: LoyaltyPoints$1;
1206
1226
  /**
1207
- * Referred friend id.
1227
+ * Referred friend ID.
1208
1228
  * @readonly
1209
1229
  */
1210
1230
  referredFriendId?: string;
1211
1231
  /**
1212
- * Contact id.
1232
+ * Contact ID.
1213
1233
  * @readonly
1214
1234
  */
1215
1235
  contactId?: string;
1216
1236
  /**
1217
- * First action trigger.
1237
+ * Trigger for the first action.
1218
1238
  * @readonly
1219
1239
  */
1220
1240
  trigger?: V1Trigger$1;
1221
1241
  /**
1222
- * First action date.
1242
+ * Date and time of the first action.
1223
1243
  * @readonly
1224
1244
  */
1225
1245
  actionDate?: Date;
1226
- /** Issued reward type. */
1246
+ /** Type of issued reward. */
1227
1247
  rewardType?: Reward$1;
1228
- /** Total number of actions. */
1248
+ /** Number of actions completed. */
1229
1249
  totalActions?: number;
1230
1250
  /**
1231
1251
  * Total amount spent by this referred friend.
@@ -1233,7 +1253,7 @@ interface ReferredFriendAction$1 extends ReferredFriendActionRewardTypeOptionsOn
1233
1253
  */
1234
1254
  totalAmountSpent?: string;
1235
1255
  /**
1236
- * friend signup date.
1256
+ * Date and time of friend signup.
1237
1257
  * @readonly
1238
1258
  */
1239
1259
  signupDate?: Date;
@@ -1474,106 +1494,109 @@ interface QueryReferredFriendActionsResponseNonNullableFields$1 {
1474
1494
  }
1475
1495
 
1476
1496
  interface ReferralEvent extends ReferralEventEventTypeOneOf {
1477
- /** ReferredFriendSignupEvent is an event that is triggered when a referred friend signs up. */
1497
+ /** Event triggered when a referred friend signs up. */
1478
1498
  referredFriendSignupEvent?: ReferredFriendSignupEvent;
1479
- /** SuccessfulReferralEvent is an event that is triggered when a referral is successful. */
1499
+ /** Event triggered when a referral is successful. For example, customer places and pays for an order. */
1480
1500
  successfulReferralEvent?: V1SuccessfulReferralEvent;
1481
- /** ActionEvent is an event that is triggered when an action is performed. */
1501
+ /** Event triggered when an action is performed. For example, placing an order. */
1482
1502
  actionEvent?: V1ActionEvent;
1483
- /** RewardEvent is an event that is triggered when a reward is given. */
1503
+ /** Event triggered when a reward is given. */
1484
1504
  rewardEvent?: RewardEvent;
1485
1505
  /**
1486
- * ReferralEvent ID.
1506
+ * Referral event ID.
1487
1507
  * @readonly
1488
1508
  */
1489
1509
  _id?: string | null;
1490
- /** Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision. */
1510
+ /**
1511
+ * Revision number, which increments by 1 each time the referral event is updated.
1512
+ * To prevent conflicting changes, the current revision must be passed when updating the referral event.
1513
+ */
1491
1514
  revision?: string | null;
1492
1515
  /**
1493
- * Represents the time this ReferralEvent was created.
1516
+ * Date and time the referral event was created.
1494
1517
  * @readonly
1495
1518
  */
1496
1519
  _createdDate?: Date;
1497
1520
  /**
1498
- * Represents the time this ReferralEvent was last updated.
1521
+ * Date and time the referral event was last updated.
1499
1522
  * @readonly
1500
1523
  */
1501
1524
  _updatedDate?: Date;
1502
1525
  }
1503
1526
  /** @oneof */
1504
1527
  interface ReferralEventEventTypeOneOf {
1505
- /** ReferredFriendSignupEvent is an event that is triggered when a referred friend signs up. */
1528
+ /** Event triggered when a referred friend signs up. */
1506
1529
  referredFriendSignupEvent?: ReferredFriendSignupEvent;
1507
- /** SuccessfulReferralEvent is an event that is triggered when a referral is successful. */
1530
+ /** Event triggered when a referral is successful. For example, customer places and pays for an order. */
1508
1531
  successfulReferralEvent?: V1SuccessfulReferralEvent;
1509
- /** ActionEvent is an event that is triggered when an action is performed. */
1532
+ /** Event triggered when an action is performed. For example, placing an order. */
1510
1533
  actionEvent?: V1ActionEvent;
1511
- /** RewardEvent is an event that is triggered when a reward is given. */
1534
+ /** Event triggered when a reward is given. */
1512
1535
  rewardEvent?: RewardEvent;
1513
1536
  }
1514
1537
  interface ReferredFriendSignupEvent {
1515
- /** The referred friend ID. */
1538
+ /** ID of the referred friend */
1516
1539
  referredFriendId?: string;
1517
1540
  }
1518
1541
  interface V1SuccessfulReferralEvent {
1519
- /** The referred friend ID. */
1542
+ /** ID of the referred friend */
1520
1543
  referredFriendId?: string;
1521
- /** The referring customer ID. */
1544
+ /** ID of the referring customer */
1522
1545
  referringCustomerId?: string;
1523
1546
  }
1524
1547
  interface V1ActionEvent {
1525
- /** The referred friend ID. */
1548
+ /** ID of the referred friend */
1526
1549
  referredFriendId?: string;
1527
- /** The referring customer ID. */
1550
+ /** ID of the referring customer */
1528
1551
  referringCustomerId?: string;
1529
- /** The trigger of the action. */
1552
+ /** Trigger for the action */
1530
1553
  trigger?: V1Trigger;
1531
- /** Amount. */
1554
+ /** Amount associated with the action. */
1532
1555
  amount?: string | null;
1533
- /** Currency. */
1556
+ /** Currency of the amount. */
1534
1557
  currency?: string | null;
1535
- /** Order ID. */
1558
+ /** ID of the associated order. */
1536
1559
  orderId?: string | null;
1537
1560
  }
1538
1561
  interface V1Trigger {
1539
- /** The app id of the app that triggered the event. */
1562
+ /** ID of the app that triggered the event */
1540
1563
  appId?: string;
1541
- /** The activity type that triggered the event. */
1564
+ /** Type of activity that triggered the event */
1542
1565
  activityType?: string;
1543
1566
  }
1544
1567
  interface RewardEvent extends RewardEventReceiverOneOf {
1545
1568
  /**
1546
- * The referring customer ID.
1569
+ * ID of the rewarded referring customer.
1547
1570
  * @readonly
1548
1571
  */
1549
1572
  rewardedReferringCustomerId?: string;
1550
1573
  /**
1551
- * The referred friend ID.
1574
+ * ID of the rewarded referred friend.
1552
1575
  * @readonly
1553
1576
  */
1554
1577
  rewardedReferredFriendId?: string;
1555
- /** The referral reward ID. */
1578
+ /** ID of the referral reward. */
1556
1579
  referralRewardId?: string;
1557
- /** The reward type. */
1580
+ /** Type of reward. */
1558
1581
  rewardType?: Reward;
1559
1582
  }
1560
1583
  /** @oneof */
1561
1584
  interface RewardEventReceiverOneOf {
1562
1585
  /**
1563
- * The referring customer ID.
1586
+ * ID of the rewarded referring customer.
1564
1587
  * @readonly
1565
1588
  */
1566
1589
  rewardedReferringCustomerId?: string;
1567
1590
  /**
1568
- * The referred friend ID.
1591
+ * ID of the rewarded referred friend.
1569
1592
  * @readonly
1570
1593
  */
1571
1594
  rewardedReferredFriendId?: string;
1572
1595
  }
1573
1596
  declare enum Reward {
1574
- /** Unknown reward type. */
1597
+ /** Unknown reward. This field is not used. */
1575
1598
  UNKNOWN = "UNKNOWN",
1576
- /** Reward is a coupon. */
1599
+ /** Reward is a coupon */
1577
1600
  COUPON = "COUPON",
1578
1601
  /** Reward is loyalty points. */
1579
1602
  LOYALTY_POINTS = "LOYALTY_POINTS",
@@ -1581,15 +1604,15 @@ declare enum Reward {
1581
1604
  NOTHING = "NOTHING"
1582
1605
  }
1583
1606
  interface GetReferralEventRequest {
1584
- /** Id of the ReferralEvent to retrieve */
1607
+ /** ID of the referral event to retrieve. */
1585
1608
  referralEventId: string;
1586
1609
  }
1587
1610
  interface GetReferralEventResponse {
1588
- /** The retrieved ReferralEvent */
1611
+ /** Retrieved referral event. */
1589
1612
  referralEvent?: ReferralEvent;
1590
1613
  }
1591
1614
  interface QueryReferralEventRequest {
1592
- /** Query to filter ReferralEvents. */
1615
+ /** Query to filter referral events */
1593
1616
  query: CursorQuery$6;
1594
1617
  }
1595
1618
  interface CursorQuery$6 extends CursorQueryPagingMethodOneOf$6 {
@@ -1643,9 +1666,9 @@ interface CursorPaging$6 {
1643
1666
  cursor?: string | null;
1644
1667
  }
1645
1668
  interface QueryReferralEventResponse {
1646
- /** List of ReferralEvents that match the query. */
1669
+ /** List of referral events. */
1647
1670
  referralEvents?: ReferralEvent[];
1648
- /** Paging metadata. */
1671
+ /** Metadata for the paginated results. */
1649
1672
  metadata?: CursorPagingMetadata$6;
1650
1673
  }
1651
1674
  interface CursorPagingMetadata$6 {
@@ -1670,72 +1693,71 @@ interface Cursors$6 {
1670
1693
  interface GetReferralStatisticsRequest {
1671
1694
  }
1672
1695
  interface GetReferralStatisticsResponse {
1673
- /** Total sign ups completed by referred friends */
1696
+ /** Total number of sign-ups completed by referred friends. */
1674
1697
  totalSignUpsCompleted?: number;
1675
- /** Total actions completed by referred friends */
1698
+ /** Total number of actions completed by referred friends. */
1676
1699
  totalActionsCompleted?: number;
1677
- /** Total amount of purchases made by referred friends */
1700
+ /** Total amount of purchases made by referred friends. */
1678
1701
  totalAmountGenerated?: string;
1679
1702
  }
1680
1703
  interface QueryReferringCustomerTotalsRequest {
1681
- /** Query to filter ReferringCustomerTotals. */
1704
+ /** Query to filter referring customer totals. */
1682
1705
  query?: CursorQuery$6;
1683
- /** List of contact ids to filter ReferringCustomerTotals. */
1706
+ /** List of contact IDs to filter referring customer totals. */
1684
1707
  contactIds?: string[];
1685
1708
  }
1686
1709
  interface QueryReferringCustomerTotalsResponse {
1687
- /** List of ReferringCustomerTotals that match the query. */
1688
1710
  referringCustomerTotals?: ReferringCustomerTotal[];
1689
- /** Paging metadata. */
1711
+ /** Paging metadata */
1690
1712
  metadata?: CursorPagingMetadata$6;
1691
1713
  }
1692
1714
  interface ReferringCustomerTotal {
1693
1715
  /**
1694
- * Referring customer id.
1716
+ * ID of the referring customer.
1695
1717
  * @readonly
1696
1718
  */
1697
1719
  referringCustomerId?: string;
1698
1720
  /**
1699
- * Contact id.
1721
+ * Contact ID.
1700
1722
  * @readonly
1701
1723
  */
1702
1724
  contactId?: string;
1703
1725
  /**
1704
- * Last successful referral date.
1726
+ * Date and time of the last successful referral.
1705
1727
  * @readonly
1706
1728
  */
1707
1729
  lastSuccessfulReferral?: Date;
1708
1730
  /**
1709
- * Total successful referrals made by this customer.
1731
+ * Total number of successful referrals made by this customer.
1710
1732
  * @readonly
1711
1733
  */
1712
1734
  totalSuccessfulReferrals?: number;
1713
1735
  /**
1714
- * Total amount generated by friends referred by this customer.
1736
+ * Total amount of revenue generated by friends referred by this customer.
1715
1737
  * @readonly
1716
1738
  */
1717
1739
  totalAmountGenerated?: string;
1718
1740
  /**
1719
- * Last friend action date.
1741
+ * Date and time of the last friend action.
1720
1742
  * @readonly
1721
1743
  */
1722
1744
  lastFriendAction?: Date;
1723
1745
  /**
1724
- * Total friends that have actions done.
1746
+ * Number of friends who have completed actions.
1725
1747
  * @readonly
1726
1748
  */
1727
1749
  totalFriendsWithActions?: number;
1728
1750
  }
1729
1751
  interface QueryReferredFriendActionsRequest {
1730
- /** Query to filter ReferredFriendActions. */
1752
+ /** Query to filter referred friend actions. */
1731
1753
  query?: CursorQuery$6;
1732
- /** List of contact ids to filter ReferredFriendActions. */
1754
+ /** List of contact IDs to filter referred friend actions. */
1733
1755
  contactIds?: string[];
1734
1756
  }
1735
1757
  interface QueryReferredFriendActionsResponse {
1736
- /** List of ReferredFriendActions that match the query. */
1758
+ /** List of referred friend actions matching the query. */
1737
1759
  referredFriendActions?: ReferredFriendAction[];
1738
- /** Paging metadata. */
1760
+ /** Paging metadata */
1739
1761
  metadata?: CursorPagingMetadata$6;
1740
1762
  }
1741
1763
  interface ReferredFriendAction extends ReferredFriendActionRewardTypeOptionsOneOf {
@@ -1744,28 +1766,28 @@ interface ReferredFriendAction extends ReferredFriendActionRewardTypeOptionsOneO
1744
1766
  /** Loyalty points reward type options. */
1745
1767
  loyaltyPoints?: LoyaltyPoints;
1746
1768
  /**
1747
- * Referred friend id.
1769
+ * Referred friend ID.
1748
1770
  * @readonly
1749
1771
  */
1750
1772
  referredFriendId?: string;
1751
1773
  /**
1752
- * Contact id.
1774
+ * Contact ID.
1753
1775
  * @readonly
1754
1776
  */
1755
1777
  contactId?: string;
1756
1778
  /**
1757
- * First action trigger.
1779
+ * Trigger for the first action.
1758
1780
  * @readonly
1759
1781
  */
1760
1782
  trigger?: V1Trigger;
1761
1783
  /**
1762
- * First action date.
1784
+ * Date and time of the first action.
1763
1785
  * @readonly
1764
1786
  */
1765
1787
  actionDate?: Date;
1766
- /** Issued reward type. */
1788
+ /** Type of issued reward. */
1767
1789
  rewardType?: Reward;
1768
- /** Total number of actions. */
1790
+ /** Number of actions completed. */
1769
1791
  totalActions?: number;
1770
1792
  /**
1771
1793
  * Total amount spent by this referred friend.
@@ -1773,7 +1795,7 @@ interface ReferredFriendAction extends ReferredFriendActionRewardTypeOptionsOneO
1773
1795
  */
1774
1796
  totalAmountSpent?: string;
1775
1797
  /**
1776
- * friend signup date.
1798
+ * Date and time of friend signup.
1777
1799
  * @readonly
1778
1800
  */
1779
1801
  signupDate?: Date;
@@ -3057,55 +3079,58 @@ declare namespace meta$1 {
3057
3079
  /** ReferringCustomer is the main entity of ReferringCustomers. */
3058
3080
  interface ReferringCustomer$1 {
3059
3081
  /**
3060
- * ReferringCustomer id.
3082
+ * ID of the referring customer.
3061
3083
  * @readonly
3062
3084
  */
3063
3085
  id?: string;
3064
3086
  /**
3065
- * Contact id.
3087
+ * Contact ID associated with the referring customer.
3066
3088
  * @readonly
3067
3089
  */
3068
3090
  contactId?: string;
3069
3091
  /**
3070
- * Referral code.
3092
+ * Unique code for the referral. For example, `GxpxwAoMqxH8`.
3071
3093
  * @readonly
3072
3094
  */
3073
3095
  referralCode?: string;
3074
- /** Represents the current state of an item. Each time the item is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision. */
3096
+ /**
3097
+ * Revision number, which increments by 1 each time the referring customer is updated.
3098
+ * To prevent conflicting changes, the current revision must be passed when updating the referring customer.
3099
+ */
3075
3100
  revision?: string | null;
3076
3101
  /**
3077
- * Represents the time this ReferringCustomer was created.
3102
+ * Date and time the referring customer was created.
3078
3103
  * @readonly
3079
3104
  */
3080
3105
  createdDate?: Date;
3081
3106
  /**
3082
- * Represents the time this ReferringCustomer was last updated.
3107
+ * Date and time the referring customer was last updated.
3083
3108
  * @readonly
3084
3109
  */
3085
3110
  updatedDate?: Date;
3086
3111
  }
3087
3112
  interface GenerateReferringCustomerForContactRequest$1 {
3088
- /** Contact id or "me" to generate current identity's referring customer. */
3113
+ /** Contact ID or `"me"` to generate the current identity's referring customer. */
3089
3114
  contactId: string;
3090
3115
  }
3091
3116
  interface GenerateReferringCustomerForContactResponse$1 {
3092
- /** The created ReferringCustomer. */
3117
+ /** Created referring customer. */
3093
3118
  referringCustomer?: ReferringCustomer$1;
3094
3119
  }
3095
3120
  interface GetReferringCustomerRequest$1 {
3096
- /** Id of the ReferringCustomer to retrieve. */
3121
+ /** ID of the referring customer to retrieve. */
3097
3122
  referringCustomerId: string;
3098
3123
  }
3099
3124
  interface GetReferringCustomerResponse$1 {
3100
- /** The retrieved ReferringCustomer. */
3125
+ /** Retrieved referring customer. */
3101
3126
  referringCustomer?: ReferringCustomer$1;
3102
3127
  }
3103
3128
  interface GetReferringCustomerByReferralCodeRequest$1 {
3104
- /** Referral Code of the ReferringCustomer to retrieve. */
3129
+ /** Referral code of the referring customer to retrieve. */
3105
3130
  referralCode: string;
3106
3131
  }
3107
3132
  interface GetReferringCustomerByReferralCodeResponse$1 {
3108
- /** The retrieved ReferringCustomer. */
3133
+ /** Retrieved referring customer. */
3109
3134
  referringCustomer?: ReferringCustomer$1;
3110
3135
  }
3111
3136
  interface QueryReferringCustomersRequest$1 {
@@ -3113,26 +3138,32 @@ interface QueryReferringCustomersRequest$1 {
3113
3138
  query: CursorQuery$1;
3114
3139
  }
3115
3140
  interface CursorQuery$1 extends CursorQueryPagingMethodOneOf$1 {
3116
- /** 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`. */
3141
+ /**
3142
+ * Cursor paging options.
3143
+ *
3144
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
3145
+ */
3117
3146
  cursorPaging?: CursorPaging$1;
3118
3147
  /**
3119
- * Filter object in the following format:
3120
- * `"filter" : {
3121
- * "fieldName1": "value1",
3122
- * "fieldName2":{"$operator":"value2"}
3123
- * }`
3124
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
3148
+ * Filter object.
3149
+ *
3150
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
3125
3151
  */
3126
3152
  filter?: Record<string, any> | null;
3127
3153
  /**
3128
- * Sort object in the following format:
3129
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
3154
+ * Sort object.
3155
+ *
3156
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
3130
3157
  */
3131
3158
  sort?: Sorting$1[];
3132
3159
  }
3133
3160
  /** @oneof */
3134
3161
  interface CursorQueryPagingMethodOneOf$1 {
3135
- /** 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`. */
3162
+ /**
3163
+ * Cursor paging options.
3164
+ *
3165
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
3166
+ */
3136
3167
  cursorPaging?: CursorPaging$1;
3137
3168
  }
3138
3169
  interface Sorting$1 {
@@ -3157,13 +3188,13 @@ interface CursorPaging$1 {
3157
3188
  cursor?: string | null;
3158
3189
  }
3159
3190
  interface QueryReferringCustomersResponse$1 {
3160
- /** The retrieved ReferringCustomers. */
3191
+ /** List of retrieved referring customers. */
3161
3192
  referringCustomers?: ReferringCustomer$1[];
3162
3193
  /** Paging metadata. */
3163
3194
  metadata?: CursorPagingMetadata$1;
3164
3195
  }
3165
3196
  interface CursorPagingMetadata$1 {
3166
- /** Number of items returned in the response. */
3197
+ /** Number of items returned in current page. */
3167
3198
  count?: number | null;
3168
3199
  /** Cursor strings that point to the next page, previous page, or both. */
3169
3200
  cursors?: Cursors$1;
@@ -3182,9 +3213,9 @@ interface Cursors$1 {
3182
3213
  prev?: string | null;
3183
3214
  }
3184
3215
  interface DeleteReferringCustomerRequest$1 {
3185
- /** Id of the ReferringCustomer to delete. */
3216
+ /** ID of the referring customer to delete. */
3186
3217
  referringCustomerId: string;
3187
- /** The revision of the ReferringCustomer. */
3218
+ /** Revision number of the referring customer. */
3188
3219
  revision?: string;
3189
3220
  }
3190
3221
  interface DeleteReferringCustomerResponse$1 {
@@ -3210,55 +3241,58 @@ interface QueryReferringCustomersResponseNonNullableFields$1 {
3210
3241
  /** ReferringCustomer is the main entity of ReferringCustomers. */
3211
3242
  interface ReferringCustomer {
3212
3243
  /**
3213
- * ReferringCustomer id.
3244
+ * ID of the referring customer.
3214
3245
  * @readonly
3215
3246
  */
3216
3247
  _id?: string;
3217
3248
  /**
3218
- * Contact id.
3249
+ * Contact ID associated with the referring customer.
3219
3250
  * @readonly
3220
3251
  */
3221
3252
  contactId?: string;
3222
3253
  /**
3223
- * Referral code.
3254
+ * Unique code for the referral. For example, `GxpxwAoMqxH8`.
3224
3255
  * @readonly
3225
3256
  */
3226
3257
  referralCode?: string;
3227
- /** Represents the current state of an item. Each time the item is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision. */
3258
+ /**
3259
+ * Revision number, which increments by 1 each time the referring customer is updated.
3260
+ * To prevent conflicting changes, the current revision must be passed when updating the referring customer.
3261
+ */
3228
3262
  revision?: string | null;
3229
3263
  /**
3230
- * Represents the time this ReferringCustomer was created.
3264
+ * Date and time the referring customer was created.
3231
3265
  * @readonly
3232
3266
  */
3233
3267
  _createdDate?: Date;
3234
3268
  /**
3235
- * Represents the time this ReferringCustomer was last updated.
3269
+ * Date and time the referring customer was last updated.
3236
3270
  * @readonly
3237
3271
  */
3238
3272
  _updatedDate?: Date;
3239
3273
  }
3240
3274
  interface GenerateReferringCustomerForContactRequest {
3241
- /** Contact id or "me" to generate current identity's referring customer. */
3275
+ /** Contact ID or `"me"` to generate the current identity's referring customer. */
3242
3276
  contactId: string;
3243
3277
  }
3244
3278
  interface GenerateReferringCustomerForContactResponse {
3245
- /** The created ReferringCustomer. */
3279
+ /** Created referring customer. */
3246
3280
  referringCustomer?: ReferringCustomer;
3247
3281
  }
3248
3282
  interface GetReferringCustomerRequest {
3249
- /** Id of the ReferringCustomer to retrieve. */
3283
+ /** ID of the referring customer to retrieve. */
3250
3284
  referringCustomerId: string;
3251
3285
  }
3252
3286
  interface GetReferringCustomerResponse {
3253
- /** The retrieved ReferringCustomer. */
3287
+ /** Retrieved referring customer. */
3254
3288
  referringCustomer?: ReferringCustomer;
3255
3289
  }
3256
3290
  interface GetReferringCustomerByReferralCodeRequest {
3257
- /** Referral Code of the ReferringCustomer to retrieve. */
3291
+ /** Referral code of the referring customer to retrieve. */
3258
3292
  referralCode: string;
3259
3293
  }
3260
3294
  interface GetReferringCustomerByReferralCodeResponse {
3261
- /** The retrieved ReferringCustomer. */
3295
+ /** Retrieved referring customer. */
3262
3296
  referringCustomer?: ReferringCustomer;
3263
3297
  }
3264
3298
  interface QueryReferringCustomersRequest {
@@ -3266,26 +3300,32 @@ interface QueryReferringCustomersRequest {
3266
3300
  query: CursorQuery;
3267
3301
  }
3268
3302
  interface CursorQuery extends CursorQueryPagingMethodOneOf {
3269
- /** 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`. */
3303
+ /**
3304
+ * Cursor paging options.
3305
+ *
3306
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
3307
+ */
3270
3308
  cursorPaging?: CursorPaging;
3271
3309
  /**
3272
- * Filter object in the following format:
3273
- * `"filter" : {
3274
- * "fieldName1": "value1",
3275
- * "fieldName2":{"$operator":"value2"}
3276
- * }`
3277
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
3310
+ * Filter object.
3311
+ *
3312
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
3278
3313
  */
3279
3314
  filter?: Record<string, any> | null;
3280
3315
  /**
3281
- * Sort object in the following format:
3282
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
3316
+ * Sort object.
3317
+ *
3318
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
3283
3319
  */
3284
3320
  sort?: Sorting[];
3285
3321
  }
3286
3322
  /** @oneof */
3287
3323
  interface CursorQueryPagingMethodOneOf {
3288
- /** 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`. */
3324
+ /**
3325
+ * Cursor paging options.
3326
+ *
3327
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
3328
+ */
3289
3329
  cursorPaging?: CursorPaging;
3290
3330
  }
3291
3331
  interface Sorting {
@@ -3310,13 +3350,13 @@ interface CursorPaging {
3310
3350
  cursor?: string | null;
3311
3351
  }
3312
3352
  interface QueryReferringCustomersResponse {
3313
- /** The retrieved ReferringCustomers. */
3353
+ /** List of retrieved referring customers. */
3314
3354
  referringCustomers?: ReferringCustomer[];
3315
3355
  /** Paging metadata. */
3316
3356
  metadata?: CursorPagingMetadata;
3317
3357
  }
3318
3358
  interface CursorPagingMetadata {
3319
- /** Number of items returned in the response. */
3359
+ /** Number of items returned in current page. */
3320
3360
  count?: number | null;
3321
3361
  /** Cursor strings that point to the next page, previous page, or both. */
3322
3362
  cursors?: Cursors;
@@ -3335,9 +3375,9 @@ interface Cursors {
3335
3375
  prev?: string | null;
3336
3376
  }
3337
3377
  interface DeleteReferringCustomerRequest {
3338
- /** Id of the ReferringCustomer to delete. */
3378
+ /** ID of the referring customer to delete. */
3339
3379
  referringCustomerId: string;
3340
- /** The revision of the ReferringCustomer. */
3380
+ /** Revision number of the referring customer. */
3341
3381
  revision?: string;
3342
3382
  }
3343
3383
  interface DeleteReferringCustomerResponse {