@wix/referral 1.0.9 → 1.0.11
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/build/cjs/index.d.ts +6 -5
- package/build/cjs/index.js +10 -5
- package/build/cjs/index.js.map +1 -1
- package/build/es/index.d.ts +6 -5
- package/build/es/index.js +6 -5
- package/build/es/index.js.map +1 -1
- package/package.json +9 -8
- package/type-bundles/context.bundle.d.ts +310 -123
- package/type-bundles/index.bundle.d.ts +310 -123
- package/type-bundles/meta.bundle.d.ts +304 -152
|
@@ -1,54 +1,75 @@
|
|
|
1
|
-
/** ReferralProgram is the main entity of ReferralPrograms that can be used to manage the program. */
|
|
2
1
|
interface ReferralProgram {
|
|
3
2
|
/** Referral program name. */
|
|
4
3
|
name?: string | null;
|
|
5
4
|
/**
|
|
6
|
-
*
|
|
5
|
+
* The status of the referral program. Possible values:
|
|
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
11
|
* @readonly
|
|
8
12
|
*/
|
|
9
13
|
status?: ProgramStatus;
|
|
10
|
-
/**
|
|
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. */
|
|
11
15
|
revision?: string | null;
|
|
12
16
|
/**
|
|
13
|
-
*
|
|
17
|
+
* Date and time the program was created.
|
|
14
18
|
* @readonly
|
|
15
19
|
*/
|
|
16
20
|
_createdDate?: Date;
|
|
17
21
|
/**
|
|
18
|
-
*
|
|
22
|
+
* Date and time the program was updated.
|
|
19
23
|
* @readonly
|
|
20
24
|
*/
|
|
21
25
|
_updatedDate?: Date;
|
|
22
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Reward configuration for the referred friend.
|
|
28
|
+
* Specifies the reward given to a new customer who was referred to the business.
|
|
29
|
+
*/
|
|
23
30
|
referredFriendReward?: Reward$2;
|
|
24
|
-
/**
|
|
31
|
+
/**
|
|
32
|
+
* Reward configuration for the referring customer.
|
|
33
|
+
* Specifies the reward given to an existing customer who referred a new customer to the business.
|
|
34
|
+
*/
|
|
25
35
|
referringCustomerReward?: Reward$2;
|
|
26
|
-
/**
|
|
36
|
+
/**
|
|
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.
|
|
38
|
+
*
|
|
39
|
+
* Possible values:
|
|
40
|
+
*
|
|
41
|
+
* - `UNKNOWN`: Action is unknown.
|
|
42
|
+
* - `STORE_ORDER_PLACED`: Referred friend ordered and paid for an order in a store.
|
|
43
|
+
* - `PLAN_ORDERED`: Referred friend ordered and paid for a plan.
|
|
44
|
+
* - `TICKET_ORDERED`: Referred friend ordered and paid for a ticket.
|
|
45
|
+
* - `SESSION_BOOKED`: Referred friend booked and paid for a session.
|
|
46
|
+
* - `RESTAURANT_ORDER_PLACED`: Referred friend placed and paid for a restaurant order.
|
|
47
|
+
*/
|
|
27
48
|
successfulReferralActions?: Action[];
|
|
28
49
|
/**
|
|
29
|
-
*
|
|
50
|
+
* Whether the user has the required plan to use the referral program.
|
|
30
51
|
* @readonly
|
|
31
|
-
* @deprecated
|
|
52
|
+
* @deprecated Whether the user has the required plan to use the referral program.
|
|
32
53
|
* @replacedBy GetReferralProgramPremiumFeatures
|
|
33
54
|
* @targetRemovalDate 2024-09-01
|
|
34
55
|
*/
|
|
35
56
|
isPremium?: boolean;
|
|
36
|
-
/**
|
|
57
|
+
/** Configures email notifications for the referral program. */
|
|
37
58
|
emails?: Emails;
|
|
38
59
|
/**
|
|
39
|
-
*
|
|
60
|
+
* Indicates which premium features are available for the current account.
|
|
40
61
|
* @readonly
|
|
41
62
|
*/
|
|
42
63
|
premiumFeatures?: PremiumFeatures;
|
|
43
64
|
}
|
|
44
65
|
declare enum ProgramStatus {
|
|
45
|
-
/**
|
|
66
|
+
/** Program status is unknown. */
|
|
46
67
|
UNKNOWN = "UNKNOWN",
|
|
47
|
-
/**
|
|
68
|
+
/** Initial program status. The program was created but not activated. */
|
|
48
69
|
DRAFT = "DRAFT",
|
|
49
|
-
/**
|
|
70
|
+
/** Program is active. */
|
|
50
71
|
ACTIVE = "ACTIVE",
|
|
51
|
-
/**
|
|
72
|
+
/** Program was manually disabled by the user. Can be reactivated. */
|
|
52
73
|
PAUSED = "PAUSED"
|
|
53
74
|
}
|
|
54
75
|
interface Reward$2 extends RewardOptionsOneOf$1 {
|
|
@@ -77,37 +98,56 @@ declare enum Type$1 {
|
|
|
77
98
|
NOTHING = "NOTHING"
|
|
78
99
|
}
|
|
79
100
|
interface Coupon$2 extends CouponDiscountTypeOptionsOneOf$2, CouponScopeOrMinSubtotalOneOf$2 {
|
|
80
|
-
/** Options for fixed amount discount
|
|
101
|
+
/** Options for fixed amount discount. */
|
|
81
102
|
fixedAmountOptions?: FixedAmountDiscount$2;
|
|
82
|
-
/** Options for percentage discount
|
|
103
|
+
/** Options for percentage discount. */
|
|
83
104
|
percentageOptions?: PercentageDiscount$2;
|
|
84
105
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
85
106
|
minimumSubtotal?: number;
|
|
86
|
-
/** Specifies the type of line items this coupon will apply to. */
|
|
107
|
+
/** Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */
|
|
87
108
|
scope?: CouponScope$2;
|
|
88
109
|
/** Coupon name. */
|
|
89
110
|
name?: string;
|
|
90
|
-
/**
|
|
111
|
+
/**
|
|
112
|
+
* Coupon discount type.
|
|
113
|
+
*
|
|
114
|
+
* - `UNKNOWN`: Unknown discount type.
|
|
115
|
+
* - `FIXED_AMOUNT`: Discount as a fixed amount.
|
|
116
|
+
* - `PERCENTAGE`: Discount as a perctange.
|
|
117
|
+
* - `FREE_SHIPPING`: Free shipping. If `true`, the coupon applies to all items in all `namespaces`.
|
|
118
|
+
*/
|
|
91
119
|
discountType?: DiscountType$2;
|
|
92
|
-
/**
|
|
120
|
+
/**
|
|
121
|
+
* Whether the coupon is limited to one item.
|
|
122
|
+
* If `true` and a customer pays for multiple items, the discount applies to only the lowest priced item.
|
|
123
|
+
* Coupons with a bookings `scope.namespace` are always limited to one item.
|
|
124
|
+
*/
|
|
93
125
|
limitedToOneItem?: boolean | null;
|
|
94
|
-
/**
|
|
126
|
+
/** Whether the coupon applies to subscription products. */
|
|
95
127
|
appliesToSubscriptions?: boolean | null;
|
|
96
|
-
/**
|
|
128
|
+
/**
|
|
129
|
+
* Specifies the amount of discounted cycles for a subscription item.
|
|
130
|
+
*
|
|
131
|
+
* - Can only be set when `scope.namespace = pricingPlans`.
|
|
132
|
+
* - If `discountedCycleCount` is empty, the coupon applies to all available cycles.
|
|
133
|
+
* - `discountedCycleCount` is ignored if `appliesToSubscriptions = true`.
|
|
134
|
+
*
|
|
135
|
+
* Max: `999`
|
|
136
|
+
*/
|
|
97
137
|
discountedCycleCount?: number | null;
|
|
98
138
|
}
|
|
99
139
|
/** @oneof */
|
|
100
140
|
interface CouponDiscountTypeOptionsOneOf$2 {
|
|
101
|
-
/** Options for fixed amount discount
|
|
141
|
+
/** Options for fixed amount discount. */
|
|
102
142
|
fixedAmountOptions?: FixedAmountDiscount$2;
|
|
103
|
-
/** Options for percentage discount
|
|
143
|
+
/** Options for percentage discount. */
|
|
104
144
|
percentageOptions?: PercentageDiscount$2;
|
|
105
145
|
}
|
|
106
146
|
/** @oneof */
|
|
107
147
|
interface CouponScopeOrMinSubtotalOneOf$2 {
|
|
108
148
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
109
149
|
minimumSubtotal?: number;
|
|
110
|
-
/** Specifies the type of line items this coupon will apply to. */
|
|
150
|
+
/** Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */
|
|
111
151
|
scope?: CouponScope$2;
|
|
112
152
|
}
|
|
113
153
|
declare enum DiscountType$2 {
|
|
@@ -121,17 +161,17 @@ declare enum DiscountType$2 {
|
|
|
121
161
|
FREE_SHIPPING = "FREE_SHIPPING"
|
|
122
162
|
}
|
|
123
163
|
interface FixedAmountDiscount$2 {
|
|
124
|
-
/**
|
|
164
|
+
/** Amount of discount as a fixed value. */
|
|
125
165
|
amount?: number;
|
|
126
166
|
}
|
|
127
167
|
interface PercentageDiscount$2 {
|
|
128
|
-
/** Percentage
|
|
168
|
+
/** Percentage of discount. */
|
|
129
169
|
percentage?: number;
|
|
130
170
|
}
|
|
131
171
|
interface CouponScope$2 {
|
|
132
|
-
/**
|
|
172
|
+
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
133
173
|
namespace?: string;
|
|
134
|
-
/**
|
|
174
|
+
/** Coupon scope's applied group, for example: Event or ticket in Wix Events */
|
|
135
175
|
group?: Group$2;
|
|
136
176
|
}
|
|
137
177
|
interface Group$2 {
|
|
@@ -141,7 +181,7 @@ interface Group$2 {
|
|
|
141
181
|
entityId?: string | null;
|
|
142
182
|
}
|
|
143
183
|
interface LoyaltyPoints$2 {
|
|
144
|
-
/**
|
|
184
|
+
/** Number of loyalty points to give. */
|
|
145
185
|
amount?: number;
|
|
146
186
|
}
|
|
147
187
|
declare enum Action {
|
|
@@ -159,9 +199,20 @@ declare enum Action {
|
|
|
159
199
|
RESTAURANT_ORDER_PLACED = "RESTAURANT_ORDER_PLACED"
|
|
160
200
|
}
|
|
161
201
|
interface Emails {
|
|
162
|
-
/**
|
|
202
|
+
/**
|
|
203
|
+
* Encourage customers to refer their friends via email. Select which apps to enable.
|
|
204
|
+
*
|
|
205
|
+
* Available apps:
|
|
206
|
+
*
|
|
207
|
+
* - `UNKNOWN`: Unknown email.
|
|
208
|
+
* - `STORES`: Send an email to customers who've placed an order with stores.
|
|
209
|
+
* - `PRICING_PLANS`: Send an email to customers who've placed an order with pricing plans.
|
|
210
|
+
* - `EVENTS`: Send an email to customers who've placed an order with events.
|
|
211
|
+
* - `BOOKINGS`: Send an email to customers who've placed an order with bookings.
|
|
212
|
+
* - `RESTAURANTS`: Send an email to customers who've placed an order with restaurants.
|
|
213
|
+
*/
|
|
163
214
|
encourageToReferFriends?: App[];
|
|
164
|
-
/**
|
|
215
|
+
/** Whether to notify customers about their referral reward email. Set to `true` to enable email notifications. */
|
|
165
216
|
notifyCustomersAboutReward?: boolean;
|
|
166
217
|
}
|
|
167
218
|
declare enum App {
|
|
@@ -180,7 +231,7 @@ declare enum App {
|
|
|
180
231
|
}
|
|
181
232
|
interface PremiumFeatures {
|
|
182
233
|
/**
|
|
183
|
-
*
|
|
234
|
+
* Whether the user has the referral program feature.
|
|
184
235
|
* @readonly
|
|
185
236
|
*/
|
|
186
237
|
referralProgram?: boolean;
|
|
@@ -188,23 +239,23 @@ interface PremiumFeatures {
|
|
|
188
239
|
interface GetReferralProgramRequest {
|
|
189
240
|
}
|
|
190
241
|
interface GetReferralProgramResponse {
|
|
191
|
-
/**
|
|
242
|
+
/** Retrieved referral program. */
|
|
192
243
|
referralProgram?: ReferralProgram;
|
|
193
244
|
}
|
|
194
245
|
interface BulkGetReferralProgramRequest {
|
|
195
246
|
}
|
|
196
247
|
interface BulkGetReferralProgramResponse {
|
|
197
|
-
/**
|
|
248
|
+
/** Retrieved referral programs. */
|
|
198
249
|
programInSites?: ProgramInSite[];
|
|
199
250
|
}
|
|
200
251
|
interface ProgramInSite {
|
|
201
252
|
/** Metasite ID. */
|
|
202
253
|
metaSiteId?: string;
|
|
203
|
-
/**
|
|
254
|
+
/** Retrieved referral program. */
|
|
204
255
|
referralProgram?: ReferralProgram;
|
|
205
256
|
}
|
|
206
257
|
interface QueryReferralProgramsRequest {
|
|
207
|
-
/** Query
|
|
258
|
+
/** Query options. */
|
|
208
259
|
query: CursorQuery$4;
|
|
209
260
|
}
|
|
210
261
|
interface CursorQuery$4 extends CursorQueryPagingMethodOneOf$4 {
|
|
@@ -258,13 +309,13 @@ interface CursorPaging$4 {
|
|
|
258
309
|
cursor?: string | null;
|
|
259
310
|
}
|
|
260
311
|
interface QueryReferralProgramsResponse {
|
|
261
|
-
/**
|
|
312
|
+
/** Referral programs matching the query. */
|
|
262
313
|
referralPrograms?: ReferralProgram[];
|
|
263
314
|
/** Paging metadata. */
|
|
264
315
|
pagingMetadata?: CursorPagingMetadata$4;
|
|
265
316
|
}
|
|
266
317
|
interface CursorPagingMetadata$4 {
|
|
267
|
-
/** Number of items returned in
|
|
318
|
+
/** Number of items returned in current page. */
|
|
268
319
|
count?: number | null;
|
|
269
320
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
270
321
|
cursors?: Cursors$4;
|
|
@@ -283,56 +334,56 @@ interface Cursors$4 {
|
|
|
283
334
|
prev?: string | null;
|
|
284
335
|
}
|
|
285
336
|
interface UpdateReferralProgramRequest {
|
|
286
|
-
/**
|
|
337
|
+
/** Referral program to update. Include the latest `revision` for a successful update. */
|
|
287
338
|
referralProgram: ReferralProgram;
|
|
288
339
|
}
|
|
289
340
|
interface UpdateReferralProgramResponse {
|
|
290
|
-
/**
|
|
341
|
+
/** Updated referral program. */
|
|
291
342
|
referralProgram?: ReferralProgram;
|
|
292
343
|
}
|
|
293
344
|
interface ActivateReferralProgramRequest {
|
|
294
345
|
}
|
|
295
346
|
interface ActivateReferralProgramResponse {
|
|
296
|
-
/**
|
|
347
|
+
/** Activated referral program. */
|
|
297
348
|
referralProgram?: ReferralProgram;
|
|
298
349
|
}
|
|
299
350
|
interface PauseReferralProgramRequest {
|
|
300
351
|
}
|
|
301
352
|
interface PauseReferralProgramResponse {
|
|
302
|
-
/**
|
|
353
|
+
/** Paused referral program. */
|
|
303
354
|
referralProgram?: ReferralProgram;
|
|
304
355
|
}
|
|
305
356
|
interface GetAISocialMediaPostsSuggestionsRequest {
|
|
306
|
-
/**
|
|
357
|
+
/** Topic to generate social media post suggestions for. */
|
|
307
358
|
topic?: string;
|
|
308
359
|
}
|
|
309
360
|
interface GetAISocialMediaPostsSuggestionsResponse {
|
|
310
|
-
/**
|
|
361
|
+
/** Generated social media post suggestions. */
|
|
311
362
|
suggestions?: AISocialMediaPostSuggestion[];
|
|
312
|
-
/**
|
|
363
|
+
/** Referral URL to refer friends. */
|
|
313
364
|
referFriendsPageUrl?: string | null;
|
|
314
365
|
}
|
|
315
366
|
interface AISocialMediaPostSuggestion {
|
|
316
|
-
/**
|
|
367
|
+
/** Suggested post content. */
|
|
317
368
|
postContent?: string;
|
|
318
|
-
/**
|
|
369
|
+
/** Suggested hashtags. */
|
|
319
370
|
hashtags?: string[];
|
|
320
371
|
}
|
|
321
372
|
interface GenerateAISocialMediaPostsSuggestionsRequest {
|
|
322
|
-
/**
|
|
373
|
+
/** Topic to generate social media post suggestions for. */
|
|
323
374
|
topic?: string;
|
|
324
375
|
}
|
|
325
376
|
interface GenerateAISocialMediaPostsSuggestionsResponse {
|
|
326
|
-
/**
|
|
377
|
+
/** Generated social media post suggestions. */
|
|
327
378
|
suggestions?: AISocialMediaPostSuggestion[];
|
|
328
|
-
/**
|
|
379
|
+
/** Referral URL to refer friends. */
|
|
329
380
|
referFriendsPageUrl?: string | null;
|
|
330
381
|
}
|
|
331
382
|
interface GetReferralProgramPremiumFeaturesRequest {
|
|
332
383
|
}
|
|
333
384
|
interface GetReferralProgramPremiumFeaturesResponse {
|
|
334
385
|
/**
|
|
335
|
-
*
|
|
386
|
+
* Whether the site has the referral program feature enabled.
|
|
336
387
|
* @readonly
|
|
337
388
|
*/
|
|
338
389
|
referralProgram?: boolean;
|
|
@@ -389,7 +440,7 @@ interface DomainEventBodyOneOf$4 {
|
|
|
389
440
|
interface EntityCreatedEvent$4 {
|
|
390
441
|
entity?: string;
|
|
391
442
|
}
|
|
392
|
-
interface RestoreInfo {
|
|
443
|
+
interface RestoreInfo$1 {
|
|
393
444
|
deletedDate?: Date;
|
|
394
445
|
}
|
|
395
446
|
interface EntityUpdatedEvent$4 {
|
|
@@ -1424,11 +1475,11 @@ interface ReferralProgramsQueryBuilder {
|
|
|
1424
1475
|
find: () => Promise<ReferralProgramsQueryResult>;
|
|
1425
1476
|
}
|
|
1426
1477
|
interface GetAiSocialMediaPostsSuggestionsOptions {
|
|
1427
|
-
/**
|
|
1478
|
+
/** Topic to generate social media post suggestions for. */
|
|
1428
1479
|
topic?: string;
|
|
1429
1480
|
}
|
|
1430
1481
|
interface GenerateAiSocialMediaPostsSuggestionsOptions {
|
|
1431
|
-
/**
|
|
1482
|
+
/** Topic to generate social media post suggestions for. */
|
|
1432
1483
|
topic?: string;
|
|
1433
1484
|
}
|
|
1434
1485
|
|
|
@@ -1476,19 +1527,39 @@ declare global {
|
|
|
1476
1527
|
}
|
|
1477
1528
|
}
|
|
1478
1529
|
|
|
1530
|
+
declare function getReferralProgram$1(httpClient: HttpClient): () => Promise<GetReferralProgramResponse & GetReferralProgramResponseNonNullableFields>;
|
|
1531
|
+
declare function queryReferralPrograms$1(httpClient: HttpClient): () => ReferralProgramsQueryBuilder;
|
|
1532
|
+
declare function updateReferralProgram$1(httpClient: HttpClient): (referralProgram: ReferralProgram) => Promise<UpdateReferralProgramResponse & UpdateReferralProgramResponseNonNullableFields>;
|
|
1533
|
+
declare function activateReferralProgram$1(httpClient: HttpClient): () => Promise<ActivateReferralProgramResponse & ActivateReferralProgramResponseNonNullableFields>;
|
|
1534
|
+
declare function pauseReferralProgram$1(httpClient: HttpClient): () => Promise<PauseReferralProgramResponse & PauseReferralProgramResponseNonNullableFields>;
|
|
1535
|
+
declare function getAiSocialMediaPostsSuggestions$1(httpClient: HttpClient): (options?: GetAiSocialMediaPostsSuggestionsOptions) => Promise<GetAISocialMediaPostsSuggestionsResponse & GetAISocialMediaPostsSuggestionsResponseNonNullableFields>;
|
|
1536
|
+
declare function generateAiSocialMediaPostsSuggestions$1(httpClient: HttpClient): (options?: GenerateAiSocialMediaPostsSuggestionsOptions) => Promise<GenerateAISocialMediaPostsSuggestionsResponse & GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields>;
|
|
1537
|
+
declare function getReferralProgramPremiumFeatures$1(httpClient: HttpClient): () => Promise<GetReferralProgramPremiumFeaturesResponse & GetReferralProgramPremiumFeaturesResponseNonNullableFields>;
|
|
1538
|
+
declare const onProgramUpdated$1: EventDefinition<ProgramUpdatedEnvelope, "wix.loyalty.referral.v1.program_updated">;
|
|
1539
|
+
|
|
1479
1540
|
declare function createRESTModule$4<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
1480
1541
|
|
|
1481
1542
|
declare function createEventModule$3<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1482
1543
|
|
|
1483
|
-
|
|
1484
|
-
declare const
|
|
1485
|
-
|
|
1486
|
-
declare const
|
|
1487
|
-
|
|
1488
|
-
declare const
|
|
1489
|
-
|
|
1490
|
-
declare const
|
|
1491
|
-
|
|
1544
|
+
type _publicGetReferralProgramType = typeof getReferralProgram$1;
|
|
1545
|
+
declare const getReferralProgram: ReturnType<typeof createRESTModule$4<_publicGetReferralProgramType>>;
|
|
1546
|
+
type _publicQueryReferralProgramsType = typeof queryReferralPrograms$1;
|
|
1547
|
+
declare const queryReferralPrograms: ReturnType<typeof createRESTModule$4<_publicQueryReferralProgramsType>>;
|
|
1548
|
+
type _publicUpdateReferralProgramType = typeof updateReferralProgram$1;
|
|
1549
|
+
declare const updateReferralProgram: ReturnType<typeof createRESTModule$4<_publicUpdateReferralProgramType>>;
|
|
1550
|
+
type _publicActivateReferralProgramType = typeof activateReferralProgram$1;
|
|
1551
|
+
declare const activateReferralProgram: ReturnType<typeof createRESTModule$4<_publicActivateReferralProgramType>>;
|
|
1552
|
+
type _publicPauseReferralProgramType = typeof pauseReferralProgram$1;
|
|
1553
|
+
declare const pauseReferralProgram: ReturnType<typeof createRESTModule$4<_publicPauseReferralProgramType>>;
|
|
1554
|
+
type _publicGetAiSocialMediaPostsSuggestionsType = typeof getAiSocialMediaPostsSuggestions$1;
|
|
1555
|
+
declare const getAiSocialMediaPostsSuggestions: ReturnType<typeof createRESTModule$4<_publicGetAiSocialMediaPostsSuggestionsType>>;
|
|
1556
|
+
type _publicGenerateAiSocialMediaPostsSuggestionsType = typeof generateAiSocialMediaPostsSuggestions$1;
|
|
1557
|
+
declare const generateAiSocialMediaPostsSuggestions: ReturnType<typeof createRESTModule$4<_publicGenerateAiSocialMediaPostsSuggestionsType>>;
|
|
1558
|
+
type _publicGetReferralProgramPremiumFeaturesType = typeof getReferralProgramPremiumFeatures$1;
|
|
1559
|
+
declare const getReferralProgramPremiumFeatures: ReturnType<typeof createRESTModule$4<_publicGetReferralProgramPremiumFeaturesType>>;
|
|
1560
|
+
|
|
1561
|
+
type _publicOnProgramUpdatedType = typeof onProgramUpdated$1;
|
|
1562
|
+
declare const onProgramUpdated: ReturnType<typeof createEventModule$3<_publicOnProgramUpdatedType>>;
|
|
1492
1563
|
|
|
1493
1564
|
type index_d$4_AISocialMediaPostSuggestion = AISocialMediaPostSuggestion;
|
|
1494
1565
|
type index_d$4_Action = Action;
|
|
@@ -1566,7 +1637,6 @@ type index_d$4_RecurringChargeSucceeded = RecurringChargeSucceeded;
|
|
|
1566
1637
|
type index_d$4_ReferralProgram = ReferralProgram;
|
|
1567
1638
|
type index_d$4_ReferralProgramsQueryBuilder = ReferralProgramsQueryBuilder;
|
|
1568
1639
|
type index_d$4_ReferralProgramsQueryResult = ReferralProgramsQueryResult;
|
|
1569
|
-
type index_d$4_RestoreInfo = RestoreInfo;
|
|
1570
1640
|
type index_d$4_ServiceProvisioned = ServiceProvisioned;
|
|
1571
1641
|
type index_d$4_ServiceRemoved = ServiceRemoved;
|
|
1572
1642
|
type index_d$4_SiteCreated = SiteCreated;
|
|
@@ -1604,6 +1674,15 @@ declare const index_d$4_UnassignReason: typeof UnassignReason;
|
|
|
1604
1674
|
type index_d$4_UpdateReferralProgramRequest = UpdateReferralProgramRequest;
|
|
1605
1675
|
type index_d$4_UpdateReferralProgramResponse = UpdateReferralProgramResponse;
|
|
1606
1676
|
type index_d$4_UpdateReferralProgramResponseNonNullableFields = UpdateReferralProgramResponseNonNullableFields;
|
|
1677
|
+
type index_d$4__publicActivateReferralProgramType = _publicActivateReferralProgramType;
|
|
1678
|
+
type index_d$4__publicGenerateAiSocialMediaPostsSuggestionsType = _publicGenerateAiSocialMediaPostsSuggestionsType;
|
|
1679
|
+
type index_d$4__publicGetAiSocialMediaPostsSuggestionsType = _publicGetAiSocialMediaPostsSuggestionsType;
|
|
1680
|
+
type index_d$4__publicGetReferralProgramPremiumFeaturesType = _publicGetReferralProgramPremiumFeaturesType;
|
|
1681
|
+
type index_d$4__publicGetReferralProgramType = _publicGetReferralProgramType;
|
|
1682
|
+
type index_d$4__publicOnProgramUpdatedType = _publicOnProgramUpdatedType;
|
|
1683
|
+
type index_d$4__publicPauseReferralProgramType = _publicPauseReferralProgramType;
|
|
1684
|
+
type index_d$4__publicQueryReferralProgramsType = _publicQueryReferralProgramsType;
|
|
1685
|
+
type index_d$4__publicUpdateReferralProgramType = _publicUpdateReferralProgramType;
|
|
1607
1686
|
declare const index_d$4_activateReferralProgram: typeof activateReferralProgram;
|
|
1608
1687
|
declare const index_d$4_generateAiSocialMediaPostsSuggestions: typeof generateAiSocialMediaPostsSuggestions;
|
|
1609
1688
|
declare const index_d$4_getAiSocialMediaPostsSuggestions: typeof getAiSocialMediaPostsSuggestions;
|
|
@@ -1614,7 +1693,7 @@ declare const index_d$4_pauseReferralProgram: typeof pauseReferralProgram;
|
|
|
1614
1693
|
declare const index_d$4_queryReferralPrograms: typeof queryReferralPrograms;
|
|
1615
1694
|
declare const index_d$4_updateReferralProgram: typeof updateReferralProgram;
|
|
1616
1695
|
declare namespace index_d$4 {
|
|
1617
|
-
export { type index_d$4_AISocialMediaPostSuggestion as AISocialMediaPostSuggestion, index_d$4_Action as Action, type ActionEvent$4 as ActionEvent, type index_d$4_ActivateReferralProgramRequest as ActivateReferralProgramRequest, type index_d$4_ActivateReferralProgramResponse as ActivateReferralProgramResponse, type index_d$4_ActivateReferralProgramResponseNonNullableFields as ActivateReferralProgramResponseNonNullableFields, index_d$4_App as App, type index_d$4_Asset as Asset, type BaseEventMetadata$3 as BaseEventMetadata, type index_d$4_BillingReference as BillingReference, type index_d$4_BulkGetReferralProgramRequest as BulkGetReferralProgramRequest, type index_d$4_BulkGetReferralProgramResponse as BulkGetReferralProgramResponse, type index_d$4_CancellationDetails as CancellationDetails, index_d$4_ContractSwitchReason as ContractSwitchReason, index_d$4_ContractSwitchType as ContractSwitchType, type index_d$4_ContractSwitched as ContractSwitched, type Coupon$2 as Coupon, type CouponDiscountTypeOptionsOneOf$2 as CouponDiscountTypeOptionsOneOf, type CouponScope$2 as CouponScope, type CouponScopeOrMinSubtotalOneOf$2 as CouponScopeOrMinSubtotalOneOf, type CursorPaging$4 as CursorPaging, type CursorPagingMetadata$4 as CursorPagingMetadata, type CursorQuery$4 as CursorQuery, type CursorQueryPagingMethodOneOf$4 as CursorQueryPagingMethodOneOf, type Cursors$4 as Cursors, type index_d$4_Cycle as Cycle, type index_d$4_CycleCycleSelectorOneOf as CycleCycleSelectorOneOf, type index_d$4_DeleteContext as DeleteContext, index_d$4_DeleteStatus as DeleteStatus, DiscountType$2 as DiscountType, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type index_d$4_Emails as Emails, type Empty$3 as Empty, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type EventMetadata$3 as EventMetadata, type FixedAmountDiscount$2 as FixedAmountDiscount, type index_d$4_GenerateAISocialMediaPostsSuggestionsRequest as GenerateAISocialMediaPostsSuggestionsRequest, type index_d$4_GenerateAISocialMediaPostsSuggestionsResponse as GenerateAISocialMediaPostsSuggestionsResponse, type index_d$4_GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields as GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields, type index_d$4_GenerateAiSocialMediaPostsSuggestionsOptions as GenerateAiSocialMediaPostsSuggestionsOptions, type index_d$4_GetAISocialMediaPostsSuggestionsRequest as GetAISocialMediaPostsSuggestionsRequest, type index_d$4_GetAISocialMediaPostsSuggestionsResponse as GetAISocialMediaPostsSuggestionsResponse, type index_d$4_GetAISocialMediaPostsSuggestionsResponseNonNullableFields as GetAISocialMediaPostsSuggestionsResponseNonNullableFields, type index_d$4_GetAiSocialMediaPostsSuggestionsOptions as GetAiSocialMediaPostsSuggestionsOptions, type index_d$4_GetReferralProgramPremiumFeaturesRequest as GetReferralProgramPremiumFeaturesRequest, type index_d$4_GetReferralProgramPremiumFeaturesResponse as GetReferralProgramPremiumFeaturesResponse, type index_d$4_GetReferralProgramPremiumFeaturesResponseNonNullableFields as GetReferralProgramPremiumFeaturesResponseNonNullableFields, type index_d$4_GetReferralProgramRequest as GetReferralProgramRequest, type index_d$4_GetReferralProgramResponse as GetReferralProgramResponse, type index_d$4_GetReferralProgramResponseNonNullableFields as GetReferralProgramResponseNonNullableFields, type Group$2 as Group, type index_d$4_HtmlSitePublished as HtmlSitePublished, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, index_d$4_Initiator as Initiator, type index_d$4_Interval as Interval, index_d$4_IntervalUnit as IntervalUnit, type LoyaltyPoints$2 as LoyaltyPoints, type MessageEnvelope$4 as MessageEnvelope, type index_d$4_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d$4_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, index_d$4_Namespace as Namespace, type index_d$4_NamespaceChanged as NamespaceChanged, type index_d$4_OneTime as OneTime, type index_d$4_Page as Page, type index_d$4_PauseReferralProgramRequest as PauseReferralProgramRequest, type index_d$4_PauseReferralProgramResponse as PauseReferralProgramResponse, type index_d$4_PauseReferralProgramResponseNonNullableFields as PauseReferralProgramResponseNonNullableFields, type PercentageDiscount$2 as PercentageDiscount, type index_d$4_PremiumFeatures as PremiumFeatures, index_d$4_PriceIncreaseTrigger as PriceIncreaseTrigger, index_d$4_ProductAdjustment as ProductAdjustment, type index_d$4_ProductPriceIncreaseData as ProductPriceIncreaseData, type index_d$4_ProgramInSite as ProgramInSite, index_d$4_ProgramStatus as ProgramStatus, type index_d$4_ProgramUpdatedEnvelope as ProgramUpdatedEnvelope, index_d$4_ProviderName as ProviderName, type index_d$4_QueryReferralProgramsRequest as QueryReferralProgramsRequest, type index_d$4_QueryReferralProgramsResponse as QueryReferralProgramsResponse, type index_d$4_QueryReferralProgramsResponseNonNullableFields as QueryReferralProgramsResponseNonNullableFields, type index_d$4_ReactivationData as ReactivationData, index_d$4_ReactivationReasonEnum as ReactivationReasonEnum, type index_d$4_RecurringChargeSucceeded as RecurringChargeSucceeded, type index_d$4_ReferralProgram as ReferralProgram, type index_d$4_ReferralProgramsQueryBuilder as ReferralProgramsQueryBuilder, type index_d$4_ReferralProgramsQueryResult as ReferralProgramsQueryResult, type
|
|
1696
|
+
export { type index_d$4_AISocialMediaPostSuggestion as AISocialMediaPostSuggestion, index_d$4_Action as Action, type ActionEvent$4 as ActionEvent, type index_d$4_ActivateReferralProgramRequest as ActivateReferralProgramRequest, type index_d$4_ActivateReferralProgramResponse as ActivateReferralProgramResponse, type index_d$4_ActivateReferralProgramResponseNonNullableFields as ActivateReferralProgramResponseNonNullableFields, index_d$4_App as App, type index_d$4_Asset as Asset, type BaseEventMetadata$3 as BaseEventMetadata, type index_d$4_BillingReference as BillingReference, type index_d$4_BulkGetReferralProgramRequest as BulkGetReferralProgramRequest, type index_d$4_BulkGetReferralProgramResponse as BulkGetReferralProgramResponse, type index_d$4_CancellationDetails as CancellationDetails, index_d$4_ContractSwitchReason as ContractSwitchReason, index_d$4_ContractSwitchType as ContractSwitchType, type index_d$4_ContractSwitched as ContractSwitched, type Coupon$2 as Coupon, type CouponDiscountTypeOptionsOneOf$2 as CouponDiscountTypeOptionsOneOf, type CouponScope$2 as CouponScope, type CouponScopeOrMinSubtotalOneOf$2 as CouponScopeOrMinSubtotalOneOf, type CursorPaging$4 as CursorPaging, type CursorPagingMetadata$4 as CursorPagingMetadata, type CursorQuery$4 as CursorQuery, type CursorQueryPagingMethodOneOf$4 as CursorQueryPagingMethodOneOf, type Cursors$4 as Cursors, type index_d$4_Cycle as Cycle, type index_d$4_CycleCycleSelectorOneOf as CycleCycleSelectorOneOf, type index_d$4_DeleteContext as DeleteContext, index_d$4_DeleteStatus as DeleteStatus, DiscountType$2 as DiscountType, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type index_d$4_Emails as Emails, type Empty$3 as Empty, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type EventMetadata$3 as EventMetadata, type FixedAmountDiscount$2 as FixedAmountDiscount, type index_d$4_GenerateAISocialMediaPostsSuggestionsRequest as GenerateAISocialMediaPostsSuggestionsRequest, type index_d$4_GenerateAISocialMediaPostsSuggestionsResponse as GenerateAISocialMediaPostsSuggestionsResponse, type index_d$4_GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields as GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields, type index_d$4_GenerateAiSocialMediaPostsSuggestionsOptions as GenerateAiSocialMediaPostsSuggestionsOptions, type index_d$4_GetAISocialMediaPostsSuggestionsRequest as GetAISocialMediaPostsSuggestionsRequest, type index_d$4_GetAISocialMediaPostsSuggestionsResponse as GetAISocialMediaPostsSuggestionsResponse, type index_d$4_GetAISocialMediaPostsSuggestionsResponseNonNullableFields as GetAISocialMediaPostsSuggestionsResponseNonNullableFields, type index_d$4_GetAiSocialMediaPostsSuggestionsOptions as GetAiSocialMediaPostsSuggestionsOptions, type index_d$4_GetReferralProgramPremiumFeaturesRequest as GetReferralProgramPremiumFeaturesRequest, type index_d$4_GetReferralProgramPremiumFeaturesResponse as GetReferralProgramPremiumFeaturesResponse, type index_d$4_GetReferralProgramPremiumFeaturesResponseNonNullableFields as GetReferralProgramPremiumFeaturesResponseNonNullableFields, type index_d$4_GetReferralProgramRequest as GetReferralProgramRequest, type index_d$4_GetReferralProgramResponse as GetReferralProgramResponse, type index_d$4_GetReferralProgramResponseNonNullableFields as GetReferralProgramResponseNonNullableFields, type Group$2 as Group, type index_d$4_HtmlSitePublished as HtmlSitePublished, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, index_d$4_Initiator as Initiator, type index_d$4_Interval as Interval, index_d$4_IntervalUnit as IntervalUnit, type LoyaltyPoints$2 as LoyaltyPoints, type MessageEnvelope$4 as MessageEnvelope, type index_d$4_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d$4_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, index_d$4_Namespace as Namespace, type index_d$4_NamespaceChanged as NamespaceChanged, type index_d$4_OneTime as OneTime, type index_d$4_Page as Page, type index_d$4_PauseReferralProgramRequest as PauseReferralProgramRequest, type index_d$4_PauseReferralProgramResponse as PauseReferralProgramResponse, type index_d$4_PauseReferralProgramResponseNonNullableFields as PauseReferralProgramResponseNonNullableFields, type PercentageDiscount$2 as PercentageDiscount, type index_d$4_PremiumFeatures as PremiumFeatures, index_d$4_PriceIncreaseTrigger as PriceIncreaseTrigger, index_d$4_ProductAdjustment as ProductAdjustment, type index_d$4_ProductPriceIncreaseData as ProductPriceIncreaseData, type index_d$4_ProgramInSite as ProgramInSite, index_d$4_ProgramStatus as ProgramStatus, type index_d$4_ProgramUpdatedEnvelope as ProgramUpdatedEnvelope, index_d$4_ProviderName as ProviderName, type index_d$4_QueryReferralProgramsRequest as QueryReferralProgramsRequest, type index_d$4_QueryReferralProgramsResponse as QueryReferralProgramsResponse, type index_d$4_QueryReferralProgramsResponseNonNullableFields as QueryReferralProgramsResponseNonNullableFields, type index_d$4_ReactivationData as ReactivationData, index_d$4_ReactivationReasonEnum as ReactivationReasonEnum, type index_d$4_RecurringChargeSucceeded as RecurringChargeSucceeded, type index_d$4_ReferralProgram as ReferralProgram, type index_d$4_ReferralProgramsQueryBuilder as ReferralProgramsQueryBuilder, type index_d$4_ReferralProgramsQueryResult as ReferralProgramsQueryResult, type RestoreInfo$1 as RestoreInfo, type Reward$2 as Reward, type RewardOptionsOneOf$1 as RewardOptionsOneOf, type index_d$4_ServiceProvisioned as ServiceProvisioned, type index_d$4_ServiceRemoved as ServiceRemoved, type index_d$4_SiteCreated as SiteCreated, index_d$4_SiteCreatedContext as SiteCreatedContext, type index_d$4_SiteDeleted as SiteDeleted, type index_d$4_SiteHardDeleted as SiteHardDeleted, type index_d$4_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d$4_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type index_d$4_SitePublished as SitePublished, type index_d$4_SiteRenamed as SiteRenamed, type index_d$4_SiteTransferred as SiteTransferred, type index_d$4_SiteUndeleted as SiteUndeleted, type index_d$4_SiteUnpublished as SiteUnpublished, SortOrder$4 as SortOrder, type Sorting$4 as Sorting, index_d$4_State as State, type index_d$4_StudioAssigned as StudioAssigned, type index_d$4_StudioUnassigned as StudioUnassigned, type index_d$4_Subscription as Subscription, type index_d$4_SubscriptionAssigned as SubscriptionAssigned, type index_d$4_SubscriptionAutoRenewTurnedOff as SubscriptionAutoRenewTurnedOff, type index_d$4_SubscriptionAutoRenewTurnedOn as SubscriptionAutoRenewTurnedOn, type index_d$4_SubscriptionCancelled as SubscriptionCancelled, type index_d$4_SubscriptionCreated as SubscriptionCreated, type index_d$4_SubscriptionEvent as SubscriptionEvent, type index_d$4_SubscriptionEventEventOneOf as SubscriptionEventEventOneOf, type index_d$4_SubscriptionNearEndOfPeriod as SubscriptionNearEndOfPeriod, type index_d$4_SubscriptionPendingChange as SubscriptionPendingChange, index_d$4_SubscriptionStatus as SubscriptionStatus, type index_d$4_SubscriptionTransferred as SubscriptionTransferred, type index_d$4_SubscriptionUnassigned as SubscriptionUnassigned, Type$1 as Type, index_d$4_UnassignReason as UnassignReason, type index_d$4_UpdateReferralProgramRequest as UpdateReferralProgramRequest, type index_d$4_UpdateReferralProgramResponse as UpdateReferralProgramResponse, type index_d$4_UpdateReferralProgramResponseNonNullableFields as UpdateReferralProgramResponseNonNullableFields, WebhookIdentityType$4 as WebhookIdentityType, type index_d$4__publicActivateReferralProgramType as _publicActivateReferralProgramType, type index_d$4__publicGenerateAiSocialMediaPostsSuggestionsType as _publicGenerateAiSocialMediaPostsSuggestionsType, type index_d$4__publicGetAiSocialMediaPostsSuggestionsType as _publicGetAiSocialMediaPostsSuggestionsType, type index_d$4__publicGetReferralProgramPremiumFeaturesType as _publicGetReferralProgramPremiumFeaturesType, type index_d$4__publicGetReferralProgramType as _publicGetReferralProgramType, type index_d$4__publicOnProgramUpdatedType as _publicOnProgramUpdatedType, type index_d$4__publicPauseReferralProgramType as _publicPauseReferralProgramType, type index_d$4__publicQueryReferralProgramsType as _publicQueryReferralProgramsType, type index_d$4__publicUpdateReferralProgramType as _publicUpdateReferralProgramType, index_d$4_activateReferralProgram as activateReferralProgram, index_d$4_generateAiSocialMediaPostsSuggestions as generateAiSocialMediaPostsSuggestions, index_d$4_getAiSocialMediaPostsSuggestions as getAiSocialMediaPostsSuggestions, index_d$4_getReferralProgram as getReferralProgram, index_d$4_getReferralProgramPremiumFeatures as getReferralProgramPremiumFeatures, index_d$4_onProgramUpdated as onProgramUpdated, index_d$4_pauseReferralProgram as pauseReferralProgram, onProgramUpdated$1 as publicOnProgramUpdated, index_d$4_queryReferralPrograms as queryReferralPrograms, index_d$4_updateReferralProgram as updateReferralProgram };
|
|
1618
1697
|
}
|
|
1619
1698
|
|
|
1620
1699
|
/** ReferralEvent. */
|
|
@@ -1746,26 +1825,32 @@ interface QueryReferralEventRequest {
|
|
|
1746
1825
|
query: CursorQuery$3;
|
|
1747
1826
|
}
|
|
1748
1827
|
interface CursorQuery$3 extends CursorQueryPagingMethodOneOf$3 {
|
|
1749
|
-
/**
|
|
1828
|
+
/**
|
|
1829
|
+
* Cursor paging options.
|
|
1830
|
+
*
|
|
1831
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
1832
|
+
*/
|
|
1750
1833
|
cursorPaging?: CursorPaging$3;
|
|
1751
1834
|
/**
|
|
1752
|
-
* Filter object
|
|
1753
|
-
*
|
|
1754
|
-
*
|
|
1755
|
-
* "fieldName2":{"$operator":"value2"}
|
|
1756
|
-
* }`
|
|
1757
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
1835
|
+
* Filter object.
|
|
1836
|
+
*
|
|
1837
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
1758
1838
|
*/
|
|
1759
1839
|
filter?: Record<string, any> | null;
|
|
1760
1840
|
/**
|
|
1761
|
-
* Sort object
|
|
1762
|
-
*
|
|
1841
|
+
* Sort object.
|
|
1842
|
+
*
|
|
1843
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
1763
1844
|
*/
|
|
1764
1845
|
sort?: Sorting$3[];
|
|
1765
1846
|
}
|
|
1766
1847
|
/** @oneof */
|
|
1767
1848
|
interface CursorQueryPagingMethodOneOf$3 {
|
|
1768
|
-
/**
|
|
1849
|
+
/**
|
|
1850
|
+
* Cursor paging options.
|
|
1851
|
+
*
|
|
1852
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
1853
|
+
*/
|
|
1769
1854
|
cursorPaging?: CursorPaging$3;
|
|
1770
1855
|
}
|
|
1771
1856
|
interface Sorting$3 {
|
|
@@ -1796,7 +1881,7 @@ interface QueryReferralEventResponse {
|
|
|
1796
1881
|
metadata?: CursorPagingMetadata$3;
|
|
1797
1882
|
}
|
|
1798
1883
|
interface CursorPagingMetadata$3 {
|
|
1799
|
-
/** Number of items returned in
|
|
1884
|
+
/** Number of items returned in current page. */
|
|
1800
1885
|
count?: number | null;
|
|
1801
1886
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
1802
1887
|
cursors?: Cursors$3;
|
|
@@ -1965,37 +2050,56 @@ declare enum Status$2 {
|
|
|
1965
2050
|
DELETED = "DELETED"
|
|
1966
2051
|
}
|
|
1967
2052
|
interface Coupon$1 extends CouponDiscountTypeOptionsOneOf$1, CouponScopeOrMinSubtotalOneOf$1 {
|
|
1968
|
-
/** Options for fixed amount discount
|
|
2053
|
+
/** Options for fixed amount discount. */
|
|
1969
2054
|
fixedAmountOptions?: FixedAmountDiscount$1;
|
|
1970
|
-
/** Options for percentage discount
|
|
2055
|
+
/** Options for percentage discount. */
|
|
1971
2056
|
percentageOptions?: PercentageDiscount$1;
|
|
1972
2057
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
1973
2058
|
minimumSubtotal?: number;
|
|
1974
|
-
/** Specifies the type of line items this coupon will apply to. */
|
|
2059
|
+
/** Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */
|
|
1975
2060
|
scope?: CouponScope$1;
|
|
1976
2061
|
/** Coupon name. */
|
|
1977
2062
|
name?: string;
|
|
1978
|
-
/**
|
|
2063
|
+
/**
|
|
2064
|
+
* Coupon discount type.
|
|
2065
|
+
*
|
|
2066
|
+
* - `UNKNOWN`: Unknown discount type.
|
|
2067
|
+
* - `FIXED_AMOUNT`: Discount as a fixed amount.
|
|
2068
|
+
* - `PERCENTAGE`: Discount as a perctange.
|
|
2069
|
+
* - `FREE_SHIPPING`: Free shipping. If `true`, the coupon applies to all items in all `namespaces`.
|
|
2070
|
+
*/
|
|
1979
2071
|
discountType?: DiscountType$1;
|
|
1980
|
-
/**
|
|
2072
|
+
/**
|
|
2073
|
+
* Whether the coupon is limited to one item.
|
|
2074
|
+
* If `true` and a customer pays for multiple items, the discount applies to only the lowest priced item.
|
|
2075
|
+
* Coupons with a bookings `scope.namespace` are always limited to one item.
|
|
2076
|
+
*/
|
|
1981
2077
|
limitedToOneItem?: boolean | null;
|
|
1982
|
-
/**
|
|
2078
|
+
/** Whether the coupon applies to subscription products. */
|
|
1983
2079
|
appliesToSubscriptions?: boolean | null;
|
|
1984
|
-
/**
|
|
2080
|
+
/**
|
|
2081
|
+
* Specifies the amount of discounted cycles for a subscription item.
|
|
2082
|
+
*
|
|
2083
|
+
* - Can only be set when `scope.namespace = pricingPlans`.
|
|
2084
|
+
* - If `discountedCycleCount` is empty, the coupon applies to all available cycles.
|
|
2085
|
+
* - `discountedCycleCount` is ignored if `appliesToSubscriptions = true`.
|
|
2086
|
+
*
|
|
2087
|
+
* Max: `999`
|
|
2088
|
+
*/
|
|
1985
2089
|
discountedCycleCount?: number | null;
|
|
1986
2090
|
}
|
|
1987
2091
|
/** @oneof */
|
|
1988
2092
|
interface CouponDiscountTypeOptionsOneOf$1 {
|
|
1989
|
-
/** Options for fixed amount discount
|
|
2093
|
+
/** Options for fixed amount discount. */
|
|
1990
2094
|
fixedAmountOptions?: FixedAmountDiscount$1;
|
|
1991
|
-
/** Options for percentage discount
|
|
2095
|
+
/** Options for percentage discount. */
|
|
1992
2096
|
percentageOptions?: PercentageDiscount$1;
|
|
1993
2097
|
}
|
|
1994
2098
|
/** @oneof */
|
|
1995
2099
|
interface CouponScopeOrMinSubtotalOneOf$1 {
|
|
1996
2100
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
1997
2101
|
minimumSubtotal?: number;
|
|
1998
|
-
/** Specifies the type of line items this coupon will apply to. */
|
|
2102
|
+
/** Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */
|
|
1999
2103
|
scope?: CouponScope$1;
|
|
2000
2104
|
}
|
|
2001
2105
|
declare enum DiscountType$1 {
|
|
@@ -2009,17 +2113,17 @@ declare enum DiscountType$1 {
|
|
|
2009
2113
|
FREE_SHIPPING = "FREE_SHIPPING"
|
|
2010
2114
|
}
|
|
2011
2115
|
interface FixedAmountDiscount$1 {
|
|
2012
|
-
/**
|
|
2116
|
+
/** Amount of discount as a fixed value. */
|
|
2013
2117
|
amount?: number;
|
|
2014
2118
|
}
|
|
2015
2119
|
interface PercentageDiscount$1 {
|
|
2016
|
-
/** Percentage
|
|
2120
|
+
/** Percentage of discount. */
|
|
2017
2121
|
percentage?: number;
|
|
2018
2122
|
}
|
|
2019
2123
|
interface CouponScope$1 {
|
|
2020
|
-
/**
|
|
2124
|
+
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
2021
2125
|
namespace?: string;
|
|
2022
|
-
/**
|
|
2126
|
+
/** Coupon scope's applied group, for example: Event or ticket in Wix Events */
|
|
2023
2127
|
group?: Group$1;
|
|
2024
2128
|
}
|
|
2025
2129
|
interface Group$1 {
|
|
@@ -2063,7 +2167,7 @@ interface DomainEvent$3 extends DomainEventBodyOneOf$3 {
|
|
|
2063
2167
|
slug?: string;
|
|
2064
2168
|
/** ID of the entity associated with the event. */
|
|
2065
2169
|
entityId?: string;
|
|
2066
|
-
/** Event timestamp. */
|
|
2170
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
2067
2171
|
eventTime?: Date;
|
|
2068
2172
|
/**
|
|
2069
2173
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -2092,7 +2196,7 @@ interface DomainEventBodyOneOf$3 {
|
|
|
2092
2196
|
interface EntityCreatedEvent$3 {
|
|
2093
2197
|
entity?: string;
|
|
2094
2198
|
}
|
|
2095
|
-
interface
|
|
2199
|
+
interface RestoreInfo {
|
|
2096
2200
|
deletedDate?: Date;
|
|
2097
2201
|
}
|
|
2098
2202
|
interface EntityUpdatedEvent$3 {
|
|
@@ -2311,7 +2415,7 @@ interface EventMetadata$2 extends BaseEventMetadata$2 {
|
|
|
2311
2415
|
slug?: string;
|
|
2312
2416
|
/** ID of the entity associated with the event. */
|
|
2313
2417
|
entityId?: string;
|
|
2314
|
-
/** Event timestamp. */
|
|
2418
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
2315
2419
|
eventTime?: Date;
|
|
2316
2420
|
/**
|
|
2317
2421
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -2419,16 +2523,30 @@ interface QueryReferredFriendActionsOptions {
|
|
|
2419
2523
|
contactIds?: string[];
|
|
2420
2524
|
}
|
|
2421
2525
|
|
|
2526
|
+
declare function getReferralEvent$1(httpClient: HttpClient): (referralEventId: string) => Promise<ReferralEvent & ReferralEventNonNullableFields>;
|
|
2527
|
+
declare function queryReferralEvent$1(httpClient: HttpClient): () => ReferralEventsQueryBuilder;
|
|
2528
|
+
declare function getReferralStatistics$1(httpClient: HttpClient): () => Promise<GetReferralStatisticsResponse & GetReferralStatisticsResponseNonNullableFields>;
|
|
2529
|
+
declare function queryReferringCustomerTotals$1(httpClient: HttpClient): (options?: QueryReferringCustomerTotalsOptions) => Promise<QueryReferringCustomerTotalsResponse & QueryReferringCustomerTotalsResponseNonNullableFields>;
|
|
2530
|
+
declare function queryReferredFriendActions$1(httpClient: HttpClient): (options?: QueryReferredFriendActionsOptions) => Promise<QueryReferredFriendActionsResponse & QueryReferredFriendActionsResponseNonNullableFields>;
|
|
2531
|
+
declare const onReferralEventCreated$1: EventDefinition<ReferralEventCreatedEnvelope, "wix.loyalty.referral.v1.referral_event_created">;
|
|
2532
|
+
|
|
2422
2533
|
declare function createRESTModule$3<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
2423
2534
|
|
|
2424
2535
|
declare function createEventModule$2<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
2425
2536
|
|
|
2426
|
-
|
|
2427
|
-
declare const
|
|
2428
|
-
|
|
2429
|
-
declare const
|
|
2430
|
-
|
|
2431
|
-
declare const
|
|
2537
|
+
type _publicGetReferralEventType = typeof getReferralEvent$1;
|
|
2538
|
+
declare const getReferralEvent: ReturnType<typeof createRESTModule$3<_publicGetReferralEventType>>;
|
|
2539
|
+
type _publicQueryReferralEventType = typeof queryReferralEvent$1;
|
|
2540
|
+
declare const queryReferralEvent: ReturnType<typeof createRESTModule$3<_publicQueryReferralEventType>>;
|
|
2541
|
+
type _publicGetReferralStatisticsType = typeof getReferralStatistics$1;
|
|
2542
|
+
declare const getReferralStatistics: ReturnType<typeof createRESTModule$3<_publicGetReferralStatisticsType>>;
|
|
2543
|
+
type _publicQueryReferringCustomerTotalsType = typeof queryReferringCustomerTotals$1;
|
|
2544
|
+
declare const queryReferringCustomerTotals: ReturnType<typeof createRESTModule$3<_publicQueryReferringCustomerTotalsType>>;
|
|
2545
|
+
type _publicQueryReferredFriendActionsType = typeof queryReferredFriendActions$1;
|
|
2546
|
+
declare const queryReferredFriendActions: ReturnType<typeof createRESTModule$3<_publicQueryReferredFriendActionsType>>;
|
|
2547
|
+
|
|
2548
|
+
type _publicOnReferralEventCreatedType = typeof onReferralEventCreated$1;
|
|
2549
|
+
declare const onReferralEventCreated: ReturnType<typeof createEventModule$2<_publicOnReferralEventCreatedType>>;
|
|
2432
2550
|
|
|
2433
2551
|
type index_d$3_CreateReferralEventRequest = CreateReferralEventRequest;
|
|
2434
2552
|
type index_d$3_CreateReferralEventResponse = CreateReferralEventResponse;
|
|
@@ -2460,12 +2578,19 @@ type index_d$3_ReferredFriendActionEvent = ReferredFriendActionEvent;
|
|
|
2460
2578
|
type index_d$3_ReferredFriendActionRewardTypeOptionsOneOf = ReferredFriendActionRewardTypeOptionsOneOf;
|
|
2461
2579
|
type index_d$3_ReferredFriendSignupEvent = ReferredFriendSignupEvent;
|
|
2462
2580
|
type index_d$3_ReferringCustomerTotal = ReferringCustomerTotal;
|
|
2581
|
+
type index_d$3_RestoreInfo = RestoreInfo;
|
|
2463
2582
|
type index_d$3_RewardEvent = RewardEvent;
|
|
2464
2583
|
type index_d$3_RewardEventReceiverOneOf = RewardEventReceiverOneOf;
|
|
2465
2584
|
type index_d$3_Trigger = Trigger;
|
|
2466
2585
|
type index_d$3_V1ActionEvent = V1ActionEvent;
|
|
2467
2586
|
type index_d$3_V1SuccessfulReferralEvent = V1SuccessfulReferralEvent;
|
|
2468
2587
|
type index_d$3_V1Trigger = V1Trigger;
|
|
2588
|
+
type index_d$3__publicGetReferralEventType = _publicGetReferralEventType;
|
|
2589
|
+
type index_d$3__publicGetReferralStatisticsType = _publicGetReferralStatisticsType;
|
|
2590
|
+
type index_d$3__publicOnReferralEventCreatedType = _publicOnReferralEventCreatedType;
|
|
2591
|
+
type index_d$3__publicQueryReferralEventType = _publicQueryReferralEventType;
|
|
2592
|
+
type index_d$3__publicQueryReferredFriendActionsType = _publicQueryReferredFriendActionsType;
|
|
2593
|
+
type index_d$3__publicQueryReferringCustomerTotalsType = _publicQueryReferringCustomerTotalsType;
|
|
2469
2594
|
declare const index_d$3_getReferralEvent: typeof getReferralEvent;
|
|
2470
2595
|
declare const index_d$3_getReferralStatistics: typeof getReferralStatistics;
|
|
2471
2596
|
declare const index_d$3_onReferralEventCreated: typeof onReferralEventCreated;
|
|
@@ -2473,7 +2598,7 @@ declare const index_d$3_queryReferralEvent: typeof queryReferralEvent;
|
|
|
2473
2598
|
declare const index_d$3_queryReferredFriendActions: typeof queryReferredFriendActions;
|
|
2474
2599
|
declare const index_d$3_queryReferringCustomerTotals: typeof queryReferringCustomerTotals;
|
|
2475
2600
|
declare namespace index_d$3 {
|
|
2476
|
-
export { type ActionEvent$3 as ActionEvent, type BaseEventMetadata$2 as BaseEventMetadata, type Coupon$1 as Coupon, type CouponDiscountTypeOptionsOneOf$1 as CouponDiscountTypeOptionsOneOf, type CouponScope$1 as CouponScope, type CouponScopeOrMinSubtotalOneOf$1 as CouponScopeOrMinSubtotalOneOf, type index_d$3_CreateReferralEventRequest as CreateReferralEventRequest, type index_d$3_CreateReferralEventResponse as CreateReferralEventResponse, type CursorPaging$3 as CursorPaging, type CursorPagingMetadata$3 as CursorPagingMetadata, type CursorQuery$3 as CursorQuery, type CursorQueryPagingMethodOneOf$3 as CursorQueryPagingMethodOneOf, type Cursors$3 as Cursors, DiscountType$1 as DiscountType, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type Empty$2 as Empty, type EntityCreatedEvent$3 as EntityCreatedEvent, type EntityDeletedEvent$3 as EntityDeletedEvent, type EntityUpdatedEvent$3 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type FixedAmountDiscount$1 as FixedAmountDiscount, type index_d$3_GetReferralEventRequest as GetReferralEventRequest, type index_d$3_GetReferralEventResponse as GetReferralEventResponse, type index_d$3_GetReferralEventResponseNonNullableFields as GetReferralEventResponseNonNullableFields, type index_d$3_GetReferralStatisticsRequest as GetReferralStatisticsRequest, type index_d$3_GetReferralStatisticsResponse as GetReferralStatisticsResponse, type index_d$3_GetReferralStatisticsResponseNonNullableFields as GetReferralStatisticsResponseNonNullableFields, type Group$1 as Group, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type LoyaltyPoints$1 as LoyaltyPoints, type MessageEnvelope$3 as MessageEnvelope, type PercentageDiscount$1 as PercentageDiscount, type index_d$3_QueryReferralEventRequest as QueryReferralEventRequest, type index_d$3_QueryReferralEventResponse as QueryReferralEventResponse, type index_d$3_QueryReferralEventResponseNonNullableFields as QueryReferralEventResponseNonNullableFields, type index_d$3_QueryReferredFriendActionsOptions as QueryReferredFriendActionsOptions, type index_d$3_QueryReferredFriendActionsRequest as QueryReferredFriendActionsRequest, type index_d$3_QueryReferredFriendActionsResponse as QueryReferredFriendActionsResponse, type index_d$3_QueryReferredFriendActionsResponseNonNullableFields as QueryReferredFriendActionsResponseNonNullableFields, type index_d$3_QueryReferringCustomerTotalsOptions as QueryReferringCustomerTotalsOptions, type index_d$3_QueryReferringCustomerTotalsRequest as QueryReferringCustomerTotalsRequest, type index_d$3_QueryReferringCustomerTotalsResponse as QueryReferringCustomerTotalsResponse, type index_d$3_QueryReferringCustomerTotalsResponseNonNullableFields as QueryReferringCustomerTotalsResponseNonNullableFields, type index_d$3_ReferralEvent as ReferralEvent, type index_d$3_ReferralEventCreatedEnvelope as ReferralEventCreatedEnvelope, type index_d$3_ReferralEventEventTypeOneOf as ReferralEventEventTypeOneOf, type index_d$3_ReferralEventNonNullableFields as ReferralEventNonNullableFields, type index_d$3_ReferralEventsQueryBuilder as ReferralEventsQueryBuilder, type index_d$3_ReferralEventsQueryResult as ReferralEventsQueryResult, type index_d$3_ReferredFriendAction as ReferredFriendAction, type index_d$3_ReferredFriendActionEvent as ReferredFriendActionEvent, type index_d$3_ReferredFriendActionRewardTypeOptionsOneOf as ReferredFriendActionRewardTypeOptionsOneOf, type ReferredFriendDetails$2 as ReferredFriendDetails, type index_d$3_ReferredFriendSignupEvent as ReferredFriendSignupEvent, type index_d$3_ReferringCustomerTotal as ReferringCustomerTotal, Reward$1 as Reward, type index_d$3_RewardEvent as RewardEvent, type index_d$3_RewardEventReceiverOneOf as RewardEventReceiverOneOf, SortOrder$3 as SortOrder, type Sorting$3 as Sorting, Status$2 as Status, type SuccessfulReferralEvent$2 as SuccessfulReferralEvent, type index_d$3_Trigger as Trigger, type
|
|
2601
|
+
export { type ActionEvent$3 as ActionEvent, type BaseEventMetadata$2 as BaseEventMetadata, type Coupon$1 as Coupon, type CouponDiscountTypeOptionsOneOf$1 as CouponDiscountTypeOptionsOneOf, type CouponScope$1 as CouponScope, type CouponScopeOrMinSubtotalOneOf$1 as CouponScopeOrMinSubtotalOneOf, type index_d$3_CreateReferralEventRequest as CreateReferralEventRequest, type index_d$3_CreateReferralEventResponse as CreateReferralEventResponse, type CursorPaging$3 as CursorPaging, type CursorPagingMetadata$3 as CursorPagingMetadata, type CursorQuery$3 as CursorQuery, type CursorQueryPagingMethodOneOf$3 as CursorQueryPagingMethodOneOf, type Cursors$3 as Cursors, DiscountType$1 as DiscountType, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type Empty$2 as Empty, type EntityCreatedEvent$3 as EntityCreatedEvent, type EntityDeletedEvent$3 as EntityDeletedEvent, type EntityUpdatedEvent$3 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type FixedAmountDiscount$1 as FixedAmountDiscount, type index_d$3_GetReferralEventRequest as GetReferralEventRequest, type index_d$3_GetReferralEventResponse as GetReferralEventResponse, type index_d$3_GetReferralEventResponseNonNullableFields as GetReferralEventResponseNonNullableFields, type index_d$3_GetReferralStatisticsRequest as GetReferralStatisticsRequest, type index_d$3_GetReferralStatisticsResponse as GetReferralStatisticsResponse, type index_d$3_GetReferralStatisticsResponseNonNullableFields as GetReferralStatisticsResponseNonNullableFields, type Group$1 as Group, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type LoyaltyPoints$1 as LoyaltyPoints, type MessageEnvelope$3 as MessageEnvelope, type PercentageDiscount$1 as PercentageDiscount, type index_d$3_QueryReferralEventRequest as QueryReferralEventRequest, type index_d$3_QueryReferralEventResponse as QueryReferralEventResponse, type index_d$3_QueryReferralEventResponseNonNullableFields as QueryReferralEventResponseNonNullableFields, type index_d$3_QueryReferredFriendActionsOptions as QueryReferredFriendActionsOptions, type index_d$3_QueryReferredFriendActionsRequest as QueryReferredFriendActionsRequest, type index_d$3_QueryReferredFriendActionsResponse as QueryReferredFriendActionsResponse, type index_d$3_QueryReferredFriendActionsResponseNonNullableFields as QueryReferredFriendActionsResponseNonNullableFields, type index_d$3_QueryReferringCustomerTotalsOptions as QueryReferringCustomerTotalsOptions, type index_d$3_QueryReferringCustomerTotalsRequest as QueryReferringCustomerTotalsRequest, type index_d$3_QueryReferringCustomerTotalsResponse as QueryReferringCustomerTotalsResponse, type index_d$3_QueryReferringCustomerTotalsResponseNonNullableFields as QueryReferringCustomerTotalsResponseNonNullableFields, type index_d$3_ReferralEvent as ReferralEvent, type index_d$3_ReferralEventCreatedEnvelope as ReferralEventCreatedEnvelope, type index_d$3_ReferralEventEventTypeOneOf as ReferralEventEventTypeOneOf, type index_d$3_ReferralEventNonNullableFields as ReferralEventNonNullableFields, type index_d$3_ReferralEventsQueryBuilder as ReferralEventsQueryBuilder, type index_d$3_ReferralEventsQueryResult as ReferralEventsQueryResult, type index_d$3_ReferredFriendAction as ReferredFriendAction, type index_d$3_ReferredFriendActionEvent as ReferredFriendActionEvent, type index_d$3_ReferredFriendActionRewardTypeOptionsOneOf as ReferredFriendActionRewardTypeOptionsOneOf, type ReferredFriendDetails$2 as ReferredFriendDetails, type index_d$3_ReferredFriendSignupEvent as ReferredFriendSignupEvent, type index_d$3_ReferringCustomerTotal as ReferringCustomerTotal, type index_d$3_RestoreInfo as RestoreInfo, Reward$1 as Reward, type index_d$3_RewardEvent as RewardEvent, type index_d$3_RewardEventReceiverOneOf as RewardEventReceiverOneOf, SortOrder$3 as SortOrder, type Sorting$3 as Sorting, Status$2 as Status, type SuccessfulReferralEvent$2 as SuccessfulReferralEvent, type index_d$3_Trigger as Trigger, type index_d$3_V1ActionEvent as V1ActionEvent, type V1Coupon$1 as V1Coupon, type index_d$3_V1SuccessfulReferralEvent as V1SuccessfulReferralEvent, type index_d$3_V1Trigger as V1Trigger, WebhookIdentityType$3 as WebhookIdentityType, type index_d$3__publicGetReferralEventType as _publicGetReferralEventType, type index_d$3__publicGetReferralStatisticsType as _publicGetReferralStatisticsType, type index_d$3__publicOnReferralEventCreatedType as _publicOnReferralEventCreatedType, type index_d$3__publicQueryReferralEventType as _publicQueryReferralEventType, type index_d$3__publicQueryReferredFriendActionsType as _publicQueryReferredFriendActionsType, type index_d$3__publicQueryReferringCustomerTotalsType as _publicQueryReferringCustomerTotalsType, index_d$3_getReferralEvent as getReferralEvent, index_d$3_getReferralStatistics as getReferralStatistics, index_d$3_onReferralEventCreated as onReferralEventCreated, onReferralEventCreated$1 as publicOnReferralEventCreated, index_d$3_queryReferralEvent as queryReferralEvent, index_d$3_queryReferredFriendActions as queryReferredFriendActions, index_d$3_queryReferringCustomerTotals as queryReferringCustomerTotals };
|
|
2477
2602
|
}
|
|
2478
2603
|
|
|
2479
2604
|
/** ReferralReward is the main entity of ReferralRewards that can be used for lorem ipsum dolor */
|
|
@@ -2955,10 +3080,15 @@ interface QueryReferralRewardsOptions {
|
|
|
2955
3080
|
contactId?: string | null;
|
|
2956
3081
|
}
|
|
2957
3082
|
|
|
3083
|
+
declare function getReferralReward$1(httpClient: HttpClient): (_id: string) => Promise<ReferralReward & ReferralRewardNonNullableFields>;
|
|
3084
|
+
declare function queryReferralRewards$1(httpClient: HttpClient): (query: CursorQuery$2, options?: QueryReferralRewardsOptions) => Promise<QueryReferralRewardsResponse & QueryReferralRewardsResponseNonNullableFields>;
|
|
3085
|
+
|
|
2958
3086
|
declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
2959
3087
|
|
|
2960
|
-
|
|
2961
|
-
declare const
|
|
3088
|
+
type _publicGetReferralRewardType = typeof getReferralReward$1;
|
|
3089
|
+
declare const getReferralReward: ReturnType<typeof createRESTModule$2<_publicGetReferralRewardType>>;
|
|
3090
|
+
type _publicQueryReferralRewardsType = typeof queryReferralRewards$1;
|
|
3091
|
+
declare const queryReferralRewards: ReturnType<typeof createRESTModule$2<_publicQueryReferralRewardsType>>;
|
|
2962
3092
|
|
|
2963
3093
|
type index_d$2_BulkGetReferralRewardsRequest = BulkGetReferralRewardsRequest;
|
|
2964
3094
|
type index_d$2_BulkGetReferralRewardsResponse = BulkGetReferralRewardsResponse;
|
|
@@ -2994,10 +3124,12 @@ type index_d$2_V1Coupon = V1Coupon;
|
|
|
2994
3124
|
type index_d$2_V1LoyaltyPoints = V1LoyaltyPoints;
|
|
2995
3125
|
type index_d$2_ValidateReferralRewardRequest = ValidateReferralRewardRequest;
|
|
2996
3126
|
type index_d$2_ValidateReferralRewardResponse = ValidateReferralRewardResponse;
|
|
3127
|
+
type index_d$2__publicGetReferralRewardType = _publicGetReferralRewardType;
|
|
3128
|
+
type index_d$2__publicQueryReferralRewardsType = _publicQueryReferralRewardsType;
|
|
2997
3129
|
declare const index_d$2_getReferralReward: typeof getReferralReward;
|
|
2998
3130
|
declare const index_d$2_queryReferralRewards: typeof queryReferralRewards;
|
|
2999
3131
|
declare namespace index_d$2 {
|
|
3000
|
-
export { type ActionEvent$2 as ActionEvent, type index_d$2_BulkGetReferralRewardsRequest as BulkGetReferralRewardsRequest, type index_d$2_BulkGetReferralRewardsResponse as BulkGetReferralRewardsResponse, type index_d$2_Coupon as Coupon, type index_d$2_CouponDiscountTypeOptionsOneOf as CouponDiscountTypeOptionsOneOf, type index_d$2_CouponScope as CouponScope, type index_d$2_CouponScopeOrMinSubtotalOneOf as CouponScopeOrMinSubtotalOneOf, type CursorPaging$2 as CursorPaging, type CursorPagingMetadata$2 as CursorPagingMetadata, type CursorQuery$2 as CursorQuery, type CursorQueryPagingMethodOneOf$2 as CursorQueryPagingMethodOneOf, type Cursors$2 as Cursors, index_d$2_DiscountType as DiscountType, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type index_d$2_FixedAmountDiscount as FixedAmountDiscount, type index_d$2_GetReferralRewardRequest as GetReferralRewardRequest, type index_d$2_GetReferralRewardResponse as GetReferralRewardResponse, type index_d$2_GetReferralRewardResponseNonNullableFields as GetReferralRewardResponseNonNullableFields, type index_d$2_Group as Group, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type index_d$2_LoyaltyPoints as LoyaltyPoints, type MessageEnvelope$2 as MessageEnvelope, type index_d$2_PercentageDiscount as PercentageDiscount, type index_d$2_QueryReferralRewardsOptions as QueryReferralRewardsOptions, type index_d$2_QueryReferralRewardsRequest as QueryReferralRewardsRequest, type index_d$2_QueryReferralRewardsResponse as QueryReferralRewardsResponse, type index_d$2_QueryReferralRewardsResponseNonNullableFields as QueryReferralRewardsResponseNonNullableFields, type index_d$2_ReferralReward as ReferralReward, type index_d$2_ReferralRewardNonNullableFields as ReferralRewardNonNullableFields, type index_d$2_ReferralRewardReceiverOneOf as ReferralRewardReceiverOneOf, type index_d$2_ReferralRewardRewardTypeOptionsOneOf as ReferralRewardRewardTypeOptionsOneOf, type ReferredFriendDetails$1 as ReferredFriendDetails, type index_d$2_Reward as Reward, type index_d$2_RewardOptionsOneOf as RewardOptionsOneOf, index_d$2_RewardTypeType as RewardTypeType, type index_d$2_RewardsInSite as RewardsInSite, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, Status$1 as Status, type SuccessfulReferralEvent$1 as SuccessfulReferralEvent, index_d$2_Type as Type, type UndeleteInfo$2 as UndeleteInfo, type index_d$2_V1Coupon as V1Coupon, type index_d$2_V1LoyaltyPoints as V1LoyaltyPoints, type index_d$2_ValidateReferralRewardRequest as ValidateReferralRewardRequest, type index_d$2_ValidateReferralRewardResponse as ValidateReferralRewardResponse, WebhookIdentityType$2 as WebhookIdentityType, index_d$2_getReferralReward as getReferralReward, index_d$2_queryReferralRewards as queryReferralRewards };
|
|
3132
|
+
export { type ActionEvent$2 as ActionEvent, type index_d$2_BulkGetReferralRewardsRequest as BulkGetReferralRewardsRequest, type index_d$2_BulkGetReferralRewardsResponse as BulkGetReferralRewardsResponse, type index_d$2_Coupon as Coupon, type index_d$2_CouponDiscountTypeOptionsOneOf as CouponDiscountTypeOptionsOneOf, type index_d$2_CouponScope as CouponScope, type index_d$2_CouponScopeOrMinSubtotalOneOf as CouponScopeOrMinSubtotalOneOf, type CursorPaging$2 as CursorPaging, type CursorPagingMetadata$2 as CursorPagingMetadata, type CursorQuery$2 as CursorQuery, type CursorQueryPagingMethodOneOf$2 as CursorQueryPagingMethodOneOf, type Cursors$2 as Cursors, index_d$2_DiscountType as DiscountType, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type index_d$2_FixedAmountDiscount as FixedAmountDiscount, type index_d$2_GetReferralRewardRequest as GetReferralRewardRequest, type index_d$2_GetReferralRewardResponse as GetReferralRewardResponse, type index_d$2_GetReferralRewardResponseNonNullableFields as GetReferralRewardResponseNonNullableFields, type index_d$2_Group as Group, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type index_d$2_LoyaltyPoints as LoyaltyPoints, type MessageEnvelope$2 as MessageEnvelope, type index_d$2_PercentageDiscount as PercentageDiscount, type index_d$2_QueryReferralRewardsOptions as QueryReferralRewardsOptions, type index_d$2_QueryReferralRewardsRequest as QueryReferralRewardsRequest, type index_d$2_QueryReferralRewardsResponse as QueryReferralRewardsResponse, type index_d$2_QueryReferralRewardsResponseNonNullableFields as QueryReferralRewardsResponseNonNullableFields, type index_d$2_ReferralReward as ReferralReward, type index_d$2_ReferralRewardNonNullableFields as ReferralRewardNonNullableFields, type index_d$2_ReferralRewardReceiverOneOf as ReferralRewardReceiverOneOf, type index_d$2_ReferralRewardRewardTypeOptionsOneOf as ReferralRewardRewardTypeOptionsOneOf, type ReferredFriendDetails$1 as ReferredFriendDetails, type index_d$2_Reward as Reward, type index_d$2_RewardOptionsOneOf as RewardOptionsOneOf, index_d$2_RewardTypeType as RewardTypeType, type index_d$2_RewardsInSite as RewardsInSite, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, Status$1 as Status, type SuccessfulReferralEvent$1 as SuccessfulReferralEvent, index_d$2_Type as Type, type UndeleteInfo$2 as UndeleteInfo, type index_d$2_V1Coupon as V1Coupon, type index_d$2_V1LoyaltyPoints as V1LoyaltyPoints, type index_d$2_ValidateReferralRewardRequest as ValidateReferralRewardRequest, type index_d$2_ValidateReferralRewardResponse as ValidateReferralRewardResponse, WebhookIdentityType$2 as WebhookIdentityType, type index_d$2__publicGetReferralRewardType as _publicGetReferralRewardType, type index_d$2__publicQueryReferralRewardsType as _publicQueryReferralRewardsType, index_d$2_getReferralReward as getReferralReward, index_d$2_queryReferralRewards as queryReferralRewards };
|
|
3001
3133
|
}
|
|
3002
3134
|
|
|
3003
3135
|
/** ReferredFriend is the main entity of ReferredFriends that can be used for lorem ipsum dolor */
|
|
@@ -3481,19 +3613,41 @@ interface ReferredFriendsQueryBuilder {
|
|
|
3481
3613
|
find: () => Promise<ReferredFriendsQueryResult>;
|
|
3482
3614
|
}
|
|
3483
3615
|
|
|
3616
|
+
declare function createReferredFriend$1(httpClient: HttpClient): () => Promise<CreateReferredFriendResponse & CreateReferredFriendResponseNonNullableFields>;
|
|
3617
|
+
declare function getReferredFriend$1(httpClient: HttpClient): (referredFriendId: string) => Promise<GetReferredFriendResponse & GetReferredFriendResponseNonNullableFields>;
|
|
3618
|
+
declare function getReferredFriendByContactId$1(httpClient: HttpClient): (contactId: string) => Promise<ReferredFriend & ReferredFriendNonNullableFields>;
|
|
3619
|
+
declare function updateReferredFriend$1(httpClient: HttpClient): (_id: string, referredFriend: UpdateReferredFriend) => Promise<ReferredFriend & ReferredFriendNonNullableFields>;
|
|
3620
|
+
declare function deleteReferredFriend$1(httpClient: HttpClient): (referredFriendId: string, options?: DeleteReferredFriendOptions) => Promise<void>;
|
|
3621
|
+
declare function queryReferredFriend$1(httpClient: HttpClient): () => ReferredFriendsQueryBuilder;
|
|
3622
|
+
declare const onReferredFriendCreated$1: EventDefinition<ReferredFriendCreatedEnvelope, "wix.loyalty.referral.v1.referred_friend_created">;
|
|
3623
|
+
declare const onReferredFriendUpdated$1: EventDefinition<ReferredFriendUpdatedEnvelope, "wix.loyalty.referral.v1.referred_friend_updated">;
|
|
3624
|
+
declare const onReferredFriendDeleted$1: EventDefinition<ReferredFriendDeletedEnvelope, "wix.loyalty.referral.v1.referred_friend_deleted">;
|
|
3625
|
+
|
|
3484
3626
|
declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
3485
3627
|
|
|
3486
3628
|
declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
3487
3629
|
|
|
3488
|
-
|
|
3489
|
-
declare const
|
|
3490
|
-
|
|
3491
|
-
declare const
|
|
3492
|
-
|
|
3493
|
-
declare const
|
|
3494
|
-
|
|
3495
|
-
declare const
|
|
3496
|
-
|
|
3630
|
+
type _publicCreateReferredFriendType = typeof createReferredFriend$1;
|
|
3631
|
+
declare const createReferredFriend: ReturnType<typeof createRESTModule$1<_publicCreateReferredFriendType>>;
|
|
3632
|
+
type _publicGetReferredFriendType = typeof getReferredFriend$1;
|
|
3633
|
+
declare const getReferredFriend: ReturnType<typeof createRESTModule$1<_publicGetReferredFriendType>>;
|
|
3634
|
+
type _publicGetReferredFriendByContactIdType = typeof getReferredFriendByContactId$1;
|
|
3635
|
+
declare const getReferredFriendByContactId: ReturnType<typeof createRESTModule$1<_publicGetReferredFriendByContactIdType>>;
|
|
3636
|
+
type _publicUpdateReferredFriendType = typeof updateReferredFriend$1;
|
|
3637
|
+
declare const updateReferredFriend: ReturnType<typeof createRESTModule$1<_publicUpdateReferredFriendType>>;
|
|
3638
|
+
type _publicDeleteReferredFriendType = typeof deleteReferredFriend$1;
|
|
3639
|
+
declare const deleteReferredFriend: ReturnType<typeof createRESTModule$1<_publicDeleteReferredFriendType>>;
|
|
3640
|
+
type _publicQueryReferredFriendType = typeof queryReferredFriend$1;
|
|
3641
|
+
declare const queryReferredFriend: ReturnType<typeof createRESTModule$1<_publicQueryReferredFriendType>>;
|
|
3642
|
+
|
|
3643
|
+
type _publicOnReferredFriendCreatedType = typeof onReferredFriendCreated$1;
|
|
3644
|
+
declare const onReferredFriendCreated: ReturnType<typeof createEventModule$1<_publicOnReferredFriendCreatedType>>;
|
|
3645
|
+
|
|
3646
|
+
type _publicOnReferredFriendUpdatedType = typeof onReferredFriendUpdated$1;
|
|
3647
|
+
declare const onReferredFriendUpdated: ReturnType<typeof createEventModule$1<_publicOnReferredFriendUpdatedType>>;
|
|
3648
|
+
|
|
3649
|
+
type _publicOnReferredFriendDeletedType = typeof onReferredFriendDeleted$1;
|
|
3650
|
+
declare const onReferredFriendDeleted: ReturnType<typeof createEventModule$1<_publicOnReferredFriendDeletedType>>;
|
|
3497
3651
|
|
|
3498
3652
|
type index_d$1_CreateReferredFriendRequest = CreateReferredFriendRequest;
|
|
3499
3653
|
type index_d$1_CreateReferredFriendResponse = CreateReferredFriendResponse;
|
|
@@ -3526,6 +3680,15 @@ type index_d$1_UpdateReferredFriend = UpdateReferredFriend;
|
|
|
3526
3680
|
type index_d$1_UpdateReferredFriendRequest = UpdateReferredFriendRequest;
|
|
3527
3681
|
type index_d$1_UpdateReferredFriendResponse = UpdateReferredFriendResponse;
|
|
3528
3682
|
type index_d$1_UpdateReferredFriendResponseNonNullableFields = UpdateReferredFriendResponseNonNullableFields;
|
|
3683
|
+
type index_d$1__publicCreateReferredFriendType = _publicCreateReferredFriendType;
|
|
3684
|
+
type index_d$1__publicDeleteReferredFriendType = _publicDeleteReferredFriendType;
|
|
3685
|
+
type index_d$1__publicGetReferredFriendByContactIdType = _publicGetReferredFriendByContactIdType;
|
|
3686
|
+
type index_d$1__publicGetReferredFriendType = _publicGetReferredFriendType;
|
|
3687
|
+
type index_d$1__publicOnReferredFriendCreatedType = _publicOnReferredFriendCreatedType;
|
|
3688
|
+
type index_d$1__publicOnReferredFriendDeletedType = _publicOnReferredFriendDeletedType;
|
|
3689
|
+
type index_d$1__publicOnReferredFriendUpdatedType = _publicOnReferredFriendUpdatedType;
|
|
3690
|
+
type index_d$1__publicQueryReferredFriendType = _publicQueryReferredFriendType;
|
|
3691
|
+
type index_d$1__publicUpdateReferredFriendType = _publicUpdateReferredFriendType;
|
|
3529
3692
|
declare const index_d$1_createReferredFriend: typeof createReferredFriend;
|
|
3530
3693
|
declare const index_d$1_deleteReferredFriend: typeof deleteReferredFriend;
|
|
3531
3694
|
declare const index_d$1_getReferredFriend: typeof getReferredFriend;
|
|
@@ -3536,7 +3699,7 @@ declare const index_d$1_onReferredFriendUpdated: typeof onReferredFriendUpdated;
|
|
|
3536
3699
|
declare const index_d$1_queryReferredFriend: typeof queryReferredFriend;
|
|
3537
3700
|
declare const index_d$1_updateReferredFriend: typeof updateReferredFriend;
|
|
3538
3701
|
declare namespace index_d$1 {
|
|
3539
|
-
export { type ActionEvent$1 as ActionEvent, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_CreateReferredFriendRequest as CreateReferredFriendRequest, type index_d$1_CreateReferredFriendResponse as CreateReferredFriendResponse, type index_d$1_CreateReferredFriendResponseNonNullableFields as CreateReferredFriendResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type CursorQuery$1 as CursorQuery, type CursorQueryPagingMethodOneOf$1 as CursorQueryPagingMethodOneOf, type Cursors$1 as Cursors, type index_d$1_DeleteReferredFriendOptions as DeleteReferredFriendOptions, type index_d$1_DeleteReferredFriendRequest as DeleteReferredFriendRequest, type index_d$1_DeleteReferredFriendResponse as DeleteReferredFriendResponse, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$1_Empty as Empty, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$1_GetReferredFriendByContactIdRequest as GetReferredFriendByContactIdRequest, type index_d$1_GetReferredFriendByContactIdResponse as GetReferredFriendByContactIdResponse, type index_d$1_GetReferredFriendByContactIdResponseNonNullableFields as GetReferredFriendByContactIdResponseNonNullableFields, type index_d$1_GetReferredFriendRequest as GetReferredFriendRequest, type index_d$1_GetReferredFriendResponse as GetReferredFriendResponse, type index_d$1_GetReferredFriendResponseNonNullableFields as GetReferredFriendResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_QueryReferredFriendRequest as QueryReferredFriendRequest, type index_d$1_QueryReferredFriendResponse as QueryReferredFriendResponse, type index_d$1_QueryReferredFriendResponseNonNullableFields as QueryReferredFriendResponseNonNullableFields, type index_d$1_ReferredFriend as ReferredFriend, type index_d$1_ReferredFriendCreatedEnvelope as ReferredFriendCreatedEnvelope, type index_d$1_ReferredFriendDeletedEnvelope as ReferredFriendDeletedEnvelope, type index_d$1_ReferredFriendDetails as ReferredFriendDetails, type index_d$1_ReferredFriendNonNullableFields as ReferredFriendNonNullableFields, type index_d$1_ReferredFriendUpdatedEnvelope as ReferredFriendUpdatedEnvelope, type index_d$1_ReferredFriendsQueryBuilder as ReferredFriendsQueryBuilder, type index_d$1_ReferredFriendsQueryResult as ReferredFriendsQueryResult, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, index_d$1_Status as Status, type index_d$1_SuccessfulReferralEvent as SuccessfulReferralEvent, type UndeleteInfo$1 as UndeleteInfo, type index_d$1_UpdateReferredFriend as UpdateReferredFriend, type index_d$1_UpdateReferredFriendRequest as UpdateReferredFriendRequest, type index_d$1_UpdateReferredFriendResponse as UpdateReferredFriendResponse, type index_d$1_UpdateReferredFriendResponseNonNullableFields as UpdateReferredFriendResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, index_d$1_createReferredFriend as createReferredFriend, index_d$1_deleteReferredFriend as deleteReferredFriend, index_d$1_getReferredFriend as getReferredFriend, index_d$1_getReferredFriendByContactId as getReferredFriendByContactId, index_d$1_onReferredFriendCreated as onReferredFriendCreated, index_d$1_onReferredFriendDeleted as onReferredFriendDeleted, index_d$1_onReferredFriendUpdated as onReferredFriendUpdated, index_d$1_queryReferredFriend as queryReferredFriend, index_d$1_updateReferredFriend as updateReferredFriend };
|
|
3702
|
+
export { type ActionEvent$1 as ActionEvent, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_CreateReferredFriendRequest as CreateReferredFriendRequest, type index_d$1_CreateReferredFriendResponse as CreateReferredFriendResponse, type index_d$1_CreateReferredFriendResponseNonNullableFields as CreateReferredFriendResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type CursorQuery$1 as CursorQuery, type CursorQueryPagingMethodOneOf$1 as CursorQueryPagingMethodOneOf, type Cursors$1 as Cursors, type index_d$1_DeleteReferredFriendOptions as DeleteReferredFriendOptions, type index_d$1_DeleteReferredFriendRequest as DeleteReferredFriendRequest, type index_d$1_DeleteReferredFriendResponse as DeleteReferredFriendResponse, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$1_Empty as Empty, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$1_GetReferredFriendByContactIdRequest as GetReferredFriendByContactIdRequest, type index_d$1_GetReferredFriendByContactIdResponse as GetReferredFriendByContactIdResponse, type index_d$1_GetReferredFriendByContactIdResponseNonNullableFields as GetReferredFriendByContactIdResponseNonNullableFields, type index_d$1_GetReferredFriendRequest as GetReferredFriendRequest, type index_d$1_GetReferredFriendResponse as GetReferredFriendResponse, type index_d$1_GetReferredFriendResponseNonNullableFields as GetReferredFriendResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_QueryReferredFriendRequest as QueryReferredFriendRequest, type index_d$1_QueryReferredFriendResponse as QueryReferredFriendResponse, type index_d$1_QueryReferredFriendResponseNonNullableFields as QueryReferredFriendResponseNonNullableFields, type index_d$1_ReferredFriend as ReferredFriend, type index_d$1_ReferredFriendCreatedEnvelope as ReferredFriendCreatedEnvelope, type index_d$1_ReferredFriendDeletedEnvelope as ReferredFriendDeletedEnvelope, type index_d$1_ReferredFriendDetails as ReferredFriendDetails, type index_d$1_ReferredFriendNonNullableFields as ReferredFriendNonNullableFields, type index_d$1_ReferredFriendUpdatedEnvelope as ReferredFriendUpdatedEnvelope, type index_d$1_ReferredFriendsQueryBuilder as ReferredFriendsQueryBuilder, type index_d$1_ReferredFriendsQueryResult as ReferredFriendsQueryResult, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, index_d$1_Status as Status, type index_d$1_SuccessfulReferralEvent as SuccessfulReferralEvent, type UndeleteInfo$1 as UndeleteInfo, type index_d$1_UpdateReferredFriend as UpdateReferredFriend, type index_d$1_UpdateReferredFriendRequest as UpdateReferredFriendRequest, type index_d$1_UpdateReferredFriendResponse as UpdateReferredFriendResponse, type index_d$1_UpdateReferredFriendResponseNonNullableFields as UpdateReferredFriendResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, type index_d$1__publicCreateReferredFriendType as _publicCreateReferredFriendType, type index_d$1__publicDeleteReferredFriendType as _publicDeleteReferredFriendType, type index_d$1__publicGetReferredFriendByContactIdType as _publicGetReferredFriendByContactIdType, type index_d$1__publicGetReferredFriendType as _publicGetReferredFriendType, type index_d$1__publicOnReferredFriendCreatedType as _publicOnReferredFriendCreatedType, type index_d$1__publicOnReferredFriendDeletedType as _publicOnReferredFriendDeletedType, type index_d$1__publicOnReferredFriendUpdatedType as _publicOnReferredFriendUpdatedType, type index_d$1__publicQueryReferredFriendType as _publicQueryReferredFriendType, type index_d$1__publicUpdateReferredFriendType as _publicUpdateReferredFriendType, index_d$1_createReferredFriend as createReferredFriend, index_d$1_deleteReferredFriend as deleteReferredFriend, index_d$1_getReferredFriend as getReferredFriend, index_d$1_getReferredFriendByContactId as getReferredFriendByContactId, index_d$1_onReferredFriendCreated as onReferredFriendCreated, index_d$1_onReferredFriendDeleted as onReferredFriendDeleted, index_d$1_onReferredFriendUpdated as onReferredFriendUpdated, onReferredFriendCreated$1 as publicOnReferredFriendCreated, onReferredFriendDeleted$1 as publicOnReferredFriendDeleted, onReferredFriendUpdated$1 as publicOnReferredFriendUpdated, index_d$1_queryReferredFriend as queryReferredFriend, index_d$1_updateReferredFriend as updateReferredFriend };
|
|
3540
3703
|
}
|
|
3541
3704
|
|
|
3542
3705
|
/** ReferringCustomer is the main entity of ReferringCustomers. */
|
|
@@ -3936,17 +4099,34 @@ interface DeleteReferringCustomerOptions {
|
|
|
3936
4099
|
revision?: string;
|
|
3937
4100
|
}
|
|
3938
4101
|
|
|
4102
|
+
declare function generateReferringCustomerForContact$1(httpClient: HttpClient): (contactId: string) => Promise<GenerateReferringCustomerForContactResponse & GenerateReferringCustomerForContactResponseNonNullableFields>;
|
|
4103
|
+
declare function getReferringCustomer$1(httpClient: HttpClient): (referringCustomerId: string) => Promise<ReferringCustomer & ReferringCustomerNonNullableFields>;
|
|
4104
|
+
declare function getReferringCustomerByReferralCode$1(httpClient: HttpClient): (referralCode: string) => Promise<GetReferringCustomerByReferralCodeResponse & GetReferringCustomerByReferralCodeResponseNonNullableFields>;
|
|
4105
|
+
declare function queryReferringCustomers$1(httpClient: HttpClient): () => ReferringCustomersQueryBuilder;
|
|
4106
|
+
declare function deleteReferringCustomer$1(httpClient: HttpClient): (referringCustomerId: string, options?: DeleteReferringCustomerOptions) => Promise<void>;
|
|
4107
|
+
declare const onReferringCustomerCreated$1: EventDefinition<ReferringCustomerCreatedEnvelope, "wix.loyalty.referral.v1.referring_customer_created">;
|
|
4108
|
+
declare const onReferringCustomerDeleted$1: EventDefinition<ReferringCustomerDeletedEnvelope, "wix.loyalty.referral.v1.referring_customer_deleted">;
|
|
4109
|
+
|
|
3939
4110
|
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
3940
4111
|
|
|
3941
4112
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
3942
4113
|
|
|
3943
|
-
|
|
3944
|
-
declare const
|
|
3945
|
-
|
|
3946
|
-
declare const
|
|
3947
|
-
|
|
3948
|
-
declare const
|
|
3949
|
-
|
|
4114
|
+
type _publicGenerateReferringCustomerForContactType = typeof generateReferringCustomerForContact$1;
|
|
4115
|
+
declare const generateReferringCustomerForContact: ReturnType<typeof createRESTModule<_publicGenerateReferringCustomerForContactType>>;
|
|
4116
|
+
type _publicGetReferringCustomerType = typeof getReferringCustomer$1;
|
|
4117
|
+
declare const getReferringCustomer: ReturnType<typeof createRESTModule<_publicGetReferringCustomerType>>;
|
|
4118
|
+
type _publicGetReferringCustomerByReferralCodeType = typeof getReferringCustomerByReferralCode$1;
|
|
4119
|
+
declare const getReferringCustomerByReferralCode: ReturnType<typeof createRESTModule<_publicGetReferringCustomerByReferralCodeType>>;
|
|
4120
|
+
type _publicQueryReferringCustomersType = typeof queryReferringCustomers$1;
|
|
4121
|
+
declare const queryReferringCustomers: ReturnType<typeof createRESTModule<_publicQueryReferringCustomersType>>;
|
|
4122
|
+
type _publicDeleteReferringCustomerType = typeof deleteReferringCustomer$1;
|
|
4123
|
+
declare const deleteReferringCustomer: ReturnType<typeof createRESTModule<_publicDeleteReferringCustomerType>>;
|
|
4124
|
+
|
|
4125
|
+
type _publicOnReferringCustomerCreatedType = typeof onReferringCustomerCreated$1;
|
|
4126
|
+
declare const onReferringCustomerCreated: ReturnType<typeof createEventModule<_publicOnReferringCustomerCreatedType>>;
|
|
4127
|
+
|
|
4128
|
+
type _publicOnReferringCustomerDeletedType = typeof onReferringCustomerDeleted$1;
|
|
4129
|
+
declare const onReferringCustomerDeleted: ReturnType<typeof createEventModule<_publicOnReferringCustomerDeletedType>>;
|
|
3950
4130
|
|
|
3951
4131
|
type index_d_ActionEvent = ActionEvent;
|
|
3952
4132
|
type index_d_BaseEventMetadata = BaseEventMetadata;
|
|
@@ -3991,6 +4171,13 @@ type index_d_Sorting = Sorting;
|
|
|
3991
4171
|
type index_d_UndeleteInfo = UndeleteInfo;
|
|
3992
4172
|
type index_d_WebhookIdentityType = WebhookIdentityType;
|
|
3993
4173
|
declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
|
|
4174
|
+
type index_d__publicDeleteReferringCustomerType = _publicDeleteReferringCustomerType;
|
|
4175
|
+
type index_d__publicGenerateReferringCustomerForContactType = _publicGenerateReferringCustomerForContactType;
|
|
4176
|
+
type index_d__publicGetReferringCustomerByReferralCodeType = _publicGetReferringCustomerByReferralCodeType;
|
|
4177
|
+
type index_d__publicGetReferringCustomerType = _publicGetReferringCustomerType;
|
|
4178
|
+
type index_d__publicOnReferringCustomerCreatedType = _publicOnReferringCustomerCreatedType;
|
|
4179
|
+
type index_d__publicOnReferringCustomerDeletedType = _publicOnReferringCustomerDeletedType;
|
|
4180
|
+
type index_d__publicQueryReferringCustomersType = _publicQueryReferringCustomersType;
|
|
3994
4181
|
declare const index_d_deleteReferringCustomer: typeof deleteReferringCustomer;
|
|
3995
4182
|
declare const index_d_generateReferringCustomerForContact: typeof generateReferringCustomerForContact;
|
|
3996
4183
|
declare const index_d_getReferringCustomer: typeof getReferringCustomer;
|
|
@@ -3999,7 +4186,7 @@ declare const index_d_onReferringCustomerCreated: typeof onReferringCustomerCrea
|
|
|
3999
4186
|
declare const index_d_onReferringCustomerDeleted: typeof onReferringCustomerDeleted;
|
|
4000
4187
|
declare const index_d_queryReferringCustomers: typeof queryReferringCustomers;
|
|
4001
4188
|
declare namespace index_d {
|
|
4002
|
-
export { type index_d_ActionEvent as ActionEvent, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CursorPaging as CursorPaging, type index_d_CursorPagingMetadata as CursorPagingMetadata, type index_d_CursorQuery as CursorQuery, type index_d_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type index_d_Cursors as Cursors, type index_d_DeleteReferringCustomerOptions as DeleteReferringCustomerOptions, type index_d_DeleteReferringCustomerRequest as DeleteReferringCustomerRequest, type index_d_DeleteReferringCustomerResponse as DeleteReferringCustomerResponse, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_GenerateReferringCustomerForContactRequest as GenerateReferringCustomerForContactRequest, type index_d_GenerateReferringCustomerForContactResponse as GenerateReferringCustomerForContactResponse, type index_d_GenerateReferringCustomerForContactResponseNonNullableFields as GenerateReferringCustomerForContactResponseNonNullableFields, type index_d_GetReferringCustomerByReferralCodeRequest as GetReferringCustomerByReferralCodeRequest, type index_d_GetReferringCustomerByReferralCodeResponse as GetReferringCustomerByReferralCodeResponse, type index_d_GetReferringCustomerByReferralCodeResponseNonNullableFields as GetReferringCustomerByReferralCodeResponseNonNullableFields, type index_d_GetReferringCustomerRequest as GetReferringCustomerRequest, type index_d_GetReferringCustomerResponse as GetReferringCustomerResponse, type index_d_GetReferringCustomerResponseNonNullableFields as GetReferringCustomerResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_MessageEnvelope as MessageEnvelope, type index_d_QueryReferringCustomersRequest as QueryReferringCustomersRequest, type index_d_QueryReferringCustomersResponse as QueryReferringCustomersResponse, type index_d_QueryReferringCustomersResponseNonNullableFields as QueryReferringCustomersResponseNonNullableFields, type index_d_ReferringCustomer as ReferringCustomer, type index_d_ReferringCustomerCreatedEnvelope as ReferringCustomerCreatedEnvelope, type index_d_ReferringCustomerDeletedEnvelope as ReferringCustomerDeletedEnvelope, type index_d_ReferringCustomerNonNullableFields as ReferringCustomerNonNullableFields, type index_d_ReferringCustomersQueryBuilder as ReferringCustomersQueryBuilder, type index_d_ReferringCustomersQueryResult as ReferringCustomersQueryResult, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, type index_d_UndeleteInfo as UndeleteInfo, index_d_WebhookIdentityType as WebhookIdentityType, index_d_deleteReferringCustomer as deleteReferringCustomer, index_d_generateReferringCustomerForContact as generateReferringCustomerForContact, index_d_getReferringCustomer as getReferringCustomer, index_d_getReferringCustomerByReferralCode as getReferringCustomerByReferralCode, index_d_onReferringCustomerCreated as onReferringCustomerCreated, index_d_onReferringCustomerDeleted as onReferringCustomerDeleted, index_d_queryReferringCustomers as queryReferringCustomers };
|
|
4189
|
+
export { type index_d_ActionEvent as ActionEvent, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CursorPaging as CursorPaging, type index_d_CursorPagingMetadata as CursorPagingMetadata, type index_d_CursorQuery as CursorQuery, type index_d_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type index_d_Cursors as Cursors, type index_d_DeleteReferringCustomerOptions as DeleteReferringCustomerOptions, type index_d_DeleteReferringCustomerRequest as DeleteReferringCustomerRequest, type index_d_DeleteReferringCustomerResponse as DeleteReferringCustomerResponse, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_GenerateReferringCustomerForContactRequest as GenerateReferringCustomerForContactRequest, type index_d_GenerateReferringCustomerForContactResponse as GenerateReferringCustomerForContactResponse, type index_d_GenerateReferringCustomerForContactResponseNonNullableFields as GenerateReferringCustomerForContactResponseNonNullableFields, type index_d_GetReferringCustomerByReferralCodeRequest as GetReferringCustomerByReferralCodeRequest, type index_d_GetReferringCustomerByReferralCodeResponse as GetReferringCustomerByReferralCodeResponse, type index_d_GetReferringCustomerByReferralCodeResponseNonNullableFields as GetReferringCustomerByReferralCodeResponseNonNullableFields, type index_d_GetReferringCustomerRequest as GetReferringCustomerRequest, type index_d_GetReferringCustomerResponse as GetReferringCustomerResponse, type index_d_GetReferringCustomerResponseNonNullableFields as GetReferringCustomerResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_MessageEnvelope as MessageEnvelope, type index_d_QueryReferringCustomersRequest as QueryReferringCustomersRequest, type index_d_QueryReferringCustomersResponse as QueryReferringCustomersResponse, type index_d_QueryReferringCustomersResponseNonNullableFields as QueryReferringCustomersResponseNonNullableFields, type index_d_ReferringCustomer as ReferringCustomer, type index_d_ReferringCustomerCreatedEnvelope as ReferringCustomerCreatedEnvelope, type index_d_ReferringCustomerDeletedEnvelope as ReferringCustomerDeletedEnvelope, type index_d_ReferringCustomerNonNullableFields as ReferringCustomerNonNullableFields, type index_d_ReferringCustomersQueryBuilder as ReferringCustomersQueryBuilder, type index_d_ReferringCustomersQueryResult as ReferringCustomersQueryResult, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, type index_d_UndeleteInfo as UndeleteInfo, index_d_WebhookIdentityType as WebhookIdentityType, type index_d__publicDeleteReferringCustomerType as _publicDeleteReferringCustomerType, type index_d__publicGenerateReferringCustomerForContactType as _publicGenerateReferringCustomerForContactType, type index_d__publicGetReferringCustomerByReferralCodeType as _publicGetReferringCustomerByReferralCodeType, type index_d__publicGetReferringCustomerType as _publicGetReferringCustomerType, type index_d__publicOnReferringCustomerCreatedType as _publicOnReferringCustomerCreatedType, type index_d__publicOnReferringCustomerDeletedType as _publicOnReferringCustomerDeletedType, type index_d__publicQueryReferringCustomersType as _publicQueryReferringCustomersType, index_d_deleteReferringCustomer as deleteReferringCustomer, index_d_generateReferringCustomerForContact as generateReferringCustomerForContact, index_d_getReferringCustomer as getReferringCustomer, index_d_getReferringCustomerByReferralCode as getReferringCustomerByReferralCode, index_d_onReferringCustomerCreated as onReferringCustomerCreated, index_d_onReferringCustomerDeleted as onReferringCustomerDeleted, onReferringCustomerCreated$1 as publicOnReferringCustomerCreated, onReferringCustomerDeleted$1 as publicOnReferringCustomerDeleted, index_d_queryReferringCustomers as queryReferringCustomers };
|
|
4003
4190
|
}
|
|
4004
4191
|
|
|
4005
4192
|
export { index_d as customers, index_d$1 as friends, index_d$4 as programs, index_d$2 as rewards, index_d$3 as tracker };
|