@wix/referral 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +6 -5
- package/build/cjs/index.js +10 -5
- package/build/cjs/index.js.map +1 -1
- package/build/es/index.d.ts +6 -5
- package/build/es/index.js +6 -5
- package/build/es/index.js.map +1 -1
- package/package.json +7 -7
- package/type-bundles/context.bundle.d.ts +378 -145
- package/type-bundles/index.bundle.d.ts +378 -145
- package/type-bundles/meta.bundle.d.ts +138 -94
|
@@ -2,12 +2,12 @@ interface ReferralProgram$1 {
|
|
|
2
2
|
/** Referral program name. */
|
|
3
3
|
name?: string | null;
|
|
4
4
|
/**
|
|
5
|
-
* The status of the referral program.
|
|
5
|
+
* The status of the referral program. Possible values:
|
|
6
6
|
*
|
|
7
|
-
* `UNKNOWN`: Status is unknown
|
|
8
|
-
* `DRAFT`:
|
|
9
|
-
* `ACTIVE`: Referral program is active.
|
|
10
|
-
* `PAUSED`: Referral program is paused.
|
|
7
|
+
* - `UNKNOWN`: Status is unknown. This value is never used.
|
|
8
|
+
* - `DRAFT`: Referral program is in a draft state and is currently being modified. Not yet active.
|
|
9
|
+
* - `ACTIVE`: Referral program is active.
|
|
10
|
+
* - `PAUSED`: Referral program is paused.
|
|
11
11
|
* @readonly
|
|
12
12
|
*/
|
|
13
13
|
status?: ProgramStatus$1;
|
|
@@ -23,20 +23,27 @@ interface ReferralProgram$1 {
|
|
|
23
23
|
* @readonly
|
|
24
24
|
*/
|
|
25
25
|
updatedDate?: Date;
|
|
26
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Reward configuration for the referred friend.
|
|
28
|
+
* Specifies the reward given to a new customer who was referred to the business.
|
|
29
|
+
*/
|
|
27
30
|
referredFriendReward?: Reward$3;
|
|
28
|
-
/**
|
|
31
|
+
/**
|
|
32
|
+
* Reward configuration for the referring customer.
|
|
33
|
+
* Specifies the reward given to an existing customer who referred a new customer to the business.
|
|
34
|
+
*/
|
|
29
35
|
referringCustomerReward?: Reward$3;
|
|
30
36
|
/**
|
|
31
37
|
* A list of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an order.
|
|
32
38
|
*
|
|
33
39
|
* Possible values:
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
+
*
|
|
41
|
+
* - `UNKNOWN`: Action is unknown.
|
|
42
|
+
* - `STORE_ORDER_PLACED`: Referred friend ordered and paid for an order in a store.
|
|
43
|
+
* - `PLAN_ORDERED`: Referred friend ordered and paid for a plan.
|
|
44
|
+
* - `TICKET_ORDERED`: Referred friend ordered and paid for a ticket.
|
|
45
|
+
* - `SESSION_BOOKED`: Referred friend booked and paid for a session.
|
|
46
|
+
* - `RESTAURANT_ORDER_PLACED`: Referred friend placed and paid for a restaurant order.
|
|
40
47
|
*/
|
|
41
48
|
successfulReferralActions?: Action$1[];
|
|
42
49
|
/**
|
|
@@ -193,9 +200,11 @@ declare enum Action$1 {
|
|
|
193
200
|
}
|
|
194
201
|
interface Emails$1 {
|
|
195
202
|
/**
|
|
196
|
-
* Encourage customers to refer their friends email. Select
|
|
203
|
+
* Encourage customers to refer their friends via email. Select which apps to enable.
|
|
204
|
+
*
|
|
205
|
+
* Available apps:
|
|
197
206
|
*
|
|
198
|
-
* - `UNKNOWN`:
|
|
207
|
+
* - `UNKNOWN`: Unknown email.
|
|
199
208
|
* - `STORES`: Send an email to customers who've placed an order with stores.
|
|
200
209
|
* - `PRICING_PLANS`: Send an email to customers who've placed an order with pricing plans.
|
|
201
210
|
* - `EVENTS`: Send an email to customers who've placed an order with events.
|
|
@@ -230,7 +239,7 @@ interface PremiumFeatures$1 {
|
|
|
230
239
|
interface GetReferralProgramRequest$1 {
|
|
231
240
|
}
|
|
232
241
|
interface GetReferralProgramResponse$1 {
|
|
233
|
-
/**
|
|
242
|
+
/** Retrieved referral program. */
|
|
234
243
|
referralProgram?: ReferralProgram$1;
|
|
235
244
|
}
|
|
236
245
|
interface QueryReferralProgramsRequest$1 {
|
|
@@ -288,7 +297,7 @@ interface CursorPaging$9 {
|
|
|
288
297
|
cursor?: string | null;
|
|
289
298
|
}
|
|
290
299
|
interface QueryReferralProgramsResponse$1 {
|
|
291
|
-
/**
|
|
300
|
+
/** Referral programs matching the query. */
|
|
292
301
|
referralPrograms?: ReferralProgram$1[];
|
|
293
302
|
/** Paging metadata. */
|
|
294
303
|
pagingMetadata?: CursorPagingMetadata$9;
|
|
@@ -313,33 +322,33 @@ interface Cursors$9 {
|
|
|
313
322
|
prev?: string | null;
|
|
314
323
|
}
|
|
315
324
|
interface UpdateReferralProgramRequest$1 {
|
|
316
|
-
/**
|
|
325
|
+
/** Referral program to update. Include the latest `revision` for a successful update. */
|
|
317
326
|
referralProgram: ReferralProgram$1;
|
|
318
327
|
}
|
|
319
328
|
interface UpdateReferralProgramResponse$1 {
|
|
320
|
-
/**
|
|
329
|
+
/** Updated referral program. */
|
|
321
330
|
referralProgram?: ReferralProgram$1;
|
|
322
331
|
}
|
|
323
332
|
interface ActivateReferralProgramRequest$1 {
|
|
324
333
|
}
|
|
325
334
|
interface ActivateReferralProgramResponse$1 {
|
|
326
|
-
/**
|
|
335
|
+
/** Activated referral program. */
|
|
327
336
|
referralProgram?: ReferralProgram$1;
|
|
328
337
|
}
|
|
329
338
|
interface PauseReferralProgramRequest$1 {
|
|
330
339
|
}
|
|
331
340
|
interface PauseReferralProgramResponse$1 {
|
|
332
|
-
/**
|
|
341
|
+
/** Paused referral program. */
|
|
333
342
|
referralProgram?: ReferralProgram$1;
|
|
334
343
|
}
|
|
335
344
|
interface GetAISocialMediaPostsSuggestionsRequest$1 {
|
|
336
|
-
/**
|
|
345
|
+
/** Topic to generate social media post suggestions for. */
|
|
337
346
|
topic?: string;
|
|
338
347
|
}
|
|
339
348
|
interface GetAISocialMediaPostsSuggestionsResponse$1 {
|
|
340
|
-
/**
|
|
349
|
+
/** Generated social media post suggestions. */
|
|
341
350
|
suggestions?: AISocialMediaPostSuggestion$1[];
|
|
342
|
-
/**
|
|
351
|
+
/** Referral URL to refer friends. */
|
|
343
352
|
referFriendsPageUrl?: string | null;
|
|
344
353
|
}
|
|
345
354
|
interface AISocialMediaPostSuggestion$1 {
|
|
@@ -349,7 +358,7 @@ interface AISocialMediaPostSuggestion$1 {
|
|
|
349
358
|
hashtags?: string[];
|
|
350
359
|
}
|
|
351
360
|
interface GenerateAISocialMediaPostsSuggestionsRequest$1 {
|
|
352
|
-
/**
|
|
361
|
+
/** Topic to generate social media post suggestions for. */
|
|
353
362
|
topic?: string;
|
|
354
363
|
}
|
|
355
364
|
interface GenerateAISocialMediaPostsSuggestionsResponse$1 {
|
|
@@ -445,12 +454,12 @@ interface ReferralProgram {
|
|
|
445
454
|
/** Referral program name. */
|
|
446
455
|
name?: string | null;
|
|
447
456
|
/**
|
|
448
|
-
* The status of the referral program.
|
|
457
|
+
* The status of the referral program. Possible values:
|
|
449
458
|
*
|
|
450
|
-
* `UNKNOWN`: Status is unknown
|
|
451
|
-
* `DRAFT`:
|
|
452
|
-
* `ACTIVE`: Referral program is active.
|
|
453
|
-
* `PAUSED`: Referral program is paused.
|
|
459
|
+
* - `UNKNOWN`: Status is unknown. This value is never used.
|
|
460
|
+
* - `DRAFT`: Referral program is in a draft state and is currently being modified. Not yet active.
|
|
461
|
+
* - `ACTIVE`: Referral program is active.
|
|
462
|
+
* - `PAUSED`: Referral program is paused.
|
|
454
463
|
* @readonly
|
|
455
464
|
*/
|
|
456
465
|
status?: ProgramStatus;
|
|
@@ -466,20 +475,27 @@ interface ReferralProgram {
|
|
|
466
475
|
* @readonly
|
|
467
476
|
*/
|
|
468
477
|
_updatedDate?: Date;
|
|
469
|
-
/**
|
|
478
|
+
/**
|
|
479
|
+
* Reward configuration for the referred friend.
|
|
480
|
+
* Specifies the reward given to a new customer who was referred to the business.
|
|
481
|
+
*/
|
|
470
482
|
referredFriendReward?: Reward$2;
|
|
471
|
-
/**
|
|
483
|
+
/**
|
|
484
|
+
* Reward configuration for the referring customer.
|
|
485
|
+
* Specifies the reward given to an existing customer who referred a new customer to the business.
|
|
486
|
+
*/
|
|
472
487
|
referringCustomerReward?: Reward$2;
|
|
473
488
|
/**
|
|
474
489
|
* 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.
|
|
475
490
|
*
|
|
476
491
|
* Possible values:
|
|
477
|
-
*
|
|
478
|
-
*
|
|
479
|
-
*
|
|
480
|
-
*
|
|
481
|
-
*
|
|
482
|
-
*
|
|
492
|
+
*
|
|
493
|
+
* - `UNKNOWN`: Action is unknown.
|
|
494
|
+
* - `STORE_ORDER_PLACED`: Referred friend ordered and paid for an order in a store.
|
|
495
|
+
* - `PLAN_ORDERED`: Referred friend ordered and paid for a plan.
|
|
496
|
+
* - `TICKET_ORDERED`: Referred friend ordered and paid for a ticket.
|
|
497
|
+
* - `SESSION_BOOKED`: Referred friend booked and paid for a session.
|
|
498
|
+
* - `RESTAURANT_ORDER_PLACED`: Referred friend placed and paid for a restaurant order.
|
|
483
499
|
*/
|
|
484
500
|
successfulReferralActions?: Action[];
|
|
485
501
|
/**
|
|
@@ -636,9 +652,11 @@ declare enum Action {
|
|
|
636
652
|
}
|
|
637
653
|
interface Emails {
|
|
638
654
|
/**
|
|
639
|
-
* Encourage customers to refer their friends email. Select
|
|
655
|
+
* Encourage customers to refer their friends via email. Select which apps to enable.
|
|
656
|
+
*
|
|
657
|
+
* Available apps:
|
|
640
658
|
*
|
|
641
|
-
* - `UNKNOWN`:
|
|
659
|
+
* - `UNKNOWN`: Unknown email.
|
|
642
660
|
* - `STORES`: Send an email to customers who've placed an order with stores.
|
|
643
661
|
* - `PRICING_PLANS`: Send an email to customers who've placed an order with pricing plans.
|
|
644
662
|
* - `EVENTS`: Send an email to customers who've placed an order with events.
|
|
@@ -673,7 +691,7 @@ interface PremiumFeatures {
|
|
|
673
691
|
interface GetReferralProgramRequest {
|
|
674
692
|
}
|
|
675
693
|
interface GetReferralProgramResponse {
|
|
676
|
-
/**
|
|
694
|
+
/** Retrieved referral program. */
|
|
677
695
|
referralProgram?: ReferralProgram;
|
|
678
696
|
}
|
|
679
697
|
interface QueryReferralProgramsRequest {
|
|
@@ -731,7 +749,7 @@ interface CursorPaging$8 {
|
|
|
731
749
|
cursor?: string | null;
|
|
732
750
|
}
|
|
733
751
|
interface QueryReferralProgramsResponse {
|
|
734
|
-
/**
|
|
752
|
+
/** Referral programs matching the query. */
|
|
735
753
|
referralPrograms?: ReferralProgram[];
|
|
736
754
|
/** Paging metadata. */
|
|
737
755
|
pagingMetadata?: CursorPagingMetadata$8;
|
|
@@ -756,33 +774,33 @@ interface Cursors$8 {
|
|
|
756
774
|
prev?: string | null;
|
|
757
775
|
}
|
|
758
776
|
interface UpdateReferralProgramRequest {
|
|
759
|
-
/**
|
|
777
|
+
/** Referral program to update. Include the latest `revision` for a successful update. */
|
|
760
778
|
referralProgram: ReferralProgram;
|
|
761
779
|
}
|
|
762
780
|
interface UpdateReferralProgramResponse {
|
|
763
|
-
/**
|
|
781
|
+
/** Updated referral program. */
|
|
764
782
|
referralProgram?: ReferralProgram;
|
|
765
783
|
}
|
|
766
784
|
interface ActivateReferralProgramRequest {
|
|
767
785
|
}
|
|
768
786
|
interface ActivateReferralProgramResponse {
|
|
769
|
-
/**
|
|
787
|
+
/** Activated referral program. */
|
|
770
788
|
referralProgram?: ReferralProgram;
|
|
771
789
|
}
|
|
772
790
|
interface PauseReferralProgramRequest {
|
|
773
791
|
}
|
|
774
792
|
interface PauseReferralProgramResponse {
|
|
775
|
-
/**
|
|
793
|
+
/** Paused referral program. */
|
|
776
794
|
referralProgram?: ReferralProgram;
|
|
777
795
|
}
|
|
778
796
|
interface GetAISocialMediaPostsSuggestionsRequest {
|
|
779
|
-
/**
|
|
797
|
+
/** Topic to generate social media post suggestions for. */
|
|
780
798
|
topic?: string;
|
|
781
799
|
}
|
|
782
800
|
interface GetAISocialMediaPostsSuggestionsResponse {
|
|
783
|
-
/**
|
|
801
|
+
/** Generated social media post suggestions. */
|
|
784
802
|
suggestions?: AISocialMediaPostSuggestion[];
|
|
785
|
-
/**
|
|
803
|
+
/** Referral URL to refer friends. */
|
|
786
804
|
referFriendsPageUrl?: string | null;
|
|
787
805
|
}
|
|
788
806
|
interface AISocialMediaPostSuggestion {
|
|
@@ -792,7 +810,7 @@ interface AISocialMediaPostSuggestion {
|
|
|
792
810
|
hashtags?: string[];
|
|
793
811
|
}
|
|
794
812
|
interface GenerateAISocialMediaPostsSuggestionsRequest {
|
|
795
|
-
/**
|
|
813
|
+
/** Topic to generate social media post suggestions for. */
|
|
796
814
|
topic?: string;
|
|
797
815
|
}
|
|
798
816
|
interface GenerateAISocialMediaPostsSuggestionsResponse {
|
|
@@ -915,7 +933,6 @@ declare namespace meta$4 {
|
|
|
915
933
|
export { type __PublicMethodMetaInfo$4 as __PublicMethodMetaInfo, meta$4_activateReferralProgram as activateReferralProgram, meta$4_generateAiSocialMediaPostsSuggestions as generateAiSocialMediaPostsSuggestions, meta$4_getAiSocialMediaPostsSuggestions as getAiSocialMediaPostsSuggestions, meta$4_getReferralProgram as getReferralProgram, meta$4_getReferralProgramPremiumFeatures as getReferralProgramPremiumFeatures, meta$4_pauseReferralProgram as pauseReferralProgram, meta$4_queryReferralPrograms as queryReferralPrograms, meta$4_updateReferralProgram as updateReferralProgram };
|
|
916
934
|
}
|
|
917
935
|
|
|
918
|
-
/** ReferralEvent. */
|
|
919
936
|
interface ReferralEvent$1 extends ReferralEventEventTypeOneOf$1 {
|
|
920
937
|
/** ReferredFriendSignupEvent is an event that is triggered when a referred friend signs up. */
|
|
921
938
|
referredFriendSignupEvent?: ReferredFriendSignupEvent$1;
|
|
@@ -1230,34 +1247,41 @@ interface ReferredFriendActionRewardTypeOptionsOneOf$1 {
|
|
|
1230
1247
|
}
|
|
1231
1248
|
interface V1Coupon$3 {
|
|
1232
1249
|
/**
|
|
1233
|
-
* Coupon ID.
|
|
1250
|
+
* Coupon ID. Example: `8934b045-7052-4a90-be2b-832c70afc9da`.
|
|
1234
1251
|
* @readonly
|
|
1235
1252
|
*/
|
|
1236
1253
|
id?: string;
|
|
1237
1254
|
/**
|
|
1238
|
-
*
|
|
1255
|
+
* The code that customers can use to apply the coupon. Example: `6RFD2A3HSPXW`.
|
|
1239
1256
|
* @readonly
|
|
1240
1257
|
*/
|
|
1241
1258
|
code?: string;
|
|
1242
1259
|
/**
|
|
1243
|
-
*
|
|
1260
|
+
* Current status of the coupon.
|
|
1261
|
+
*
|
|
1262
|
+
* Possible values:
|
|
1263
|
+
*
|
|
1264
|
+
* - `UNKNOWN`: Unknown coupon status.
|
|
1265
|
+
* - `ACTIVE`: Coupon is active and can be applied.
|
|
1266
|
+
* - `APPLIED`: Coupon was already applied and can't be used anymore.
|
|
1267
|
+
* - `DELETED`: Coupon was deleted.
|
|
1244
1268
|
* @readonly
|
|
1245
1269
|
*/
|
|
1246
1270
|
status?: Status$5;
|
|
1247
1271
|
/**
|
|
1248
|
-
*
|
|
1272
|
+
* Detailed specifications of the coupon.
|
|
1249
1273
|
* @readonly
|
|
1250
1274
|
*/
|
|
1251
1275
|
couponSpecification?: Coupon$3;
|
|
1252
1276
|
}
|
|
1253
1277
|
declare enum Status$5 {
|
|
1254
|
-
/**
|
|
1278
|
+
/** The coupon status is unknown or not specified. */
|
|
1255
1279
|
UNKNOWN = "UNKNOWN",
|
|
1256
|
-
/**
|
|
1280
|
+
/** The coupon is active and can be applied to purchases. */
|
|
1257
1281
|
ACTIVE = "ACTIVE",
|
|
1258
|
-
/**
|
|
1282
|
+
/** The coupon has been applied and can't be used again. */
|
|
1259
1283
|
APPLIED = "APPLIED",
|
|
1260
|
-
/**
|
|
1284
|
+
/** The coupon has been deleted and is no longer valid. */
|
|
1261
1285
|
DELETED = "DELETED"
|
|
1262
1286
|
}
|
|
1263
1287
|
interface Coupon$3 extends CouponDiscountTypeOptionsOneOf$3, CouponScopeOrMinSubtotalOneOf$3 {
|
|
@@ -1350,7 +1374,7 @@ interface LoyaltyPoints$1 {
|
|
|
1350
1374
|
*/
|
|
1351
1375
|
transactionId?: string;
|
|
1352
1376
|
/**
|
|
1353
|
-
*
|
|
1377
|
+
* The number of loyalty points awarded.
|
|
1354
1378
|
* @readonly
|
|
1355
1379
|
*/
|
|
1356
1380
|
amount?: number;
|
|
@@ -1449,7 +1473,6 @@ interface QueryReferredFriendActionsResponseNonNullableFields$1 {
|
|
|
1449
1473
|
referredFriendActions: ReferredFriendActionNonNullableFields$1[];
|
|
1450
1474
|
}
|
|
1451
1475
|
|
|
1452
|
-
/** ReferralEvent. */
|
|
1453
1476
|
interface ReferralEvent extends ReferralEventEventTypeOneOf {
|
|
1454
1477
|
/** ReferredFriendSignupEvent is an event that is triggered when a referred friend signs up. */
|
|
1455
1478
|
referredFriendSignupEvent?: ReferredFriendSignupEvent;
|
|
@@ -1764,34 +1787,41 @@ interface ReferredFriendActionRewardTypeOptionsOneOf {
|
|
|
1764
1787
|
}
|
|
1765
1788
|
interface V1Coupon$2 {
|
|
1766
1789
|
/**
|
|
1767
|
-
* Coupon ID.
|
|
1790
|
+
* Coupon ID. Example: `8934b045-7052-4a90-be2b-832c70afc9da`.
|
|
1768
1791
|
* @readonly
|
|
1769
1792
|
*/
|
|
1770
1793
|
_id?: string;
|
|
1771
1794
|
/**
|
|
1772
|
-
*
|
|
1795
|
+
* The code that customers can use to apply the coupon. Example: `6RFD2A3HSPXW`.
|
|
1773
1796
|
* @readonly
|
|
1774
1797
|
*/
|
|
1775
1798
|
code?: string;
|
|
1776
1799
|
/**
|
|
1777
|
-
*
|
|
1800
|
+
* Current status of the coupon.
|
|
1801
|
+
*
|
|
1802
|
+
* Possible values:
|
|
1803
|
+
*
|
|
1804
|
+
* - `UNKNOWN`: Unknown coupon status.
|
|
1805
|
+
* - `ACTIVE`: Coupon is active and can be applied.
|
|
1806
|
+
* - `APPLIED`: Coupon was already applied and can't be used anymore.
|
|
1807
|
+
* - `DELETED`: Coupon was deleted.
|
|
1778
1808
|
* @readonly
|
|
1779
1809
|
*/
|
|
1780
1810
|
status?: Status$4;
|
|
1781
1811
|
/**
|
|
1782
|
-
*
|
|
1812
|
+
* Detailed specifications of the coupon.
|
|
1783
1813
|
* @readonly
|
|
1784
1814
|
*/
|
|
1785
1815
|
couponSpecification?: Coupon$2;
|
|
1786
1816
|
}
|
|
1787
1817
|
declare enum Status$4 {
|
|
1788
|
-
/**
|
|
1818
|
+
/** The coupon status is unknown or not specified. */
|
|
1789
1819
|
UNKNOWN = "UNKNOWN",
|
|
1790
|
-
/**
|
|
1820
|
+
/** The coupon is active and can be applied to purchases. */
|
|
1791
1821
|
ACTIVE = "ACTIVE",
|
|
1792
|
-
/**
|
|
1822
|
+
/** The coupon has been applied and can't be used again. */
|
|
1793
1823
|
APPLIED = "APPLIED",
|
|
1794
|
-
/**
|
|
1824
|
+
/** The coupon has been deleted and is no longer valid. */
|
|
1795
1825
|
DELETED = "DELETED"
|
|
1796
1826
|
}
|
|
1797
1827
|
interface Coupon$2 extends CouponDiscountTypeOptionsOneOf$2, CouponScopeOrMinSubtotalOneOf$2 {
|
|
@@ -1884,7 +1914,7 @@ interface LoyaltyPoints {
|
|
|
1884
1914
|
*/
|
|
1885
1915
|
transactionId?: string;
|
|
1886
1916
|
/**
|
|
1887
|
-
*
|
|
1917
|
+
* The number of loyalty points awarded.
|
|
1888
1918
|
* @readonly
|
|
1889
1919
|
*/
|
|
1890
1920
|
amount?: number;
|
|
@@ -2623,7 +2653,6 @@ declare namespace meta$2 {
|
|
|
2623
2653
|
export { type __PublicMethodMetaInfo$2 as __PublicMethodMetaInfo, meta$2_getReferralReward as getReferralReward, meta$2_queryReferralRewards as queryReferralRewards };
|
|
2624
2654
|
}
|
|
2625
2655
|
|
|
2626
|
-
/** ReferredFriend is the main entity of ReferredFriends that can be used for lorem ipsum dolor */
|
|
2627
2656
|
interface ReferredFriend$1 {
|
|
2628
2657
|
/**
|
|
2629
2658
|
* ReferredFriend ID.
|
|
@@ -2667,6 +2696,8 @@ declare enum Status$1 {
|
|
|
2667
2696
|
ACTIONS_COMPLETED = "ACTIONS_COMPLETED"
|
|
2668
2697
|
}
|
|
2669
2698
|
interface CreateReferredFriendRequest$1 {
|
|
2699
|
+
/** Referral code for referred friend */
|
|
2700
|
+
referralCode?: string | null;
|
|
2670
2701
|
}
|
|
2671
2702
|
interface CreateReferredFriendResponse$1 {
|
|
2672
2703
|
/** The created ReferredFriend. */
|
|
@@ -2709,26 +2740,32 @@ interface QueryReferredFriendRequest$1 {
|
|
|
2709
2740
|
query: CursorQuery$3;
|
|
2710
2741
|
}
|
|
2711
2742
|
interface CursorQuery$3 extends CursorQueryPagingMethodOneOf$3 {
|
|
2712
|
-
/**
|
|
2743
|
+
/**
|
|
2744
|
+
* Cursor paging options.
|
|
2745
|
+
*
|
|
2746
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
2747
|
+
*/
|
|
2713
2748
|
cursorPaging?: CursorPaging$3;
|
|
2714
2749
|
/**
|
|
2715
|
-
* Filter object
|
|
2716
|
-
*
|
|
2717
|
-
*
|
|
2718
|
-
* "fieldName2":{"$operator":"value2"}
|
|
2719
|
-
* }`
|
|
2720
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
2750
|
+
* Filter object.
|
|
2751
|
+
*
|
|
2752
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
2721
2753
|
*/
|
|
2722
2754
|
filter?: Record<string, any> | null;
|
|
2723
2755
|
/**
|
|
2724
|
-
* Sort object
|
|
2725
|
-
*
|
|
2756
|
+
* Sort object.
|
|
2757
|
+
*
|
|
2758
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
2726
2759
|
*/
|
|
2727
2760
|
sort?: Sorting$3[];
|
|
2728
2761
|
}
|
|
2729
2762
|
/** @oneof */
|
|
2730
2763
|
interface CursorQueryPagingMethodOneOf$3 {
|
|
2731
|
-
/**
|
|
2764
|
+
/**
|
|
2765
|
+
* Cursor paging options.
|
|
2766
|
+
*
|
|
2767
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
2768
|
+
*/
|
|
2732
2769
|
cursorPaging?: CursorPaging$3;
|
|
2733
2770
|
}
|
|
2734
2771
|
interface Sorting$3 {
|
|
@@ -2759,7 +2796,7 @@ interface QueryReferredFriendResponse$1 {
|
|
|
2759
2796
|
metadata?: CursorPagingMetadata$3;
|
|
2760
2797
|
}
|
|
2761
2798
|
interface CursorPagingMetadata$3 {
|
|
2762
|
-
/** Number of items returned in
|
|
2799
|
+
/** Number of items returned in current page. */
|
|
2763
2800
|
count?: number | null;
|
|
2764
2801
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
2765
2802
|
cursors?: Cursors$3;
|
|
@@ -2799,7 +2836,6 @@ interface QueryReferredFriendResponseNonNullableFields$1 {
|
|
|
2799
2836
|
referredFriends: ReferredFriendNonNullableFields$1[];
|
|
2800
2837
|
}
|
|
2801
2838
|
|
|
2802
|
-
/** ReferredFriend is the main entity of ReferredFriends that can be used for lorem ipsum dolor */
|
|
2803
2839
|
interface ReferredFriend {
|
|
2804
2840
|
/**
|
|
2805
2841
|
* ReferredFriend ID.
|
|
@@ -2843,6 +2879,8 @@ declare enum Status {
|
|
|
2843
2879
|
ACTIONS_COMPLETED = "ACTIONS_COMPLETED"
|
|
2844
2880
|
}
|
|
2845
2881
|
interface CreateReferredFriendRequest {
|
|
2882
|
+
/** Referral code for referred friend */
|
|
2883
|
+
referralCode?: string | null;
|
|
2846
2884
|
}
|
|
2847
2885
|
interface CreateReferredFriendResponse {
|
|
2848
2886
|
/** The created ReferredFriend. */
|
|
@@ -2885,26 +2923,32 @@ interface QueryReferredFriendRequest {
|
|
|
2885
2923
|
query: CursorQuery$2;
|
|
2886
2924
|
}
|
|
2887
2925
|
interface CursorQuery$2 extends CursorQueryPagingMethodOneOf$2 {
|
|
2888
|
-
/**
|
|
2926
|
+
/**
|
|
2927
|
+
* Cursor paging options.
|
|
2928
|
+
*
|
|
2929
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
2930
|
+
*/
|
|
2889
2931
|
cursorPaging?: CursorPaging$2;
|
|
2890
2932
|
/**
|
|
2891
|
-
* Filter object
|
|
2892
|
-
*
|
|
2893
|
-
*
|
|
2894
|
-
* "fieldName2":{"$operator":"value2"}
|
|
2895
|
-
* }`
|
|
2896
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
2933
|
+
* Filter object.
|
|
2934
|
+
*
|
|
2935
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
2897
2936
|
*/
|
|
2898
2937
|
filter?: Record<string, any> | null;
|
|
2899
2938
|
/**
|
|
2900
|
-
* Sort object
|
|
2901
|
-
*
|
|
2939
|
+
* Sort object.
|
|
2940
|
+
*
|
|
2941
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
2902
2942
|
*/
|
|
2903
2943
|
sort?: Sorting$2[];
|
|
2904
2944
|
}
|
|
2905
2945
|
/** @oneof */
|
|
2906
2946
|
interface CursorQueryPagingMethodOneOf$2 {
|
|
2907
|
-
/**
|
|
2947
|
+
/**
|
|
2948
|
+
* Cursor paging options.
|
|
2949
|
+
*
|
|
2950
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
2951
|
+
*/
|
|
2908
2952
|
cursorPaging?: CursorPaging$2;
|
|
2909
2953
|
}
|
|
2910
2954
|
interface Sorting$2 {
|
|
@@ -2935,7 +2979,7 @@ interface QueryReferredFriendResponse {
|
|
|
2935
2979
|
metadata?: CursorPagingMetadata$2;
|
|
2936
2980
|
}
|
|
2937
2981
|
interface CursorPagingMetadata$2 {
|
|
2938
|
-
/** Number of items returned in
|
|
2982
|
+
/** Number of items returned in current page. */
|
|
2939
2983
|
count?: number | null;
|
|
2940
2984
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
2941
2985
|
cursors?: Cursors$2;
|