@wix/auto_sdk_loyalty_programs 1.0.19 → 1.0.21

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