@wix/auto_sdk_referral_programs 1.0.0 → 1.0.2
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/src/loyalty-referral-v1-program-programs.types.d.ts +246 -59
- package/build/cjs/src/loyalty-referral-v1-program-programs.types.js +1 -0
- package/build/cjs/src/loyalty-referral-v1-program-programs.types.js.map +1 -1
- package/build/cjs/src/loyalty-referral-v1-program-programs.universal.d.ts +262 -63
- package/build/cjs/src/loyalty-referral-v1-program-programs.universal.js +1 -0
- package/build/cjs/src/loyalty-referral-v1-program-programs.universal.js.map +1 -1
- package/build/es/src/loyalty-referral-v1-program-programs.types.d.ts +246 -59
- package/build/es/src/loyalty-referral-v1-program-programs.types.js +1 -0
- package/build/es/src/loyalty-referral-v1-program-programs.types.js.map +1 -1
- package/build/es/src/loyalty-referral-v1-program-programs.universal.d.ts +262 -63
- package/build/es/src/loyalty-referral-v1-program-programs.universal.js +1 -0
- package/build/es/src/loyalty-referral-v1-program-programs.universal.js.map +1 -1
- package/build/internal/cjs/src/loyalty-referral-v1-program-programs.types.d.ts +246 -59
- package/build/internal/cjs/src/loyalty-referral-v1-program-programs.types.js +1 -0
- package/build/internal/cjs/src/loyalty-referral-v1-program-programs.types.js.map +1 -1
- package/build/internal/cjs/src/loyalty-referral-v1-program-programs.universal.d.ts +262 -63
- package/build/internal/cjs/src/loyalty-referral-v1-program-programs.universal.js +1 -0
- package/build/internal/cjs/src/loyalty-referral-v1-program-programs.universal.js.map +1 -1
- package/build/internal/es/src/loyalty-referral-v1-program-programs.types.d.ts +246 -59
- package/build/internal/es/src/loyalty-referral-v1-program-programs.types.js +1 -0
- package/build/internal/es/src/loyalty-referral-v1-program-programs.types.js.map +1 -1
- package/build/internal/es/src/loyalty-referral-v1-program-programs.universal.d.ts +262 -63
- package/build/internal/es/src/loyalty-referral-v1-program-programs.universal.js +1 -0
- package/build/internal/es/src/loyalty-referral-v1-program-programs.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
export interface ReferralProgram {
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Referral program name.
|
|
4
|
+
* @minLength 2
|
|
5
|
+
* @maxLength 50
|
|
6
|
+
*/
|
|
3
7
|
name?: string | null;
|
|
4
8
|
/** @readonly */
|
|
5
9
|
status?: ProgramStatus;
|
|
6
10
|
/**
|
|
7
11
|
* Revision number, which increments by 1 each time the program is updated.
|
|
8
12
|
* To prevent conflicting changes, the current `revision` must be passed when updating the program.
|
|
13
|
+
* @immutable
|
|
9
14
|
*/
|
|
10
15
|
revision?: string | null;
|
|
11
16
|
/**
|
|
@@ -28,7 +33,10 @@ export interface ReferralProgram {
|
|
|
28
33
|
* Specifies the reward given to an existing customer who referred a new customer to the business.
|
|
29
34
|
*/
|
|
30
35
|
referringCustomerReward?: Reward;
|
|
31
|
-
/**
|
|
36
|
+
/**
|
|
37
|
+
* List of actions that complete a referral. For an action to be considered successful, the referred friend must place and pay for an item.
|
|
38
|
+
* @maxSize 100
|
|
39
|
+
*/
|
|
32
40
|
successfulReferralActions?: Action[];
|
|
33
41
|
/** Configures email notifications for the referral program. */
|
|
34
42
|
emails?: Emails;
|
|
@@ -83,7 +91,11 @@ export interface Coupon extends CouponDiscountTypeOptionsOneOf, CouponScopeOrMin
|
|
|
83
91
|
minimumSubtotal?: number;
|
|
84
92
|
/** 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). */
|
|
85
93
|
scope?: CouponScope;
|
|
86
|
-
/**
|
|
94
|
+
/**
|
|
95
|
+
* Coupon name.
|
|
96
|
+
* @minLength 1
|
|
97
|
+
* @maxLength 50
|
|
98
|
+
*/
|
|
87
99
|
name?: string;
|
|
88
100
|
/** Coupon discount type. */
|
|
89
101
|
discountType?: DiscountType;
|
|
@@ -135,7 +147,10 @@ export interface FixedAmountDiscount {
|
|
|
135
147
|
amount?: number;
|
|
136
148
|
}
|
|
137
149
|
export interface PercentageDiscount {
|
|
138
|
-
/**
|
|
150
|
+
/**
|
|
151
|
+
* Percentage of discount.
|
|
152
|
+
* @max 100
|
|
153
|
+
*/
|
|
139
154
|
percentage?: number;
|
|
140
155
|
}
|
|
141
156
|
export interface CouponScope {
|
|
@@ -151,7 +166,11 @@ export interface Group {
|
|
|
151
166
|
entityId?: string | null;
|
|
152
167
|
}
|
|
153
168
|
export interface LoyaltyPoints {
|
|
154
|
-
/**
|
|
169
|
+
/**
|
|
170
|
+
* Number of loyalty points to give.
|
|
171
|
+
* @min 1
|
|
172
|
+
* @max 9999999
|
|
173
|
+
*/
|
|
155
174
|
amount?: number;
|
|
156
175
|
}
|
|
157
176
|
export declare enum Action {
|
|
@@ -215,7 +234,10 @@ export interface BulkGetReferralProgramResponse {
|
|
|
215
234
|
programInSites?: ProgramInSite[];
|
|
216
235
|
}
|
|
217
236
|
export interface ProgramInSite {
|
|
218
|
-
/**
|
|
237
|
+
/**
|
|
238
|
+
* Metasite ID.
|
|
239
|
+
* @format GUID
|
|
240
|
+
*/
|
|
219
241
|
metaSiteId?: string;
|
|
220
242
|
/** Retrieved referral program. */
|
|
221
243
|
referralProgram?: ReferralProgram;
|
|
@@ -241,29 +263,54 @@ export interface PauseReferralProgramResponse {
|
|
|
241
263
|
referralProgram?: ReferralProgram;
|
|
242
264
|
}
|
|
243
265
|
export interface GetAISocialMediaPostsSuggestionsRequest {
|
|
244
|
-
/**
|
|
266
|
+
/**
|
|
267
|
+
* Topic to generate social media post suggestions for. For example, fitness, education, or technology.
|
|
268
|
+
* @maxLength 512
|
|
269
|
+
*/
|
|
245
270
|
topic?: string;
|
|
246
271
|
}
|
|
247
272
|
export interface GetAISocialMediaPostsSuggestionsResponse {
|
|
248
|
-
/**
|
|
273
|
+
/**
|
|
274
|
+
* Generated social media post suggestions.
|
|
275
|
+
* @maxSize 3
|
|
276
|
+
*/
|
|
249
277
|
suggestions?: AISocialMediaPostSuggestion[];
|
|
250
|
-
/**
|
|
278
|
+
/**
|
|
279
|
+
* Referral URL to refer friends.
|
|
280
|
+
* @maxLength 2083
|
|
281
|
+
*/
|
|
251
282
|
referFriendsPageUrl?: string | null;
|
|
252
283
|
}
|
|
253
284
|
export interface AISocialMediaPostSuggestion {
|
|
254
|
-
/**
|
|
285
|
+
/**
|
|
286
|
+
* Suggested post content.
|
|
287
|
+
* @maxLength 4096
|
|
288
|
+
*/
|
|
255
289
|
postContent?: string;
|
|
256
|
-
/**
|
|
290
|
+
/**
|
|
291
|
+
* Suggested hashtags.
|
|
292
|
+
* @maxLength 256
|
|
293
|
+
* @maxSize 256
|
|
294
|
+
*/
|
|
257
295
|
hashtags?: string[];
|
|
258
296
|
}
|
|
259
297
|
export interface GenerateAISocialMediaPostsSuggestionsRequest {
|
|
260
|
-
/**
|
|
298
|
+
/**
|
|
299
|
+
* Topic to generate social media post suggestions for. For example, fitness, education, or technology.
|
|
300
|
+
* @maxLength 512
|
|
301
|
+
*/
|
|
261
302
|
topic?: string;
|
|
262
303
|
}
|
|
263
304
|
export interface GenerateAISocialMediaPostsSuggestionsResponse {
|
|
264
|
-
/**
|
|
305
|
+
/**
|
|
306
|
+
* Generated social media post suggestions.
|
|
307
|
+
* @maxSize 3
|
|
308
|
+
*/
|
|
265
309
|
suggestions?: AISocialMediaPostSuggestion[];
|
|
266
|
-
/**
|
|
310
|
+
/**
|
|
311
|
+
* Referral URL to refer friends.
|
|
312
|
+
* @maxLength 2083
|
|
313
|
+
*/
|
|
267
314
|
referFriendsPageUrl?: string | null;
|
|
268
315
|
}
|
|
269
316
|
export interface GetReferralProgramPremiumFeaturesRequest {
|
|
@@ -380,7 +427,10 @@ export interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
|
380
427
|
studioAssigned?: StudioAssigned;
|
|
381
428
|
/** Emitted when Studio is detached. */
|
|
382
429
|
studioUnassigned?: StudioUnassigned;
|
|
383
|
-
/**
|
|
430
|
+
/**
|
|
431
|
+
* A meta site id.
|
|
432
|
+
* @format GUID
|
|
433
|
+
*/
|
|
384
434
|
metaSiteId?: string;
|
|
385
435
|
/** A meta site version. Monotonically increasing. */
|
|
386
436
|
version?: string;
|
|
@@ -389,6 +439,7 @@ export interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
|
389
439
|
/**
|
|
390
440
|
* TODO(meta-site): Change validation once validations are disabled for consumers
|
|
391
441
|
* More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
|
|
442
|
+
* @maxSize 4000
|
|
392
443
|
*/
|
|
393
444
|
assets?: Asset[];
|
|
394
445
|
}
|
|
@@ -426,9 +477,15 @@ export interface MetaSiteSpecialEventPayloadOneOf {
|
|
|
426
477
|
studioUnassigned?: StudioUnassigned;
|
|
427
478
|
}
|
|
428
479
|
export interface Asset {
|
|
429
|
-
/**
|
|
480
|
+
/**
|
|
481
|
+
* An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).
|
|
482
|
+
* @maxLength 36
|
|
483
|
+
*/
|
|
430
484
|
appDefId?: string;
|
|
431
|
-
/**
|
|
485
|
+
/**
|
|
486
|
+
* An instance id. For legacy reasons may be UUID or a string.
|
|
487
|
+
* @maxLength 200
|
|
488
|
+
*/
|
|
432
489
|
instanceId?: string;
|
|
433
490
|
/** An application state. */
|
|
434
491
|
state?: State;
|
|
@@ -441,9 +498,15 @@ export declare enum State {
|
|
|
441
498
|
DEMO = "DEMO"
|
|
442
499
|
}
|
|
443
500
|
export interface SiteCreated {
|
|
444
|
-
/**
|
|
501
|
+
/**
|
|
502
|
+
* A template identifier (empty if not created from a template).
|
|
503
|
+
* @maxLength 36
|
|
504
|
+
*/
|
|
445
505
|
originTemplateId?: string;
|
|
446
|
-
/**
|
|
506
|
+
/**
|
|
507
|
+
* An account id of the owner.
|
|
508
|
+
* @format GUID
|
|
509
|
+
*/
|
|
447
510
|
ownerId?: string;
|
|
448
511
|
/** A context in which meta site was created. */
|
|
449
512
|
context?: SiteCreatedContext;
|
|
@@ -452,9 +515,13 @@ export interface SiteCreated {
|
|
|
452
515
|
*
|
|
453
516
|
* In case of a creation from a template it's a template id.
|
|
454
517
|
* In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
|
|
518
|
+
* @format GUID
|
|
455
519
|
*/
|
|
456
520
|
originMetaSiteId?: string | null;
|
|
457
|
-
/**
|
|
521
|
+
/**
|
|
522
|
+
* A meta site name (URL slug).
|
|
523
|
+
* @maxLength 20
|
|
524
|
+
*/
|
|
458
525
|
siteName?: string;
|
|
459
526
|
/** A namespace. */
|
|
460
527
|
namespace?: Namespace;
|
|
@@ -551,9 +618,15 @@ export declare enum Namespace {
|
|
|
551
618
|
}
|
|
552
619
|
/** Site transferred to another user. */
|
|
553
620
|
export interface SiteTransferred {
|
|
554
|
-
/**
|
|
621
|
+
/**
|
|
622
|
+
* A previous owner id (user that transfers meta site).
|
|
623
|
+
* @format GUID
|
|
624
|
+
*/
|
|
555
625
|
oldOwnerId?: string;
|
|
556
|
-
/**
|
|
626
|
+
/**
|
|
627
|
+
* A new owner id (user that accepts meta site).
|
|
628
|
+
* @format GUID
|
|
629
|
+
*/
|
|
557
630
|
newOwnerId?: string;
|
|
558
631
|
}
|
|
559
632
|
/** Soft deletion of the meta site. Could be restored. */
|
|
@@ -566,16 +639,23 @@ export interface DeleteContext {
|
|
|
566
639
|
dateDeleted?: Date | null;
|
|
567
640
|
/** A status. */
|
|
568
641
|
deleteStatus?: DeleteStatus;
|
|
569
|
-
/**
|
|
642
|
+
/**
|
|
643
|
+
* A reason (flow).
|
|
644
|
+
* @maxLength 255
|
|
645
|
+
*/
|
|
570
646
|
deleteOrigin?: string;
|
|
571
|
-
/**
|
|
647
|
+
/**
|
|
648
|
+
* A service that deleted it.
|
|
649
|
+
* @maxLength 255
|
|
650
|
+
*/
|
|
572
651
|
initiatorId?: string | null;
|
|
573
652
|
}
|
|
574
653
|
export declare enum DeleteStatus {
|
|
575
654
|
UNKNOWN = "UNKNOWN",
|
|
576
655
|
TRASH = "TRASH",
|
|
577
656
|
DELETED = "DELETED",
|
|
578
|
-
PENDING_PURGE = "PENDING_PURGE"
|
|
657
|
+
PENDING_PURGE = "PENDING_PURGE",
|
|
658
|
+
PURGED_EXTERNALLY = "PURGED_EXTERNALLY"
|
|
579
659
|
}
|
|
580
660
|
/** Restoration of the meta site. */
|
|
581
661
|
export interface SiteUndeleted {
|
|
@@ -584,7 +664,11 @@ export interface SiteUndeleted {
|
|
|
584
664
|
export interface SitePublished {
|
|
585
665
|
}
|
|
586
666
|
export interface SiteUnpublished {
|
|
587
|
-
/**
|
|
667
|
+
/**
|
|
668
|
+
* A list of URLs previously associated with the meta site.
|
|
669
|
+
* @maxLength 4000
|
|
670
|
+
* @maxSize 10000
|
|
671
|
+
*/
|
|
588
672
|
urls?: string[];
|
|
589
673
|
}
|
|
590
674
|
export interface SiteMarkedAsTemplate {
|
|
@@ -607,30 +691,60 @@ export interface SiteMarkedAsWixSite {
|
|
|
607
691
|
* To ensure this, the TPA on the template gets a new instance_id.
|
|
608
692
|
*/
|
|
609
693
|
export interface ServiceProvisioned {
|
|
610
|
-
/**
|
|
694
|
+
/**
|
|
695
|
+
* Either UUID or EmbeddedServiceType.
|
|
696
|
+
* @maxLength 36
|
|
697
|
+
*/
|
|
611
698
|
appDefId?: string;
|
|
612
|
-
/**
|
|
699
|
+
/**
|
|
700
|
+
* Not only UUID. Something here could be something weird.
|
|
701
|
+
* @maxLength 36
|
|
702
|
+
*/
|
|
613
703
|
instanceId?: string;
|
|
614
|
-
/**
|
|
704
|
+
/**
|
|
705
|
+
* An instance id from which this instance is originated.
|
|
706
|
+
* @maxLength 36
|
|
707
|
+
*/
|
|
615
708
|
originInstanceId?: string;
|
|
616
|
-
/**
|
|
709
|
+
/**
|
|
710
|
+
* A version.
|
|
711
|
+
* @maxLength 500
|
|
712
|
+
*/
|
|
617
713
|
version?: string | null;
|
|
618
|
-
/**
|
|
714
|
+
/**
|
|
715
|
+
* The origin meta site id
|
|
716
|
+
* @format GUID
|
|
717
|
+
*/
|
|
619
718
|
originMetaSiteId?: string | null;
|
|
620
719
|
}
|
|
621
720
|
export interface ServiceRemoved {
|
|
622
|
-
/**
|
|
721
|
+
/**
|
|
722
|
+
* Either UUID or EmbeddedServiceType.
|
|
723
|
+
* @maxLength 36
|
|
724
|
+
*/
|
|
623
725
|
appDefId?: string;
|
|
624
|
-
/**
|
|
726
|
+
/**
|
|
727
|
+
* Not only UUID. Something here could be something weird.
|
|
728
|
+
* @maxLength 36
|
|
729
|
+
*/
|
|
625
730
|
instanceId?: string;
|
|
626
|
-
/**
|
|
731
|
+
/**
|
|
732
|
+
* A version.
|
|
733
|
+
* @maxLength 500
|
|
734
|
+
*/
|
|
627
735
|
version?: string | null;
|
|
628
736
|
}
|
|
629
737
|
/** Rename of the site. Meaning, free public url has been changed as well. */
|
|
630
738
|
export interface SiteRenamed {
|
|
631
|
-
/**
|
|
739
|
+
/**
|
|
740
|
+
* A new meta site name (URL slug).
|
|
741
|
+
* @maxLength 20
|
|
742
|
+
*/
|
|
632
743
|
newSiteName?: string;
|
|
633
|
-
/**
|
|
744
|
+
/**
|
|
745
|
+
* A previous meta site name (URL slug).
|
|
746
|
+
* @maxLength 255
|
|
747
|
+
*/
|
|
634
748
|
oldSiteName?: string;
|
|
635
749
|
}
|
|
636
750
|
/**
|
|
@@ -655,15 +769,27 @@ export interface StudioAssigned {
|
|
|
655
769
|
export interface StudioUnassigned {
|
|
656
770
|
}
|
|
657
771
|
export interface HtmlSitePublished {
|
|
658
|
-
/**
|
|
772
|
+
/**
|
|
773
|
+
* Application instance ID
|
|
774
|
+
* @maxLength 50
|
|
775
|
+
*/
|
|
659
776
|
appInstanceId?: string;
|
|
660
|
-
/**
|
|
777
|
+
/**
|
|
778
|
+
* Application type
|
|
779
|
+
* @maxLength 100
|
|
780
|
+
*/
|
|
661
781
|
appType?: string;
|
|
662
782
|
/** Revision */
|
|
663
783
|
revision?: string;
|
|
664
|
-
/**
|
|
784
|
+
/**
|
|
785
|
+
* MSID
|
|
786
|
+
* @maxLength 100
|
|
787
|
+
*/
|
|
665
788
|
metaSiteId?: string | null;
|
|
666
|
-
/**
|
|
789
|
+
/**
|
|
790
|
+
* optional branch id if publish is done from branch
|
|
791
|
+
* @format GUID
|
|
792
|
+
*/
|
|
667
793
|
branchId?: string | null;
|
|
668
794
|
/** The site's last transactionId */
|
|
669
795
|
lastTransactionId?: string | null;
|
|
@@ -673,7 +799,10 @@ export interface HtmlSitePublished {
|
|
|
673
799
|
publishDate?: string;
|
|
674
800
|
}
|
|
675
801
|
export interface Page {
|
|
676
|
-
/**
|
|
802
|
+
/**
|
|
803
|
+
* Page's Id
|
|
804
|
+
* @maxLength 100
|
|
805
|
+
*/
|
|
677
806
|
id?: string;
|
|
678
807
|
}
|
|
679
808
|
export interface SubscriptionEvent extends SubscriptionEventEventOneOf {
|
|
@@ -721,7 +850,10 @@ export interface SubscriptionEvent extends SubscriptionEventEventOneOf {
|
|
|
721
850
|
pendingChange?: SubscriptionPendingChange;
|
|
722
851
|
/** Triggered when a recurring charge attempt fails for a subscription. */
|
|
723
852
|
recurringChargeAttemptFailed?: RecurringChargeAttemptFailed;
|
|
724
|
-
/**
|
|
853
|
+
/**
|
|
854
|
+
* ID of the subscription's event.
|
|
855
|
+
* @format GUID
|
|
856
|
+
*/
|
|
725
857
|
eventId?: string | null;
|
|
726
858
|
/**
|
|
727
859
|
* Date and time of the event in
|
|
@@ -795,13 +927,20 @@ export interface SubscriptionCreated {
|
|
|
795
927
|
* owner has purchased including details about the billing.
|
|
796
928
|
*/
|
|
797
929
|
export interface Subscription {
|
|
798
|
-
/**
|
|
930
|
+
/**
|
|
931
|
+
* ID of the subscription.
|
|
932
|
+
* @format GUID
|
|
933
|
+
*/
|
|
799
934
|
id?: string;
|
|
800
|
-
/**
|
|
935
|
+
/**
|
|
936
|
+
* ID of the Wix account that purchased the subscription.
|
|
937
|
+
* @format GUID
|
|
938
|
+
*/
|
|
801
939
|
userId?: string;
|
|
802
940
|
/**
|
|
803
941
|
* ID of the [product](https://bo.wix.com/wix-docs/rest/premium/premium-product-catalog-v2/products/product-object)
|
|
804
942
|
* for which the subscription was purchased.
|
|
943
|
+
* @format GUID
|
|
805
944
|
*/
|
|
806
945
|
productId?: string;
|
|
807
946
|
/**
|
|
@@ -820,6 +959,7 @@ export interface Subscription {
|
|
|
820
959
|
* ID of the metasite that the subscription is assigned to.
|
|
821
960
|
* Available only when the subscription is assigned to a Wix site.
|
|
822
961
|
* Subscriptions for account level products can't be assigned to a Wix site.
|
|
962
|
+
* @format GUID
|
|
823
963
|
*/
|
|
824
964
|
metaSiteId?: string | null;
|
|
825
965
|
/** Information about the system that manages the subscription's billing. */
|
|
@@ -847,6 +987,7 @@ export interface Subscription {
|
|
|
847
987
|
/**
|
|
848
988
|
* ID of the [product type](https://bo.wix.com/wix-docs/rest/premium/premium-product-catalog-v2/product-types/product-type-object)
|
|
849
989
|
* that the product, for which the subscription was purchased, belongs to.
|
|
990
|
+
* @format GUID
|
|
850
991
|
*/
|
|
851
992
|
productTypeId?: string;
|
|
852
993
|
/** Version number, which increments by 1 each time the subscription is updated. */
|
|
@@ -968,7 +1109,10 @@ export declare enum ReactivationReasonEnum {
|
|
|
968
1109
|
export interface SubscriptionAssigned {
|
|
969
1110
|
/** Assigned subscription. */
|
|
970
1111
|
subscription?: Subscription;
|
|
971
|
-
/**
|
|
1112
|
+
/**
|
|
1113
|
+
* ID of the metasite that the subscription has been assigned to before the update.
|
|
1114
|
+
* @format GUID
|
|
1115
|
+
*/
|
|
972
1116
|
previousMetaSiteId?: string | null;
|
|
973
1117
|
}
|
|
974
1118
|
/** Triggered when a subscription is canceled. */
|
|
@@ -1067,7 +1211,10 @@ export interface SubscriptionAutoRenewTurnedOff {
|
|
|
1067
1211
|
export interface SubscriptionUnassigned {
|
|
1068
1212
|
/** Unassigned subscription. */
|
|
1069
1213
|
subscription?: Subscription;
|
|
1070
|
-
/**
|
|
1214
|
+
/**
|
|
1215
|
+
* ID of the metasite that the subscription has been assigned to before the event.
|
|
1216
|
+
* @format GUID
|
|
1217
|
+
*/
|
|
1071
1218
|
previousMetaSiteId?: string;
|
|
1072
1219
|
/**
|
|
1073
1220
|
* Reason why the subscription is unassigned.
|
|
@@ -1111,9 +1258,15 @@ export interface ContractSwitched {
|
|
|
1111
1258
|
subscription?: Subscription;
|
|
1112
1259
|
/** Billing cycle before the update. */
|
|
1113
1260
|
previousCycle?: Cycle;
|
|
1114
|
-
/**
|
|
1261
|
+
/**
|
|
1262
|
+
* ID of the product belonging to the subscription before the update.
|
|
1263
|
+
* @format GUID
|
|
1264
|
+
*/
|
|
1115
1265
|
previousProductId?: string;
|
|
1116
|
-
/**
|
|
1266
|
+
/**
|
|
1267
|
+
* ID of the product type that the subscription's original product belonged to before the update.
|
|
1268
|
+
* @format GUID
|
|
1269
|
+
*/
|
|
1117
1270
|
previousProductTypeId?: string;
|
|
1118
1271
|
/**
|
|
1119
1272
|
* Update type. __Note__: Doesn't include information about a product adjustment.
|
|
@@ -1134,6 +1287,7 @@ export interface ContractSwitched {
|
|
|
1134
1287
|
/**
|
|
1135
1288
|
* ID of the metasite the subscription has been assigned to previously.
|
|
1136
1289
|
* Available only in case the subscription is assigned to a different site.
|
|
1290
|
+
* @format GUID
|
|
1137
1291
|
*/
|
|
1138
1292
|
previousMetaSiteId?: string | null;
|
|
1139
1293
|
/**
|
|
@@ -1173,7 +1327,10 @@ export declare enum ContractSwitchReason {
|
|
|
1173
1327
|
}
|
|
1174
1328
|
/** Triggered when a subscription's price is increased. */
|
|
1175
1329
|
export interface ProductPriceIncreaseData {
|
|
1176
|
-
/**
|
|
1330
|
+
/**
|
|
1331
|
+
* Price of the subscription before the update.
|
|
1332
|
+
* @format DECIMAL_VALUE
|
|
1333
|
+
*/
|
|
1177
1334
|
previousPrice?: string | null;
|
|
1178
1335
|
/** A value that is used in order to select the correct email template to send the user regarding the price increase. */
|
|
1179
1336
|
emailTemplateSelector?: string | null;
|
|
@@ -1219,9 +1376,15 @@ export interface RecurringChargeAttemptFailed {
|
|
|
1219
1376
|
subscription?: Subscription;
|
|
1220
1377
|
}
|
|
1221
1378
|
export interface MessageEnvelope {
|
|
1222
|
-
/**
|
|
1379
|
+
/**
|
|
1380
|
+
* App instance ID.
|
|
1381
|
+
* @format GUID
|
|
1382
|
+
*/
|
|
1223
1383
|
instanceId?: string | null;
|
|
1224
|
-
/**
|
|
1384
|
+
/**
|
|
1385
|
+
* Event type.
|
|
1386
|
+
* @maxLength 150
|
|
1387
|
+
*/
|
|
1225
1388
|
eventType?: string;
|
|
1226
1389
|
/** The identification type and identity data. */
|
|
1227
1390
|
identity?: IdentificationData;
|
|
@@ -1229,26 +1392,50 @@ export interface MessageEnvelope {
|
|
|
1229
1392
|
data?: string;
|
|
1230
1393
|
}
|
|
1231
1394
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1232
|
-
/**
|
|
1395
|
+
/**
|
|
1396
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1397
|
+
* @format GUID
|
|
1398
|
+
*/
|
|
1233
1399
|
anonymousVisitorId?: string;
|
|
1234
|
-
/**
|
|
1400
|
+
/**
|
|
1401
|
+
* ID of a site visitor that has logged in to the site.
|
|
1402
|
+
* @format GUID
|
|
1403
|
+
*/
|
|
1235
1404
|
memberId?: string;
|
|
1236
|
-
/**
|
|
1405
|
+
/**
|
|
1406
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1407
|
+
* @format GUID
|
|
1408
|
+
*/
|
|
1237
1409
|
wixUserId?: string;
|
|
1238
|
-
/**
|
|
1410
|
+
/**
|
|
1411
|
+
* ID of an app.
|
|
1412
|
+
* @format GUID
|
|
1413
|
+
*/
|
|
1239
1414
|
appId?: string;
|
|
1240
1415
|
/** @readonly */
|
|
1241
1416
|
identityType?: WebhookIdentityType;
|
|
1242
1417
|
}
|
|
1243
1418
|
/** @oneof */
|
|
1244
1419
|
export interface IdentificationDataIdOneOf {
|
|
1245
|
-
/**
|
|
1420
|
+
/**
|
|
1421
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1422
|
+
* @format GUID
|
|
1423
|
+
*/
|
|
1246
1424
|
anonymousVisitorId?: string;
|
|
1247
|
-
/**
|
|
1425
|
+
/**
|
|
1426
|
+
* ID of a site visitor that has logged in to the site.
|
|
1427
|
+
* @format GUID
|
|
1428
|
+
*/
|
|
1248
1429
|
memberId?: string;
|
|
1249
|
-
/**
|
|
1430
|
+
/**
|
|
1431
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1432
|
+
* @format GUID
|
|
1433
|
+
*/
|
|
1250
1434
|
wixUserId?: string;
|
|
1251
|
-
/**
|
|
1435
|
+
/**
|
|
1436
|
+
* ID of an app.
|
|
1437
|
+
* @format GUID
|
|
1438
|
+
*/
|
|
1252
1439
|
appId?: string;
|
|
1253
1440
|
}
|
|
1254
1441
|
export declare enum WebhookIdentityType {
|
|
@@ -175,6 +175,7 @@ var DeleteStatus;
|
|
|
175
175
|
DeleteStatus["TRASH"] = "TRASH";
|
|
176
176
|
DeleteStatus["DELETED"] = "DELETED";
|
|
177
177
|
DeleteStatus["PENDING_PURGE"] = "PENDING_PURGE";
|
|
178
|
+
DeleteStatus["PURGED_EXTERNALLY"] = "PURGED_EXTERNALLY";
|
|
178
179
|
})(DeleteStatus || (exports.DeleteStatus = DeleteStatus = {}));
|
|
179
180
|
var ProviderName;
|
|
180
181
|
(function (ProviderName) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loyalty-referral-v1-program-programs.types.js","sourceRoot":"","sources":["../../../../src/loyalty-referral-v1-program-programs.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"loyalty-referral-v1-program-programs.types.js","sourceRoot":"","sources":["../../../../src/loyalty-referral-v1-program-programs.types.ts"],"names":[],"mappings":";;;AAiDA,sCAAsC;AACtC,IAAY,aASX;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