@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
@@ -3,14 +3,14 @@
3
3
  * loyalty program to increase customer retention. Read more about the loyalty program in
4
4
  * [this overview](https://support.wix.com/en/article/wix-loyalty-program-an-overview).
5
5
  */
6
- export interface LoyaltyProgram {
6
+ interface LoyaltyProgram {
7
7
  /**
8
8
  * Program name.
9
9
  * @minLength 2
10
10
  * @maxLength 50
11
11
  */
12
12
  name?: string | null;
13
- /** Details about the program's collectible unit. */
13
+ /** Information about the program's collectible entity. */
14
14
  pointDefinition?: PointDefinition;
15
15
  /**
16
16
  * Program status. Customers can only earn or redeem points while the program is `ACTIVE`.
@@ -23,12 +23,12 @@ export interface LoyaltyProgram {
23
23
  * Date and time the program was created.
24
24
  * @readonly
25
25
  */
26
- createdDate?: Date | null;
26
+ _createdDate?: Date | null;
27
27
  /**
28
28
  * Date and time the program was updated.
29
29
  * @readonly
30
30
  */
31
- updatedDate?: Date | null;
31
+ _updatedDate?: Date | null;
32
32
  /** Configuration for the points expiration feature. */
33
33
  pointsExpiration?: PointsExpiration;
34
34
  /**
@@ -37,7 +37,7 @@ export interface LoyaltyProgram {
37
37
  */
38
38
  premiumFeatures?: PremiumFeatures;
39
39
  }
40
- export interface PointDefinition {
40
+ interface PointDefinition {
41
41
  /**
42
42
  * Display name for the program's collectible unit.
43
43
  *
@@ -49,33 +49,10 @@ export interface PointDefinition {
49
49
  * @maxLength 20
50
50
  */
51
51
  customName?: string | null;
52
- /** Details about the points icon. */
53
- icon?: Image;
52
+ /** Image URL. See [Image]($w/image/introduction) for more information on URL formats for images. */
53
+ icon?: string;
54
54
  }
55
- export interface Image {
56
- /** WixMedia image ID. */
57
- id?: string;
58
- /** Image URL. */
59
- url?: string;
60
- /**
61
- * Original image height.
62
- * @readonly
63
- */
64
- height?: number;
65
- /**
66
- * Original image width.
67
- * @readonly
68
- */
69
- width?: number;
70
- /** Image alt text. */
71
- altText?: string | null;
72
- /**
73
- * Image filename.
74
- * @readonly
75
- */
76
- filename?: string | null;
77
- }
78
- export interface FocalPoint {
55
+ interface FocalPoint {
79
56
  /** X-coordinate of the focal point. */
80
57
  x?: number;
81
58
  /** Y-coordinate of the focal point. */
@@ -85,7 +62,7 @@ export interface FocalPoint {
85
62
  /** crop by width */
86
63
  width?: number | null;
87
64
  }
88
- export declare enum ProgramStatus {
65
+ declare enum ProgramStatus {
89
66
  /** Unknown program status. */
90
67
  UNKNOWN = "UNKNOWN",
91
68
  /** Program was created but is not enabled yet. */
@@ -95,7 +72,7 @@ export declare enum ProgramStatus {
95
72
  /** Program was manually disabled by the user. This action can be reverted, meaning the user can set it to be active again. */
96
73
  PAUSED = "PAUSED"
97
74
  }
98
- export interface PointsExpiration {
75
+ interface PointsExpiration {
99
76
  /**
100
77
  * Status of the points expiration feature.
101
78
  * @readonly
@@ -114,7 +91,7 @@ export interface PointsExpiration {
114
91
  */
115
92
  expiringPointsPercentage?: number;
116
93
  }
117
- export declare enum Status {
94
+ declare enum Status {
118
95
  /** Unknown points expiration status. This value is not used. */
119
96
  UNKNOWN_STATUS = "UNKNOWN_STATUS",
120
97
  /** Points expiration feature is disabled. */
@@ -122,7 +99,7 @@ export declare enum Status {
122
99
  /** Points expiration feature is enabled. */
123
100
  ENABLED = "ENABLED"
124
101
  }
125
- export interface PremiumFeatures {
102
+ interface PremiumFeatures {
126
103
  /**
127
104
  * Whether there are any loyalty program premium features.
128
105
  * @readonly
@@ -139,14 +116,14 @@ export interface PremiumFeatures {
139
116
  */
140
117
  pointsExpiration?: boolean;
141
118
  }
142
- export interface SocialMediaSettings {
119
+ interface SocialMediaSettings {
143
120
  /**
144
121
  * List of social media channels
145
122
  * @maxSize 5
146
123
  */
147
124
  channels?: SocialMediaChannel[];
148
125
  }
149
- export interface SocialMediaChannel {
126
+ interface SocialMediaChannel {
150
127
  /** Social media channel type */
151
128
  type?: Type;
152
129
  /** Enable or disable social media channel */
@@ -156,7 +133,7 @@ export interface SocialMediaChannel {
156
133
  * @minLength 1
157
134
  * @maxLength 255
158
135
  */
159
- id?: string;
136
+ _id?: string;
160
137
  /**
161
138
  * Social media channel URL
162
139
  * @readonly
@@ -164,7 +141,7 @@ export interface SocialMediaChannel {
164
141
  */
165
142
  url?: string | null;
166
143
  }
167
- export declare enum Type {
144
+ declare enum Type {
168
145
  /** Unknown social media channel type. */
169
146
  UNKNOWN_CHANNEL = "UNKNOWN_CHANNEL",
170
147
  /** Facebook social media channel. */
@@ -178,19 +155,19 @@ export declare enum Type {
178
155
  /** TikTok social media channel. */
179
156
  TIKTOK = "TIKTOK"
180
157
  }
181
- export interface GetLoyaltyProgramRequest {
158
+ interface GetLoyaltyProgramRequest {
182
159
  }
183
- export interface GetLoyaltyProgramResponse {
160
+ interface GetLoyaltyProgramResponse {
184
161
  /** Retrieved loyalty program. */
185
162
  loyaltyProgram?: LoyaltyProgram;
186
163
  }
187
- export interface BulkGetLoyaltyProgramRequest {
164
+ interface BulkGetLoyaltyProgramRequest {
188
165
  }
189
- export interface BulkGetLoyaltyProgramResponse {
166
+ interface BulkGetLoyaltyProgramResponse {
190
167
  /** Retrieved loyalty programs. */
191
168
  programInSites?: ProgramInSite[];
192
169
  }
193
- export interface ProgramInSite {
170
+ interface ProgramInSite {
194
171
  /**
195
172
  * Metasite ID.
196
173
  * @format GUID
@@ -199,54 +176,54 @@ export interface ProgramInSite {
199
176
  /** Loyalty program. */
200
177
  loyaltyProgram?: LoyaltyProgram;
201
178
  }
202
- export interface UpdateLoyaltyProgramRequest {
179
+ interface UpdateLoyaltyProgramRequest {
203
180
  /** Loyalty program fields to update. */
204
181
  loyaltyProgram: LoyaltyProgram;
205
182
  }
206
- export interface UpdateLoyaltyProgramResponse {
183
+ interface UpdateLoyaltyProgramResponse {
207
184
  /** Updated loyalty program. */
208
185
  loyaltyProgram?: LoyaltyProgram;
209
186
  }
210
- export interface PointsExpirationConfigurationChanged {
187
+ interface PointsExpirationConfigurationChanged {
211
188
  /** Loyalty program. */
212
189
  loyaltyProgram?: LoyaltyProgram;
213
190
  /** Points expiration configuration changes */
214
191
  pointsExpirationChanges?: PointsExpirationChanges;
215
192
  }
216
- export interface PointsExpirationChanges {
193
+ interface PointsExpirationChanges {
217
194
  monthsOfInactivity?: number | null;
218
195
  expiringPointsPercentage?: number | null;
219
196
  }
220
- export interface ActivateLoyaltyProgramRequest {
197
+ interface ActivateLoyaltyProgramRequest {
221
198
  }
222
- export interface ActivateLoyaltyProgramResponse {
199
+ interface ActivateLoyaltyProgramResponse {
223
200
  /** Activated loyalty program. */
224
201
  loyaltyProgram?: LoyaltyProgram;
225
202
  }
226
- export interface LoyaltyProgramActivated {
203
+ interface LoyaltyProgramActivated {
227
204
  /** Activated loyalty program. */
228
205
  loyaltyProgram?: LoyaltyProgram;
229
206
  }
230
- export interface PauseLoyaltyProgramRequest {
207
+ interface PauseLoyaltyProgramRequest {
231
208
  }
232
- export interface PauseLoyaltyProgramResponse {
209
+ interface PauseLoyaltyProgramResponse {
233
210
  /** Paused loyalty program. */
234
211
  loyaltyProgram?: LoyaltyProgram;
235
212
  }
236
- export interface GetLoyaltyProgramDescriptionRequest {
213
+ interface GetLoyaltyProgramDescriptionRequest {
237
214
  /**
238
215
  * List of description fields to retrieve. Supported values: `description`, `updatedDate`.
239
216
  * @maxSize 2
240
217
  */
241
218
  fields?: string[];
242
219
  }
243
- export interface GetLoyaltyProgramDescriptionResponse {
220
+ interface GetLoyaltyProgramDescriptionResponse {
244
221
  /** Retrieved loyalty program description. */
245
222
  description?: string | null;
246
223
  /** Date and time of the latest description update. */
247
- updatedDate?: Date | null;
224
+ _updatedDate?: Date | null;
248
225
  }
249
- export interface UpdateLoyaltyProgramDescriptionRequest {
226
+ interface UpdateLoyaltyProgramDescriptionRequest {
250
227
  /**
251
228
  * Loyalty program description to update.
252
229
  * @minLength 1
@@ -254,13 +231,13 @@ export interface UpdateLoyaltyProgramDescriptionRequest {
254
231
  */
255
232
  description?: string;
256
233
  }
257
- export interface UpdateLoyaltyProgramDescriptionResponse {
234
+ interface UpdateLoyaltyProgramDescriptionResponse {
258
235
  }
259
- export interface LoyaltyProgramDescriptionUpdated {
236
+ interface LoyaltyProgramDescriptionUpdated {
260
237
  }
261
- export interface GetLoyaltyProgramPremiumFeaturesRequest {
238
+ interface GetLoyaltyProgramPremiumFeaturesRequest {
262
239
  }
263
- export interface GetLoyaltyProgramPremiumFeaturesResponse {
240
+ interface GetLoyaltyProgramPremiumFeaturesResponse {
264
241
  /**
265
242
  * Whether there are any loyalty program premium features.
266
243
  * @readonly
@@ -277,27 +254,27 @@ export interface GetLoyaltyProgramPremiumFeaturesResponse {
277
254
  */
278
255
  pointsExpiration?: boolean;
279
256
  }
280
- export interface EnablePointsExpirationRequest {
257
+ interface EnablePointsExpirationRequest {
281
258
  }
282
- export interface EnablePointsExpirationResponse {
259
+ interface EnablePointsExpirationResponse {
283
260
  /** Loyalty program with enabled points expiration feature. */
284
261
  loyaltyProgram?: LoyaltyProgram;
285
262
  }
286
- export interface PointsExpirationEnabled {
263
+ interface PointsExpirationEnabled {
287
264
  /** Loyalty program. */
288
265
  loyaltyProgram?: LoyaltyProgram;
289
266
  }
290
- export interface DisablePointsExpirationRequest {
267
+ interface DisablePointsExpirationRequest {
291
268
  }
292
- export interface DisablePointsExpirationResponse {
269
+ interface DisablePointsExpirationResponse {
293
270
  /** Loyalty program with disabled points expiration feature. */
294
271
  loyaltyProgram?: LoyaltyProgram;
295
272
  }
296
- export interface PointsExpirationDisabled {
273
+ interface PointsExpirationDisabled {
297
274
  /** Loyalty program. */
298
275
  loyaltyProgram?: LoyaltyProgram;
299
276
  }
300
- export interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
277
+ interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
301
278
  /** Emitted on a meta site creation. */
302
279
  siteCreated?: SiteCreated;
303
280
  /** Emitted on a meta site transfer completion. */
@@ -355,7 +332,7 @@ export interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
355
332
  assets?: Asset[];
356
333
  }
357
334
  /** @oneof */
358
- export interface MetaSiteSpecialEventPayloadOneOf {
335
+ interface MetaSiteSpecialEventPayloadOneOf {
359
336
  /** Emitted on a meta site creation. */
360
337
  siteCreated?: SiteCreated;
361
338
  /** Emitted on a meta site transfer completion. */
@@ -397,7 +374,7 @@ export interface MetaSiteSpecialEventPayloadOneOf {
397
374
  /** Site is marked as PurgedExternally */
398
375
  sitePurgedExternally?: SitePurgedExternally;
399
376
  }
400
- export interface Asset {
377
+ interface Asset {
401
378
  /**
402
379
  * An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).
403
380
  * @maxLength 36
@@ -411,14 +388,14 @@ export interface Asset {
411
388
  /** An application state. */
412
389
  state?: State;
413
390
  }
414
- export declare enum State {
391
+ declare enum State {
415
392
  UNKNOWN = "UNKNOWN",
416
393
  ENABLED = "ENABLED",
417
394
  DISABLED = "DISABLED",
418
395
  PENDING = "PENDING",
419
396
  DEMO = "DEMO"
420
397
  }
421
- export interface SiteCreated {
398
+ interface SiteCreated {
422
399
  /**
423
400
  * A template identifier (empty if not created from a template).
424
401
  * @maxLength 36
@@ -447,7 +424,7 @@ export interface SiteCreated {
447
424
  /** A namespace. */
448
425
  namespace?: Namespace;
449
426
  }
450
- export declare enum SiteCreatedContext {
427
+ declare enum SiteCreatedContext {
451
428
  /** A valid option, we don't expose all reasons why site might be created. */
452
429
  OTHER = "OTHER",
453
430
  /** A meta site was created from template. */
@@ -461,7 +438,7 @@ export declare enum SiteCreatedContext {
461
438
  /** deprecated A meta site was created for Flash editor. */
462
439
  FLASH = "FLASH"
463
440
  }
464
- export declare enum Namespace {
441
+ declare enum Namespace {
465
442
  UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
466
443
  /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
467
444
  WIX = "WIX",
@@ -539,10 +516,12 @@ export declare enum Namespace {
539
516
  /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
540
517
  STANDALONE_FORMS = "STANDALONE_FORMS",
541
518
  /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
542
- STANDALONE_EVENTS = "STANDALONE_EVENTS"
519
+ STANDALONE_EVENTS = "STANDALONE_EVENTS",
520
+ /** MIMIR - Siteless account for MIMIR Ai Job runner. */
521
+ MIMIR = "MIMIR"
543
522
  }
544
523
  /** Site transferred to another user. */
545
- export interface SiteTransferred {
524
+ interface SiteTransferred {
546
525
  /**
547
526
  * A previous owner id (user that transfers meta site).
548
527
  * @format GUID
@@ -555,11 +534,11 @@ export interface SiteTransferred {
555
534
  newOwnerId?: string;
556
535
  }
557
536
  /** Soft deletion of the meta site. Could be restored. */
558
- export interface SiteDeleted {
537
+ interface SiteDeleted {
559
538
  /** A deletion context. */
560
539
  deleteContext?: DeleteContext;
561
540
  }
562
- export interface DeleteContext {
541
+ interface DeleteContext {
563
542
  /** When the meta site was deleted. */
564
543
  dateDeleted?: Date | null;
565
544
  /** A status. */
@@ -575,7 +554,7 @@ export interface DeleteContext {
575
554
  */
576
555
  initiatorId?: string | null;
577
556
  }
578
- export declare enum DeleteStatus {
557
+ declare enum DeleteStatus {
579
558
  UNKNOWN = "UNKNOWN",
580
559
  TRASH = "TRASH",
581
560
  DELETED = "DELETED",
@@ -583,12 +562,12 @@ export declare enum DeleteStatus {
583
562
  PURGED_EXTERNALLY = "PURGED_EXTERNALLY"
584
563
  }
585
564
  /** Restoration of the meta site. */
586
- export interface SiteUndeleted {
565
+ interface SiteUndeleted {
587
566
  }
588
567
  /** First publish of a meta site. Or subsequent publish after unpublish. */
589
- export interface SitePublished {
568
+ interface SitePublished {
590
569
  }
591
- export interface SiteUnpublished {
570
+ interface SiteUnpublished {
592
571
  /**
593
572
  * A list of URLs previously associated with the meta site.
594
573
  * @maxLength 4000
@@ -596,9 +575,9 @@ export interface SiteUnpublished {
596
575
  */
597
576
  urls?: string[];
598
577
  }
599
- export interface SiteMarkedAsTemplate {
578
+ interface SiteMarkedAsTemplate {
600
579
  }
601
- export interface SiteMarkedAsWixSite {
580
+ interface SiteMarkedAsWixSite {
602
581
  }
603
582
  /**
604
583
  * Represents a service provisioned a site.
@@ -615,7 +594,7 @@ export interface SiteMarkedAsWixSite {
615
594
  * changes made to the original template afterward.
616
595
  * To ensure this, the TPA on the template gets a new instance_id.
617
596
  */
618
- export interface ServiceProvisioned {
597
+ interface ServiceProvisioned {
619
598
  /**
620
599
  * Either UUID or EmbeddedServiceType.
621
600
  * @maxLength 36
@@ -642,7 +621,7 @@ export interface ServiceProvisioned {
642
621
  */
643
622
  originMetaSiteId?: string | null;
644
623
  }
645
- export interface ServiceRemoved {
624
+ interface ServiceRemoved {
646
625
  /**
647
626
  * Either UUID or EmbeddedServiceType.
648
627
  * @maxLength 36
@@ -660,7 +639,7 @@ export interface ServiceRemoved {
660
639
  version?: string | null;
661
640
  }
662
641
  /** Rename of the site. Meaning, free public url has been changed as well. */
663
- export interface SiteRenamed {
642
+ interface SiteRenamed {
664
643
  /**
665
644
  * A new meta site name (URL slug).
666
645
  * @maxLength 20
@@ -677,21 +656,21 @@ export interface SiteRenamed {
677
656
  *
678
657
  * Could not be restored. Therefore it's desirable to cleanup data.
679
658
  */
680
- export interface SiteHardDeleted {
659
+ interface SiteHardDeleted {
681
660
  /** A deletion context. */
682
661
  deleteContext?: DeleteContext;
683
662
  }
684
- export interface NamespaceChanged {
663
+ interface NamespaceChanged {
685
664
  /** A previous namespace. */
686
665
  oldNamespace?: Namespace;
687
666
  /** A new namespace. */
688
667
  newNamespace?: Namespace;
689
668
  }
690
669
  /** Assigned Studio editor */
691
- export interface StudioAssigned {
670
+ interface StudioAssigned {
692
671
  }
693
672
  /** Unassigned Studio editor */
694
- export interface StudioUnassigned {
673
+ interface StudioUnassigned {
695
674
  }
696
675
  /**
697
676
  * Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.
@@ -701,13 +680,13 @@ export interface StudioUnassigned {
701
680
  *
702
681
  * https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service
703
682
  */
704
- export interface SiteUrlChanged {
683
+ interface SiteUrlChanged {
705
684
  }
706
685
  /**
707
686
  * Used at the end of the deletion flow for both draft sites and when a user deletes a site.
708
687
  * Consumed by other teams to remove relevant data.
709
688
  */
710
- export interface SitePurgedExternally {
689
+ interface SitePurgedExternally {
711
690
  /**
712
691
  * @maxLength 2048
713
692
  * @maxSize 100
@@ -716,9 +695,9 @@ export interface SitePurgedExternally {
716
695
  */
717
696
  appDefId?: string[];
718
697
  }
719
- export interface Empty {
698
+ interface Empty {
720
699
  }
721
- export interface FeatureEvent extends FeatureEventEventOneOf {
700
+ interface FeatureEvent extends FeatureEventEventOneOf {
722
701
  /**
723
702
  * Information about an event that makes a feature eligible to the user.
724
703
  * Triggered for example, for new features or when a feature is reassigned
@@ -752,7 +731,7 @@ export interface FeatureEvent extends FeatureEventEventOneOf {
752
731
  timestamp?: Date | null;
753
732
  }
754
733
  /** @oneof */
755
- export interface FeatureEventEventOneOf {
734
+ interface FeatureEventEventOneOf {
756
735
  /**
757
736
  * Information about an event that makes a feature eligible to the user.
758
737
  * Triggered for example, for new features or when a feature is reassigned
@@ -781,7 +760,7 @@ export interface FeatureEventEventOneOf {
781
760
  cancelled?: FeatureCancelled;
782
761
  }
783
762
  /** Feature created or enabled after disabled state */
784
- export interface FeatureEnabled extends FeatureEnabledReasonOneOf {
763
+ interface FeatureEnabled extends FeatureEnabledReasonOneOf {
785
764
  /** Information about a transfer from another account. */
786
765
  transferredFromAnotherAccount?: TransferredFromAnotherAccountReason;
787
766
  /** Information about a transfer from another site. */
@@ -812,7 +791,7 @@ export interface FeatureEnabled extends FeatureEnabledReasonOneOf {
812
791
  reassignedFromMetasite?: string | null;
813
792
  }
814
793
  /** @oneof */
815
- export interface FeatureEnabledReasonOneOf {
794
+ interface FeatureEnabledReasonOneOf {
816
795
  /** Information about a transfer from another account. */
817
796
  transferredFromAnotherAccount?: TransferredFromAnotherAccountReason;
818
797
  /** Information about a transfer from another site. */
@@ -828,7 +807,7 @@ export interface FeatureEnabledReasonOneOf {
828
807
  /** Information about a feature that was migrated from legacy. */
829
808
  migratedFromLegacy?: MigratedFromLegacyReason;
830
809
  }
831
- export interface Feature extends FeatureQuantityInfoOneOf {
810
+ interface Feature extends FeatureQuantityInfoOneOf {
832
811
  /**
833
812
  * Deprecated. Use `enabled` instead.
834
813
  * @deprecated
@@ -845,7 +824,7 @@ export interface Feature extends FeatureQuantityInfoOneOf {
845
824
  * `{"id": "DEFAULT"}`. Use `uniqueName` as unique identifier for a feature.
846
825
  * @readonly
847
826
  */
848
- id?: string;
827
+ _id?: string;
849
828
  /**
850
829
  * Unique name of the feature. Only lower case letters, numbers, and dashes
851
830
  * `-` are supported. Used in the endpoints of the
@@ -909,7 +888,7 @@ export interface Feature extends FeatureQuantityInfoOneOf {
909
888
  metadata?: Record<string, string>;
910
889
  }
911
890
  /** @oneof */
912
- export interface FeatureQuantityInfoOneOf {
891
+ interface FeatureQuantityInfoOneOf {
913
892
  /**
914
893
  * Deprecated. Use `enabled` instead.
915
894
  * @deprecated
@@ -926,7 +905,7 @@ export interface FeatureQuantityInfoOneOf {
926
905
  * Note: Do not confuse with feature scope which is configured in the product catalog
927
906
  * and defines in which context the product can be used
928
907
  */
929
- export interface FeatureContext {
908
+ interface FeatureContext {
930
909
  /**
931
910
  * ID of the Wix account that the feature instance belongs to.
932
911
  * Available for both site and account level feature instances.
@@ -946,10 +925,10 @@ export interface FeatureContext {
946
925
  * 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).
947
926
  * A boolean feature is similar to a quantitive feature with a default limit of 0 and UNLIMITED premium limit (although a bit simplified).
948
927
  */
949
- export interface BooleanFeature {
928
+ interface BooleanFeature {
950
929
  }
951
930
  /** 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. */
952
- export interface QuotaFeature {
931
+ interface QuotaFeature {
953
932
  /** Default (or Freemium) quota limitation. if left undefined the free feature has unlimited amount. */
954
933
  limit?: string | null;
955
934
  /** Periodic time-frame to reset the usage counter. You may use NO_PERIOD if counter shouldn't be reset. */
@@ -958,7 +937,7 @@ export interface QuotaFeature {
958
937
  units?: string | null;
959
938
  }
960
939
  /** Determines the reset cycle of the feature usage. */
961
- export declare enum FeaturePeriod {
940
+ declare enum FeaturePeriod {
962
941
  NO_PERIOD = "NO_PERIOD",
963
942
  MILLISECOND = "MILLISECOND",
964
943
  SECOND = "SECOND",
@@ -969,7 +948,7 @@ export declare enum FeaturePeriod {
969
948
  MONTH = "MONTH",
970
949
  YEAR = "YEAR"
971
950
  }
972
- export interface QuotaInfo {
951
+ interface QuotaInfo {
973
952
  /**
974
953
  * How often the customer is allowed to use the feature during the specified
975
954
  * period. `null` means that the customer has unlimited access to the feature.
@@ -994,7 +973,7 @@ export interface QuotaInfo {
994
973
  remainingUsage?: string | null;
995
974
  }
996
975
  /** Subscription transferred from another account, features on the current account were enabled. */
997
- export interface TransferredFromAnotherAccountReason {
976
+ interface TransferredFromAnotherAccountReason {
998
977
  /**
999
978
  * Information about a transfer from another account.
1000
979
  * @format GUID
@@ -1002,7 +981,7 @@ export interface TransferredFromAnotherAccountReason {
1002
981
  transferredFromAccount?: string;
1003
982
  }
1004
983
  /** Subscription moved from one site to another in the same account, features enabled on the target site */
1005
- export interface ReassignedFromSiteReason {
984
+ interface ReassignedFromSiteReason {
1006
985
  /**
1007
986
  * Information about a transfer from another site.
1008
987
  * @format GUID
@@ -1010,22 +989,22 @@ export interface ReassignedFromSiteReason {
1010
989
  reassignedFromMetasite?: string;
1011
990
  }
1012
991
  /** Subscription was floating and assigned to site, features enabled on the target site */
1013
- export interface AssignedFromFloatingReason {
992
+ interface AssignedFromFloatingReason {
1014
993
  }
1015
994
  /** New subscription created and features created as enabled */
1016
- export interface NewFeatureReason {
995
+ interface NewFeatureReason {
1017
996
  }
1018
997
  /** Subscription was upgraded or downgraded, as a result new features enabled, missing features disabled , quantities are updated */
1019
- export interface ContractSwitchedReason {
998
+ interface ContractSwitchedReason {
1020
999
  }
1021
1000
  /** a call to CreateFeature in features-writer, creates feature that is not attached to subscription */
1022
- export interface ManualFeatureCreationReason {
1001
+ interface ManualFeatureCreationReason {
1023
1002
  }
1024
1003
  /** Subscription created due to migration from old premium model */
1025
- export interface MigratedFromLegacyReason {
1004
+ interface MigratedFromLegacyReason {
1026
1005
  }
1027
1006
  /** Feature disabled and can be enabled in the future */
1028
- export interface FeatureDisabled extends FeatureDisabledReasonOneOf {
1007
+ interface FeatureDisabled extends FeatureDisabledReasonOneOf {
1029
1008
  /** Information about a feature that's no longer assigned to a site. */
1030
1009
  unassingedToFloating?: UnAssingedToFloatingReason;
1031
1010
  /**
@@ -1050,7 +1029,7 @@ export interface FeatureDisabled extends FeatureDisabledReasonOneOf {
1050
1029
  metaSiteId?: string | null;
1051
1030
  }
1052
1031
  /** @oneof */
1053
- export interface FeatureDisabledReasonOneOf {
1032
+ interface FeatureDisabledReasonOneOf {
1054
1033
  /** Information about a feature that's no longer assigned to a site. */
1055
1034
  unassingedToFloating?: UnAssingedToFloatingReason;
1056
1035
  /**
@@ -1065,13 +1044,13 @@ export interface FeatureDisabledReasonOneOf {
1065
1044
  reassignedToAnotherSite?: ReassignedToAnotherSiteReason;
1066
1045
  }
1067
1046
  /** Subscription was unassigned from the site and moved into floating state */
1068
- export interface UnAssingedToFloatingReason {
1047
+ interface UnAssingedToFloatingReason {
1069
1048
  }
1070
1049
  /** Another subscription was assigned to the site, causing existing features on this site to be disabled */
1071
- export interface ReplacedByAnotherSubscriptionReason {
1050
+ interface ReplacedByAnotherSubscriptionReason {
1072
1051
  }
1073
1052
  /** Subscription was assigned to another site, causing features on the origin site to be disabled. */
1074
- export interface ReassignedToAnotherSiteReason {
1053
+ interface ReassignedToAnotherSiteReason {
1075
1054
  /**
1076
1055
  * Information about a transfer to the site.
1077
1056
  * @format GUID
@@ -1079,7 +1058,7 @@ export interface ReassignedToAnotherSiteReason {
1079
1058
  reassignedToMetasite?: string;
1080
1059
  }
1081
1060
  /** Feature updated, for example Quota was increased due to upgrade */
1082
- export interface FeatureUpdated extends FeatureUpdatedPreviousQuantityInfoOneOf, FeatureUpdatedReasonOneOf {
1061
+ interface FeatureUpdated extends FeatureUpdatedPreviousQuantityInfoOneOf, FeatureUpdatedReasonOneOf {
1083
1062
  /** Information about a feature that doesn't have a usage quota. */
1084
1063
  booleanFeature?: BooleanFeature;
1085
1064
  /** Information about a feature that has a usage quota. */
@@ -1093,19 +1072,19 @@ export interface FeatureUpdated extends FeatureUpdatedPreviousQuantityInfoOneOf,
1093
1072
  feature?: Feature;
1094
1073
  }
1095
1074
  /** @oneof */
1096
- export interface FeatureUpdatedPreviousQuantityInfoOneOf {
1075
+ interface FeatureUpdatedPreviousQuantityInfoOneOf {
1097
1076
  /** Information about a feature that doesn't have a usage quota. */
1098
1077
  booleanFeature?: BooleanFeature;
1099
1078
  /** Information about a feature that has a usage quota. */
1100
1079
  quotaFeature?: QuotaFeature;
1101
1080
  }
1102
1081
  /** @oneof */
1103
- export interface FeatureUpdatedReasonOneOf {
1082
+ interface FeatureUpdatedReasonOneOf {
1104
1083
  /** Information about the contract switch. */
1105
1084
  contractSwitched?: ContractSwitchedReason;
1106
1085
  }
1107
1086
  /** Feature was permanently cancelled */
1108
- export interface FeatureCancelled extends FeatureCancelledReasonOneOf {
1087
+ interface FeatureCancelled extends FeatureCancelledReasonOneOf {
1109
1088
  /** Information about a transfer to the account. */
1110
1089
  transferredToAnotherAccount?: TransferredToAnotherAccountReason;
1111
1090
  /** Information about the contract switch. */
@@ -1122,7 +1101,7 @@ export interface FeatureCancelled extends FeatureCancelledReasonOneOf {
1122
1101
  transferredToAccount?: string | null;
1123
1102
  }
1124
1103
  /** @oneof */
1125
- export interface FeatureCancelledReasonOneOf {
1104
+ interface FeatureCancelledReasonOneOf {
1126
1105
  /** Information about a transfer to the account. */
1127
1106
  transferredToAnotherAccount?: TransferredToAnotherAccountReason;
1128
1107
  /** Information about the contract switch. */
@@ -1131,7 +1110,7 @@ export interface FeatureCancelledReasonOneOf {
1131
1110
  cancelRequest?: CancelRequestedReason;
1132
1111
  }
1133
1112
  /** Subscription was transferred to another account, features in the origin account were cancelled */
1134
- export interface TransferredToAnotherAccountReason {
1113
+ interface TransferredToAnotherAccountReason {
1135
1114
  /**
1136
1115
  * Information about a transfer to the account.
1137
1116
  * @format GUID
@@ -1139,9 +1118,9 @@ export interface TransferredToAnotherAccountReason {
1139
1118
  transferredToAccount?: string;
1140
1119
  }
1141
1120
  /** Cancellation was requested from the subscription manager api, might be a result of billing event, or direct call */
1142
- export interface CancelRequestedReason {
1121
+ interface CancelRequestedReason {
1143
1122
  }
1144
- export interface DomainEvent extends DomainEventBodyOneOf {
1123
+ interface DomainEvent extends DomainEventBodyOneOf {
1145
1124
  createdEvent?: EntityCreatedEvent;
1146
1125
  updatedEvent?: EntityUpdatedEvent;
1147
1126
  deletedEvent?: EntityDeletedEvent;
@@ -1150,7 +1129,7 @@ export interface DomainEvent extends DomainEventBodyOneOf {
1150
1129
  * Unique event ID.
1151
1130
  * Allows clients to ignore duplicate webhooks.
1152
1131
  */
1153
- id?: string;
1132
+ _id?: string;
1154
1133
  /**
1155
1134
  * Assumes actions are also always typed to an entity_type
1156
1135
  * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
@@ -1184,36 +1163,34 @@ export interface DomainEvent extends DomainEventBodyOneOf {
1184
1163
  entityEventSequence?: string | null;
1185
1164
  }
1186
1165
  /** @oneof */
1187
- export interface DomainEventBodyOneOf {
1166
+ interface DomainEventBodyOneOf {
1188
1167
  createdEvent?: EntityCreatedEvent;
1189
1168
  updatedEvent?: EntityUpdatedEvent;
1190
1169
  deletedEvent?: EntityDeletedEvent;
1191
1170
  actionEvent?: ActionEvent;
1192
1171
  }
1193
- export interface EntityCreatedEvent {
1194
- entityAsJson?: string;
1195
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
1196
- restoreInfo?: RestoreInfo;
1172
+ interface EntityCreatedEvent {
1173
+ entity?: string;
1197
1174
  }
1198
- export interface RestoreInfo {
1175
+ interface RestoreInfo {
1199
1176
  deletedDate?: Date | null;
1200
1177
  }
1201
- export interface EntityUpdatedEvent {
1178
+ interface EntityUpdatedEvent {
1202
1179
  /**
1203
1180
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1204
1181
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1205
1182
  * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1206
1183
  */
1207
- currentEntityAsJson?: string;
1184
+ currentEntity?: string;
1208
1185
  }
1209
- export interface EntityDeletedEvent {
1186
+ interface EntityDeletedEvent {
1210
1187
  /** Entity that was deleted */
1211
- deletedEntityAsJson?: string | null;
1188
+ deletedEntity?: string | null;
1212
1189
  }
1213
- export interface ActionEvent {
1214
- bodyAsJson?: string;
1190
+ interface ActionEvent {
1191
+ body?: string;
1215
1192
  }
1216
- export interface MessageEnvelope {
1193
+ interface MessageEnvelope {
1217
1194
  /**
1218
1195
  * App instance ID.
1219
1196
  * @format GUID
@@ -1229,7 +1206,7 @@ export interface MessageEnvelope {
1229
1206
  /** Stringify payload. */
1230
1207
  data?: string;
1231
1208
  }
1232
- export interface IdentificationData extends IdentificationDataIdOneOf {
1209
+ interface IdentificationData extends IdentificationDataIdOneOf {
1233
1210
  /**
1234
1211
  * ID of a site visitor that has not logged in to the site.
1235
1212
  * @format GUID
@@ -1254,7 +1231,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
1254
1231
  identityType?: WebhookIdentityType;
1255
1232
  }
1256
1233
  /** @oneof */
1257
- export interface IdentificationDataIdOneOf {
1234
+ interface IdentificationDataIdOneOf {
1258
1235
  /**
1259
1236
  * ID of a site visitor that has not logged in to the site.
1260
1237
  * @format GUID
@@ -1276,80 +1253,68 @@ export interface IdentificationDataIdOneOf {
1276
1253
  */
1277
1254
  appId?: string;
1278
1255
  }
1279
- export declare enum WebhookIdentityType {
1256
+ declare enum WebhookIdentityType {
1280
1257
  UNKNOWN = "UNKNOWN",
1281
1258
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1282
1259
  MEMBER = "MEMBER",
1283
1260
  WIX_USER = "WIX_USER",
1284
1261
  APP = "APP"
1285
1262
  }
1286
- interface FocalPointNonNullableFields {
1287
- x: number;
1288
- y: number;
1289
- }
1290
- interface ImageNonNullableFields {
1291
- id: string;
1292
- url: string;
1293
- height: number;
1294
- width: number;
1295
- focalPoint?: FocalPointNonNullableFields;
1296
- }
1297
- interface PointDefinitionNonNullableFields {
1298
- icon?: ImageNonNullableFields;
1299
- }
1300
- interface PointsExpirationNonNullableFields {
1301
- status: Status;
1302
- monthsOfInactivity: number;
1303
- expiringPointsPercentage: number;
1304
- }
1305
- interface PremiumFeaturesNonNullableFields {
1306
- loyaltyProgram: boolean;
1307
- tiers: boolean;
1308
- pointsExpiration: boolean;
1309
- }
1310
- interface SocialMediaChannelNonNullableFields {
1311
- type: Type;
1312
- enabled: boolean;
1313
- id: string;
1314
- }
1315
- interface SocialMediaSettingsNonNullableFields {
1316
- channels: SocialMediaChannelNonNullableFields[];
1317
- }
1318
- interface LoyaltyProgramNonNullableFields {
1319
- pointDefinition?: PointDefinitionNonNullableFields;
1320
- status: ProgramStatus;
1321
- pointsExpiration?: PointsExpirationNonNullableFields;
1322
- premiumFeatures?: PremiumFeaturesNonNullableFields;
1323
- socialMediaSettings?: SocialMediaSettingsNonNullableFields;
1324
- }
1325
- export interface GetLoyaltyProgramResponseNonNullableFields {
1326
- loyaltyProgram?: LoyaltyProgramNonNullableFields;
1327
- }
1328
- interface ProgramInSiteNonNullableFields {
1329
- metaSiteId: string;
1330
- loyaltyProgram?: LoyaltyProgramNonNullableFields;
1331
- }
1332
- export interface BulkGetLoyaltyProgramResponseNonNullableFields {
1333
- programInSites: ProgramInSiteNonNullableFields[];
1334
- }
1335
- export interface UpdateLoyaltyProgramResponseNonNullableFields {
1336
- loyaltyProgram?: LoyaltyProgramNonNullableFields;
1337
- }
1338
- export interface ActivateLoyaltyProgramResponseNonNullableFields {
1339
- loyaltyProgram?: LoyaltyProgramNonNullableFields;
1340
- }
1341
- export interface PauseLoyaltyProgramResponseNonNullableFields {
1342
- loyaltyProgram?: LoyaltyProgramNonNullableFields;
1343
- }
1344
- export interface GetLoyaltyProgramPremiumFeaturesResponseNonNullableFields {
1345
- loyaltyProgram: boolean;
1346
- tiers: boolean;
1347
- pointsExpiration: boolean;
1263
+ interface BaseEventMetadata {
1264
+ /**
1265
+ * App instance ID.
1266
+ * @format GUID
1267
+ */
1268
+ instanceId?: string | null;
1269
+ /**
1270
+ * Event type.
1271
+ * @maxLength 150
1272
+ */
1273
+ eventType?: string;
1274
+ /** The identification type and identity data. */
1275
+ identity?: IdentificationData;
1348
1276
  }
1349
- export interface EnablePointsExpirationResponseNonNullableFields {
1350
- loyaltyProgram?: LoyaltyProgramNonNullableFields;
1277
+ interface EventMetadata extends BaseEventMetadata {
1278
+ /**
1279
+ * Unique event ID.
1280
+ * Allows clients to ignore duplicate webhooks.
1281
+ */
1282
+ _id?: string;
1283
+ /**
1284
+ * Assumes actions are also always typed to an entity_type
1285
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
1286
+ */
1287
+ entityFqdn?: string;
1288
+ /**
1289
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
1290
+ * This is although the created/updated/deleted notion is duplication of the oneof types
1291
+ * Example: created/updated/deleted/started/completed/email_opened
1292
+ */
1293
+ slug?: string;
1294
+ /** ID of the entity associated with the event. */
1295
+ entityId?: string;
1296
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
1297
+ eventTime?: Date | null;
1298
+ /**
1299
+ * Whether the event was triggered as a result of a privacy regulation application
1300
+ * (for example, GDPR).
1301
+ */
1302
+ triggeredByAnonymizeRequest?: boolean | null;
1303
+ /** If present, indicates the action that triggered the event. */
1304
+ originatedFrom?: string | null;
1305
+ /**
1306
+ * A sequence number defining the order of updates to the underlying entity.
1307
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
1308
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
1309
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
1310
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
1311
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
1312
+ */
1313
+ entityEventSequence?: string | null;
1351
1314
  }
1352
- export interface DisablePointsExpirationResponseNonNullableFields {
1353
- loyaltyProgram?: LoyaltyProgramNonNullableFields;
1315
+ interface ProgramUpdatedEnvelope {
1316
+ entity: LoyaltyProgram;
1317
+ metadata: EventMetadata;
1354
1318
  }
1355
- export {};
1319
+
1320
+ export { type SiteMarkedAsTemplate as $, type ActivateLoyaltyProgramResponse as A, type BulkGetLoyaltyProgramResponse as B, type EnablePointsExpirationRequest as C, type DisablePointsExpirationResponse as D, type EnablePointsExpirationResponse as E, FeaturePeriod as F, type GetLoyaltyProgramResponse as G, type PointsExpirationEnabled as H, type DisablePointsExpirationRequest as I, type PointsExpirationDisabled as J, type MetaSiteSpecialEventPayloadOneOf as K, type LoyaltyProgram as L, type MetaSiteSpecialEvent as M, Namespace as N, type Asset as O, type PauseLoyaltyProgramResponse as P, type SiteCreated as Q, type SiteTransferred as R, Status as S, Type as T, type UpdateLoyaltyProgramResponse as U, type SiteDeleted as V, WebhookIdentityType as W, type DeleteContext as X, type SiteUndeleted as Y, type SitePublished as Z, type SiteUnpublished as _, type GetLoyaltyProgramPremiumFeaturesResponse as a, type SiteMarkedAsWixSite as a0, type ServiceProvisioned as a1, type ServiceRemoved as a2, type SiteRenamed as a3, type SiteHardDeleted as a4, type NamespaceChanged as a5, type StudioAssigned as a6, type StudioUnassigned as a7, type SiteUrlChanged as a8, type SitePurgedExternally as a9, type FeatureCancelled as aA, type FeatureCancelledReasonOneOf as aB, type TransferredToAnotherAccountReason as aC, type CancelRequestedReason as aD, type DomainEvent as aE, type DomainEventBodyOneOf as aF, type EntityCreatedEvent as aG, type RestoreInfo as aH, type EntityUpdatedEvent as aI, type EntityDeletedEvent as aJ, type ActionEvent as aK, type MessageEnvelope as aL, type IdentificationData as aM, type IdentificationDataIdOneOf as aN, type BaseEventMetadata as aO, type EventMetadata as aP, type ProgramUpdatedEnvelope as aQ, type Empty as aa, type FeatureEvent as ab, type FeatureEventEventOneOf as ac, type FeatureEnabled as ad, type FeatureEnabledReasonOneOf as ae, type Feature as af, type FeatureQuantityInfoOneOf as ag, type FeatureContext as ah, type BooleanFeature as ai, type QuotaFeature as aj, type QuotaInfo as ak, type TransferredFromAnotherAccountReason as al, type ReassignedFromSiteReason as am, type AssignedFromFloatingReason as an, type NewFeatureReason as ao, type ContractSwitchedReason as ap, type ManualFeatureCreationReason as aq, type MigratedFromLegacyReason as ar, type FeatureDisabled as as, type FeatureDisabledReasonOneOf as at, type UnAssingedToFloatingReason as au, type ReplacedByAnotherSubscriptionReason as av, type ReassignedToAnotherSiteReason as aw, type FeatureUpdated as ax, type FeatureUpdatedPreviousQuantityInfoOneOf as ay, type FeatureUpdatedReasonOneOf as az, ProgramStatus as b, State as c, SiteCreatedContext as d, DeleteStatus as e, type PointDefinition as f, type FocalPoint as g, type PointsExpiration as h, type PremiumFeatures as i, type SocialMediaSettings as j, type SocialMediaChannel as k, type GetLoyaltyProgramRequest as l, type BulkGetLoyaltyProgramRequest as m, type ProgramInSite as n, type UpdateLoyaltyProgramRequest as o, type PointsExpirationConfigurationChanged as p, type PointsExpirationChanges as q, type ActivateLoyaltyProgramRequest as r, type LoyaltyProgramActivated as s, type PauseLoyaltyProgramRequest as t, type GetLoyaltyProgramDescriptionRequest as u, type GetLoyaltyProgramDescriptionResponse as v, type UpdateLoyaltyProgramDescriptionRequest as w, type UpdateLoyaltyProgramDescriptionResponse as x, type LoyaltyProgramDescriptionUpdated as y, type GetLoyaltyProgramPremiumFeaturesRequest as z };