@wix/auto_sdk_loyalty_programs 1.0.20 → 1.0.22

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