@wix/auto_sdk_loyalty_programs 1.0.15 → 1.0.17

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.
Files changed (133) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/loyalty-v1-program-programs.context.d.ts +18 -0
  11. package/build/cjs/src/loyalty-v1-program-programs.context.js +30 -0
  12. package/build/cjs/src/loyalty-v1-program-programs.context.js.map +1 -0
  13. package/build/cjs/src/loyalty-v1-program-programs.http.d.ts +49 -0
  14. package/build/cjs/src/loyalty-v1-program-programs.http.js +417 -0
  15. package/build/cjs/src/loyalty-v1-program-programs.http.js.map +1 -0
  16. package/build/cjs/src/loyalty-v1-program-programs.meta.d.ts +20 -0
  17. package/build/cjs/src/loyalty-v1-program-programs.meta.js +180 -0
  18. package/build/cjs/src/loyalty-v1-program-programs.meta.js.map +1 -0
  19. package/build/cjs/src/loyalty-v1-program-programs.public.d.ts +88 -0
  20. package/build/cjs/src/loyalty-v1-program-programs.public.js +83 -0
  21. package/build/cjs/src/loyalty-v1-program-programs.public.js.map +1 -0
  22. package/build/{internal/loyalty-v1-program-programs.universal-CCZ90Kwf.d.mts → cjs/src/loyalty-v1-program-programs.types.d.ts} +142 -175
  23. package/build/cjs/src/loyalty-v1-program-programs.types.js +174 -0
  24. package/build/cjs/src/loyalty-v1-program-programs.types.js.map +1 -0
  25. package/build/cjs/src/loyalty-v1-program-programs.universal.d.ts +1474 -0
  26. package/build/cjs/src/loyalty-v1-program-programs.universal.js +537 -0
  27. package/build/cjs/src/loyalty-v1-program-programs.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/src/loyalty-v1-program-programs.context.d.ts +18 -0
  38. package/build/es/src/loyalty-v1-program-programs.context.js +18 -0
  39. package/build/es/src/loyalty-v1-program-programs.context.js.map +1 -0
  40. package/build/es/src/loyalty-v1-program-programs.http.d.ts +49 -0
  41. package/build/es/src/loyalty-v1-program-programs.http.js +406 -0
  42. package/build/es/src/loyalty-v1-program-programs.http.js.map +1 -0
  43. package/build/es/src/loyalty-v1-program-programs.meta.d.ts +20 -0
  44. package/build/es/src/loyalty-v1-program-programs.meta.js +146 -0
  45. package/build/es/src/loyalty-v1-program-programs.meta.js.map +1 -0
  46. package/build/es/src/loyalty-v1-program-programs.public.d.ts +88 -0
  47. package/build/es/src/loyalty-v1-program-programs.public.js +63 -0
  48. package/build/es/src/loyalty-v1-program-programs.public.js.map +1 -0
  49. package/build/{loyalty-v1-program-programs.universal-CCZ90Kwf.d.ts → es/src/loyalty-v1-program-programs.types.d.ts} +142 -175
  50. package/build/es/src/loyalty-v1-program-programs.types.js +171 -0
  51. package/build/es/src/loyalty-v1-program-programs.types.js.map +1 -0
  52. package/build/es/src/loyalty-v1-program-programs.universal.d.ts +1474 -0
  53. package/build/es/src/loyalty-v1-program-programs.universal.js +503 -0
  54. package/build/es/src/loyalty-v1-program-programs.universal.js.map +1 -0
  55. package/build/internal/cjs/index.d.ts +1 -0
  56. package/build/internal/cjs/index.js +18 -0
  57. package/build/internal/cjs/index.js.map +1 -0
  58. package/build/internal/cjs/index.typings.d.ts +1 -0
  59. package/build/internal/cjs/index.typings.js +18 -0
  60. package/build/internal/cjs/index.typings.js.map +1 -0
  61. package/build/internal/cjs/meta.d.ts +1 -0
  62. package/build/internal/cjs/meta.js +18 -0
  63. package/build/internal/cjs/meta.js.map +1 -0
  64. package/build/internal/cjs/src/loyalty-v1-program-programs.context.d.ts +18 -0
  65. package/build/internal/cjs/src/loyalty-v1-program-programs.context.js +30 -0
  66. package/build/internal/cjs/src/loyalty-v1-program-programs.context.js.map +1 -0
  67. package/build/internal/cjs/src/loyalty-v1-program-programs.http.d.ts +49 -0
  68. package/build/internal/cjs/src/loyalty-v1-program-programs.http.js +417 -0
  69. package/build/internal/cjs/src/loyalty-v1-program-programs.http.js.map +1 -0
  70. package/build/internal/cjs/src/loyalty-v1-program-programs.meta.d.ts +20 -0
  71. package/build/internal/cjs/src/loyalty-v1-program-programs.meta.js +180 -0
  72. package/build/internal/cjs/src/loyalty-v1-program-programs.meta.js.map +1 -0
  73. package/build/internal/cjs/src/loyalty-v1-program-programs.public.d.ts +88 -0
  74. package/build/internal/cjs/src/loyalty-v1-program-programs.public.js +83 -0
  75. package/build/internal/cjs/src/loyalty-v1-program-programs.public.js.map +1 -0
  76. package/build/{loyalty-v1-program-programs.universal-CCZ90Kwf.d.mts → internal/cjs/src/loyalty-v1-program-programs.types.d.ts} +142 -175
  77. package/build/internal/cjs/src/loyalty-v1-program-programs.types.js +174 -0
  78. package/build/internal/cjs/src/loyalty-v1-program-programs.types.js.map +1 -0
  79. package/build/internal/cjs/src/loyalty-v1-program-programs.universal.d.ts +1474 -0
  80. package/build/internal/cjs/src/loyalty-v1-program-programs.universal.js +537 -0
  81. package/build/internal/cjs/src/loyalty-v1-program-programs.universal.js.map +1 -0
  82. package/build/internal/es/index.d.ts +1 -0
  83. package/build/internal/es/index.js +2 -0
  84. package/build/internal/es/index.js.map +1 -0
  85. package/build/internal/es/index.typings.d.ts +1 -0
  86. package/build/internal/es/index.typings.js +2 -0
  87. package/build/internal/es/index.typings.js.map +1 -0
  88. package/build/internal/es/meta.d.ts +1 -0
  89. package/build/internal/es/meta.js +2 -0
  90. package/build/internal/es/meta.js.map +1 -0
  91. package/build/internal/es/src/loyalty-v1-program-programs.context.d.ts +18 -0
  92. package/build/internal/es/src/loyalty-v1-program-programs.context.js +18 -0
  93. package/build/internal/es/src/loyalty-v1-program-programs.context.js.map +1 -0
  94. package/build/internal/es/src/loyalty-v1-program-programs.http.d.ts +49 -0
  95. package/build/internal/es/src/loyalty-v1-program-programs.http.js +406 -0
  96. package/build/internal/es/src/loyalty-v1-program-programs.http.js.map +1 -0
  97. package/build/internal/es/src/loyalty-v1-program-programs.meta.d.ts +20 -0
  98. package/build/internal/es/src/loyalty-v1-program-programs.meta.js +146 -0
  99. package/build/internal/es/src/loyalty-v1-program-programs.meta.js.map +1 -0
  100. package/build/internal/es/src/loyalty-v1-program-programs.public.d.ts +88 -0
  101. package/build/internal/es/src/loyalty-v1-program-programs.public.js +63 -0
  102. package/build/internal/es/src/loyalty-v1-program-programs.public.js.map +1 -0
  103. package/build/internal/{loyalty-v1-program-programs.universal-CCZ90Kwf.d.ts → es/src/loyalty-v1-program-programs.types.d.ts} +142 -175
  104. package/build/internal/es/src/loyalty-v1-program-programs.types.js +171 -0
  105. package/build/internal/es/src/loyalty-v1-program-programs.types.js.map +1 -0
  106. package/build/internal/es/src/loyalty-v1-program-programs.universal.d.ts +1474 -0
  107. package/build/internal/es/src/loyalty-v1-program-programs.universal.js +503 -0
  108. package/build/internal/es/src/loyalty-v1-program-programs.universal.js.map +1 -0
  109. package/package.json +11 -12
  110. package/build/index.d.mts +0 -101
  111. package/build/index.d.ts +0 -101
  112. package/build/index.js +0 -874
  113. package/build/index.js.map +0 -1
  114. package/build/index.mjs +0 -833
  115. package/build/index.mjs.map +0 -1
  116. package/build/internal/index.d.mts +0 -101
  117. package/build/internal/index.d.ts +0 -101
  118. package/build/internal/index.js +0 -874
  119. package/build/internal/index.js.map +0 -1
  120. package/build/internal/index.mjs +0 -833
  121. package/build/internal/index.mjs.map +0 -1
  122. package/build/internal/meta.d.mts +0 -226
  123. package/build/internal/meta.d.ts +0 -226
  124. package/build/internal/meta.js +0 -557
  125. package/build/internal/meta.js.map +0 -1
  126. package/build/internal/meta.mjs +0 -523
  127. package/build/internal/meta.mjs.map +0 -1
  128. package/build/meta.d.mts +0 -226
  129. package/build/meta.d.ts +0 -226
  130. package/build/meta.js +0 -557
  131. package/build/meta.js.map +0 -1
  132. package/build/meta.mjs +0 -523
  133. package/build/meta.mjs.map +0 -1
@@ -0,0 +1,1474 @@
1
+ import { NonNullablePaths } from '@wix/sdk-types';
2
+ /**
3
+ * A loyalty program allows sites to maintain customer reward accounts. Site owners can create a
4
+ * loyalty program to increase customer retention. Read more about the loyalty program in
5
+ * [this overview](https://support.wix.com/en/article/wix-loyalty-program-an-overview).
6
+ */
7
+ export interface LoyaltyProgram {
8
+ /**
9
+ * Program name.
10
+ * @minLength 2
11
+ * @maxLength 50
12
+ */
13
+ name?: string | null;
14
+ /** Information about the program's collectible entity. */
15
+ pointDefinition?: PointDefinition;
16
+ /**
17
+ * Program status. Customers can only earn or redeem points while the program is `ACTIVE`.
18
+ *
19
+ * Default: `"DRAFT"`
20
+ * @readonly
21
+ */
22
+ status?: ProgramStatus;
23
+ /**
24
+ * Date and time the program was created.
25
+ * @readonly
26
+ */
27
+ _createdDate?: Date | null;
28
+ /**
29
+ * Date and time the program was updated.
30
+ * @readonly
31
+ */
32
+ _updatedDate?: Date | null;
33
+ /** Configuration for the points expiration feature. */
34
+ pointsExpiration?: PointsExpiration;
35
+ /**
36
+ * Information about the available program premium features.
37
+ * @readonly
38
+ */
39
+ premiumFeatures?: PremiumFeatures;
40
+ }
41
+ export interface PointDefinition {
42
+ /**
43
+ * Display name for the program's collectible unit.
44
+ *
45
+ * It's recommended to use a plural, for example `Stars`.
46
+ *
47
+ * In contrast to a custom name, the default `"Points"` name is translated and adjusted to singular based on circumstances.
48
+ *
49
+ * Default: `Points`.
50
+ * @maxLength 20
51
+ */
52
+ customName?: string | null;
53
+ /** Image URL. See [Image]($w/image/introduction) for more information on URL formats for images. */
54
+ icon?: string;
55
+ }
56
+ export interface FocalPoint {
57
+ /** X-coordinate of the focal point. */
58
+ x?: number;
59
+ /** Y-coordinate of the focal point. */
60
+ y?: number;
61
+ /** crop by height */
62
+ height?: number | null;
63
+ /** crop by width */
64
+ width?: number | null;
65
+ }
66
+ export declare enum ProgramStatus {
67
+ /** Unknown program status. */
68
+ UNKNOWN = "UNKNOWN",
69
+ /** Program was created but is not enabled yet. */
70
+ DRAFT = "DRAFT",
71
+ /** Program is active. */
72
+ ACTIVE = "ACTIVE",
73
+ /** Program was manually disabled by the user. This action can be reverted, meaning the user can set it to be active again. */
74
+ PAUSED = "PAUSED"
75
+ }
76
+ export interface PointsExpiration {
77
+ /**
78
+ * Status of the points expiration feature.
79
+ * @readonly
80
+ */
81
+ status?: Status;
82
+ /**
83
+ * How many months a member should be inactive to lose the collected points.
84
+ * @min 1
85
+ * @max 12
86
+ */
87
+ monthsOfInactivity?: number;
88
+ /**
89
+ * Percentage of points that a member loses after being inactive.
90
+ * @min 1
91
+ * @max 100
92
+ */
93
+ expiringPointsPercentage?: number;
94
+ }
95
+ export declare enum Status {
96
+ /** Unknown points expiration status. This value is not used. */
97
+ UNKNOWN_STATUS = "UNKNOWN_STATUS",
98
+ /** Points expiration feature is disabled. */
99
+ DISABLED = "DISABLED",
100
+ /** Points expiration feature is enabled. */
101
+ ENABLED = "ENABLED"
102
+ }
103
+ export interface PremiumFeatures {
104
+ /**
105
+ * Whether there are any loyalty program premium features.
106
+ * @readonly
107
+ */
108
+ loyaltyProgram?: boolean;
109
+ /**
110
+ * Whether this loyalty program includes tiers.
111
+ * @readonly
112
+ */
113
+ tiers?: boolean;
114
+ /**
115
+ * Whether this loyalty program includes point expiration.
116
+ * @readonly
117
+ */
118
+ pointsExpiration?: boolean;
119
+ }
120
+ export interface SocialMediaSettings {
121
+ /**
122
+ * List of social media channels
123
+ * @maxSize 5
124
+ */
125
+ channels?: SocialMediaChannel[];
126
+ }
127
+ export interface SocialMediaChannel {
128
+ /** Social media channel type */
129
+ type?: Type;
130
+ /** Enable or disable social media channel */
131
+ enabled?: boolean;
132
+ /**
133
+ * Social media channel ID. For example, Instagram username.
134
+ * @minLength 1
135
+ * @maxLength 255
136
+ */
137
+ _id?: string;
138
+ /**
139
+ * Social media channel URL
140
+ * @readonly
141
+ * @format WEB_URL
142
+ */
143
+ url?: string | null;
144
+ }
145
+ export declare enum Type {
146
+ /** Unknown social media channel type. */
147
+ UNKNOWN_CHANNEL = "UNKNOWN_CHANNEL",
148
+ /** Facebook social media channel. */
149
+ FACEBOOK = "FACEBOOK",
150
+ /** Instagram social media channel. */
151
+ INSTAGRAM = "INSTAGRAM",
152
+ /** LinkedIn social media channel. */
153
+ LINKEDIN = "LINKEDIN",
154
+ /** X social media channel. */
155
+ X = "X",
156
+ /** TikTok social media channel. */
157
+ TIKTOK = "TIKTOK"
158
+ }
159
+ export interface GetLoyaltyProgramRequest {
160
+ }
161
+ export interface GetLoyaltyProgramResponse {
162
+ /** Retrieved loyalty program. */
163
+ loyaltyProgram?: LoyaltyProgram;
164
+ }
165
+ export interface BulkGetLoyaltyProgramRequest {
166
+ }
167
+ export interface BulkGetLoyaltyProgramResponse {
168
+ /** Retrieved loyalty programs. */
169
+ programInSites?: ProgramInSite[];
170
+ }
171
+ export interface ProgramInSite {
172
+ /**
173
+ * Metasite ID.
174
+ * @format GUID
175
+ */
176
+ metaSiteId?: string;
177
+ /** Loyalty program. */
178
+ loyaltyProgram?: LoyaltyProgram;
179
+ }
180
+ export interface UpdateLoyaltyProgramRequest {
181
+ /** Loyalty program fields to update. */
182
+ loyaltyProgram: LoyaltyProgram;
183
+ }
184
+ export interface UpdateLoyaltyProgramResponse {
185
+ /** Updated loyalty program. */
186
+ loyaltyProgram?: LoyaltyProgram;
187
+ }
188
+ export interface PointsExpirationConfigurationChanged {
189
+ /** Loyalty program. */
190
+ loyaltyProgram?: LoyaltyProgram;
191
+ /** Points expiration configuration changes */
192
+ pointsExpirationChanges?: PointsExpirationChanges;
193
+ }
194
+ export interface PointsExpirationChanges {
195
+ monthsOfInactivity?: number | null;
196
+ expiringPointsPercentage?: number | null;
197
+ }
198
+ export interface ActivateLoyaltyProgramRequest {
199
+ }
200
+ export interface ActivateLoyaltyProgramResponse {
201
+ /** Activated loyalty program. */
202
+ loyaltyProgram?: LoyaltyProgram;
203
+ }
204
+ export interface LoyaltyProgramActivated {
205
+ /** Activated loyalty program. */
206
+ loyaltyProgram?: LoyaltyProgram;
207
+ }
208
+ export interface PauseLoyaltyProgramRequest {
209
+ }
210
+ export interface PauseLoyaltyProgramResponse {
211
+ /** Paused loyalty program. */
212
+ loyaltyProgram?: LoyaltyProgram;
213
+ }
214
+ export interface GetLoyaltyProgramDescriptionRequest {
215
+ /**
216
+ * List of description fields to retrieve. Supported values: `description`, `updatedDate`.
217
+ * @maxSize 2
218
+ */
219
+ fields?: string[];
220
+ }
221
+ export interface GetLoyaltyProgramDescriptionResponse {
222
+ /** Retrieved loyalty program description. */
223
+ description?: string | null;
224
+ /** Date and time of the latest description update. */
225
+ _updatedDate?: Date | null;
226
+ }
227
+ export interface UpdateLoyaltyProgramDescriptionRequest {
228
+ /**
229
+ * Loyalty program description to update.
230
+ * @minLength 1
231
+ * @maxLength 1000000
232
+ */
233
+ description?: string;
234
+ }
235
+ export interface UpdateLoyaltyProgramDescriptionResponse {
236
+ }
237
+ export interface LoyaltyProgramDescriptionUpdated {
238
+ }
239
+ export interface GetLoyaltyProgramPremiumFeaturesRequest {
240
+ }
241
+ export interface GetLoyaltyProgramPremiumFeaturesResponse {
242
+ /**
243
+ * Whether there are any loyalty program premium features.
244
+ * @readonly
245
+ */
246
+ loyaltyProgram?: boolean;
247
+ /**
248
+ * Whether this loyalty program includes tiers.
249
+ * @readonly
250
+ */
251
+ tiers?: boolean;
252
+ /**
253
+ * Whether this loyalty program includes point expiration.
254
+ * @readonly
255
+ */
256
+ pointsExpiration?: boolean;
257
+ }
258
+ export interface EnablePointsExpirationRequest {
259
+ }
260
+ export interface EnablePointsExpirationResponse {
261
+ /** Loyalty program with enabled points expiration feature. */
262
+ loyaltyProgram?: LoyaltyProgram;
263
+ }
264
+ export interface PointsExpirationEnabled {
265
+ /** Loyalty program. */
266
+ loyaltyProgram?: LoyaltyProgram;
267
+ }
268
+ export interface DisablePointsExpirationRequest {
269
+ }
270
+ export interface DisablePointsExpirationResponse {
271
+ /** Loyalty program with disabled points expiration feature. */
272
+ loyaltyProgram?: LoyaltyProgram;
273
+ }
274
+ export interface PointsExpirationDisabled {
275
+ /** Loyalty program. */
276
+ loyaltyProgram?: LoyaltyProgram;
277
+ }
278
+ export interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
279
+ /** Emitted on a meta site creation. */
280
+ siteCreated?: SiteCreated;
281
+ /** Emitted on a meta site transfer completion. */
282
+ siteTransferred?: SiteTransferred;
283
+ /** Emitted on a meta site deletion. */
284
+ siteDeleted?: SiteDeleted;
285
+ /** Emitted on a meta site restoration. */
286
+ siteUndeleted?: SiteUndeleted;
287
+ /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
288
+ sitePublished?: SitePublished;
289
+ /** Emitted on a meta site unpublish. */
290
+ siteUnpublished?: SiteUnpublished;
291
+ /** Emitted when meta site is marked as template. */
292
+ siteMarkedAsTemplate?: SiteMarkedAsTemplate;
293
+ /** Emitted when meta site is marked as a WixSite. */
294
+ siteMarkedAsWixSite?: SiteMarkedAsWixSite;
295
+ /** Emitted when an application is provisioned (installed). */
296
+ serviceProvisioned?: ServiceProvisioned;
297
+ /** Emitted when an application is removed (uninstalled). */
298
+ serviceRemoved?: ServiceRemoved;
299
+ /** Emitted when meta site name (URL slug) is changed. */
300
+ siteRenamedPayload?: SiteRenamed;
301
+ /** Emitted when meta site was permanently deleted. */
302
+ hardDeleted?: SiteHardDeleted;
303
+ /** Emitted on a namespace change. */
304
+ namespaceChanged?: NamespaceChanged;
305
+ /** Emitted when Studio is attached. */
306
+ studioAssigned?: StudioAssigned;
307
+ /** Emitted when Studio is detached. */
308
+ studioUnassigned?: StudioUnassigned;
309
+ /**
310
+ * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch
311
+ * the actual URL.
312
+ *
313
+ * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT
314
+ * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459
315
+ */
316
+ urlChanged?: SiteUrlChanged;
317
+ /** Site is marked as PurgedExternally */
318
+ sitePurgedExternally?: SitePurgedExternally;
319
+ /**
320
+ * A meta site id.
321
+ * @format GUID
322
+ */
323
+ metaSiteId?: string;
324
+ /** A meta site version. Monotonically increasing. */
325
+ version?: string;
326
+ /** A timestamp of the event. */
327
+ timestamp?: string;
328
+ /**
329
+ * TODO(meta-site): Change validation once validations are disabled for consumers
330
+ * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
331
+ * @maxSize 4000
332
+ */
333
+ assets?: Asset[];
334
+ }
335
+ /** @oneof */
336
+ export interface MetaSiteSpecialEventPayloadOneOf {
337
+ /** Emitted on a meta site creation. */
338
+ siteCreated?: SiteCreated;
339
+ /** Emitted on a meta site transfer completion. */
340
+ siteTransferred?: SiteTransferred;
341
+ /** Emitted on a meta site deletion. */
342
+ siteDeleted?: SiteDeleted;
343
+ /** Emitted on a meta site restoration. */
344
+ siteUndeleted?: SiteUndeleted;
345
+ /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
346
+ sitePublished?: SitePublished;
347
+ /** Emitted on a meta site unpublish. */
348
+ siteUnpublished?: SiteUnpublished;
349
+ /** Emitted when meta site is marked as template. */
350
+ siteMarkedAsTemplate?: SiteMarkedAsTemplate;
351
+ /** Emitted when meta site is marked as a WixSite. */
352
+ siteMarkedAsWixSite?: SiteMarkedAsWixSite;
353
+ /** Emitted when an application is provisioned (installed). */
354
+ serviceProvisioned?: ServiceProvisioned;
355
+ /** Emitted when an application is removed (uninstalled). */
356
+ serviceRemoved?: ServiceRemoved;
357
+ /** Emitted when meta site name (URL slug) is changed. */
358
+ siteRenamedPayload?: SiteRenamed;
359
+ /** Emitted when meta site was permanently deleted. */
360
+ hardDeleted?: SiteHardDeleted;
361
+ /** Emitted on a namespace change. */
362
+ namespaceChanged?: NamespaceChanged;
363
+ /** Emitted when Studio is attached. */
364
+ studioAssigned?: StudioAssigned;
365
+ /** Emitted when Studio is detached. */
366
+ studioUnassigned?: StudioUnassigned;
367
+ /**
368
+ * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch
369
+ * the actual URL.
370
+ *
371
+ * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT
372
+ * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459
373
+ */
374
+ urlChanged?: SiteUrlChanged;
375
+ /** Site is marked as PurgedExternally */
376
+ sitePurgedExternally?: SitePurgedExternally;
377
+ }
378
+ export interface Asset {
379
+ /**
380
+ * An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).
381
+ * @maxLength 36
382
+ */
383
+ appDefId?: string;
384
+ /**
385
+ * An instance id. For legacy reasons may be UUID or a string.
386
+ * @maxLength 200
387
+ */
388
+ instanceId?: string;
389
+ /** An application state. */
390
+ state?: State;
391
+ }
392
+ export declare enum State {
393
+ UNKNOWN = "UNKNOWN",
394
+ ENABLED = "ENABLED",
395
+ DISABLED = "DISABLED",
396
+ PENDING = "PENDING",
397
+ DEMO = "DEMO"
398
+ }
399
+ export interface SiteCreated {
400
+ /**
401
+ * A template identifier (empty if not created from a template).
402
+ * @maxLength 36
403
+ */
404
+ originTemplateId?: string;
405
+ /**
406
+ * An account id of the owner.
407
+ * @format GUID
408
+ */
409
+ ownerId?: string;
410
+ /** A context in which meta site was created. */
411
+ context?: SiteCreatedContext;
412
+ /**
413
+ * A meta site id from which this site was created.
414
+ *
415
+ * In case of a creation from a template it's a template id.
416
+ * In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
417
+ * @format GUID
418
+ */
419
+ originMetaSiteId?: string | null;
420
+ /**
421
+ * A meta site name (URL slug).
422
+ * @maxLength 20
423
+ */
424
+ siteName?: string;
425
+ /** A namespace. */
426
+ namespace?: Namespace;
427
+ }
428
+ export declare enum SiteCreatedContext {
429
+ /** A valid option, we don't expose all reasons why site might be created. */
430
+ OTHER = "OTHER",
431
+ /** A meta site was created from template. */
432
+ FROM_TEMPLATE = "FROM_TEMPLATE",
433
+ /** A meta site was created by copying of the transfferred meta site. */
434
+ DUPLICATE_BY_SITE_TRANSFER = "DUPLICATE_BY_SITE_TRANSFER",
435
+ /** A copy of existing meta site. */
436
+ DUPLICATE = "DUPLICATE",
437
+ /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
438
+ OLD_SITE_TRANSFER = "OLD_SITE_TRANSFER",
439
+ /** deprecated A meta site was created for Flash editor. */
440
+ FLASH = "FLASH"
441
+ }
442
+ export declare enum Namespace {
443
+ UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
444
+ /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
445
+ WIX = "WIX",
446
+ /** 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. */
447
+ SHOUT_OUT = "SHOUT_OUT",
448
+ /** 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. */
449
+ ALBUMS = "ALBUMS",
450
+ /** 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. */
451
+ WIX_STORES_TEST_DRIVE = "WIX_STORES_TEST_DRIVE",
452
+ /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
453
+ HOTELS = "HOTELS",
454
+ /** 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. */
455
+ CLUBS = "CLUBS",
456
+ /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
457
+ ONBOARDING_DRAFT = "ONBOARDING_DRAFT",
458
+ /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
459
+ DEV_SITE = "DEV_SITE",
460
+ /** 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. */
461
+ LOGOS = "LOGOS",
462
+ /** 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. */
463
+ VIDEO_MAKER = "VIDEO_MAKER",
464
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
465
+ PARTNER_DASHBOARD = "PARTNER_DASHBOARD",
466
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
467
+ DEV_CENTER_COMPANY = "DEV_CENTER_COMPANY",
468
+ /**
469
+ * A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
470
+ *
471
+ * Meta site with this namespace will *not* be shown in a user's site list by default.
472
+ */
473
+ HTML_DRAFT = "HTML_DRAFT",
474
+ /**
475
+ * the user-journey for Fitness users who want to start from managing their business instead of designing their website.
476
+ * Will be accessible from Site List and will not have a website app.
477
+ * Once the user attaches a site, the site will become a regular wixsite.
478
+ */
479
+ SITELESS_BUSINESS = "SITELESS_BUSINESS",
480
+ /** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
481
+ CREATOR_ECONOMY = "CREATOR_ECONOMY",
482
+ /** It is to be used in the Business First efforts. */
483
+ DASHBOARD_FIRST = "DASHBOARD_FIRST",
484
+ /** Bookings business flow with no site. */
485
+ ANYWHERE = "ANYWHERE",
486
+ /** Namespace for Headless Backoffice with no editor */
487
+ HEADLESS = "HEADLESS",
488
+ /**
489
+ * Namespace for master site that will exist in parent account that will be referenced by subaccounts
490
+ * The site will be used for account level CSM feature for enterprise
491
+ */
492
+ ACCOUNT_MASTER_CMS = "ACCOUNT_MASTER_CMS",
493
+ /** Rise.ai Siteless account management for Gift Cards and Store Credit. */
494
+ RISE = "RISE",
495
+ /**
496
+ * As part of the branded app new funnel, users now can create a meta site that will be branded app first.
497
+ * There's a blank site behind the scene but it's blank).
498
+ * The Mobile company will be the owner of this namespace.
499
+ */
500
+ BRANDED_FIRST = "BRANDED_FIRST",
501
+ /** Nownia.com Siteless account management for Ai Scheduling Assistant. */
502
+ NOWNIA = "NOWNIA",
503
+ /**
504
+ * UGC Templates are templates that are created by users for personal use and to sale to other users.
505
+ * The Partners company owns this namespace.
506
+ */
507
+ UGC_TEMPLATE = "UGC_TEMPLATE",
508
+ /** Codux Headless Sites */
509
+ CODUX = "CODUX",
510
+ /** Bobb - AI Design Creator. */
511
+ MEDIA_DESIGN_CREATOR = "MEDIA_DESIGN_CREATOR",
512
+ /**
513
+ * Shared Blog Site is a unique single site across Enterprise account,
514
+ * This site will hold all Blog posts related to the Marketing product.
515
+ */
516
+ SHARED_BLOG_ENTERPRISE = "SHARED_BLOG_ENTERPRISE",
517
+ /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
518
+ STANDALONE_FORMS = "STANDALONE_FORMS",
519
+ /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
520
+ STANDALONE_EVENTS = "STANDALONE_EVENTS",
521
+ /** MIMIR - Siteless account for MIMIR Ai Job runner. */
522
+ MIMIR = "MIMIR"
523
+ }
524
+ /** Site transferred to another user. */
525
+ export interface SiteTransferred {
526
+ /**
527
+ * A previous owner id (user that transfers meta site).
528
+ * @format GUID
529
+ */
530
+ oldOwnerId?: string;
531
+ /**
532
+ * A new owner id (user that accepts meta site).
533
+ * @format GUID
534
+ */
535
+ newOwnerId?: string;
536
+ }
537
+ /** Soft deletion of the meta site. Could be restored. */
538
+ export interface SiteDeleted {
539
+ /** A deletion context. */
540
+ deleteContext?: DeleteContext;
541
+ }
542
+ export interface DeleteContext {
543
+ /** When the meta site was deleted. */
544
+ dateDeleted?: Date | null;
545
+ /** A status. */
546
+ deleteStatus?: DeleteStatus;
547
+ /**
548
+ * A reason (flow).
549
+ * @maxLength 255
550
+ */
551
+ deleteOrigin?: string;
552
+ /**
553
+ * A service that deleted it.
554
+ * @maxLength 255
555
+ */
556
+ initiatorId?: string | null;
557
+ }
558
+ export declare enum DeleteStatus {
559
+ UNKNOWN = "UNKNOWN",
560
+ TRASH = "TRASH",
561
+ DELETED = "DELETED",
562
+ PENDING_PURGE = "PENDING_PURGE",
563
+ PURGED_EXTERNALLY = "PURGED_EXTERNALLY"
564
+ }
565
+ /** Restoration of the meta site. */
566
+ export interface SiteUndeleted {
567
+ }
568
+ /** First publish of a meta site. Or subsequent publish after unpublish. */
569
+ export interface SitePublished {
570
+ }
571
+ export interface SiteUnpublished {
572
+ /**
573
+ * A list of URLs previously associated with the meta site.
574
+ * @maxLength 4000
575
+ * @maxSize 10000
576
+ */
577
+ urls?: string[];
578
+ }
579
+ export interface SiteMarkedAsTemplate {
580
+ }
581
+ export interface SiteMarkedAsWixSite {
582
+ }
583
+ /**
584
+ * Represents a service provisioned a site.
585
+ *
586
+ * Note on `origin_instance_id`:
587
+ * There is no guarantee that you will be able to find a meta site using `origin_instance_id`.
588
+ * This is because of the following scenario:
589
+ *
590
+ * Imagine you have a template where a third-party application (TPA) includes some stub data,
591
+ * such as a product catalog. When you create a site from this template, you inherit this
592
+ * default product catalog. However, if the template's product catalog is modified,
593
+ * your site will retain the catalog as it was at the time of site creation. This ensures that
594
+ * your site remains consistent with what you initially received and does not include any
595
+ * changes made to the original template afterward.
596
+ * To ensure this, the TPA on the template gets a new instance_id.
597
+ */
598
+ export interface ServiceProvisioned {
599
+ /**
600
+ * Either UUID or EmbeddedServiceType.
601
+ * @maxLength 36
602
+ */
603
+ appDefId?: string;
604
+ /**
605
+ * Not only UUID. Something here could be something weird.
606
+ * @maxLength 36
607
+ */
608
+ instanceId?: string;
609
+ /**
610
+ * An instance id from which this instance is originated.
611
+ * @maxLength 36
612
+ */
613
+ originInstanceId?: string;
614
+ /**
615
+ * A version.
616
+ * @maxLength 500
617
+ */
618
+ version?: string | null;
619
+ /**
620
+ * The origin meta site id
621
+ * @format GUID
622
+ */
623
+ originMetaSiteId?: string | null;
624
+ }
625
+ export interface ServiceRemoved {
626
+ /**
627
+ * Either UUID or EmbeddedServiceType.
628
+ * @maxLength 36
629
+ */
630
+ appDefId?: string;
631
+ /**
632
+ * Not only UUID. Something here could be something weird.
633
+ * @maxLength 36
634
+ */
635
+ instanceId?: string;
636
+ /**
637
+ * A version.
638
+ * @maxLength 500
639
+ */
640
+ version?: string | null;
641
+ }
642
+ /** Rename of the site. Meaning, free public url has been changed as well. */
643
+ export interface SiteRenamed {
644
+ /**
645
+ * A new meta site name (URL slug).
646
+ * @maxLength 20
647
+ */
648
+ newSiteName?: string;
649
+ /**
650
+ * A previous meta site name (URL slug).
651
+ * @maxLength 255
652
+ */
653
+ oldSiteName?: string;
654
+ }
655
+ /**
656
+ * Hard deletion of the meta site.
657
+ *
658
+ * Could not be restored. Therefore it's desirable to cleanup data.
659
+ */
660
+ export interface SiteHardDeleted {
661
+ /** A deletion context. */
662
+ deleteContext?: DeleteContext;
663
+ }
664
+ export interface NamespaceChanged {
665
+ /** A previous namespace. */
666
+ oldNamespace?: Namespace;
667
+ /** A new namespace. */
668
+ newNamespace?: Namespace;
669
+ }
670
+ /** Assigned Studio editor */
671
+ export interface StudioAssigned {
672
+ }
673
+ /** Unassigned Studio editor */
674
+ export interface StudioUnassigned {
675
+ }
676
+ /**
677
+ * Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.
678
+ *
679
+ * This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up
680
+ * with sites and its urls, you need to listen to another topic/event. Read about it:
681
+ *
682
+ * https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service
683
+ */
684
+ export interface SiteUrlChanged {
685
+ }
686
+ /**
687
+ * Used at the end of the deletion flow for both draft sites and when a user deletes a site.
688
+ * Consumed by other teams to remove relevant data.
689
+ */
690
+ export interface SitePurgedExternally {
691
+ /**
692
+ * @maxLength 2048
693
+ * @maxSize 100
694
+ * @deprecated
695
+ * @targetRemovalDate 2025-04-15
696
+ */
697
+ appDefId?: string[];
698
+ }
699
+ export interface Empty {
700
+ }
701
+ export interface FeatureEvent extends FeatureEventEventOneOf {
702
+ /**
703
+ * Information about an event that makes a feature eligible to the user.
704
+ * Triggered for example, for new features or when a feature is reassigned
705
+ * to an account or a site.
706
+ */
707
+ enabled?: FeatureEnabled;
708
+ /**
709
+ * Information about an event that disables a feature for the user.
710
+ * Triggered for example, when a feature is unassigned from a site,
711
+ * reassigned to a different site, or the user switched to a different contract.
712
+ */
713
+ disabled?: FeatureDisabled;
714
+ /**
715
+ * Information about an event that updates a feature. An `updated` event
716
+ * is triggered for example by the
717
+ * [Report Quota Usage](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/report-quota-usage)
718
+ * and [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter)
719
+ * endpoints.
720
+ */
721
+ updated?: FeatureUpdated;
722
+ /**
723
+ * Information about an event that cancels a feature for the user.
724
+ * Triggered for example, when a feature is canceled, transferred to
725
+ * another account, or the user switched to a different contract.
726
+ */
727
+ cancelled?: FeatureCancelled;
728
+ /**
729
+ * Timestamp of the event in
730
+ * [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).
731
+ */
732
+ timestamp?: Date | null;
733
+ }
734
+ /** @oneof */
735
+ export interface FeatureEventEventOneOf {
736
+ /**
737
+ * Information about an event that makes a feature eligible to the user.
738
+ * Triggered for example, for new features or when a feature is reassigned
739
+ * to an account or a site.
740
+ */
741
+ enabled?: FeatureEnabled;
742
+ /**
743
+ * Information about an event that disables a feature for the user.
744
+ * Triggered for example, when a feature is unassigned from a site,
745
+ * reassigned to a different site, or the user switched to a different contract.
746
+ */
747
+ disabled?: FeatureDisabled;
748
+ /**
749
+ * Information about an event that updates a feature. An `updated` event
750
+ * is triggered for example by the
751
+ * [Report Quota Usage](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/report-quota-usage)
752
+ * and [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter)
753
+ * endpoints.
754
+ */
755
+ updated?: FeatureUpdated;
756
+ /**
757
+ * Information about an event that cancels a feature for the user.
758
+ * Triggered for example, when a feature is canceled, transferred to
759
+ * another account, or the user switched to a different contract.
760
+ */
761
+ cancelled?: FeatureCancelled;
762
+ }
763
+ /** Feature created or enabled after disabled state */
764
+ export interface FeatureEnabled extends FeatureEnabledReasonOneOf {
765
+ /** Information about a transfer from another account. */
766
+ transferredFromAnotherAccount?: TransferredFromAnotherAccountReason;
767
+ /** Information about a transfer from another site. */
768
+ reassignedFromSite?: ReassignedFromSiteReason;
769
+ /** Information about a feature that hadn't been assigned to site. */
770
+ assignedFromFloating?: AssignedFromFloatingReason;
771
+ /** Information about the new feature. */
772
+ newFeature?: NewFeatureReason;
773
+ /** Information about the contract switch. */
774
+ contractSwitched?: ContractSwitchedReason;
775
+ /** Information about the manually created features. */
776
+ manualFeatureCreation?: ManualFeatureCreationReason;
777
+ /** Information about a feature that was migrated from legacy. */
778
+ migratedFromLegacy?: MigratedFromLegacyReason;
779
+ /** Enabled feature. */
780
+ feature?: Feature;
781
+ /**
782
+ * Information about a transfer from another account.
783
+ * __Deprecated__. Use `reason.transferred_from_another_account` instead.
784
+ * @format GUID
785
+ */
786
+ transferredFromAccount?: string | null;
787
+ /**
788
+ * Information about a transfer from another site.
789
+ * __Deprecated__. Use `reason.reassigned_from_site` instead.
790
+ * @format GUID
791
+ */
792
+ reassignedFromMetasite?: string | null;
793
+ }
794
+ /** @oneof */
795
+ export interface FeatureEnabledReasonOneOf {
796
+ /** Information about a transfer from another account. */
797
+ transferredFromAnotherAccount?: TransferredFromAnotherAccountReason;
798
+ /** Information about a transfer from another site. */
799
+ reassignedFromSite?: ReassignedFromSiteReason;
800
+ /** Information about a feature that hadn't been assigned to site. */
801
+ assignedFromFloating?: AssignedFromFloatingReason;
802
+ /** Information about the new feature. */
803
+ newFeature?: NewFeatureReason;
804
+ /** Information about the contract switch. */
805
+ contractSwitched?: ContractSwitchedReason;
806
+ /** Information about the manually created features. */
807
+ manualFeatureCreation?: ManualFeatureCreationReason;
808
+ /** Information about a feature that was migrated from legacy. */
809
+ migratedFromLegacy?: MigratedFromLegacyReason;
810
+ }
811
+ export interface Feature extends FeatureQuantityInfoOneOf {
812
+ /**
813
+ * Deprecated. Use `enabled` instead.
814
+ * @deprecated
815
+ */
816
+ booleanFeature?: BooleanFeature;
817
+ /**
818
+ * Deprecated. Use `quotaInfo` instead.
819
+ * @deprecated
820
+ */
821
+ quotaFeature?: QuotaFeature;
822
+ /**
823
+ * ID of the feature. __Note:__ Isn't unique. For example, all features that
824
+ * are available to free Wix accounts or site in some capacity have
825
+ * `{"id": "DEFAULT"}`. Use `uniqueName` as unique identifier for a feature.
826
+ * @readonly
827
+ */
828
+ _id?: string;
829
+ /**
830
+ * Unique name of the feature. Only lower case letters, numbers, and dashes
831
+ * `-` are supported. Used in the endpoints of the
832
+ * [Features Manager API](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/introduction)
833
+ * to specify the feature. Not visible to customers. We recommend to start
834
+ * the unique name with a prefix describing your organization or Wix company.
835
+ * For example, `bookings` or `crm`.
836
+ *
837
+ * Min: 2 characters
838
+ * Max: 50 characters
839
+ * @minLength 2
840
+ * @maxLength 50
841
+ */
842
+ uniqueName?: string;
843
+ /**
844
+ * Information about whether the feature belongs to a Wix account or site.
845
+ * Account features have `context.userId`. Site features have `context.metaSiteId` in case
846
+ * they're assigned to a specific site. Site features that aren't assigned to
847
+ * a specific site have neither ID.
848
+ */
849
+ context?: FeatureContext;
850
+ /**
851
+ * Deprecated.
852
+ * @readonly
853
+ * @deprecated
854
+ */
855
+ createdAt?: Date | null;
856
+ /**
857
+ * Deprecated.
858
+ * @readonly
859
+ * @deprecated
860
+ */
861
+ updatedAt?: Date | null;
862
+ /**
863
+ * Information about how often customers can use the feature during a specific
864
+ * period. Available only for quota features.
865
+ */
866
+ quotaInfo?: QuotaInfo;
867
+ /**
868
+ * Whether the customer is currently allowed to use the feature.
869
+ * `true` means that the customer can use the feature. This means a boolean
870
+ * feature is active or a quota feature has remaining usage.
871
+ * `false` means that the customer can't use the feature.
872
+ * This means a boolean feature isn't active or a quota feature doesn't
873
+ * have remaining usage.
874
+ */
875
+ enabled?: boolean;
876
+ /**
877
+ * ID of the [subscription](https://bo.wix.com/wix-docs/rest/premium/premium-subscriptions-manager/subscription-object)
878
+ * to which the feature instance belongs.
879
+ * @format GUID
880
+ */
881
+ subscriptionId?: string | null;
882
+ /**
883
+ * Metadata of the feature. Wix Premium uses the metadata object to indicate
884
+ * that customers who purchase a product with the feature also get
885
+ * access to an additional product. For these bundled products `metadata`
886
+ * looks like this: `{"tpa": "{"appDefId": "sample-app-def-id-1234567890", "vendorProductId": "sample-productId"}}"`.
887
+ * But you can use the `metadata` property for other purposes, too.
888
+ */
889
+ metadata?: Record<string, string>;
890
+ }
891
+ /** @oneof */
892
+ export interface FeatureQuantityInfoOneOf {
893
+ /**
894
+ * Deprecated. Use `enabled` instead.
895
+ * @deprecated
896
+ */
897
+ booleanFeature?: BooleanFeature;
898
+ /**
899
+ * Deprecated. Use `quotaInfo` instead.
900
+ * @deprecated
901
+ */
902
+ quotaFeature?: QuotaFeature;
903
+ }
904
+ /**
905
+ * Context this feature is currently connected to.
906
+ * Note: Do not confuse with feature scope which is configured in the product catalog
907
+ * and defines in which context the product can be used
908
+ */
909
+ export interface FeatureContext {
910
+ /**
911
+ * ID of the Wix account that the feature instance belongs to.
912
+ * Available for both site and account level feature instances.
913
+ * @format GUID
914
+ */
915
+ userId?: string;
916
+ /**
917
+ * ID of the meta site that the feature instance is assigned to.
918
+ * Only available for site level feature instances that are assigned to a Wix
919
+ * site. Not available for account level and unassigned site level feature
920
+ * instances.
921
+ * @format GUID
922
+ */
923
+ metaSiteId?: string | null;
924
+ }
925
+ /**
926
+ * A feature that can be either "enabled" or "disabled". The default/freemium setting is always OFF, and the premium setting is always ON (meaning, unlimited usage without tracking).
927
+ * A boolean feature is similar to a quantitive feature with a default limit of 0 and UNLIMITED premium limit (although a bit simplified).
928
+ */
929
+ export interface BooleanFeature {
930
+ }
931
+ /** A feature with a periodic usage limitation. The default limit is defined in the Feature Spec, the Premium limits are defined in the respective ProductFeature. */
932
+ export interface QuotaFeature {
933
+ /** Default (or Freemium) quota limitation. if left undefined the free feature has unlimited amount. */
934
+ limit?: string | null;
935
+ /** Periodic time-frame to reset the usage counter. You may use NO_PERIOD if counter shouldn't be reset. */
936
+ period?: FeaturePeriod;
937
+ /** Usage measurement units (seconds? MBs? unitless?). Usage reported will be counted in multiples of this basic unit. */
938
+ units?: string | null;
939
+ }
940
+ /** Determines the reset cycle of the feature usage. */
941
+ export declare enum FeaturePeriod {
942
+ NO_PERIOD = "NO_PERIOD",
943
+ MILLISECOND = "MILLISECOND",
944
+ SECOND = "SECOND",
945
+ MINUTE = "MINUTE",
946
+ HOUR = "HOUR",
947
+ DAY = "DAY",
948
+ WEEK = "WEEK",
949
+ MONTH = "MONTH",
950
+ YEAR = "YEAR"
951
+ }
952
+ export interface QuotaInfo {
953
+ /**
954
+ * How often the customer is allowed to use the feature during the specified
955
+ * period. `null` means that the customer has unlimited access to the feature.
956
+ */
957
+ limit?: string | null;
958
+ /**
959
+ * Time frame for the usage limitation. `NO_PERIOD` means that `remainingUsage`
960
+ * isn't automatically reset to the feature's `limit` after a specific period.
961
+ * You may still manually call
962
+ * [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter).
963
+ */
964
+ period?: FeaturePeriod;
965
+ /**
966
+ * How often the customer has used the feature during the current
967
+ * period.
968
+ */
969
+ currentUsage?: string;
970
+ /**
971
+ * How often the customer can still use the feature during the current
972
+ * period. `null` means that the customer has unlimited access to the feature.
973
+ */
974
+ remainingUsage?: string | null;
975
+ }
976
+ /** Subscription transferred from another account, features on the current account were enabled. */
977
+ export interface TransferredFromAnotherAccountReason {
978
+ /**
979
+ * Information about a transfer from another account.
980
+ * @format GUID
981
+ */
982
+ transferredFromAccount?: string;
983
+ }
984
+ /** Subscription moved from one site to another in the same account, features enabled on the target site */
985
+ export interface ReassignedFromSiteReason {
986
+ /**
987
+ * Information about a transfer from another site.
988
+ * @format GUID
989
+ */
990
+ reassignedFromMetasite?: string;
991
+ }
992
+ /** Subscription was floating and assigned to site, features enabled on the target site */
993
+ export interface AssignedFromFloatingReason {
994
+ }
995
+ /** New subscription created and features created as enabled */
996
+ export interface NewFeatureReason {
997
+ }
998
+ /** Subscription was upgraded or downgraded, as a result new features enabled, missing features disabled , quantities are updated */
999
+ export interface ContractSwitchedReason {
1000
+ }
1001
+ /** a call to CreateFeature in features-writer, creates feature that is not attached to subscription */
1002
+ export interface ManualFeatureCreationReason {
1003
+ }
1004
+ /** Subscription created due to migration from old premium model */
1005
+ export interface MigratedFromLegacyReason {
1006
+ }
1007
+ /** Feature disabled and can be enabled in the future */
1008
+ export interface FeatureDisabled extends FeatureDisabledReasonOneOf {
1009
+ /** Information about a feature that's no longer assigned to a site. */
1010
+ unassingedToFloating?: UnAssingedToFloatingReason;
1011
+ /**
1012
+ * Information about a feature that's been replaced by a feature from a
1013
+ * different subscription.
1014
+ */
1015
+ replacedByAnotherSubscription?: ReplacedByAnotherSubscriptionReason;
1016
+ /**
1017
+ * Information about a feature that's been reassigned to a different
1018
+ * site.
1019
+ */
1020
+ reassignedToAnotherSite?: ReassignedToAnotherSiteReason;
1021
+ /**
1022
+ * Disabled feature. Includes information about the feature's new state,
1023
+ * possibly its new context.
1024
+ */
1025
+ feature?: Feature;
1026
+ /**
1027
+ * ID of the meta site for which the feature has been disabled.
1028
+ * @format GUID
1029
+ */
1030
+ metaSiteId?: string | null;
1031
+ }
1032
+ /** @oneof */
1033
+ export interface FeatureDisabledReasonOneOf {
1034
+ /** Information about a feature that's no longer assigned to a site. */
1035
+ unassingedToFloating?: UnAssingedToFloatingReason;
1036
+ /**
1037
+ * Information about a feature that's been replaced by a feature from a
1038
+ * different subscription.
1039
+ */
1040
+ replacedByAnotherSubscription?: ReplacedByAnotherSubscriptionReason;
1041
+ /**
1042
+ * Information about a feature that's been reassigned to a different
1043
+ * site.
1044
+ */
1045
+ reassignedToAnotherSite?: ReassignedToAnotherSiteReason;
1046
+ }
1047
+ /** Subscription was unassigned from the site and moved into floating state */
1048
+ export interface UnAssingedToFloatingReason {
1049
+ }
1050
+ /** Another subscription was assigned to the site, causing existing features on this site to be disabled */
1051
+ export interface ReplacedByAnotherSubscriptionReason {
1052
+ }
1053
+ /** Subscription was assigned to another site, causing features on the origin site to be disabled. */
1054
+ export interface ReassignedToAnotherSiteReason {
1055
+ /**
1056
+ * Information about a transfer to the site.
1057
+ * @format GUID
1058
+ */
1059
+ reassignedToMetasite?: string;
1060
+ }
1061
+ /** Feature updated, for example Quota was increased due to upgrade */
1062
+ export interface FeatureUpdated extends FeatureUpdatedPreviousQuantityInfoOneOf, FeatureUpdatedReasonOneOf {
1063
+ /** Information about a feature that doesn't have a usage quota. */
1064
+ booleanFeature?: BooleanFeature;
1065
+ /** Information about a feature that has a usage quota. */
1066
+ quotaFeature?: QuotaFeature;
1067
+ /** Information about the contract switch. */
1068
+ contractSwitched?: ContractSwitchedReason;
1069
+ /**
1070
+ * Updated feature. Includes information about the feature's new state and
1071
+ * possibly its new context.
1072
+ */
1073
+ feature?: Feature;
1074
+ }
1075
+ /** @oneof */
1076
+ export interface FeatureUpdatedPreviousQuantityInfoOneOf {
1077
+ /** Information about a feature that doesn't have a usage quota. */
1078
+ booleanFeature?: BooleanFeature;
1079
+ /** Information about a feature that has a usage quota. */
1080
+ quotaFeature?: QuotaFeature;
1081
+ }
1082
+ /** @oneof */
1083
+ export interface FeatureUpdatedReasonOneOf {
1084
+ /** Information about the contract switch. */
1085
+ contractSwitched?: ContractSwitchedReason;
1086
+ }
1087
+ /** Feature was permanently cancelled */
1088
+ export interface FeatureCancelled extends FeatureCancelledReasonOneOf {
1089
+ /** Information about a transfer to the account. */
1090
+ transferredToAnotherAccount?: TransferredToAnotherAccountReason;
1091
+ /** Information about the contract switch. */
1092
+ contractSwitched?: ContractSwitchedReason;
1093
+ /** Information about the feature cancellation. */
1094
+ cancelRequest?: CancelRequestedReason;
1095
+ /** Canceled feature. */
1096
+ feature?: Feature;
1097
+ /**
1098
+ * Information about a transfer to the account.
1099
+ * __Deprecated__. Use `reason.transferred_to_account` instead.
1100
+ * @format GUID
1101
+ */
1102
+ transferredToAccount?: string | null;
1103
+ }
1104
+ /** @oneof */
1105
+ export interface FeatureCancelledReasonOneOf {
1106
+ /** Information about a transfer to the account. */
1107
+ transferredToAnotherAccount?: TransferredToAnotherAccountReason;
1108
+ /** Information about the contract switch. */
1109
+ contractSwitched?: ContractSwitchedReason;
1110
+ /** Information about the feature cancellation. */
1111
+ cancelRequest?: CancelRequestedReason;
1112
+ }
1113
+ /** Subscription was transferred to another account, features in the origin account were cancelled */
1114
+ export interface TransferredToAnotherAccountReason {
1115
+ /**
1116
+ * Information about a transfer to the account.
1117
+ * @format GUID
1118
+ */
1119
+ transferredToAccount?: string;
1120
+ }
1121
+ /** Cancellation was requested from the subscription manager api, might be a result of billing event, or direct call */
1122
+ export interface CancelRequestedReason {
1123
+ }
1124
+ export interface DomainEvent extends DomainEventBodyOneOf {
1125
+ createdEvent?: EntityCreatedEvent;
1126
+ updatedEvent?: EntityUpdatedEvent;
1127
+ deletedEvent?: EntityDeletedEvent;
1128
+ actionEvent?: ActionEvent;
1129
+ /**
1130
+ * Unique event ID.
1131
+ * Allows clients to ignore duplicate webhooks.
1132
+ */
1133
+ _id?: string;
1134
+ /**
1135
+ * Assumes actions are also always typed to an entity_type
1136
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
1137
+ */
1138
+ entityFqdn?: string;
1139
+ /**
1140
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
1141
+ * This is although the created/updated/deleted notion is duplication of the oneof types
1142
+ * Example: created/updated/deleted/started/completed/email_opened
1143
+ */
1144
+ slug?: string;
1145
+ /** ID of the entity associated with the event. */
1146
+ entityId?: string;
1147
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
1148
+ eventTime?: Date | null;
1149
+ /**
1150
+ * Whether the event was triggered as a result of a privacy regulation application
1151
+ * (for example, GDPR).
1152
+ */
1153
+ triggeredByAnonymizeRequest?: boolean | null;
1154
+ /** If present, indicates the action that triggered the event. */
1155
+ originatedFrom?: string | null;
1156
+ /**
1157
+ * A sequence number defining the order of updates to the underlying entity.
1158
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
1159
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
1160
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
1161
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
1162
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
1163
+ */
1164
+ entityEventSequence?: string | null;
1165
+ }
1166
+ /** @oneof */
1167
+ export interface DomainEventBodyOneOf {
1168
+ createdEvent?: EntityCreatedEvent;
1169
+ updatedEvent?: EntityUpdatedEvent;
1170
+ deletedEvent?: EntityDeletedEvent;
1171
+ actionEvent?: ActionEvent;
1172
+ }
1173
+ export interface EntityCreatedEvent {
1174
+ entity?: string;
1175
+ }
1176
+ export interface RestoreInfo {
1177
+ deletedDate?: Date | null;
1178
+ }
1179
+ export interface EntityUpdatedEvent {
1180
+ /**
1181
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1182
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1183
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1184
+ */
1185
+ currentEntity?: string;
1186
+ }
1187
+ export interface EntityDeletedEvent {
1188
+ /** Entity that was deleted */
1189
+ deletedEntity?: string | null;
1190
+ }
1191
+ export interface ActionEvent {
1192
+ body?: string;
1193
+ }
1194
+ export interface MessageEnvelope {
1195
+ /**
1196
+ * App instance ID.
1197
+ * @format GUID
1198
+ */
1199
+ instanceId?: string | null;
1200
+ /**
1201
+ * Event type.
1202
+ * @maxLength 150
1203
+ */
1204
+ eventType?: string;
1205
+ /** The identification type and identity data. */
1206
+ identity?: IdentificationData;
1207
+ /** Stringify payload. */
1208
+ data?: string;
1209
+ }
1210
+ export interface IdentificationData extends IdentificationDataIdOneOf {
1211
+ /**
1212
+ * ID of a site visitor that has not logged in to the site.
1213
+ * @format GUID
1214
+ */
1215
+ anonymousVisitorId?: string;
1216
+ /**
1217
+ * ID of a site visitor that has logged in to the site.
1218
+ * @format GUID
1219
+ */
1220
+ memberId?: string;
1221
+ /**
1222
+ * ID of a Wix user (site owner, contributor, etc.).
1223
+ * @format GUID
1224
+ */
1225
+ wixUserId?: string;
1226
+ /**
1227
+ * ID of an app.
1228
+ * @format GUID
1229
+ */
1230
+ appId?: string;
1231
+ /** @readonly */
1232
+ identityType?: WebhookIdentityType;
1233
+ }
1234
+ /** @oneof */
1235
+ export interface IdentificationDataIdOneOf {
1236
+ /**
1237
+ * ID of a site visitor that has not logged in to the site.
1238
+ * @format GUID
1239
+ */
1240
+ anonymousVisitorId?: string;
1241
+ /**
1242
+ * ID of a site visitor that has logged in to the site.
1243
+ * @format GUID
1244
+ */
1245
+ memberId?: string;
1246
+ /**
1247
+ * ID of a Wix user (site owner, contributor, etc.).
1248
+ * @format GUID
1249
+ */
1250
+ wixUserId?: string;
1251
+ /**
1252
+ * ID of an app.
1253
+ * @format GUID
1254
+ */
1255
+ appId?: string;
1256
+ }
1257
+ export declare enum WebhookIdentityType {
1258
+ UNKNOWN = "UNKNOWN",
1259
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1260
+ MEMBER = "MEMBER",
1261
+ WIX_USER = "WIX_USER",
1262
+ APP = "APP"
1263
+ }
1264
+ export interface BaseEventMetadata {
1265
+ /**
1266
+ * App instance ID.
1267
+ * @format GUID
1268
+ */
1269
+ instanceId?: string | null;
1270
+ /**
1271
+ * Event type.
1272
+ * @maxLength 150
1273
+ */
1274
+ eventType?: string;
1275
+ /** The identification type and identity data. */
1276
+ identity?: IdentificationData;
1277
+ }
1278
+ export interface EventMetadata extends BaseEventMetadata {
1279
+ /**
1280
+ * Unique event ID.
1281
+ * Allows clients to ignore duplicate webhooks.
1282
+ */
1283
+ _id?: string;
1284
+ /**
1285
+ * Assumes actions are also always typed to an entity_type
1286
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
1287
+ */
1288
+ entityFqdn?: string;
1289
+ /**
1290
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
1291
+ * This is although the created/updated/deleted notion is duplication of the oneof types
1292
+ * Example: created/updated/deleted/started/completed/email_opened
1293
+ */
1294
+ slug?: string;
1295
+ /** ID of the entity associated with the event. */
1296
+ entityId?: string;
1297
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
1298
+ eventTime?: Date | null;
1299
+ /**
1300
+ * Whether the event was triggered as a result of a privacy regulation application
1301
+ * (for example, GDPR).
1302
+ */
1303
+ triggeredByAnonymizeRequest?: boolean | null;
1304
+ /** If present, indicates the action that triggered the event. */
1305
+ originatedFrom?: string | null;
1306
+ /**
1307
+ * A sequence number defining the order of updates to the underlying entity.
1308
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
1309
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
1310
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
1311
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
1312
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
1313
+ */
1314
+ entityEventSequence?: string | null;
1315
+ }
1316
+ export interface ProgramUpdatedEnvelope {
1317
+ entity: LoyaltyProgram;
1318
+ metadata: EventMetadata;
1319
+ }
1320
+ /**
1321
+ * Triggered when a loyalty program is updated.
1322
+ * @permissionScope Read Loyalty
1323
+ * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
1324
+ * @permissionScope Manage Loyalty
1325
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
1326
+ * @permissionScope Manage Restaurants - all permissions
1327
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1328
+ * @permissionId LOYALTY.READ_PROGRAM
1329
+ * @webhook
1330
+ * @eventType wix.loyalty.v1.program_updated
1331
+ * @serviceIdentifier com.wixpress.loyalty.program.LoyaltyPrograms
1332
+ * @slug updated
1333
+ */
1334
+ export declare function onProgramUpdated(handler: (event: ProgramUpdatedEnvelope) => void | Promise<void>): void;
1335
+ type ProgramNonNullablePaths = `status` | `pointsExpiration.status` | `pointsExpiration.monthsOfInactivity` | `pointsExpiration.expiringPointsPercentage` | `premiumFeatures.loyaltyProgram` | `premiumFeatures.tiers` | `premiumFeatures.pointsExpiration`;
1336
+ /**
1337
+ * Retrieves the site's loyalty program.
1338
+ *
1339
+ * The `getLoyaltyProgram()` function returns a Promise that resolves to the site's loyalty program.
1340
+ * @public
1341
+ * @permissionId LOYALTY.READ_PROGRAM
1342
+ * @permissionScope Read Loyalty
1343
+ * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
1344
+ * @permissionScope Manage Loyalty
1345
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
1346
+ * @permissionScope Manage Restaurants - all permissions
1347
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1348
+ * @applicableIdentity APP
1349
+ * @applicableIdentity VISITOR
1350
+ * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.GetLoyaltyProgram
1351
+ */
1352
+ export declare function getLoyaltyProgram(): Promise<NonNullablePaths<GetLoyaltyProgramResponse, {
1353
+ [P in ProgramNonNullablePaths]: `loyaltyProgram.${P}`;
1354
+ }[ProgramNonNullablePaths]>>;
1355
+ /**
1356
+ * Retrieves loyalty programs for all metasites that the caller is a member of.
1357
+ *
1358
+ * Must be called with user identity.
1359
+ * @public
1360
+ * @documentationMaturity preview
1361
+ * @permissionId LOYALTY.PROGRAM_BULK_READ
1362
+ * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.BulkGetLoyaltyProgram
1363
+ */
1364
+ export declare function bulkGetLoyaltyProgram(): Promise<NonNullablePaths<BulkGetLoyaltyProgramResponse, `programInSites` | `programInSites.${number}.metaSiteId` | {
1365
+ [P in ProgramNonNullablePaths]: `programInSites.${number}.loyaltyProgram.${P}`;
1366
+ }[ProgramNonNullablePaths]>>;
1367
+ /**
1368
+ * Updates the site's loyalty program.
1369
+ *
1370
+ * The `updateLoyaltyProgram()` function returns a Promise that resolves when the loyalty program is updated.
1371
+ *
1372
+ * With the `updateLoyaltyProgram()` function you can update the name of the loyalty program and the details of the collectible points unit. To activate the loyalty program use the [`activateLoyaltyProgram()`](https://dev.wix.com/docs/sdk/backend-modules/loyalty/programs/activate-loyalty-program) function.
1373
+ *
1374
+ * >**Note:** Only visitors with **Manage Loyalty** [permissions](https://support.wix.com/en/article/roles-permissions-accessing-roles-permissions) can update a loyalty program. You can override the permissions with the `wix-auth` [`elevate()`](wix-auth/elevate) function.
1375
+ * @param loyaltyProgram - Loyalty program fields to update.
1376
+ * @public
1377
+ * @requiredField loyaltyProgram
1378
+ * @permissionId LOYALTY.MANAGE_PROGRAM
1379
+ * @permissionScope Manage Loyalty
1380
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
1381
+ * @permissionScope Manage Restaurants - all permissions
1382
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1383
+ * @applicableIdentity APP
1384
+ * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.UpdateLoyaltyProgram
1385
+ */
1386
+ export declare function updateLoyaltyProgram(loyaltyProgram: LoyaltyProgram): Promise<NonNullablePaths<UpdateLoyaltyProgramResponse, {
1387
+ [P in ProgramNonNullablePaths]: `loyaltyProgram.${P}`;
1388
+ }[ProgramNonNullablePaths]>>;
1389
+ /**
1390
+ * Activates a loyalty program.
1391
+ *
1392
+ * The `activateLoyaltyProgram()` function returns a Promise that resolves when the status of the loyalty program is successfully changed to `"ACTIVE"`.
1393
+ *
1394
+ * Before you begin, a Wix Loyalty Program must first be installed through your [dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Floyalty-accounts/wizard/) or through the [Wix App Market](https://www.wix.com/app-market/loyalty). Initially when a loyalty program is installed, the status is set to `"DRAFT"`. You can change the program's status to `"ACTIVE"` with this function or through your [dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Floyalty-accounts/wizard/). A site's customers can only earn or redeem points while the program status is `"ACTIVE"`.
1395
+ *
1396
+ * This function updates only the status of a loyalty program, to make other updates to the program, use the [`updateLoyaltyProgram()`](https://dev.wix.com/docs/sdk/backend-modules/loyalty/programs/update-loyalty-program) function.
1397
+ *
1398
+ * To temporarily pause your loyalty program you must follow three steps:
1399
+ * 1. Remove all [`earnPoints()`](https://dev.wix.com/docs/sdk/backend-modules/loyalty/accounts/earn-points) functions and switch off all the "Earn Points" and "Rewards" toggles in the [Loyalty Program dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Open%20Loyalty%20Program&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https://www.wix.com/dashboard/{{metaSiteId}}/loyalty-accounts/).
1400
+ * 1. Hide the loyalty page from your site.
1401
+ * 1. Delete the My Rewards page from the Member pages.
1402
+ * See [Pausing Your Loyalty Program](https://support.wix.com/en/article/wix-loyalty-program-pausing-your-loyalty-program) for more information.
1403
+ *
1404
+ * >**Note:** Only visitors with **Manage Loyalty** [permissions](https://support.wix.com/en/article/roles-permissions-accessing-roles-permissions) can activate a loyalty program. You can override the permissions with the `wix-auth` [`elevate()`](wix-auth/elevate) function.
1405
+ * @public
1406
+ * @permissionId LOYALTY.MANAGE_PROGRAM
1407
+ * @permissionScope Manage Loyalty
1408
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
1409
+ * @permissionScope Manage Restaurants - all permissions
1410
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1411
+ * @applicableIdentity APP
1412
+ * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.ActivateLoyaltyProgram
1413
+ */
1414
+ export declare function activateLoyaltyProgram(): Promise<NonNullablePaths<ActivateLoyaltyProgramResponse, {
1415
+ [P in ProgramNonNullablePaths]: `loyaltyProgram.${P}`;
1416
+ }[ProgramNonNullablePaths]>>;
1417
+ /**
1418
+ * Changes the program status to `PAUSED`.
1419
+ * @public
1420
+ * @permissionId LOYALTY.MANAGE_PROGRAM
1421
+ * @permissionScope Manage Loyalty
1422
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
1423
+ * @permissionScope Manage Restaurants - all permissions
1424
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1425
+ * @applicableIdentity APP
1426
+ * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.PauseLoyaltyProgram
1427
+ */
1428
+ export declare function pauseLoyaltyProgram(): Promise<NonNullablePaths<PauseLoyaltyProgramResponse, {
1429
+ [P in ProgramNonNullablePaths]: `loyaltyProgram.${P}`;
1430
+ }[ProgramNonNullablePaths]>>;
1431
+ /**
1432
+ * Retrieves information about the available loyalty program premium features.
1433
+ * @public
1434
+ * @permissionId LOYALTY.READ_PROGRAM
1435
+ * @permissionScope Read Loyalty
1436
+ * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
1437
+ * @permissionScope Manage Loyalty
1438
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
1439
+ * @permissionScope Manage Restaurants - all permissions
1440
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1441
+ * @applicableIdentity APP
1442
+ * @applicableIdentity VISITOR
1443
+ * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.GetLoyaltyProgramPremiumFeatures
1444
+ */
1445
+ export declare function getLoyaltyProgramPremiumFeatures(): Promise<NonNullablePaths<GetLoyaltyProgramPremiumFeaturesResponse, `loyaltyProgram` | `tiers` | `pointsExpiration`>>;
1446
+ /**
1447
+ * Updates the `pointsExpiration` status to `ENABLED`.
1448
+ * @public
1449
+ * @permissionId LOYALTY.MANAGE_PROGRAM
1450
+ * @permissionScope Manage Loyalty
1451
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
1452
+ * @permissionScope Manage Restaurants - all permissions
1453
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1454
+ * @applicableIdentity APP
1455
+ * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.EnablePointsExpiration
1456
+ */
1457
+ export declare function enablePointsExpiration(): Promise<NonNullablePaths<EnablePointsExpirationResponse, {
1458
+ [P in ProgramNonNullablePaths]: `loyaltyProgram.${P}`;
1459
+ }[ProgramNonNullablePaths]>>;
1460
+ /**
1461
+ * Updates the `pointsExpiration` status to `DISABLED`.
1462
+ * @public
1463
+ * @permissionId LOYALTY.MANAGE_PROGRAM
1464
+ * @permissionScope Manage Loyalty
1465
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
1466
+ * @permissionScope Manage Restaurants - all permissions
1467
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1468
+ * @applicableIdentity APP
1469
+ * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.DisablePointsExpiration
1470
+ */
1471
+ export declare function disablePointsExpiration(): Promise<NonNullablePaths<DisablePointsExpirationResponse, {
1472
+ [P in ProgramNonNullablePaths]: `loyaltyProgram.${P}`;
1473
+ }[ProgramNonNullablePaths]>>;
1474
+ export {};