@wix/auto_sdk_referral_programs 1.0.0 → 1.0.1
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 +244 -58
- 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 +260 -62
- 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 +244 -58
- 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 +260 -62
- 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 +244 -58
- 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 +260 -62
- 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 +244 -58
- 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 +260 -62
- 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,9 +639,15 @@ 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 {
|
|
@@ -584,7 +663,11 @@ export interface SiteUndeleted {
|
|
|
584
663
|
export interface SitePublished {
|
|
585
664
|
}
|
|
586
665
|
export interface SiteUnpublished {
|
|
587
|
-
/**
|
|
666
|
+
/**
|
|
667
|
+
* A list of URLs previously associated with the meta site.
|
|
668
|
+
* @maxLength 4000
|
|
669
|
+
* @maxSize 10000
|
|
670
|
+
*/
|
|
588
671
|
urls?: string[];
|
|
589
672
|
}
|
|
590
673
|
export interface SiteMarkedAsTemplate {
|
|
@@ -607,30 +690,60 @@ export interface SiteMarkedAsWixSite {
|
|
|
607
690
|
* To ensure this, the TPA on the template gets a new instance_id.
|
|
608
691
|
*/
|
|
609
692
|
export interface ServiceProvisioned {
|
|
610
|
-
/**
|
|
693
|
+
/**
|
|
694
|
+
* Either UUID or EmbeddedServiceType.
|
|
695
|
+
* @maxLength 36
|
|
696
|
+
*/
|
|
611
697
|
appDefId?: string;
|
|
612
|
-
/**
|
|
698
|
+
/**
|
|
699
|
+
* Not only UUID. Something here could be something weird.
|
|
700
|
+
* @maxLength 36
|
|
701
|
+
*/
|
|
613
702
|
instanceId?: string;
|
|
614
|
-
/**
|
|
703
|
+
/**
|
|
704
|
+
* An instance id from which this instance is originated.
|
|
705
|
+
* @maxLength 36
|
|
706
|
+
*/
|
|
615
707
|
originInstanceId?: string;
|
|
616
|
-
/**
|
|
708
|
+
/**
|
|
709
|
+
* A version.
|
|
710
|
+
* @maxLength 500
|
|
711
|
+
*/
|
|
617
712
|
version?: string | null;
|
|
618
|
-
/**
|
|
713
|
+
/**
|
|
714
|
+
* The origin meta site id
|
|
715
|
+
* @format GUID
|
|
716
|
+
*/
|
|
619
717
|
originMetaSiteId?: string | null;
|
|
620
718
|
}
|
|
621
719
|
export interface ServiceRemoved {
|
|
622
|
-
/**
|
|
720
|
+
/**
|
|
721
|
+
* Either UUID or EmbeddedServiceType.
|
|
722
|
+
* @maxLength 36
|
|
723
|
+
*/
|
|
623
724
|
appDefId?: string;
|
|
624
|
-
/**
|
|
725
|
+
/**
|
|
726
|
+
* Not only UUID. Something here could be something weird.
|
|
727
|
+
* @maxLength 36
|
|
728
|
+
*/
|
|
625
729
|
instanceId?: string;
|
|
626
|
-
/**
|
|
730
|
+
/**
|
|
731
|
+
* A version.
|
|
732
|
+
* @maxLength 500
|
|
733
|
+
*/
|
|
627
734
|
version?: string | null;
|
|
628
735
|
}
|
|
629
736
|
/** Rename of the site. Meaning, free public url has been changed as well. */
|
|
630
737
|
export interface SiteRenamed {
|
|
631
|
-
/**
|
|
738
|
+
/**
|
|
739
|
+
* A new meta site name (URL slug).
|
|
740
|
+
* @maxLength 20
|
|
741
|
+
*/
|
|
632
742
|
newSiteName?: string;
|
|
633
|
-
/**
|
|
743
|
+
/**
|
|
744
|
+
* A previous meta site name (URL slug).
|
|
745
|
+
* @maxLength 255
|
|
746
|
+
*/
|
|
634
747
|
oldSiteName?: string;
|
|
635
748
|
}
|
|
636
749
|
/**
|
|
@@ -655,15 +768,27 @@ export interface StudioAssigned {
|
|
|
655
768
|
export interface StudioUnassigned {
|
|
656
769
|
}
|
|
657
770
|
export interface HtmlSitePublished {
|
|
658
|
-
/**
|
|
771
|
+
/**
|
|
772
|
+
* Application instance ID
|
|
773
|
+
* @maxLength 50
|
|
774
|
+
*/
|
|
659
775
|
appInstanceId?: string;
|
|
660
|
-
/**
|
|
776
|
+
/**
|
|
777
|
+
* Application type
|
|
778
|
+
* @maxLength 100
|
|
779
|
+
*/
|
|
661
780
|
appType?: string;
|
|
662
781
|
/** Revision */
|
|
663
782
|
revision?: string;
|
|
664
|
-
/**
|
|
783
|
+
/**
|
|
784
|
+
* MSID
|
|
785
|
+
* @maxLength 100
|
|
786
|
+
*/
|
|
665
787
|
metaSiteId?: string | null;
|
|
666
|
-
/**
|
|
788
|
+
/**
|
|
789
|
+
* optional branch id if publish is done from branch
|
|
790
|
+
* @format GUID
|
|
791
|
+
*/
|
|
667
792
|
branchId?: string | null;
|
|
668
793
|
/** The site's last transactionId */
|
|
669
794
|
lastTransactionId?: string | null;
|
|
@@ -673,7 +798,10 @@ export interface HtmlSitePublished {
|
|
|
673
798
|
publishDate?: string;
|
|
674
799
|
}
|
|
675
800
|
export interface Page {
|
|
676
|
-
/**
|
|
801
|
+
/**
|
|
802
|
+
* Page's Id
|
|
803
|
+
* @maxLength 100
|
|
804
|
+
*/
|
|
677
805
|
id?: string;
|
|
678
806
|
}
|
|
679
807
|
export interface SubscriptionEvent extends SubscriptionEventEventOneOf {
|
|
@@ -721,7 +849,10 @@ export interface SubscriptionEvent extends SubscriptionEventEventOneOf {
|
|
|
721
849
|
pendingChange?: SubscriptionPendingChange;
|
|
722
850
|
/** Triggered when a recurring charge attempt fails for a subscription. */
|
|
723
851
|
recurringChargeAttemptFailed?: RecurringChargeAttemptFailed;
|
|
724
|
-
/**
|
|
852
|
+
/**
|
|
853
|
+
* ID of the subscription's event.
|
|
854
|
+
* @format GUID
|
|
855
|
+
*/
|
|
725
856
|
eventId?: string | null;
|
|
726
857
|
/**
|
|
727
858
|
* Date and time of the event in
|
|
@@ -795,13 +926,20 @@ export interface SubscriptionCreated {
|
|
|
795
926
|
* owner has purchased including details about the billing.
|
|
796
927
|
*/
|
|
797
928
|
export interface Subscription {
|
|
798
|
-
/**
|
|
929
|
+
/**
|
|
930
|
+
* ID of the subscription.
|
|
931
|
+
* @format GUID
|
|
932
|
+
*/
|
|
799
933
|
id?: string;
|
|
800
|
-
/**
|
|
934
|
+
/**
|
|
935
|
+
* ID of the Wix account that purchased the subscription.
|
|
936
|
+
* @format GUID
|
|
937
|
+
*/
|
|
801
938
|
userId?: string;
|
|
802
939
|
/**
|
|
803
940
|
* ID of the [product](https://bo.wix.com/wix-docs/rest/premium/premium-product-catalog-v2/products/product-object)
|
|
804
941
|
* for which the subscription was purchased.
|
|
942
|
+
* @format GUID
|
|
805
943
|
*/
|
|
806
944
|
productId?: string;
|
|
807
945
|
/**
|
|
@@ -820,6 +958,7 @@ export interface Subscription {
|
|
|
820
958
|
* ID of the metasite that the subscription is assigned to.
|
|
821
959
|
* Available only when the subscription is assigned to a Wix site.
|
|
822
960
|
* Subscriptions for account level products can't be assigned to a Wix site.
|
|
961
|
+
* @format GUID
|
|
823
962
|
*/
|
|
824
963
|
metaSiteId?: string | null;
|
|
825
964
|
/** Information about the system that manages the subscription's billing. */
|
|
@@ -847,6 +986,7 @@ export interface Subscription {
|
|
|
847
986
|
/**
|
|
848
987
|
* ID of the [product type](https://bo.wix.com/wix-docs/rest/premium/premium-product-catalog-v2/product-types/product-type-object)
|
|
849
988
|
* that the product, for which the subscription was purchased, belongs to.
|
|
989
|
+
* @format GUID
|
|
850
990
|
*/
|
|
851
991
|
productTypeId?: string;
|
|
852
992
|
/** Version number, which increments by 1 each time the subscription is updated. */
|
|
@@ -968,7 +1108,10 @@ export declare enum ReactivationReasonEnum {
|
|
|
968
1108
|
export interface SubscriptionAssigned {
|
|
969
1109
|
/** Assigned subscription. */
|
|
970
1110
|
subscription?: Subscription;
|
|
971
|
-
/**
|
|
1111
|
+
/**
|
|
1112
|
+
* ID of the metasite that the subscription has been assigned to before the update.
|
|
1113
|
+
* @format GUID
|
|
1114
|
+
*/
|
|
972
1115
|
previousMetaSiteId?: string | null;
|
|
973
1116
|
}
|
|
974
1117
|
/** Triggered when a subscription is canceled. */
|
|
@@ -1067,7 +1210,10 @@ export interface SubscriptionAutoRenewTurnedOff {
|
|
|
1067
1210
|
export interface SubscriptionUnassigned {
|
|
1068
1211
|
/** Unassigned subscription. */
|
|
1069
1212
|
subscription?: Subscription;
|
|
1070
|
-
/**
|
|
1213
|
+
/**
|
|
1214
|
+
* ID of the metasite that the subscription has been assigned to before the event.
|
|
1215
|
+
* @format GUID
|
|
1216
|
+
*/
|
|
1071
1217
|
previousMetaSiteId?: string;
|
|
1072
1218
|
/**
|
|
1073
1219
|
* Reason why the subscription is unassigned.
|
|
@@ -1111,9 +1257,15 @@ export interface ContractSwitched {
|
|
|
1111
1257
|
subscription?: Subscription;
|
|
1112
1258
|
/** Billing cycle before the update. */
|
|
1113
1259
|
previousCycle?: Cycle;
|
|
1114
|
-
/**
|
|
1260
|
+
/**
|
|
1261
|
+
* ID of the product belonging to the subscription before the update.
|
|
1262
|
+
* @format GUID
|
|
1263
|
+
*/
|
|
1115
1264
|
previousProductId?: string;
|
|
1116
|
-
/**
|
|
1265
|
+
/**
|
|
1266
|
+
* ID of the product type that the subscription's original product belonged to before the update.
|
|
1267
|
+
* @format GUID
|
|
1268
|
+
*/
|
|
1117
1269
|
previousProductTypeId?: string;
|
|
1118
1270
|
/**
|
|
1119
1271
|
* Update type. __Note__: Doesn't include information about a product adjustment.
|
|
@@ -1134,6 +1286,7 @@ export interface ContractSwitched {
|
|
|
1134
1286
|
/**
|
|
1135
1287
|
* ID of the metasite the subscription has been assigned to previously.
|
|
1136
1288
|
* Available only in case the subscription is assigned to a different site.
|
|
1289
|
+
* @format GUID
|
|
1137
1290
|
*/
|
|
1138
1291
|
previousMetaSiteId?: string | null;
|
|
1139
1292
|
/**
|
|
@@ -1173,7 +1326,10 @@ export declare enum ContractSwitchReason {
|
|
|
1173
1326
|
}
|
|
1174
1327
|
/** Triggered when a subscription's price is increased. */
|
|
1175
1328
|
export interface ProductPriceIncreaseData {
|
|
1176
|
-
/**
|
|
1329
|
+
/**
|
|
1330
|
+
* Price of the subscription before the update.
|
|
1331
|
+
* @format DECIMAL_VALUE
|
|
1332
|
+
*/
|
|
1177
1333
|
previousPrice?: string | null;
|
|
1178
1334
|
/** A value that is used in order to select the correct email template to send the user regarding the price increase. */
|
|
1179
1335
|
emailTemplateSelector?: string | null;
|
|
@@ -1219,9 +1375,15 @@ export interface RecurringChargeAttemptFailed {
|
|
|
1219
1375
|
subscription?: Subscription;
|
|
1220
1376
|
}
|
|
1221
1377
|
export interface MessageEnvelope {
|
|
1222
|
-
/**
|
|
1378
|
+
/**
|
|
1379
|
+
* App instance ID.
|
|
1380
|
+
* @format GUID
|
|
1381
|
+
*/
|
|
1223
1382
|
instanceId?: string | null;
|
|
1224
|
-
/**
|
|
1383
|
+
/**
|
|
1384
|
+
* Event type.
|
|
1385
|
+
* @maxLength 150
|
|
1386
|
+
*/
|
|
1225
1387
|
eventType?: string;
|
|
1226
1388
|
/** The identification type and identity data. */
|
|
1227
1389
|
identity?: IdentificationData;
|
|
@@ -1229,26 +1391,50 @@ export interface MessageEnvelope {
|
|
|
1229
1391
|
data?: string;
|
|
1230
1392
|
}
|
|
1231
1393
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1232
|
-
/**
|
|
1394
|
+
/**
|
|
1395
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1396
|
+
* @format GUID
|
|
1397
|
+
*/
|
|
1233
1398
|
anonymousVisitorId?: string;
|
|
1234
|
-
/**
|
|
1399
|
+
/**
|
|
1400
|
+
* ID of a site visitor that has logged in to the site.
|
|
1401
|
+
* @format GUID
|
|
1402
|
+
*/
|
|
1235
1403
|
memberId?: string;
|
|
1236
|
-
/**
|
|
1404
|
+
/**
|
|
1405
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1406
|
+
* @format GUID
|
|
1407
|
+
*/
|
|
1237
1408
|
wixUserId?: string;
|
|
1238
|
-
/**
|
|
1409
|
+
/**
|
|
1410
|
+
* ID of an app.
|
|
1411
|
+
* @format GUID
|
|
1412
|
+
*/
|
|
1239
1413
|
appId?: string;
|
|
1240
1414
|
/** @readonly */
|
|
1241
1415
|
identityType?: WebhookIdentityType;
|
|
1242
1416
|
}
|
|
1243
1417
|
/** @oneof */
|
|
1244
1418
|
export interface IdentificationDataIdOneOf {
|
|
1245
|
-
/**
|
|
1419
|
+
/**
|
|
1420
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1421
|
+
* @format GUID
|
|
1422
|
+
*/
|
|
1246
1423
|
anonymousVisitorId?: string;
|
|
1247
|
-
/**
|
|
1424
|
+
/**
|
|
1425
|
+
* ID of a site visitor that has logged in to the site.
|
|
1426
|
+
* @format GUID
|
|
1427
|
+
*/
|
|
1248
1428
|
memberId?: string;
|
|
1249
|
-
/**
|
|
1429
|
+
/**
|
|
1430
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1431
|
+
* @format GUID
|
|
1432
|
+
*/
|
|
1250
1433
|
wixUserId?: string;
|
|
1251
|
-
/**
|
|
1434
|
+
/**
|
|
1435
|
+
* ID of an app.
|
|
1436
|
+
* @format GUID
|
|
1437
|
+
*/
|
|
1252
1438
|
appId?: string;
|
|
1253
1439
|
}
|
|
1254
1440
|
export declare enum WebhookIdentityType {
|
|
@@ -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,MAAM,CAAN,IAAY,aASX;AATD,WAAY,aAAa;IACvB,8BAA8B;IAC9B,oCAAmB,CAAA;IACnB,wFAAwF;IACxF,gCAAe,CAAA;IACf,kCAAkC;IAClC,kCAAiB,CAAA;IACjB,kCAAkC;IAClC,kCAAiB,CAAA;AACnB,CAAC,EATW,aAAa,KAAb,aAAa,QASxB;AAmBD,MAAM,CAAN,IAAY,IASX;AATD,WAAY,IAAI;IACd,2BAA2B;IAC3B,2BAAmB,CAAA;IACnB,0BAA0B;IAC1B,yBAAiB,CAAA;IACjB,kCAAkC;IAClC,yCAAiC,CAAA;IACjC,sBAAsB;IACtB,2BAAmB,CAAA;AACrB,CAAC,EATW,IAAI,KAAJ,IAAI,QASf;AAyDD,MAAM,CAAN,IAAY,YASX;AATD,WAAY,YAAY;IACtB,6BAA6B;IAC7B,mCAAmB,CAAA;IACnB,kCAAkC;IAClC,6CAA6B,CAAA;IAC7B,gCAAgC;IAChC,yCAAyB,CAAA;IACzB,qFAAqF;IACrF,+CAA+B,CAAA;AACjC,CAAC,EATW,YAAY,KAAZ,YAAY,QASvB;AAsCD,MAAM,CAAN,IAAY,MAeX;AAfD,WAAY,MAAM;IAChB,sBAAsB;IACtB,6BAAmB,CAAA;IACnB,gEAAgE;IAChE,mDAAyC,CAAA;IACzC,mDAAmD;IACnD,uCAA6B,CAAA;IAC7B,qDAAqD;IACrD,2CAAiC,CAAA;IACjC,qDAAqD;IACrD,2CAAiC,CAAA;IACjC,8DAA8D;IAC9D,6DAAmD,CAAA;IACnD,gDAAgD;IAChD,yDAA+C,CAAA;AACjD,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