@wix/referral 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/context.d.ts +1 -0
- package/build/cjs/context.js +2 -1
- package/build/cjs/context.js.map +1 -1
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +2 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +2 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/context.d.ts +1 -0
- package/build/es/context.js +1 -0
- package/build/es/context.js.map +1 -1
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +1 -0
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +1 -0
- package/build/es/meta.js.map +1 -1
- package/package.json +3 -2
- package/type-bundles/context.bundle.d.ts +418 -68
- package/type-bundles/index.bundle.d.ts +733 -139
- package/type-bundles/meta.bundle.d.ts +754 -97
|
@@ -81,7 +81,7 @@ interface RewardEvent extends RewardEventReceiverOneOf {
|
|
|
81
81
|
/** The referral reward ID. */
|
|
82
82
|
referralRewardId?: string;
|
|
83
83
|
/** The reward type. */
|
|
84
|
-
rewardType?: Reward;
|
|
84
|
+
rewardType?: Reward$1;
|
|
85
85
|
}
|
|
86
86
|
/** @oneof */
|
|
87
87
|
interface RewardEventReceiverOneOf {
|
|
@@ -96,7 +96,7 @@ interface RewardEventReceiverOneOf {
|
|
|
96
96
|
*/
|
|
97
97
|
rewardedReferredFriendId?: string;
|
|
98
98
|
}
|
|
99
|
-
declare enum Reward {
|
|
99
|
+
declare enum Reward$1 {
|
|
100
100
|
/** Unknown reward type. */
|
|
101
101
|
UNKNOWN = "UNKNOWN",
|
|
102
102
|
/** Reward is a coupon. */
|
|
@@ -124,11 +124,11 @@ interface GetReferralEventResponse {
|
|
|
124
124
|
}
|
|
125
125
|
interface QueryReferralEventRequest {
|
|
126
126
|
/** Query to filter ReferralEvents. */
|
|
127
|
-
query: CursorQuery$
|
|
127
|
+
query: CursorQuery$3;
|
|
128
128
|
}
|
|
129
|
-
interface CursorQuery$
|
|
129
|
+
interface CursorQuery$3 extends CursorQueryPagingMethodOneOf$3 {
|
|
130
130
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
131
|
-
cursorPaging?: CursorPaging$
|
|
131
|
+
cursorPaging?: CursorPaging$3;
|
|
132
132
|
/**
|
|
133
133
|
* Filter object in the following format:
|
|
134
134
|
* `"filter" : {
|
|
@@ -142,24 +142,24 @@ interface CursorQuery$2 extends CursorQueryPagingMethodOneOf$2 {
|
|
|
142
142
|
* Sort object in the following format:
|
|
143
143
|
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
144
144
|
*/
|
|
145
|
-
sort?: Sorting$
|
|
145
|
+
sort?: Sorting$3[];
|
|
146
146
|
}
|
|
147
147
|
/** @oneof */
|
|
148
|
-
interface CursorQueryPagingMethodOneOf$
|
|
148
|
+
interface CursorQueryPagingMethodOneOf$3 {
|
|
149
149
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
150
|
-
cursorPaging?: CursorPaging$
|
|
150
|
+
cursorPaging?: CursorPaging$3;
|
|
151
151
|
}
|
|
152
|
-
interface Sorting$
|
|
152
|
+
interface Sorting$3 {
|
|
153
153
|
/** Name of the field to sort by. */
|
|
154
154
|
fieldName?: string;
|
|
155
155
|
/** Sort order. */
|
|
156
|
-
order?: SortOrder$
|
|
156
|
+
order?: SortOrder$3;
|
|
157
157
|
}
|
|
158
|
-
declare enum SortOrder$
|
|
158
|
+
declare enum SortOrder$3 {
|
|
159
159
|
ASC = "ASC",
|
|
160
160
|
DESC = "DESC"
|
|
161
161
|
}
|
|
162
|
-
interface CursorPaging$
|
|
162
|
+
interface CursorPaging$3 {
|
|
163
163
|
/** Maximum number of items to return in the results. */
|
|
164
164
|
limit?: number | null;
|
|
165
165
|
/**
|
|
@@ -174,13 +174,13 @@ interface QueryReferralEventResponse {
|
|
|
174
174
|
/** List of ReferralEvents that match the query. */
|
|
175
175
|
referralEvents?: ReferralEvent[];
|
|
176
176
|
/** Paging metadata. */
|
|
177
|
-
metadata?: CursorPagingMetadata$
|
|
177
|
+
metadata?: CursorPagingMetadata$3;
|
|
178
178
|
}
|
|
179
|
-
interface CursorPagingMetadata$
|
|
179
|
+
interface CursorPagingMetadata$3 {
|
|
180
180
|
/** Number of items returned in the response. */
|
|
181
181
|
count?: number | null;
|
|
182
182
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
183
|
-
cursors?: Cursors$
|
|
183
|
+
cursors?: Cursors$3;
|
|
184
184
|
/**
|
|
185
185
|
* Whether there are more pages to retrieve following the current page.
|
|
186
186
|
*
|
|
@@ -189,7 +189,7 @@ interface CursorPagingMetadata$2 {
|
|
|
189
189
|
*/
|
|
190
190
|
hasNext?: boolean | null;
|
|
191
191
|
}
|
|
192
|
-
interface Cursors$
|
|
192
|
+
interface Cursors$3 {
|
|
193
193
|
/** Cursor string pointing to the next page in the list of results. */
|
|
194
194
|
next?: string | null;
|
|
195
195
|
/** Cursor pointing to the previous page in the list of results. */
|
|
@@ -207,7 +207,7 @@ interface GetReferralStatisticsResponse {
|
|
|
207
207
|
}
|
|
208
208
|
interface QueryReferringCustomerTotalsRequest {
|
|
209
209
|
/** Query to filter ReferringCustomerTotals. */
|
|
210
|
-
query?: CursorQuery$
|
|
210
|
+
query?: CursorQuery$3;
|
|
211
211
|
/** List of contact ids to filter ReferringCustomerTotals. */
|
|
212
212
|
contactIds?: string[];
|
|
213
213
|
}
|
|
@@ -215,7 +215,7 @@ interface QueryReferringCustomerTotalsResponse {
|
|
|
215
215
|
/** List of ReferringCustomerTotals that match the query. */
|
|
216
216
|
referringCustomerTotals?: ReferringCustomerTotal[];
|
|
217
217
|
/** Paging metadata. */
|
|
218
|
-
metadata?: CursorPagingMetadata$
|
|
218
|
+
metadata?: CursorPagingMetadata$3;
|
|
219
219
|
}
|
|
220
220
|
interface ReferringCustomerTotal {
|
|
221
221
|
/**
|
|
@@ -256,7 +256,7 @@ interface ReferringCustomerTotal {
|
|
|
256
256
|
}
|
|
257
257
|
interface QueryReferredFriendActionsRequest {
|
|
258
258
|
/** Query to filter ReferredFriendActions. */
|
|
259
|
-
query?: CursorQuery$
|
|
259
|
+
query?: CursorQuery$3;
|
|
260
260
|
/** List of contact ids to filter ReferredFriendActions. */
|
|
261
261
|
contactIds?: string[];
|
|
262
262
|
}
|
|
@@ -264,13 +264,13 @@ interface QueryReferredFriendActionsResponse {
|
|
|
264
264
|
/** List of ReferredFriendActions that match the query. */
|
|
265
265
|
referredFriendActions?: ReferredFriendAction[];
|
|
266
266
|
/** Paging metadata. */
|
|
267
|
-
metadata?: CursorPagingMetadata$
|
|
267
|
+
metadata?: CursorPagingMetadata$3;
|
|
268
268
|
}
|
|
269
269
|
interface ReferredFriendAction extends ReferredFriendActionRewardTypeOptionsOneOf {
|
|
270
270
|
/** Coupon reward type options. */
|
|
271
|
-
coupon?: V1Coupon;
|
|
271
|
+
coupon?: V1Coupon$1;
|
|
272
272
|
/** Loyalty points reward type options. */
|
|
273
|
-
loyaltyPoints?: LoyaltyPoints;
|
|
273
|
+
loyaltyPoints?: LoyaltyPoints$1;
|
|
274
274
|
/**
|
|
275
275
|
* Referred friend id.
|
|
276
276
|
* @readonly
|
|
@@ -292,7 +292,7 @@ interface ReferredFriendAction extends ReferredFriendActionRewardTypeOptionsOneO
|
|
|
292
292
|
*/
|
|
293
293
|
actionDate?: Date;
|
|
294
294
|
/** Issued reward type. */
|
|
295
|
-
rewardType?: Reward;
|
|
295
|
+
rewardType?: Reward$1;
|
|
296
296
|
/** Total number of actions. */
|
|
297
297
|
totalActions?: number;
|
|
298
298
|
/**
|
|
@@ -309,11 +309,11 @@ interface ReferredFriendAction extends ReferredFriendActionRewardTypeOptionsOneO
|
|
|
309
309
|
/** @oneof */
|
|
310
310
|
interface ReferredFriendActionRewardTypeOptionsOneOf {
|
|
311
311
|
/** Coupon reward type options. */
|
|
312
|
-
coupon?: V1Coupon;
|
|
312
|
+
coupon?: V1Coupon$1;
|
|
313
313
|
/** Loyalty points reward type options. */
|
|
314
|
-
loyaltyPoints?: LoyaltyPoints;
|
|
314
|
+
loyaltyPoints?: LoyaltyPoints$1;
|
|
315
315
|
}
|
|
316
|
-
interface V1Coupon {
|
|
316
|
+
interface V1Coupon$1 {
|
|
317
317
|
/**
|
|
318
318
|
* Coupon ID.
|
|
319
319
|
* @readonly
|
|
@@ -328,14 +328,14 @@ interface V1Coupon {
|
|
|
328
328
|
* Coupon status.
|
|
329
329
|
* @readonly
|
|
330
330
|
*/
|
|
331
|
-
status?: Status$
|
|
331
|
+
status?: Status$2;
|
|
332
332
|
/**
|
|
333
333
|
* Coupon specification.
|
|
334
334
|
* @readonly
|
|
335
335
|
*/
|
|
336
|
-
couponSpecification?: Coupon;
|
|
336
|
+
couponSpecification?: Coupon$1;
|
|
337
337
|
}
|
|
338
|
-
declare enum Status$
|
|
338
|
+
declare enum Status$2 {
|
|
339
339
|
/** Unknown coupon status. */
|
|
340
340
|
UNKNOWN = "UNKNOWN",
|
|
341
341
|
/** Coupon is active and can be applied. */
|
|
@@ -345,19 +345,19 @@ declare enum Status$1 {
|
|
|
345
345
|
/** Coupon was deleted. */
|
|
346
346
|
DELETED = "DELETED"
|
|
347
347
|
}
|
|
348
|
-
interface Coupon extends CouponDiscountTypeOptionsOneOf, CouponScopeOrMinSubtotalOneOf {
|
|
348
|
+
interface Coupon$1 extends CouponDiscountTypeOptionsOneOf$1, CouponScopeOrMinSubtotalOneOf$1 {
|
|
349
349
|
/** Options for fixed amount discount type */
|
|
350
|
-
fixedAmountOptions?: FixedAmountDiscount;
|
|
350
|
+
fixedAmountOptions?: FixedAmountDiscount$1;
|
|
351
351
|
/** Options for percentage discount type */
|
|
352
|
-
percentageOptions?: PercentageDiscount;
|
|
352
|
+
percentageOptions?: PercentageDiscount$1;
|
|
353
353
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
354
354
|
minimumSubtotal?: number;
|
|
355
355
|
/** Specifies the type of line items this coupon will apply to. */
|
|
356
|
-
scope?: CouponScope;
|
|
356
|
+
scope?: CouponScope$1;
|
|
357
357
|
/** Coupon name */
|
|
358
358
|
name?: string;
|
|
359
359
|
/** Coupon discount type */
|
|
360
|
-
discountType?: DiscountType;
|
|
360
|
+
discountType?: DiscountType$1;
|
|
361
361
|
/** Limit the coupon to only apply to one item in cart. */
|
|
362
362
|
limitedToOneItem?: boolean | null;
|
|
363
363
|
/** If true, coupon also applies to subscriptions. */
|
|
@@ -366,20 +366,20 @@ interface Coupon extends CouponDiscountTypeOptionsOneOf, CouponScopeOrMinSubtota
|
|
|
366
366
|
discountedCycleCount?: number | null;
|
|
367
367
|
}
|
|
368
368
|
/** @oneof */
|
|
369
|
-
interface CouponDiscountTypeOptionsOneOf {
|
|
369
|
+
interface CouponDiscountTypeOptionsOneOf$1 {
|
|
370
370
|
/** Options for fixed amount discount type */
|
|
371
|
-
fixedAmountOptions?: FixedAmountDiscount;
|
|
371
|
+
fixedAmountOptions?: FixedAmountDiscount$1;
|
|
372
372
|
/** Options for percentage discount type */
|
|
373
|
-
percentageOptions?: PercentageDiscount;
|
|
373
|
+
percentageOptions?: PercentageDiscount$1;
|
|
374
374
|
}
|
|
375
375
|
/** @oneof */
|
|
376
|
-
interface CouponScopeOrMinSubtotalOneOf {
|
|
376
|
+
interface CouponScopeOrMinSubtotalOneOf$1 {
|
|
377
377
|
/** Limit the coupon to carts with a subtotal above this number. */
|
|
378
378
|
minimumSubtotal?: number;
|
|
379
379
|
/** Specifies the type of line items this coupon will apply to. */
|
|
380
|
-
scope?: CouponScope;
|
|
380
|
+
scope?: CouponScope$1;
|
|
381
381
|
}
|
|
382
|
-
declare enum DiscountType {
|
|
382
|
+
declare enum DiscountType$1 {
|
|
383
383
|
UNKNOWN = "UNKNOWN",
|
|
384
384
|
/** Discount as a fixed amount */
|
|
385
385
|
FIXED_AMOUNT = "FIXED_AMOUNT",
|
|
@@ -388,22 +388,22 @@ declare enum DiscountType {
|
|
|
388
388
|
/** Free shipping */
|
|
389
389
|
FREE_SHIPPING = "FREE_SHIPPING"
|
|
390
390
|
}
|
|
391
|
-
interface FixedAmountDiscount {
|
|
391
|
+
interface FixedAmountDiscount$1 {
|
|
392
392
|
/** Fixed amount to discount */
|
|
393
393
|
amount?: number;
|
|
394
394
|
}
|
|
395
|
-
interface PercentageDiscount {
|
|
395
|
+
interface PercentageDiscount$1 {
|
|
396
396
|
percentage?: number;
|
|
397
397
|
}
|
|
398
|
-
interface CouponScope {
|
|
398
|
+
interface CouponScope$1 {
|
|
399
399
|
namespace?: string;
|
|
400
|
-
group?: Group;
|
|
400
|
+
group?: Group$1;
|
|
401
401
|
}
|
|
402
|
-
interface Group {
|
|
402
|
+
interface Group$1 {
|
|
403
403
|
name?: string;
|
|
404
404
|
entityId?: string | null;
|
|
405
405
|
}
|
|
406
|
-
interface LoyaltyPoints {
|
|
406
|
+
interface LoyaltyPoints$1 {
|
|
407
407
|
/**
|
|
408
408
|
* Loyalty transaction ID.
|
|
409
409
|
* @readonly
|
|
@@ -415,11 +415,11 @@ interface LoyaltyPoints {
|
|
|
415
415
|
*/
|
|
416
416
|
amount?: number;
|
|
417
417
|
}
|
|
418
|
-
interface DomainEvent$
|
|
419
|
-
createdEvent?: EntityCreatedEvent$
|
|
420
|
-
updatedEvent?: EntityUpdatedEvent$
|
|
421
|
-
deletedEvent?: EntityDeletedEvent$
|
|
422
|
-
actionEvent?: ActionEvent$
|
|
418
|
+
interface DomainEvent$3 extends DomainEventBodyOneOf$3 {
|
|
419
|
+
createdEvent?: EntityCreatedEvent$3;
|
|
420
|
+
updatedEvent?: EntityUpdatedEvent$3;
|
|
421
|
+
deletedEvent?: EntityDeletedEvent$3;
|
|
422
|
+
actionEvent?: ActionEvent$3;
|
|
423
423
|
/**
|
|
424
424
|
* Unique event ID.
|
|
425
425
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -458,19 +458,19 @@ interface DomainEvent$2 extends DomainEventBodyOneOf$2 {
|
|
|
458
458
|
entityEventSequence?: string | null;
|
|
459
459
|
}
|
|
460
460
|
/** @oneof */
|
|
461
|
-
interface DomainEventBodyOneOf$
|
|
462
|
-
createdEvent?: EntityCreatedEvent$
|
|
463
|
-
updatedEvent?: EntityUpdatedEvent$
|
|
464
|
-
deletedEvent?: EntityDeletedEvent$
|
|
465
|
-
actionEvent?: ActionEvent$
|
|
461
|
+
interface DomainEventBodyOneOf$3 {
|
|
462
|
+
createdEvent?: EntityCreatedEvent$3;
|
|
463
|
+
updatedEvent?: EntityUpdatedEvent$3;
|
|
464
|
+
deletedEvent?: EntityDeletedEvent$3;
|
|
465
|
+
actionEvent?: ActionEvent$3;
|
|
466
466
|
}
|
|
467
|
-
interface EntityCreatedEvent$
|
|
467
|
+
interface EntityCreatedEvent$3 {
|
|
468
468
|
entity?: string;
|
|
469
469
|
}
|
|
470
|
-
interface UndeleteInfo$
|
|
470
|
+
interface UndeleteInfo$3 {
|
|
471
471
|
deletedDate?: Date;
|
|
472
472
|
}
|
|
473
|
-
interface EntityUpdatedEvent$
|
|
473
|
+
interface EntityUpdatedEvent$3 {
|
|
474
474
|
/**
|
|
475
475
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
476
476
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -478,20 +478,20 @@ interface EntityUpdatedEvent$2 {
|
|
|
478
478
|
*/
|
|
479
479
|
currentEntity?: string;
|
|
480
480
|
}
|
|
481
|
-
interface EntityDeletedEvent$
|
|
481
|
+
interface EntityDeletedEvent$3 {
|
|
482
482
|
/** Entity that was deleted */
|
|
483
483
|
deletedEntity?: string | null;
|
|
484
484
|
}
|
|
485
|
-
interface ActionEvent$
|
|
485
|
+
interface ActionEvent$3 {
|
|
486
486
|
body?: string;
|
|
487
487
|
}
|
|
488
|
-
interface Empty$
|
|
488
|
+
interface Empty$2 {
|
|
489
489
|
}
|
|
490
|
-
interface SuccessfulReferralEvent$
|
|
490
|
+
interface SuccessfulReferralEvent$2 {
|
|
491
491
|
/** ReferredFriend that completed his referral details. */
|
|
492
|
-
referredFriendDetails?: ReferredFriendDetails$
|
|
492
|
+
referredFriendDetails?: ReferredFriendDetails$2;
|
|
493
493
|
}
|
|
494
|
-
interface ReferredFriendDetails$
|
|
494
|
+
interface ReferredFriendDetails$2 {
|
|
495
495
|
/**
|
|
496
496
|
* ReferredFriend ID.
|
|
497
497
|
* @readonly
|
|
@@ -510,7 +510,7 @@ interface ReferredFriendDetails$1 {
|
|
|
510
510
|
}
|
|
511
511
|
interface ReferredFriendActionEvent {
|
|
512
512
|
/** ReferredFriend details. */
|
|
513
|
-
referredFriendDetails?: ReferredFriendDetails$
|
|
513
|
+
referredFriendDetails?: ReferredFriendDetails$2;
|
|
514
514
|
/** Trigger details. */
|
|
515
515
|
trigger?: Trigger;
|
|
516
516
|
/** Amount. */
|
|
@@ -526,17 +526,17 @@ interface Trigger {
|
|
|
526
526
|
/** Activity type. */
|
|
527
527
|
activityType?: string;
|
|
528
528
|
}
|
|
529
|
-
interface MessageEnvelope$
|
|
529
|
+
interface MessageEnvelope$3 {
|
|
530
530
|
/** App instance ID. */
|
|
531
531
|
instanceId?: string | null;
|
|
532
532
|
/** Event type. */
|
|
533
533
|
eventType?: string;
|
|
534
534
|
/** The identification type and identity data. */
|
|
535
|
-
identity?: IdentificationData$
|
|
535
|
+
identity?: IdentificationData$3;
|
|
536
536
|
/** Stringify payload. */
|
|
537
537
|
data?: string;
|
|
538
538
|
}
|
|
539
|
-
interface IdentificationData$
|
|
539
|
+
interface IdentificationData$3 extends IdentificationDataIdOneOf$3 {
|
|
540
540
|
/** ID of a site visitor that has not logged in to the site. */
|
|
541
541
|
anonymousVisitorId?: string;
|
|
542
542
|
/** ID of a site visitor that has logged in to the site. */
|
|
@@ -546,10 +546,10 @@ interface IdentificationData$2 extends IdentificationDataIdOneOf$2 {
|
|
|
546
546
|
/** ID of an app. */
|
|
547
547
|
appId?: string;
|
|
548
548
|
/** @readonly */
|
|
549
|
-
identityType?: WebhookIdentityType$
|
|
549
|
+
identityType?: WebhookIdentityType$3;
|
|
550
550
|
}
|
|
551
551
|
/** @oneof */
|
|
552
|
-
interface IdentificationDataIdOneOf$
|
|
552
|
+
interface IdentificationDataIdOneOf$3 {
|
|
553
553
|
/** ID of a site visitor that has not logged in to the site. */
|
|
554
554
|
anonymousVisitorId?: string;
|
|
555
555
|
/** ID of a site visitor that has logged in to the site. */
|
|
@@ -559,7 +559,7 @@ interface IdentificationDataIdOneOf$2 {
|
|
|
559
559
|
/** ID of an app. */
|
|
560
560
|
appId?: string;
|
|
561
561
|
}
|
|
562
|
-
declare enum WebhookIdentityType$
|
|
562
|
+
declare enum WebhookIdentityType$3 {
|
|
563
563
|
UNKNOWN = "UNKNOWN",
|
|
564
564
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
565
565
|
MEMBER = "MEMBER",
|
|
@@ -587,7 +587,7 @@ interface GetReferralEventResponseNonNullableFields {
|
|
|
587
587
|
rewardedReferringCustomerId: string;
|
|
588
588
|
rewardedReferredFriendId: string;
|
|
589
589
|
referralRewardId: string;
|
|
590
|
-
rewardType: Reward;
|
|
590
|
+
rewardType: Reward$1;
|
|
591
591
|
};
|
|
592
592
|
};
|
|
593
593
|
}
|
|
@@ -612,7 +612,7 @@ interface QueryReferralEventResponseNonNullableFields {
|
|
|
612
612
|
rewardedReferringCustomerId: string;
|
|
613
613
|
rewardedReferredFriendId: string;
|
|
614
614
|
referralRewardId: string;
|
|
615
|
-
rewardType: Reward;
|
|
615
|
+
rewardType: Reward$1;
|
|
616
616
|
};
|
|
617
617
|
}[];
|
|
618
618
|
}
|
|
@@ -635,7 +635,7 @@ interface QueryReferredFriendActionsResponseNonNullableFields {
|
|
|
635
635
|
coupon?: {
|
|
636
636
|
_id: string;
|
|
637
637
|
code: string;
|
|
638
|
-
status: Status$
|
|
638
|
+
status: Status$2;
|
|
639
639
|
couponSpecification?: {
|
|
640
640
|
fixedAmountOptions?: {
|
|
641
641
|
amount: number;
|
|
@@ -651,7 +651,7 @@ interface QueryReferredFriendActionsResponseNonNullableFields {
|
|
|
651
651
|
};
|
|
652
652
|
};
|
|
653
653
|
name: string;
|
|
654
|
-
discountType: DiscountType;
|
|
654
|
+
discountType: DiscountType$1;
|
|
655
655
|
};
|
|
656
656
|
};
|
|
657
657
|
loyaltyPoints?: {
|
|
@@ -664,7 +664,7 @@ interface QueryReferredFriendActionsResponseNonNullableFields {
|
|
|
664
664
|
appId: string;
|
|
665
665
|
activityType: string;
|
|
666
666
|
};
|
|
667
|
-
rewardType: Reward;
|
|
667
|
+
rewardType: Reward$1;
|
|
668
668
|
totalActions: number;
|
|
669
669
|
totalAmountSpent: string;
|
|
670
670
|
}[];
|
|
@@ -675,7 +675,7 @@ interface BaseEventMetadata$2 {
|
|
|
675
675
|
/** Event type. */
|
|
676
676
|
eventType?: string;
|
|
677
677
|
/** The identification type and identity data. */
|
|
678
|
-
identity?: IdentificationData$
|
|
678
|
+
identity?: IdentificationData$3;
|
|
679
679
|
}
|
|
680
680
|
interface EventMetadata$2 extends BaseEventMetadata$2 {
|
|
681
681
|
/**
|
|
@@ -720,7 +720,7 @@ interface ReferralEventCreatedEnvelope {
|
|
|
720
720
|
metadata: EventMetadata$2;
|
|
721
721
|
}
|
|
722
722
|
interface QueryCursorResult$2 {
|
|
723
|
-
cursors: Cursors$
|
|
723
|
+
cursors: Cursors$3;
|
|
724
724
|
hasNext: () => boolean;
|
|
725
725
|
hasPrev: () => boolean;
|
|
726
726
|
length: number;
|
|
@@ -793,36 +793,36 @@ interface ReferralEventsQueryBuilder {
|
|
|
793
793
|
}
|
|
794
794
|
interface QueryReferringCustomerTotalsOptions {
|
|
795
795
|
/** Query to filter ReferringCustomerTotals. */
|
|
796
|
-
query?: CursorQuery$
|
|
796
|
+
query?: CursorQuery$3;
|
|
797
797
|
/** List of contact ids to filter ReferringCustomerTotals. */
|
|
798
798
|
contactIds?: string[];
|
|
799
799
|
}
|
|
800
800
|
interface QueryReferredFriendActionsOptions {
|
|
801
801
|
/** Query to filter ReferredFriendActions. */
|
|
802
|
-
query?: CursorQuery$
|
|
802
|
+
query?: CursorQuery$3;
|
|
803
803
|
/** List of contact ids to filter ReferredFriendActions. */
|
|
804
804
|
contactIds?: string[];
|
|
805
805
|
}
|
|
806
806
|
|
|
807
|
-
interface HttpClient$
|
|
808
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$
|
|
807
|
+
interface HttpClient$3 {
|
|
808
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
|
|
809
809
|
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
810
810
|
}
|
|
811
|
-
type RequestOptionsFactory$
|
|
812
|
-
type HttpResponse$
|
|
811
|
+
type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
|
|
812
|
+
type HttpResponse$3<T = any> = {
|
|
813
813
|
data: T;
|
|
814
814
|
status: number;
|
|
815
815
|
statusText: string;
|
|
816
816
|
headers: any;
|
|
817
817
|
request?: any;
|
|
818
818
|
};
|
|
819
|
-
type RequestOptions$
|
|
819
|
+
type RequestOptions$3<_TResponse = any, Data = any> = {
|
|
820
820
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
821
821
|
url: string;
|
|
822
822
|
data?: Data;
|
|
823
823
|
params?: URLSearchParams;
|
|
824
|
-
} & APIMetadata$
|
|
825
|
-
type APIMetadata$
|
|
824
|
+
} & APIMetadata$3;
|
|
825
|
+
type APIMetadata$3 = {
|
|
826
826
|
methodFqn?: string;
|
|
827
827
|
entityFqdn?: string;
|
|
828
828
|
packageName?: string;
|
|
@@ -843,10 +843,10 @@ declare global {
|
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
845
|
|
|
846
|
-
declare const __metadata$
|
|
846
|
+
declare const __metadata$3: {
|
|
847
847
|
PACKAGE_NAME: string;
|
|
848
848
|
};
|
|
849
|
-
declare function getReferralEvent(httpClient: HttpClient$
|
|
849
|
+
declare function getReferralEvent(httpClient: HttpClient$3): (referralEventId: string) => Promise<ReferralEvent & {
|
|
850
850
|
referredFriendSignupEvent?: {
|
|
851
851
|
referredFriendId: string;
|
|
852
852
|
} | undefined;
|
|
@@ -866,71 +866,665 @@ declare function getReferralEvent(httpClient: HttpClient$2): (referralEventId: s
|
|
|
866
866
|
rewardedReferringCustomerId: string;
|
|
867
867
|
rewardedReferredFriendId: string;
|
|
868
868
|
referralRewardId: string;
|
|
869
|
-
rewardType: Reward;
|
|
869
|
+
rewardType: Reward$1;
|
|
870
870
|
} | undefined;
|
|
871
871
|
}>;
|
|
872
|
-
declare function queryReferralEvent(httpClient: HttpClient$
|
|
873
|
-
declare function getReferralStatistics(httpClient: HttpClient$
|
|
874
|
-
declare function queryReferringCustomerTotals(httpClient: HttpClient$
|
|
875
|
-
declare function queryReferredFriendActions(httpClient: HttpClient$
|
|
872
|
+
declare function queryReferralEvent(httpClient: HttpClient$3): () => ReferralEventsQueryBuilder;
|
|
873
|
+
declare function getReferralStatistics(httpClient: HttpClient$3): () => Promise<GetReferralStatisticsResponse & GetReferralStatisticsResponseNonNullableFields>;
|
|
874
|
+
declare function queryReferringCustomerTotals(httpClient: HttpClient$3): (options?: QueryReferringCustomerTotalsOptions) => Promise<QueryReferringCustomerTotalsResponse & QueryReferringCustomerTotalsResponseNonNullableFields>;
|
|
875
|
+
declare function queryReferredFriendActions(httpClient: HttpClient$3): (options?: QueryReferredFriendActionsOptions) => Promise<QueryReferredFriendActionsResponse & QueryReferredFriendActionsResponseNonNullableFields>;
|
|
876
876
|
declare const onReferralEventCreated: EventDefinition$2<ReferralEventCreatedEnvelope, "wix.loyalty.referral.v1.referral_event_created">;
|
|
877
877
|
|
|
878
|
+
type index_d$3_CreateReferralEventRequest = CreateReferralEventRequest;
|
|
879
|
+
type index_d$3_CreateReferralEventResponse = CreateReferralEventResponse;
|
|
880
|
+
type index_d$3_GetReferralEventRequest = GetReferralEventRequest;
|
|
881
|
+
type index_d$3_GetReferralEventResponse = GetReferralEventResponse;
|
|
882
|
+
type index_d$3_GetReferralEventResponseNonNullableFields = GetReferralEventResponseNonNullableFields;
|
|
883
|
+
type index_d$3_GetReferralStatisticsRequest = GetReferralStatisticsRequest;
|
|
884
|
+
type index_d$3_GetReferralStatisticsResponse = GetReferralStatisticsResponse;
|
|
885
|
+
type index_d$3_GetReferralStatisticsResponseNonNullableFields = GetReferralStatisticsResponseNonNullableFields;
|
|
886
|
+
type index_d$3_QueryReferralEventRequest = QueryReferralEventRequest;
|
|
887
|
+
type index_d$3_QueryReferralEventResponse = QueryReferralEventResponse;
|
|
888
|
+
type index_d$3_QueryReferralEventResponseNonNullableFields = QueryReferralEventResponseNonNullableFields;
|
|
889
|
+
type index_d$3_QueryReferredFriendActionsOptions = QueryReferredFriendActionsOptions;
|
|
890
|
+
type index_d$3_QueryReferredFriendActionsRequest = QueryReferredFriendActionsRequest;
|
|
891
|
+
type index_d$3_QueryReferredFriendActionsResponse = QueryReferredFriendActionsResponse;
|
|
892
|
+
type index_d$3_QueryReferredFriendActionsResponseNonNullableFields = QueryReferredFriendActionsResponseNonNullableFields;
|
|
893
|
+
type index_d$3_QueryReferringCustomerTotalsOptions = QueryReferringCustomerTotalsOptions;
|
|
894
|
+
type index_d$3_QueryReferringCustomerTotalsRequest = QueryReferringCustomerTotalsRequest;
|
|
895
|
+
type index_d$3_QueryReferringCustomerTotalsResponse = QueryReferringCustomerTotalsResponse;
|
|
896
|
+
type index_d$3_QueryReferringCustomerTotalsResponseNonNullableFields = QueryReferringCustomerTotalsResponseNonNullableFields;
|
|
897
|
+
type index_d$3_ReferralEvent = ReferralEvent;
|
|
898
|
+
type index_d$3_ReferralEventCreatedEnvelope = ReferralEventCreatedEnvelope;
|
|
899
|
+
type index_d$3_ReferralEventEventTypeOneOf = ReferralEventEventTypeOneOf;
|
|
900
|
+
type index_d$3_ReferralEventsQueryBuilder = ReferralEventsQueryBuilder;
|
|
901
|
+
type index_d$3_ReferralEventsQueryResult = ReferralEventsQueryResult;
|
|
902
|
+
type index_d$3_ReferredFriendAction = ReferredFriendAction;
|
|
903
|
+
type index_d$3_ReferredFriendActionEvent = ReferredFriendActionEvent;
|
|
904
|
+
type index_d$3_ReferredFriendActionRewardTypeOptionsOneOf = ReferredFriendActionRewardTypeOptionsOneOf;
|
|
905
|
+
type index_d$3_ReferredFriendSignupEvent = ReferredFriendSignupEvent;
|
|
906
|
+
type index_d$3_ReferringCustomerTotal = ReferringCustomerTotal;
|
|
907
|
+
type index_d$3_RewardEvent = RewardEvent;
|
|
908
|
+
type index_d$3_RewardEventReceiverOneOf = RewardEventReceiverOneOf;
|
|
909
|
+
type index_d$3_Trigger = Trigger;
|
|
910
|
+
type index_d$3_V1ActionEvent = V1ActionEvent;
|
|
911
|
+
type index_d$3_V1SuccessfulReferralEvent = V1SuccessfulReferralEvent;
|
|
912
|
+
type index_d$3_V1Trigger = V1Trigger;
|
|
913
|
+
declare const index_d$3_getReferralEvent: typeof getReferralEvent;
|
|
914
|
+
declare const index_d$3_getReferralStatistics: typeof getReferralStatistics;
|
|
915
|
+
declare const index_d$3_onReferralEventCreated: typeof onReferralEventCreated;
|
|
916
|
+
declare const index_d$3_queryReferralEvent: typeof queryReferralEvent;
|
|
917
|
+
declare const index_d$3_queryReferredFriendActions: typeof queryReferredFriendActions;
|
|
918
|
+
declare const index_d$3_queryReferringCustomerTotals: typeof queryReferringCustomerTotals;
|
|
919
|
+
declare namespace index_d$3 {
|
|
920
|
+
export { type ActionEvent$3 as ActionEvent, type BaseEventMetadata$2 as BaseEventMetadata, type Coupon$1 as Coupon, type CouponDiscountTypeOptionsOneOf$1 as CouponDiscountTypeOptionsOneOf, type CouponScope$1 as CouponScope, type CouponScopeOrMinSubtotalOneOf$1 as CouponScopeOrMinSubtotalOneOf, type index_d$3_CreateReferralEventRequest as CreateReferralEventRequest, type index_d$3_CreateReferralEventResponse as CreateReferralEventResponse, type CursorPaging$3 as CursorPaging, type CursorPagingMetadata$3 as CursorPagingMetadata, type CursorQuery$3 as CursorQuery, type CursorQueryPagingMethodOneOf$3 as CursorQueryPagingMethodOneOf, type Cursors$3 as Cursors, DiscountType$1 as DiscountType, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type Empty$2 as Empty, type EntityCreatedEvent$3 as EntityCreatedEvent, type EntityDeletedEvent$3 as EntityDeletedEvent, type EntityUpdatedEvent$3 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type FixedAmountDiscount$1 as FixedAmountDiscount, type index_d$3_GetReferralEventRequest as GetReferralEventRequest, type index_d$3_GetReferralEventResponse as GetReferralEventResponse, type index_d$3_GetReferralEventResponseNonNullableFields as GetReferralEventResponseNonNullableFields, type index_d$3_GetReferralStatisticsRequest as GetReferralStatisticsRequest, type index_d$3_GetReferralStatisticsResponse as GetReferralStatisticsResponse, type index_d$3_GetReferralStatisticsResponseNonNullableFields as GetReferralStatisticsResponseNonNullableFields, type Group$1 as Group, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type LoyaltyPoints$1 as LoyaltyPoints, type MessageEnvelope$3 as MessageEnvelope, type PercentageDiscount$1 as PercentageDiscount, type index_d$3_QueryReferralEventRequest as QueryReferralEventRequest, type index_d$3_QueryReferralEventResponse as QueryReferralEventResponse, type index_d$3_QueryReferralEventResponseNonNullableFields as QueryReferralEventResponseNonNullableFields, type index_d$3_QueryReferredFriendActionsOptions as QueryReferredFriendActionsOptions, type index_d$3_QueryReferredFriendActionsRequest as QueryReferredFriendActionsRequest, type index_d$3_QueryReferredFriendActionsResponse as QueryReferredFriendActionsResponse, type index_d$3_QueryReferredFriendActionsResponseNonNullableFields as QueryReferredFriendActionsResponseNonNullableFields, type index_d$3_QueryReferringCustomerTotalsOptions as QueryReferringCustomerTotalsOptions, type index_d$3_QueryReferringCustomerTotalsRequest as QueryReferringCustomerTotalsRequest, type index_d$3_QueryReferringCustomerTotalsResponse as QueryReferringCustomerTotalsResponse, type index_d$3_QueryReferringCustomerTotalsResponseNonNullableFields as QueryReferringCustomerTotalsResponseNonNullableFields, type index_d$3_ReferralEvent as ReferralEvent, type index_d$3_ReferralEventCreatedEnvelope as ReferralEventCreatedEnvelope, type index_d$3_ReferralEventEventTypeOneOf as ReferralEventEventTypeOneOf, type index_d$3_ReferralEventsQueryBuilder as ReferralEventsQueryBuilder, type index_d$3_ReferralEventsQueryResult as ReferralEventsQueryResult, type index_d$3_ReferredFriendAction as ReferredFriendAction, type index_d$3_ReferredFriendActionEvent as ReferredFriendActionEvent, type index_d$3_ReferredFriendActionRewardTypeOptionsOneOf as ReferredFriendActionRewardTypeOptionsOneOf, type ReferredFriendDetails$2 as ReferredFriendDetails, type index_d$3_ReferredFriendSignupEvent as ReferredFriendSignupEvent, type index_d$3_ReferringCustomerTotal as ReferringCustomerTotal, Reward$1 as Reward, type index_d$3_RewardEvent as RewardEvent, type index_d$3_RewardEventReceiverOneOf as RewardEventReceiverOneOf, SortOrder$3 as SortOrder, type Sorting$3 as Sorting, Status$2 as Status, type SuccessfulReferralEvent$2 as SuccessfulReferralEvent, type index_d$3_Trigger as Trigger, type UndeleteInfo$3 as UndeleteInfo, type index_d$3_V1ActionEvent as V1ActionEvent, type V1Coupon$1 as V1Coupon, type index_d$3_V1SuccessfulReferralEvent as V1SuccessfulReferralEvent, type index_d$3_V1Trigger as V1Trigger, WebhookIdentityType$3 as WebhookIdentityType, __metadata$3 as __metadata, index_d$3_getReferralEvent as getReferralEvent, index_d$3_getReferralStatistics as getReferralStatistics, index_d$3_onReferralEventCreated as onReferralEventCreated, index_d$3_queryReferralEvent as queryReferralEvent, index_d$3_queryReferredFriendActions as queryReferredFriendActions, index_d$3_queryReferringCustomerTotals as queryReferringCustomerTotals };
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
/** ReferralReward is the main entity of ReferralRewards that can be used for lorem ipsum dolor */
|
|
924
|
+
interface ReferralReward extends ReferralRewardReceiverOneOf, ReferralRewardRewardTypeOptionsOneOf {
|
|
925
|
+
/**
|
|
926
|
+
* Referring customer ID.
|
|
927
|
+
* @readonly
|
|
928
|
+
*/
|
|
929
|
+
rewardedReferringCustomerId?: string;
|
|
930
|
+
/**
|
|
931
|
+
* Referred friend ID.
|
|
932
|
+
* @readonly
|
|
933
|
+
*/
|
|
934
|
+
rewardedReferredFriendId?: string;
|
|
935
|
+
/** Coupon reward type options. */
|
|
936
|
+
coupon?: V1Coupon;
|
|
937
|
+
/** Loyalty points reward type options. */
|
|
938
|
+
loyaltyPoints?: V1LoyaltyPoints;
|
|
939
|
+
/**
|
|
940
|
+
* ReferralReward ID.
|
|
941
|
+
* @readonly
|
|
942
|
+
*/
|
|
943
|
+
_id?: string | null;
|
|
944
|
+
/** Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision. */
|
|
945
|
+
revision?: string | null;
|
|
946
|
+
/**
|
|
947
|
+
* Represents the time this ReferralReward was created.
|
|
948
|
+
* @readonly
|
|
949
|
+
*/
|
|
950
|
+
_createdDate?: Date;
|
|
951
|
+
/**
|
|
952
|
+
* Represents the time this ReferralReward was last updated.
|
|
953
|
+
* @readonly
|
|
954
|
+
*/
|
|
955
|
+
_updatedDate?: Date;
|
|
956
|
+
/** Reward type. */
|
|
957
|
+
rewardType?: RewardTypeType;
|
|
958
|
+
}
|
|
959
|
+
/** @oneof */
|
|
960
|
+
interface ReferralRewardReceiverOneOf {
|
|
961
|
+
/**
|
|
962
|
+
* Referring customer ID.
|
|
963
|
+
* @readonly
|
|
964
|
+
*/
|
|
965
|
+
rewardedReferringCustomerId?: string;
|
|
966
|
+
/**
|
|
967
|
+
* Referred friend ID.
|
|
968
|
+
* @readonly
|
|
969
|
+
*/
|
|
970
|
+
rewardedReferredFriendId?: string;
|
|
971
|
+
}
|
|
972
|
+
/** @oneof */
|
|
973
|
+
interface ReferralRewardRewardTypeOptionsOneOf {
|
|
974
|
+
/** Coupon reward type options. */
|
|
975
|
+
coupon?: V1Coupon;
|
|
976
|
+
/** Loyalty points reward type options. */
|
|
977
|
+
loyaltyPoints?: V1LoyaltyPoints;
|
|
978
|
+
}
|
|
979
|
+
declare enum RewardTypeType {
|
|
980
|
+
/** Unknown reward type. */
|
|
981
|
+
UNKNOWN = "UNKNOWN",
|
|
982
|
+
/** Coupon reward type. */
|
|
983
|
+
COUPON = "COUPON",
|
|
984
|
+
/** Loyalty points reward type. */
|
|
985
|
+
LOYALTY_POINTS = "LOYALTY_POINTS",
|
|
986
|
+
/** No reward. */
|
|
987
|
+
NOTHING = "NOTHING"
|
|
988
|
+
}
|
|
989
|
+
interface V1Coupon {
|
|
990
|
+
/**
|
|
991
|
+
* Coupon ID.
|
|
992
|
+
* @readonly
|
|
993
|
+
*/
|
|
994
|
+
_id?: string;
|
|
995
|
+
/**
|
|
996
|
+
* Coupon code.
|
|
997
|
+
* @readonly
|
|
998
|
+
*/
|
|
999
|
+
code?: string;
|
|
1000
|
+
/**
|
|
1001
|
+
* Coupon status.
|
|
1002
|
+
* @readonly
|
|
1003
|
+
*/
|
|
1004
|
+
status?: Status$1;
|
|
1005
|
+
/**
|
|
1006
|
+
* Coupon specification.
|
|
1007
|
+
* @readonly
|
|
1008
|
+
*/
|
|
1009
|
+
couponSpecification?: Coupon;
|
|
1010
|
+
}
|
|
1011
|
+
declare enum Status$1 {
|
|
1012
|
+
/** Unknown coupon status. */
|
|
1013
|
+
UNKNOWN = "UNKNOWN",
|
|
1014
|
+
/** Coupon is active and can be applied. */
|
|
1015
|
+
ACTIVE = "ACTIVE",
|
|
1016
|
+
/** Coupon was already applied and can not be used anymore. */
|
|
1017
|
+
APPLIED = "APPLIED",
|
|
1018
|
+
/** Coupon was deleted. */
|
|
1019
|
+
DELETED = "DELETED"
|
|
1020
|
+
}
|
|
1021
|
+
interface Coupon extends CouponDiscountTypeOptionsOneOf, CouponScopeOrMinSubtotalOneOf {
|
|
1022
|
+
/** Options for fixed amount discount type */
|
|
1023
|
+
fixedAmountOptions?: FixedAmountDiscount;
|
|
1024
|
+
/** Options for percentage discount type */
|
|
1025
|
+
percentageOptions?: PercentageDiscount;
|
|
1026
|
+
/** Limit the coupon to carts with a subtotal above this number. */
|
|
1027
|
+
minimumSubtotal?: number;
|
|
1028
|
+
/** Specifies the type of line items this coupon will apply to. */
|
|
1029
|
+
scope?: CouponScope;
|
|
1030
|
+
/** Coupon name */
|
|
1031
|
+
name?: string;
|
|
1032
|
+
/** Coupon discount type */
|
|
1033
|
+
discountType?: DiscountType;
|
|
1034
|
+
/** Limit the coupon to only apply to one item in cart. */
|
|
1035
|
+
limitedToOneItem?: boolean | null;
|
|
1036
|
+
/** If true, coupon also applies to subscriptions. */
|
|
1037
|
+
appliesToSubscriptions?: boolean | null;
|
|
1038
|
+
/** Specifies the amount of discounted cycles for subscription item. See Stores Coupons documentation for more info. */
|
|
1039
|
+
discountedCycleCount?: number | null;
|
|
1040
|
+
}
|
|
1041
|
+
/** @oneof */
|
|
1042
|
+
interface CouponDiscountTypeOptionsOneOf {
|
|
1043
|
+
/** Options for fixed amount discount type */
|
|
1044
|
+
fixedAmountOptions?: FixedAmountDiscount;
|
|
1045
|
+
/** Options for percentage discount type */
|
|
1046
|
+
percentageOptions?: PercentageDiscount;
|
|
1047
|
+
}
|
|
1048
|
+
/** @oneof */
|
|
1049
|
+
interface CouponScopeOrMinSubtotalOneOf {
|
|
1050
|
+
/** Limit the coupon to carts with a subtotal above this number. */
|
|
1051
|
+
minimumSubtotal?: number;
|
|
1052
|
+
/** Specifies the type of line items this coupon will apply to. */
|
|
1053
|
+
scope?: CouponScope;
|
|
1054
|
+
}
|
|
1055
|
+
declare enum DiscountType {
|
|
1056
|
+
UNKNOWN = "UNKNOWN",
|
|
1057
|
+
/** Discount as a fixed amount */
|
|
1058
|
+
FIXED_AMOUNT = "FIXED_AMOUNT",
|
|
1059
|
+
/** Discount as a percentage */
|
|
1060
|
+
PERCENTAGE = "PERCENTAGE",
|
|
1061
|
+
/** Free shipping */
|
|
1062
|
+
FREE_SHIPPING = "FREE_SHIPPING"
|
|
1063
|
+
}
|
|
1064
|
+
interface FixedAmountDiscount {
|
|
1065
|
+
/** Fixed amount to discount */
|
|
1066
|
+
amount?: number;
|
|
1067
|
+
}
|
|
1068
|
+
interface PercentageDiscount {
|
|
1069
|
+
percentage?: number;
|
|
1070
|
+
}
|
|
1071
|
+
interface CouponScope {
|
|
1072
|
+
namespace?: string;
|
|
1073
|
+
group?: Group;
|
|
1074
|
+
}
|
|
1075
|
+
interface Group {
|
|
1076
|
+
name?: string;
|
|
1077
|
+
entityId?: string | null;
|
|
1078
|
+
}
|
|
1079
|
+
interface V1LoyaltyPoints {
|
|
1080
|
+
/**
|
|
1081
|
+
* Loyalty transaction ID.
|
|
1082
|
+
* @readonly
|
|
1083
|
+
*/
|
|
1084
|
+
transactionId?: string;
|
|
1085
|
+
/**
|
|
1086
|
+
* Loyalty points amount given.
|
|
1087
|
+
* @readonly
|
|
1088
|
+
*/
|
|
1089
|
+
amount?: number;
|
|
1090
|
+
}
|
|
1091
|
+
interface GetReferralRewardRequest {
|
|
1092
|
+
/** Id of the ReferralReward to retrieve. */
|
|
1093
|
+
_id: string;
|
|
1094
|
+
}
|
|
1095
|
+
interface GetReferralRewardResponse {
|
|
1096
|
+
/** The retrieved ReferralReward. */
|
|
1097
|
+
referralReward?: ReferralReward;
|
|
1098
|
+
}
|
|
1099
|
+
interface QueryReferralRewardsRequest {
|
|
1100
|
+
/** Query to filter ReferralRewards. */
|
|
1101
|
+
query: CursorQuery$2;
|
|
1102
|
+
/** Filter by contact id or set to "me" for current identity's rewards. */
|
|
1103
|
+
contactId?: string | null;
|
|
1104
|
+
}
|
|
1105
|
+
interface CursorQuery$2 extends CursorQueryPagingMethodOneOf$2 {
|
|
1106
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
1107
|
+
cursorPaging?: CursorPaging$2;
|
|
1108
|
+
/**
|
|
1109
|
+
* Filter object in the following format:
|
|
1110
|
+
* `"filter" : {
|
|
1111
|
+
* "fieldName1": "value1",
|
|
1112
|
+
* "fieldName2":{"$operator":"value2"}
|
|
1113
|
+
* }`
|
|
1114
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
1115
|
+
*/
|
|
1116
|
+
filter?: Record<string, any> | null;
|
|
1117
|
+
/**
|
|
1118
|
+
* Sort object in the following format:
|
|
1119
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
1120
|
+
*/
|
|
1121
|
+
sort?: Sorting$2[];
|
|
1122
|
+
}
|
|
1123
|
+
/** @oneof */
|
|
1124
|
+
interface CursorQueryPagingMethodOneOf$2 {
|
|
1125
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
1126
|
+
cursorPaging?: CursorPaging$2;
|
|
1127
|
+
}
|
|
1128
|
+
interface Sorting$2 {
|
|
1129
|
+
/** Name of the field to sort by. */
|
|
1130
|
+
fieldName?: string;
|
|
1131
|
+
/** Sort order. */
|
|
1132
|
+
order?: SortOrder$2;
|
|
1133
|
+
}
|
|
1134
|
+
declare enum SortOrder$2 {
|
|
1135
|
+
ASC = "ASC",
|
|
1136
|
+
DESC = "DESC"
|
|
1137
|
+
}
|
|
1138
|
+
interface CursorPaging$2 {
|
|
1139
|
+
/** Maximum number of items to return in the results. */
|
|
1140
|
+
limit?: number | null;
|
|
1141
|
+
/**
|
|
1142
|
+
* Pointer to the next or previous page in the list of results.
|
|
1143
|
+
*
|
|
1144
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
1145
|
+
* Not relevant for the first request.
|
|
1146
|
+
*/
|
|
1147
|
+
cursor?: string | null;
|
|
1148
|
+
}
|
|
1149
|
+
interface QueryReferralRewardsResponse {
|
|
1150
|
+
/** The retrieved ReferralRewards. */
|
|
1151
|
+
referralRewards?: ReferralReward[];
|
|
1152
|
+
/** Metadata for paging. */
|
|
1153
|
+
metadata?: CursorPagingMetadata$2;
|
|
1154
|
+
}
|
|
1155
|
+
interface CursorPagingMetadata$2 {
|
|
1156
|
+
/** Number of items returned in the response. */
|
|
1157
|
+
count?: number | null;
|
|
1158
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
1159
|
+
cursors?: Cursors$2;
|
|
1160
|
+
/**
|
|
1161
|
+
* Whether there are more pages to retrieve following the current page.
|
|
1162
|
+
*
|
|
1163
|
+
* + `true`: Another page of results can be retrieved.
|
|
1164
|
+
* + `false`: This is the last page.
|
|
1165
|
+
*/
|
|
1166
|
+
hasNext?: boolean | null;
|
|
1167
|
+
}
|
|
1168
|
+
interface Cursors$2 {
|
|
1169
|
+
/** Cursor string pointing to the next page in the list of results. */
|
|
1170
|
+
next?: string | null;
|
|
1171
|
+
/** Cursor pointing to the previous page in the list of results. */
|
|
1172
|
+
prev?: string | null;
|
|
1173
|
+
}
|
|
1174
|
+
interface ValidateReferralRewardRequest {
|
|
1175
|
+
/** Reward to validate. */
|
|
1176
|
+
reward?: Reward;
|
|
1177
|
+
}
|
|
1178
|
+
interface Reward extends RewardOptionsOneOf {
|
|
1179
|
+
/** Options for coupon reward type */
|
|
1180
|
+
couponOptions?: Coupon;
|
|
1181
|
+
/** Options for Loyalty points reward type */
|
|
1182
|
+
loyaltyPointsOptions?: LoyaltyPoints;
|
|
1183
|
+
/** Type of the reward */
|
|
1184
|
+
type?: Type;
|
|
1185
|
+
}
|
|
1186
|
+
/** @oneof */
|
|
1187
|
+
interface RewardOptionsOneOf {
|
|
1188
|
+
/** Options for coupon reward type */
|
|
1189
|
+
couponOptions?: Coupon;
|
|
1190
|
+
/** Options for Loyalty points reward type */
|
|
1191
|
+
loyaltyPointsOptions?: LoyaltyPoints;
|
|
1192
|
+
}
|
|
1193
|
+
declare enum Type {
|
|
1194
|
+
UNKNOWN = "UNKNOWN",
|
|
1195
|
+
/** Coupon reward type */
|
|
1196
|
+
COUPON = "COUPON",
|
|
1197
|
+
/** Loyalty points reward type */
|
|
1198
|
+
LOYALTY_POINTS = "LOYALTY_POINTS",
|
|
1199
|
+
/** No reward type */
|
|
1200
|
+
NOTHING = "NOTHING"
|
|
1201
|
+
}
|
|
1202
|
+
interface LoyaltyPoints {
|
|
1203
|
+
/** Amount of points to give */
|
|
1204
|
+
amount?: number;
|
|
1205
|
+
}
|
|
1206
|
+
interface ValidateReferralRewardResponse {
|
|
1207
|
+
}
|
|
1208
|
+
interface BulkGetReferralRewardsRequest {
|
|
1209
|
+
}
|
|
1210
|
+
interface BulkGetReferralRewardsResponse {
|
|
1211
|
+
/** Found rewards per site. */
|
|
1212
|
+
rewardsInSite?: RewardsInSite[];
|
|
1213
|
+
}
|
|
1214
|
+
interface RewardsInSite {
|
|
1215
|
+
/** Metasite ID. */
|
|
1216
|
+
metaSiteId?: string;
|
|
1217
|
+
/** Rewards. */
|
|
1218
|
+
rewards?: ReferralReward[];
|
|
1219
|
+
}
|
|
1220
|
+
interface DomainEvent$2 extends DomainEventBodyOneOf$2 {
|
|
1221
|
+
createdEvent?: EntityCreatedEvent$2;
|
|
1222
|
+
updatedEvent?: EntityUpdatedEvent$2;
|
|
1223
|
+
deletedEvent?: EntityDeletedEvent$2;
|
|
1224
|
+
actionEvent?: ActionEvent$2;
|
|
1225
|
+
/**
|
|
1226
|
+
* Unique event ID.
|
|
1227
|
+
* Allows clients to ignore duplicate webhooks.
|
|
1228
|
+
*/
|
|
1229
|
+
_id?: string;
|
|
1230
|
+
/**
|
|
1231
|
+
* Assumes actions are also always typed to an entity_type
|
|
1232
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
1233
|
+
*/
|
|
1234
|
+
entityFqdn?: string;
|
|
1235
|
+
/**
|
|
1236
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
1237
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
1238
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
1239
|
+
*/
|
|
1240
|
+
slug?: string;
|
|
1241
|
+
/** ID of the entity associated with the event. */
|
|
1242
|
+
entityId?: string;
|
|
1243
|
+
/** Event timestamp. */
|
|
1244
|
+
eventTime?: Date;
|
|
1245
|
+
/**
|
|
1246
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
1247
|
+
* (for example, GDPR).
|
|
1248
|
+
*/
|
|
1249
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
1250
|
+
/** If present, indicates the action that triggered the event. */
|
|
1251
|
+
originatedFrom?: string | null;
|
|
1252
|
+
/**
|
|
1253
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
1254
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
1255
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1256
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1257
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1258
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1259
|
+
*/
|
|
1260
|
+
entityEventSequence?: string | null;
|
|
1261
|
+
}
|
|
1262
|
+
/** @oneof */
|
|
1263
|
+
interface DomainEventBodyOneOf$2 {
|
|
1264
|
+
createdEvent?: EntityCreatedEvent$2;
|
|
1265
|
+
updatedEvent?: EntityUpdatedEvent$2;
|
|
1266
|
+
deletedEvent?: EntityDeletedEvent$2;
|
|
1267
|
+
actionEvent?: ActionEvent$2;
|
|
1268
|
+
}
|
|
1269
|
+
interface EntityCreatedEvent$2 {
|
|
1270
|
+
entity?: string;
|
|
1271
|
+
}
|
|
1272
|
+
interface UndeleteInfo$2 {
|
|
1273
|
+
deletedDate?: Date;
|
|
1274
|
+
}
|
|
1275
|
+
interface EntityUpdatedEvent$2 {
|
|
1276
|
+
/**
|
|
1277
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
1278
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
1279
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
1280
|
+
*/
|
|
1281
|
+
currentEntity?: string;
|
|
1282
|
+
}
|
|
1283
|
+
interface EntityDeletedEvent$2 {
|
|
1284
|
+
/** Entity that was deleted */
|
|
1285
|
+
deletedEntity?: string | null;
|
|
1286
|
+
}
|
|
1287
|
+
interface ActionEvent$2 {
|
|
1288
|
+
body?: string;
|
|
1289
|
+
}
|
|
1290
|
+
interface Empty$1 {
|
|
1291
|
+
}
|
|
1292
|
+
interface SuccessfulReferralEvent$1 {
|
|
1293
|
+
/** ReferredFriend that completed his referral details. */
|
|
1294
|
+
referredFriendDetails?: ReferredFriendDetails$1;
|
|
1295
|
+
}
|
|
1296
|
+
interface ReferredFriendDetails$1 {
|
|
1297
|
+
/**
|
|
1298
|
+
* ReferredFriend ID.
|
|
1299
|
+
* @readonly
|
|
1300
|
+
*/
|
|
1301
|
+
referredFriendId?: string;
|
|
1302
|
+
/**
|
|
1303
|
+
* ReferredFriend Contact ID.
|
|
1304
|
+
* @readonly
|
|
1305
|
+
*/
|
|
1306
|
+
contactId?: string;
|
|
1307
|
+
/**
|
|
1308
|
+
* Customer who referred this ReferredFriend.
|
|
1309
|
+
* @readonly
|
|
1310
|
+
*/
|
|
1311
|
+
referringCustomerId?: string;
|
|
1312
|
+
}
|
|
1313
|
+
interface MessageEnvelope$2 {
|
|
1314
|
+
/** App instance ID. */
|
|
1315
|
+
instanceId?: string | null;
|
|
1316
|
+
/** Event type. */
|
|
1317
|
+
eventType?: string;
|
|
1318
|
+
/** The identification type and identity data. */
|
|
1319
|
+
identity?: IdentificationData$2;
|
|
1320
|
+
/** Stringify payload. */
|
|
1321
|
+
data?: string;
|
|
1322
|
+
}
|
|
1323
|
+
interface IdentificationData$2 extends IdentificationDataIdOneOf$2 {
|
|
1324
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
1325
|
+
anonymousVisitorId?: string;
|
|
1326
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
1327
|
+
memberId?: string;
|
|
1328
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
1329
|
+
wixUserId?: string;
|
|
1330
|
+
/** ID of an app. */
|
|
1331
|
+
appId?: string;
|
|
1332
|
+
/** @readonly */
|
|
1333
|
+
identityType?: WebhookIdentityType$2;
|
|
1334
|
+
}
|
|
1335
|
+
/** @oneof */
|
|
1336
|
+
interface IdentificationDataIdOneOf$2 {
|
|
1337
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
1338
|
+
anonymousVisitorId?: string;
|
|
1339
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
1340
|
+
memberId?: string;
|
|
1341
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
1342
|
+
wixUserId?: string;
|
|
1343
|
+
/** ID of an app. */
|
|
1344
|
+
appId?: string;
|
|
1345
|
+
}
|
|
1346
|
+
declare enum WebhookIdentityType$2 {
|
|
1347
|
+
UNKNOWN = "UNKNOWN",
|
|
1348
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1349
|
+
MEMBER = "MEMBER",
|
|
1350
|
+
WIX_USER = "WIX_USER",
|
|
1351
|
+
APP = "APP"
|
|
1352
|
+
}
|
|
1353
|
+
interface GetReferralRewardResponseNonNullableFields {
|
|
1354
|
+
referralReward?: {
|
|
1355
|
+
rewardedReferringCustomerId: string;
|
|
1356
|
+
rewardedReferredFriendId: string;
|
|
1357
|
+
coupon?: {
|
|
1358
|
+
_id: string;
|
|
1359
|
+
code: string;
|
|
1360
|
+
status: Status$1;
|
|
1361
|
+
couponSpecification?: {
|
|
1362
|
+
fixedAmountOptions?: {
|
|
1363
|
+
amount: number;
|
|
1364
|
+
};
|
|
1365
|
+
percentageOptions?: {
|
|
1366
|
+
percentage: number;
|
|
1367
|
+
};
|
|
1368
|
+
minimumSubtotal: number;
|
|
1369
|
+
scope?: {
|
|
1370
|
+
namespace: string;
|
|
1371
|
+
group?: {
|
|
1372
|
+
name: string;
|
|
1373
|
+
};
|
|
1374
|
+
};
|
|
1375
|
+
name: string;
|
|
1376
|
+
discountType: DiscountType;
|
|
1377
|
+
};
|
|
1378
|
+
};
|
|
1379
|
+
loyaltyPoints?: {
|
|
1380
|
+
transactionId: string;
|
|
1381
|
+
amount: number;
|
|
1382
|
+
};
|
|
1383
|
+
rewardType: RewardTypeType;
|
|
1384
|
+
};
|
|
1385
|
+
}
|
|
1386
|
+
interface QueryReferralRewardsResponseNonNullableFields {
|
|
1387
|
+
referralRewards: {
|
|
1388
|
+
rewardedReferringCustomerId: string;
|
|
1389
|
+
rewardedReferredFriendId: string;
|
|
1390
|
+
coupon?: {
|
|
1391
|
+
_id: string;
|
|
1392
|
+
code: string;
|
|
1393
|
+
status: Status$1;
|
|
1394
|
+
couponSpecification?: {
|
|
1395
|
+
fixedAmountOptions?: {
|
|
1396
|
+
amount: number;
|
|
1397
|
+
};
|
|
1398
|
+
percentageOptions?: {
|
|
1399
|
+
percentage: number;
|
|
1400
|
+
};
|
|
1401
|
+
minimumSubtotal: number;
|
|
1402
|
+
scope?: {
|
|
1403
|
+
namespace: string;
|
|
1404
|
+
group?: {
|
|
1405
|
+
name: string;
|
|
1406
|
+
};
|
|
1407
|
+
};
|
|
1408
|
+
name: string;
|
|
1409
|
+
discountType: DiscountType;
|
|
1410
|
+
};
|
|
1411
|
+
};
|
|
1412
|
+
loyaltyPoints?: {
|
|
1413
|
+
transactionId: string;
|
|
1414
|
+
amount: number;
|
|
1415
|
+
};
|
|
1416
|
+
rewardType: RewardTypeType;
|
|
1417
|
+
}[];
|
|
1418
|
+
}
|
|
1419
|
+
interface QueryReferralRewardsOptions {
|
|
1420
|
+
/** Filter by contact id or set to "me" for current identity's rewards. */
|
|
1421
|
+
contactId?: string | null;
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
interface HttpClient$2 {
|
|
1425
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
1426
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
1427
|
+
}
|
|
1428
|
+
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
1429
|
+
type HttpResponse$2<T = any> = {
|
|
1430
|
+
data: T;
|
|
1431
|
+
status: number;
|
|
1432
|
+
statusText: string;
|
|
1433
|
+
headers: any;
|
|
1434
|
+
request?: any;
|
|
1435
|
+
};
|
|
1436
|
+
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
1437
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1438
|
+
url: string;
|
|
1439
|
+
data?: Data;
|
|
1440
|
+
params?: URLSearchParams;
|
|
1441
|
+
} & APIMetadata$2;
|
|
1442
|
+
type APIMetadata$2 = {
|
|
1443
|
+
methodFqn?: string;
|
|
1444
|
+
entityFqdn?: string;
|
|
1445
|
+
packageName?: string;
|
|
1446
|
+
};
|
|
1447
|
+
|
|
1448
|
+
declare global {
|
|
1449
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1450
|
+
interface SymbolConstructor {
|
|
1451
|
+
readonly observable: symbol;
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
declare const __metadata$2: {
|
|
1456
|
+
PACKAGE_NAME: string;
|
|
1457
|
+
};
|
|
1458
|
+
declare function getReferralReward(httpClient: HttpClient$2): (_id: string) => Promise<ReferralReward & {
|
|
1459
|
+
rewardedReferringCustomerId: string;
|
|
1460
|
+
rewardedReferredFriendId: string;
|
|
1461
|
+
coupon?: {
|
|
1462
|
+
_id: string;
|
|
1463
|
+
code: string;
|
|
1464
|
+
status: Status$1;
|
|
1465
|
+
couponSpecification?: {
|
|
1466
|
+
fixedAmountOptions?: {
|
|
1467
|
+
amount: number;
|
|
1468
|
+
} | undefined;
|
|
1469
|
+
percentageOptions?: {
|
|
1470
|
+
percentage: number;
|
|
1471
|
+
} | undefined;
|
|
1472
|
+
minimumSubtotal: number;
|
|
1473
|
+
scope?: {
|
|
1474
|
+
namespace: string;
|
|
1475
|
+
group?: {
|
|
1476
|
+
name: string;
|
|
1477
|
+
} | undefined;
|
|
1478
|
+
} | undefined;
|
|
1479
|
+
name: string;
|
|
1480
|
+
discountType: DiscountType;
|
|
1481
|
+
} | undefined;
|
|
1482
|
+
} | undefined;
|
|
1483
|
+
loyaltyPoints?: {
|
|
1484
|
+
transactionId: string;
|
|
1485
|
+
amount: number;
|
|
1486
|
+
} | undefined;
|
|
1487
|
+
rewardType: RewardTypeType;
|
|
1488
|
+
}>;
|
|
1489
|
+
declare function queryReferralRewards(httpClient: HttpClient$2): (query: CursorQuery$2, options?: QueryReferralRewardsOptions) => Promise<QueryReferralRewardsResponse & QueryReferralRewardsResponseNonNullableFields>;
|
|
1490
|
+
|
|
1491
|
+
type index_d$2_BulkGetReferralRewardsRequest = BulkGetReferralRewardsRequest;
|
|
1492
|
+
type index_d$2_BulkGetReferralRewardsResponse = BulkGetReferralRewardsResponse;
|
|
878
1493
|
type index_d$2_Coupon = Coupon;
|
|
879
1494
|
type index_d$2_CouponDiscountTypeOptionsOneOf = CouponDiscountTypeOptionsOneOf;
|
|
880
1495
|
type index_d$2_CouponScope = CouponScope;
|
|
881
1496
|
type index_d$2_CouponScopeOrMinSubtotalOneOf = CouponScopeOrMinSubtotalOneOf;
|
|
882
|
-
type index_d$2_CreateReferralEventRequest = CreateReferralEventRequest;
|
|
883
|
-
type index_d$2_CreateReferralEventResponse = CreateReferralEventResponse;
|
|
884
1497
|
type index_d$2_DiscountType = DiscountType;
|
|
885
1498
|
declare const index_d$2_DiscountType: typeof DiscountType;
|
|
886
1499
|
type index_d$2_FixedAmountDiscount = FixedAmountDiscount;
|
|
887
|
-
type index_d$
|
|
888
|
-
type index_d$
|
|
889
|
-
type index_d$
|
|
890
|
-
type index_d$2_GetReferralStatisticsRequest = GetReferralStatisticsRequest;
|
|
891
|
-
type index_d$2_GetReferralStatisticsResponse = GetReferralStatisticsResponse;
|
|
892
|
-
type index_d$2_GetReferralStatisticsResponseNonNullableFields = GetReferralStatisticsResponseNonNullableFields;
|
|
1500
|
+
type index_d$2_GetReferralRewardRequest = GetReferralRewardRequest;
|
|
1501
|
+
type index_d$2_GetReferralRewardResponse = GetReferralRewardResponse;
|
|
1502
|
+
type index_d$2_GetReferralRewardResponseNonNullableFields = GetReferralRewardResponseNonNullableFields;
|
|
893
1503
|
type index_d$2_Group = Group;
|
|
894
1504
|
type index_d$2_LoyaltyPoints = LoyaltyPoints;
|
|
895
1505
|
type index_d$2_PercentageDiscount = PercentageDiscount;
|
|
896
|
-
type index_d$
|
|
897
|
-
type index_d$
|
|
898
|
-
type index_d$
|
|
899
|
-
type index_d$
|
|
900
|
-
type index_d$
|
|
901
|
-
type index_d$
|
|
902
|
-
type index_d$
|
|
903
|
-
type index_d$2_QueryReferringCustomerTotalsOptions = QueryReferringCustomerTotalsOptions;
|
|
904
|
-
type index_d$2_QueryReferringCustomerTotalsRequest = QueryReferringCustomerTotalsRequest;
|
|
905
|
-
type index_d$2_QueryReferringCustomerTotalsResponse = QueryReferringCustomerTotalsResponse;
|
|
906
|
-
type index_d$2_QueryReferringCustomerTotalsResponseNonNullableFields = QueryReferringCustomerTotalsResponseNonNullableFields;
|
|
907
|
-
type index_d$2_ReferralEvent = ReferralEvent;
|
|
908
|
-
type index_d$2_ReferralEventCreatedEnvelope = ReferralEventCreatedEnvelope;
|
|
909
|
-
type index_d$2_ReferralEventEventTypeOneOf = ReferralEventEventTypeOneOf;
|
|
910
|
-
type index_d$2_ReferralEventsQueryBuilder = ReferralEventsQueryBuilder;
|
|
911
|
-
type index_d$2_ReferralEventsQueryResult = ReferralEventsQueryResult;
|
|
912
|
-
type index_d$2_ReferredFriendAction = ReferredFriendAction;
|
|
913
|
-
type index_d$2_ReferredFriendActionEvent = ReferredFriendActionEvent;
|
|
914
|
-
type index_d$2_ReferredFriendActionRewardTypeOptionsOneOf = ReferredFriendActionRewardTypeOptionsOneOf;
|
|
915
|
-
type index_d$2_ReferredFriendSignupEvent = ReferredFriendSignupEvent;
|
|
916
|
-
type index_d$2_ReferringCustomerTotal = ReferringCustomerTotal;
|
|
1506
|
+
type index_d$2_QueryReferralRewardsOptions = QueryReferralRewardsOptions;
|
|
1507
|
+
type index_d$2_QueryReferralRewardsRequest = QueryReferralRewardsRequest;
|
|
1508
|
+
type index_d$2_QueryReferralRewardsResponse = QueryReferralRewardsResponse;
|
|
1509
|
+
type index_d$2_QueryReferralRewardsResponseNonNullableFields = QueryReferralRewardsResponseNonNullableFields;
|
|
1510
|
+
type index_d$2_ReferralReward = ReferralReward;
|
|
1511
|
+
type index_d$2_ReferralRewardReceiverOneOf = ReferralRewardReceiverOneOf;
|
|
1512
|
+
type index_d$2_ReferralRewardRewardTypeOptionsOneOf = ReferralRewardRewardTypeOptionsOneOf;
|
|
917
1513
|
type index_d$2_Reward = Reward;
|
|
918
|
-
|
|
919
|
-
type index_d$
|
|
920
|
-
|
|
921
|
-
type index_d$
|
|
922
|
-
type index_d$
|
|
1514
|
+
type index_d$2_RewardOptionsOneOf = RewardOptionsOneOf;
|
|
1515
|
+
type index_d$2_RewardTypeType = RewardTypeType;
|
|
1516
|
+
declare const index_d$2_RewardTypeType: typeof RewardTypeType;
|
|
1517
|
+
type index_d$2_RewardsInSite = RewardsInSite;
|
|
1518
|
+
type index_d$2_Type = Type;
|
|
1519
|
+
declare const index_d$2_Type: typeof Type;
|
|
923
1520
|
type index_d$2_V1Coupon = V1Coupon;
|
|
924
|
-
type index_d$
|
|
925
|
-
type index_d$
|
|
926
|
-
|
|
927
|
-
declare const index_d$
|
|
928
|
-
declare const index_d$
|
|
929
|
-
declare const index_d$2_queryReferralEvent: typeof queryReferralEvent;
|
|
930
|
-
declare const index_d$2_queryReferredFriendActions: typeof queryReferredFriendActions;
|
|
931
|
-
declare const index_d$2_queryReferringCustomerTotals: typeof queryReferringCustomerTotals;
|
|
1521
|
+
type index_d$2_V1LoyaltyPoints = V1LoyaltyPoints;
|
|
1522
|
+
type index_d$2_ValidateReferralRewardRequest = ValidateReferralRewardRequest;
|
|
1523
|
+
type index_d$2_ValidateReferralRewardResponse = ValidateReferralRewardResponse;
|
|
1524
|
+
declare const index_d$2_getReferralReward: typeof getReferralReward;
|
|
1525
|
+
declare const index_d$2_queryReferralRewards: typeof queryReferralRewards;
|
|
932
1526
|
declare namespace index_d$2 {
|
|
933
|
-
export { type ActionEvent$2 as ActionEvent, type
|
|
1527
|
+
export { type ActionEvent$2 as ActionEvent, type index_d$2_BulkGetReferralRewardsRequest as BulkGetReferralRewardsRequest, type index_d$2_BulkGetReferralRewardsResponse as BulkGetReferralRewardsResponse, type index_d$2_Coupon as Coupon, type index_d$2_CouponDiscountTypeOptionsOneOf as CouponDiscountTypeOptionsOneOf, type index_d$2_CouponScope as CouponScope, type index_d$2_CouponScopeOrMinSubtotalOneOf as CouponScopeOrMinSubtotalOneOf, type CursorPaging$2 as CursorPaging, type CursorPagingMetadata$2 as CursorPagingMetadata, type CursorQuery$2 as CursorQuery, type CursorQueryPagingMethodOneOf$2 as CursorQueryPagingMethodOneOf, type Cursors$2 as Cursors, index_d$2_DiscountType as DiscountType, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type index_d$2_FixedAmountDiscount as FixedAmountDiscount, type index_d$2_GetReferralRewardRequest as GetReferralRewardRequest, type index_d$2_GetReferralRewardResponse as GetReferralRewardResponse, type index_d$2_GetReferralRewardResponseNonNullableFields as GetReferralRewardResponseNonNullableFields, type index_d$2_Group as Group, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type index_d$2_LoyaltyPoints as LoyaltyPoints, type MessageEnvelope$2 as MessageEnvelope, type index_d$2_PercentageDiscount as PercentageDiscount, type index_d$2_QueryReferralRewardsOptions as QueryReferralRewardsOptions, type index_d$2_QueryReferralRewardsRequest as QueryReferralRewardsRequest, type index_d$2_QueryReferralRewardsResponse as QueryReferralRewardsResponse, type index_d$2_QueryReferralRewardsResponseNonNullableFields as QueryReferralRewardsResponseNonNullableFields, type index_d$2_ReferralReward as ReferralReward, type index_d$2_ReferralRewardReceiverOneOf as ReferralRewardReceiverOneOf, type index_d$2_ReferralRewardRewardTypeOptionsOneOf as ReferralRewardRewardTypeOptionsOneOf, type ReferredFriendDetails$1 as ReferredFriendDetails, type index_d$2_Reward as Reward, type index_d$2_RewardOptionsOneOf as RewardOptionsOneOf, index_d$2_RewardTypeType as RewardTypeType, type index_d$2_RewardsInSite as RewardsInSite, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, Status$1 as Status, type SuccessfulReferralEvent$1 as SuccessfulReferralEvent, index_d$2_Type as Type, type UndeleteInfo$2 as UndeleteInfo, type index_d$2_V1Coupon as V1Coupon, type index_d$2_V1LoyaltyPoints as V1LoyaltyPoints, type index_d$2_ValidateReferralRewardRequest as ValidateReferralRewardRequest, type index_d$2_ValidateReferralRewardResponse as ValidateReferralRewardResponse, WebhookIdentityType$2 as WebhookIdentityType, __metadata$2 as __metadata, index_d$2_getReferralReward as getReferralReward, index_d$2_queryReferralRewards as queryReferralRewards };
|
|
934
1528
|
}
|
|
935
1529
|
|
|
936
1530
|
/** ReferredFriend is the main entity of ReferredFriends that can be used for lorem ipsum dolor */
|
|
@@ -2054,4 +2648,4 @@ declare namespace index_d {
|
|
|
2054
2648
|
export { type index_d_ActionEvent as ActionEvent, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CursorPaging as CursorPaging, type index_d_CursorPagingMetadata as CursorPagingMetadata, type index_d_CursorQuery as CursorQuery, type index_d_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type index_d_Cursors as Cursors, type index_d_DeleteReferringCustomerOptions as DeleteReferringCustomerOptions, type index_d_DeleteReferringCustomerRequest as DeleteReferringCustomerRequest, type index_d_DeleteReferringCustomerResponse as DeleteReferringCustomerResponse, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_GenerateReferringCustomerForContactRequest as GenerateReferringCustomerForContactRequest, type index_d_GenerateReferringCustomerForContactResponse as GenerateReferringCustomerForContactResponse, type index_d_GenerateReferringCustomerForContactResponseNonNullableFields as GenerateReferringCustomerForContactResponseNonNullableFields, type index_d_GetReferringCustomerByReferralCodeRequest as GetReferringCustomerByReferralCodeRequest, type index_d_GetReferringCustomerByReferralCodeResponse as GetReferringCustomerByReferralCodeResponse, type index_d_GetReferringCustomerByReferralCodeResponseNonNullableFields as GetReferringCustomerByReferralCodeResponseNonNullableFields, type index_d_GetReferringCustomerRequest as GetReferringCustomerRequest, type index_d_GetReferringCustomerResponse as GetReferringCustomerResponse, type index_d_GetReferringCustomerResponseNonNullableFields as GetReferringCustomerResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_MessageEnvelope as MessageEnvelope, type index_d_QueryReferringCustomersRequest as QueryReferringCustomersRequest, type index_d_QueryReferringCustomersResponse as QueryReferringCustomersResponse, type index_d_QueryReferringCustomersResponseNonNullableFields as QueryReferringCustomersResponseNonNullableFields, type index_d_ReferringCustomer as ReferringCustomer, type index_d_ReferringCustomerCreatedEnvelope as ReferringCustomerCreatedEnvelope, type index_d_ReferringCustomerDeletedEnvelope as ReferringCustomerDeletedEnvelope, type index_d_ReferringCustomersQueryBuilder as ReferringCustomersQueryBuilder, type index_d_ReferringCustomersQueryResult as ReferringCustomersQueryResult, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, type index_d_UndeleteInfo as UndeleteInfo, index_d_WebhookIdentityType as WebhookIdentityType, index_d___metadata as __metadata, index_d_deleteReferringCustomer as deleteReferringCustomer, index_d_generateReferringCustomerForContact as generateReferringCustomerForContact, index_d_getReferringCustomer as getReferringCustomer, index_d_getReferringCustomerByReferralCode as getReferringCustomerByReferralCode, index_d_onReferringCustomerCreated as onReferringCustomerCreated, index_d_onReferringCustomerDeleted as onReferringCustomerDeleted, index_d_queryReferringCustomers as queryReferringCustomers };
|
|
2055
2649
|
}
|
|
2056
2650
|
|
|
2057
|
-
export { index_d as customers, index_d$1 as friends, index_d$2 as tracker };
|
|
2651
|
+
export { index_d as customers, index_d$1 as friends, index_d$2 as rewards, index_d$3 as tracker };
|