@wix/referral 1.0.5 → 1.0.6

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.
@@ -1,3 +1,1821 @@
1
+ /** ReferralProgram is the main entity of ReferralPrograms that can be used to manage the program. */
2
+ interface ReferralProgram {
3
+ /** Referral program name. */
4
+ name?: string | null;
5
+ /**
6
+ * Referral program status.
7
+ * @readonly
8
+ */
9
+ status?: ProgramStatus;
10
+ /** 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. */
11
+ revision?: string | null;
12
+ /**
13
+ * Program's creation date and time.
14
+ * @readonly
15
+ */
16
+ _createdDate?: Date;
17
+ /**
18
+ * Program's last update date and time
19
+ * @readonly
20
+ */
21
+ _updatedDate?: Date;
22
+ /** Referred friend reward configuration. */
23
+ referredFriendReward?: Reward$2;
24
+ /** Referring customer reward configuration. */
25
+ referringCustomerReward?: Reward$2;
26
+ /** List of actions that complete referral. */
27
+ successfulReferralActions?: Action[];
28
+ /**
29
+ * Set to true if user has required plan to activate program.
30
+ * @readonly
31
+ * @deprecated Set to true if user has required plan to activate program.
32
+ * @replacedBy GetReferralProgramPremiumFeatures
33
+ * @removalDate 2024-09-01
34
+ */
35
+ isPremium?: boolean;
36
+ /** Emails configuration. */
37
+ emails?: Emails;
38
+ }
39
+ declare enum ProgramStatus {
40
+ /** unknown status. */
41
+ UNKNOWN = "UNKNOWN",
42
+ /** initial program status (program was created but was not enabled yet). */
43
+ DRAFT = "DRAFT",
44
+ /** program is active. */
45
+ ACTIVE = "ACTIVE",
46
+ /** program was manually disabled by the user (this action can be reverted, meaning user can set it to be active again). */
47
+ PAUSED = "PAUSED"
48
+ }
49
+ interface Reward$2 extends RewardOptionsOneOf$1 {
50
+ /** Options for coupon reward type. */
51
+ couponOptions?: Coupon$2;
52
+ /** Options for Loyalty points reward type. */
53
+ loyaltyPointsOptions?: LoyaltyPoints$2;
54
+ /** Type of the reward. */
55
+ type?: Type$1;
56
+ }
57
+ /** @oneof */
58
+ interface RewardOptionsOneOf$1 {
59
+ /** Options for coupon reward type. */
60
+ couponOptions?: Coupon$2;
61
+ /** Options for Loyalty points reward type. */
62
+ loyaltyPointsOptions?: LoyaltyPoints$2;
63
+ }
64
+ declare enum Type$1 {
65
+ /** Unknown reward type. */
66
+ UNKNOWN = "UNKNOWN",
67
+ /** Coupon reward type. */
68
+ COUPON = "COUPON",
69
+ /** Loyalty points reward type. */
70
+ LOYALTY_POINTS = "LOYALTY_POINTS",
71
+ /** No reward type. */
72
+ NOTHING = "NOTHING"
73
+ }
74
+ interface Coupon$2 extends CouponDiscountTypeOptionsOneOf$2, CouponScopeOrMinSubtotalOneOf$2 {
75
+ /** Options for fixed amount discount type. */
76
+ fixedAmountOptions?: FixedAmountDiscount$2;
77
+ /** Options for percentage discount type. */
78
+ percentageOptions?: PercentageDiscount$2;
79
+ /** Limit the coupon to carts with a subtotal above this number. */
80
+ minimumSubtotal?: number;
81
+ /** Specifies the type of line items this coupon will apply to. */
82
+ scope?: CouponScope$2;
83
+ /** Coupon name. */
84
+ name?: string;
85
+ /** Coupon discount type. */
86
+ discountType?: DiscountType$2;
87
+ /** Limit the coupon to only apply to one item in cart. */
88
+ limitedToOneItem?: boolean | null;
89
+ /** If true, coupon also applies to subscriptions. */
90
+ appliesToSubscriptions?: boolean | null;
91
+ /** Specifies the amount of discounted cycles for subscription item. See Stores Coupons documentation for more info. */
92
+ discountedCycleCount?: number | null;
93
+ }
94
+ /** @oneof */
95
+ interface CouponDiscountTypeOptionsOneOf$2 {
96
+ /** Options for fixed amount discount type. */
97
+ fixedAmountOptions?: FixedAmountDiscount$2;
98
+ /** Options for percentage discount type. */
99
+ percentageOptions?: PercentageDiscount$2;
100
+ }
101
+ /** @oneof */
102
+ interface CouponScopeOrMinSubtotalOneOf$2 {
103
+ /** Limit the coupon to carts with a subtotal above this number. */
104
+ minimumSubtotal?: number;
105
+ /** Specifies the type of line items this coupon will apply to. */
106
+ scope?: CouponScope$2;
107
+ }
108
+ declare enum DiscountType$2 {
109
+ /** Unknown discount type. */
110
+ UNKNOWN = "UNKNOWN",
111
+ /** Discount as a fixed amount. */
112
+ FIXED_AMOUNT = "FIXED_AMOUNT",
113
+ /** Discount as a percentage. */
114
+ PERCENTAGE = "PERCENTAGE",
115
+ /** Free shipping. */
116
+ FREE_SHIPPING = "FREE_SHIPPING"
117
+ }
118
+ interface FixedAmountDiscount$2 {
119
+ /** Fixed amount to discount. */
120
+ amount?: number;
121
+ }
122
+ interface PercentageDiscount$2 {
123
+ /** Percentage to discount. */
124
+ percentage?: number;
125
+ }
126
+ interface CouponScope$2 {
127
+ /** Namespace of the coupon scope. */
128
+ namespace?: string;
129
+ /** Group of the coupon scope. */
130
+ group?: Group$2;
131
+ }
132
+ interface Group$2 {
133
+ /** Name of the group. */
134
+ name?: string;
135
+ /** Entity ID of the group. */
136
+ entityId?: string | null;
137
+ }
138
+ interface LoyaltyPoints$2 {
139
+ /** Amount of points to give. */
140
+ amount?: number;
141
+ }
142
+ declare enum Action {
143
+ /** Unknown action. */
144
+ UNKNOWN = "UNKNOWN",
145
+ /** Store order placed. */
146
+ STORE_ORDER_PLACED = "STORE_ORDER_PLACED",
147
+ /** Pricing plan ordered. */
148
+ PLAN_ORDERED = "PLAN_ORDERED",
149
+ /** Wix events ticket ordered. */
150
+ TICKET_ORDERED = "TICKET_ORDERED",
151
+ /** Bookings session booked. */
152
+ SESSION_BOOKED = "SESSION_BOOKED",
153
+ /** Restaurant order placed. */
154
+ RESTAURANT_ORDER_PLACED = "RESTAURANT_ORDER_PLACED"
155
+ }
156
+ interface Emails {
157
+ /** Encourage customers to refer their friends email. Select for which apps to enable. */
158
+ encourageToReferFriends?: App[];
159
+ /** Notify customers about their referral reward email. Set true to enable email. */
160
+ notifyCustomersAboutReward?: boolean;
161
+ }
162
+ declare enum App {
163
+ /** Unknown app. */
164
+ UNKNOWN = "UNKNOWN",
165
+ /** Wix stores. */
166
+ STORES = "STORES",
167
+ /** Wix pricing plans. */
168
+ PRICING_PLANS = "PRICING_PLANS",
169
+ /** Wix events. */
170
+ EVENTS = "EVENTS",
171
+ /** Wix bookings. */
172
+ BOOKINGS = "BOOKINGS",
173
+ /** Wix restaurants. */
174
+ RESTAURANTS = "RESTAURANTS"
175
+ }
176
+ interface GetReferralProgramRequest {
177
+ }
178
+ interface GetReferralProgramResponse {
179
+ /** The retrieved ReferralProgram. */
180
+ referralProgram?: ReferralProgram;
181
+ }
182
+ interface BulkGetReferralProgramRequest {
183
+ }
184
+ interface BulkGetReferralProgramResponse {
185
+ /** Referral programs. */
186
+ programInSites?: ProgramInSite[];
187
+ }
188
+ interface ProgramInSite {
189
+ /** Metasite ID. */
190
+ metaSiteId?: string;
191
+ /** Referral program. */
192
+ referralProgram?: ReferralProgram;
193
+ }
194
+ interface QueryReferralProgramsRequest {
195
+ /** Query to filter ReferralPrograms. */
196
+ query: CursorQuery$4;
197
+ }
198
+ interface CursorQuery$4 extends CursorQueryPagingMethodOneOf$4 {
199
+ /** 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`. */
200
+ cursorPaging?: CursorPaging$4;
201
+ /**
202
+ * Filter object in the following format:
203
+ * `"filter" : {
204
+ * "fieldName1": "value1",
205
+ * "fieldName2":{"$operator":"value2"}
206
+ * }`
207
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
208
+ */
209
+ filter?: Record<string, any> | null;
210
+ /**
211
+ * Sort object in the following format:
212
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
213
+ */
214
+ sort?: Sorting$4[];
215
+ }
216
+ /** @oneof */
217
+ interface CursorQueryPagingMethodOneOf$4 {
218
+ /** 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`. */
219
+ cursorPaging?: CursorPaging$4;
220
+ }
221
+ interface Sorting$4 {
222
+ /** Name of the field to sort by. */
223
+ fieldName?: string;
224
+ /** Sort order. */
225
+ order?: SortOrder$4;
226
+ }
227
+ declare enum SortOrder$4 {
228
+ ASC = "ASC",
229
+ DESC = "DESC"
230
+ }
231
+ interface CursorPaging$4 {
232
+ /** Maximum number of items to return in the results. */
233
+ limit?: number | null;
234
+ /**
235
+ * Pointer to the next or previous page in the list of results.
236
+ *
237
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
238
+ * Not relevant for the first request.
239
+ */
240
+ cursor?: string | null;
241
+ }
242
+ interface QueryReferralProgramsResponse {
243
+ /** ReferralPrograms that match the query. */
244
+ referralPrograms?: ReferralProgram[];
245
+ /** Paging metadata. */
246
+ pagingMetadata?: CursorPagingMetadata$4;
247
+ }
248
+ interface CursorPagingMetadata$4 {
249
+ /** Number of items returned in the response. */
250
+ count?: number | null;
251
+ /** Cursor strings that point to the next page, previous page, or both. */
252
+ cursors?: Cursors$4;
253
+ /**
254
+ * Whether there are more pages to retrieve following the current page.
255
+ *
256
+ * + `true`: Another page of results can be retrieved.
257
+ * + `false`: This is the last page.
258
+ */
259
+ hasNext?: boolean | null;
260
+ }
261
+ interface Cursors$4 {
262
+ /** Cursor string pointing to the next page in the list of results. */
263
+ next?: string | null;
264
+ /** Cursor pointing to the previous page in the list of results. */
265
+ prev?: string | null;
266
+ }
267
+ interface UpdateReferralProgramRequest {
268
+ /** ReferralProgram to be updated, may be partial. */
269
+ referralProgram: ReferralProgram;
270
+ }
271
+ interface UpdateReferralProgramResponse {
272
+ /** The updated ReferralProgram. */
273
+ referralProgram?: ReferralProgram;
274
+ }
275
+ interface ActivateReferralProgramRequest {
276
+ }
277
+ interface ActivateReferralProgramResponse {
278
+ /** The activated ReferralProgram. */
279
+ referralProgram?: ReferralProgram;
280
+ }
281
+ interface PauseReferralProgramRequest {
282
+ }
283
+ interface PauseReferralProgramResponse {
284
+ /** The paused ReferralProgram. */
285
+ referralProgram?: ReferralProgram;
286
+ }
287
+ interface GetAISocialMediaPostsSuggestionsRequest {
288
+ /** The topic to generate suggestions for. */
289
+ topic?: string;
290
+ }
291
+ interface GetAISocialMediaPostsSuggestionsResponse {
292
+ /** The generated suggestions. */
293
+ suggestions?: AISocialMediaPostSuggestion[];
294
+ /** The refer friends page URL. */
295
+ referFriendsPageUrl?: string | null;
296
+ }
297
+ interface AISocialMediaPostSuggestion {
298
+ /** The suggested post content. */
299
+ postContent?: string;
300
+ /** The suggested hashtags. */
301
+ hashtags?: string[];
302
+ }
303
+ interface GenerateAISocialMediaPostsSuggestionsRequest {
304
+ /** The topic to generate suggestions for. */
305
+ topic?: string;
306
+ }
307
+ interface GenerateAISocialMediaPostsSuggestionsResponse {
308
+ /** The generated suggestions. */
309
+ suggestions?: AISocialMediaPostSuggestion[];
310
+ /** The refer friends page URL. */
311
+ referFriendsPageUrl?: string | null;
312
+ }
313
+ interface GetReferralProgramPremiumFeaturesRequest {
314
+ }
315
+ interface GetReferralProgramPremiumFeaturesResponse {
316
+ /**
317
+ * Set to true if user has referral program feature.
318
+ * @readonly
319
+ */
320
+ referralProgram?: boolean;
321
+ }
322
+ interface DomainEvent$4 extends DomainEventBodyOneOf$4 {
323
+ createdEvent?: EntityCreatedEvent$4;
324
+ updatedEvent?: EntityUpdatedEvent$4;
325
+ deletedEvent?: EntityDeletedEvent$4;
326
+ actionEvent?: ActionEvent$4;
327
+ /**
328
+ * Unique event ID.
329
+ * Allows clients to ignore duplicate webhooks.
330
+ */
331
+ _id?: string;
332
+ /**
333
+ * Assumes actions are also always typed to an entity_type
334
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
335
+ */
336
+ entityFqdn?: string;
337
+ /**
338
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
339
+ * This is although the created/updated/deleted notion is duplication of the oneof types
340
+ * Example: created/updated/deleted/started/completed/email_opened
341
+ */
342
+ slug?: string;
343
+ /** ID of the entity associated with the event. */
344
+ entityId?: string;
345
+ /** Event timestamp. */
346
+ eventTime?: Date;
347
+ /**
348
+ * Whether the event was triggered as a result of a privacy regulation application
349
+ * (for example, GDPR).
350
+ */
351
+ triggeredByAnonymizeRequest?: boolean | null;
352
+ /** If present, indicates the action that triggered the event. */
353
+ originatedFrom?: string | null;
354
+ /**
355
+ * A sequence number defining the order of updates to the underlying entity.
356
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
357
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
358
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
359
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
360
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
361
+ */
362
+ entityEventSequence?: string | null;
363
+ }
364
+ /** @oneof */
365
+ interface DomainEventBodyOneOf$4 {
366
+ createdEvent?: EntityCreatedEvent$4;
367
+ updatedEvent?: EntityUpdatedEvent$4;
368
+ deletedEvent?: EntityDeletedEvent$4;
369
+ actionEvent?: ActionEvent$4;
370
+ }
371
+ interface EntityCreatedEvent$4 {
372
+ entity?: string;
373
+ }
374
+ interface UndeleteInfo$4 {
375
+ deletedDate?: Date;
376
+ }
377
+ interface EntityUpdatedEvent$4 {
378
+ /**
379
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
380
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
381
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
382
+ */
383
+ currentEntity?: string;
384
+ }
385
+ interface EntityDeletedEvent$4 {
386
+ /** Entity that was deleted */
387
+ deletedEntity?: string | null;
388
+ }
389
+ interface ActionEvent$4 {
390
+ body?: string;
391
+ }
392
+ interface Empty$3 {
393
+ }
394
+ interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
395
+ /** Emitted on a meta site creation. */
396
+ siteCreated?: SiteCreated;
397
+ /** Emitted on a meta site transfer completion. */
398
+ siteTransferred?: SiteTransferred;
399
+ /** Emitted on a meta site deletion. */
400
+ siteDeleted?: SiteDeleted;
401
+ /** Emitted on a meta site restoration. */
402
+ siteUndeleted?: SiteUndeleted;
403
+ /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
404
+ sitePublished?: SitePublished;
405
+ /** Emitted on a meta site unpublish. */
406
+ siteUnpublished?: SiteUnpublished;
407
+ /** Emitted when meta site is marked as template. */
408
+ siteMarkedAsTemplate?: SiteMarkedAsTemplate;
409
+ /** Emitted when meta site is marked as a WixSite. */
410
+ siteMarkedAsWixSite?: SiteMarkedAsWixSite;
411
+ /** Emitted when an application is provisioned (installed). */
412
+ serviceProvisioned?: ServiceProvisioned;
413
+ /** Emitted when an application is removed (uninstalled). */
414
+ serviceRemoved?: ServiceRemoved;
415
+ /** Emitted when meta site name (URL slug) is changed. */
416
+ siteRenamedPayload?: SiteRenamed;
417
+ /** Emitted when meta site was permanently deleted. */
418
+ hardDeleted?: SiteHardDeleted;
419
+ /** Emitted on a namespace change. */
420
+ namespaceChanged?: NamespaceChanged;
421
+ /** Emitted when Studio is attached. */
422
+ studioAssigned?: StudioAssigned;
423
+ /** Emitted when Studio is detached. */
424
+ studioUnassigned?: StudioUnassigned;
425
+ /** A meta site id. */
426
+ metaSiteId?: string;
427
+ /** A meta site version. Monotonically increasing. */
428
+ version?: string;
429
+ /** A timestamp of the event. */
430
+ timestamp?: string;
431
+ /** A list of "assets" (applications). The same as MetaSiteContext. */
432
+ assets?: Asset[];
433
+ }
434
+ /** @oneof */
435
+ interface MetaSiteSpecialEventPayloadOneOf {
436
+ /** Emitted on a meta site creation. */
437
+ siteCreated?: SiteCreated;
438
+ /** Emitted on a meta site transfer completion. */
439
+ siteTransferred?: SiteTransferred;
440
+ /** Emitted on a meta site deletion. */
441
+ siteDeleted?: SiteDeleted;
442
+ /** Emitted on a meta site restoration. */
443
+ siteUndeleted?: SiteUndeleted;
444
+ /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
445
+ sitePublished?: SitePublished;
446
+ /** Emitted on a meta site unpublish. */
447
+ siteUnpublished?: SiteUnpublished;
448
+ /** Emitted when meta site is marked as template. */
449
+ siteMarkedAsTemplate?: SiteMarkedAsTemplate;
450
+ /** Emitted when meta site is marked as a WixSite. */
451
+ siteMarkedAsWixSite?: SiteMarkedAsWixSite;
452
+ /** Emitted when an application is provisioned (installed). */
453
+ serviceProvisioned?: ServiceProvisioned;
454
+ /** Emitted when an application is removed (uninstalled). */
455
+ serviceRemoved?: ServiceRemoved;
456
+ /** Emitted when meta site name (URL slug) is changed. */
457
+ siteRenamedPayload?: SiteRenamed;
458
+ /** Emitted when meta site was permanently deleted. */
459
+ hardDeleted?: SiteHardDeleted;
460
+ /** Emitted on a namespace change. */
461
+ namespaceChanged?: NamespaceChanged;
462
+ /** Emitted when Studio is attached. */
463
+ studioAssigned?: StudioAssigned;
464
+ /** Emitted when Studio is detached. */
465
+ studioUnassigned?: StudioUnassigned;
466
+ }
467
+ interface Asset {
468
+ /** An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum). */
469
+ appDefId?: string;
470
+ /** An instance id. For legacy reasons may be UUID or a string. */
471
+ instanceId?: string;
472
+ /** An application state. */
473
+ state?: State;
474
+ }
475
+ declare enum State {
476
+ UNKNOWN = "UNKNOWN",
477
+ ENABLED = "ENABLED",
478
+ DISABLED = "DISABLED",
479
+ PENDING = "PENDING",
480
+ DEMO = "DEMO"
481
+ }
482
+ interface SiteCreated {
483
+ /** A template identifier (empty if not created from a template). */
484
+ originTemplateId?: string;
485
+ /** An account id of the owner. */
486
+ ownerId?: string;
487
+ /** A context in which meta site was created. */
488
+ context?: SiteCreatedContext;
489
+ /**
490
+ * A meta site id from which this site was created.
491
+ *
492
+ * In case of a creation from a template it's a template id.
493
+ * In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
494
+ */
495
+ originMetaSiteId?: string | null;
496
+ /** A meta site name (URL slug). */
497
+ siteName?: string;
498
+ /** A namespace. */
499
+ namespace?: Namespace;
500
+ }
501
+ declare enum SiteCreatedContext {
502
+ /** A valid option, we don't expose all reasons why site might be created. */
503
+ OTHER = "OTHER",
504
+ /** A meta site was created from template. */
505
+ FROM_TEMPLATE = "FROM_TEMPLATE",
506
+ /** A meta site was created by copying of the transfferred meta site. */
507
+ DUPLICATE_BY_SITE_TRANSFER = "DUPLICATE_BY_SITE_TRANSFER",
508
+ /** A copy of existing meta site. */
509
+ DUPLICATE = "DUPLICATE",
510
+ /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
511
+ OLD_SITE_TRANSFER = "OLD_SITE_TRANSFER",
512
+ /** deprecated A meta site was created for Flash editor. */
513
+ FLASH = "FLASH"
514
+ }
515
+ declare enum Namespace {
516
+ UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
517
+ /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
518
+ WIX = "WIX",
519
+ /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */
520
+ SHOUT_OUT = "SHOUT_OUT",
521
+ /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */
522
+ ALBUMS = "ALBUMS",
523
+ /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */
524
+ WIX_STORES_TEST_DRIVE = "WIX_STORES_TEST_DRIVE",
525
+ /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
526
+ HOTELS = "HOTELS",
527
+ /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
528
+ CLUBS = "CLUBS",
529
+ /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
530
+ ONBOARDING_DRAFT = "ONBOARDING_DRAFT",
531
+ /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
532
+ DEV_SITE = "DEV_SITE",
533
+ /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
534
+ LOGOS = "LOGOS",
535
+ /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
536
+ VIDEO_MAKER = "VIDEO_MAKER",
537
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
538
+ PARTNER_DASHBOARD = "PARTNER_DASHBOARD",
539
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
540
+ DEV_CENTER_COMPANY = "DEV_CENTER_COMPANY",
541
+ /**
542
+ * A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
543
+ *
544
+ * Meta site with this namespace will *not* be shown in a user's site list by default.
545
+ */
546
+ HTML_DRAFT = "HTML_DRAFT",
547
+ /**
548
+ * the user-journey for Fitness users who want to start from managing their business instead of designing their website.
549
+ * Will be accessible from Site List and will not have a website app.
550
+ * Once the user attaches a site, the site will become a regular wixsite.
551
+ */
552
+ SITELESS_BUSINESS = "SITELESS_BUSINESS",
553
+ /** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
554
+ CREATOR_ECONOMY = "CREATOR_ECONOMY",
555
+ /** It is to be used in the Business First efforts. */
556
+ DASHBOARD_FIRST = "DASHBOARD_FIRST",
557
+ /** Bookings business flow with no site. */
558
+ ANYWHERE = "ANYWHERE",
559
+ /** Namespace for Headless Backoffice with no editor */
560
+ HEADLESS = "HEADLESS",
561
+ /**
562
+ * Namespace for master site that will exist in parent account that will be referenced by subaccounts
563
+ * The site will be used for account level CSM feature for enterprise
564
+ */
565
+ ACCOUNT_MASTER_CMS = "ACCOUNT_MASTER_CMS",
566
+ /** Rise.ai Siteless account management for Gift Cards and Store Credit. */
567
+ RISE = "RISE",
568
+ /**
569
+ * As part of the branded app new funnel, users now can create a meta site that will be branded app first.
570
+ * There's a blank site behind the scene but it's blank).
571
+ * The Mobile company will be the owner of this namespace.
572
+ */
573
+ BRANDED_FIRST = "BRANDED_FIRST"
574
+ }
575
+ /** Site transferred to another user. */
576
+ interface SiteTransferred {
577
+ /** A previous owner id (user that transfers meta site). */
578
+ oldOwnerId?: string;
579
+ /** A new owner id (user that accepts meta site). */
580
+ newOwnerId?: string;
581
+ }
582
+ /** Soft deletion of the meta site. Could be restored. */
583
+ interface SiteDeleted {
584
+ /** A deletion context. */
585
+ deleteContext?: DeleteContext;
586
+ }
587
+ interface DeleteContext {
588
+ /** When the meta site was deleted. */
589
+ dateDeleted?: Date;
590
+ /** A status. */
591
+ deleteStatus?: DeleteStatus;
592
+ /** A reason (flow). */
593
+ deleteOrigin?: string;
594
+ /** A service that deleted it. */
595
+ initiatorId?: string | null;
596
+ }
597
+ declare enum DeleteStatus {
598
+ UNKNOWN = "UNKNOWN",
599
+ TRASH = "TRASH",
600
+ DELETED = "DELETED",
601
+ PENDING_PURGE = "PENDING_PURGE"
602
+ }
603
+ /** Restoration of the meta site. */
604
+ interface SiteUndeleted {
605
+ }
606
+ /** First publish of a meta site. Or subsequent publish after unpublish. */
607
+ interface SitePublished {
608
+ }
609
+ interface SiteUnpublished {
610
+ /** A list of URLs previously associated with the meta site. */
611
+ urls?: string[];
612
+ }
613
+ interface SiteMarkedAsTemplate {
614
+ }
615
+ interface SiteMarkedAsWixSite {
616
+ }
617
+ interface ServiceProvisioned {
618
+ /** Either UUID or EmbeddedServiceType. */
619
+ appDefId?: string;
620
+ /** Not only UUID. Something here could be something weird. */
621
+ instanceId?: string;
622
+ /** An instance id from which this instance is originated. */
623
+ originInstanceId?: string;
624
+ /** A version. */
625
+ version?: string | null;
626
+ }
627
+ interface ServiceRemoved {
628
+ /** Either UUID or EmbeddedServiceType. */
629
+ appDefId?: string;
630
+ /** Not only UUID. Something here could be something weird. */
631
+ instanceId?: string;
632
+ /** A version. */
633
+ version?: string | null;
634
+ }
635
+ /** Rename of the site. Meaning, free public url has been changed as well. */
636
+ interface SiteRenamed {
637
+ /** A new meta site name (URL slug). */
638
+ newSiteName?: string;
639
+ /** A previous meta site name (URL slug). */
640
+ oldSiteName?: string;
641
+ }
642
+ /**
643
+ * Hard deletion of the meta site.
644
+ *
645
+ * Could not be restored. Therefore it's desirable to cleanup data.
646
+ */
647
+ interface SiteHardDeleted {
648
+ /** A deletion context. */
649
+ deleteContext?: DeleteContext;
650
+ }
651
+ interface NamespaceChanged {
652
+ /** A previous namespace. */
653
+ oldNamespace?: Namespace;
654
+ /** A new namespace. */
655
+ newNamespace?: Namespace;
656
+ }
657
+ /** Assigned Studio editor */
658
+ interface StudioAssigned {
659
+ }
660
+ /** Unassigned Studio editor */
661
+ interface StudioUnassigned {
662
+ }
663
+ interface HtmlSitePublished {
664
+ /** Application instance ID */
665
+ appInstanceId?: string;
666
+ /** Application type */
667
+ appType?: string;
668
+ /** Revision */
669
+ revision?: string;
670
+ /** MSID */
671
+ metaSiteId?: string | null;
672
+ /** optional branch id if publish is done from branch */
673
+ branchId?: string | null;
674
+ /** The site's last transactionId */
675
+ lastTransactionId?: string | null;
676
+ /** A list of the site's pages */
677
+ pages?: Page[];
678
+ /** Site's publish date */
679
+ publishDate?: string;
680
+ }
681
+ interface Page {
682
+ /** Page's Id */
683
+ _id?: string;
684
+ }
685
+ interface SubscriptionEvent extends SubscriptionEventEventOneOf {
686
+ /** Triggered when a subscription is created. */
687
+ created?: SubscriptionCreated;
688
+ /**
689
+ * Triggered when a subscription is assigned to a Wix site, including the initial
690
+ * assignment of a floating subscription or a re-assignement from a different site.
691
+ */
692
+ assigned?: SubscriptionAssigned;
693
+ /** Triggered when a subscription is canceled. */
694
+ cancelled?: SubscriptionCancelled;
695
+ /** Triggered when the subscription's auto renew is turned on. */
696
+ autoRenewTurnedOn?: SubscriptionAutoRenewTurnedOn;
697
+ /** Triggered when the subscription's auto renew is turned off. */
698
+ autoRenewTurnedOff?: SubscriptionAutoRenewTurnedOff;
699
+ /**
700
+ * Triggered when a subscription is unassigned from a Wix site and becomes
701
+ * floating.
702
+ */
703
+ unassigned?: SubscriptionUnassigned;
704
+ /**
705
+ * Triggered when a subscription is transferred from one Wix account to another.
706
+ * A transfer includes cancelling the original subscription and creating a new
707
+ * subscription for the target account. The event returns both the original
708
+ * and the new subscription.
709
+ */
710
+ transferred?: SubscriptionTransferred;
711
+ /** Triggered when a recurring charge succeeds for a subscription. */
712
+ recurringChargeSucceeded?: RecurringChargeSucceeded;
713
+ /**
714
+ * Triggered when a subscription was updated including when its product has been
715
+ * up- or downgraded or the billing cycle is changed.
716
+ */
717
+ contractSwitched?: ContractSwitched;
718
+ /**
719
+ * Triggered when a subscription gets close to the end of its billing cycle.
720
+ * The exact number of days is defined in the billing system.
721
+ */
722
+ nearEndOfPeriod?: SubscriptionNearEndOfPeriod;
723
+ /**
724
+ * Triggered when a subscription is updated and the change doesn't happen
725
+ * immediately but at the end of the current billing cycle.
726
+ */
727
+ pendingChange?: SubscriptionPendingChange;
728
+ /** ID of the subscription's event. */
729
+ eventId?: string | null;
730
+ /**
731
+ * Date and time of the event in
732
+ * [UTC datetime](https://en.wikipedia.org/wiki/Coordinated_Universal_Time)
733
+ * `YYYY-MM-DDThh:mm:ss.sssZ` format.
734
+ */
735
+ eventDate?: Date;
736
+ }
737
+ /** @oneof */
738
+ interface SubscriptionEventEventOneOf {
739
+ /** Triggered when a subscription is created. */
740
+ created?: SubscriptionCreated;
741
+ /**
742
+ * Triggered when a subscription is assigned to a Wix site, including the initial
743
+ * assignment of a floating subscription or a re-assignement from a different site.
744
+ */
745
+ assigned?: SubscriptionAssigned;
746
+ /** Triggered when a subscription is canceled. */
747
+ cancelled?: SubscriptionCancelled;
748
+ /** Triggered when the subscription's auto renew is turned on. */
749
+ autoRenewTurnedOn?: SubscriptionAutoRenewTurnedOn;
750
+ /** Triggered when the subscription's auto renew is turned off. */
751
+ autoRenewTurnedOff?: SubscriptionAutoRenewTurnedOff;
752
+ /**
753
+ * Triggered when a subscription is unassigned from a Wix site and becomes
754
+ * floating.
755
+ */
756
+ unassigned?: SubscriptionUnassigned;
757
+ /**
758
+ * Triggered when a subscription is transferred from one Wix account to another.
759
+ * A transfer includes cancelling the original subscription and creating a new
760
+ * subscription for the target account. The event returns both the original
761
+ * and the new subscription.
762
+ */
763
+ transferred?: SubscriptionTransferred;
764
+ /** Triggered when a recurring charge succeeds for a subscription. */
765
+ recurringChargeSucceeded?: RecurringChargeSucceeded;
766
+ /**
767
+ * Triggered when a subscription was updated including when its product has been
768
+ * up- or downgraded or the billing cycle is changed.
769
+ */
770
+ contractSwitched?: ContractSwitched;
771
+ /**
772
+ * Triggered when a subscription gets close to the end of its billing cycle.
773
+ * The exact number of days is defined in the billing system.
774
+ */
775
+ nearEndOfPeriod?: SubscriptionNearEndOfPeriod;
776
+ /**
777
+ * Triggered when a subscription is updated and the change doesn't happen
778
+ * immediately but at the end of the current billing cycle.
779
+ */
780
+ pendingChange?: SubscriptionPendingChange;
781
+ }
782
+ /** Triggered when a subscription is created. */
783
+ interface SubscriptionCreated {
784
+ /** Created subscription. */
785
+ subscription?: Subscription;
786
+ /** Metadata for the `created` event. */
787
+ metadata?: Record<string, string>;
788
+ /**
789
+ * Subscription reactivation data.
790
+ * A subscription can be reactivated for example if it was incorrectly canceled because of fraud and then reactivated
791
+ * by the billing system
792
+ */
793
+ reactivationData?: ReactivationData;
794
+ }
795
+ /**
796
+ * A subscription holds information about a Premium product that a Wix account
797
+ * owner has purchased including details about the billing.
798
+ */
799
+ interface Subscription {
800
+ /** ID of the subscription. */
801
+ _id?: string;
802
+ /** ID of the Wix account that purchased the subscription. */
803
+ userId?: string;
804
+ /**
805
+ * ID of the [product](https://bo.wix.com/wix-docs/rest/premium/premium-product-catalog-v2/products/product-object)
806
+ * for which the subscription was purchased.
807
+ */
808
+ productId?: string;
809
+ /**
810
+ * Date and time the subscription was created in
811
+ * [UTC datetime](https://en.wikipedia.org/wiki/Coordinated_Universal_Time)
812
+ * `YYYY-MM-DDThh:mm:ss.sssZ` format.
813
+ */
814
+ createdAt?: Date;
815
+ /**
816
+ * Date and time the subscription was last updated in
817
+ * [UTC datetime](https://en.wikipedia.org/wiki/Coordinated_Universal_Time)
818
+ * `YYYY-MM-DDThh:mm:ss.sssZ` format.
819
+ */
820
+ updatedAt?: Date;
821
+ /**
822
+ * ID of the metasite that the subscription is assigned to.
823
+ * Available only when the subscription is assigned to a Wix site.
824
+ * Subscriptions for account level products can't be assigned to a Wix site.
825
+ */
826
+ metaSiteId?: string | null;
827
+ /** Information about the system that manages the subscription's billing. */
828
+ billingReference?: BillingReference;
829
+ /** Information about the billing cycle of the subscription. */
830
+ cycle?: Cycle;
831
+ /**
832
+ * Subscription status.
833
+ *
834
+ * + `UNKNOWN`: Default status.
835
+ * + `AUTO_RENEW_ON`: Subscription is active and automatically renews at the end of the current billing cycle.
836
+ * + `AUTO_RENEW_OFF`: Subscription is active but expires at the end of the current billing cycle.
837
+ * + `MANUAL_RECURRING`: Subscription is active and renews at the end of the current billing cycle, in case the customer takes an action related to the payment.
838
+ * + `CANCELLED`: Subscription isn't active because it has been canceled.
839
+ * + `TRANSFERRED`: Subscription isn't active because it has been transferred to a different account. A different active subscription was created for the target account.
840
+ */
841
+ status?: SubscriptionStatus;
842
+ /**
843
+ * Date and time the subscription was last transferred from one Wix account to
844
+ * another in
845
+ * [UTC datetime](https://en.wikipedia.org/wiki/Coordinated_Universal_Time)
846
+ * `YYYY-MM-DDThh:mm:ss.sssZ` format.
847
+ */
848
+ transferredAt?: Date;
849
+ /**
850
+ * ID of the [product type](https://bo.wix.com/wix-docs/rest/premium/premium-product-catalog-v2/product-types/product-type-object)
851
+ * that the product, for which the subscription was purchased, belongs to.
852
+ */
853
+ productTypeId?: string;
854
+ /** Version number, which increments by 1 each time the subscription is updated. */
855
+ version?: number;
856
+ /**
857
+ * Whether the subscription is active. Includes the statuses
858
+ * `"AUTO_RENEW_ON"`, `"AUTO_RENEW_OFF"`, and `"MANUAL_RECURRING"`.
859
+ */
860
+ active?: boolean;
861
+ /**
862
+ * Date and time the subscription was originally created in
863
+ * [UTC datetime](https://en.wikipedia.org/wiki/Coordinated_Universal_Time)
864
+ * `YYYY-MM-DDThh:mm:ss.sssZ` format.
865
+ * Differs from `createdAt` in case the subscription was originally created for a different Wix account and has been transferred.
866
+ */
867
+ originalCreationDate?: Date;
868
+ /** Custom metadata about the subscription. */
869
+ metadata?: Record<string, string>;
870
+ /**
871
+ * 2-letter country code in
872
+ * [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
873
+ * format.
874
+ */
875
+ countryCode?: string | null;
876
+ }
877
+ interface BillingReference {
878
+ /**
879
+ * Name of the billing system that manages the subscription.
880
+ *
881
+ * + `"UNKNOWN"`: Default value.
882
+ * + `"SBS"`: [Wix Billing](https://github.com/wix-p/premium-billing/tree/master/sbs).
883
+ * + `"LICENSER"`:
884
+ * + `"BASS"`: [Billing and Subscriptions System](https://dev.wix.com/docs/rest/internal-only/premium/subscriptions-by-billing-by-wix/introduction).
885
+ * + `"RESELLER"`: [External Reseller](https://dev.wix.com/api/rest/account-level-apis/resellers/introduction).
886
+ */
887
+ providerName?: ProviderName;
888
+ /** Current provider reference ID. */
889
+ providerReferenceId?: string | null;
890
+ /** Previous provider reference IDs. Used for when a subscription is extended, specifically for domains. */
891
+ previousProviderReferenceIds?: string[];
892
+ }
893
+ declare enum ProviderName {
894
+ UNKNOWN = "UNKNOWN",
895
+ SBS = "SBS",
896
+ LICENSER = "LICENSER",
897
+ BASS = "BASS",
898
+ RESELLER = "RESELLER",
899
+ RECURRING_INVOICES = "RECURRING_INVOICES"
900
+ }
901
+ interface Cycle extends CycleCycleSelectorOneOf {
902
+ /** repetitive interval */
903
+ interval?: Interval;
904
+ /** one time */
905
+ oneTime?: OneTime;
906
+ }
907
+ /** @oneof */
908
+ interface CycleCycleSelectorOneOf {
909
+ /** repetitive interval */
910
+ interval?: Interval;
911
+ /** one time */
912
+ oneTime?: OneTime;
913
+ }
914
+ interface Interval {
915
+ /** interval unit of measure */
916
+ unit?: IntervalUnit;
917
+ /** number of interval */
918
+ count?: number;
919
+ }
920
+ declare enum IntervalUnit {
921
+ /** unknown interval unit */
922
+ UNKNOWN = "UNKNOWN",
923
+ /** day */
924
+ DAY = "DAY",
925
+ /** week */
926
+ WEEK = "WEEK",
927
+ /** month */
928
+ MONTH = "MONTH",
929
+ /** year */
930
+ YEAR = "YEAR"
931
+ }
932
+ interface OneTime {
933
+ }
934
+ declare enum SubscriptionStatus {
935
+ UNKNOWN = "UNKNOWN",
936
+ AUTO_RENEW_ON = "AUTO_RENEW_ON",
937
+ AUTO_RENEW_OFF = "AUTO_RENEW_OFF",
938
+ MANUAL_RECURRING = "MANUAL_RECURRING",
939
+ CANCELLED = "CANCELLED",
940
+ TRANSFERRED = "TRANSFERRED"
941
+ }
942
+ /** Triggered when a subscription is reactivated. */
943
+ interface ReactivationData {
944
+ reactivationReason?: ReactivationReasonEnum;
945
+ /**
946
+ * In the event of reactivation after chargeback dispute, the subscription may be extended according to the
947
+ * number of days it was inactive during the time of resolving the dispute
948
+ */
949
+ newEndOfPeriod?: Date;
950
+ /** The original end date, before the inactive period. */
951
+ oldEndOfPeriod?: Date;
952
+ /** The difference in days between the new new_end_of_period and old_end_of_period */
953
+ differenceInDays?: number | null;
954
+ }
955
+ /** Reason for subscription reactivation */
956
+ declare enum ReactivationReasonEnum {
957
+ UNKNOWN = "UNKNOWN",
958
+ /**
959
+ * Subscription was reactivated due to billing status change from CANCELED to ACTIVE, for example if it was incorrectly
960
+ * canceled because of suspicion of fraud
961
+ */
962
+ BILLING_STATUS_CHANGE = "BILLING_STATUS_CHANGE",
963
+ /** Subscription was reactivated after a chargeback dispute */
964
+ REACTIVATED_AFTER_CHARGEBACK = "REACTIVATED_AFTER_CHARGEBACK"
965
+ }
966
+ /**
967
+ * Triggered when a subscription is assigned to a Wix site, including the initial
968
+ * assignment of a floating subscription or a re-assignement from a different site.
969
+ */
970
+ interface SubscriptionAssigned {
971
+ /** Assigned subscription. */
972
+ subscription?: Subscription;
973
+ /** ID of the metasite that the subscription has been assigned to before the update. */
974
+ previousMetaSiteId?: string | null;
975
+ }
976
+ /** Triggered when a subscription is canceled. */
977
+ interface SubscriptionCancelled {
978
+ /** Canceled subscription. */
979
+ subscription?: Subscription;
980
+ /** Details about the cancellation including who canceled the subscription and why. */
981
+ cancellationDetails?: CancellationDetails;
982
+ /**
983
+ * Whether the subscription is canceled immediately or expires at the end of the current billing cycle.
984
+ *
985
+ * Default: `false`
986
+ */
987
+ immediateCancel?: boolean;
988
+ /** Whether the subscription was canceled during the free trial period. */
989
+ canceledInFreeTrial?: boolean;
990
+ }
991
+ /** Information about the cancellation flow including who canceled the subscription and why it was canceled. */
992
+ interface CancellationDetails {
993
+ /**
994
+ * Cancellation code.
995
+ *
996
+ * Values supported for cancellations on behalf of the billing system: `-1`, `-2`, `-3`, `-4`, `-5`, `-6`, `-7`, `-8`.
997
+ * For cancellations on behalf of the site owner or the service provider `cancellationCode`
998
+ * is taken from the request of
999
+ * [Cancel Immediately Offline](https://bo.wix.com/wix-docs/rest/premium/premium-subscriptions-manager/cancel-immediately-offline).
1000
+ *
1001
+ * + `-1`: The subscription has been cancelled by the billing system but none of the listed cancellation reasons applies.
1002
+ * + `-2`: There were payment problems.
1003
+ * + `-3`: There was a chargeback.
1004
+ * + `-4`: Customer support has canceled the subscription and issued a refund.
1005
+ * + `-5`: The site owner has changed their existing subscription.
1006
+ * + `-6`: The subscription has been transferred to a different Wix account.
1007
+ * + `-7`: The subscription has been canceled because the site owner hasn't manually authenticated the recurring payment during the subscription's grace period. For example, site owners must manually confirm recurring payments within 40 days when paying with boleto.
1008
+ * + `-8`: The Wix account that the subscription belonged to has been deleted.
1009
+ */
1010
+ cancellationCode?: number | null;
1011
+ /**
1012
+ * Cancellation reason. For cancellations on behalf of the site owner or the service provider `cancellationReason`
1013
+ * is taken from the request of
1014
+ * [Cancel Immediately Offline](https://bo.wix.com/wix-docs/rest/premium/premium-subscriptions-manager/cancel-immediately-offline).
1015
+ * For cancellations on behalf of the billing system `cancellationReason` is `null` or an empty string.
1016
+ */
1017
+ cancellationReason?: string | null;
1018
+ /**
1019
+ * Initiator of the cancellation. For `"USER_REQUESTED"` and `"APP_MANAGED"`,
1020
+ * `cancellationCode` and `cancellationReason` are taken from the request of
1021
+ * [Cancel Immediately](https://bo.wix.com/wix-docs/rest/premium/premium-subscriptions-manager/cancel-immediately)
1022
+ * or [Cancel Immediately Offline](https://bo.wix.com/wix-docs/rest/premium/premium-subscriptions-manager/cancel-immediately-offline).
1023
+ * For `"PASSIVE"`, cancellations `cancellationCode` is automatically calculated and `cancellationReason`
1024
+ * is `null` or an empty string.
1025
+ *
1026
+ * + `"UNKNOWN`: Default value.
1027
+ * + `"USER_REQUESTED"`: The Wix account owner has canceled the subscription.
1028
+ * + `"APP_MANAGED"`: The service provider has canceled the subscription.
1029
+ * + `"PASSIVE"`: The billing system has canceled the subscription. For example, in case of payment failure or fraud.
1030
+ */
1031
+ initiator?: Initiator;
1032
+ }
1033
+ declare enum Initiator {
1034
+ UNKNOWN = "UNKNOWN",
1035
+ USER_REQUESTED = "USER_REQUESTED",
1036
+ APP_MANAGED = "APP_MANAGED",
1037
+ PASSIVE = "PASSIVE"
1038
+ }
1039
+ /** Triggered when the subscription's auto renew is turned on. */
1040
+ interface SubscriptionAutoRenewTurnedOn {
1041
+ /** Subscription for which auto renew is turned on. */
1042
+ subscription?: Subscription;
1043
+ /**
1044
+ * Supported values: `USER`, `APP`.
1045
+ *
1046
+ * Information about who turned auto renew on.
1047
+ * + `"USER"`: The site owner who purchased the subscription has turned auto renew on.
1048
+ * + `"APP"`: The service provider has turned auto renew on.
1049
+ */
1050
+ initiator?: string | null;
1051
+ }
1052
+ /** Triggered when the subscription's auto renew is turned off. */
1053
+ interface SubscriptionAutoRenewTurnedOff {
1054
+ /** Subscription for which auto renew is turned off. */
1055
+ subscription?: Subscription;
1056
+ /** Details about the cancellation including who canceled the subscription and why. */
1057
+ cancellationDetails?: CancellationDetails;
1058
+ /**
1059
+ * Whether the subscription is immediately canceled or expires at the end of the current billing cycle.
1060
+ *
1061
+ * Default: `false`
1062
+ */
1063
+ immediateCancel?: boolean;
1064
+ }
1065
+ /**
1066
+ * Triggered when a subscription is unassigned from a Wix site and becomes
1067
+ * floating.
1068
+ */
1069
+ interface SubscriptionUnassigned {
1070
+ /** Unassigned subscription. */
1071
+ subscription?: Subscription;
1072
+ /** ID of the metasite that the subscription has been assigned to before the event. */
1073
+ previousMetaSiteId?: string;
1074
+ /**
1075
+ * Reason why the subscription is unassigned.
1076
+ *
1077
+ * + `"UNKNOWN"`: Default value.
1078
+ * + `"USER_REQUESTED"`: The Wix account owner has unassigned the subscription.
1079
+ * + `"REPLACED_BY_ANOTHER_SUBSCRIPTION"`: A different subscription that replaces this subscription is assigned to the site.
1080
+ */
1081
+ unassignReason?: UnassignReason;
1082
+ }
1083
+ declare enum UnassignReason {
1084
+ UNKNOWN = "UNKNOWN",
1085
+ USER_REQUESTED = "USER_REQUESTED",
1086
+ REPLACED_BY_ANOTHER_SUBSCRIPTION = "REPLACED_BY_ANOTHER_SUBSCRIPTION"
1087
+ }
1088
+ /**
1089
+ * Triggered when a subscription is transferred from one Wix account to another.
1090
+ * A transfer includes cancelling the original subscription and creating a new
1091
+ * subscription for the target account. The event returns both the original
1092
+ * and the new subscription.
1093
+ */
1094
+ interface SubscriptionTransferred {
1095
+ /** Original subscription that was canceled for the transfer. */
1096
+ originSubscription?: Subscription;
1097
+ /** Newly created subscription for the target account. */
1098
+ targetSubscription?: Subscription;
1099
+ }
1100
+ /** Triggered when a recurring charge succeeds for a subscription. */
1101
+ interface RecurringChargeSucceeded {
1102
+ /** Subscription for which the recurring charge has succeeded. */
1103
+ subscription?: Subscription;
1104
+ /** Indication that there was a successful charge at the end of the free trial period */
1105
+ freeTrialPeriodEnd?: boolean;
1106
+ }
1107
+ /**
1108
+ * Triggered when a subscription was updated including when its product has been
1109
+ * up- or downgraded or the billing cycle is changed.
1110
+ */
1111
+ interface ContractSwitched {
1112
+ /** Updated subscription. */
1113
+ subscription?: Subscription;
1114
+ /** Billing cycle before the update. */
1115
+ previousCycle?: Cycle;
1116
+ /** ID of the product belonging to the subscription before the update. */
1117
+ previousProductId?: string;
1118
+ /** ID of the product type that the subscription's original product belonged to before the update. */
1119
+ previousProductTypeId?: string;
1120
+ /**
1121
+ * Update type. __Note__: Doesn't include information about a product adjustment.
1122
+ * For that purpose, see `productAdjustment`.
1123
+ *
1124
+ * + `"NOT_APPLICABLE"`: Default value.
1125
+ * + `"ADDITIONAL_QUANTITY"`: An increased usage quota is added to the subscription. For example, a second mailbox is added to a subscription that previously included a single mailbox.
1126
+ * + `"CREDIT_UNUSED_PERIOD"`: The subscription is upgraded and the new price is less than the regular price. The new price applies to every billing cycle, not just the first cycle.
1127
+ * + `"REFUND_PRICE_DIFF"`: Not implemented.
1128
+ * + `"ADJUST_PERIOD_END"`: Not implemented.
1129
+ * + `"DOWNGRADE_GRACE_PERIOD"`: For downgrades during the grace period. In this situation, the site owner hasn’t paid yet and must immediately pay for the downgraded subscription.
1130
+ * + `"FULL_AMOUNT_PERIOD"`: For upgrades in which the site owner retains unused benefits. For example, site owners upgrading a Facebook Ads subscription retain their unused FB Ads credit. The unused credit is added to the new credit.
1131
+ * + `"END_OF_PERIOD"`: The subscription's billing current cycle is extended because of a downgrade.
1132
+ * + `"PENDING_CHANGES"`: The subscription's billing is updated, but the change doesn't apply immediately. Instead, the update becomes effective at the end of current billing cycle.
1133
+ * + `"DOWNGRADE_RENEWAL"`: The subscription is downgraded because of a declined payment. This prevents subscriptions from churning.
1134
+ */
1135
+ contractSwitchType?: ContractSwitchType;
1136
+ /**
1137
+ * ID of the metasite the subscription has been assigned to previously.
1138
+ * Available only in case the subscription is assigned to a different site.
1139
+ */
1140
+ previousMetaSiteId?: string | null;
1141
+ /**
1142
+ * Update reason.
1143
+ *
1144
+ * + `"PRICE_INCREASE"`: The subscription's price has been increased.
1145
+ * + `"EXTERNAL_PROVIDER_TRIGGER"`: Any reason other than a price increase.
1146
+ */
1147
+ contractSwitchReason?: ContractSwitchReason;
1148
+ /** Information about the price update. Available only for updates with a price increase. */
1149
+ productPriceIncreaseData?: ProductPriceIncreaseData;
1150
+ /**
1151
+ * Information about a product adjustment. For example, a downgrade.
1152
+ * __Note__: This isn't the same as `contractSwitchType`.
1153
+ *
1154
+ * + `NOT_APPLICABLE`: There is no information about whether the product has been up- or downgraded.
1155
+ * + `DOWNGRADE`: The product has been downgraded.
1156
+ */
1157
+ productAdjustment?: ProductAdjustment;
1158
+ }
1159
+ /** Copied from SBS */
1160
+ declare enum ContractSwitchType {
1161
+ NOT_APPLICABLE = "NOT_APPLICABLE",
1162
+ ADDITIONAL_QUANTITY = "ADDITIONAL_QUANTITY",
1163
+ CREDIT_UNUSED_PERIOD = "CREDIT_UNUSED_PERIOD",
1164
+ REFUND_PRICE_DIFF = "REFUND_PRICE_DIFF",
1165
+ ADJUST_PERIOD_END = "ADJUST_PERIOD_END",
1166
+ DOWNGRADE_GRACE_PERIOD = "DOWNGRADE_GRACE_PERIOD",
1167
+ FULL_AMOUNT_PERIOD = "FULL_AMOUNT_PERIOD",
1168
+ END_OF_PERIOD = "END_OF_PERIOD",
1169
+ PENDING_CHANGES = "PENDING_CHANGES",
1170
+ DOWNGRADE_RENEWAL = "DOWNGRADE_RENEWAL"
1171
+ }
1172
+ declare enum ContractSwitchReason {
1173
+ EXTERNAL_PROVIDER_TRIGGER = "EXTERNAL_PROVIDER_TRIGGER",
1174
+ PRICE_INCREASE = "PRICE_INCREASE"
1175
+ }
1176
+ /** Triggered when a subscription's price is increased. */
1177
+ interface ProductPriceIncreaseData {
1178
+ /** Price of the subscription before the update. */
1179
+ previousPrice?: string | null;
1180
+ /** A value that is used in order to select the correct email template to send the user regarding the price increase. */
1181
+ emailTemplateSelector?: string | null;
1182
+ /** Used to differentiate between migration segments. Does not have to be unique per segment. */
1183
+ segmentName?: string | null;
1184
+ /** Used to determine how the price increase was triggered. */
1185
+ priceIncreaseTrigger?: PriceIncreaseTrigger;
1186
+ }
1187
+ /** Reason for Price Increase Trigger */
1188
+ declare enum PriceIncreaseTrigger {
1189
+ NEAR_RENEWAL = "NEAR_RENEWAL",
1190
+ RECURRING_SUCCESS = "RECURRING_SUCCESS",
1191
+ MANUAL = "MANUAL"
1192
+ }
1193
+ /** Triggered when a subscription's product is adusted. */
1194
+ declare enum ProductAdjustment {
1195
+ /** flag to show that the ContractSwitchedEvent is not applicable / needed */
1196
+ NOT_APPLICABLE = "NOT_APPLICABLE",
1197
+ /** flag to show that the ContractSwitchedEvent is a Downgrade */
1198
+ DOWNGRADE = "DOWNGRADE"
1199
+ }
1200
+ /**
1201
+ * Triggered when a subscription gets close to the end of its billing cycle.
1202
+ * The exact number of days is defined in the billing system.
1203
+ */
1204
+ interface SubscriptionNearEndOfPeriod {
1205
+ /** Subscription that got close to the end of its billing cycle. */
1206
+ subscription?: Subscription;
1207
+ /** Whether the subscription is within the free trial period. */
1208
+ inFreeTrial?: boolean;
1209
+ }
1210
+ /**
1211
+ * Triggered when a subscription is updated and the change doesn't happen
1212
+ * immediately but at the end of the current billing cycle.
1213
+ */
1214
+ interface SubscriptionPendingChange {
1215
+ /** Subscription for which a pending update is triggered. */
1216
+ subscription?: Subscription;
1217
+ }
1218
+ interface MessageEnvelope$4 {
1219
+ /** App instance ID. */
1220
+ instanceId?: string | null;
1221
+ /** Event type. */
1222
+ eventType?: string;
1223
+ /** The identification type and identity data. */
1224
+ identity?: IdentificationData$4;
1225
+ /** Stringify payload. */
1226
+ data?: string;
1227
+ }
1228
+ interface IdentificationData$4 extends IdentificationDataIdOneOf$4 {
1229
+ /** ID of a site visitor that has not logged in to the site. */
1230
+ anonymousVisitorId?: string;
1231
+ /** ID of a site visitor that has logged in to the site. */
1232
+ memberId?: string;
1233
+ /** ID of a Wix user (site owner, contributor, etc.). */
1234
+ wixUserId?: string;
1235
+ /** ID of an app. */
1236
+ appId?: string;
1237
+ /** @readonly */
1238
+ identityType?: WebhookIdentityType$4;
1239
+ }
1240
+ /** @oneof */
1241
+ interface IdentificationDataIdOneOf$4 {
1242
+ /** ID of a site visitor that has not logged in to the site. */
1243
+ anonymousVisitorId?: string;
1244
+ /** ID of a site visitor that has logged in to the site. */
1245
+ memberId?: string;
1246
+ /** ID of a Wix user (site owner, contributor, etc.). */
1247
+ wixUserId?: string;
1248
+ /** ID of an app. */
1249
+ appId?: string;
1250
+ }
1251
+ declare enum WebhookIdentityType$4 {
1252
+ UNKNOWN = "UNKNOWN",
1253
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1254
+ MEMBER = "MEMBER",
1255
+ WIX_USER = "WIX_USER",
1256
+ APP = "APP"
1257
+ }
1258
+ interface GetReferralProgramResponseNonNullableFields {
1259
+ referralProgram?: {
1260
+ status: ProgramStatus;
1261
+ referredFriendReward?: {
1262
+ couponOptions?: {
1263
+ fixedAmountOptions?: {
1264
+ amount: number;
1265
+ };
1266
+ percentageOptions?: {
1267
+ percentage: number;
1268
+ };
1269
+ minimumSubtotal: number;
1270
+ scope?: {
1271
+ namespace: string;
1272
+ group?: {
1273
+ name: string;
1274
+ };
1275
+ };
1276
+ name: string;
1277
+ discountType: DiscountType$2;
1278
+ };
1279
+ loyaltyPointsOptions?: {
1280
+ amount: number;
1281
+ };
1282
+ type: Type$1;
1283
+ };
1284
+ referringCustomerReward?: {
1285
+ couponOptions?: {
1286
+ fixedAmountOptions?: {
1287
+ amount: number;
1288
+ };
1289
+ percentageOptions?: {
1290
+ percentage: number;
1291
+ };
1292
+ minimumSubtotal: number;
1293
+ scope?: {
1294
+ namespace: string;
1295
+ group?: {
1296
+ name: string;
1297
+ };
1298
+ };
1299
+ name: string;
1300
+ discountType: DiscountType$2;
1301
+ };
1302
+ loyaltyPointsOptions?: {
1303
+ amount: number;
1304
+ };
1305
+ type: Type$1;
1306
+ };
1307
+ successfulReferralActions: Action[];
1308
+ isPremium: boolean;
1309
+ emails?: {
1310
+ encourageToReferFriends: App[];
1311
+ notifyCustomersAboutReward: boolean;
1312
+ };
1313
+ };
1314
+ }
1315
+ interface QueryReferralProgramsResponseNonNullableFields {
1316
+ referralPrograms: {
1317
+ status: ProgramStatus;
1318
+ referredFriendReward?: {
1319
+ couponOptions?: {
1320
+ fixedAmountOptions?: {
1321
+ amount: number;
1322
+ };
1323
+ percentageOptions?: {
1324
+ percentage: number;
1325
+ };
1326
+ minimumSubtotal: number;
1327
+ scope?: {
1328
+ namespace: string;
1329
+ group?: {
1330
+ name: string;
1331
+ };
1332
+ };
1333
+ name: string;
1334
+ discountType: DiscountType$2;
1335
+ };
1336
+ loyaltyPointsOptions?: {
1337
+ amount: number;
1338
+ };
1339
+ type: Type$1;
1340
+ };
1341
+ referringCustomerReward?: {
1342
+ couponOptions?: {
1343
+ fixedAmountOptions?: {
1344
+ amount: number;
1345
+ };
1346
+ percentageOptions?: {
1347
+ percentage: number;
1348
+ };
1349
+ minimumSubtotal: number;
1350
+ scope?: {
1351
+ namespace: string;
1352
+ group?: {
1353
+ name: string;
1354
+ };
1355
+ };
1356
+ name: string;
1357
+ discountType: DiscountType$2;
1358
+ };
1359
+ loyaltyPointsOptions?: {
1360
+ amount: number;
1361
+ };
1362
+ type: Type$1;
1363
+ };
1364
+ successfulReferralActions: Action[];
1365
+ isPremium: boolean;
1366
+ emails?: {
1367
+ encourageToReferFriends: App[];
1368
+ notifyCustomersAboutReward: boolean;
1369
+ };
1370
+ }[];
1371
+ }
1372
+ interface UpdateReferralProgramResponseNonNullableFields {
1373
+ referralProgram?: {
1374
+ status: ProgramStatus;
1375
+ referredFriendReward?: {
1376
+ couponOptions?: {
1377
+ fixedAmountOptions?: {
1378
+ amount: number;
1379
+ };
1380
+ percentageOptions?: {
1381
+ percentage: number;
1382
+ };
1383
+ minimumSubtotal: number;
1384
+ scope?: {
1385
+ namespace: string;
1386
+ group?: {
1387
+ name: string;
1388
+ };
1389
+ };
1390
+ name: string;
1391
+ discountType: DiscountType$2;
1392
+ };
1393
+ loyaltyPointsOptions?: {
1394
+ amount: number;
1395
+ };
1396
+ type: Type$1;
1397
+ };
1398
+ referringCustomerReward?: {
1399
+ couponOptions?: {
1400
+ fixedAmountOptions?: {
1401
+ amount: number;
1402
+ };
1403
+ percentageOptions?: {
1404
+ percentage: number;
1405
+ };
1406
+ minimumSubtotal: number;
1407
+ scope?: {
1408
+ namespace: string;
1409
+ group?: {
1410
+ name: string;
1411
+ };
1412
+ };
1413
+ name: string;
1414
+ discountType: DiscountType$2;
1415
+ };
1416
+ loyaltyPointsOptions?: {
1417
+ amount: number;
1418
+ };
1419
+ type: Type$1;
1420
+ };
1421
+ successfulReferralActions: Action[];
1422
+ isPremium: boolean;
1423
+ emails?: {
1424
+ encourageToReferFriends: App[];
1425
+ notifyCustomersAboutReward: boolean;
1426
+ };
1427
+ };
1428
+ }
1429
+ interface ActivateReferralProgramResponseNonNullableFields {
1430
+ referralProgram?: {
1431
+ status: ProgramStatus;
1432
+ referredFriendReward?: {
1433
+ couponOptions?: {
1434
+ fixedAmountOptions?: {
1435
+ amount: number;
1436
+ };
1437
+ percentageOptions?: {
1438
+ percentage: number;
1439
+ };
1440
+ minimumSubtotal: number;
1441
+ scope?: {
1442
+ namespace: string;
1443
+ group?: {
1444
+ name: string;
1445
+ };
1446
+ };
1447
+ name: string;
1448
+ discountType: DiscountType$2;
1449
+ };
1450
+ loyaltyPointsOptions?: {
1451
+ amount: number;
1452
+ };
1453
+ type: Type$1;
1454
+ };
1455
+ referringCustomerReward?: {
1456
+ couponOptions?: {
1457
+ fixedAmountOptions?: {
1458
+ amount: number;
1459
+ };
1460
+ percentageOptions?: {
1461
+ percentage: number;
1462
+ };
1463
+ minimumSubtotal: number;
1464
+ scope?: {
1465
+ namespace: string;
1466
+ group?: {
1467
+ name: string;
1468
+ };
1469
+ };
1470
+ name: string;
1471
+ discountType: DiscountType$2;
1472
+ };
1473
+ loyaltyPointsOptions?: {
1474
+ amount: number;
1475
+ };
1476
+ type: Type$1;
1477
+ };
1478
+ successfulReferralActions: Action[];
1479
+ isPremium: boolean;
1480
+ emails?: {
1481
+ encourageToReferFriends: App[];
1482
+ notifyCustomersAboutReward: boolean;
1483
+ };
1484
+ };
1485
+ }
1486
+ interface PauseReferralProgramResponseNonNullableFields {
1487
+ referralProgram?: {
1488
+ status: ProgramStatus;
1489
+ referredFriendReward?: {
1490
+ couponOptions?: {
1491
+ fixedAmountOptions?: {
1492
+ amount: number;
1493
+ };
1494
+ percentageOptions?: {
1495
+ percentage: number;
1496
+ };
1497
+ minimumSubtotal: number;
1498
+ scope?: {
1499
+ namespace: string;
1500
+ group?: {
1501
+ name: string;
1502
+ };
1503
+ };
1504
+ name: string;
1505
+ discountType: DiscountType$2;
1506
+ };
1507
+ loyaltyPointsOptions?: {
1508
+ amount: number;
1509
+ };
1510
+ type: Type$1;
1511
+ };
1512
+ referringCustomerReward?: {
1513
+ couponOptions?: {
1514
+ fixedAmountOptions?: {
1515
+ amount: number;
1516
+ };
1517
+ percentageOptions?: {
1518
+ percentage: number;
1519
+ };
1520
+ minimumSubtotal: number;
1521
+ scope?: {
1522
+ namespace: string;
1523
+ group?: {
1524
+ name: string;
1525
+ };
1526
+ };
1527
+ name: string;
1528
+ discountType: DiscountType$2;
1529
+ };
1530
+ loyaltyPointsOptions?: {
1531
+ amount: number;
1532
+ };
1533
+ type: Type$1;
1534
+ };
1535
+ successfulReferralActions: Action[];
1536
+ isPremium: boolean;
1537
+ emails?: {
1538
+ encourageToReferFriends: App[];
1539
+ notifyCustomersAboutReward: boolean;
1540
+ };
1541
+ };
1542
+ }
1543
+ interface GetAISocialMediaPostsSuggestionsResponseNonNullableFields {
1544
+ suggestions: {
1545
+ postContent: string;
1546
+ hashtags: string[];
1547
+ }[];
1548
+ }
1549
+ interface GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields {
1550
+ suggestions: {
1551
+ postContent: string;
1552
+ hashtags: string[];
1553
+ }[];
1554
+ }
1555
+ interface GetReferralProgramPremiumFeaturesResponseNonNullableFields {
1556
+ referralProgram: boolean;
1557
+ }
1558
+ interface BaseEventMetadata$3 {
1559
+ /** App instance ID. */
1560
+ instanceId?: string | null;
1561
+ /** Event type. */
1562
+ eventType?: string;
1563
+ /** The identification type and identity data. */
1564
+ identity?: IdentificationData$4;
1565
+ }
1566
+ interface EventMetadata$3 extends BaseEventMetadata$3 {
1567
+ /**
1568
+ * Unique event ID.
1569
+ * Allows clients to ignore duplicate webhooks.
1570
+ */
1571
+ _id?: string;
1572
+ /**
1573
+ * Assumes actions are also always typed to an entity_type
1574
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
1575
+ */
1576
+ entityFqdn?: string;
1577
+ /**
1578
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
1579
+ * This is although the created/updated/deleted notion is duplication of the oneof types
1580
+ * Example: created/updated/deleted/started/completed/email_opened
1581
+ */
1582
+ slug?: string;
1583
+ /** ID of the entity associated with the event. */
1584
+ entityId?: string;
1585
+ /** Event timestamp. */
1586
+ eventTime?: Date;
1587
+ /**
1588
+ * Whether the event was triggered as a result of a privacy regulation application
1589
+ * (for example, GDPR).
1590
+ */
1591
+ triggeredByAnonymizeRequest?: boolean | null;
1592
+ /** If present, indicates the action that triggered the event. */
1593
+ originatedFrom?: string | null;
1594
+ /**
1595
+ * A sequence number defining the order of updates to the underlying entity.
1596
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
1597
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
1598
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
1599
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
1600
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
1601
+ */
1602
+ entityEventSequence?: string | null;
1603
+ }
1604
+ interface ProgramUpdatedEnvelope {
1605
+ entity: ReferralProgram;
1606
+ metadata: EventMetadata$3;
1607
+ }
1608
+ interface QueryCursorResult$3 {
1609
+ cursors: Cursors$4;
1610
+ hasNext: () => boolean;
1611
+ hasPrev: () => boolean;
1612
+ length: number;
1613
+ pageSize: number;
1614
+ }
1615
+ interface ReferralProgramsQueryResult extends QueryCursorResult$3 {
1616
+ items: ReferralProgram[];
1617
+ query: ReferralProgramsQueryBuilder;
1618
+ next: () => Promise<ReferralProgramsQueryResult>;
1619
+ prev: () => Promise<ReferralProgramsQueryResult>;
1620
+ }
1621
+ interface ReferralProgramsQueryBuilder {
1622
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
1623
+ * @documentationMaturity preview
1624
+ */
1625
+ limit: (limit: number) => ReferralProgramsQueryBuilder;
1626
+ /** @param cursor - A pointer to specific record
1627
+ * @documentationMaturity preview
1628
+ */
1629
+ skipTo: (cursor: string) => ReferralProgramsQueryBuilder;
1630
+ /** @documentationMaturity preview */
1631
+ find: () => Promise<ReferralProgramsQueryResult>;
1632
+ }
1633
+ interface GetAiSocialMediaPostsSuggestionsOptions {
1634
+ /** The topic to generate suggestions for. */
1635
+ topic?: string;
1636
+ }
1637
+ interface GenerateAiSocialMediaPostsSuggestionsOptions {
1638
+ /** The topic to generate suggestions for. */
1639
+ topic?: string;
1640
+ }
1641
+
1642
+ interface HttpClient$4 {
1643
+ request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
1644
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
1645
+ }
1646
+ type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
1647
+ type HttpResponse$4<T = any> = {
1648
+ data: T;
1649
+ status: number;
1650
+ statusText: string;
1651
+ headers: any;
1652
+ request?: any;
1653
+ };
1654
+ type RequestOptions$4<_TResponse = any, Data = any> = {
1655
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
1656
+ url: string;
1657
+ data?: Data;
1658
+ params?: URLSearchParams;
1659
+ } & APIMetadata$4;
1660
+ type APIMetadata$4 = {
1661
+ methodFqn?: string;
1662
+ entityFqdn?: string;
1663
+ packageName?: string;
1664
+ };
1665
+ type EventDefinition$3<Payload = unknown, Type extends string = string> = {
1666
+ __type: 'event-definition';
1667
+ type: Type;
1668
+ isDomainEvent?: boolean;
1669
+ transformations?: (envelope: unknown) => Payload;
1670
+ __payload: Payload;
1671
+ };
1672
+ declare function EventDefinition$3<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$3<Payload, Type>;
1673
+
1674
+ declare global {
1675
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1676
+ interface SymbolConstructor {
1677
+ readonly observable: symbol;
1678
+ }
1679
+ }
1680
+
1681
+ declare const __metadata$4: {
1682
+ PACKAGE_NAME: string;
1683
+ };
1684
+ declare function getReferralProgram(httpClient: HttpClient$4): () => Promise<GetReferralProgramResponse & GetReferralProgramResponseNonNullableFields>;
1685
+ declare function queryReferralPrograms(httpClient: HttpClient$4): () => ReferralProgramsQueryBuilder;
1686
+ declare function updateReferralProgram(httpClient: HttpClient$4): (referralProgram: ReferralProgram) => Promise<UpdateReferralProgramResponse & UpdateReferralProgramResponseNonNullableFields>;
1687
+ declare function activateReferralProgram(httpClient: HttpClient$4): () => Promise<ActivateReferralProgramResponse & ActivateReferralProgramResponseNonNullableFields>;
1688
+ declare function pauseReferralProgram(httpClient: HttpClient$4): () => Promise<PauseReferralProgramResponse & PauseReferralProgramResponseNonNullableFields>;
1689
+ declare function getAiSocialMediaPostsSuggestions(httpClient: HttpClient$4): (options?: GetAiSocialMediaPostsSuggestionsOptions) => Promise<GetAISocialMediaPostsSuggestionsResponse & GetAISocialMediaPostsSuggestionsResponseNonNullableFields>;
1690
+ declare function generateAiSocialMediaPostsSuggestions(httpClient: HttpClient$4): (options?: GenerateAiSocialMediaPostsSuggestionsOptions) => Promise<GenerateAISocialMediaPostsSuggestionsResponse & GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields>;
1691
+ declare function getReferralProgramPremiumFeatures(httpClient: HttpClient$4): () => Promise<GetReferralProgramPremiumFeaturesResponse & GetReferralProgramPremiumFeaturesResponseNonNullableFields>;
1692
+ declare const onProgramUpdated: EventDefinition$3<ProgramUpdatedEnvelope, "wix.loyalty.referral.v1.program_updated">;
1693
+
1694
+ type index_d$4_AISocialMediaPostSuggestion = AISocialMediaPostSuggestion;
1695
+ type index_d$4_Action = Action;
1696
+ declare const index_d$4_Action: typeof Action;
1697
+ type index_d$4_ActivateReferralProgramRequest = ActivateReferralProgramRequest;
1698
+ type index_d$4_ActivateReferralProgramResponse = ActivateReferralProgramResponse;
1699
+ type index_d$4_ActivateReferralProgramResponseNonNullableFields = ActivateReferralProgramResponseNonNullableFields;
1700
+ type index_d$4_App = App;
1701
+ declare const index_d$4_App: typeof App;
1702
+ type index_d$4_Asset = Asset;
1703
+ type index_d$4_BillingReference = BillingReference;
1704
+ type index_d$4_BulkGetReferralProgramRequest = BulkGetReferralProgramRequest;
1705
+ type index_d$4_BulkGetReferralProgramResponse = BulkGetReferralProgramResponse;
1706
+ type index_d$4_CancellationDetails = CancellationDetails;
1707
+ type index_d$4_ContractSwitchReason = ContractSwitchReason;
1708
+ declare const index_d$4_ContractSwitchReason: typeof ContractSwitchReason;
1709
+ type index_d$4_ContractSwitchType = ContractSwitchType;
1710
+ declare const index_d$4_ContractSwitchType: typeof ContractSwitchType;
1711
+ type index_d$4_ContractSwitched = ContractSwitched;
1712
+ type index_d$4_Cycle = Cycle;
1713
+ type index_d$4_CycleCycleSelectorOneOf = CycleCycleSelectorOneOf;
1714
+ type index_d$4_DeleteContext = DeleteContext;
1715
+ type index_d$4_DeleteStatus = DeleteStatus;
1716
+ declare const index_d$4_DeleteStatus: typeof DeleteStatus;
1717
+ type index_d$4_Emails = Emails;
1718
+ type index_d$4_GenerateAISocialMediaPostsSuggestionsRequest = GenerateAISocialMediaPostsSuggestionsRequest;
1719
+ type index_d$4_GenerateAISocialMediaPostsSuggestionsResponse = GenerateAISocialMediaPostsSuggestionsResponse;
1720
+ type index_d$4_GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields = GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields;
1721
+ type index_d$4_GenerateAiSocialMediaPostsSuggestionsOptions = GenerateAiSocialMediaPostsSuggestionsOptions;
1722
+ type index_d$4_GetAISocialMediaPostsSuggestionsRequest = GetAISocialMediaPostsSuggestionsRequest;
1723
+ type index_d$4_GetAISocialMediaPostsSuggestionsResponse = GetAISocialMediaPostsSuggestionsResponse;
1724
+ type index_d$4_GetAISocialMediaPostsSuggestionsResponseNonNullableFields = GetAISocialMediaPostsSuggestionsResponseNonNullableFields;
1725
+ type index_d$4_GetAiSocialMediaPostsSuggestionsOptions = GetAiSocialMediaPostsSuggestionsOptions;
1726
+ type index_d$4_GetReferralProgramPremiumFeaturesRequest = GetReferralProgramPremiumFeaturesRequest;
1727
+ type index_d$4_GetReferralProgramPremiumFeaturesResponse = GetReferralProgramPremiumFeaturesResponse;
1728
+ type index_d$4_GetReferralProgramPremiumFeaturesResponseNonNullableFields = GetReferralProgramPremiumFeaturesResponseNonNullableFields;
1729
+ type index_d$4_GetReferralProgramRequest = GetReferralProgramRequest;
1730
+ type index_d$4_GetReferralProgramResponse = GetReferralProgramResponse;
1731
+ type index_d$4_GetReferralProgramResponseNonNullableFields = GetReferralProgramResponseNonNullableFields;
1732
+ type index_d$4_HtmlSitePublished = HtmlSitePublished;
1733
+ type index_d$4_Initiator = Initiator;
1734
+ declare const index_d$4_Initiator: typeof Initiator;
1735
+ type index_d$4_Interval = Interval;
1736
+ type index_d$4_IntervalUnit = IntervalUnit;
1737
+ declare const index_d$4_IntervalUnit: typeof IntervalUnit;
1738
+ type index_d$4_MetaSiteSpecialEvent = MetaSiteSpecialEvent;
1739
+ type index_d$4_MetaSiteSpecialEventPayloadOneOf = MetaSiteSpecialEventPayloadOneOf;
1740
+ type index_d$4_Namespace = Namespace;
1741
+ declare const index_d$4_Namespace: typeof Namespace;
1742
+ type index_d$4_NamespaceChanged = NamespaceChanged;
1743
+ type index_d$4_OneTime = OneTime;
1744
+ type index_d$4_Page = Page;
1745
+ type index_d$4_PauseReferralProgramRequest = PauseReferralProgramRequest;
1746
+ type index_d$4_PauseReferralProgramResponse = PauseReferralProgramResponse;
1747
+ type index_d$4_PauseReferralProgramResponseNonNullableFields = PauseReferralProgramResponseNonNullableFields;
1748
+ type index_d$4_PriceIncreaseTrigger = PriceIncreaseTrigger;
1749
+ declare const index_d$4_PriceIncreaseTrigger: typeof PriceIncreaseTrigger;
1750
+ type index_d$4_ProductAdjustment = ProductAdjustment;
1751
+ declare const index_d$4_ProductAdjustment: typeof ProductAdjustment;
1752
+ type index_d$4_ProductPriceIncreaseData = ProductPriceIncreaseData;
1753
+ type index_d$4_ProgramInSite = ProgramInSite;
1754
+ type index_d$4_ProgramStatus = ProgramStatus;
1755
+ declare const index_d$4_ProgramStatus: typeof ProgramStatus;
1756
+ type index_d$4_ProgramUpdatedEnvelope = ProgramUpdatedEnvelope;
1757
+ type index_d$4_ProviderName = ProviderName;
1758
+ declare const index_d$4_ProviderName: typeof ProviderName;
1759
+ type index_d$4_QueryReferralProgramsRequest = QueryReferralProgramsRequest;
1760
+ type index_d$4_QueryReferralProgramsResponse = QueryReferralProgramsResponse;
1761
+ type index_d$4_QueryReferralProgramsResponseNonNullableFields = QueryReferralProgramsResponseNonNullableFields;
1762
+ type index_d$4_ReactivationData = ReactivationData;
1763
+ type index_d$4_ReactivationReasonEnum = ReactivationReasonEnum;
1764
+ declare const index_d$4_ReactivationReasonEnum: typeof ReactivationReasonEnum;
1765
+ type index_d$4_RecurringChargeSucceeded = RecurringChargeSucceeded;
1766
+ type index_d$4_ReferralProgram = ReferralProgram;
1767
+ type index_d$4_ReferralProgramsQueryBuilder = ReferralProgramsQueryBuilder;
1768
+ type index_d$4_ReferralProgramsQueryResult = ReferralProgramsQueryResult;
1769
+ type index_d$4_ServiceProvisioned = ServiceProvisioned;
1770
+ type index_d$4_ServiceRemoved = ServiceRemoved;
1771
+ type index_d$4_SiteCreated = SiteCreated;
1772
+ type index_d$4_SiteCreatedContext = SiteCreatedContext;
1773
+ declare const index_d$4_SiteCreatedContext: typeof SiteCreatedContext;
1774
+ type index_d$4_SiteDeleted = SiteDeleted;
1775
+ type index_d$4_SiteHardDeleted = SiteHardDeleted;
1776
+ type index_d$4_SiteMarkedAsTemplate = SiteMarkedAsTemplate;
1777
+ type index_d$4_SiteMarkedAsWixSite = SiteMarkedAsWixSite;
1778
+ type index_d$4_SitePublished = SitePublished;
1779
+ type index_d$4_SiteRenamed = SiteRenamed;
1780
+ type index_d$4_SiteTransferred = SiteTransferred;
1781
+ type index_d$4_SiteUndeleted = SiteUndeleted;
1782
+ type index_d$4_SiteUnpublished = SiteUnpublished;
1783
+ type index_d$4_State = State;
1784
+ declare const index_d$4_State: typeof State;
1785
+ type index_d$4_StudioAssigned = StudioAssigned;
1786
+ type index_d$4_StudioUnassigned = StudioUnassigned;
1787
+ type index_d$4_Subscription = Subscription;
1788
+ type index_d$4_SubscriptionAssigned = SubscriptionAssigned;
1789
+ type index_d$4_SubscriptionAutoRenewTurnedOff = SubscriptionAutoRenewTurnedOff;
1790
+ type index_d$4_SubscriptionAutoRenewTurnedOn = SubscriptionAutoRenewTurnedOn;
1791
+ type index_d$4_SubscriptionCancelled = SubscriptionCancelled;
1792
+ type index_d$4_SubscriptionCreated = SubscriptionCreated;
1793
+ type index_d$4_SubscriptionEvent = SubscriptionEvent;
1794
+ type index_d$4_SubscriptionEventEventOneOf = SubscriptionEventEventOneOf;
1795
+ type index_d$4_SubscriptionNearEndOfPeriod = SubscriptionNearEndOfPeriod;
1796
+ type index_d$4_SubscriptionPendingChange = SubscriptionPendingChange;
1797
+ type index_d$4_SubscriptionStatus = SubscriptionStatus;
1798
+ declare const index_d$4_SubscriptionStatus: typeof SubscriptionStatus;
1799
+ type index_d$4_SubscriptionTransferred = SubscriptionTransferred;
1800
+ type index_d$4_SubscriptionUnassigned = SubscriptionUnassigned;
1801
+ type index_d$4_UnassignReason = UnassignReason;
1802
+ declare const index_d$4_UnassignReason: typeof UnassignReason;
1803
+ type index_d$4_UpdateReferralProgramRequest = UpdateReferralProgramRequest;
1804
+ type index_d$4_UpdateReferralProgramResponse = UpdateReferralProgramResponse;
1805
+ type index_d$4_UpdateReferralProgramResponseNonNullableFields = UpdateReferralProgramResponseNonNullableFields;
1806
+ declare const index_d$4_activateReferralProgram: typeof activateReferralProgram;
1807
+ declare const index_d$4_generateAiSocialMediaPostsSuggestions: typeof generateAiSocialMediaPostsSuggestions;
1808
+ declare const index_d$4_getAiSocialMediaPostsSuggestions: typeof getAiSocialMediaPostsSuggestions;
1809
+ declare const index_d$4_getReferralProgram: typeof getReferralProgram;
1810
+ declare const index_d$4_getReferralProgramPremiumFeatures: typeof getReferralProgramPremiumFeatures;
1811
+ declare const index_d$4_onProgramUpdated: typeof onProgramUpdated;
1812
+ declare const index_d$4_pauseReferralProgram: typeof pauseReferralProgram;
1813
+ declare const index_d$4_queryReferralPrograms: typeof queryReferralPrograms;
1814
+ declare const index_d$4_updateReferralProgram: typeof updateReferralProgram;
1815
+ declare namespace index_d$4 {
1816
+ export { type index_d$4_AISocialMediaPostSuggestion as AISocialMediaPostSuggestion, index_d$4_Action as Action, type ActionEvent$4 as ActionEvent, type index_d$4_ActivateReferralProgramRequest as ActivateReferralProgramRequest, type index_d$4_ActivateReferralProgramResponse as ActivateReferralProgramResponse, type index_d$4_ActivateReferralProgramResponseNonNullableFields as ActivateReferralProgramResponseNonNullableFields, index_d$4_App as App, type index_d$4_Asset as Asset, type BaseEventMetadata$3 as BaseEventMetadata, type index_d$4_BillingReference as BillingReference, type index_d$4_BulkGetReferralProgramRequest as BulkGetReferralProgramRequest, type index_d$4_BulkGetReferralProgramResponse as BulkGetReferralProgramResponse, type index_d$4_CancellationDetails as CancellationDetails, index_d$4_ContractSwitchReason as ContractSwitchReason, index_d$4_ContractSwitchType as ContractSwitchType, type index_d$4_ContractSwitched as ContractSwitched, type Coupon$2 as Coupon, type CouponDiscountTypeOptionsOneOf$2 as CouponDiscountTypeOptionsOneOf, type CouponScope$2 as CouponScope, type CouponScopeOrMinSubtotalOneOf$2 as CouponScopeOrMinSubtotalOneOf, type CursorPaging$4 as CursorPaging, type CursorPagingMetadata$4 as CursorPagingMetadata, type CursorQuery$4 as CursorQuery, type CursorQueryPagingMethodOneOf$4 as CursorQueryPagingMethodOneOf, type Cursors$4 as Cursors, type index_d$4_Cycle as Cycle, type index_d$4_CycleCycleSelectorOneOf as CycleCycleSelectorOneOf, type index_d$4_DeleteContext as DeleteContext, index_d$4_DeleteStatus as DeleteStatus, DiscountType$2 as DiscountType, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type index_d$4_Emails as Emails, type Empty$3 as Empty, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type EventMetadata$3 as EventMetadata, type FixedAmountDiscount$2 as FixedAmountDiscount, type index_d$4_GenerateAISocialMediaPostsSuggestionsRequest as GenerateAISocialMediaPostsSuggestionsRequest, type index_d$4_GenerateAISocialMediaPostsSuggestionsResponse as GenerateAISocialMediaPostsSuggestionsResponse, type index_d$4_GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields as GenerateAISocialMediaPostsSuggestionsResponseNonNullableFields, type index_d$4_GenerateAiSocialMediaPostsSuggestionsOptions as GenerateAiSocialMediaPostsSuggestionsOptions, type index_d$4_GetAISocialMediaPostsSuggestionsRequest as GetAISocialMediaPostsSuggestionsRequest, type index_d$4_GetAISocialMediaPostsSuggestionsResponse as GetAISocialMediaPostsSuggestionsResponse, type index_d$4_GetAISocialMediaPostsSuggestionsResponseNonNullableFields as GetAISocialMediaPostsSuggestionsResponseNonNullableFields, type index_d$4_GetAiSocialMediaPostsSuggestionsOptions as GetAiSocialMediaPostsSuggestionsOptions, type index_d$4_GetReferralProgramPremiumFeaturesRequest as GetReferralProgramPremiumFeaturesRequest, type index_d$4_GetReferralProgramPremiumFeaturesResponse as GetReferralProgramPremiumFeaturesResponse, type index_d$4_GetReferralProgramPremiumFeaturesResponseNonNullableFields as GetReferralProgramPremiumFeaturesResponseNonNullableFields, type index_d$4_GetReferralProgramRequest as GetReferralProgramRequest, type index_d$4_GetReferralProgramResponse as GetReferralProgramResponse, type index_d$4_GetReferralProgramResponseNonNullableFields as GetReferralProgramResponseNonNullableFields, type Group$2 as Group, type index_d$4_HtmlSitePublished as HtmlSitePublished, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, index_d$4_Initiator as Initiator, type index_d$4_Interval as Interval, index_d$4_IntervalUnit as IntervalUnit, type LoyaltyPoints$2 as LoyaltyPoints, type MessageEnvelope$4 as MessageEnvelope, type index_d$4_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type index_d$4_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, index_d$4_Namespace as Namespace, type index_d$4_NamespaceChanged as NamespaceChanged, type index_d$4_OneTime as OneTime, type index_d$4_Page as Page, type index_d$4_PauseReferralProgramRequest as PauseReferralProgramRequest, type index_d$4_PauseReferralProgramResponse as PauseReferralProgramResponse, type index_d$4_PauseReferralProgramResponseNonNullableFields as PauseReferralProgramResponseNonNullableFields, type PercentageDiscount$2 as PercentageDiscount, index_d$4_PriceIncreaseTrigger as PriceIncreaseTrigger, index_d$4_ProductAdjustment as ProductAdjustment, type index_d$4_ProductPriceIncreaseData as ProductPriceIncreaseData, type index_d$4_ProgramInSite as ProgramInSite, index_d$4_ProgramStatus as ProgramStatus, type index_d$4_ProgramUpdatedEnvelope as ProgramUpdatedEnvelope, index_d$4_ProviderName as ProviderName, type index_d$4_QueryReferralProgramsRequest as QueryReferralProgramsRequest, type index_d$4_QueryReferralProgramsResponse as QueryReferralProgramsResponse, type index_d$4_QueryReferralProgramsResponseNonNullableFields as QueryReferralProgramsResponseNonNullableFields, type index_d$4_ReactivationData as ReactivationData, index_d$4_ReactivationReasonEnum as ReactivationReasonEnum, type index_d$4_RecurringChargeSucceeded as RecurringChargeSucceeded, type index_d$4_ReferralProgram as ReferralProgram, type index_d$4_ReferralProgramsQueryBuilder as ReferralProgramsQueryBuilder, type index_d$4_ReferralProgramsQueryResult as ReferralProgramsQueryResult, type Reward$2 as Reward, type RewardOptionsOneOf$1 as RewardOptionsOneOf, type index_d$4_ServiceProvisioned as ServiceProvisioned, type index_d$4_ServiceRemoved as ServiceRemoved, type index_d$4_SiteCreated as SiteCreated, index_d$4_SiteCreatedContext as SiteCreatedContext, type index_d$4_SiteDeleted as SiteDeleted, type index_d$4_SiteHardDeleted as SiteHardDeleted, type index_d$4_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type index_d$4_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type index_d$4_SitePublished as SitePublished, type index_d$4_SiteRenamed as SiteRenamed, type index_d$4_SiteTransferred as SiteTransferred, type index_d$4_SiteUndeleted as SiteUndeleted, type index_d$4_SiteUnpublished as SiteUnpublished, SortOrder$4 as SortOrder, type Sorting$4 as Sorting, index_d$4_State as State, type index_d$4_StudioAssigned as StudioAssigned, type index_d$4_StudioUnassigned as StudioUnassigned, type index_d$4_Subscription as Subscription, type index_d$4_SubscriptionAssigned as SubscriptionAssigned, type index_d$4_SubscriptionAutoRenewTurnedOff as SubscriptionAutoRenewTurnedOff, type index_d$4_SubscriptionAutoRenewTurnedOn as SubscriptionAutoRenewTurnedOn, type index_d$4_SubscriptionCancelled as SubscriptionCancelled, type index_d$4_SubscriptionCreated as SubscriptionCreated, type index_d$4_SubscriptionEvent as SubscriptionEvent, type index_d$4_SubscriptionEventEventOneOf as SubscriptionEventEventOneOf, type index_d$4_SubscriptionNearEndOfPeriod as SubscriptionNearEndOfPeriod, type index_d$4_SubscriptionPendingChange as SubscriptionPendingChange, index_d$4_SubscriptionStatus as SubscriptionStatus, type index_d$4_SubscriptionTransferred as SubscriptionTransferred, type index_d$4_SubscriptionUnassigned as SubscriptionUnassigned, Type$1 as Type, index_d$4_UnassignReason as UnassignReason, type UndeleteInfo$4 as UndeleteInfo, type index_d$4_UpdateReferralProgramRequest as UpdateReferralProgramRequest, type index_d$4_UpdateReferralProgramResponse as UpdateReferralProgramResponse, type index_d$4_UpdateReferralProgramResponseNonNullableFields as UpdateReferralProgramResponseNonNullableFields, WebhookIdentityType$4 as WebhookIdentityType, __metadata$4 as __metadata, index_d$4_activateReferralProgram as activateReferralProgram, index_d$4_generateAiSocialMediaPostsSuggestions as generateAiSocialMediaPostsSuggestions, index_d$4_getAiSocialMediaPostsSuggestions as getAiSocialMediaPostsSuggestions, index_d$4_getReferralProgram as getReferralProgram, index_d$4_getReferralProgramPremiumFeatures as getReferralProgramPremiumFeatures, index_d$4_onProgramUpdated as onProgramUpdated, index_d$4_pauseReferralProgram as pauseReferralProgram, index_d$4_queryReferralPrograms as queryReferralPrograms, index_d$4_updateReferralProgram as updateReferralProgram };
1817
+ }
1818
+
1
1819
  /** ReferralEvent. */
2
1820
  interface ReferralEvent extends ReferralEventEventTypeOneOf {
3
1821
  /** ReferredFriendSignupEvent is an event that is triggered when a referred friend signs up. */
@@ -346,17 +2164,17 @@ declare enum Status$2 {
346
2164
  DELETED = "DELETED"
347
2165
  }
348
2166
  interface Coupon$1 extends CouponDiscountTypeOptionsOneOf$1, CouponScopeOrMinSubtotalOneOf$1 {
349
- /** Options for fixed amount discount type */
2167
+ /** Options for fixed amount discount type. */
350
2168
  fixedAmountOptions?: FixedAmountDiscount$1;
351
- /** Options for percentage discount type */
2169
+ /** Options for percentage discount type. */
352
2170
  percentageOptions?: PercentageDiscount$1;
353
2171
  /** Limit the coupon to carts with a subtotal above this number. */
354
2172
  minimumSubtotal?: number;
355
2173
  /** Specifies the type of line items this coupon will apply to. */
356
2174
  scope?: CouponScope$1;
357
- /** Coupon name */
2175
+ /** Coupon name. */
358
2176
  name?: string;
359
- /** Coupon discount type */
2177
+ /** Coupon discount type. */
360
2178
  discountType?: DiscountType$1;
361
2179
  /** Limit the coupon to only apply to one item in cart. */
362
2180
  limitedToOneItem?: boolean | null;
@@ -367,9 +2185,9 @@ interface Coupon$1 extends CouponDiscountTypeOptionsOneOf$1, CouponScopeOrMinSub
367
2185
  }
368
2186
  /** @oneof */
369
2187
  interface CouponDiscountTypeOptionsOneOf$1 {
370
- /** Options for fixed amount discount type */
2188
+ /** Options for fixed amount discount type. */
371
2189
  fixedAmountOptions?: FixedAmountDiscount$1;
372
- /** Options for percentage discount type */
2190
+ /** Options for percentage discount type. */
373
2191
  percentageOptions?: PercentageDiscount$1;
374
2192
  }
375
2193
  /** @oneof */
@@ -380,27 +2198,33 @@ interface CouponScopeOrMinSubtotalOneOf$1 {
380
2198
  scope?: CouponScope$1;
381
2199
  }
382
2200
  declare enum DiscountType$1 {
2201
+ /** Unknown discount type. */
383
2202
  UNKNOWN = "UNKNOWN",
384
- /** Discount as a fixed amount */
2203
+ /** Discount as a fixed amount. */
385
2204
  FIXED_AMOUNT = "FIXED_AMOUNT",
386
- /** Discount as a percentage */
2205
+ /** Discount as a percentage. */
387
2206
  PERCENTAGE = "PERCENTAGE",
388
- /** Free shipping */
2207
+ /** Free shipping. */
389
2208
  FREE_SHIPPING = "FREE_SHIPPING"
390
2209
  }
391
2210
  interface FixedAmountDiscount$1 {
392
- /** Fixed amount to discount */
2211
+ /** Fixed amount to discount. */
393
2212
  amount?: number;
394
2213
  }
395
2214
  interface PercentageDiscount$1 {
2215
+ /** Percentage to discount. */
396
2216
  percentage?: number;
397
2217
  }
398
2218
  interface CouponScope$1 {
2219
+ /** Namespace of the coupon scope. */
399
2220
  namespace?: string;
2221
+ /** Group of the coupon scope. */
400
2222
  group?: Group$1;
401
2223
  }
402
2224
  interface Group$1 {
2225
+ /** Name of the group. */
403
2226
  name?: string;
2227
+ /** Entity ID of the group. */
404
2228
  entityId?: string | null;
405
2229
  }
406
2230
  interface LoyaltyPoints$1 {
@@ -2648,4 +4472,4 @@ declare namespace index_d {
2648
4472
  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 };
2649
4473
  }
2650
4474
 
2651
- export { index_d as customers, index_d$1 as friends, index_d$2 as rewards, index_d$3 as tracker };
4475
+ export { index_d as customers, index_d$1 as friends, index_d$4 as programs, index_d$2 as rewards, index_d$3 as tracker };