@wix/auto_sdk_loyalty_programs 1.0.12 → 1.0.14

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