@wix/referral 1.0.12 → 1.0.13
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.
- package/package.json +4 -4
- package/type-bundles/context.bundle.d.ts +90 -64
- package/type-bundles/index.bundle.d.ts +90 -64
- package/type-bundles/meta.bundle.d.ts +108 -72
|
@@ -2,16 +2,21 @@ interface ReferralProgram$1 {
|
|
|
2
2
|
/** Referral program name. */
|
|
3
3
|
name?: string | null;
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Status of the referral program.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* - `
|
|
10
|
-
* - `
|
|
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
|
-
/**
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
466
|
+
* Status of the referral program.
|
|
467
|
+
*
|
|
468
|
+
* Possible values:
|
|
458
469
|
*
|
|
459
|
-
* - `UNKNOWN`:
|
|
460
|
-
* - `DRAFT`:
|
|
461
|
-
* - `ACTIVE`:
|
|
462
|
-
* - `PAUSED`:
|
|
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
|
-
/**
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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;
|
|
@@ -3057,55 +3075,58 @@ declare namespace meta$1 {
|
|
|
3057
3075
|
/** ReferringCustomer is the main entity of ReferringCustomers. */
|
|
3058
3076
|
interface ReferringCustomer$1 {
|
|
3059
3077
|
/**
|
|
3060
|
-
*
|
|
3078
|
+
* ID of the referring customer.
|
|
3061
3079
|
* @readonly
|
|
3062
3080
|
*/
|
|
3063
3081
|
id?: string;
|
|
3064
3082
|
/**
|
|
3065
|
-
* Contact
|
|
3083
|
+
* Contact ID associated with the referring customer.
|
|
3066
3084
|
* @readonly
|
|
3067
3085
|
*/
|
|
3068
3086
|
contactId?: string;
|
|
3069
3087
|
/**
|
|
3070
|
-
*
|
|
3088
|
+
* Unique code for the referral. For example, `GxpxwAoMqxH8`.
|
|
3071
3089
|
* @readonly
|
|
3072
3090
|
*/
|
|
3073
3091
|
referralCode?: string;
|
|
3074
|
-
/**
|
|
3092
|
+
/**
|
|
3093
|
+
* Revision number, which increments by 1 each time the referring customer is updated.
|
|
3094
|
+
* To prevent conflicting changes, the current revision must be passed when updating the referring customer.
|
|
3095
|
+
*/
|
|
3075
3096
|
revision?: string | null;
|
|
3076
3097
|
/**
|
|
3077
|
-
*
|
|
3098
|
+
* Date and time the referring customer was created.
|
|
3078
3099
|
* @readonly
|
|
3079
3100
|
*/
|
|
3080
3101
|
createdDate?: Date;
|
|
3081
3102
|
/**
|
|
3082
|
-
*
|
|
3103
|
+
* Date and time the referring customer was last updated.
|
|
3083
3104
|
* @readonly
|
|
3084
3105
|
*/
|
|
3085
3106
|
updatedDate?: Date;
|
|
3086
3107
|
}
|
|
3087
3108
|
interface GenerateReferringCustomerForContactRequest$1 {
|
|
3088
|
-
/** Contact
|
|
3109
|
+
/** Contact ID or `"me"` to generate the current identity's referring customer. */
|
|
3089
3110
|
contactId: string;
|
|
3090
3111
|
}
|
|
3091
3112
|
interface GenerateReferringCustomerForContactResponse$1 {
|
|
3092
|
-
/**
|
|
3113
|
+
/** Created referring customer. */
|
|
3093
3114
|
referringCustomer?: ReferringCustomer$1;
|
|
3094
3115
|
}
|
|
3095
3116
|
interface GetReferringCustomerRequest$1 {
|
|
3096
|
-
/**
|
|
3117
|
+
/** ID of the referring customer to retrieve. */
|
|
3097
3118
|
referringCustomerId: string;
|
|
3098
3119
|
}
|
|
3099
3120
|
interface GetReferringCustomerResponse$1 {
|
|
3100
|
-
/**
|
|
3121
|
+
/** Retrieved referring customer. */
|
|
3101
3122
|
referringCustomer?: ReferringCustomer$1;
|
|
3102
3123
|
}
|
|
3103
3124
|
interface GetReferringCustomerByReferralCodeRequest$1 {
|
|
3104
|
-
/** Referral
|
|
3125
|
+
/** Referral code of the referring customer to retrieve. */
|
|
3105
3126
|
referralCode: string;
|
|
3106
3127
|
}
|
|
3107
3128
|
interface GetReferringCustomerByReferralCodeResponse$1 {
|
|
3108
|
-
/**
|
|
3129
|
+
/** Retrieved referring customer. */
|
|
3109
3130
|
referringCustomer?: ReferringCustomer$1;
|
|
3110
3131
|
}
|
|
3111
3132
|
interface QueryReferringCustomersRequest$1 {
|
|
@@ -3113,26 +3134,32 @@ interface QueryReferringCustomersRequest$1 {
|
|
|
3113
3134
|
query: CursorQuery$1;
|
|
3114
3135
|
}
|
|
3115
3136
|
interface CursorQuery$1 extends CursorQueryPagingMethodOneOf$1 {
|
|
3116
|
-
/**
|
|
3137
|
+
/**
|
|
3138
|
+
* Cursor paging options.
|
|
3139
|
+
*
|
|
3140
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
3141
|
+
*/
|
|
3117
3142
|
cursorPaging?: CursorPaging$1;
|
|
3118
3143
|
/**
|
|
3119
|
-
* Filter object
|
|
3120
|
-
*
|
|
3121
|
-
*
|
|
3122
|
-
* "fieldName2":{"$operator":"value2"}
|
|
3123
|
-
* }`
|
|
3124
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
3144
|
+
* Filter object.
|
|
3145
|
+
*
|
|
3146
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
3125
3147
|
*/
|
|
3126
3148
|
filter?: Record<string, any> | null;
|
|
3127
3149
|
/**
|
|
3128
|
-
* Sort object
|
|
3129
|
-
*
|
|
3150
|
+
* Sort object.
|
|
3151
|
+
*
|
|
3152
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
3130
3153
|
*/
|
|
3131
3154
|
sort?: Sorting$1[];
|
|
3132
3155
|
}
|
|
3133
3156
|
/** @oneof */
|
|
3134
3157
|
interface CursorQueryPagingMethodOneOf$1 {
|
|
3135
|
-
/**
|
|
3158
|
+
/**
|
|
3159
|
+
* Cursor paging options.
|
|
3160
|
+
*
|
|
3161
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
3162
|
+
*/
|
|
3136
3163
|
cursorPaging?: CursorPaging$1;
|
|
3137
3164
|
}
|
|
3138
3165
|
interface Sorting$1 {
|
|
@@ -3157,13 +3184,13 @@ interface CursorPaging$1 {
|
|
|
3157
3184
|
cursor?: string | null;
|
|
3158
3185
|
}
|
|
3159
3186
|
interface QueryReferringCustomersResponse$1 {
|
|
3160
|
-
/**
|
|
3187
|
+
/** List of retrieved referring customers. */
|
|
3161
3188
|
referringCustomers?: ReferringCustomer$1[];
|
|
3162
3189
|
/** Paging metadata. */
|
|
3163
3190
|
metadata?: CursorPagingMetadata$1;
|
|
3164
3191
|
}
|
|
3165
3192
|
interface CursorPagingMetadata$1 {
|
|
3166
|
-
/** Number of items returned in
|
|
3193
|
+
/** Number of items returned in current page. */
|
|
3167
3194
|
count?: number | null;
|
|
3168
3195
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
3169
3196
|
cursors?: Cursors$1;
|
|
@@ -3182,9 +3209,9 @@ interface Cursors$1 {
|
|
|
3182
3209
|
prev?: string | null;
|
|
3183
3210
|
}
|
|
3184
3211
|
interface DeleteReferringCustomerRequest$1 {
|
|
3185
|
-
/**
|
|
3212
|
+
/** ID of the referring customer to delete. */
|
|
3186
3213
|
referringCustomerId: string;
|
|
3187
|
-
/**
|
|
3214
|
+
/** Revision number of the referring customer. */
|
|
3188
3215
|
revision?: string;
|
|
3189
3216
|
}
|
|
3190
3217
|
interface DeleteReferringCustomerResponse$1 {
|
|
@@ -3210,55 +3237,58 @@ interface QueryReferringCustomersResponseNonNullableFields$1 {
|
|
|
3210
3237
|
/** ReferringCustomer is the main entity of ReferringCustomers. */
|
|
3211
3238
|
interface ReferringCustomer {
|
|
3212
3239
|
/**
|
|
3213
|
-
*
|
|
3240
|
+
* ID of the referring customer.
|
|
3214
3241
|
* @readonly
|
|
3215
3242
|
*/
|
|
3216
3243
|
_id?: string;
|
|
3217
3244
|
/**
|
|
3218
|
-
* Contact
|
|
3245
|
+
* Contact ID associated with the referring customer.
|
|
3219
3246
|
* @readonly
|
|
3220
3247
|
*/
|
|
3221
3248
|
contactId?: string;
|
|
3222
3249
|
/**
|
|
3223
|
-
*
|
|
3250
|
+
* Unique code for the referral. For example, `GxpxwAoMqxH8`.
|
|
3224
3251
|
* @readonly
|
|
3225
3252
|
*/
|
|
3226
3253
|
referralCode?: string;
|
|
3227
|
-
/**
|
|
3254
|
+
/**
|
|
3255
|
+
* Revision number, which increments by 1 each time the referring customer is updated.
|
|
3256
|
+
* To prevent conflicting changes, the current revision must be passed when updating the referring customer.
|
|
3257
|
+
*/
|
|
3228
3258
|
revision?: string | null;
|
|
3229
3259
|
/**
|
|
3230
|
-
*
|
|
3260
|
+
* Date and time the referring customer was created.
|
|
3231
3261
|
* @readonly
|
|
3232
3262
|
*/
|
|
3233
3263
|
_createdDate?: Date;
|
|
3234
3264
|
/**
|
|
3235
|
-
*
|
|
3265
|
+
* Date and time the referring customer was last updated.
|
|
3236
3266
|
* @readonly
|
|
3237
3267
|
*/
|
|
3238
3268
|
_updatedDate?: Date;
|
|
3239
3269
|
}
|
|
3240
3270
|
interface GenerateReferringCustomerForContactRequest {
|
|
3241
|
-
/** Contact
|
|
3271
|
+
/** Contact ID or `"me"` to generate the current identity's referring customer. */
|
|
3242
3272
|
contactId: string;
|
|
3243
3273
|
}
|
|
3244
3274
|
interface GenerateReferringCustomerForContactResponse {
|
|
3245
|
-
/**
|
|
3275
|
+
/** Created referring customer. */
|
|
3246
3276
|
referringCustomer?: ReferringCustomer;
|
|
3247
3277
|
}
|
|
3248
3278
|
interface GetReferringCustomerRequest {
|
|
3249
|
-
/**
|
|
3279
|
+
/** ID of the referring customer to retrieve. */
|
|
3250
3280
|
referringCustomerId: string;
|
|
3251
3281
|
}
|
|
3252
3282
|
interface GetReferringCustomerResponse {
|
|
3253
|
-
/**
|
|
3283
|
+
/** Retrieved referring customer. */
|
|
3254
3284
|
referringCustomer?: ReferringCustomer;
|
|
3255
3285
|
}
|
|
3256
3286
|
interface GetReferringCustomerByReferralCodeRequest {
|
|
3257
|
-
/** Referral
|
|
3287
|
+
/** Referral code of the referring customer to retrieve. */
|
|
3258
3288
|
referralCode: string;
|
|
3259
3289
|
}
|
|
3260
3290
|
interface GetReferringCustomerByReferralCodeResponse {
|
|
3261
|
-
/**
|
|
3291
|
+
/** Retrieved referring customer. */
|
|
3262
3292
|
referringCustomer?: ReferringCustomer;
|
|
3263
3293
|
}
|
|
3264
3294
|
interface QueryReferringCustomersRequest {
|
|
@@ -3266,26 +3296,32 @@ interface QueryReferringCustomersRequest {
|
|
|
3266
3296
|
query: CursorQuery;
|
|
3267
3297
|
}
|
|
3268
3298
|
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
3269
|
-
/**
|
|
3299
|
+
/**
|
|
3300
|
+
* Cursor paging options.
|
|
3301
|
+
*
|
|
3302
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
3303
|
+
*/
|
|
3270
3304
|
cursorPaging?: CursorPaging;
|
|
3271
3305
|
/**
|
|
3272
|
-
* Filter object
|
|
3273
|
-
*
|
|
3274
|
-
*
|
|
3275
|
-
* "fieldName2":{"$operator":"value2"}
|
|
3276
|
-
* }`
|
|
3277
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
3306
|
+
* Filter object.
|
|
3307
|
+
*
|
|
3308
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
3278
3309
|
*/
|
|
3279
3310
|
filter?: Record<string, any> | null;
|
|
3280
3311
|
/**
|
|
3281
|
-
* Sort object
|
|
3282
|
-
*
|
|
3312
|
+
* Sort object.
|
|
3313
|
+
*
|
|
3314
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
3283
3315
|
*/
|
|
3284
3316
|
sort?: Sorting[];
|
|
3285
3317
|
}
|
|
3286
3318
|
/** @oneof */
|
|
3287
3319
|
interface CursorQueryPagingMethodOneOf {
|
|
3288
|
-
/**
|
|
3320
|
+
/**
|
|
3321
|
+
* Cursor paging options.
|
|
3322
|
+
*
|
|
3323
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
3324
|
+
*/
|
|
3289
3325
|
cursorPaging?: CursorPaging;
|
|
3290
3326
|
}
|
|
3291
3327
|
interface Sorting {
|
|
@@ -3310,13 +3346,13 @@ interface CursorPaging {
|
|
|
3310
3346
|
cursor?: string | null;
|
|
3311
3347
|
}
|
|
3312
3348
|
interface QueryReferringCustomersResponse {
|
|
3313
|
-
/**
|
|
3349
|
+
/** List of retrieved referring customers. */
|
|
3314
3350
|
referringCustomers?: ReferringCustomer[];
|
|
3315
3351
|
/** Paging metadata. */
|
|
3316
3352
|
metadata?: CursorPagingMetadata;
|
|
3317
3353
|
}
|
|
3318
3354
|
interface CursorPagingMetadata {
|
|
3319
|
-
/** Number of items returned in
|
|
3355
|
+
/** Number of items returned in current page. */
|
|
3320
3356
|
count?: number | null;
|
|
3321
3357
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
3322
3358
|
cursors?: Cursors;
|
|
@@ -3335,9 +3371,9 @@ interface Cursors {
|
|
|
3335
3371
|
prev?: string | null;
|
|
3336
3372
|
}
|
|
3337
3373
|
interface DeleteReferringCustomerRequest {
|
|
3338
|
-
/**
|
|
3374
|
+
/** ID of the referring customer to delete. */
|
|
3339
3375
|
referringCustomerId: string;
|
|
3340
|
-
/**
|
|
3376
|
+
/** Revision number of the referring customer. */
|
|
3341
3377
|
revision?: string;
|
|
3342
3378
|
}
|
|
3343
3379
|
interface DeleteReferringCustomerResponse {
|