@wix/referral 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +9 -8
- package/type-bundles/context.bundle.d.ts +301 -123
- package/type-bundles/index.bundle.d.ts +301 -123
- package/type-bundles/meta.bundle.d.ts +286 -152
|
@@ -1,54 +1,68 @@
|
|
|
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.
|
|
6
|
+
*
|
|
7
|
+
* `UNKNOWN`: Status is unknown, this status is never used.
|
|
8
|
+
* `DRAFT`: Rderral program is in a draft state, 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
|
+
/** Reward configuration for the referred friend. Specifies the reward given to a new customer who was referred to the business. */
|
|
23
27
|
referredFriendReward?: Reward$2;
|
|
24
|
-
/**
|
|
28
|
+
/** Reward configuration for the referring customer. Specifies the reward given to an existing customer who referred a new customer to the business. */
|
|
25
29
|
referringCustomerReward?: Reward$2;
|
|
26
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* 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.
|
|
32
|
+
*
|
|
33
|
+
* Possible values:
|
|
34
|
+
* -`UNKNOWN`: Action is unknown.
|
|
35
|
+
* -`STORE_ORDER_PLACED`: Referred friend ordered and paid for an order in a store.
|
|
36
|
+
* -`PLAN_ORDERED`: Referred friend ordered and paid for a plan.
|
|
37
|
+
* -`TICKET_ORDERED`: Referred friend ordered and paid for a ticket.
|
|
38
|
+
* -`SESSION_BOOKED`: Referred friend booked and paid for a session.
|
|
39
|
+
* -`RESTAURANT_ORDER_PLACED`: Referred friend placed and paid for a restaurant order.
|
|
40
|
+
*/
|
|
27
41
|
successfulReferralActions?: Action[];
|
|
28
42
|
/**
|
|
29
|
-
*
|
|
43
|
+
* Whether the user has the required plan to use the referral program.
|
|
30
44
|
* @readonly
|
|
31
|
-
* @deprecated
|
|
45
|
+
* @deprecated Whether the user has the required plan to use the referral program.
|
|
32
46
|
* @replacedBy GetReferralProgramPremiumFeatures
|
|
33
47
|
* @targetRemovalDate 2024-09-01
|
|
34
48
|
*/
|
|
35
49
|
isPremium?: boolean;
|
|
36
|
-
/**
|
|
50
|
+
/** Configures email notifications for the referral program. */
|
|
37
51
|
emails?: Emails;
|
|
38
52
|
/**
|
|
39
|
-
*
|
|
53
|
+
* Indicates which premium features are available for the current account.
|
|
40
54
|
* @readonly
|
|
41
55
|
*/
|
|
42
56
|
premiumFeatures?: PremiumFeatures;
|
|
43
57
|
}
|
|
44
58
|
declare enum ProgramStatus {
|
|
45
|
-
/**
|
|
59
|
+
/** Program status is unknown. */
|
|
46
60
|
UNKNOWN = "UNKNOWN",
|
|
47
|
-
/**
|
|
61
|
+
/** Initial program status. The program was created but not activated. */
|
|
48
62
|
DRAFT = "DRAFT",
|
|
49
|
-
/**
|
|
63
|
+
/** Program is active. */
|
|
50
64
|
ACTIVE = "ACTIVE",
|
|
51
|
-
/**
|
|
65
|
+
/** Program was manually disabled by the user. Can be reactivated. */
|
|
52
66
|
PAUSED = "PAUSED"
|
|
53
67
|
}
|
|
54
68
|
interface Reward$2 extends RewardOptionsOneOf$1 {
|
|
@@ -77,37 +91,56 @@ declare enum Type$1 {
|
|
|
77
91
|
NOTHING = "NOTHING"
|
|
78
92
|
}
|
|
79
93
|
interface Coupon$2 extends CouponDiscountTypeOptionsOneOf$2, CouponScopeOrMinSubtotalOneOf$2 {
|
|
80
|
-
/** Options for fixed amount discount
|
|
94
|
+
/** Options for fixed amount discount. */
|
|
81
95
|
fixedAmountOptions?: FixedAmountDiscount$2;
|
|
82
|
-
/** Options for percentage discount
|
|
96
|
+
/** Options for percentage discount. */
|
|
83
97
|
percentageOptions?: PercentageDiscount$2;
|
|
84
98
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
85
99
|
minimumSubtotal?: number;
|
|
86
|
-
/** Specifies the type of line items this coupon will apply to. */
|
|
100
|
+
/** 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
101
|
scope?: CouponScope$2;
|
|
88
102
|
/** Coupon name. */
|
|
89
103
|
name?: string;
|
|
90
|
-
/**
|
|
104
|
+
/**
|
|
105
|
+
* Coupon discount type.
|
|
106
|
+
*
|
|
107
|
+
* - `UNKNOWN`: Unknown discount type.
|
|
108
|
+
* - `FIXED_AMOUNT`: Discount as a fixed amount.
|
|
109
|
+
* - `PERCENTAGE`: Discount as a perctange.
|
|
110
|
+
* - `FREE_SHIPPING`: Free shipping. If `true`, the coupon applies to all items in all `namespaces`.
|
|
111
|
+
*/
|
|
91
112
|
discountType?: DiscountType$2;
|
|
92
|
-
/**
|
|
113
|
+
/**
|
|
114
|
+
* Whether the coupon is limited to one item.
|
|
115
|
+
* If `true` and a customer pays for multiple items, the discount applies to only the lowest priced item.
|
|
116
|
+
* Coupons with a bookings `scope.namespace` are always limited to one item.
|
|
117
|
+
*/
|
|
93
118
|
limitedToOneItem?: boolean | null;
|
|
94
|
-
/**
|
|
119
|
+
/** Whether the coupon applies to subscription products. */
|
|
95
120
|
appliesToSubscriptions?: boolean | null;
|
|
96
|
-
/**
|
|
121
|
+
/**
|
|
122
|
+
* Specifies the amount of discounted cycles for a subscription item.
|
|
123
|
+
*
|
|
124
|
+
* - Can only be set when `scope.namespace = pricingPlans`.
|
|
125
|
+
* - If `discountedCycleCount` is empty, the coupon applies to all available cycles.
|
|
126
|
+
* - `discountedCycleCount` is ignored if `appliesToSubscriptions = true`.
|
|
127
|
+
*
|
|
128
|
+
* Max: `999`
|
|
129
|
+
*/
|
|
97
130
|
discountedCycleCount?: number | null;
|
|
98
131
|
}
|
|
99
132
|
/** @oneof */
|
|
100
133
|
interface CouponDiscountTypeOptionsOneOf$2 {
|
|
101
|
-
/** Options for fixed amount discount
|
|
134
|
+
/** Options for fixed amount discount. */
|
|
102
135
|
fixedAmountOptions?: FixedAmountDiscount$2;
|
|
103
|
-
/** Options for percentage discount
|
|
136
|
+
/** Options for percentage discount. */
|
|
104
137
|
percentageOptions?: PercentageDiscount$2;
|
|
105
138
|
}
|
|
106
139
|
/** @oneof */
|
|
107
140
|
interface CouponScopeOrMinSubtotalOneOf$2 {
|
|
108
141
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
109
142
|
minimumSubtotal?: number;
|
|
110
|
-
/** Specifies the type of line items this coupon will apply to. */
|
|
143
|
+
/** 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
144
|
scope?: CouponScope$2;
|
|
112
145
|
}
|
|
113
146
|
declare enum DiscountType$2 {
|
|
@@ -121,17 +154,17 @@ declare enum DiscountType$2 {
|
|
|
121
154
|
FREE_SHIPPING = "FREE_SHIPPING"
|
|
122
155
|
}
|
|
123
156
|
interface FixedAmountDiscount$2 {
|
|
124
|
-
/**
|
|
157
|
+
/** Amount of discount as a fixed value. */
|
|
125
158
|
amount?: number;
|
|
126
159
|
}
|
|
127
160
|
interface PercentageDiscount$2 {
|
|
128
|
-
/** Percentage
|
|
161
|
+
/** Percentage of discount. */
|
|
129
162
|
percentage?: number;
|
|
130
163
|
}
|
|
131
164
|
interface CouponScope$2 {
|
|
132
|
-
/**
|
|
165
|
+
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
133
166
|
namespace?: string;
|
|
134
|
-
/**
|
|
167
|
+
/** Coupon scope's applied group, for example: Event or ticket in Wix Events */
|
|
135
168
|
group?: Group$2;
|
|
136
169
|
}
|
|
137
170
|
interface Group$2 {
|
|
@@ -141,7 +174,7 @@ interface Group$2 {
|
|
|
141
174
|
entityId?: string | null;
|
|
142
175
|
}
|
|
143
176
|
interface LoyaltyPoints$2 {
|
|
144
|
-
/**
|
|
177
|
+
/** Number of loyalty points to give. */
|
|
145
178
|
amount?: number;
|
|
146
179
|
}
|
|
147
180
|
declare enum Action {
|
|
@@ -159,9 +192,18 @@ declare enum Action {
|
|
|
159
192
|
RESTAURANT_ORDER_PLACED = "RESTAURANT_ORDER_PLACED"
|
|
160
193
|
}
|
|
161
194
|
interface Emails {
|
|
162
|
-
/**
|
|
195
|
+
/**
|
|
196
|
+
* Encourage customers to refer their friends email. Select for which apps to enable.
|
|
197
|
+
*
|
|
198
|
+
* - `UNKNOWN`: Unknwown email.
|
|
199
|
+
* - `STORES`: Send an email to customers who've placed an order with stores.
|
|
200
|
+
* - `PRICING_PLANS`: Send an email to customers who've placed an order with pricing plans.
|
|
201
|
+
* - `EVENTS`: Send an email to customers who've placed an order with events.
|
|
202
|
+
* - `BOOKINGS`: Send an email to customers who've placed an order with bookings.
|
|
203
|
+
* - `RESTAURANTS`: Send an email to customers who've placed an order with restaurants.
|
|
204
|
+
*/
|
|
163
205
|
encourageToReferFriends?: App[];
|
|
164
|
-
/**
|
|
206
|
+
/** Whether to notify customers about their referral reward email. Set to `true` to enable email notifications. */
|
|
165
207
|
notifyCustomersAboutReward?: boolean;
|
|
166
208
|
}
|
|
167
209
|
declare enum App {
|
|
@@ -180,7 +222,7 @@ declare enum App {
|
|
|
180
222
|
}
|
|
181
223
|
interface PremiumFeatures {
|
|
182
224
|
/**
|
|
183
|
-
*
|
|
225
|
+
* Whether the user has the referral program feature.
|
|
184
226
|
* @readonly
|
|
185
227
|
*/
|
|
186
228
|
referralProgram?: boolean;
|
|
@@ -188,23 +230,23 @@ interface PremiumFeatures {
|
|
|
188
230
|
interface GetReferralProgramRequest {
|
|
189
231
|
}
|
|
190
232
|
interface GetReferralProgramResponse {
|
|
191
|
-
/** The retrieved
|
|
233
|
+
/** The retrieved referral program. */
|
|
192
234
|
referralProgram?: ReferralProgram;
|
|
193
235
|
}
|
|
194
236
|
interface BulkGetReferralProgramRequest {
|
|
195
237
|
}
|
|
196
238
|
interface BulkGetReferralProgramResponse {
|
|
197
|
-
/**
|
|
239
|
+
/** The retrieved referral programs. */
|
|
198
240
|
programInSites?: ProgramInSite[];
|
|
199
241
|
}
|
|
200
242
|
interface ProgramInSite {
|
|
201
243
|
/** Metasite ID. */
|
|
202
244
|
metaSiteId?: string;
|
|
203
|
-
/**
|
|
245
|
+
/** The retrieved referral program. */
|
|
204
246
|
referralProgram?: ReferralProgram;
|
|
205
247
|
}
|
|
206
248
|
interface QueryReferralProgramsRequest {
|
|
207
|
-
/** Query
|
|
249
|
+
/** Query options. */
|
|
208
250
|
query: CursorQuery$4;
|
|
209
251
|
}
|
|
210
252
|
interface CursorQuery$4 extends CursorQueryPagingMethodOneOf$4 {
|
|
@@ -258,13 +300,13 @@ interface CursorPaging$4 {
|
|
|
258
300
|
cursor?: string | null;
|
|
259
301
|
}
|
|
260
302
|
interface QueryReferralProgramsResponse {
|
|
261
|
-
/**
|
|
303
|
+
/** The referral programs that match the query. */
|
|
262
304
|
referralPrograms?: ReferralProgram[];
|
|
263
305
|
/** Paging metadata. */
|
|
264
306
|
pagingMetadata?: CursorPagingMetadata$4;
|
|
265
307
|
}
|
|
266
308
|
interface CursorPagingMetadata$4 {
|
|
267
|
-
/** Number of items returned in
|
|
309
|
+
/** Number of items returned in current page. */
|
|
268
310
|
count?: number | null;
|
|
269
311
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
270
312
|
cursors?: Cursors$4;
|
|
@@ -283,56 +325,56 @@ interface Cursors$4 {
|
|
|
283
325
|
prev?: string | null;
|
|
284
326
|
}
|
|
285
327
|
interface UpdateReferralProgramRequest {
|
|
286
|
-
/** ReferralProgram to
|
|
328
|
+
/** Provide a `ReferralProgram` object with the fields to update. Include the latest `revision` for a successful update. */
|
|
287
329
|
referralProgram: ReferralProgram;
|
|
288
330
|
}
|
|
289
331
|
interface UpdateReferralProgramResponse {
|
|
290
|
-
/** The updated
|
|
332
|
+
/** The updated referral program. */
|
|
291
333
|
referralProgram?: ReferralProgram;
|
|
292
334
|
}
|
|
293
335
|
interface ActivateReferralProgramRequest {
|
|
294
336
|
}
|
|
295
337
|
interface ActivateReferralProgramResponse {
|
|
296
|
-
/** The activated
|
|
338
|
+
/** The activated referral program. */
|
|
297
339
|
referralProgram?: ReferralProgram;
|
|
298
340
|
}
|
|
299
341
|
interface PauseReferralProgramRequest {
|
|
300
342
|
}
|
|
301
343
|
interface PauseReferralProgramResponse {
|
|
302
|
-
/** The paused
|
|
344
|
+
/** The paused referral program. */
|
|
303
345
|
referralProgram?: ReferralProgram;
|
|
304
346
|
}
|
|
305
347
|
interface GetAISocialMediaPostsSuggestionsRequest {
|
|
306
|
-
/** The topic to generate suggestions for. */
|
|
348
|
+
/** The topic to generate socia media post suggestions for. */
|
|
307
349
|
topic?: string;
|
|
308
350
|
}
|
|
309
351
|
interface GetAISocialMediaPostsSuggestionsResponse {
|
|
310
|
-
/** The generated suggestions. */
|
|
352
|
+
/** The generated social media post suggestions. */
|
|
311
353
|
suggestions?: AISocialMediaPostSuggestion[];
|
|
312
|
-
/** The refer friends
|
|
354
|
+
/** The referral URL to refer friends. */
|
|
313
355
|
referFriendsPageUrl?: string | null;
|
|
314
356
|
}
|
|
315
357
|
interface AISocialMediaPostSuggestion {
|
|
316
|
-
/**
|
|
358
|
+
/** Suggested post content. */
|
|
317
359
|
postContent?: string;
|
|
318
|
-
/**
|
|
360
|
+
/** Suggested hashtags. */
|
|
319
361
|
hashtags?: string[];
|
|
320
362
|
}
|
|
321
363
|
interface GenerateAISocialMediaPostsSuggestionsRequest {
|
|
322
|
-
/** The topic to generate suggestions for. */
|
|
364
|
+
/** The topic to generate social media post suggestions for. */
|
|
323
365
|
topic?: string;
|
|
324
366
|
}
|
|
325
367
|
interface GenerateAISocialMediaPostsSuggestionsResponse {
|
|
326
|
-
/**
|
|
368
|
+
/** Generated social media post suggestions. */
|
|
327
369
|
suggestions?: AISocialMediaPostSuggestion[];
|
|
328
|
-
/**
|
|
370
|
+
/** Referral URL to refer friends. */
|
|
329
371
|
referFriendsPageUrl?: string | null;
|
|
330
372
|
}
|
|
331
373
|
interface GetReferralProgramPremiumFeaturesRequest {
|
|
332
374
|
}
|
|
333
375
|
interface GetReferralProgramPremiumFeaturesResponse {
|
|
334
376
|
/**
|
|
335
|
-
*
|
|
377
|
+
* Whether the site has the referral program feature enabled.
|
|
336
378
|
* @readonly
|
|
337
379
|
*/
|
|
338
380
|
referralProgram?: boolean;
|
|
@@ -389,7 +431,7 @@ interface DomainEventBodyOneOf$4 {
|
|
|
389
431
|
interface EntityCreatedEvent$4 {
|
|
390
432
|
entity?: string;
|
|
391
433
|
}
|
|
392
|
-
interface RestoreInfo {
|
|
434
|
+
interface RestoreInfo$1 {
|
|
393
435
|
deletedDate?: Date;
|
|
394
436
|
}
|
|
395
437
|
interface EntityUpdatedEvent$4 {
|
|
@@ -1424,11 +1466,11 @@ interface ReferralProgramsQueryBuilder {
|
|
|
1424
1466
|
find: () => Promise<ReferralProgramsQueryResult>;
|
|
1425
1467
|
}
|
|
1426
1468
|
interface GetAiSocialMediaPostsSuggestionsOptions {
|
|
1427
|
-
/** The topic to generate suggestions for. */
|
|
1469
|
+
/** The topic to generate socia media post suggestions for. */
|
|
1428
1470
|
topic?: string;
|
|
1429
1471
|
}
|
|
1430
1472
|
interface GenerateAiSocialMediaPostsSuggestionsOptions {
|
|
1431
|
-
/** The topic to generate suggestions for. */
|
|
1473
|
+
/** The topic to generate social media post suggestions for. */
|
|
1432
1474
|
topic?: string;
|
|
1433
1475
|
}
|
|
1434
1476
|
|
|
@@ -1476,19 +1518,39 @@ declare global {
|
|
|
1476
1518
|
}
|
|
1477
1519
|
}
|
|
1478
1520
|
|
|
1521
|
+
declare function getReferralProgram$1(httpClient: HttpClient): () => Promise<GetReferralProgramResponse & GetReferralProgramResponseNonNullableFields>;
|
|
1522
|
+
declare function queryReferralPrograms$1(httpClient: HttpClient): () => ReferralProgramsQueryBuilder;
|
|
1523
|
+
declare function updateReferralProgram$1(httpClient: HttpClient): (referralProgram: ReferralProgram) => Promise<UpdateReferralProgramResponse & UpdateReferralProgramResponseNonNullableFields>;
|
|
1524
|
+
declare function activateReferralProgram$1(httpClient: HttpClient): () => Promise<ActivateReferralProgramResponse & ActivateReferralProgramResponseNonNullableFields>;
|
|
1525
|
+
declare function pauseReferralProgram$1(httpClient: HttpClient): () => Promise<PauseReferralProgramResponse & PauseReferralProgramResponseNonNullableFields>;
|
|
1526
|
+
declare function getAiSocialMediaPostsSuggestions$1(httpClient: HttpClient): (options?: GetAiSocialMediaPostsSuggestionsOptions) => Promise<GetAISocialMediaPostsSuggestionsResponse & GetAISocialMediaPostsSuggestionsResponseNonNullableFields>;
|
|
1527
|
+
declare function generateAiSocialMediaPostsSuggestions$1(httpClient: HttpClient): (options?: GenerateAiSocialMediaPostsSuggestionsOptions) => Promise<GenerateAISocialMediaPostsSuggestionsResponse & GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields>;
|
|
1528
|
+
declare function getReferralProgramPremiumFeatures$1(httpClient: HttpClient): () => Promise<GetReferralProgramPremiumFeaturesResponse & GetReferralProgramPremiumFeaturesResponseNonNullableFields>;
|
|
1529
|
+
declare const onProgramUpdated$1: EventDefinition<ProgramUpdatedEnvelope, "wix.loyalty.referral.v1.program_updated">;
|
|
1530
|
+
|
|
1479
1531
|
declare function createRESTModule$4<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
1480
1532
|
|
|
1481
1533
|
declare function createEventModule$3<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1482
1534
|
|
|
1483
|
-
|
|
1484
|
-
declare const
|
|
1485
|
-
|
|
1486
|
-
declare const
|
|
1487
|
-
|
|
1488
|
-
declare const
|
|
1489
|
-
|
|
1490
|
-
declare const
|
|
1491
|
-
|
|
1535
|
+
type _publicGetReferralProgramType = typeof getReferralProgram$1;
|
|
1536
|
+
declare const getReferralProgram: ReturnType<typeof createRESTModule$4<_publicGetReferralProgramType>>;
|
|
1537
|
+
type _publicQueryReferralProgramsType = typeof queryReferralPrograms$1;
|
|
1538
|
+
declare const queryReferralPrograms: ReturnType<typeof createRESTModule$4<_publicQueryReferralProgramsType>>;
|
|
1539
|
+
type _publicUpdateReferralProgramType = typeof updateReferralProgram$1;
|
|
1540
|
+
declare const updateReferralProgram: ReturnType<typeof createRESTModule$4<_publicUpdateReferralProgramType>>;
|
|
1541
|
+
type _publicActivateReferralProgramType = typeof activateReferralProgram$1;
|
|
1542
|
+
declare const activateReferralProgram: ReturnType<typeof createRESTModule$4<_publicActivateReferralProgramType>>;
|
|
1543
|
+
type _publicPauseReferralProgramType = typeof pauseReferralProgram$1;
|
|
1544
|
+
declare const pauseReferralProgram: ReturnType<typeof createRESTModule$4<_publicPauseReferralProgramType>>;
|
|
1545
|
+
type _publicGetAiSocialMediaPostsSuggestionsType = typeof getAiSocialMediaPostsSuggestions$1;
|
|
1546
|
+
declare const getAiSocialMediaPostsSuggestions: ReturnType<typeof createRESTModule$4<_publicGetAiSocialMediaPostsSuggestionsType>>;
|
|
1547
|
+
type _publicGenerateAiSocialMediaPostsSuggestionsType = typeof generateAiSocialMediaPostsSuggestions$1;
|
|
1548
|
+
declare const generateAiSocialMediaPostsSuggestions: ReturnType<typeof createRESTModule$4<_publicGenerateAiSocialMediaPostsSuggestionsType>>;
|
|
1549
|
+
type _publicGetReferralProgramPremiumFeaturesType = typeof getReferralProgramPremiumFeatures$1;
|
|
1550
|
+
declare const getReferralProgramPremiumFeatures: ReturnType<typeof createRESTModule$4<_publicGetReferralProgramPremiumFeaturesType>>;
|
|
1551
|
+
|
|
1552
|
+
type _publicOnProgramUpdatedType = typeof onProgramUpdated$1;
|
|
1553
|
+
declare const onProgramUpdated: ReturnType<typeof createEventModule$3<_publicOnProgramUpdatedType>>;
|
|
1492
1554
|
|
|
1493
1555
|
type context$4_AISocialMediaPostSuggestion = AISocialMediaPostSuggestion;
|
|
1494
1556
|
type context$4_Action = Action;
|
|
@@ -1566,7 +1628,6 @@ type context$4_RecurringChargeSucceeded = RecurringChargeSucceeded;
|
|
|
1566
1628
|
type context$4_ReferralProgram = ReferralProgram;
|
|
1567
1629
|
type context$4_ReferralProgramsQueryBuilder = ReferralProgramsQueryBuilder;
|
|
1568
1630
|
type context$4_ReferralProgramsQueryResult = ReferralProgramsQueryResult;
|
|
1569
|
-
type context$4_RestoreInfo = RestoreInfo;
|
|
1570
1631
|
type context$4_ServiceProvisioned = ServiceProvisioned;
|
|
1571
1632
|
type context$4_ServiceRemoved = ServiceRemoved;
|
|
1572
1633
|
type context$4_SiteCreated = SiteCreated;
|
|
@@ -1604,6 +1665,15 @@ declare const context$4_UnassignReason: typeof UnassignReason;
|
|
|
1604
1665
|
type context$4_UpdateReferralProgramRequest = UpdateReferralProgramRequest;
|
|
1605
1666
|
type context$4_UpdateReferralProgramResponse = UpdateReferralProgramResponse;
|
|
1606
1667
|
type context$4_UpdateReferralProgramResponseNonNullableFields = UpdateReferralProgramResponseNonNullableFields;
|
|
1668
|
+
type context$4__publicActivateReferralProgramType = _publicActivateReferralProgramType;
|
|
1669
|
+
type context$4__publicGenerateAiSocialMediaPostsSuggestionsType = _publicGenerateAiSocialMediaPostsSuggestionsType;
|
|
1670
|
+
type context$4__publicGetAiSocialMediaPostsSuggestionsType = _publicGetAiSocialMediaPostsSuggestionsType;
|
|
1671
|
+
type context$4__publicGetReferralProgramPremiumFeaturesType = _publicGetReferralProgramPremiumFeaturesType;
|
|
1672
|
+
type context$4__publicGetReferralProgramType = _publicGetReferralProgramType;
|
|
1673
|
+
type context$4__publicOnProgramUpdatedType = _publicOnProgramUpdatedType;
|
|
1674
|
+
type context$4__publicPauseReferralProgramType = _publicPauseReferralProgramType;
|
|
1675
|
+
type context$4__publicQueryReferralProgramsType = _publicQueryReferralProgramsType;
|
|
1676
|
+
type context$4__publicUpdateReferralProgramType = _publicUpdateReferralProgramType;
|
|
1607
1677
|
declare const context$4_activateReferralProgram: typeof activateReferralProgram;
|
|
1608
1678
|
declare const context$4_generateAiSocialMediaPostsSuggestions: typeof generateAiSocialMediaPostsSuggestions;
|
|
1609
1679
|
declare const context$4_getAiSocialMediaPostsSuggestions: typeof getAiSocialMediaPostsSuggestions;
|
|
@@ -1614,7 +1684,7 @@ declare const context$4_pauseReferralProgram: typeof pauseReferralProgram;
|
|
|
1614
1684
|
declare const context$4_queryReferralPrograms: typeof queryReferralPrograms;
|
|
1615
1685
|
declare const context$4_updateReferralProgram: typeof updateReferralProgram;
|
|
1616
1686
|
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
|
|
1687
|
+
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
1688
|
}
|
|
1619
1689
|
|
|
1620
1690
|
/** ReferralEvent. */
|
|
@@ -1746,26 +1816,32 @@ interface QueryReferralEventRequest {
|
|
|
1746
1816
|
query: CursorQuery$3;
|
|
1747
1817
|
}
|
|
1748
1818
|
interface CursorQuery$3 extends CursorQueryPagingMethodOneOf$3 {
|
|
1749
|
-
/**
|
|
1819
|
+
/**
|
|
1820
|
+
* Cursor paging options.
|
|
1821
|
+
*
|
|
1822
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
1823
|
+
*/
|
|
1750
1824
|
cursorPaging?: CursorPaging$3;
|
|
1751
1825
|
/**
|
|
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`
|
|
1826
|
+
* Filter object.
|
|
1827
|
+
*
|
|
1828
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
1758
1829
|
*/
|
|
1759
1830
|
filter?: Record<string, any> | null;
|
|
1760
1831
|
/**
|
|
1761
|
-
* Sort object
|
|
1762
|
-
*
|
|
1832
|
+
* Sort object.
|
|
1833
|
+
*
|
|
1834
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
1763
1835
|
*/
|
|
1764
1836
|
sort?: Sorting$3[];
|
|
1765
1837
|
}
|
|
1766
1838
|
/** @oneof */
|
|
1767
1839
|
interface CursorQueryPagingMethodOneOf$3 {
|
|
1768
|
-
/**
|
|
1840
|
+
/**
|
|
1841
|
+
* Cursor paging options.
|
|
1842
|
+
*
|
|
1843
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
1844
|
+
*/
|
|
1769
1845
|
cursorPaging?: CursorPaging$3;
|
|
1770
1846
|
}
|
|
1771
1847
|
interface Sorting$3 {
|
|
@@ -1796,7 +1872,7 @@ interface QueryReferralEventResponse {
|
|
|
1796
1872
|
metadata?: CursorPagingMetadata$3;
|
|
1797
1873
|
}
|
|
1798
1874
|
interface CursorPagingMetadata$3 {
|
|
1799
|
-
/** Number of items returned in
|
|
1875
|
+
/** Number of items returned in current page. */
|
|
1800
1876
|
count?: number | null;
|
|
1801
1877
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
1802
1878
|
cursors?: Cursors$3;
|
|
@@ -1965,37 +2041,56 @@ declare enum Status$2 {
|
|
|
1965
2041
|
DELETED = "DELETED"
|
|
1966
2042
|
}
|
|
1967
2043
|
interface Coupon$1 extends CouponDiscountTypeOptionsOneOf$1, CouponScopeOrMinSubtotalOneOf$1 {
|
|
1968
|
-
/** Options for fixed amount discount
|
|
2044
|
+
/** Options for fixed amount discount. */
|
|
1969
2045
|
fixedAmountOptions?: FixedAmountDiscount$1;
|
|
1970
|
-
/** Options for percentage discount
|
|
2046
|
+
/** Options for percentage discount. */
|
|
1971
2047
|
percentageOptions?: PercentageDiscount$1;
|
|
1972
2048
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
1973
2049
|
minimumSubtotal?: number;
|
|
1974
|
-
/** Specifies the type of line items this coupon will apply to. */
|
|
2050
|
+
/** 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
2051
|
scope?: CouponScope$1;
|
|
1976
2052
|
/** Coupon name. */
|
|
1977
2053
|
name?: string;
|
|
1978
|
-
/**
|
|
2054
|
+
/**
|
|
2055
|
+
* Coupon discount type.
|
|
2056
|
+
*
|
|
2057
|
+
* - `UNKNOWN`: Unknown discount type.
|
|
2058
|
+
* - `FIXED_AMOUNT`: Discount as a fixed amount.
|
|
2059
|
+
* - `PERCENTAGE`: Discount as a perctange.
|
|
2060
|
+
* - `FREE_SHIPPING`: Free shipping. If `true`, the coupon applies to all items in all `namespaces`.
|
|
2061
|
+
*/
|
|
1979
2062
|
discountType?: DiscountType$1;
|
|
1980
|
-
/**
|
|
2063
|
+
/**
|
|
2064
|
+
* Whether the coupon is limited to one item.
|
|
2065
|
+
* If `true` and a customer pays for multiple items, the discount applies to only the lowest priced item.
|
|
2066
|
+
* Coupons with a bookings `scope.namespace` are always limited to one item.
|
|
2067
|
+
*/
|
|
1981
2068
|
limitedToOneItem?: boolean | null;
|
|
1982
|
-
/**
|
|
2069
|
+
/** Whether the coupon applies to subscription products. */
|
|
1983
2070
|
appliesToSubscriptions?: boolean | null;
|
|
1984
|
-
/**
|
|
2071
|
+
/**
|
|
2072
|
+
* Specifies the amount of discounted cycles for a subscription item.
|
|
2073
|
+
*
|
|
2074
|
+
* - Can only be set when `scope.namespace = pricingPlans`.
|
|
2075
|
+
* - If `discountedCycleCount` is empty, the coupon applies to all available cycles.
|
|
2076
|
+
* - `discountedCycleCount` is ignored if `appliesToSubscriptions = true`.
|
|
2077
|
+
*
|
|
2078
|
+
* Max: `999`
|
|
2079
|
+
*/
|
|
1985
2080
|
discountedCycleCount?: number | null;
|
|
1986
2081
|
}
|
|
1987
2082
|
/** @oneof */
|
|
1988
2083
|
interface CouponDiscountTypeOptionsOneOf$1 {
|
|
1989
|
-
/** Options for fixed amount discount
|
|
2084
|
+
/** Options for fixed amount discount. */
|
|
1990
2085
|
fixedAmountOptions?: FixedAmountDiscount$1;
|
|
1991
|
-
/** Options for percentage discount
|
|
2086
|
+
/** Options for percentage discount. */
|
|
1992
2087
|
percentageOptions?: PercentageDiscount$1;
|
|
1993
2088
|
}
|
|
1994
2089
|
/** @oneof */
|
|
1995
2090
|
interface CouponScopeOrMinSubtotalOneOf$1 {
|
|
1996
2091
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
1997
2092
|
minimumSubtotal?: number;
|
|
1998
|
-
/** Specifies the type of line items this coupon will apply to. */
|
|
2093
|
+
/** 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
2094
|
scope?: CouponScope$1;
|
|
2000
2095
|
}
|
|
2001
2096
|
declare enum DiscountType$1 {
|
|
@@ -2009,17 +2104,17 @@ declare enum DiscountType$1 {
|
|
|
2009
2104
|
FREE_SHIPPING = "FREE_SHIPPING"
|
|
2010
2105
|
}
|
|
2011
2106
|
interface FixedAmountDiscount$1 {
|
|
2012
|
-
/**
|
|
2107
|
+
/** Amount of discount as a fixed value. */
|
|
2013
2108
|
amount?: number;
|
|
2014
2109
|
}
|
|
2015
2110
|
interface PercentageDiscount$1 {
|
|
2016
|
-
/** Percentage
|
|
2111
|
+
/** Percentage of discount. */
|
|
2017
2112
|
percentage?: number;
|
|
2018
2113
|
}
|
|
2019
2114
|
interface CouponScope$1 {
|
|
2020
|
-
/**
|
|
2115
|
+
/** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
|
|
2021
2116
|
namespace?: string;
|
|
2022
|
-
/**
|
|
2117
|
+
/** Coupon scope's applied group, for example: Event or ticket in Wix Events */
|
|
2023
2118
|
group?: Group$1;
|
|
2024
2119
|
}
|
|
2025
2120
|
interface Group$1 {
|
|
@@ -2063,7 +2158,7 @@ interface DomainEvent$3 extends DomainEventBodyOneOf$3 {
|
|
|
2063
2158
|
slug?: string;
|
|
2064
2159
|
/** ID of the entity associated with the event. */
|
|
2065
2160
|
entityId?: string;
|
|
2066
|
-
/** Event timestamp. */
|
|
2161
|
+
/** 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
2162
|
eventTime?: Date;
|
|
2068
2163
|
/**
|
|
2069
2164
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -2092,7 +2187,7 @@ interface DomainEventBodyOneOf$3 {
|
|
|
2092
2187
|
interface EntityCreatedEvent$3 {
|
|
2093
2188
|
entity?: string;
|
|
2094
2189
|
}
|
|
2095
|
-
interface
|
|
2190
|
+
interface RestoreInfo {
|
|
2096
2191
|
deletedDate?: Date;
|
|
2097
2192
|
}
|
|
2098
2193
|
interface EntityUpdatedEvent$3 {
|
|
@@ -2311,7 +2406,7 @@ interface EventMetadata$2 extends BaseEventMetadata$2 {
|
|
|
2311
2406
|
slug?: string;
|
|
2312
2407
|
/** ID of the entity associated with the event. */
|
|
2313
2408
|
entityId?: string;
|
|
2314
|
-
/** Event timestamp. */
|
|
2409
|
+
/** 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
2410
|
eventTime?: Date;
|
|
2316
2411
|
/**
|
|
2317
2412
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -2419,16 +2514,30 @@ interface QueryReferredFriendActionsOptions {
|
|
|
2419
2514
|
contactIds?: string[];
|
|
2420
2515
|
}
|
|
2421
2516
|
|
|
2517
|
+
declare function getReferralEvent$1(httpClient: HttpClient): (referralEventId: string) => Promise<ReferralEvent & ReferralEventNonNullableFields>;
|
|
2518
|
+
declare function queryReferralEvent$1(httpClient: HttpClient): () => ReferralEventsQueryBuilder;
|
|
2519
|
+
declare function getReferralStatistics$1(httpClient: HttpClient): () => Promise<GetReferralStatisticsResponse & GetReferralStatisticsResponseNonNullableFields>;
|
|
2520
|
+
declare function queryReferringCustomerTotals$1(httpClient: HttpClient): (options?: QueryReferringCustomerTotalsOptions) => Promise<QueryReferringCustomerTotalsResponse & QueryReferringCustomerTotalsResponseNonNullableFields>;
|
|
2521
|
+
declare function queryReferredFriendActions$1(httpClient: HttpClient): (options?: QueryReferredFriendActionsOptions) => Promise<QueryReferredFriendActionsResponse & QueryReferredFriendActionsResponseNonNullableFields>;
|
|
2522
|
+
declare const onReferralEventCreated$1: EventDefinition<ReferralEventCreatedEnvelope, "wix.loyalty.referral.v1.referral_event_created">;
|
|
2523
|
+
|
|
2422
2524
|
declare function createRESTModule$3<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
2423
2525
|
|
|
2424
2526
|
declare function createEventModule$2<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
2425
2527
|
|
|
2426
|
-
|
|
2427
|
-
declare const
|
|
2428
|
-
|
|
2429
|
-
declare const
|
|
2430
|
-
|
|
2431
|
-
declare const
|
|
2528
|
+
type _publicGetReferralEventType = typeof getReferralEvent$1;
|
|
2529
|
+
declare const getReferralEvent: ReturnType<typeof createRESTModule$3<_publicGetReferralEventType>>;
|
|
2530
|
+
type _publicQueryReferralEventType = typeof queryReferralEvent$1;
|
|
2531
|
+
declare const queryReferralEvent: ReturnType<typeof createRESTModule$3<_publicQueryReferralEventType>>;
|
|
2532
|
+
type _publicGetReferralStatisticsType = typeof getReferralStatistics$1;
|
|
2533
|
+
declare const getReferralStatistics: ReturnType<typeof createRESTModule$3<_publicGetReferralStatisticsType>>;
|
|
2534
|
+
type _publicQueryReferringCustomerTotalsType = typeof queryReferringCustomerTotals$1;
|
|
2535
|
+
declare const queryReferringCustomerTotals: ReturnType<typeof createRESTModule$3<_publicQueryReferringCustomerTotalsType>>;
|
|
2536
|
+
type _publicQueryReferredFriendActionsType = typeof queryReferredFriendActions$1;
|
|
2537
|
+
declare const queryReferredFriendActions: ReturnType<typeof createRESTModule$3<_publicQueryReferredFriendActionsType>>;
|
|
2538
|
+
|
|
2539
|
+
type _publicOnReferralEventCreatedType = typeof onReferralEventCreated$1;
|
|
2540
|
+
declare const onReferralEventCreated: ReturnType<typeof createEventModule$2<_publicOnReferralEventCreatedType>>;
|
|
2432
2541
|
|
|
2433
2542
|
type context$3_CreateReferralEventRequest = CreateReferralEventRequest;
|
|
2434
2543
|
type context$3_CreateReferralEventResponse = CreateReferralEventResponse;
|
|
@@ -2460,12 +2569,19 @@ type context$3_ReferredFriendActionEvent = ReferredFriendActionEvent;
|
|
|
2460
2569
|
type context$3_ReferredFriendActionRewardTypeOptionsOneOf = ReferredFriendActionRewardTypeOptionsOneOf;
|
|
2461
2570
|
type context$3_ReferredFriendSignupEvent = ReferredFriendSignupEvent;
|
|
2462
2571
|
type context$3_ReferringCustomerTotal = ReferringCustomerTotal;
|
|
2572
|
+
type context$3_RestoreInfo = RestoreInfo;
|
|
2463
2573
|
type context$3_RewardEvent = RewardEvent;
|
|
2464
2574
|
type context$3_RewardEventReceiverOneOf = RewardEventReceiverOneOf;
|
|
2465
2575
|
type context$3_Trigger = Trigger;
|
|
2466
2576
|
type context$3_V1ActionEvent = V1ActionEvent;
|
|
2467
2577
|
type context$3_V1SuccessfulReferralEvent = V1SuccessfulReferralEvent;
|
|
2468
2578
|
type context$3_V1Trigger = V1Trigger;
|
|
2579
|
+
type context$3__publicGetReferralEventType = _publicGetReferralEventType;
|
|
2580
|
+
type context$3__publicGetReferralStatisticsType = _publicGetReferralStatisticsType;
|
|
2581
|
+
type context$3__publicOnReferralEventCreatedType = _publicOnReferralEventCreatedType;
|
|
2582
|
+
type context$3__publicQueryReferralEventType = _publicQueryReferralEventType;
|
|
2583
|
+
type context$3__publicQueryReferredFriendActionsType = _publicQueryReferredFriendActionsType;
|
|
2584
|
+
type context$3__publicQueryReferringCustomerTotalsType = _publicQueryReferringCustomerTotalsType;
|
|
2469
2585
|
declare const context$3_getReferralEvent: typeof getReferralEvent;
|
|
2470
2586
|
declare const context$3_getReferralStatistics: typeof getReferralStatistics;
|
|
2471
2587
|
declare const context$3_onReferralEventCreated: typeof onReferralEventCreated;
|
|
@@ -2473,7 +2589,7 @@ declare const context$3_queryReferralEvent: typeof queryReferralEvent;
|
|
|
2473
2589
|
declare const context$3_queryReferredFriendActions: typeof queryReferredFriendActions;
|
|
2474
2590
|
declare const context$3_queryReferringCustomerTotals: typeof queryReferringCustomerTotals;
|
|
2475
2591
|
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
|
|
2592
|
+
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
2593
|
}
|
|
2478
2594
|
|
|
2479
2595
|
/** ReferralReward is the main entity of ReferralRewards that can be used for lorem ipsum dolor */
|
|
@@ -2955,10 +3071,15 @@ interface QueryReferralRewardsOptions {
|
|
|
2955
3071
|
contactId?: string | null;
|
|
2956
3072
|
}
|
|
2957
3073
|
|
|
3074
|
+
declare function getReferralReward$1(httpClient: HttpClient): (_id: string) => Promise<ReferralReward & ReferralRewardNonNullableFields>;
|
|
3075
|
+
declare function queryReferralRewards$1(httpClient: HttpClient): (query: CursorQuery$2, options?: QueryReferralRewardsOptions) => Promise<QueryReferralRewardsResponse & QueryReferralRewardsResponseNonNullableFields>;
|
|
3076
|
+
|
|
2958
3077
|
declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
2959
3078
|
|
|
2960
|
-
|
|
2961
|
-
declare const
|
|
3079
|
+
type _publicGetReferralRewardType = typeof getReferralReward$1;
|
|
3080
|
+
declare const getReferralReward: ReturnType<typeof createRESTModule$2<_publicGetReferralRewardType>>;
|
|
3081
|
+
type _publicQueryReferralRewardsType = typeof queryReferralRewards$1;
|
|
3082
|
+
declare const queryReferralRewards: ReturnType<typeof createRESTModule$2<_publicQueryReferralRewardsType>>;
|
|
2962
3083
|
|
|
2963
3084
|
type context$2_BulkGetReferralRewardsRequest = BulkGetReferralRewardsRequest;
|
|
2964
3085
|
type context$2_BulkGetReferralRewardsResponse = BulkGetReferralRewardsResponse;
|
|
@@ -2994,10 +3115,12 @@ type context$2_V1Coupon = V1Coupon;
|
|
|
2994
3115
|
type context$2_V1LoyaltyPoints = V1LoyaltyPoints;
|
|
2995
3116
|
type context$2_ValidateReferralRewardRequest = ValidateReferralRewardRequest;
|
|
2996
3117
|
type context$2_ValidateReferralRewardResponse = ValidateReferralRewardResponse;
|
|
3118
|
+
type context$2__publicGetReferralRewardType = _publicGetReferralRewardType;
|
|
3119
|
+
type context$2__publicQueryReferralRewardsType = _publicQueryReferralRewardsType;
|
|
2997
3120
|
declare const context$2_getReferralReward: typeof getReferralReward;
|
|
2998
3121
|
declare const context$2_queryReferralRewards: typeof queryReferralRewards;
|
|
2999
3122
|
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 };
|
|
3123
|
+
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
3124
|
}
|
|
3002
3125
|
|
|
3003
3126
|
/** ReferredFriend is the main entity of ReferredFriends that can be used for lorem ipsum dolor */
|
|
@@ -3481,19 +3604,41 @@ interface ReferredFriendsQueryBuilder {
|
|
|
3481
3604
|
find: () => Promise<ReferredFriendsQueryResult>;
|
|
3482
3605
|
}
|
|
3483
3606
|
|
|
3607
|
+
declare function createReferredFriend$1(httpClient: HttpClient): () => Promise<CreateReferredFriendResponse & CreateReferredFriendResponseNonNullableFields>;
|
|
3608
|
+
declare function getReferredFriend$1(httpClient: HttpClient): (referredFriendId: string) => Promise<GetReferredFriendResponse & GetReferredFriendResponseNonNullableFields>;
|
|
3609
|
+
declare function getReferredFriendByContactId$1(httpClient: HttpClient): (contactId: string) => Promise<ReferredFriend & ReferredFriendNonNullableFields>;
|
|
3610
|
+
declare function updateReferredFriend$1(httpClient: HttpClient): (_id: string, referredFriend: UpdateReferredFriend) => Promise<ReferredFriend & ReferredFriendNonNullableFields>;
|
|
3611
|
+
declare function deleteReferredFriend$1(httpClient: HttpClient): (referredFriendId: string, options?: DeleteReferredFriendOptions) => Promise<void>;
|
|
3612
|
+
declare function queryReferredFriend$1(httpClient: HttpClient): () => ReferredFriendsQueryBuilder;
|
|
3613
|
+
declare const onReferredFriendCreated$1: EventDefinition<ReferredFriendCreatedEnvelope, "wix.loyalty.referral.v1.referred_friend_created">;
|
|
3614
|
+
declare const onReferredFriendUpdated$1: EventDefinition<ReferredFriendUpdatedEnvelope, "wix.loyalty.referral.v1.referred_friend_updated">;
|
|
3615
|
+
declare const onReferredFriendDeleted$1: EventDefinition<ReferredFriendDeletedEnvelope, "wix.loyalty.referral.v1.referred_friend_deleted">;
|
|
3616
|
+
|
|
3484
3617
|
declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
3485
3618
|
|
|
3486
3619
|
declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
3487
3620
|
|
|
3488
|
-
|
|
3489
|
-
declare const
|
|
3490
|
-
|
|
3491
|
-
declare const
|
|
3492
|
-
|
|
3493
|
-
declare const
|
|
3494
|
-
|
|
3495
|
-
declare const
|
|
3496
|
-
|
|
3621
|
+
type _publicCreateReferredFriendType = typeof createReferredFriend$1;
|
|
3622
|
+
declare const createReferredFriend: ReturnType<typeof createRESTModule$1<_publicCreateReferredFriendType>>;
|
|
3623
|
+
type _publicGetReferredFriendType = typeof getReferredFriend$1;
|
|
3624
|
+
declare const getReferredFriend: ReturnType<typeof createRESTModule$1<_publicGetReferredFriendType>>;
|
|
3625
|
+
type _publicGetReferredFriendByContactIdType = typeof getReferredFriendByContactId$1;
|
|
3626
|
+
declare const getReferredFriendByContactId: ReturnType<typeof createRESTModule$1<_publicGetReferredFriendByContactIdType>>;
|
|
3627
|
+
type _publicUpdateReferredFriendType = typeof updateReferredFriend$1;
|
|
3628
|
+
declare const updateReferredFriend: ReturnType<typeof createRESTModule$1<_publicUpdateReferredFriendType>>;
|
|
3629
|
+
type _publicDeleteReferredFriendType = typeof deleteReferredFriend$1;
|
|
3630
|
+
declare const deleteReferredFriend: ReturnType<typeof createRESTModule$1<_publicDeleteReferredFriendType>>;
|
|
3631
|
+
type _publicQueryReferredFriendType = typeof queryReferredFriend$1;
|
|
3632
|
+
declare const queryReferredFriend: ReturnType<typeof createRESTModule$1<_publicQueryReferredFriendType>>;
|
|
3633
|
+
|
|
3634
|
+
type _publicOnReferredFriendCreatedType = typeof onReferredFriendCreated$1;
|
|
3635
|
+
declare const onReferredFriendCreated: ReturnType<typeof createEventModule$1<_publicOnReferredFriendCreatedType>>;
|
|
3636
|
+
|
|
3637
|
+
type _publicOnReferredFriendUpdatedType = typeof onReferredFriendUpdated$1;
|
|
3638
|
+
declare const onReferredFriendUpdated: ReturnType<typeof createEventModule$1<_publicOnReferredFriendUpdatedType>>;
|
|
3639
|
+
|
|
3640
|
+
type _publicOnReferredFriendDeletedType = typeof onReferredFriendDeleted$1;
|
|
3641
|
+
declare const onReferredFriendDeleted: ReturnType<typeof createEventModule$1<_publicOnReferredFriendDeletedType>>;
|
|
3497
3642
|
|
|
3498
3643
|
type context$1_CreateReferredFriendRequest = CreateReferredFriendRequest;
|
|
3499
3644
|
type context$1_CreateReferredFriendResponse = CreateReferredFriendResponse;
|
|
@@ -3526,6 +3671,15 @@ type context$1_UpdateReferredFriend = UpdateReferredFriend;
|
|
|
3526
3671
|
type context$1_UpdateReferredFriendRequest = UpdateReferredFriendRequest;
|
|
3527
3672
|
type context$1_UpdateReferredFriendResponse = UpdateReferredFriendResponse;
|
|
3528
3673
|
type context$1_UpdateReferredFriendResponseNonNullableFields = UpdateReferredFriendResponseNonNullableFields;
|
|
3674
|
+
type context$1__publicCreateReferredFriendType = _publicCreateReferredFriendType;
|
|
3675
|
+
type context$1__publicDeleteReferredFriendType = _publicDeleteReferredFriendType;
|
|
3676
|
+
type context$1__publicGetReferredFriendByContactIdType = _publicGetReferredFriendByContactIdType;
|
|
3677
|
+
type context$1__publicGetReferredFriendType = _publicGetReferredFriendType;
|
|
3678
|
+
type context$1__publicOnReferredFriendCreatedType = _publicOnReferredFriendCreatedType;
|
|
3679
|
+
type context$1__publicOnReferredFriendDeletedType = _publicOnReferredFriendDeletedType;
|
|
3680
|
+
type context$1__publicOnReferredFriendUpdatedType = _publicOnReferredFriendUpdatedType;
|
|
3681
|
+
type context$1__publicQueryReferredFriendType = _publicQueryReferredFriendType;
|
|
3682
|
+
type context$1__publicUpdateReferredFriendType = _publicUpdateReferredFriendType;
|
|
3529
3683
|
declare const context$1_createReferredFriend: typeof createReferredFriend;
|
|
3530
3684
|
declare const context$1_deleteReferredFriend: typeof deleteReferredFriend;
|
|
3531
3685
|
declare const context$1_getReferredFriend: typeof getReferredFriend;
|
|
@@ -3536,7 +3690,7 @@ declare const context$1_onReferredFriendUpdated: typeof onReferredFriendUpdated;
|
|
|
3536
3690
|
declare const context$1_queryReferredFriend: typeof queryReferredFriend;
|
|
3537
3691
|
declare const context$1_updateReferredFriend: typeof updateReferredFriend;
|
|
3538
3692
|
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 };
|
|
3693
|
+
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
3694
|
}
|
|
3541
3695
|
|
|
3542
3696
|
/** ReferringCustomer is the main entity of ReferringCustomers. */
|
|
@@ -3936,17 +4090,34 @@ interface DeleteReferringCustomerOptions {
|
|
|
3936
4090
|
revision?: string;
|
|
3937
4091
|
}
|
|
3938
4092
|
|
|
4093
|
+
declare function generateReferringCustomerForContact$1(httpClient: HttpClient): (contactId: string) => Promise<GenerateReferringCustomerForContactResponse & GenerateReferringCustomerForContactResponseNonNullableFields>;
|
|
4094
|
+
declare function getReferringCustomer$1(httpClient: HttpClient): (referringCustomerId: string) => Promise<ReferringCustomer & ReferringCustomerNonNullableFields>;
|
|
4095
|
+
declare function getReferringCustomerByReferralCode$1(httpClient: HttpClient): (referralCode: string) => Promise<GetReferringCustomerByReferralCodeResponse & GetReferringCustomerByReferralCodeResponseNonNullableFields>;
|
|
4096
|
+
declare function queryReferringCustomers$1(httpClient: HttpClient): () => ReferringCustomersQueryBuilder;
|
|
4097
|
+
declare function deleteReferringCustomer$1(httpClient: HttpClient): (referringCustomerId: string, options?: DeleteReferringCustomerOptions) => Promise<void>;
|
|
4098
|
+
declare const onReferringCustomerCreated$1: EventDefinition<ReferringCustomerCreatedEnvelope, "wix.loyalty.referral.v1.referring_customer_created">;
|
|
4099
|
+
declare const onReferringCustomerDeleted$1: EventDefinition<ReferringCustomerDeletedEnvelope, "wix.loyalty.referral.v1.referring_customer_deleted">;
|
|
4100
|
+
|
|
3939
4101
|
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
3940
4102
|
|
|
3941
4103
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
3942
4104
|
|
|
3943
|
-
|
|
3944
|
-
declare const
|
|
3945
|
-
|
|
3946
|
-
declare const
|
|
3947
|
-
|
|
3948
|
-
declare const
|
|
3949
|
-
|
|
4105
|
+
type _publicGenerateReferringCustomerForContactType = typeof generateReferringCustomerForContact$1;
|
|
4106
|
+
declare const generateReferringCustomerForContact: ReturnType<typeof createRESTModule<_publicGenerateReferringCustomerForContactType>>;
|
|
4107
|
+
type _publicGetReferringCustomerType = typeof getReferringCustomer$1;
|
|
4108
|
+
declare const getReferringCustomer: ReturnType<typeof createRESTModule<_publicGetReferringCustomerType>>;
|
|
4109
|
+
type _publicGetReferringCustomerByReferralCodeType = typeof getReferringCustomerByReferralCode$1;
|
|
4110
|
+
declare const getReferringCustomerByReferralCode: ReturnType<typeof createRESTModule<_publicGetReferringCustomerByReferralCodeType>>;
|
|
4111
|
+
type _publicQueryReferringCustomersType = typeof queryReferringCustomers$1;
|
|
4112
|
+
declare const queryReferringCustomers: ReturnType<typeof createRESTModule<_publicQueryReferringCustomersType>>;
|
|
4113
|
+
type _publicDeleteReferringCustomerType = typeof deleteReferringCustomer$1;
|
|
4114
|
+
declare const deleteReferringCustomer: ReturnType<typeof createRESTModule<_publicDeleteReferringCustomerType>>;
|
|
4115
|
+
|
|
4116
|
+
type _publicOnReferringCustomerCreatedType = typeof onReferringCustomerCreated$1;
|
|
4117
|
+
declare const onReferringCustomerCreated: ReturnType<typeof createEventModule<_publicOnReferringCustomerCreatedType>>;
|
|
4118
|
+
|
|
4119
|
+
type _publicOnReferringCustomerDeletedType = typeof onReferringCustomerDeleted$1;
|
|
4120
|
+
declare const onReferringCustomerDeleted: ReturnType<typeof createEventModule<_publicOnReferringCustomerDeletedType>>;
|
|
3950
4121
|
|
|
3951
4122
|
type context_ActionEvent = ActionEvent;
|
|
3952
4123
|
type context_BaseEventMetadata = BaseEventMetadata;
|
|
@@ -3991,6 +4162,13 @@ type context_Sorting = Sorting;
|
|
|
3991
4162
|
type context_UndeleteInfo = UndeleteInfo;
|
|
3992
4163
|
type context_WebhookIdentityType = WebhookIdentityType;
|
|
3993
4164
|
declare const context_WebhookIdentityType: typeof WebhookIdentityType;
|
|
4165
|
+
type context__publicDeleteReferringCustomerType = _publicDeleteReferringCustomerType;
|
|
4166
|
+
type context__publicGenerateReferringCustomerForContactType = _publicGenerateReferringCustomerForContactType;
|
|
4167
|
+
type context__publicGetReferringCustomerByReferralCodeType = _publicGetReferringCustomerByReferralCodeType;
|
|
4168
|
+
type context__publicGetReferringCustomerType = _publicGetReferringCustomerType;
|
|
4169
|
+
type context__publicOnReferringCustomerCreatedType = _publicOnReferringCustomerCreatedType;
|
|
4170
|
+
type context__publicOnReferringCustomerDeletedType = _publicOnReferringCustomerDeletedType;
|
|
4171
|
+
type context__publicQueryReferringCustomersType = _publicQueryReferringCustomersType;
|
|
3994
4172
|
declare const context_deleteReferringCustomer: typeof deleteReferringCustomer;
|
|
3995
4173
|
declare const context_generateReferringCustomerForContact: typeof generateReferringCustomerForContact;
|
|
3996
4174
|
declare const context_getReferringCustomer: typeof getReferringCustomer;
|
|
@@ -3999,7 +4177,7 @@ declare const context_onReferringCustomerCreated: typeof onReferringCustomerCrea
|
|
|
3999
4177
|
declare const context_onReferringCustomerDeleted: typeof onReferringCustomerDeleted;
|
|
4000
4178
|
declare const context_queryReferringCustomers: typeof queryReferringCustomers;
|
|
4001
4179
|
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 };
|
|
4180
|
+
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
4181
|
}
|
|
4004
4182
|
|
|
4005
4183
|
export { context as customers, context$1 as friends, context$4 as programs, context$2 as rewards, context$3 as tracker };
|