@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 context$4_AISocialMediaPostSuggestion = AISocialMediaPostSuggestion;
|
|
1494
1565
|
type context$4_Action = Action;
|
|
@@ -1566,7 +1637,6 @@ type context$4_RecurringChargeSucceeded = RecurringChargeSucceeded;
|
|
|
1566
1637
|
type context$4_ReferralProgram = ReferralProgram;
|
|
1567
1638
|
type context$4_ReferralProgramsQueryBuilder = ReferralProgramsQueryBuilder;
|
|
1568
1639
|
type context$4_ReferralProgramsQueryResult = ReferralProgramsQueryResult;
|
|
1569
|
-
type context$4_RestoreInfo = RestoreInfo;
|
|
1570
1640
|
type context$4_ServiceProvisioned = ServiceProvisioned;
|
|
1571
1641
|
type context$4_ServiceRemoved = ServiceRemoved;
|
|
1572
1642
|
type context$4_SiteCreated = SiteCreated;
|
|
@@ -1604,6 +1674,15 @@ declare const context$4_UnassignReason: typeof UnassignReason;
|
|
|
1604
1674
|
type context$4_UpdateReferralProgramRequest = UpdateReferralProgramRequest;
|
|
1605
1675
|
type context$4_UpdateReferralProgramResponse = UpdateReferralProgramResponse;
|
|
1606
1676
|
type context$4_UpdateReferralProgramResponseNonNullableFields = UpdateReferralProgramResponseNonNullableFields;
|
|
1677
|
+
type context$4__publicActivateReferralProgramType = _publicActivateReferralProgramType;
|
|
1678
|
+
type context$4__publicGenerateAiSocialMediaPostsSuggestionsType = _publicGenerateAiSocialMediaPostsSuggestionsType;
|
|
1679
|
+
type context$4__publicGetAiSocialMediaPostsSuggestionsType = _publicGetAiSocialMediaPostsSuggestionsType;
|
|
1680
|
+
type context$4__publicGetReferralProgramPremiumFeaturesType = _publicGetReferralProgramPremiumFeaturesType;
|
|
1681
|
+
type context$4__publicGetReferralProgramType = _publicGetReferralProgramType;
|
|
1682
|
+
type context$4__publicOnProgramUpdatedType = _publicOnProgramUpdatedType;
|
|
1683
|
+
type context$4__publicPauseReferralProgramType = _publicPauseReferralProgramType;
|
|
1684
|
+
type context$4__publicQueryReferralProgramsType = _publicQueryReferralProgramsType;
|
|
1685
|
+
type context$4__publicUpdateReferralProgramType = _publicUpdateReferralProgramType;
|
|
1607
1686
|
declare const context$4_activateReferralProgram: typeof activateReferralProgram;
|
|
1608
1687
|
declare const context$4_generateAiSocialMediaPostsSuggestions: typeof generateAiSocialMediaPostsSuggestions;
|
|
1609
1688
|
declare const context$4_getAiSocialMediaPostsSuggestions: typeof getAiSocialMediaPostsSuggestions;
|
|
@@ -1614,7 +1693,7 @@ declare const context$4_pauseReferralProgram: typeof pauseReferralProgram;
|
|
|
1614
1693
|
declare const context$4_queryReferralPrograms: typeof queryReferralPrograms;
|
|
1615
1694
|
declare const context$4_updateReferralProgram: typeof updateReferralProgram;
|
|
1616
1695
|
declare namespace context$4 {
|
|
1617
|
-
export { type context$4_AISocialMediaPostSuggestion as AISocialMediaPostSuggestion, context$4_Action as Action, type ActionEvent$4 as ActionEvent, type context$4_ActivateReferralProgramRequest as ActivateReferralProgramRequest, type context$4_ActivateReferralProgramResponse as ActivateReferralProgramResponse, type context$4_ActivateReferralProgramResponseNonNullableFields as ActivateReferralProgramResponseNonNullableFields, context$4_App as App, type context$4_Asset as Asset, type BaseEventMetadata$3 as BaseEventMetadata, type context$4_BillingReference as BillingReference, type context$4_BulkGetReferralProgramRequest as BulkGetReferralProgramRequest, type context$4_BulkGetReferralProgramResponse as BulkGetReferralProgramResponse, type context$4_CancellationDetails as CancellationDetails, context$4_ContractSwitchReason as ContractSwitchReason, context$4_ContractSwitchType as ContractSwitchType, type context$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 context$4_Cycle as Cycle, type context$4_CycleCycleSelectorOneOf as CycleCycleSelectorOneOf, type context$4_DeleteContext as DeleteContext, context$4_DeleteStatus as DeleteStatus, DiscountType$2 as DiscountType, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type context$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 context$4_GenerateAISocialMediaPostsSuggestionsRequest as GenerateAISocialMediaPostsSuggestionsRequest, type context$4_GenerateAISocialMediaPostsSuggestionsResponse as GenerateAISocialMediaPostsSuggestionsResponse, type context$4_GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields as GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields, type context$4_GenerateAiSocialMediaPostsSuggestionsOptions as GenerateAiSocialMediaPostsSuggestionsOptions, type context$4_GetAISocialMediaPostsSuggestionsRequest as GetAISocialMediaPostsSuggestionsRequest, type context$4_GetAISocialMediaPostsSuggestionsResponse as GetAISocialMediaPostsSuggestionsResponse, type context$4_GetAISocialMediaPostsSuggestionsResponseNonNullableFields as GetAISocialMediaPostsSuggestionsResponseNonNullableFields, type context$4_GetAiSocialMediaPostsSuggestionsOptions as GetAiSocialMediaPostsSuggestionsOptions, type context$4_GetReferralProgramPremiumFeaturesRequest as GetReferralProgramPremiumFeaturesRequest, type context$4_GetReferralProgramPremiumFeaturesResponse as GetReferralProgramPremiumFeaturesResponse, type context$4_GetReferralProgramPremiumFeaturesResponseNonNullableFields as GetReferralProgramPremiumFeaturesResponseNonNullableFields, type context$4_GetReferralProgramRequest as GetReferralProgramRequest, type context$4_GetReferralProgramResponse as GetReferralProgramResponse, type context$4_GetReferralProgramResponseNonNullableFields as GetReferralProgramResponseNonNullableFields, type Group$2 as Group, type context$4_HtmlSitePublished as HtmlSitePublished, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, context$4_Initiator as Initiator, type context$4_Interval as Interval, context$4_IntervalUnit as IntervalUnit, type LoyaltyPoints$2 as LoyaltyPoints, type MessageEnvelope$4 as MessageEnvelope, type context$4_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type context$4_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, context$4_Namespace as Namespace, type context$4_NamespaceChanged as NamespaceChanged, type context$4_OneTime as OneTime, type context$4_Page as Page, type context$4_PauseReferralProgramRequest as PauseReferralProgramRequest, type context$4_PauseReferralProgramResponse as PauseReferralProgramResponse, type context$4_PauseReferralProgramResponseNonNullableFields as PauseReferralProgramResponseNonNullableFields, type PercentageDiscount$2 as PercentageDiscount, type context$4_PremiumFeatures as PremiumFeatures, context$4_PriceIncreaseTrigger as PriceIncreaseTrigger, context$4_ProductAdjustment as ProductAdjustment, type context$4_ProductPriceIncreaseData as ProductPriceIncreaseData, type context$4_ProgramInSite as ProgramInSite, context$4_ProgramStatus as ProgramStatus, type context$4_ProgramUpdatedEnvelope as ProgramUpdatedEnvelope, context$4_ProviderName as ProviderName, type context$4_QueryReferralProgramsRequest as QueryReferralProgramsRequest, type context$4_QueryReferralProgramsResponse as QueryReferralProgramsResponse, type context$4_QueryReferralProgramsResponseNonNullableFields as QueryReferralProgramsResponseNonNullableFields, type context$4_ReactivationData as ReactivationData, context$4_ReactivationReasonEnum as ReactivationReasonEnum, type context$4_RecurringChargeSucceeded as RecurringChargeSucceeded, type context$4_ReferralProgram as ReferralProgram, type context$4_ReferralProgramsQueryBuilder as ReferralProgramsQueryBuilder, type context$4_ReferralProgramsQueryResult as ReferralProgramsQueryResult, type
|
|
1696
|
+
export { type context$4_AISocialMediaPostSuggestion as AISocialMediaPostSuggestion, context$4_Action as Action, type ActionEvent$4 as ActionEvent, type context$4_ActivateReferralProgramRequest as ActivateReferralProgramRequest, type context$4_ActivateReferralProgramResponse as ActivateReferralProgramResponse, type context$4_ActivateReferralProgramResponseNonNullableFields as ActivateReferralProgramResponseNonNullableFields, context$4_App as App, type context$4_Asset as Asset, type BaseEventMetadata$3 as BaseEventMetadata, type context$4_BillingReference as BillingReference, type context$4_BulkGetReferralProgramRequest as BulkGetReferralProgramRequest, type context$4_BulkGetReferralProgramResponse as BulkGetReferralProgramResponse, type context$4_CancellationDetails as CancellationDetails, context$4_ContractSwitchReason as ContractSwitchReason, context$4_ContractSwitchType as ContractSwitchType, type context$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 context$4_Cycle as Cycle, type context$4_CycleCycleSelectorOneOf as CycleCycleSelectorOneOf, type context$4_DeleteContext as DeleteContext, context$4_DeleteStatus as DeleteStatus, DiscountType$2 as DiscountType, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type context$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 context$4_GenerateAISocialMediaPostsSuggestionsRequest as GenerateAISocialMediaPostsSuggestionsRequest, type context$4_GenerateAISocialMediaPostsSuggestionsResponse as GenerateAISocialMediaPostsSuggestionsResponse, type context$4_GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields as GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields, type context$4_GenerateAiSocialMediaPostsSuggestionsOptions as GenerateAiSocialMediaPostsSuggestionsOptions, type context$4_GetAISocialMediaPostsSuggestionsRequest as GetAISocialMediaPostsSuggestionsRequest, type context$4_GetAISocialMediaPostsSuggestionsResponse as GetAISocialMediaPostsSuggestionsResponse, type context$4_GetAISocialMediaPostsSuggestionsResponseNonNullableFields as GetAISocialMediaPostsSuggestionsResponseNonNullableFields, type context$4_GetAiSocialMediaPostsSuggestionsOptions as GetAiSocialMediaPostsSuggestionsOptions, type context$4_GetReferralProgramPremiumFeaturesRequest as GetReferralProgramPremiumFeaturesRequest, type context$4_GetReferralProgramPremiumFeaturesResponse as GetReferralProgramPremiumFeaturesResponse, type context$4_GetReferralProgramPremiumFeaturesResponseNonNullableFields as GetReferralProgramPremiumFeaturesResponseNonNullableFields, type context$4_GetReferralProgramRequest as GetReferralProgramRequest, type context$4_GetReferralProgramResponse as GetReferralProgramResponse, type context$4_GetReferralProgramResponseNonNullableFields as GetReferralProgramResponseNonNullableFields, type Group$2 as Group, type context$4_HtmlSitePublished as HtmlSitePublished, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, context$4_Initiator as Initiator, type context$4_Interval as Interval, context$4_IntervalUnit as IntervalUnit, type LoyaltyPoints$2 as LoyaltyPoints, type MessageEnvelope$4 as MessageEnvelope, type context$4_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type context$4_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, context$4_Namespace as Namespace, type context$4_NamespaceChanged as NamespaceChanged, type context$4_OneTime as OneTime, type context$4_Page as Page, type context$4_PauseReferralProgramRequest as PauseReferralProgramRequest, type context$4_PauseReferralProgramResponse as PauseReferralProgramResponse, type context$4_PauseReferralProgramResponseNonNullableFields as PauseReferralProgramResponseNonNullableFields, type PercentageDiscount$2 as PercentageDiscount, type context$4_PremiumFeatures as PremiumFeatures, context$4_PriceIncreaseTrigger as PriceIncreaseTrigger, context$4_ProductAdjustment as ProductAdjustment, type context$4_ProductPriceIncreaseData as ProductPriceIncreaseData, type context$4_ProgramInSite as ProgramInSite, context$4_ProgramStatus as ProgramStatus, type context$4_ProgramUpdatedEnvelope as ProgramUpdatedEnvelope, context$4_ProviderName as ProviderName, type context$4_QueryReferralProgramsRequest as QueryReferralProgramsRequest, type context$4_QueryReferralProgramsResponse as QueryReferralProgramsResponse, type context$4_QueryReferralProgramsResponseNonNullableFields as QueryReferralProgramsResponseNonNullableFields, type context$4_ReactivationData as ReactivationData, context$4_ReactivationReasonEnum as ReactivationReasonEnum, type context$4_RecurringChargeSucceeded as RecurringChargeSucceeded, type context$4_ReferralProgram as ReferralProgram, type context$4_ReferralProgramsQueryBuilder as ReferralProgramsQueryBuilder, type context$4_ReferralProgramsQueryResult as ReferralProgramsQueryResult, type RestoreInfo$1 as RestoreInfo, type Reward$2 as Reward, type RewardOptionsOneOf$1 as RewardOptionsOneOf, type context$4_ServiceProvisioned as ServiceProvisioned, type context$4_ServiceRemoved as ServiceRemoved, type context$4_SiteCreated as SiteCreated, context$4_SiteCreatedContext as SiteCreatedContext, type context$4_SiteDeleted as SiteDeleted, type context$4_SiteHardDeleted as SiteHardDeleted, type context$4_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type context$4_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type context$4_SitePublished as SitePublished, type context$4_SiteRenamed as SiteRenamed, type context$4_SiteTransferred as SiteTransferred, type context$4_SiteUndeleted as SiteUndeleted, type context$4_SiteUnpublished as SiteUnpublished, SortOrder$4 as SortOrder, type Sorting$4 as Sorting, context$4_State as State, type context$4_StudioAssigned as StudioAssigned, type context$4_StudioUnassigned as StudioUnassigned, type context$4_Subscription as Subscription, type context$4_SubscriptionAssigned as SubscriptionAssigned, type context$4_SubscriptionAutoRenewTurnedOff as SubscriptionAutoRenewTurnedOff, type context$4_SubscriptionAutoRenewTurnedOn as SubscriptionAutoRenewTurnedOn, type context$4_SubscriptionCancelled as SubscriptionCancelled, type context$4_SubscriptionCreated as SubscriptionCreated, type context$4_SubscriptionEvent as SubscriptionEvent, type context$4_SubscriptionEventEventOneOf as SubscriptionEventEventOneOf, type context$4_SubscriptionNearEndOfPeriod as SubscriptionNearEndOfPeriod, type context$4_SubscriptionPendingChange as SubscriptionPendingChange, context$4_SubscriptionStatus as SubscriptionStatus, type context$4_SubscriptionTransferred as SubscriptionTransferred, type context$4_SubscriptionUnassigned as SubscriptionUnassigned, Type$1 as Type, context$4_UnassignReason as UnassignReason, type context$4_UpdateReferralProgramRequest as UpdateReferralProgramRequest, type context$4_UpdateReferralProgramResponse as UpdateReferralProgramResponse, type context$4_UpdateReferralProgramResponseNonNullableFields as UpdateReferralProgramResponseNonNullableFields, WebhookIdentityType$4 as WebhookIdentityType, type context$4__publicActivateReferralProgramType as _publicActivateReferralProgramType, type context$4__publicGenerateAiSocialMediaPostsSuggestionsType as _publicGenerateAiSocialMediaPostsSuggestionsType, type context$4__publicGetAiSocialMediaPostsSuggestionsType as _publicGetAiSocialMediaPostsSuggestionsType, type context$4__publicGetReferralProgramPremiumFeaturesType as _publicGetReferralProgramPremiumFeaturesType, type context$4__publicGetReferralProgramType as _publicGetReferralProgramType, type context$4__publicOnProgramUpdatedType as _publicOnProgramUpdatedType, type context$4__publicPauseReferralProgramType as _publicPauseReferralProgramType, type context$4__publicQueryReferralProgramsType as _publicQueryReferralProgramsType, type context$4__publicUpdateReferralProgramType as _publicUpdateReferralProgramType, context$4_activateReferralProgram as activateReferralProgram, context$4_generateAiSocialMediaPostsSuggestions as generateAiSocialMediaPostsSuggestions, context$4_getAiSocialMediaPostsSuggestions as getAiSocialMediaPostsSuggestions, context$4_getReferralProgram as getReferralProgram, context$4_getReferralProgramPremiumFeatures as getReferralProgramPremiumFeatures, context$4_onProgramUpdated as onProgramUpdated, context$4_pauseReferralProgram as pauseReferralProgram, onProgramUpdated$1 as publicOnProgramUpdated, context$4_queryReferralPrograms as queryReferralPrograms, context$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 context$3_CreateReferralEventRequest = CreateReferralEventRequest;
|
|
2434
2552
|
type context$3_CreateReferralEventResponse = CreateReferralEventResponse;
|
|
@@ -2460,12 +2578,19 @@ type context$3_ReferredFriendActionEvent = ReferredFriendActionEvent;
|
|
|
2460
2578
|
type context$3_ReferredFriendActionRewardTypeOptionsOneOf = ReferredFriendActionRewardTypeOptionsOneOf;
|
|
2461
2579
|
type context$3_ReferredFriendSignupEvent = ReferredFriendSignupEvent;
|
|
2462
2580
|
type context$3_ReferringCustomerTotal = ReferringCustomerTotal;
|
|
2581
|
+
type context$3_RestoreInfo = RestoreInfo;
|
|
2463
2582
|
type context$3_RewardEvent = RewardEvent;
|
|
2464
2583
|
type context$3_RewardEventReceiverOneOf = RewardEventReceiverOneOf;
|
|
2465
2584
|
type context$3_Trigger = Trigger;
|
|
2466
2585
|
type context$3_V1ActionEvent = V1ActionEvent;
|
|
2467
2586
|
type context$3_V1SuccessfulReferralEvent = V1SuccessfulReferralEvent;
|
|
2468
2587
|
type context$3_V1Trigger = V1Trigger;
|
|
2588
|
+
type context$3__publicGetReferralEventType = _publicGetReferralEventType;
|
|
2589
|
+
type context$3__publicGetReferralStatisticsType = _publicGetReferralStatisticsType;
|
|
2590
|
+
type context$3__publicOnReferralEventCreatedType = _publicOnReferralEventCreatedType;
|
|
2591
|
+
type context$3__publicQueryReferralEventType = _publicQueryReferralEventType;
|
|
2592
|
+
type context$3__publicQueryReferredFriendActionsType = _publicQueryReferredFriendActionsType;
|
|
2593
|
+
type context$3__publicQueryReferringCustomerTotalsType = _publicQueryReferringCustomerTotalsType;
|
|
2469
2594
|
declare const context$3_getReferralEvent: typeof getReferralEvent;
|
|
2470
2595
|
declare const context$3_getReferralStatistics: typeof getReferralStatistics;
|
|
2471
2596
|
declare const context$3_onReferralEventCreated: typeof onReferralEventCreated;
|
|
@@ -2473,7 +2598,7 @@ declare const context$3_queryReferralEvent: typeof queryReferralEvent;
|
|
|
2473
2598
|
declare const context$3_queryReferredFriendActions: typeof queryReferredFriendActions;
|
|
2474
2599
|
declare const context$3_queryReferringCustomerTotals: typeof queryReferringCustomerTotals;
|
|
2475
2600
|
declare namespace context$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 context$3_CreateReferralEventRequest as CreateReferralEventRequest, type context$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 context$3_GetReferralEventRequest as GetReferralEventRequest, type context$3_GetReferralEventResponse as GetReferralEventResponse, type context$3_GetReferralEventResponseNonNullableFields as GetReferralEventResponseNonNullableFields, type context$3_GetReferralStatisticsRequest as GetReferralStatisticsRequest, type context$3_GetReferralStatisticsResponse as GetReferralStatisticsResponse, type context$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 context$3_QueryReferralEventRequest as QueryReferralEventRequest, type context$3_QueryReferralEventResponse as QueryReferralEventResponse, type context$3_QueryReferralEventResponseNonNullableFields as QueryReferralEventResponseNonNullableFields, type context$3_QueryReferredFriendActionsOptions as QueryReferredFriendActionsOptions, type context$3_QueryReferredFriendActionsRequest as QueryReferredFriendActionsRequest, type context$3_QueryReferredFriendActionsResponse as QueryReferredFriendActionsResponse, type context$3_QueryReferredFriendActionsResponseNonNullableFields as QueryReferredFriendActionsResponseNonNullableFields, type context$3_QueryReferringCustomerTotalsOptions as QueryReferringCustomerTotalsOptions, type context$3_QueryReferringCustomerTotalsRequest as QueryReferringCustomerTotalsRequest, type context$3_QueryReferringCustomerTotalsResponse as QueryReferringCustomerTotalsResponse, type context$3_QueryReferringCustomerTotalsResponseNonNullableFields as QueryReferringCustomerTotalsResponseNonNullableFields, type context$3_ReferralEvent as ReferralEvent, type context$3_ReferralEventCreatedEnvelope as ReferralEventCreatedEnvelope, type context$3_ReferralEventEventTypeOneOf as ReferralEventEventTypeOneOf, type context$3_ReferralEventNonNullableFields as ReferralEventNonNullableFields, type context$3_ReferralEventsQueryBuilder as ReferralEventsQueryBuilder, type context$3_ReferralEventsQueryResult as ReferralEventsQueryResult, type context$3_ReferredFriendAction as ReferredFriendAction, type context$3_ReferredFriendActionEvent as ReferredFriendActionEvent, type context$3_ReferredFriendActionRewardTypeOptionsOneOf as ReferredFriendActionRewardTypeOptionsOneOf, type ReferredFriendDetails$2 as ReferredFriendDetails, type context$3_ReferredFriendSignupEvent as ReferredFriendSignupEvent, type context$3_ReferringCustomerTotal as ReferringCustomerTotal, Reward$1 as Reward, type context$3_RewardEvent as RewardEvent, type context$3_RewardEventReceiverOneOf as RewardEventReceiverOneOf, SortOrder$3 as SortOrder, type Sorting$3 as Sorting, Status$2 as Status, type SuccessfulReferralEvent$2 as SuccessfulReferralEvent, type context$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 context$3_CreateReferralEventRequest as CreateReferralEventRequest, type context$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 context$3_GetReferralEventRequest as GetReferralEventRequest, type context$3_GetReferralEventResponse as GetReferralEventResponse, type context$3_GetReferralEventResponseNonNullableFields as GetReferralEventResponseNonNullableFields, type context$3_GetReferralStatisticsRequest as GetReferralStatisticsRequest, type context$3_GetReferralStatisticsResponse as GetReferralStatisticsResponse, type context$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 context$3_QueryReferralEventRequest as QueryReferralEventRequest, type context$3_QueryReferralEventResponse as QueryReferralEventResponse, type context$3_QueryReferralEventResponseNonNullableFields as QueryReferralEventResponseNonNullableFields, type context$3_QueryReferredFriendActionsOptions as QueryReferredFriendActionsOptions, type context$3_QueryReferredFriendActionsRequest as QueryReferredFriendActionsRequest, type context$3_QueryReferredFriendActionsResponse as QueryReferredFriendActionsResponse, type context$3_QueryReferredFriendActionsResponseNonNullableFields as QueryReferredFriendActionsResponseNonNullableFields, type context$3_QueryReferringCustomerTotalsOptions as QueryReferringCustomerTotalsOptions, type context$3_QueryReferringCustomerTotalsRequest as QueryReferringCustomerTotalsRequest, type context$3_QueryReferringCustomerTotalsResponse as QueryReferringCustomerTotalsResponse, type context$3_QueryReferringCustomerTotalsResponseNonNullableFields as QueryReferringCustomerTotalsResponseNonNullableFields, type context$3_ReferralEvent as ReferralEvent, type context$3_ReferralEventCreatedEnvelope as ReferralEventCreatedEnvelope, type context$3_ReferralEventEventTypeOneOf as ReferralEventEventTypeOneOf, type context$3_ReferralEventNonNullableFields as ReferralEventNonNullableFields, type context$3_ReferralEventsQueryBuilder as ReferralEventsQueryBuilder, type context$3_ReferralEventsQueryResult as ReferralEventsQueryResult, type context$3_ReferredFriendAction as ReferredFriendAction, type context$3_ReferredFriendActionEvent as ReferredFriendActionEvent, type context$3_ReferredFriendActionRewardTypeOptionsOneOf as ReferredFriendActionRewardTypeOptionsOneOf, type ReferredFriendDetails$2 as ReferredFriendDetails, type context$3_ReferredFriendSignupEvent as ReferredFriendSignupEvent, type context$3_ReferringCustomerTotal as ReferringCustomerTotal, type context$3_RestoreInfo as RestoreInfo, Reward$1 as Reward, type context$3_RewardEvent as RewardEvent, type context$3_RewardEventReceiverOneOf as RewardEventReceiverOneOf, SortOrder$3 as SortOrder, type Sorting$3 as Sorting, Status$2 as Status, type SuccessfulReferralEvent$2 as SuccessfulReferralEvent, type context$3_Trigger as Trigger, type context$3_V1ActionEvent as V1ActionEvent, type V1Coupon$1 as V1Coupon, type context$3_V1SuccessfulReferralEvent as V1SuccessfulReferralEvent, type context$3_V1Trigger as V1Trigger, WebhookIdentityType$3 as WebhookIdentityType, type context$3__publicGetReferralEventType as _publicGetReferralEventType, type context$3__publicGetReferralStatisticsType as _publicGetReferralStatisticsType, type context$3__publicOnReferralEventCreatedType as _publicOnReferralEventCreatedType, type context$3__publicQueryReferralEventType as _publicQueryReferralEventType, type context$3__publicQueryReferredFriendActionsType as _publicQueryReferredFriendActionsType, type context$3__publicQueryReferringCustomerTotalsType as _publicQueryReferringCustomerTotalsType, context$3_getReferralEvent as getReferralEvent, context$3_getReferralStatistics as getReferralStatistics, context$3_onReferralEventCreated as onReferralEventCreated, onReferralEventCreated$1 as publicOnReferralEventCreated, context$3_queryReferralEvent as queryReferralEvent, context$3_queryReferredFriendActions as queryReferredFriendActions, context$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 context$2_BulkGetReferralRewardsRequest = BulkGetReferralRewardsRequest;
|
|
2964
3094
|
type context$2_BulkGetReferralRewardsResponse = BulkGetReferralRewardsResponse;
|
|
@@ -2994,10 +3124,12 @@ type context$2_V1Coupon = V1Coupon;
|
|
|
2994
3124
|
type context$2_V1LoyaltyPoints = V1LoyaltyPoints;
|
|
2995
3125
|
type context$2_ValidateReferralRewardRequest = ValidateReferralRewardRequest;
|
|
2996
3126
|
type context$2_ValidateReferralRewardResponse = ValidateReferralRewardResponse;
|
|
3127
|
+
type context$2__publicGetReferralRewardType = _publicGetReferralRewardType;
|
|
3128
|
+
type context$2__publicQueryReferralRewardsType = _publicQueryReferralRewardsType;
|
|
2997
3129
|
declare const context$2_getReferralReward: typeof getReferralReward;
|
|
2998
3130
|
declare const context$2_queryReferralRewards: typeof queryReferralRewards;
|
|
2999
3131
|
declare namespace context$2 {
|
|
3000
|
-
export { type ActionEvent$2 as ActionEvent, type context$2_BulkGetReferralRewardsRequest as BulkGetReferralRewardsRequest, type context$2_BulkGetReferralRewardsResponse as BulkGetReferralRewardsResponse, type context$2_Coupon as Coupon, type context$2_CouponDiscountTypeOptionsOneOf as CouponDiscountTypeOptionsOneOf, type context$2_CouponScope as CouponScope, type context$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, context$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 context$2_FixedAmountDiscount as FixedAmountDiscount, type context$2_GetReferralRewardRequest as GetReferralRewardRequest, type context$2_GetReferralRewardResponse as GetReferralRewardResponse, type context$2_GetReferralRewardResponseNonNullableFields as GetReferralRewardResponseNonNullableFields, type context$2_Group as Group, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type context$2_LoyaltyPoints as LoyaltyPoints, type MessageEnvelope$2 as MessageEnvelope, type context$2_PercentageDiscount as PercentageDiscount, type context$2_QueryReferralRewardsOptions as QueryReferralRewardsOptions, type context$2_QueryReferralRewardsRequest as QueryReferralRewardsRequest, type context$2_QueryReferralRewardsResponse as QueryReferralRewardsResponse, type context$2_QueryReferralRewardsResponseNonNullableFields as QueryReferralRewardsResponseNonNullableFields, type context$2_ReferralReward as ReferralReward, type context$2_ReferralRewardNonNullableFields as ReferralRewardNonNullableFields, type context$2_ReferralRewardReceiverOneOf as ReferralRewardReceiverOneOf, type context$2_ReferralRewardRewardTypeOptionsOneOf as ReferralRewardRewardTypeOptionsOneOf, type ReferredFriendDetails$1 as ReferredFriendDetails, type context$2_Reward as Reward, type context$2_RewardOptionsOneOf as RewardOptionsOneOf, context$2_RewardTypeType as RewardTypeType, type context$2_RewardsInSite as RewardsInSite, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, Status$1 as Status, type SuccessfulReferralEvent$1 as SuccessfulReferralEvent, context$2_Type as Type, type UndeleteInfo$2 as UndeleteInfo, type context$2_V1Coupon as V1Coupon, type context$2_V1LoyaltyPoints as V1LoyaltyPoints, type context$2_ValidateReferralRewardRequest as ValidateReferralRewardRequest, type context$2_ValidateReferralRewardResponse as ValidateReferralRewardResponse, WebhookIdentityType$2 as WebhookIdentityType, context$2_getReferralReward as getReferralReward, context$2_queryReferralRewards as queryReferralRewards };
|
|
3132
|
+
export { type ActionEvent$2 as ActionEvent, type context$2_BulkGetReferralRewardsRequest as BulkGetReferralRewardsRequest, type context$2_BulkGetReferralRewardsResponse as BulkGetReferralRewardsResponse, type context$2_Coupon as Coupon, type context$2_CouponDiscountTypeOptionsOneOf as CouponDiscountTypeOptionsOneOf, type context$2_CouponScope as CouponScope, type context$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, context$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 context$2_FixedAmountDiscount as FixedAmountDiscount, type context$2_GetReferralRewardRequest as GetReferralRewardRequest, type context$2_GetReferralRewardResponse as GetReferralRewardResponse, type context$2_GetReferralRewardResponseNonNullableFields as GetReferralRewardResponseNonNullableFields, type context$2_Group as Group, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type context$2_LoyaltyPoints as LoyaltyPoints, type MessageEnvelope$2 as MessageEnvelope, type context$2_PercentageDiscount as PercentageDiscount, type context$2_QueryReferralRewardsOptions as QueryReferralRewardsOptions, type context$2_QueryReferralRewardsRequest as QueryReferralRewardsRequest, type context$2_QueryReferralRewardsResponse as QueryReferralRewardsResponse, type context$2_QueryReferralRewardsResponseNonNullableFields as QueryReferralRewardsResponseNonNullableFields, type context$2_ReferralReward as ReferralReward, type context$2_ReferralRewardNonNullableFields as ReferralRewardNonNullableFields, type context$2_ReferralRewardReceiverOneOf as ReferralRewardReceiverOneOf, type context$2_ReferralRewardRewardTypeOptionsOneOf as ReferralRewardRewardTypeOptionsOneOf, type ReferredFriendDetails$1 as ReferredFriendDetails, type context$2_Reward as Reward, type context$2_RewardOptionsOneOf as RewardOptionsOneOf, context$2_RewardTypeType as RewardTypeType, type context$2_RewardsInSite as RewardsInSite, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, Status$1 as Status, type SuccessfulReferralEvent$1 as SuccessfulReferralEvent, context$2_Type as Type, type UndeleteInfo$2 as UndeleteInfo, type context$2_V1Coupon as V1Coupon, type context$2_V1LoyaltyPoints as V1LoyaltyPoints, type context$2_ValidateReferralRewardRequest as ValidateReferralRewardRequest, type context$2_ValidateReferralRewardResponse as ValidateReferralRewardResponse, WebhookIdentityType$2 as WebhookIdentityType, type context$2__publicGetReferralRewardType as _publicGetReferralRewardType, type context$2__publicQueryReferralRewardsType as _publicQueryReferralRewardsType, context$2_getReferralReward as getReferralReward, context$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 context$1_CreateReferredFriendRequest = CreateReferredFriendRequest;
|
|
3499
3653
|
type context$1_CreateReferredFriendResponse = CreateReferredFriendResponse;
|
|
@@ -3526,6 +3680,15 @@ type context$1_UpdateReferredFriend = UpdateReferredFriend;
|
|
|
3526
3680
|
type context$1_UpdateReferredFriendRequest = UpdateReferredFriendRequest;
|
|
3527
3681
|
type context$1_UpdateReferredFriendResponse = UpdateReferredFriendResponse;
|
|
3528
3682
|
type context$1_UpdateReferredFriendResponseNonNullableFields = UpdateReferredFriendResponseNonNullableFields;
|
|
3683
|
+
type context$1__publicCreateReferredFriendType = _publicCreateReferredFriendType;
|
|
3684
|
+
type context$1__publicDeleteReferredFriendType = _publicDeleteReferredFriendType;
|
|
3685
|
+
type context$1__publicGetReferredFriendByContactIdType = _publicGetReferredFriendByContactIdType;
|
|
3686
|
+
type context$1__publicGetReferredFriendType = _publicGetReferredFriendType;
|
|
3687
|
+
type context$1__publicOnReferredFriendCreatedType = _publicOnReferredFriendCreatedType;
|
|
3688
|
+
type context$1__publicOnReferredFriendDeletedType = _publicOnReferredFriendDeletedType;
|
|
3689
|
+
type context$1__publicOnReferredFriendUpdatedType = _publicOnReferredFriendUpdatedType;
|
|
3690
|
+
type context$1__publicQueryReferredFriendType = _publicQueryReferredFriendType;
|
|
3691
|
+
type context$1__publicUpdateReferredFriendType = _publicUpdateReferredFriendType;
|
|
3529
3692
|
declare const context$1_createReferredFriend: typeof createReferredFriend;
|
|
3530
3693
|
declare const context$1_deleteReferredFriend: typeof deleteReferredFriend;
|
|
3531
3694
|
declare const context$1_getReferredFriend: typeof getReferredFriend;
|
|
@@ -3536,7 +3699,7 @@ declare const context$1_onReferredFriendUpdated: typeof onReferredFriendUpdated;
|
|
|
3536
3699
|
declare const context$1_queryReferredFriend: typeof queryReferredFriend;
|
|
3537
3700
|
declare const context$1_updateReferredFriend: typeof updateReferredFriend;
|
|
3538
3701
|
declare namespace context$1 {
|
|
3539
|
-
export { type ActionEvent$1 as ActionEvent, type BaseEventMetadata$1 as BaseEventMetadata, type context$1_CreateReferredFriendRequest as CreateReferredFriendRequest, type context$1_CreateReferredFriendResponse as CreateReferredFriendResponse, type context$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 context$1_DeleteReferredFriendOptions as DeleteReferredFriendOptions, type context$1_DeleteReferredFriendRequest as DeleteReferredFriendRequest, type context$1_DeleteReferredFriendResponse as DeleteReferredFriendResponse, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type context$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 context$1_GetReferredFriendByContactIdRequest as GetReferredFriendByContactIdRequest, type context$1_GetReferredFriendByContactIdResponse as GetReferredFriendByContactIdResponse, type context$1_GetReferredFriendByContactIdResponseNonNullableFields as GetReferredFriendByContactIdResponseNonNullableFields, type context$1_GetReferredFriendRequest as GetReferredFriendRequest, type context$1_GetReferredFriendResponse as GetReferredFriendResponse, type context$1_GetReferredFriendResponseNonNullableFields as GetReferredFriendResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type MessageEnvelope$1 as MessageEnvelope, type context$1_QueryReferredFriendRequest as QueryReferredFriendRequest, type context$1_QueryReferredFriendResponse as QueryReferredFriendResponse, type context$1_QueryReferredFriendResponseNonNullableFields as QueryReferredFriendResponseNonNullableFields, type context$1_ReferredFriend as ReferredFriend, type context$1_ReferredFriendCreatedEnvelope as ReferredFriendCreatedEnvelope, type context$1_ReferredFriendDeletedEnvelope as ReferredFriendDeletedEnvelope, type context$1_ReferredFriendDetails as ReferredFriendDetails, type context$1_ReferredFriendNonNullableFields as ReferredFriendNonNullableFields, type context$1_ReferredFriendUpdatedEnvelope as ReferredFriendUpdatedEnvelope, type context$1_ReferredFriendsQueryBuilder as ReferredFriendsQueryBuilder, type context$1_ReferredFriendsQueryResult as ReferredFriendsQueryResult, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, context$1_Status as Status, type context$1_SuccessfulReferralEvent as SuccessfulReferralEvent, type UndeleteInfo$1 as UndeleteInfo, type context$1_UpdateReferredFriend as UpdateReferredFriend, type context$1_UpdateReferredFriendRequest as UpdateReferredFriendRequest, type context$1_UpdateReferredFriendResponse as UpdateReferredFriendResponse, type context$1_UpdateReferredFriendResponseNonNullableFields as UpdateReferredFriendResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, context$1_createReferredFriend as createReferredFriend, context$1_deleteReferredFriend as deleteReferredFriend, context$1_getReferredFriend as getReferredFriend, context$1_getReferredFriendByContactId as getReferredFriendByContactId, context$1_onReferredFriendCreated as onReferredFriendCreated, context$1_onReferredFriendDeleted as onReferredFriendDeleted, context$1_onReferredFriendUpdated as onReferredFriendUpdated, context$1_queryReferredFriend as queryReferredFriend, context$1_updateReferredFriend as updateReferredFriend };
|
|
3702
|
+
export { type ActionEvent$1 as ActionEvent, type BaseEventMetadata$1 as BaseEventMetadata, type context$1_CreateReferredFriendRequest as CreateReferredFriendRequest, type context$1_CreateReferredFriendResponse as CreateReferredFriendResponse, type context$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 context$1_DeleteReferredFriendOptions as DeleteReferredFriendOptions, type context$1_DeleteReferredFriendRequest as DeleteReferredFriendRequest, type context$1_DeleteReferredFriendResponse as DeleteReferredFriendResponse, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type context$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 context$1_GetReferredFriendByContactIdRequest as GetReferredFriendByContactIdRequest, type context$1_GetReferredFriendByContactIdResponse as GetReferredFriendByContactIdResponse, type context$1_GetReferredFriendByContactIdResponseNonNullableFields as GetReferredFriendByContactIdResponseNonNullableFields, type context$1_GetReferredFriendRequest as GetReferredFriendRequest, type context$1_GetReferredFriendResponse as GetReferredFriendResponse, type context$1_GetReferredFriendResponseNonNullableFields as GetReferredFriendResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type MessageEnvelope$1 as MessageEnvelope, type context$1_QueryReferredFriendRequest as QueryReferredFriendRequest, type context$1_QueryReferredFriendResponse as QueryReferredFriendResponse, type context$1_QueryReferredFriendResponseNonNullableFields as QueryReferredFriendResponseNonNullableFields, type context$1_ReferredFriend as ReferredFriend, type context$1_ReferredFriendCreatedEnvelope as ReferredFriendCreatedEnvelope, type context$1_ReferredFriendDeletedEnvelope as ReferredFriendDeletedEnvelope, type context$1_ReferredFriendDetails as ReferredFriendDetails, type context$1_ReferredFriendNonNullableFields as ReferredFriendNonNullableFields, type context$1_ReferredFriendUpdatedEnvelope as ReferredFriendUpdatedEnvelope, type context$1_ReferredFriendsQueryBuilder as ReferredFriendsQueryBuilder, type context$1_ReferredFriendsQueryResult as ReferredFriendsQueryResult, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, context$1_Status as Status, type context$1_SuccessfulReferralEvent as SuccessfulReferralEvent, type UndeleteInfo$1 as UndeleteInfo, type context$1_UpdateReferredFriend as UpdateReferredFriend, type context$1_UpdateReferredFriendRequest as UpdateReferredFriendRequest, type context$1_UpdateReferredFriendResponse as UpdateReferredFriendResponse, type context$1_UpdateReferredFriendResponseNonNullableFields as UpdateReferredFriendResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, type context$1__publicCreateReferredFriendType as _publicCreateReferredFriendType, type context$1__publicDeleteReferredFriendType as _publicDeleteReferredFriendType, type context$1__publicGetReferredFriendByContactIdType as _publicGetReferredFriendByContactIdType, type context$1__publicGetReferredFriendType as _publicGetReferredFriendType, type context$1__publicOnReferredFriendCreatedType as _publicOnReferredFriendCreatedType, type context$1__publicOnReferredFriendDeletedType as _publicOnReferredFriendDeletedType, type context$1__publicOnReferredFriendUpdatedType as _publicOnReferredFriendUpdatedType, type context$1__publicQueryReferredFriendType as _publicQueryReferredFriendType, type context$1__publicUpdateReferredFriendType as _publicUpdateReferredFriendType, context$1_createReferredFriend as createReferredFriend, context$1_deleteReferredFriend as deleteReferredFriend, context$1_getReferredFriend as getReferredFriend, context$1_getReferredFriendByContactId as getReferredFriendByContactId, context$1_onReferredFriendCreated as onReferredFriendCreated, context$1_onReferredFriendDeleted as onReferredFriendDeleted, context$1_onReferredFriendUpdated as onReferredFriendUpdated, onReferredFriendCreated$1 as publicOnReferredFriendCreated, onReferredFriendDeleted$1 as publicOnReferredFriendDeleted, onReferredFriendUpdated$1 as publicOnReferredFriendUpdated, context$1_queryReferredFriend as queryReferredFriend, context$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 context_ActionEvent = ActionEvent;
|
|
3952
4132
|
type context_BaseEventMetadata = BaseEventMetadata;
|
|
@@ -3991,6 +4171,13 @@ type context_Sorting = Sorting;
|
|
|
3991
4171
|
type context_UndeleteInfo = UndeleteInfo;
|
|
3992
4172
|
type context_WebhookIdentityType = WebhookIdentityType;
|
|
3993
4173
|
declare const context_WebhookIdentityType: typeof WebhookIdentityType;
|
|
4174
|
+
type context__publicDeleteReferringCustomerType = _publicDeleteReferringCustomerType;
|
|
4175
|
+
type context__publicGenerateReferringCustomerForContactType = _publicGenerateReferringCustomerForContactType;
|
|
4176
|
+
type context__publicGetReferringCustomerByReferralCodeType = _publicGetReferringCustomerByReferralCodeType;
|
|
4177
|
+
type context__publicGetReferringCustomerType = _publicGetReferringCustomerType;
|
|
4178
|
+
type context__publicOnReferringCustomerCreatedType = _publicOnReferringCustomerCreatedType;
|
|
4179
|
+
type context__publicOnReferringCustomerDeletedType = _publicOnReferringCustomerDeletedType;
|
|
4180
|
+
type context__publicQueryReferringCustomersType = _publicQueryReferringCustomersType;
|
|
3994
4181
|
declare const context_deleteReferringCustomer: typeof deleteReferringCustomer;
|
|
3995
4182
|
declare const context_generateReferringCustomerForContact: typeof generateReferringCustomerForContact;
|
|
3996
4183
|
declare const context_getReferringCustomer: typeof getReferringCustomer;
|
|
@@ -3999,7 +4186,7 @@ declare const context_onReferringCustomerCreated: typeof onReferringCustomerCrea
|
|
|
3999
4186
|
declare const context_onReferringCustomerDeleted: typeof onReferringCustomerDeleted;
|
|
4000
4187
|
declare const context_queryReferringCustomers: typeof queryReferringCustomers;
|
|
4001
4188
|
declare namespace context {
|
|
4002
|
-
export { type context_ActionEvent as ActionEvent, type context_BaseEventMetadata as BaseEventMetadata, type context_CursorPaging as CursorPaging, type context_CursorPagingMetadata as CursorPagingMetadata, type context_CursorQuery as CursorQuery, type context_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type context_Cursors as Cursors, type context_DeleteReferringCustomerOptions as DeleteReferringCustomerOptions, type context_DeleteReferringCustomerRequest as DeleteReferringCustomerRequest, type context_DeleteReferringCustomerResponse as DeleteReferringCustomerResponse, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_GenerateReferringCustomerForContactRequest as GenerateReferringCustomerForContactRequest, type context_GenerateReferringCustomerForContactResponse as GenerateReferringCustomerForContactResponse, type context_GenerateReferringCustomerForContactResponseNonNullableFields as GenerateReferringCustomerForContactResponseNonNullableFields, type context_GetReferringCustomerByReferralCodeRequest as GetReferringCustomerByReferralCodeRequest, type context_GetReferringCustomerByReferralCodeResponse as GetReferringCustomerByReferralCodeResponse, type context_GetReferringCustomerByReferralCodeResponseNonNullableFields as GetReferringCustomerByReferralCodeResponseNonNullableFields, type context_GetReferringCustomerRequest as GetReferringCustomerRequest, type context_GetReferringCustomerResponse as GetReferringCustomerResponse, type context_GetReferringCustomerResponseNonNullableFields as GetReferringCustomerResponseNonNullableFields, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_MessageEnvelope as MessageEnvelope, type context_QueryReferringCustomersRequest as QueryReferringCustomersRequest, type context_QueryReferringCustomersResponse as QueryReferringCustomersResponse, type context_QueryReferringCustomersResponseNonNullableFields as QueryReferringCustomersResponseNonNullableFields, type context_ReferringCustomer as ReferringCustomer, type context_ReferringCustomerCreatedEnvelope as ReferringCustomerCreatedEnvelope, type context_ReferringCustomerDeletedEnvelope as ReferringCustomerDeletedEnvelope, type context_ReferringCustomerNonNullableFields as ReferringCustomerNonNullableFields, type context_ReferringCustomersQueryBuilder as ReferringCustomersQueryBuilder, type context_ReferringCustomersQueryResult as ReferringCustomersQueryResult, context_SortOrder as SortOrder, type context_Sorting as Sorting, type context_UndeleteInfo as UndeleteInfo, context_WebhookIdentityType as WebhookIdentityType, context_deleteReferringCustomer as deleteReferringCustomer, context_generateReferringCustomerForContact as generateReferringCustomerForContact, context_getReferringCustomer as getReferringCustomer, context_getReferringCustomerByReferralCode as getReferringCustomerByReferralCode, context_onReferringCustomerCreated as onReferringCustomerCreated, context_onReferringCustomerDeleted as onReferringCustomerDeleted, context_queryReferringCustomers as queryReferringCustomers };
|
|
4189
|
+
export { type context_ActionEvent as ActionEvent, type context_BaseEventMetadata as BaseEventMetadata, type context_CursorPaging as CursorPaging, type context_CursorPagingMetadata as CursorPagingMetadata, type context_CursorQuery as CursorQuery, type context_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type context_Cursors as Cursors, type context_DeleteReferringCustomerOptions as DeleteReferringCustomerOptions, type context_DeleteReferringCustomerRequest as DeleteReferringCustomerRequest, type context_DeleteReferringCustomerResponse as DeleteReferringCustomerResponse, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_GenerateReferringCustomerForContactRequest as GenerateReferringCustomerForContactRequest, type context_GenerateReferringCustomerForContactResponse as GenerateReferringCustomerForContactResponse, type context_GenerateReferringCustomerForContactResponseNonNullableFields as GenerateReferringCustomerForContactResponseNonNullableFields, type context_GetReferringCustomerByReferralCodeRequest as GetReferringCustomerByReferralCodeRequest, type context_GetReferringCustomerByReferralCodeResponse as GetReferringCustomerByReferralCodeResponse, type context_GetReferringCustomerByReferralCodeResponseNonNullableFields as GetReferringCustomerByReferralCodeResponseNonNullableFields, type context_GetReferringCustomerRequest as GetReferringCustomerRequest, type context_GetReferringCustomerResponse as GetReferringCustomerResponse, type context_GetReferringCustomerResponseNonNullableFields as GetReferringCustomerResponseNonNullableFields, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_MessageEnvelope as MessageEnvelope, type context_QueryReferringCustomersRequest as QueryReferringCustomersRequest, type context_QueryReferringCustomersResponse as QueryReferringCustomersResponse, type context_QueryReferringCustomersResponseNonNullableFields as QueryReferringCustomersResponseNonNullableFields, type context_ReferringCustomer as ReferringCustomer, type context_ReferringCustomerCreatedEnvelope as ReferringCustomerCreatedEnvelope, type context_ReferringCustomerDeletedEnvelope as ReferringCustomerDeletedEnvelope, type context_ReferringCustomerNonNullableFields as ReferringCustomerNonNullableFields, type context_ReferringCustomersQueryBuilder as ReferringCustomersQueryBuilder, type context_ReferringCustomersQueryResult as ReferringCustomersQueryResult, context_SortOrder as SortOrder, type context_Sorting as Sorting, type context_UndeleteInfo as UndeleteInfo, context_WebhookIdentityType as WebhookIdentityType, type context__publicDeleteReferringCustomerType as _publicDeleteReferringCustomerType, type context__publicGenerateReferringCustomerForContactType as _publicGenerateReferringCustomerForContactType, type context__publicGetReferringCustomerByReferralCodeType as _publicGetReferringCustomerByReferralCodeType, type context__publicGetReferringCustomerType as _publicGetReferringCustomerType, type context__publicOnReferringCustomerCreatedType as _publicOnReferringCustomerCreatedType, type context__publicOnReferringCustomerDeletedType as _publicOnReferringCustomerDeletedType, type context__publicQueryReferringCustomersType as _publicQueryReferringCustomersType, context_deleteReferringCustomer as deleteReferringCustomer, context_generateReferringCustomerForContact as generateReferringCustomerForContact, context_getReferringCustomer as getReferringCustomer, context_getReferringCustomerByReferralCode as getReferringCustomerByReferralCode, context_onReferringCustomerCreated as onReferringCustomerCreated, context_onReferringCustomerDeleted as onReferringCustomerDeleted, onReferringCustomerCreated$1 as publicOnReferringCustomerCreated, onReferringCustomerDeleted$1 as publicOnReferringCustomerDeleted, context_queryReferringCustomers as queryReferringCustomers };
|
|
4003
4190
|
}
|
|
4004
4191
|
|
|
4005
4192
|
export { context as customers, context$1 as friends, context$4 as programs, context$2 as rewards, context$3 as tracker };
|