@wix/auto_sdk_stores_read-only-variants-v-3 1.0.9 → 1.0.11

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 (132) hide show
  1. package/build/{cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal.d.ts → index.d.mts} +410 -528
  2. package/build/{es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal.d.ts → index.d.ts} +410 -528
  3. package/build/index.js +923 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +831 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/index.d.mts +35 -0
  8. package/build/internal/index.d.ts +35 -0
  9. package/build/internal/index.js +923 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +831 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/build/internal/meta.d.mts +1271 -0
  14. package/build/internal/meta.d.ts +1271 -0
  15. package/build/internal/meta.js +209 -0
  16. package/build/internal/meta.js.map +1 -0
  17. package/build/internal/meta.mjs +181 -0
  18. package/build/internal/meta.mjs.map +1 -0
  19. package/build/internal/{cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal.d.ts → stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-Co7RmbZM.d.mts} +412 -516
  20. package/build/internal/{es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal.d.ts → stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal-Co7RmbZM.d.ts} +412 -516
  21. package/build/meta.d.mts +1271 -0
  22. package/build/meta.d.ts +1271 -0
  23. package/build/meta.js +209 -0
  24. package/build/meta.js.map +1 -0
  25. package/build/meta.mjs +181 -0
  26. package/build/meta.mjs.map +1 -0
  27. package/package.json +12 -11
  28. package/build/cjs/index.d.ts +0 -1
  29. package/build/cjs/index.js +0 -18
  30. package/build/cjs/index.js.map +0 -1
  31. package/build/cjs/index.typings.d.ts +0 -3
  32. package/build/cjs/index.typings.js +0 -18
  33. package/build/cjs/index.typings.js.map +0 -1
  34. package/build/cjs/meta.d.ts +0 -1
  35. package/build/cjs/meta.js +0 -18
  36. package/build/cjs/meta.js.map +0 -1
  37. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.context.d.ts +0 -2
  38. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.context.js +0 -79
  39. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.context.js.map +0 -1
  40. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.http.d.ts +0 -16
  41. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.http.js +0 -145
  42. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.http.js.map +0 -1
  43. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.meta.d.ts +0 -14
  44. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.meta.js +0 -66
  45. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.meta.js.map +0 -1
  46. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.public.d.ts +0 -4
  47. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.public.js +0 -89
  48. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.public.js.map +0 -1
  49. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.types.d.ts +0 -4698
  50. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.types.js +0 -695
  51. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.types.js.map +0 -1
  52. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal.js +0 -910
  53. package/build/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal.js.map +0 -1
  54. package/build/es/index.d.ts +0 -1
  55. package/build/es/index.js +0 -2
  56. package/build/es/index.js.map +0 -1
  57. package/build/es/index.typings.d.ts +0 -3
  58. package/build/es/index.typings.js +0 -2
  59. package/build/es/index.typings.js.map +0 -1
  60. package/build/es/meta.d.ts +0 -1
  61. package/build/es/meta.js +0 -2
  62. package/build/es/meta.js.map +0 -1
  63. package/build/es/package.json +0 -3
  64. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.context.d.ts +0 -2
  65. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.context.js +0 -8
  66. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.context.js.map +0 -1
  67. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.http.d.ts +0 -16
  68. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.http.js +0 -140
  69. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.http.js.map +0 -1
  70. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.meta.d.ts +0 -14
  71. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.meta.js +0 -38
  72. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.meta.js.map +0 -1
  73. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.public.d.ts +0 -4
  74. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.public.js +0 -16
  75. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.public.js.map +0 -1
  76. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.types.d.ts +0 -4698
  77. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.types.js +0 -691
  78. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.types.js.map +0 -1
  79. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal.js +0 -881
  80. package/build/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal.js.map +0 -1
  81. package/build/internal/cjs/index.d.ts +0 -1
  82. package/build/internal/cjs/index.js +0 -18
  83. package/build/internal/cjs/index.js.map +0 -1
  84. package/build/internal/cjs/index.typings.d.ts +0 -54
  85. package/build/internal/cjs/index.typings.js +0 -18
  86. package/build/internal/cjs/index.typings.js.map +0 -1
  87. package/build/internal/cjs/meta.d.ts +0 -1
  88. package/build/internal/cjs/meta.js +0 -18
  89. package/build/internal/cjs/meta.js.map +0 -1
  90. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.context.d.ts +0 -8
  91. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.context.js +0 -79
  92. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.context.js.map +0 -1
  93. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.http.d.ts +0 -16
  94. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.http.js +0 -145
  95. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.http.js.map +0 -1
  96. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.meta.d.ts +0 -14
  97. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.meta.js +0 -66
  98. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.meta.js.map +0 -1
  99. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.public.d.ts +0 -30
  100. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.public.js +0 -89
  101. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.public.js.map +0 -1
  102. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.types.d.ts +0 -4698
  103. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.types.js +0 -695
  104. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.types.js.map +0 -1
  105. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal.js +0 -910
  106. package/build/internal/cjs/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal.js.map +0 -1
  107. package/build/internal/es/index.d.ts +0 -1
  108. package/build/internal/es/index.js +0 -2
  109. package/build/internal/es/index.js.map +0 -1
  110. package/build/internal/es/index.typings.d.ts +0 -54
  111. package/build/internal/es/index.typings.js +0 -2
  112. package/build/internal/es/index.typings.js.map +0 -1
  113. package/build/internal/es/meta.d.ts +0 -1
  114. package/build/internal/es/meta.js +0 -2
  115. package/build/internal/es/meta.js.map +0 -1
  116. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.context.d.ts +0 -8
  117. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.context.js +0 -8
  118. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.context.js.map +0 -1
  119. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.http.d.ts +0 -16
  120. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.http.js +0 -140
  121. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.http.js.map +0 -1
  122. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.meta.d.ts +0 -14
  123. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.meta.js +0 -38
  124. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.meta.js.map +0 -1
  125. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.public.d.ts +0 -30
  126. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.public.js +0 -16
  127. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.public.js.map +0 -1
  128. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.types.d.ts +0 -4698
  129. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.types.js +0 -691
  130. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.types.js.map +0 -1
  131. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal.js +0 -881
  132. package/build/internal/es/src/stores-catalog-v3-read-only-variant-read-only-variants-v-3.universal.js.map +0 -1
@@ -1,4698 +0,0 @@
1
- export interface ReadOnlyVariant extends ReadOnlyVariantTypedPropertiesOneOf {
2
- /** Physical properties. Must be passed when `productType: PHYSICAL` */
3
- physicalProperties?: V3VariantPhysicalProperties;
4
- /** Digital properties. Must be passed when `productType: DIGITAL` */
5
- digitalProperties?: V3VariantDigitalProperties;
6
- /**
7
- * Variant ID.
8
- * @format GUID
9
- * @readonly
10
- */
11
- id?: string;
12
- /**
13
- * Whether the variant is visible to site visitors.
14
- *
15
- * Default: `true`
16
- * @readonly
17
- */
18
- visible?: boolean | null;
19
- /**
20
- * Variant SKU (stock keeping unit).
21
- * @minLength 1
22
- * @maxLength 40
23
- * @readonly
24
- */
25
- sku?: string | null;
26
- /**
27
- * Variant barcode.
28
- * @minLength 1
29
- * @maxLength 40
30
- * @readonly
31
- */
32
- barcode?: string | null;
33
- /**
34
- * List of option choices
35
- * In case this list is empty, this is the default variant of an unmanaged product. - check if bridges need more than ids
36
- * @maxSize 6
37
- * @readonly
38
- */
39
- optionChoices?: V3OptionChoice[];
40
- /**
41
- * Variant price.
42
- * @readonly
43
- */
44
- price?: V3PriceInfo;
45
- /**
46
- * Variant revenue details.
47
- *
48
- * > **Note:** Returned only when the following conditions are met:
49
- * > + You pass `"MERCHANT_DATA"` to the `fields` array in Products API requests.
50
- * > + Your app has the required `SCOPE.STORES.PRODUCT_READ_ADMIN` permission scope.
51
- * @readonly
52
- */
53
- revenueDetails?: V3RevenueDetails;
54
- /**
55
- * Variant media.
56
- * @readonly
57
- */
58
- media?: V3ProductMedia;
59
- /**
60
- * Subscription prices calculated by applying subscription discount to the variant `price.actualPrice`.
61
- * > **Note:** Returned only when you pass `"SUBSCRIPTION_PRICES_INFO"` to the `fields` array in Products API requests.
62
- * @readonly
63
- */
64
- subscriptionPricesInfo?: V3SubscriptionPricesInfo;
65
- /**
66
- * Variant inventory status.
67
- * @readonly
68
- */
69
- inventoryStatus?: V3InventoryStatus;
70
- /**
71
- * Product fields
72
- * @readonly
73
- */
74
- productData?: ProductFields;
75
- }
76
- /** @oneof */
77
- export interface ReadOnlyVariantTypedPropertiesOneOf {
78
- /** Physical properties. Must be passed when `productType: PHYSICAL` */
79
- physicalProperties?: V3VariantPhysicalProperties;
80
- /** Digital properties. Must be passed when `productType: DIGITAL` */
81
- digitalProperties?: V3VariantDigitalProperties;
82
- }
83
- export interface V3OptionChoice {
84
- /**
85
- * Option and choice IDs.
86
- * @readonly
87
- */
88
- optionChoiceIds?: V3OptionChoiceIds;
89
- /**
90
- * Option and choice names.
91
- * @readonly
92
- */
93
- optionChoiceNames?: V3OptionChoiceNames;
94
- }
95
- export interface V3OptionChoiceIds {
96
- /**
97
- * Option ID.
98
- * @minLength 1
99
- * @maxLength 36
100
- * @readonly
101
- */
102
- optionId?: string;
103
- /**
104
- * Choice ID.
105
- * @format GUID
106
- * @readonly
107
- */
108
- choiceId?: string;
109
- }
110
- export interface V3OptionChoiceNames {
111
- /**
112
- * Option name.
113
- * @minLength 1
114
- * @maxLength 50
115
- * @readonly
116
- */
117
- optionName?: string;
118
- /**
119
- * Choice name.
120
- * @minLength 1
121
- * @maxLength 50
122
- * @readonly
123
- */
124
- choiceName?: string;
125
- /**
126
- * Render type.
127
- * @readonly
128
- * @maxLength 50
129
- */
130
- renderType?: string;
131
- }
132
- export interface V3PriceInfo {
133
- /**
134
- * Variant price.
135
- * @readonly
136
- */
137
- actualPrice?: V3FixedMonetaryAmount;
138
- /**
139
- * The compare-at-price represents the original price of a product before any discount.
140
- * @readonly
141
- */
142
- compareAtPrice?: V3FixedMonetaryAmount;
143
- }
144
- export interface V3FixedMonetaryAmount {
145
- /**
146
- * Monetary amount. For example, `"3.99"`, or `"-4.99"` for a negative amount.
147
- * @decimalValue options { gte:0, lte:999999999, maxScale:3 }
148
- * @readonly
149
- */
150
- amount?: string;
151
- /**
152
- * Formatted monetary amount. For example, `"$3.99"`.
153
- * @readonly
154
- * @maxLength 20
155
- */
156
- formattedAmount?: string | null;
157
- }
158
- export interface V3RevenueDetails {
159
- /**
160
- * Item cost.
161
- * @readonly
162
- */
163
- cost?: V3FixedMonetaryAmount;
164
- /**
165
- * Profit. Calculated by reducing `cost` from `discountedPrice`.
166
- * @readonly
167
- */
168
- profit?: V3FixedMonetaryAmount;
169
- /**
170
- * Profit Margin. Calculated by dividing `profit` by `discountedPrice`.
171
- * The result is rounded to 4 decimal places.
172
- * @readonly
173
- * @max 1
174
- */
175
- profitMargin?: number;
176
- }
177
- export interface V3ProductMedia extends V3ProductMediaSetByOneOf, V3ProductMediaMediaOneOf {
178
- /**
179
- * ID of existing media from Wix Media Manager.
180
- * @minLength 1
181
- * @maxLength 200
182
- * @readonly
183
- */
184
- id?: string;
185
- /**
186
- * Media URL.
187
- * @format WEB_URL
188
- * @readonly
189
- */
190
- url?: string;
191
- /**
192
- * Product image.
193
- * @readonly
194
- */
195
- image?: CommonImage;
196
- /**
197
- * Product video.
198
- * @readonly
199
- */
200
- video?: CommonVideoV2;
201
- /**
202
- * Image alt text.
203
- * @minLength 1
204
- * @maxLength 1000
205
- * @readonly
206
- */
207
- altText?: string | null;
208
- /**
209
- * Media display name.
210
- * Allows to override the default media name. Can be passed only when `setBy: url`.
211
- * @maxLength 80
212
- * @readonly
213
- */
214
- displayName?: string | null;
215
- /**
216
- * Media type.
217
- * @readonly
218
- */
219
- mediaType?: ProductMediaMediaTypeWithLiterals;
220
- /**
221
- * Media thumbnail.
222
- * @readonly
223
- */
224
- thumbnail?: V3Thumbnail;
225
- /**
226
- * ID used to upload media to Wix Media Manager.
227
- * @readonly
228
- * @format GUID
229
- */
230
- uploadId?: string;
231
- }
232
- /** @oneof */
233
- export interface V3ProductMediaSetByOneOf {
234
- /**
235
- * ID of existing media from Wix Media Manager.
236
- * @minLength 1
237
- * @maxLength 200
238
- * @readonly
239
- */
240
- id?: string;
241
- /**
242
- * Media URL.
243
- * @format WEB_URL
244
- * @readonly
245
- */
246
- url?: string;
247
- }
248
- /** @oneof */
249
- export interface V3ProductMediaMediaOneOf {
250
- /**
251
- * Product image.
252
- * @readonly
253
- */
254
- image?: CommonImage;
255
- /**
256
- * Product video.
257
- * @readonly
258
- */
259
- video?: CommonVideoV2;
260
- }
261
- export interface CommonImage {
262
- /**
263
- * WixMedia image ID.
264
- * @maxLength 400
265
- */
266
- id?: string;
267
- /**
268
- * Image URL.
269
- * @format WEB_URL
270
- */
271
- url?: string;
272
- /**
273
- * Original image height.
274
- * @readonly
275
- */
276
- height?: number;
277
- /**
278
- * Original image width.
279
- * @readonly
280
- */
281
- width?: number;
282
- /**
283
- * Image alt text.
284
- * @maxLength 200
285
- */
286
- altText?: string | null;
287
- /**
288
- * Image filename.
289
- * @readonly
290
- * @maxLength 200
291
- */
292
- filename?: string | null;
293
- }
294
- export interface CommonVideoV2 {
295
- /**
296
- * WixMedia ID.
297
- * @maxLength 400
298
- */
299
- id?: string;
300
- /**
301
- * Available resolutions for the video, starting with the optimal resolution.
302
- * @readonly
303
- * @maxSize 100
304
- */
305
- resolutions?: CommonVideoResolution[];
306
- /**
307
- * Video filename.
308
- * @readonly
309
- * @maxLength 200
310
- */
311
- filename?: string | null;
312
- }
313
- export interface CommonVideoResolution {
314
- /**
315
- * Video URL.
316
- * @format WEB_URL
317
- */
318
- url?: string;
319
- /** Video height. */
320
- height?: number;
321
- /** Video width. */
322
- width?: number;
323
- /**
324
- * Video format for example, mp4, hls.
325
- * @maxLength 200
326
- */
327
- format?: string;
328
- }
329
- export declare enum ProductMediaMediaType {
330
- UNKNOWN_MEDIA_TYPE = "UNKNOWN_MEDIA_TYPE",
331
- /** Image media type. */
332
- IMAGE = "IMAGE",
333
- /** Video media type. */
334
- VIDEO = "VIDEO"
335
- }
336
- /** @enumType */
337
- export type ProductMediaMediaTypeWithLiterals = ProductMediaMediaType | 'UNKNOWN_MEDIA_TYPE' | 'IMAGE' | 'VIDEO';
338
- export interface V3Thumbnail {
339
- /**
340
- * Thumbnail url.
341
- * @format WEB_URL
342
- * @readonly
343
- */
344
- url?: string;
345
- /**
346
- * Thumbnail height.
347
- * @readonly
348
- */
349
- height?: number;
350
- /**
351
- * Thumbnail width.
352
- * @readonly
353
- */
354
- width?: number;
355
- /**
356
- * Thumbnail alt text.
357
- * @minLength 1
358
- * @maxLength 1000
359
- * @readonly
360
- */
361
- altText?: string | null;
362
- }
363
- export interface V3VariantPhysicalProperties {
364
- /**
365
- * Variant shipping weight.
366
- * @max 999999999.99
367
- * @readonly
368
- */
369
- weight?: number | null;
370
- /**
371
- * Price per unit info, in order to show price per unit on the product page.
372
- * For example if one sells cheese and defines 100g here then we know that buying this variant buyer receives 100g of cheese.
373
- * But on product page price will be displayed for units defined on product level. See `pricePerUnit.value` to understand how it's calculated.
374
- * @readonly
375
- */
376
- pricePerUnit?: V3PricePerUnit;
377
- }
378
- export interface V3PricePerUnit {
379
- /**
380
- * Price per unit data for this variant.
381
- * `measurementUnit` value must correspond to the measurement unit set on the product.
382
- * @readonly
383
- */
384
- settings?: V3PricePerUnitSettings;
385
- /**
386
- * Calculated value of price per unit. Takes into account `pricePerUnit` settings of parent product, of this variant, and discounted price of variant.
387
- * For example if discounted price is 2$, product's price per unit setting is 1 Kg, variant price per unit setting is 0.5 Kg then this value is 4$ (means variant weight is 0.5 Kg and it costs 2$ but we want to show price per 1 Kg so we show 4$).
388
- * @readonly
389
- * @decimalValue options { gte:0, lte:999999999, maxScale:3 }
390
- */
391
- value?: string;
392
- /**
393
- * Price per unit description.
394
- * @readonly
395
- * @maxLength 100
396
- */
397
- description?: string | null;
398
- }
399
- export interface V3PricePerUnitSettings {
400
- /**
401
- * Quantity.
402
- * For example, to define price per per 100 grams, set this field to `100`.
403
- * @min 0.01
404
- * @max 999999999.99
405
- * @readonly
406
- */
407
- quantity?: number;
408
- /**
409
- * Measurement unit.
410
- * For example, to define price per 100 grams, set this field to "G".
411
- * @readonly
412
- */
413
- measurementUnit?: MeasurementUnitWithLiterals;
414
- }
415
- export declare enum MeasurementUnit {
416
- UNSPECIFIED = "UNSPECIFIED",
417
- ML = "ML",
418
- CL = "CL",
419
- L = "L",
420
- CBM = "CBM",
421
- MG = "MG",
422
- G = "G",
423
- KG = "KG",
424
- MM = "MM",
425
- CM = "CM",
426
- M = "M",
427
- SQM = "SQM",
428
- OZ = "OZ",
429
- LB = "LB",
430
- FLOZ = "FLOZ",
431
- PT = "PT",
432
- QT = "QT",
433
- GAL = "GAL",
434
- IN = "IN",
435
- FT = "FT",
436
- YD = "YD",
437
- SQFT = "SQFT"
438
- }
439
- /** @enumType */
440
- export type MeasurementUnitWithLiterals = MeasurementUnit | 'UNSPECIFIED' | 'ML' | 'CL' | 'L' | 'CBM' | 'MG' | 'G' | 'KG' | 'MM' | 'CM' | 'M' | 'SQM' | 'OZ' | 'LB' | 'FLOZ' | 'PT' | 'QT' | 'GAL' | 'IN' | 'FT' | 'YD' | 'SQFT';
441
- export interface V3VariantDigitalProperties {
442
- /**
443
- * Digital file which will be downloaded by customer after successful purchase.
444
- * @readonly
445
- */
446
- digitalFile?: V3SecuredMedia;
447
- }
448
- export interface V3SecuredMedia {
449
- /**
450
- * Media ID in media manager.
451
- * @minLength 1
452
- * @maxLength 100
453
- * @readonly
454
- */
455
- id?: string;
456
- /**
457
- * Original file name.
458
- * @minLength 1
459
- * @maxLength 1000
460
- * @readonly
461
- */
462
- fileName?: string;
463
- /**
464
- * Original file size.
465
- * @minLength 1
466
- * @maxLength 1000
467
- * @readonly
468
- * @format DECIMAL_VALUE
469
- * @decimalValue options { maxScale:0 }
470
- */
471
- fileSize?: string | null;
472
- /**
473
- * File type.
474
- * @readonly
475
- */
476
- fileType?: SecuredMediaFileTypeWithLiterals;
477
- }
478
- export declare enum SecuredMediaFileType {
479
- /** Unspecified file type. */
480
- UNSPECIFIED = "UNSPECIFIED",
481
- /** Secure picture file. */
482
- SECURE_PICTURE = "SECURE_PICTURE",
483
- /** Secure video file. */
484
- SECURE_VIDEO = "SECURE_VIDEO",
485
- /** Secure document file. */
486
- SECURE_DOCUMENT = "SECURE_DOCUMENT",
487
- /** Secure music file. */
488
- SECURE_MUSIC = "SECURE_MUSIC",
489
- /** Secure archive file. */
490
- SECURE_ARCHIVE = "SECURE_ARCHIVE"
491
- }
492
- /** @enumType */
493
- export type SecuredMediaFileTypeWithLiterals = SecuredMediaFileType | 'UNSPECIFIED' | 'SECURE_PICTURE' | 'SECURE_VIDEO' | 'SECURE_DOCUMENT' | 'SECURE_MUSIC' | 'SECURE_ARCHIVE';
494
- export interface V3SubscriptionPricesInfo {
495
- /**
496
- * Subscription prices.
497
- * @maxSize 6
498
- * @readonly
499
- */
500
- subscriptionPrices?: V3SubscriptionPrice[];
501
- }
502
- export interface V3SubscriptionPrice {
503
- /**
504
- * Subscription ID.
505
- * @format GUID
506
- * @readonly
507
- */
508
- subscriptionId?: string;
509
- /**
510
- * Subscription price calculated by applying subscription discount to the variant `price.salePrice`
511
- * @readonly
512
- */
513
- price?: V3FixedMonetaryAmount;
514
- /**
515
- * Price per unit info.
516
- * @readonly
517
- */
518
- pricePerUnit?: V3SubscriptionPricePerUnit;
519
- }
520
- export interface V3SubscriptionPricePerUnit {
521
- /**
522
- * Calculated value of price per unit. Takes into account `pricePerUnit` settings of parent product, `pricePerUnit` settings of this variant, and the variant subscription price.
523
- * @readonly
524
- * @decimalValue options { gte:0, lte:999999999, maxScale:3 }
525
- */
526
- value?: string;
527
- /**
528
- * Price per unit description.
529
- * @readonly
530
- * @maxLength 20
531
- */
532
- description?: string | null;
533
- }
534
- export interface V3InventoryStatus {
535
- /**
536
- * Whether the variant is in stock.
537
- * @readonly
538
- */
539
- inStock?: boolean;
540
- /**
541
- * Whether preorder is enabled for this variant.
542
- * @readonly
543
- */
544
- preorderEnabled?: boolean;
545
- }
546
- export interface ProductFields extends ProductFieldsTypedPropertiesOneOf {
547
- /**
548
- * Physical properties.
549
- *
550
- * Required when `productType: PHYSICAL`.
551
- */
552
- physicalProperties?: V3PhysicalProperties;
553
- /**
554
- * product id
555
- * @minLength 1
556
- * @maxLength 36
557
- * @readonly
558
- */
559
- productId?: string;
560
- /**
561
- * Product name.
562
- * @minLength 1
563
- * @maxLength 80
564
- * @readonly
565
- */
566
- name?: string | null;
567
- /**
568
- * product type
569
- * @readonly
570
- */
571
- productType?: V3ProductTypeWithLiterals;
572
- /**
573
- * Product slug.
574
- * @format URL_SLUG
575
- * @readonly
576
- */
577
- slug?: string | null;
578
- /**
579
- * Whether the product is visible to site visitors on the site.
580
- *
581
- * Default: `true`
582
- * @readonly
583
- */
584
- visible?: boolean | null;
585
- /**
586
- * Whether the product is visible in POS (point of sale).
587
- *
588
- * Default: `true`
589
- * > **Note:** Always `false` for `productType: DIGITAL`.
590
- * @readonly
591
- */
592
- visibleInPos?: boolean | null;
593
- /**
594
- * Main category ID.
595
- * @format GUID
596
- * @readonly
597
- */
598
- mainCategoryId?: string | null;
599
- /**
600
- * Currency used for the pricing of this product, in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format.
601
- *
602
- * Defaults to the currency defined in the site settings, unless specified in `x-wix-currency` header.
603
- * > **Note:** Returned only when you pass `"CURRENCY"` to the `fields` array in Products API requests.
604
- * @format CURRENCY
605
- * @readonly
606
- */
607
- currency?: string | null;
608
- /**
609
- * Product entity revision.
610
- * @readonly
611
- */
612
- revision?: string | null;
613
- }
614
- /** @oneof */
615
- export interface ProductFieldsTypedPropertiesOneOf {
616
- /**
617
- * Physical properties.
618
- *
619
- * Required when `productType: PHYSICAL`.
620
- */
621
- physicalProperties?: V3PhysicalProperties;
622
- }
623
- export declare enum V3ProductType {
624
- /** Not implemented. */
625
- UNKNOWN_PRODUCT_TYPE = "UNKNOWN_PRODUCT_TYPE",
626
- /** Physical product. */
627
- PHYSICAL = "PHYSICAL",
628
- /** Digital product. */
629
- DIGITAL = "DIGITAL"
630
- }
631
- /** @enumType */
632
- export type V3ProductTypeWithLiterals = V3ProductType | 'UNKNOWN_PRODUCT_TYPE' | 'PHYSICAL' | 'DIGITAL';
633
- export interface V3PhysicalProperties {
634
- /**
635
- * Weight measurement unit.
636
- * > **Note:** Returned only when you pass `"WEIGHT_MEASUREMENT_UNIT_INFO"` to the `fields` array in Products API requests.
637
- * @readonly
638
- */
639
- weightMeasurementUnitInfo?: V3WeightMeasurementUnitInfo;
640
- }
641
- export interface V3WeightMeasurementUnitInfo {
642
- /**
643
- * Weight measurement unit.
644
- * @readonly
645
- */
646
- weightMeasurementUnit?: WeightUnitWithLiterals;
647
- }
648
- export declare enum WeightUnit {
649
- /** Weight unit can't be classified due to an error. */
650
- UNSPECIFIED_WEIGHT_UNIT = "UNSPECIFIED_WEIGHT_UNIT",
651
- /** Kilograms. */
652
- KG = "KG",
653
- /** Pounds. */
654
- LB = "LB"
655
- }
656
- /** @enumType */
657
- export type WeightUnitWithLiterals = WeightUnit | 'UNSPECIFIED_WEIGHT_UNIT' | 'KG' | 'LB';
658
- export interface InternalMetadata {
659
- }
660
- export declare enum InternalRowState {
661
- /** Not implemented. */
662
- UNKNOWN_ROW_STATE = "UNKNOWN_ROW_STATE",
663
- /** Variant is ready to be read. */
664
- READY = "READY",
665
- /** Variant is being processed. */
666
- IN_PROCESS = "IN_PROCESS",
667
- /** Variant is soft deleted. */
668
- SOFT_DELETED = "SOFT_DELETED",
669
- /** Variant is permanently deleted. */
670
- PERMANENTLY_DELETED = "PERMANENTLY_DELETED"
671
- }
672
- /** @enumType */
673
- export type InternalRowStateWithLiterals = InternalRowState | 'UNKNOWN_ROW_STATE' | 'READY' | 'IN_PROCESS' | 'SOFT_DELETED' | 'PERMANENTLY_DELETED';
674
- export interface QueryVariantsRequest {
675
- /** WQL expression. */
676
- query?: CursorQuery;
677
- /**
678
- * A list of requested fields to be included in the response.
679
- * @maxSize 100
680
- */
681
- fields?: RequestedFieldsWithLiterals[];
682
- }
683
- export interface CursorQuery extends CursorQueryPagingMethodOneOf {
684
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
685
- cursorPaging?: CursorPaging;
686
- /**
687
- * Filter object in the following format:
688
- * `"filter" : {
689
- * "fieldName1": "value1",
690
- * "fieldName2":{"$operator":"value2"}
691
- * }`
692
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
693
- */
694
- filter?: Record<string, any> | null;
695
- /**
696
- * Sort object in the following format:
697
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
698
- * @maxSize 5
699
- */
700
- sort?: Sorting[];
701
- }
702
- /** @oneof */
703
- export interface CursorQueryPagingMethodOneOf {
704
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
705
- cursorPaging?: CursorPaging;
706
- }
707
- export interface Sorting {
708
- /**
709
- * Name of the field to sort by.
710
- * @maxLength 512
711
- */
712
- fieldName?: string;
713
- /** Sort order. */
714
- order?: SortOrderWithLiterals;
715
- }
716
- export declare enum SortOrder {
717
- ASC = "ASC",
718
- DESC = "DESC"
719
- }
720
- /** @enumType */
721
- export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
722
- export interface CursorPaging {
723
- /**
724
- * Maximum number of items to return in the results.
725
- * @max 1000
726
- */
727
- limit?: number | null;
728
- /**
729
- * Pointer to the next or previous page in the list of results.
730
- *
731
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
732
- * Not relevant for the first request.
733
- * @maxLength 16000
734
- */
735
- cursor?: string | null;
736
- }
737
- export declare enum RequestedFields {
738
- /** Not implemented. */
739
- UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
740
- CURRENCY = "CURRENCY",
741
- /** You can request merchant data only if you have the `SCOPE.STORES.PRODUCT_READ_ADMIN` permission scope. */
742
- MERCHANT_DATA = "MERCHANT_DATA",
743
- SUBSCRIPTION_PRICES_INFO = "SUBSCRIPTION_PRICES_INFO",
744
- WEIGHT_MEASUREMENT_UNIT_INFO = "WEIGHT_MEASUREMENT_UNIT_INFO"
745
- }
746
- /** @enumType */
747
- export type RequestedFieldsWithLiterals = RequestedFields | 'UNKNOWN_REQUESTED_FIELD' | 'CURRENCY' | 'MERCHANT_DATA' | 'SUBSCRIPTION_PRICES_INFO' | 'WEIGHT_MEASUREMENT_UNIT_INFO';
748
- export interface QueryVariantsResponse {
749
- /** List of ReadOnlyVariants. */
750
- variants?: ReadOnlyVariant[];
751
- /** Paging metadata */
752
- pagingMetadata?: CursorPagingMetadata;
753
- }
754
- export interface CursorPagingMetadata {
755
- /** Number of items returned in the response. */
756
- count?: number | null;
757
- /** Cursor strings that point to the next page, previous page, or both. */
758
- cursors?: Cursors;
759
- /**
760
- * Whether there are more pages to retrieve following the current page.
761
- *
762
- * + `true`: Another page of results can be retrieved.
763
- * + `false`: This is the last page.
764
- */
765
- hasNext?: boolean | null;
766
- }
767
- export interface Cursors {
768
- /**
769
- * Cursor string pointing to the next page in the list of results.
770
- * @maxLength 16000
771
- */
772
- next?: string | null;
773
- /**
774
- * Cursor pointing to the previous page in the list of results.
775
- * @maxLength 16000
776
- */
777
- prev?: string | null;
778
- }
779
- export interface SearchVariantsRequest {
780
- /** WQL expression */
781
- search?: CursorSearch;
782
- /**
783
- * A list of requested fields to be included in the response.
784
- * @maxSize 100
785
- */
786
- fields?: RequestedFieldsWithLiterals[];
787
- }
788
- export interface CursorSearch extends CursorSearchPagingMethodOneOf {
789
- /**
790
- * Cursor pointing to page of results.
791
- * When requesting 'cursor_paging.cursor', no `filter`, `sort` or `search` can be provided.
792
- */
793
- cursorPaging?: CursorPaging;
794
- /** A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */
795
- filter?: Record<string, any> | null;
796
- /**
797
- * Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]
798
- * @maxSize 10
799
- */
800
- sort?: Sorting[];
801
- /**
802
- * Aggregations | Faceted search: refers to a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition.
803
- * @maxSize 10
804
- */
805
- aggregations?: Aggregation[];
806
- /** Free text to match in searchable fields */
807
- search?: SearchDetails;
808
- /**
809
- * UTC offset or IANA time zone. Valid values are
810
- * ISO 8601 UTC offsets, such as +02:00 or -06:00,
811
- * and IANA time zone IDs, such as Europe/Rome
812
- *
813
- * Affects all filters and aggregations returned values.
814
- * You may override this behavior in a specific filter by providing
815
- * timestamps including time zone. e.g. `"2023-12-20T10:52:34.795Z"`
816
- * @maxLength 50
817
- */
818
- timeZone?: string | null;
819
- }
820
- /** @oneof */
821
- export interface CursorSearchPagingMethodOneOf {
822
- /**
823
- * Cursor pointing to page of results.
824
- * When requesting 'cursor_paging.cursor', no `filter`, `sort` or `search` can be provided.
825
- */
826
- cursorPaging?: CursorPaging;
827
- }
828
- export interface Aggregation extends AggregationKindOneOf {
829
- /** Value aggregation */
830
- value?: ValueAggregation;
831
- /** Range aggregation */
832
- range?: RangeAggregation;
833
- /** Scalar aggregation */
834
- scalar?: ScalarAggregation;
835
- /** Date histogram aggregation */
836
- dateHistogram?: DateHistogramAggregation;
837
- /** Nested aggregation */
838
- nested?: NestedAggregation;
839
- /**
840
- * User-defined name of aggregation, should be unique, will appear in aggregation results
841
- * @maxLength 100
842
- */
843
- name?: string | null;
844
- /** Type of aggregation, client must provide matching aggregation field below */
845
- type?: AggregationTypeWithLiterals;
846
- /**
847
- * Field to aggregate by, use dot notation to specify json path
848
- * @maxLength 200
849
- */
850
- fieldPath?: string;
851
- }
852
- /** @oneof */
853
- export interface AggregationKindOneOf {
854
- /** Value aggregation */
855
- value?: ValueAggregation;
856
- /** Range aggregation */
857
- range?: RangeAggregation;
858
- /** Scalar aggregation */
859
- scalar?: ScalarAggregation;
860
- /** Date histogram aggregation */
861
- dateHistogram?: DateHistogramAggregation;
862
- /** Nested aggregation */
863
- nested?: NestedAggregation;
864
- }
865
- export interface RangeBucket {
866
- /** Inclusive lower bound of the range. Required if to is not given */
867
- from?: number | null;
868
- /** Exclusive upper bound of the range. Required if from is not given */
869
- to?: number | null;
870
- }
871
- export declare enum SortType {
872
- /** Should sort by number of matches */
873
- COUNT = "COUNT",
874
- /** Should sort by value of the field alphabetically */
875
- VALUE = "VALUE"
876
- }
877
- /** @enumType */
878
- export type SortTypeWithLiterals = SortType | 'COUNT' | 'VALUE';
879
- export declare enum SortDirection {
880
- /** Should sort in descending order */
881
- DESC = "DESC",
882
- /** Should sort in ascending order */
883
- ASC = "ASC"
884
- }
885
- /** @enumType */
886
- export type SortDirectionWithLiterals = SortDirection | 'DESC' | 'ASC';
887
- export declare enum MissingValues {
888
- /** Should missing values be excluded from the aggregation results */
889
- EXCLUDE = "EXCLUDE",
890
- /** Should missing values be included in the aggregation results */
891
- INCLUDE = "INCLUDE"
892
- }
893
- /** @enumType */
894
- export type MissingValuesWithLiterals = MissingValues | 'EXCLUDE' | 'INCLUDE';
895
- export interface IncludeMissingValuesOptions {
896
- /**
897
- * Can specify custom bucket name. Defaults are [string -> "N/A"], [int -> "0"], [bool -> "false"] ...
898
- * @maxLength 20
899
- */
900
- addToBucket?: string;
901
- }
902
- export declare enum ScalarType {
903
- UNKNOWN_SCALAR_TYPE = "UNKNOWN_SCALAR_TYPE",
904
- /** Count of distinct values */
905
- COUNT_DISTINCT = "COUNT_DISTINCT",
906
- /** Minimum value */
907
- MIN = "MIN",
908
- /** Maximum value */
909
- MAX = "MAX"
910
- }
911
- /** @enumType */
912
- export type ScalarTypeWithLiterals = ScalarType | 'UNKNOWN_SCALAR_TYPE' | 'COUNT_DISTINCT' | 'MIN' | 'MAX';
913
- export interface ValueAggregation extends ValueAggregationOptionsOneOf {
914
- /** Options for including missing values */
915
- includeOptions?: IncludeMissingValuesOptions;
916
- /** Should sort by number of matches or value of the field */
917
- sortType?: SortTypeWithLiterals;
918
- /** Should sort in ascending or descending order */
919
- sortDirection?: SortDirectionWithLiterals;
920
- /** How many aggregations would you like to return? Can be between 1 and 250. 10 is the default. */
921
- limit?: number | null;
922
- /** Should missing values be included or excluded from the aggregation results. Default is EXCLUDE */
923
- missingValues?: MissingValuesWithLiterals;
924
- }
925
- /** @oneof */
926
- export interface ValueAggregationOptionsOneOf {
927
- /** Options for including missing values */
928
- includeOptions?: IncludeMissingValuesOptions;
929
- }
930
- export declare enum NestedAggregationType {
931
- UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
932
- /** An aggregation where result buckets are dynamically built - one per unique value */
933
- VALUE = "VALUE",
934
- /** An aggregation, where user can define set of ranges - each representing a bucket */
935
- RANGE = "RANGE",
936
- /** A single-value metric aggregation - e.g. min, max, sum, avg */
937
- SCALAR = "SCALAR",
938
- /** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
939
- DATE_HISTOGRAM = "DATE_HISTOGRAM"
940
- }
941
- /** @enumType */
942
- export type NestedAggregationTypeWithLiterals = NestedAggregationType | 'UNKNOWN_AGGREGATION_TYPE' | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM';
943
- export interface RangeAggregation {
944
- /**
945
- * List of range buckets, where during aggregation each entity will be placed in the first bucket where its value falls into based on provided range bounds
946
- * @maxSize 50
947
- */
948
- buckets?: RangeBucket[];
949
- }
950
- export interface ScalarAggregation {
951
- /** Define the operator for the scalar aggregation */
952
- type?: ScalarTypeWithLiterals;
953
- }
954
- export interface DateHistogramAggregation {
955
- /** Interval for date histogram aggregation */
956
- interval?: IntervalWithLiterals;
957
- }
958
- export declare enum Interval {
959
- UNKNOWN_INTERVAL = "UNKNOWN_INTERVAL",
960
- /** Yearly interval */
961
- YEAR = "YEAR",
962
- /** Monthly interval */
963
- MONTH = "MONTH",
964
- /** Weekly interval */
965
- WEEK = "WEEK",
966
- /** Daily interval */
967
- DAY = "DAY",
968
- /** Hourly interval */
969
- HOUR = "HOUR",
970
- /** Minute interval */
971
- MINUTE = "MINUTE",
972
- /** Second interval */
973
- SECOND = "SECOND"
974
- }
975
- /** @enumType */
976
- export type IntervalWithLiterals = Interval | 'UNKNOWN_INTERVAL' | 'YEAR' | 'MONTH' | 'WEEK' | 'DAY' | 'HOUR' | 'MINUTE' | 'SECOND';
977
- export interface NestedAggregationItem extends NestedAggregationItemKindOneOf {
978
- /** Value aggregation */
979
- value?: ValueAggregation;
980
- /** Range aggregation */
981
- range?: RangeAggregation;
982
- /** Scalar aggregation */
983
- scalar?: ScalarAggregation;
984
- /** Date histogram aggregation */
985
- dateHistogram?: DateHistogramAggregation;
986
- /**
987
- * User-defined name of aggregation, should be unique, will appear in aggregation results
988
- * @maxLength 100
989
- */
990
- name?: string | null;
991
- /** Type of aggregation, client must provide matching aggregation field below */
992
- type?: NestedAggregationTypeWithLiterals;
993
- /**
994
- * Field to aggregate by, use dont notation to specify json path
995
- * @maxLength 200
996
- */
997
- fieldPath?: string;
998
- }
999
- /** @oneof */
1000
- export interface NestedAggregationItemKindOneOf {
1001
- /** Value aggregation */
1002
- value?: ValueAggregation;
1003
- /** Range aggregation */
1004
- range?: RangeAggregation;
1005
- /** Scalar aggregation */
1006
- scalar?: ScalarAggregation;
1007
- /** Date histogram aggregation */
1008
- dateHistogram?: DateHistogramAggregation;
1009
- }
1010
- export declare enum AggregationType {
1011
- UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
1012
- /** An aggregation where result buckets are dynamically built - one per unique value */
1013
- VALUE = "VALUE",
1014
- /** An aggregation, where user can define set of ranges - each representing a bucket */
1015
- RANGE = "RANGE",
1016
- /** A single-value metric aggregation - e.g. min, max, sum, avg */
1017
- SCALAR = "SCALAR",
1018
- /** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
1019
- DATE_HISTOGRAM = "DATE_HISTOGRAM",
1020
- /** Multi-level aggregation, where each next aggregation is nested within previous one */
1021
- NESTED = "NESTED"
1022
- }
1023
- /** @enumType */
1024
- export type AggregationTypeWithLiterals = AggregationType | 'UNKNOWN_AGGREGATION_TYPE' | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM' | 'NESTED';
1025
- /** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one */
1026
- export interface NestedAggregation {
1027
- /**
1028
- * Flattened list of aggregations, where each next aggregation is nested within previous one
1029
- * @minSize 2
1030
- * @maxSize 3
1031
- */
1032
- nestedAggregations?: NestedAggregationItem[];
1033
- }
1034
- export interface SearchDetails {
1035
- /** Defines how separate search terms in `expression` are combined */
1036
- mode?: ModeWithLiterals;
1037
- /**
1038
- * Search term or expression
1039
- * @maxLength 100
1040
- */
1041
- expression?: string | null;
1042
- /**
1043
- * Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path
1044
- * @maxLength 200
1045
- * @maxSize 20
1046
- */
1047
- fields?: string[];
1048
- /** Flag if should use auto fuzzy search (allowing typos by a managed proximity algorithm) */
1049
- fuzzy?: boolean;
1050
- }
1051
- export declare enum Mode {
1052
- /** Any of the search terms must be present */
1053
- OR = "OR",
1054
- /** All search terms must be present */
1055
- AND = "AND"
1056
- }
1057
- /** @enumType */
1058
- export type ModeWithLiterals = Mode | 'OR' | 'AND';
1059
- export interface SearchVariantsResponse {
1060
- /** Variants which satisfy the provided query. */
1061
- variants?: ReadOnlyVariant[];
1062
- /** Paging metadata. Contains cursor which can be used in next query. */
1063
- pagingMetadata?: CursorPagingMetadata;
1064
- /** Aggregation data. */
1065
- aggregationData?: AggregationData;
1066
- }
1067
- export interface AggregationData {
1068
- /**
1069
- * key = aggregation name (as derived from search request)
1070
- * @maxSize 10000
1071
- */
1072
- results?: AggregationResults[];
1073
- }
1074
- export interface ValueAggregationResult {
1075
- /**
1076
- * Value of the field
1077
- * @maxLength 100
1078
- */
1079
- value?: string;
1080
- /** Count of entities with this value */
1081
- count?: number;
1082
- }
1083
- export interface RangeAggregationResult {
1084
- /** Inclusive lower bound of the range */
1085
- from?: number | null;
1086
- /** Exclusive upper bound of the range */
1087
- to?: number | null;
1088
- /** Count of entities in this range */
1089
- count?: number;
1090
- }
1091
- export interface NestedAggregationResults extends NestedAggregationResultsResultOneOf {
1092
- /** Value aggregation results */
1093
- values?: ValueResults;
1094
- /** Range aggregation results */
1095
- ranges?: RangeResults;
1096
- /** Scalar aggregation results */
1097
- scalar?: AggregationResultsScalarResult;
1098
- /**
1099
- * User-defined name of aggregation, matches the one provided in request
1100
- * @maxLength 100
1101
- */
1102
- name?: string;
1103
- /** Type of aggregation that matches result */
1104
- type?: AggregationTypeWithLiterals;
1105
- /**
1106
- * Field to aggregate by, matches the one provided in request
1107
- * @maxLength 200
1108
- */
1109
- fieldPath?: string;
1110
- }
1111
- /** @oneof */
1112
- export interface NestedAggregationResultsResultOneOf {
1113
- /** Value aggregation results */
1114
- values?: ValueResults;
1115
- /** Range aggregation results */
1116
- ranges?: RangeResults;
1117
- /** Scalar aggregation results */
1118
- scalar?: AggregationResultsScalarResult;
1119
- }
1120
- export interface ValueResults {
1121
- /**
1122
- * List of value aggregations
1123
- * @maxSize 250
1124
- */
1125
- results?: ValueAggregationResult[];
1126
- }
1127
- export interface RangeResults {
1128
- /**
1129
- * List of ranges returned in same order as requested
1130
- * @maxSize 50
1131
- */
1132
- results?: RangeAggregationResult[];
1133
- }
1134
- export interface AggregationResultsScalarResult {
1135
- /** Type of scalar aggregation */
1136
- type?: ScalarTypeWithLiterals;
1137
- /** Value of the scalar aggregation */
1138
- value?: number;
1139
- }
1140
- export interface NestedValueAggregationResult {
1141
- /**
1142
- * Value of the field
1143
- * @maxLength 1000
1144
- */
1145
- value?: string;
1146
- /** Nested aggregations */
1147
- nestedResults?: NestedAggregationResults;
1148
- }
1149
- export interface ValueResult {
1150
- /**
1151
- * Value of the field
1152
- * @maxLength 1000
1153
- */
1154
- value?: string;
1155
- /** Count of entities with this value */
1156
- count?: number | null;
1157
- }
1158
- export interface RangeResult {
1159
- /** Inclusive lower bound of the range */
1160
- from?: number | null;
1161
- /** Exclusive upper bound of the range */
1162
- to?: number | null;
1163
- /** Count of entities in this range */
1164
- count?: number | null;
1165
- }
1166
- export interface ScalarResult {
1167
- /** Value of the scalar aggregation */
1168
- value?: number;
1169
- }
1170
- export interface NestedResultValue extends NestedResultValueResultOneOf {
1171
- /** Value aggregation result */
1172
- value?: ValueResult;
1173
- /** Range aggregation result */
1174
- range?: RangeResult;
1175
- /** Scalar aggregation result */
1176
- scalar?: ScalarResult;
1177
- /** Date histogram aggregation result */
1178
- dateHistogram?: ValueResult;
1179
- }
1180
- /** @oneof */
1181
- export interface NestedResultValueResultOneOf {
1182
- /** Value aggregation result */
1183
- value?: ValueResult;
1184
- /** Range aggregation result */
1185
- range?: RangeResult;
1186
- /** Scalar aggregation result */
1187
- scalar?: ScalarResult;
1188
- /** Date histogram aggregation result */
1189
- dateHistogram?: ValueResult;
1190
- }
1191
- export interface Results {
1192
- /** List of nested aggregations */
1193
- results?: Record<string, NestedResultValue>;
1194
- }
1195
- export interface DateHistogramResult {
1196
- /**
1197
- * Date in ISO 8601 format
1198
- * @maxLength 100
1199
- */
1200
- value?: string;
1201
- /** Count of documents in the bucket */
1202
- count?: number;
1203
- }
1204
- export interface GroupByValueResults {
1205
- /**
1206
- * List of value aggregations
1207
- * @maxSize 1000
1208
- */
1209
- results?: NestedValueAggregationResult[];
1210
- }
1211
- export interface DateHistogramResults {
1212
- /**
1213
- * List of date histogram aggregations
1214
- * @maxSize 200
1215
- */
1216
- results?: DateHistogramResult[];
1217
- }
1218
- /**
1219
- * Results of `NESTED` aggregation type in a flattened form
1220
- * aggregations in resulting array are keyed by requested aggregation `name`.
1221
- */
1222
- export interface NestedResults {
1223
- /**
1224
- * List of nested aggregations
1225
- * @maxSize 1000
1226
- */
1227
- results?: Results[];
1228
- }
1229
- export interface AggregationResults extends AggregationResultsResultOneOf {
1230
- /** Value aggregation results */
1231
- values?: ValueResults;
1232
- /** Range aggregation results */
1233
- ranges?: RangeResults;
1234
- /** Scalar aggregation results */
1235
- scalar?: AggregationResultsScalarResult;
1236
- /** Group by value aggregation results */
1237
- groupedByValue?: GroupByValueResults;
1238
- /** Date histogram aggregation results */
1239
- dateHistogram?: DateHistogramResults;
1240
- /** Nested aggregation results */
1241
- nested?: NestedResults;
1242
- /**
1243
- * User-defined name of aggregation as derived from search request
1244
- * @maxLength 100
1245
- */
1246
- name?: string;
1247
- /** Type of aggregation that must match provided kind as derived from search request */
1248
- type?: AggregationTypeWithLiterals;
1249
- /**
1250
- * Field to aggregate by as derived from search request
1251
- * @maxLength 200
1252
- */
1253
- fieldPath?: string;
1254
- }
1255
- /** @oneof */
1256
- export interface AggregationResultsResultOneOf {
1257
- /** Value aggregation results */
1258
- values?: ValueResults;
1259
- /** Range aggregation results */
1260
- ranges?: RangeResults;
1261
- /** Scalar aggregation results */
1262
- scalar?: AggregationResultsScalarResult;
1263
- /** Group by value aggregation results */
1264
- groupedByValue?: GroupByValueResults;
1265
- /** Date histogram aggregation results */
1266
- dateHistogram?: DateHistogramResults;
1267
- /** Nested aggregation results */
1268
- nested?: NestedResults;
1269
- }
1270
- export interface DeprecatedSearchVariantsWithOffsetRequest {
1271
- /** Filter and sort with limit/offset based paging */
1272
- search?: PlatformOffsetSearch;
1273
- /**
1274
- * A list of requested fields to be included in the response.
1275
- * @maxSize 100
1276
- */
1277
- fields?: RequestedFieldsWithLiterals[];
1278
- }
1279
- export interface PlatformOffsetSearch extends PlatformOffsetSearchPagingMethodOneOf {
1280
- /** Pointer to page of results using offset. Can not be used together with 'cursor_paging' */
1281
- paging?: PlatformPaging;
1282
- /** A filter object. Learn more about [API query language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language). */
1283
- filter?: Record<string, any> | null;
1284
- /** Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}] */
1285
- sort?: CommonSorting[];
1286
- /** Aggregations | Faceted search: refers to a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition. */
1287
- aggregations?: CommonAggregation[];
1288
- /** free text to match in searchable fields */
1289
- search?: CommonSearchDetails;
1290
- }
1291
- /** @oneof */
1292
- export interface PlatformOffsetSearchPagingMethodOneOf {
1293
- /** Pointer to page of results using offset. Can not be used together with 'cursor_paging' */
1294
- paging?: PlatformPaging;
1295
- }
1296
- export interface CommonSorting {
1297
- /**
1298
- * Name of the field to sort by.
1299
- * @maxLength 512
1300
- */
1301
- fieldName?: string;
1302
- /** Sort order. */
1303
- order?: CommonSortOrderWithLiterals;
1304
- }
1305
- export declare enum CommonSortOrder {
1306
- ASC = "ASC",
1307
- DESC = "DESC"
1308
- }
1309
- /** @enumType */
1310
- export type CommonSortOrderWithLiterals = CommonSortOrder | 'ASC' | 'DESC';
1311
- export interface CommonAggregation extends CommonAggregationKindOneOf {
1312
- /** Value aggregation. */
1313
- value?: AggregationValueAggregation;
1314
- /** Range aggregation. */
1315
- range?: AggregationRangeAggregation;
1316
- /** Scalar aggregation. */
1317
- scalar?: AggregationScalarAggregation;
1318
- /** Date histogram aggregation. */
1319
- dateHistogram?: AggregationDateHistogramAggregation;
1320
- /** Nested aggregation. */
1321
- nested?: AggregationNestedAggregation;
1322
- /**
1323
- * User-defined name of aggregation, should be unique, will appear in aggregation results.
1324
- * @maxLength 100
1325
- */
1326
- name?: string | null;
1327
- /** Type of aggregation, client must provide matching aggregation field below. */
1328
- type?: CommonAggregationTypeWithLiterals;
1329
- /**
1330
- * Field to aggregate by, use dot notation to specify json path.
1331
- * @maxLength 200
1332
- */
1333
- fieldPath?: string;
1334
- /**
1335
- * Deprecated. Use `nested` instead.
1336
- * @deprecated Deprecated. Use `nested` instead.
1337
- * @replacedBy kind.nested
1338
- * @targetRemovalDate 2024-03-30
1339
- */
1340
- groupBy?: GroupByAggregation;
1341
- }
1342
- /** @oneof */
1343
- export interface CommonAggregationKindOneOf {
1344
- /** Value aggregation. */
1345
- value?: AggregationValueAggregation;
1346
- /** Range aggregation. */
1347
- range?: AggregationRangeAggregation;
1348
- /** Scalar aggregation. */
1349
- scalar?: AggregationScalarAggregation;
1350
- /** Date histogram aggregation. */
1351
- dateHistogram?: AggregationDateHistogramAggregation;
1352
- /** Nested aggregation. */
1353
- nested?: AggregationNestedAggregation;
1354
- }
1355
- export interface RangeAggregationRangeBucket {
1356
- /** Inclusive lower bound of the range. Required if `to` is not provided. */
1357
- from?: number | null;
1358
- /** Exclusive upper bound of the range. Required if `from` is not provided. */
1359
- to?: number | null;
1360
- }
1361
- export declare enum ValueAggregationSortType {
1362
- /** Sort by number of matches. */
1363
- COUNT = "COUNT",
1364
- /** Sort by value of the field alphabetically. */
1365
- VALUE = "VALUE"
1366
- }
1367
- /** @enumType */
1368
- export type ValueAggregationSortTypeWithLiterals = ValueAggregationSortType | 'COUNT' | 'VALUE';
1369
- export declare enum ValueAggregationSortDirection {
1370
- /** Sort in descending order. */
1371
- DESC = "DESC",
1372
- /** Sort in ascending order. */
1373
- ASC = "ASC"
1374
- }
1375
- /** @enumType */
1376
- export type ValueAggregationSortDirectionWithLiterals = ValueAggregationSortDirection | 'DESC' | 'ASC';
1377
- export declare enum ValueAggregationMissingValues {
1378
- /** Exclude missing values from the aggregation results. */
1379
- EXCLUDE = "EXCLUDE",
1380
- /** Include missing values in the aggregation results. */
1381
- INCLUDE = "INCLUDE"
1382
- }
1383
- /** @enumType */
1384
- export type ValueAggregationMissingValuesWithLiterals = ValueAggregationMissingValues | 'EXCLUDE' | 'INCLUDE';
1385
- export interface ValueAggregationIncludeMissingValuesOptions {
1386
- /**
1387
- * Specify custom bucket name. Defaults are [string -> "N/A"], [int -> "0"], [bool -> "false"] ...
1388
- * @maxLength 20
1389
- */
1390
- addToBucket?: string;
1391
- }
1392
- export declare enum CommonScalarType {
1393
- UNKNOWN_SCALAR_TYPE = "UNKNOWN_SCALAR_TYPE",
1394
- /** Count of distinct values. */
1395
- COUNT_DISTINCT = "COUNT_DISTINCT",
1396
- /** Minimum value. */
1397
- MIN = "MIN",
1398
- /** Maximum value. */
1399
- MAX = "MAX"
1400
- }
1401
- /** @enumType */
1402
- export type CommonScalarTypeWithLiterals = CommonScalarType | 'UNKNOWN_SCALAR_TYPE' | 'COUNT_DISTINCT' | 'MIN' | 'MAX';
1403
- export interface AggregationValueAggregation extends AggregationValueAggregationOptionsOneOf {
1404
- /** Options for including missing values. */
1405
- includeOptions?: ValueAggregationIncludeMissingValuesOptions;
1406
- /** Whether to sort by number of matches or value of the field. */
1407
- sortType?: ValueAggregationSortTypeWithLiterals;
1408
- /** Whether to sort in ascending or descending order. */
1409
- sortDirection?: ValueAggregationSortDirectionWithLiterals;
1410
- /** How many aggregations to return. Can be between 1 and 250. 10 is the default. */
1411
- limit?: number | null;
1412
- /** Whether to include or exclude missing values from the aggregation results. Default: `EXCLUDE`. */
1413
- missingValues?: ValueAggregationMissingValuesWithLiterals;
1414
- }
1415
- /** @oneof */
1416
- export interface AggregationValueAggregationOptionsOneOf {
1417
- /** Options for including missing values. */
1418
- includeOptions?: ValueAggregationIncludeMissingValuesOptions;
1419
- }
1420
- export declare enum NestedAggregationNestedAggregationType {
1421
- UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
1422
- /** An aggregation where result buckets are dynamically built - one per unique value. */
1423
- VALUE = "VALUE",
1424
- /** An aggregation, where user can define set of ranges - each representing a bucket. */
1425
- RANGE = "RANGE",
1426
- /** A single-value metric aggregation. For example, min, max, sum, avg. */
1427
- SCALAR = "SCALAR",
1428
- /** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.). */
1429
- DATE_HISTOGRAM = "DATE_HISTOGRAM"
1430
- }
1431
- /** @enumType */
1432
- export type NestedAggregationNestedAggregationTypeWithLiterals = NestedAggregationNestedAggregationType | 'UNKNOWN_AGGREGATION_TYPE' | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM';
1433
- export interface AggregationRangeAggregation {
1434
- /**
1435
- * List of range buckets, where during aggregation each entity will be placed in the first bucket its value falls into, based on the provided range bounds.
1436
- * @maxSize 50
1437
- */
1438
- buckets?: RangeAggregationRangeBucket[];
1439
- }
1440
- export interface AggregationScalarAggregation {
1441
- /** Define the operator for the scalar aggregation. */
1442
- type?: CommonScalarTypeWithLiterals;
1443
- }
1444
- export interface AggregationDateHistogramAggregation {
1445
- /** Interval for date histogram aggregation. */
1446
- interval?: DateHistogramAggregationIntervalWithLiterals;
1447
- }
1448
- export declare enum DateHistogramAggregationInterval {
1449
- UNKNOWN_INTERVAL = "UNKNOWN_INTERVAL",
1450
- /** Yearly interval */
1451
- YEAR = "YEAR",
1452
- /** Monthly interval */
1453
- MONTH = "MONTH",
1454
- /** Weekly interval */
1455
- WEEK = "WEEK",
1456
- /** Daily interval */
1457
- DAY = "DAY",
1458
- /** Hourly interval */
1459
- HOUR = "HOUR",
1460
- /** Minute interval */
1461
- MINUTE = "MINUTE",
1462
- /** Second interval */
1463
- SECOND = "SECOND"
1464
- }
1465
- /** @enumType */
1466
- export type DateHistogramAggregationIntervalWithLiterals = DateHistogramAggregationInterval | 'UNKNOWN_INTERVAL' | 'YEAR' | 'MONTH' | 'WEEK' | 'DAY' | 'HOUR' | 'MINUTE' | 'SECOND';
1467
- export interface NestedAggregationNestedAggregationItem extends NestedAggregationNestedAggregationItemKindOneOf {
1468
- /** Value aggregation. */
1469
- value?: AggregationValueAggregation;
1470
- /** Range aggregation. */
1471
- range?: AggregationRangeAggregation;
1472
- /** Scalar aggregation. */
1473
- scalar?: AggregationScalarAggregation;
1474
- /** Date histogram aggregation. */
1475
- dateHistogram?: AggregationDateHistogramAggregation;
1476
- /**
1477
- * User-defined name of aggregation, should be unique, will appear in aggregation results.
1478
- * @maxLength 100
1479
- */
1480
- name?: string | null;
1481
- /** Type of aggregation, client must provide matching aggregation field below. */
1482
- type?: NestedAggregationNestedAggregationTypeWithLiterals;
1483
- /**
1484
- * Field to aggregate by, use dot notation to specify json path.
1485
- * @maxLength 200
1486
- */
1487
- fieldPath?: string;
1488
- }
1489
- /** @oneof */
1490
- export interface NestedAggregationNestedAggregationItemKindOneOf {
1491
- /** Value aggregation. */
1492
- value?: AggregationValueAggregation;
1493
- /** Range aggregation. */
1494
- range?: AggregationRangeAggregation;
1495
- /** Scalar aggregation. */
1496
- scalar?: AggregationScalarAggregation;
1497
- /** Date histogram aggregation. */
1498
- dateHistogram?: AggregationDateHistogramAggregation;
1499
- }
1500
- export declare enum CommonAggregationType {
1501
- UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
1502
- /** An aggregation where result buckets are dynamically built - one per unique value. */
1503
- VALUE = "VALUE",
1504
- /** An aggregation, where user can define set of ranges - each representing a bucket. */
1505
- RANGE = "RANGE",
1506
- /** A single-value metric aggregation. For example, min, max, sum, avg. */
1507
- SCALAR = "SCALAR",
1508
- /** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
1509
- DATE_HISTOGRAM = "DATE_HISTOGRAM",
1510
- /** Multi-level aggregation, where each next aggregation is nested within previous one. */
1511
- NESTED = "NESTED"
1512
- }
1513
- /** @enumType */
1514
- export type CommonAggregationTypeWithLiterals = CommonAggregationType | 'UNKNOWN_AGGREGATION_TYPE' | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM' | 'NESTED';
1515
- /** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one. */
1516
- export interface AggregationNestedAggregation {
1517
- /**
1518
- * Flattened list of aggregations, where each next aggregation is nested within previous one.
1519
- * @minSize 2
1520
- * @maxSize 3
1521
- */
1522
- nestedAggregations?: NestedAggregationNestedAggregationItem[];
1523
- }
1524
- export interface GroupByAggregation extends GroupByAggregationKindOneOf {
1525
- /** Value aggregation configuration. */
1526
- value?: AggregationValueAggregation;
1527
- /**
1528
- * User-defined name of aggregation, should be unique, will appear in aggregation results.
1529
- * @maxLength 100
1530
- */
1531
- name?: string | null;
1532
- /**
1533
- * Field to aggregate by.
1534
- * @maxLength 200
1535
- */
1536
- fieldPath?: string;
1537
- }
1538
- /** @oneof */
1539
- export interface GroupByAggregationKindOneOf {
1540
- /** Value aggregation configuration. */
1541
- value?: AggregationValueAggregation;
1542
- }
1543
- export interface CommonSearchDetails {
1544
- /** Defines how separate search terms in `expression` are combined. */
1545
- mode?: SearchDetailsModeWithLiterals;
1546
- /**
1547
- * Search term or expression.
1548
- * @maxLength 100
1549
- */
1550
- expression?: string | null;
1551
- /**
1552
- * Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path.
1553
- * @maxLength 200
1554
- * @maxSize 20
1555
- */
1556
- fields?: string[];
1557
- /** Whether to use auto fuzzy search (allowing typos by a managed proximity algorithm). */
1558
- fuzzy?: boolean;
1559
- }
1560
- export declare enum SearchDetailsMode {
1561
- /** Any of the search terms must be present. */
1562
- OR = "OR",
1563
- /** All search terms must be present. */
1564
- AND = "AND"
1565
- }
1566
- /** @enumType */
1567
- export type SearchDetailsModeWithLiterals = SearchDetailsMode | 'OR' | 'AND';
1568
- export interface PlatformPaging {
1569
- /**
1570
- * Number of items to load.
1571
- * @max 100
1572
- */
1573
- limit?: number | null;
1574
- /** Number of items to skip in the current sort order. */
1575
- offset?: number | null;
1576
- }
1577
- export interface DeprecatedSearchVariantsWithOffsetResponse {
1578
- /** Products which satisfy the provided query. */
1579
- variants?: ReadOnlyVariant[];
1580
- /** Paging metadata. */
1581
- pagingMetadata?: PagingMetadata;
1582
- /** Aggregation data. */
1583
- aggregationData?: Aggregation;
1584
- }
1585
- export interface PagingMetadata {
1586
- /** Number of items returned in the response. */
1587
- count?: number | null;
1588
- /** Offset that was requested. */
1589
- offset?: number | null;
1590
- /** Total number of items that match the query. */
1591
- total?: number | null;
1592
- /** Flag that indicates the server failed to calculate the `total` field. */
1593
- tooManyToCount?: boolean | null;
1594
- }
1595
- export interface MigrateProductVariantsRequest {
1596
- /** The product */
1597
- product?: Product;
1598
- /** The event sequence number of the product. */
1599
- eventSequence?: string | null;
1600
- }
1601
- export interface Product extends ProductTypedPropertiesOneOf {
1602
- /**
1603
- * Physical properties.
1604
- *
1605
- * Required when `productType: PHYSICAL`.
1606
- */
1607
- physicalProperties?: PhysicalProperties;
1608
- /**
1609
- * Product ID.
1610
- * @minLength 1
1611
- * @maxLength 36
1612
- * @immutable
1613
- * @readonly
1614
- */
1615
- id?: string | null;
1616
- /**
1617
- * Revision number, which increments by 1 each time the product is updated.
1618
- * To prevent conflicting changes,
1619
- * the current revision must be passed when updating the product.
1620
- *
1621
- * Ignored when creating a product.
1622
- * @readonly
1623
- */
1624
- revision?: string | null;
1625
- /**
1626
- * Date and time the product was created.
1627
- * @readonly
1628
- */
1629
- createdDate?: Date | null;
1630
- /**
1631
- * Date and time the product was updated.
1632
- * @readonly
1633
- */
1634
- updatedDate?: Date | null;
1635
- /**
1636
- * Product name. Translatable.
1637
- * @minLength 1
1638
- * @maxLength 80
1639
- */
1640
- name?: string | null;
1641
- /**
1642
- * Product slug.
1643
- *
1644
- * If not provided, the slug is autogenerated based on the product name.
1645
- * @format URL_SLUG
1646
- */
1647
- slug?: string | null;
1648
- /**
1649
- * URL to the site's product page.
1650
- *
1651
- * > **Note:** Returned only when you pass `"URL"` to the `fields` array in Products API requests.
1652
- * @readonly
1653
- */
1654
- url?: PageUrlV2;
1655
- /**
1656
- * Product description using rich content.
1657
- * > **Note:** Returned only when you pass `"DESCRIPTION"` to the `fields` array in Products API requests.
1658
- *
1659
- * <widget src="https://apps.wix.com/_serverless/ricos-playground-services/goto/api-component" plugins="indent.emoji.divider.codeBlock.file.gallery.giphy.image.table.link.textHighlight.textColor" exampleid="7dc9240e-d548-417a-abcf-0291b68b4303">
1660
- * <a href="https://dev.wix.com/docs/ricos/api-reference/ricos-document">See Ricos document reference</a>
1661
- * </widget>
1662
- */
1663
- description?: RichContent;
1664
- /**
1665
- * Product description in HTML.
1666
- *
1667
- * + When provided on create/update, this string must be a valid HTML. It will then be converted to rich content.
1668
- * + `plainDescription` is ignored when value is also passed to the `description` field.
1669
- * > **Note:** Returned only when you pass `"PLAIN_DESCRIPTION"` to the `fields` array in Products API requests.
1670
- * @maxLength 16000
1671
- */
1672
- plainDescription?: string | null;
1673
- /**
1674
- * Whether the product is visible to site visitors on the site.
1675
- *
1676
- * Default: `true`
1677
- */
1678
- visible?: boolean | null;
1679
- /**
1680
- * Whether the product is visible in POS (point of sale).
1681
- *
1682
- * Default: `true`
1683
- * > **Note:** Always `false` for `productType: DIGITAL`.
1684
- */
1685
- visibleInPos?: boolean | null;
1686
- /** Product media items. */
1687
- media?: Media;
1688
- /** Product SEO data. */
1689
- seoData?: SeoSchema;
1690
- /**
1691
- * Tax group ID.
1692
- * @format GUID
1693
- */
1694
- taxGroupId?: string | null;
1695
- /**
1696
- * Product options. Allows the customer to customize the product. For example, selecting color, size, and more.
1697
- *
1698
- * Always generates variants: every variant must have exactly one choice related to each option.
1699
- * Since options and variants tightly coupled and rely on each other they usually should be provided together in all operations.
1700
- * @maxSize 6
1701
- */
1702
- options?: ConnectedOption[];
1703
- /**
1704
- * Product modifiers.
1705
- *
1706
- * Allows the customer to customize product, e.g. select Color, Size and so on similarly to `options` but with one main difference - `modifiers` never generate any variants.
1707
- * @maxSize 10
1708
- */
1709
- modifiers?: ConnectedModifier[];
1710
- /**
1711
- * Product brand.
1712
- *
1713
- * + Pass `brand.name` to add a new brand while creating a product.
1714
- * + Pass an existing brand's `id` to assign that brand to the product.
1715
- */
1716
- brand?: Brand;
1717
- /**
1718
- * Product info section.
1719
- *
1720
- * + Pass `infoSection.uniqueName`, `infoSection.title`, and `infoSection.description` to add a new info section while creating a product.
1721
- * + Pass an existing info section's `id` or `uniqueName` to assign that info section to the product.
1722
- * @maxSize 10
1723
- */
1724
- infoSections?: InfoSection[];
1725
- /**
1726
- * Product ribbon.
1727
- *
1728
- * + Pass `ribbon.name` to add a new ribbon while creating a product.
1729
- * + Pass an existing ribbon's `id` or `name` to assign that ribbon to the product.
1730
- */
1731
- ribbon?: Ribbon;
1732
- /**
1733
- * List of categories that directly contain this product.
1734
- *
1735
- * Updated automatically when a product is added/removed from a category, when an item is moved within a category, or when a category is deleted.
1736
- * > **Note:** Returned only when you pass `"DIRECT_CATEGORIES_INFO"` to the `fields` array in Products API requests.
1737
- * @readonly
1738
- */
1739
- directCategoriesInfo?: ProductCategoriesInfo;
1740
- /**
1741
- * List of categories that directly contain this product, as well as their parent categories.
1742
- * > **Note:** Returned only when you pass `"ALL_CATEGORIES_INFO"` to the `fields` array in Products API requests.
1743
- * @readonly
1744
- */
1745
- allCategoriesInfo?: ProductCategoriesInfo;
1746
- /**
1747
- * Main category ID.
1748
- * @format GUID
1749
- */
1750
- mainCategoryId?: string | null;
1751
- /**
1752
- * Product cost range - minimum and maximum costs of all product variants.
1753
- *
1754
- * > **Note:** Returned only when the following conditions are met:
1755
- * > + You pass `"MERCHANT_DATA"` to the `fields` array in Products API requests.
1756
- * > + Your app has the required `SCOPE.STORES.PRODUCT_READ_ADMIN` permission scope.
1757
- * @readonly
1758
- */
1759
- costRange?: PriceRange;
1760
- /**
1761
- * Product inventory info.
1762
- * @readonly
1763
- */
1764
- inventory?: Inventory;
1765
- /**
1766
- * Product type.
1767
- *
1768
- * When passing `productType: PHYSICAL`, you must also pass `physicalProperties`.
1769
- * @immutable
1770
- */
1771
- productType?: ProductTypeWithLiterals;
1772
- /**
1773
- * A unique human-friendly identifier for the product.
1774
- * Unlike the product ID, the handle can be set by the user to ensure consistency across multiple platforms.
1775
- * In case handle wasn't given, the handle will be automatically generated.
1776
- * @minLength 1
1777
- * @maxLength 100
1778
- * @readonly
1779
- */
1780
- handle?: string | null;
1781
- /**
1782
- * Currency used for the pricing of this product, in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format.
1783
- *
1784
- * Defaults to the currency defined in the site settings, unless specified in `x-wix-currency` header.
1785
- * > **Note:** Returned only when you pass `"CURRENCY"` to the `fields` array in Products API requests.
1786
- * @format CURRENCY
1787
- * @readonly
1788
- */
1789
- currency?: string | null;
1790
- /**
1791
- * Breadcrumbs of the `mainCategoryId`. Used to navigate to parent categories.
1792
- * > **Note:** Returned only when you pass `"BREADCRUMBS_INFO"` to the `fields` array in Products API requests.
1793
- * @readonly
1794
- */
1795
- breadcrumbsInfo?: BreadcrumbsInfo;
1796
- /**
1797
- * Product actualPrice range - minimum and maximum prices of all product variants.
1798
- * @readonly
1799
- */
1800
- actualPriceRange?: PriceRange;
1801
- /**
1802
- * Product compareAtPrice range - minimum and maximum compare at prices of all product variants.
1803
- * @readonly
1804
- */
1805
- compareAtPriceRange?: PriceRange;
1806
- /**
1807
- * Product variants. Each variant must reference all product options via its `choices` array.
1808
- * Each choice references an option using `optionChoiceNames` for all requests.
1809
- */
1810
- variantsInfo?: VariantsInfo;
1811
- /**
1812
- * Custom extended fields for the product object.
1813
- *
1814
- * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.
1815
- */
1816
- extendedFields?: ExtendedFields;
1817
- /** Product subscriptions. */
1818
- subscriptionDetails?: SubscriptionDetails;
1819
- /**
1820
- * The total number of variants for the product.
1821
- * @readonly
1822
- */
1823
- variantSummary?: VariantSummary;
1824
- }
1825
- /** @oneof */
1826
- export interface ProductTypedPropertiesOneOf {
1827
- /**
1828
- * Physical properties.
1829
- *
1830
- * Required when `productType: PHYSICAL`.
1831
- */
1832
- physicalProperties?: PhysicalProperties;
1833
- }
1834
- export interface PageUrlV2 {
1835
- /** The relative path for the page within the site. For example, `/product-page/a-product`. */
1836
- relativePath?: string;
1837
- /** The page's full URL. For example, `https://mysite.com/product-page/a-product`. */
1838
- url?: string | null;
1839
- }
1840
- export interface RichContent {
1841
- /** Node objects representing a rich content document. */
1842
- nodes?: Node[];
1843
- /** Object metadata. */
1844
- metadata?: Metadata;
1845
- /** Global styling for header, paragraph, block quote, and code block nodes in the object. */
1846
- documentStyle?: DocumentStyle;
1847
- }
1848
- export interface Node extends NodeDataOneOf {
1849
- /** Data for a button node. */
1850
- buttonData?: ButtonData;
1851
- /** Data for a code block node. */
1852
- codeBlockData?: CodeBlockData;
1853
- /** Data for a divider node. */
1854
- dividerData?: DividerData;
1855
- /** Data for a file node. */
1856
- fileData?: FileData;
1857
- /** Data for a gallery node. */
1858
- galleryData?: GalleryData;
1859
- /** Data for a GIF node. */
1860
- gifData?: GIFData;
1861
- /** Data for a heading node. */
1862
- headingData?: HeadingData;
1863
- /** Data for an embedded HTML node. */
1864
- htmlData?: HTMLData;
1865
- /** Data for an image node. */
1866
- imageData?: ImageData;
1867
- /** Data for a link preview node. */
1868
- linkPreviewData?: LinkPreviewData;
1869
- /** @deprecated */
1870
- mapData?: MapData;
1871
- /** Data for a paragraph node. */
1872
- paragraphData?: ParagraphData;
1873
- /** Data for a poll node. */
1874
- pollData?: PollData;
1875
- /** Data for a text node. Used to apply decorations to text. */
1876
- textData?: TextData;
1877
- /** Data for an app embed node. */
1878
- appEmbedData?: AppEmbedData;
1879
- /** Data for a video node. */
1880
- videoData?: VideoData;
1881
- /** Data for an oEmbed node. */
1882
- embedData?: EmbedData;
1883
- /** Data for a collapsible list node. */
1884
- collapsibleListData?: CollapsibleListData;
1885
- /** Data for a table node. */
1886
- tableData?: TableData;
1887
- /** Data for a table cell node. */
1888
- tableCellData?: TableCellData;
1889
- /** Data for a custom external node. */
1890
- externalData?: Record<string, any> | null;
1891
- /** Data for an audio node. */
1892
- audioData?: AudioData;
1893
- /** Data for an ordered list node. */
1894
- orderedListData?: OrderedListData;
1895
- /** Data for a bulleted list node. */
1896
- bulletedListData?: BulletedListData;
1897
- /** Data for a block quote node. */
1898
- blockquoteData?: BlockquoteData;
1899
- /** Data for a caption node. */
1900
- captionData?: CaptionData;
1901
- /** LayoutData layout_data = 31; // Data for a layout node. Reserved for future use. */
1902
- layoutCellData?: LayoutCellData;
1903
- /** Node type. Use `APP_EMBED` for nodes that embed content from other Wix apps. Use `EMBED` to embed content in [oEmbed](https://oembed.com/) format. */
1904
- type?: NodeTypeWithLiterals;
1905
- /** Node ID. */
1906
- id?: string;
1907
- /** A list of child nodes. */
1908
- nodes?: Node[];
1909
- /** Padding and background color styling for the node. */
1910
- style?: NodeStyle;
1911
- }
1912
- /** @oneof */
1913
- export interface NodeDataOneOf {
1914
- /** Data for a button node. */
1915
- buttonData?: ButtonData;
1916
- /** Data for a code block node. */
1917
- codeBlockData?: CodeBlockData;
1918
- /** Data for a divider node. */
1919
- dividerData?: DividerData;
1920
- /** Data for a file node. */
1921
- fileData?: FileData;
1922
- /** Data for a gallery node. */
1923
- galleryData?: GalleryData;
1924
- /** Data for a GIF node. */
1925
- gifData?: GIFData;
1926
- /** Data for a heading node. */
1927
- headingData?: HeadingData;
1928
- /** Data for an embedded HTML node. */
1929
- htmlData?: HTMLData;
1930
- /** Data for an image node. */
1931
- imageData?: ImageData;
1932
- /** Data for a link preview node. */
1933
- linkPreviewData?: LinkPreviewData;
1934
- /** @deprecated */
1935
- mapData?: MapData;
1936
- /** Data for a paragraph node. */
1937
- paragraphData?: ParagraphData;
1938
- /** Data for a poll node. */
1939
- pollData?: PollData;
1940
- /** Data for a text node. Used to apply decorations to text. */
1941
- textData?: TextData;
1942
- /** Data for an app embed node. */
1943
- appEmbedData?: AppEmbedData;
1944
- /** Data for a video node. */
1945
- videoData?: VideoData;
1946
- /** Data for an oEmbed node. */
1947
- embedData?: EmbedData;
1948
- /** Data for a collapsible list node. */
1949
- collapsibleListData?: CollapsibleListData;
1950
- /** Data for a table node. */
1951
- tableData?: TableData;
1952
- /** Data for a table cell node. */
1953
- tableCellData?: TableCellData;
1954
- /** Data for a custom external node. */
1955
- externalData?: Record<string, any> | null;
1956
- /** Data for an audio node. */
1957
- audioData?: AudioData;
1958
- /** Data for an ordered list node. */
1959
- orderedListData?: OrderedListData;
1960
- /** Data for a bulleted list node. */
1961
- bulletedListData?: BulletedListData;
1962
- /** Data for a block quote node. */
1963
- blockquoteData?: BlockquoteData;
1964
- /** Data for a caption node. */
1965
- captionData?: CaptionData;
1966
- /** LayoutData layout_data = 31; // Data for a layout node. Reserved for future use. */
1967
- layoutCellData?: LayoutCellData;
1968
- }
1969
- export declare enum NodeType {
1970
- PARAGRAPH = "PARAGRAPH",
1971
- TEXT = "TEXT",
1972
- HEADING = "HEADING",
1973
- BULLETED_LIST = "BULLETED_LIST",
1974
- ORDERED_LIST = "ORDERED_LIST",
1975
- LIST_ITEM = "LIST_ITEM",
1976
- BLOCKQUOTE = "BLOCKQUOTE",
1977
- CODE_BLOCK = "CODE_BLOCK",
1978
- VIDEO = "VIDEO",
1979
- DIVIDER = "DIVIDER",
1980
- FILE = "FILE",
1981
- GALLERY = "GALLERY",
1982
- GIF = "GIF",
1983
- HTML = "HTML",
1984
- IMAGE = "IMAGE",
1985
- LINK_PREVIEW = "LINK_PREVIEW",
1986
- /** @deprecated */
1987
- MAP = "MAP",
1988
- POLL = "POLL",
1989
- APP_EMBED = "APP_EMBED",
1990
- BUTTON = "BUTTON",
1991
- COLLAPSIBLE_LIST = "COLLAPSIBLE_LIST",
1992
- TABLE = "TABLE",
1993
- EMBED = "EMBED",
1994
- COLLAPSIBLE_ITEM = "COLLAPSIBLE_ITEM",
1995
- COLLAPSIBLE_ITEM_TITLE = "COLLAPSIBLE_ITEM_TITLE",
1996
- COLLAPSIBLE_ITEM_BODY = "COLLAPSIBLE_ITEM_BODY",
1997
- TABLE_CELL = "TABLE_CELL",
1998
- TABLE_ROW = "TABLE_ROW",
1999
- EXTERNAL = "EXTERNAL",
2000
- AUDIO = "AUDIO",
2001
- CAPTION = "CAPTION",
2002
- LAYOUT = "LAYOUT",
2003
- LAYOUT_CELL = "LAYOUT_CELL"
2004
- }
2005
- /** @enumType */
2006
- export type NodeTypeWithLiterals = NodeType | 'PARAGRAPH' | 'TEXT' | 'HEADING' | 'BULLETED_LIST' | 'ORDERED_LIST' | 'LIST_ITEM' | 'BLOCKQUOTE' | 'CODE_BLOCK' | 'VIDEO' | 'DIVIDER' | 'FILE' | 'GALLERY' | 'GIF' | 'HTML' | 'IMAGE' | 'LINK_PREVIEW' | 'MAP' | 'POLL' | 'APP_EMBED' | 'BUTTON' | 'COLLAPSIBLE_LIST' | 'TABLE' | 'EMBED' | 'COLLAPSIBLE_ITEM' | 'COLLAPSIBLE_ITEM_TITLE' | 'COLLAPSIBLE_ITEM_BODY' | 'TABLE_CELL' | 'TABLE_ROW' | 'EXTERNAL' | 'AUDIO' | 'CAPTION' | 'LAYOUT' | 'LAYOUT_CELL';
2007
- export interface NodeStyle {
2008
- /** The top padding value in pixels. */
2009
- paddingTop?: string | null;
2010
- /** The bottom padding value in pixels. */
2011
- paddingBottom?: string | null;
2012
- /** The background color as a hexadecimal value. */
2013
- backgroundColor?: string | null;
2014
- }
2015
- export interface ButtonData {
2016
- /** Styling for the button's container. */
2017
- containerData?: PluginContainerData;
2018
- /** The button type. */
2019
- type?: TypeWithLiterals;
2020
- /** Styling for the button. */
2021
- styles?: Styles;
2022
- /** The text to display on the button. */
2023
- text?: string | null;
2024
- /** Button link details. */
2025
- link?: Link;
2026
- }
2027
- export interface Border {
2028
- /**
2029
- * Deprecated: Use `borderWidth` in `styles` instead.
2030
- * @deprecated
2031
- */
2032
- width?: number | null;
2033
- /**
2034
- * Deprecated: Use `borderRadius` in `styles` instead.
2035
- * @deprecated
2036
- */
2037
- radius?: number | null;
2038
- }
2039
- export interface Colors {
2040
- /**
2041
- * Deprecated: Use `textColor` in `styles` instead.
2042
- * @deprecated
2043
- */
2044
- text?: string | null;
2045
- /**
2046
- * Deprecated: Use `borderColor` in `styles` instead.
2047
- * @deprecated
2048
- */
2049
- border?: string | null;
2050
- /**
2051
- * Deprecated: Use `backgroundColor` in `styles` instead.
2052
- * @deprecated
2053
- */
2054
- background?: string | null;
2055
- }
2056
- export interface PluginContainerData {
2057
- /** The width of the node when it's displayed. */
2058
- width?: PluginContainerDataWidth;
2059
- /** The node's alignment within its container. */
2060
- alignment?: PluginContainerDataAlignmentWithLiterals;
2061
- /** Spoiler cover settings for the node. */
2062
- spoiler?: Spoiler;
2063
- /** The height of the node when it's displayed. */
2064
- height?: Height;
2065
- /** Sets whether text should wrap around this node when it's displayed. If `textWrap` is `false`, the node takes up the width of its container. Defaults to `true` for all node types except 'DIVIVDER' where it defaults to `false`. */
2066
- textWrap?: boolean | null;
2067
- }
2068
- export declare enum WidthType {
2069
- /** Width matches the content width */
2070
- CONTENT = "CONTENT",
2071
- /** Small Width */
2072
- SMALL = "SMALL",
2073
- /** Width will match the original asset width */
2074
- ORIGINAL = "ORIGINAL",
2075
- /** coast-to-coast display */
2076
- FULL_WIDTH = "FULL_WIDTH"
2077
- }
2078
- /** @enumType */
2079
- export type WidthTypeWithLiterals = WidthType | 'CONTENT' | 'SMALL' | 'ORIGINAL' | 'FULL_WIDTH';
2080
- export interface PluginContainerDataWidth extends PluginContainerDataWidthDataOneOf {
2081
- /**
2082
- * One of the following predefined width options:
2083
- * `CONTENT`: The width of the container matches the content width.
2084
- * `SMALL`: A small width.
2085
- * `ORIGINAL`: For `imageData` containers only. The width of the container matches the original image width.
2086
- * `FULL_WIDTH`: For `imageData` containers only. The image container takes up the full width of the screen.
2087
- */
2088
- size?: WidthTypeWithLiterals;
2089
- /** A custom width value in pixels. */
2090
- custom?: string | null;
2091
- }
2092
- /** @oneof */
2093
- export interface PluginContainerDataWidthDataOneOf {
2094
- /**
2095
- * One of the following predefined width options:
2096
- * `CONTENT`: The width of the container matches the content width.
2097
- * `SMALL`: A small width.
2098
- * `ORIGINAL`: For `imageData` containers only. The width of the container matches the original image width.
2099
- * `FULL_WIDTH`: For `imageData` containers only. The image container takes up the full width of the screen.
2100
- */
2101
- size?: WidthTypeWithLiterals;
2102
- /** A custom width value in pixels. */
2103
- custom?: string | null;
2104
- }
2105
- export declare enum PluginContainerDataAlignment {
2106
- /** Center Alignment */
2107
- CENTER = "CENTER",
2108
- /** Left Alignment */
2109
- LEFT = "LEFT",
2110
- /** Right Alignment */
2111
- RIGHT = "RIGHT"
2112
- }
2113
- /** @enumType */
2114
- export type PluginContainerDataAlignmentWithLiterals = PluginContainerDataAlignment | 'CENTER' | 'LEFT' | 'RIGHT';
2115
- export interface Spoiler {
2116
- /** Sets whether the spoiler cover is enabled for this node. Defaults to `false`. */
2117
- enabled?: boolean | null;
2118
- /** The description displayed on top of the spoiler cover. */
2119
- description?: string | null;
2120
- /** The text for the button used to remove the spoiler cover. */
2121
- buttonText?: string | null;
2122
- }
2123
- export interface Height {
2124
- /** A custom height value in pixels. */
2125
- custom?: string | null;
2126
- }
2127
- export declare enum Type {
2128
- /** Regular link button */
2129
- LINK = "LINK",
2130
- /** Triggers custom action that is defined in plugin configuration by the consumer */
2131
- ACTION = "ACTION"
2132
- }
2133
- /** @enumType */
2134
- export type TypeWithLiterals = Type | 'LINK' | 'ACTION';
2135
- export interface Styles {
2136
- /**
2137
- * Deprecated: Use `borderWidth` and `borderRadius` instead.
2138
- * @deprecated
2139
- */
2140
- border?: Border;
2141
- /**
2142
- * Deprecated: Use `textColor`, `borderColor` and `backgroundColor` instead.
2143
- * @deprecated
2144
- */
2145
- colors?: Colors;
2146
- /** Border width in pixels. */
2147
- borderWidth?: number | null;
2148
- /**
2149
- * Deprecated: Use `borderWidth` for normal/hover states instead.
2150
- * @deprecated
2151
- */
2152
- borderWidthHover?: number | null;
2153
- /** Border radius in pixels. */
2154
- borderRadius?: number | null;
2155
- /**
2156
- * Border color as a hexadecimal value.
2157
- * @format COLOR_HEX
2158
- */
2159
- borderColor?: string | null;
2160
- /**
2161
- * Border color as a hexadecimal value (hover state).
2162
- * @format COLOR_HEX
2163
- */
2164
- borderColorHover?: string | null;
2165
- /**
2166
- * Text color as a hexadecimal value.
2167
- * @format COLOR_HEX
2168
- */
2169
- textColor?: string | null;
2170
- /**
2171
- * Text color as a hexadecimal value (hover state).
2172
- * @format COLOR_HEX
2173
- */
2174
- textColorHover?: string | null;
2175
- /**
2176
- * Background color as a hexadecimal value.
2177
- * @format COLOR_HEX
2178
- */
2179
- backgroundColor?: string | null;
2180
- /**
2181
- * Background color as a hexadecimal value (hover state).
2182
- * @format COLOR_HEX
2183
- */
2184
- backgroundColorHover?: string | null;
2185
- /** Button size option, one of `SMALL`, `MEDIUM` or `LARGE`. Defaults to `MEDIUM`. */
2186
- buttonSize?: string | null;
2187
- }
2188
- export interface Link extends LinkDataOneOf {
2189
- /** The absolute URL for the linked document. */
2190
- url?: string;
2191
- /** The target node's ID. Used for linking to another node in this object. */
2192
- anchor?: string;
2193
- /**
2194
- * he HTML `target` attribute value for the link. This property defines where the linked document opens as follows:
2195
- * `SELF` - Default. Opens the linked document in the same frame as the link.
2196
- * `BLANK` - Opens the linked document in a new browser tab or window.
2197
- * `PARENT` - Opens the linked document in the link's parent frame.
2198
- * `TOP` - Opens the linked document in the full body of the link's browser tab or window.
2199
- */
2200
- target?: TargetWithLiterals;
2201
- /** The HTML `rel` attribute value for the link. This object specifies the relationship between the current document and the linked document. */
2202
- rel?: Rel;
2203
- /** A serialized object used for a custom or external link panel. */
2204
- customData?: string | null;
2205
- }
2206
- /** @oneof */
2207
- export interface LinkDataOneOf {
2208
- /** The absolute URL for the linked document. */
2209
- url?: string;
2210
- /** The target node's ID. Used for linking to another node in this object. */
2211
- anchor?: string;
2212
- }
2213
- export declare enum Target {
2214
- /** Opens the linked document in the same frame as it was clicked (this is default) */
2215
- SELF = "SELF",
2216
- /** Opens the linked document in a new window or tab */
2217
- BLANK = "BLANK",
2218
- /** Opens the linked document in the parent frame */
2219
- PARENT = "PARENT",
2220
- /** Opens the linked document in the full body of the window */
2221
- TOP = "TOP"
2222
- }
2223
- /** @enumType */
2224
- export type TargetWithLiterals = Target | 'SELF' | 'BLANK' | 'PARENT' | 'TOP';
2225
- export interface Rel {
2226
- /** Indicates to search engine crawlers not to follow the link. Defaults to `false`. */
2227
- nofollow?: boolean | null;
2228
- /** Indicates to search engine crawlers that the link is a paid placement such as sponsored content or an advertisement. Defaults to `false`. */
2229
- sponsored?: boolean | null;
2230
- /** Indicates that this link is user-generated content and isn't necessarily trusted or endorsed by the page’s author. For example, a link in a fourm post. Defaults to `false`. */
2231
- ugc?: boolean | null;
2232
- /** Indicates that this link protect referral information from being passed to the target website. */
2233
- noreferrer?: boolean | null;
2234
- }
2235
- export interface CodeBlockData {
2236
- /** Styling for the code block's text. */
2237
- textStyle?: TextStyle;
2238
- }
2239
- export interface TextStyle {
2240
- /** Text alignment. Defaults to `AUTO`. */
2241
- textAlignment?: TextAlignmentWithLiterals;
2242
- /** A CSS `line-height` value for the text expressed as a ratio relative to the font size. For example, if the font size is 20px, a `lineHeight` value of `'1.5'`` results in a line height of 30px. */
2243
- lineHeight?: string | null;
2244
- }
2245
- export declare enum TextAlignment {
2246
- /** browser default, eqivalent to `initial` */
2247
- AUTO = "AUTO",
2248
- /** Left align */
2249
- LEFT = "LEFT",
2250
- /** Right align */
2251
- RIGHT = "RIGHT",
2252
- /** Center align */
2253
- CENTER = "CENTER",
2254
- /** Text is spaced to line up its left and right edges to the left and right edges of the line box, except for the last line */
2255
- JUSTIFY = "JUSTIFY"
2256
- }
2257
- /** @enumType */
2258
- export type TextAlignmentWithLiterals = TextAlignment | 'AUTO' | 'LEFT' | 'RIGHT' | 'CENTER' | 'JUSTIFY';
2259
- export interface DividerData {
2260
- /** Styling for the divider's container. */
2261
- containerData?: PluginContainerData;
2262
- /** Divider line style. */
2263
- lineStyle?: LineStyleWithLiterals;
2264
- /** Divider width. */
2265
- width?: WidthWithLiterals;
2266
- /** Divider alignment. */
2267
- alignment?: AlignmentWithLiterals;
2268
- }
2269
- export declare enum LineStyle {
2270
- /** Single Line */
2271
- SINGLE = "SINGLE",
2272
- /** Double Line */
2273
- DOUBLE = "DOUBLE",
2274
- /** Dashed Line */
2275
- DASHED = "DASHED",
2276
- /** Dotted Line */
2277
- DOTTED = "DOTTED"
2278
- }
2279
- /** @enumType */
2280
- export type LineStyleWithLiterals = LineStyle | 'SINGLE' | 'DOUBLE' | 'DASHED' | 'DOTTED';
2281
- export declare enum Width {
2282
- /** Large line */
2283
- LARGE = "LARGE",
2284
- /** Medium line */
2285
- MEDIUM = "MEDIUM",
2286
- /** Small line */
2287
- SMALL = "SMALL"
2288
- }
2289
- /** @enumType */
2290
- export type WidthWithLiterals = Width | 'LARGE' | 'MEDIUM' | 'SMALL';
2291
- export declare enum Alignment {
2292
- /** Center alignment */
2293
- CENTER = "CENTER",
2294
- /** Left alignment */
2295
- LEFT = "LEFT",
2296
- /** Right alignment */
2297
- RIGHT = "RIGHT"
2298
- }
2299
- /** @enumType */
2300
- export type AlignmentWithLiterals = Alignment | 'CENTER' | 'LEFT' | 'RIGHT';
2301
- export interface FileData {
2302
- /** Styling for the file's container. */
2303
- containerData?: PluginContainerData;
2304
- /** The source for the file's data. */
2305
- src?: FileSource;
2306
- /** File name. */
2307
- name?: string | null;
2308
- /** File type. */
2309
- type?: string | null;
2310
- /**
2311
- * Use `sizeInKb` instead.
2312
- * @deprecated
2313
- */
2314
- size?: number | null;
2315
- /** Settings for PDF files. */
2316
- pdfSettings?: PDFSettings;
2317
- /** File MIME type. */
2318
- mimeType?: string | null;
2319
- /** File path. */
2320
- path?: string | null;
2321
- /** File size in KB. */
2322
- sizeInKb?: string | null;
2323
- }
2324
- export declare enum ViewMode {
2325
- /** No PDF view */
2326
- NONE = "NONE",
2327
- /** Full PDF view */
2328
- FULL = "FULL",
2329
- /** Mini PDF view */
2330
- MINI = "MINI"
2331
- }
2332
- /** @enumType */
2333
- export type ViewModeWithLiterals = ViewMode | 'NONE' | 'FULL' | 'MINI';
2334
- export interface FileSource extends FileSourceDataOneOf {
2335
- /** The absolute URL for the file's source. */
2336
- url?: string | null;
2337
- /**
2338
- * Custom ID. Use `id` instead.
2339
- * @deprecated
2340
- */
2341
- custom?: string | null;
2342
- /** An ID that's resolved to a URL by a resolver function. */
2343
- id?: string | null;
2344
- /** Indicates whether the file's source is private. Defaults to `false`. */
2345
- private?: boolean | null;
2346
- }
2347
- /** @oneof */
2348
- export interface FileSourceDataOneOf {
2349
- /** The absolute URL for the file's source. */
2350
- url?: string | null;
2351
- /**
2352
- * Custom ID. Use `id` instead.
2353
- * @deprecated
2354
- */
2355
- custom?: string | null;
2356
- /** An ID that's resolved to a URL by a resolver function. */
2357
- id?: string | null;
2358
- }
2359
- export interface PDFSettings {
2360
- /**
2361
- * PDF view mode. One of the following:
2362
- * `NONE` : The PDF isn't displayed.
2363
- * `FULL` : A full page view of the PDF is displayed.
2364
- * `MINI` : A mini view of the PDF is displayed.
2365
- */
2366
- viewMode?: ViewModeWithLiterals;
2367
- /** Sets whether the PDF download button is disabled. Defaults to `false`. */
2368
- disableDownload?: boolean | null;
2369
- /** Sets whether the PDF print button is disabled. Defaults to `false`. */
2370
- disablePrint?: boolean | null;
2371
- }
2372
- export interface GalleryData {
2373
- /** Styling for the gallery's container. */
2374
- containerData?: PluginContainerData;
2375
- /** The items in the gallery. */
2376
- items?: Item[];
2377
- /** Options for defining the gallery's appearance. */
2378
- options?: GalleryOptions;
2379
- /** Sets whether the gallery's expand button is disabled. Defaults to `false`. */
2380
- disableExpand?: boolean | null;
2381
- /** Sets whether the gallery's download button is disabled. Defaults to `false`. */
2382
- disableDownload?: boolean | null;
2383
- }
2384
- export interface V1Media {
2385
- /** The source for the media's data. */
2386
- src?: FileSource;
2387
- /** Media width in pixels. */
2388
- width?: number | null;
2389
- /** Media height in pixels. */
2390
- height?: number | null;
2391
- /** Media duration in seconds. Only relevant for audio and video files. */
2392
- duration?: number | null;
2393
- }
2394
- export interface ItemImage {
2395
- /** Image file details. */
2396
- media?: V1Media;
2397
- /** Link details for images that are links. */
2398
- link?: Link;
2399
- }
2400
- export interface Video {
2401
- /** Video file details. */
2402
- media?: V1Media;
2403
- /** Video thumbnail file details. */
2404
- thumbnail?: V1Media;
2405
- }
2406
- export interface Item extends ItemDataOneOf {
2407
- /** An image item. */
2408
- image?: ItemImage;
2409
- /** A video item. */
2410
- video?: Video;
2411
- /** Item title. */
2412
- title?: string | null;
2413
- /** Item's alternative text. */
2414
- altText?: string | null;
2415
- }
2416
- /** @oneof */
2417
- export interface ItemDataOneOf {
2418
- /** An image item. */
2419
- image?: ItemImage;
2420
- /** A video item. */
2421
- video?: Video;
2422
- }
2423
- export interface GalleryOptions {
2424
- /** Gallery layout. */
2425
- layout?: Layout;
2426
- /** Styling for gallery items. */
2427
- item?: ItemStyle;
2428
- /** Styling for gallery thumbnail images. */
2429
- thumbnails?: Thumbnails;
2430
- }
2431
- export declare enum LayoutType {
2432
- /** Collage type */
2433
- COLLAGE = "COLLAGE",
2434
- /** Masonry type */
2435
- MASONRY = "MASONRY",
2436
- /** Grid type */
2437
- GRID = "GRID",
2438
- /** Thumbnail type */
2439
- THUMBNAIL = "THUMBNAIL",
2440
- /** Slider type */
2441
- SLIDER = "SLIDER",
2442
- /** Slideshow type */
2443
- SLIDESHOW = "SLIDESHOW",
2444
- /** Panorama type */
2445
- PANORAMA = "PANORAMA",
2446
- /** Column type */
2447
- COLUMN = "COLUMN",
2448
- /** Magic type */
2449
- MAGIC = "MAGIC",
2450
- /** Fullsize images type */
2451
- FULLSIZE = "FULLSIZE"
2452
- }
2453
- /** @enumType */
2454
- export type LayoutTypeWithLiterals = LayoutType | 'COLLAGE' | 'MASONRY' | 'GRID' | 'THUMBNAIL' | 'SLIDER' | 'SLIDESHOW' | 'PANORAMA' | 'COLUMN' | 'MAGIC' | 'FULLSIZE';
2455
- export declare enum Orientation {
2456
- /** Rows Orientation */
2457
- ROWS = "ROWS",
2458
- /** Columns Orientation */
2459
- COLUMNS = "COLUMNS"
2460
- }
2461
- /** @enumType */
2462
- export type OrientationWithLiterals = Orientation | 'ROWS' | 'COLUMNS';
2463
- export declare enum Crop {
2464
- /** Crop to fill */
2465
- FILL = "FILL",
2466
- /** Crop to fit */
2467
- FIT = "FIT"
2468
- }
2469
- /** @enumType */
2470
- export type CropWithLiterals = Crop | 'FILL' | 'FIT';
2471
- export declare enum ThumbnailsAlignment {
2472
- /** Top alignment */
2473
- TOP = "TOP",
2474
- /** Right alignment */
2475
- RIGHT = "RIGHT",
2476
- /** Bottom alignment */
2477
- BOTTOM = "BOTTOM",
2478
- /** Left alignment */
2479
- LEFT = "LEFT",
2480
- /** No thumbnail */
2481
- NONE = "NONE"
2482
- }
2483
- /** @enumType */
2484
- export type ThumbnailsAlignmentWithLiterals = ThumbnailsAlignment | 'TOP' | 'RIGHT' | 'BOTTOM' | 'LEFT' | 'NONE';
2485
- export interface Layout {
2486
- /** Gallery layout type. */
2487
- type?: LayoutTypeWithLiterals;
2488
- /** Sets whether horizontal scroll is enabled. Defaults to `true` unless the layout `type` is set to `GRID` or `COLLAGE`. */
2489
- horizontalScroll?: boolean | null;
2490
- /** Gallery orientation. */
2491
- orientation?: OrientationWithLiterals;
2492
- /** The number of columns to display on full size screens. */
2493
- numberOfColumns?: number | null;
2494
- /** The number of columns to display on mobile screens. */
2495
- mobileNumberOfColumns?: number | null;
2496
- }
2497
- export interface ItemStyle {
2498
- /** Desirable dimension for each item in pixels (behvaior changes according to gallery type) */
2499
- targetSize?: number | null;
2500
- /** Item ratio */
2501
- ratio?: number | null;
2502
- /** Sets how item images are cropped. */
2503
- crop?: CropWithLiterals;
2504
- /** The spacing between items in pixels. */
2505
- spacing?: number | null;
2506
- }
2507
- export interface Thumbnails {
2508
- /** Thumbnail alignment. */
2509
- placement?: ThumbnailsAlignmentWithLiterals;
2510
- /** Spacing between thumbnails in pixels. */
2511
- spacing?: number | null;
2512
- }
2513
- export interface GIFData {
2514
- /** Styling for the GIF's container. */
2515
- containerData?: PluginContainerData;
2516
- /** The source of the full size GIF. */
2517
- original?: GIF;
2518
- /** The source of the downsized GIF. */
2519
- downsized?: GIF;
2520
- /** Height in pixels. */
2521
- height?: number;
2522
- /** Width in pixels. */
2523
- width?: number;
2524
- /** Type of GIF (Sticker or NORMAL). Defaults to `NORMAL`. */
2525
- gifType?: GIFTypeWithLiterals;
2526
- }
2527
- export interface GIF {
2528
- /**
2529
- * GIF format URL.
2530
- * @format WEB_URL
2531
- */
2532
- gif?: string | null;
2533
- /**
2534
- * MP4 format URL.
2535
- * @format WEB_URL
2536
- */
2537
- mp4?: string | null;
2538
- /**
2539
- * Thumbnail URL.
2540
- * @format WEB_URL
2541
- */
2542
- still?: string | null;
2543
- }
2544
- export declare enum GIFType {
2545
- NORMAL = "NORMAL",
2546
- STICKER = "STICKER"
2547
- }
2548
- /** @enumType */
2549
- export type GIFTypeWithLiterals = GIFType | 'NORMAL' | 'STICKER';
2550
- export interface HeadingData {
2551
- /** Heading level from 1-6. */
2552
- level?: number;
2553
- /** Styling for the heading text. */
2554
- textStyle?: TextStyle;
2555
- /** Indentation level from 1-4. */
2556
- indentation?: number | null;
2557
- }
2558
- export interface HTMLData extends HTMLDataDataOneOf {
2559
- /** The URL for the HTML code for the node. */
2560
- url?: string;
2561
- /** The HTML code for the node. */
2562
- html?: string;
2563
- /**
2564
- * Whether this is an AdSense element. Use `source` instead.
2565
- * @deprecated
2566
- */
2567
- isAdsense?: boolean | null;
2568
- /** Styling for the HTML node's container. Height property is irrelevant for HTML embeds when autoHeight is set to `true`. */
2569
- containerData?: PluginContainerData;
2570
- /** The type of HTML code. */
2571
- source?: SourceWithLiterals;
2572
- /** If container height is aligned with its content height. Defaults to `true`. */
2573
- autoHeight?: boolean | null;
2574
- }
2575
- /** @oneof */
2576
- export interface HTMLDataDataOneOf {
2577
- /** The URL for the HTML code for the node. */
2578
- url?: string;
2579
- /** The HTML code for the node. */
2580
- html?: string;
2581
- /**
2582
- * Whether this is an AdSense element. Use `source` instead.
2583
- * @deprecated
2584
- */
2585
- isAdsense?: boolean | null;
2586
- }
2587
- export declare enum Source {
2588
- HTML = "HTML",
2589
- ADSENSE = "ADSENSE"
2590
- }
2591
- /** @enumType */
2592
- export type SourceWithLiterals = Source | 'HTML' | 'ADSENSE';
2593
- export interface ImageData {
2594
- /** Styling for the image's container. */
2595
- containerData?: PluginContainerData;
2596
- /** Image file details. */
2597
- image?: V1Media;
2598
- /** Link details for images that are links. */
2599
- link?: Link;
2600
- /** Sets whether the image expands to full screen when clicked. Defaults to `false`. */
2601
- disableExpand?: boolean | null;
2602
- /** Image's alternative text. */
2603
- altText?: string | null;
2604
- /**
2605
- * Deprecated: use Caption node instead.
2606
- * @deprecated
2607
- */
2608
- caption?: string | null;
2609
- /** Sets whether the image's download button is disabled. Defaults to `false`. */
2610
- disableDownload?: boolean | null;
2611
- /** Sets whether the image is decorative and does not need an explanation. Defaults to `false`. */
2612
- decorative?: boolean | null;
2613
- /** Styling for the image. */
2614
- styles?: ImageDataStyles;
2615
- }
2616
- export interface StylesBorder {
2617
- /** Border width in pixels. */
2618
- width?: number | null;
2619
- /**
2620
- * Border color as a hexadecimal value.
2621
- * @format COLOR_HEX
2622
- */
2623
- color?: string | null;
2624
- /** Border radius in pixels. */
2625
- radius?: number | null;
2626
- }
2627
- export interface ImageDataStyles {
2628
- /** Border attributes. */
2629
- border?: StylesBorder;
2630
- }
2631
- export interface LinkPreviewData {
2632
- /** Styling for the link preview's container. */
2633
- containerData?: PluginContainerData;
2634
- /** Link details. */
2635
- link?: Link;
2636
- /** Preview title. */
2637
- title?: string | null;
2638
- /** Preview thumbnail URL. */
2639
- thumbnailUrl?: string | null;
2640
- /** Preview description. */
2641
- description?: string | null;
2642
- /** The preview content as HTML. */
2643
- html?: string | null;
2644
- /** Styling for the link preview. */
2645
- styles?: LinkPreviewDataStyles;
2646
- }
2647
- export declare enum Position {
2648
- /** Thumbnail positioned at the start (left in LTR layouts, right in RTL layouts) */
2649
- START = "START",
2650
- /** Thumbnail positioned at the end (right in LTR layouts, left in RTL layouts) */
2651
- END = "END",
2652
- /** Thumbnail positioned at the top */
2653
- TOP = "TOP",
2654
- /** Thumbnail hidden and not displayed */
2655
- HIDDEN = "HIDDEN"
2656
- }
2657
- /** @enumType */
2658
- export type PositionWithLiterals = Position | 'START' | 'END' | 'TOP' | 'HIDDEN';
2659
- export interface LinkPreviewDataStyles {
2660
- /**
2661
- * Background color as a hexadecimal value.
2662
- * @format COLOR_HEX
2663
- */
2664
- backgroundColor?: string | null;
2665
- /**
2666
- * Title color as a hexadecimal value.
2667
- * @format COLOR_HEX
2668
- */
2669
- titleColor?: string | null;
2670
- /**
2671
- * Subtitle color as a hexadecimal value.
2672
- * @format COLOR_HEX
2673
- */
2674
- subtitleColor?: string | null;
2675
- /**
2676
- * Link color as a hexadecimal value.
2677
- * @format COLOR_HEX
2678
- */
2679
- linkColor?: string | null;
2680
- /** Border width in pixels. */
2681
- borderWidth?: number | null;
2682
- /** Border radius in pixels. */
2683
- borderRadius?: number | null;
2684
- /**
2685
- * Border color as a hexadecimal value.
2686
- * @format COLOR_HEX
2687
- */
2688
- borderColor?: string | null;
2689
- /** Position of thumbnail. Defaults to `START`. */
2690
- thumbnailPosition?: PositionWithLiterals;
2691
- }
2692
- export interface MapData {
2693
- /** Styling for the map's container. */
2694
- containerData?: PluginContainerData;
2695
- /** Map settings. */
2696
- mapSettings?: MapSettings;
2697
- }
2698
- export interface MapSettings {
2699
- /** The address to display on the map. */
2700
- address?: string | null;
2701
- /** Sets whether the map is draggable. */
2702
- draggable?: boolean | null;
2703
- /** Sets whether the location marker is visible. */
2704
- marker?: boolean | null;
2705
- /** Sets whether street view control is enabled. */
2706
- streetViewControl?: boolean | null;
2707
- /** Sets whether zoom control is enabled. */
2708
- zoomControl?: boolean | null;
2709
- /** Location latitude. */
2710
- lat?: number | null;
2711
- /** Location longitude. */
2712
- lng?: number | null;
2713
- /** Location name. */
2714
- locationName?: string | null;
2715
- /** Sets whether view mode control is enabled. */
2716
- viewModeControl?: boolean | null;
2717
- /** Initial zoom value. */
2718
- initialZoom?: number | null;
2719
- /** Map type. `HYBRID` is a combination of the `ROADMAP` and `SATELLITE` map types. */
2720
- mapType?: MapTypeWithLiterals;
2721
- }
2722
- export declare enum MapType {
2723
- /** Roadmap map type */
2724
- ROADMAP = "ROADMAP",
2725
- /** Satellite map type */
2726
- SATELITE = "SATELITE",
2727
- /** Hybrid map type */
2728
- HYBRID = "HYBRID",
2729
- /** Terrain map type */
2730
- TERRAIN = "TERRAIN"
2731
- }
2732
- /** @enumType */
2733
- export type MapTypeWithLiterals = MapType | 'ROADMAP' | 'SATELITE' | 'HYBRID' | 'TERRAIN';
2734
- export interface ParagraphData {
2735
- /** Styling for the paragraph text. */
2736
- textStyle?: TextStyle;
2737
- /** Indentation level from 1-4. */
2738
- indentation?: number | null;
2739
- /** Paragraph level */
2740
- level?: number | null;
2741
- }
2742
- export interface PollData {
2743
- /** Styling for the poll's container. */
2744
- containerData?: PluginContainerData;
2745
- /** Poll data. */
2746
- poll?: Poll;
2747
- /** Layout settings for the poll and voting options. */
2748
- layout?: PollDataLayout;
2749
- /** Styling for the poll and voting options. */
2750
- design?: Design;
2751
- }
2752
- export declare enum ViewRole {
2753
- /** Only Poll creator can view the results */
2754
- CREATOR = "CREATOR",
2755
- /** Anyone who voted can see the results */
2756
- VOTERS = "VOTERS",
2757
- /** Anyone can see the results, even if one didn't vote */
2758
- EVERYONE = "EVERYONE"
2759
- }
2760
- /** @enumType */
2761
- export type ViewRoleWithLiterals = ViewRole | 'CREATOR' | 'VOTERS' | 'EVERYONE';
2762
- export declare enum VoteRole {
2763
- /** Logged in member */
2764
- SITE_MEMBERS = "SITE_MEMBERS",
2765
- /** Anyone */
2766
- ALL = "ALL"
2767
- }
2768
- /** @enumType */
2769
- export type VoteRoleWithLiterals = VoteRole | 'SITE_MEMBERS' | 'ALL';
2770
- export interface Permissions {
2771
- /** Sets who can view the poll results. */
2772
- view?: ViewRoleWithLiterals;
2773
- /** Sets who can vote. */
2774
- vote?: VoteRoleWithLiterals;
2775
- /** Sets whether one voter can vote multiple times. Defaults to `false`. */
2776
- allowMultipleVotes?: boolean | null;
2777
- }
2778
- export interface Option {
2779
- /** Option ID. */
2780
- id?: string | null;
2781
- /** Option title. */
2782
- title?: string | null;
2783
- /** The image displayed with the option. */
2784
- image?: V1Media;
2785
- }
2786
- export interface PollSettings {
2787
- /** Permissions settings for voting. */
2788
- permissions?: Permissions;
2789
- /** Sets whether voters are displayed in the vote results. Defaults to `true`. */
2790
- showVoters?: boolean | null;
2791
- /** Sets whether the vote count is displayed. Defaults to `true`. */
2792
- showVotesCount?: boolean | null;
2793
- }
2794
- export declare enum PollLayoutType {
2795
- /** List */
2796
- LIST = "LIST",
2797
- /** Grid */
2798
- GRID = "GRID"
2799
- }
2800
- /** @enumType */
2801
- export type PollLayoutTypeWithLiterals = PollLayoutType | 'LIST' | 'GRID';
2802
- export declare enum PollLayoutDirection {
2803
- /** Left-to-right */
2804
- LTR = "LTR",
2805
- /** Right-to-left */
2806
- RTL = "RTL"
2807
- }
2808
- /** @enumType */
2809
- export type PollLayoutDirectionWithLiterals = PollLayoutDirection | 'LTR' | 'RTL';
2810
- export interface PollLayout {
2811
- /** The layout for displaying the voting options. */
2812
- type?: PollLayoutTypeWithLiterals;
2813
- /** The direction of the text displayed in the voting options. Text can be displayed either right-to-left or left-to-right. */
2814
- direction?: PollLayoutDirectionWithLiterals;
2815
- /** Sets whether to display the main poll image. Defaults to `false`. */
2816
- enableImage?: boolean | null;
2817
- }
2818
- export interface OptionLayout {
2819
- /** Sets whether to display option images. Defaults to `false`. */
2820
- enableImage?: boolean | null;
2821
- }
2822
- export declare enum BackgroundType {
2823
- /** Color background type */
2824
- COLOR = "COLOR",
2825
- /** Image background type */
2826
- IMAGE = "IMAGE",
2827
- /** Gradiant background type */
2828
- GRADIENT = "GRADIENT"
2829
- }
2830
- /** @enumType */
2831
- export type BackgroundTypeWithLiterals = BackgroundType | 'COLOR' | 'IMAGE' | 'GRADIENT';
2832
- export interface Gradient {
2833
- /** The gradient angle in degrees. */
2834
- angle?: number | null;
2835
- /**
2836
- * The start color as a hexademical value.
2837
- * @format COLOR_HEX
2838
- */
2839
- startColor?: string | null;
2840
- /**
2841
- * The end color as a hexademical value.
2842
- * @format COLOR_HEX
2843
- */
2844
- lastColor?: string | null;
2845
- }
2846
- export interface Background extends BackgroundBackgroundOneOf {
2847
- /**
2848
- * The background color as a hexademical value.
2849
- * @format COLOR_HEX
2850
- */
2851
- color?: string | null;
2852
- /** An image to use for the background. */
2853
- image?: V1Media;
2854
- /** Details for a gradient background. */
2855
- gradient?: Gradient;
2856
- /** Background type. For each option, include the relevant details. */
2857
- type?: BackgroundTypeWithLiterals;
2858
- }
2859
- /** @oneof */
2860
- export interface BackgroundBackgroundOneOf {
2861
- /**
2862
- * The background color as a hexademical value.
2863
- * @format COLOR_HEX
2864
- */
2865
- color?: string | null;
2866
- /** An image to use for the background. */
2867
- image?: V1Media;
2868
- /** Details for a gradient background. */
2869
- gradient?: Gradient;
2870
- }
2871
- export interface PollDesign {
2872
- /** Background styling. */
2873
- background?: Background;
2874
- /** Border radius in pixels. */
2875
- borderRadius?: number | null;
2876
- }
2877
- export interface OptionDesign {
2878
- /** Border radius in pixels. */
2879
- borderRadius?: number | null;
2880
- }
2881
- export interface Poll {
2882
- /** Poll ID. */
2883
- id?: string | null;
2884
- /** Poll title. */
2885
- title?: string | null;
2886
- /** Poll creator ID. */
2887
- creatorId?: string | null;
2888
- /** Main poll image. */
2889
- image?: V1Media;
2890
- /** Voting options. */
2891
- options?: Option[];
2892
- /** The poll's permissions and display settings. */
2893
- settings?: PollSettings;
2894
- }
2895
- export interface PollDataLayout {
2896
- /** Poll layout settings. */
2897
- poll?: PollLayout;
2898
- /** Voting otpions layout settings. */
2899
- options?: OptionLayout;
2900
- }
2901
- export interface Design {
2902
- /** Styling for the poll. */
2903
- poll?: PollDesign;
2904
- /** Styling for voting options. */
2905
- options?: OptionDesign;
2906
- }
2907
- export interface TextData {
2908
- /** The text to apply decorations to. */
2909
- text?: string;
2910
- /** The decorations to apply. */
2911
- decorations?: Decoration[];
2912
- }
2913
- /** Adds appearence changes to text */
2914
- export interface Decoration extends DecorationDataOneOf {
2915
- /** Data for an anchor link decoration. */
2916
- anchorData?: AnchorData;
2917
- /** Data for a color decoration. */
2918
- colorData?: ColorData;
2919
- /** Data for an external link decoration. */
2920
- linkData?: LinkData;
2921
- /** Data for a mention decoration. */
2922
- mentionData?: MentionData;
2923
- /** Data for a font size decoration. */
2924
- fontSizeData?: FontSizeData;
2925
- /** Font weight for a bold decoration. */
2926
- fontWeightValue?: number | null;
2927
- /** Data for an italic decoration. Defaults to `true`. */
2928
- italicData?: boolean | null;
2929
- /** Data for an underline decoration. Defaults to `true`. */
2930
- underlineData?: boolean | null;
2931
- /** Data for a spoiler decoration. */
2932
- spoilerData?: SpoilerData;
2933
- /** Data for a strikethrough decoration. Defaults to `true`. */
2934
- strikethroughData?: boolean | null;
2935
- /** The type of decoration to apply. */
2936
- type?: DecorationTypeWithLiterals;
2937
- }
2938
- /** @oneof */
2939
- export interface DecorationDataOneOf {
2940
- /** Data for an anchor link decoration. */
2941
- anchorData?: AnchorData;
2942
- /** Data for a color decoration. */
2943
- colorData?: ColorData;
2944
- /** Data for an external link decoration. */
2945
- linkData?: LinkData;
2946
- /** Data for a mention decoration. */
2947
- mentionData?: MentionData;
2948
- /** Data for a font size decoration. */
2949
- fontSizeData?: FontSizeData;
2950
- /** Font weight for a bold decoration. */
2951
- fontWeightValue?: number | null;
2952
- /** Data for an italic decoration. Defaults to `true`. */
2953
- italicData?: boolean | null;
2954
- /** Data for an underline decoration. Defaults to `true`. */
2955
- underlineData?: boolean | null;
2956
- /** Data for a spoiler decoration. */
2957
- spoilerData?: SpoilerData;
2958
- /** Data for a strikethrough decoration. Defaults to `true`. */
2959
- strikethroughData?: boolean | null;
2960
- }
2961
- export declare enum DecorationType {
2962
- BOLD = "BOLD",
2963
- ITALIC = "ITALIC",
2964
- UNDERLINE = "UNDERLINE",
2965
- SPOILER = "SPOILER",
2966
- ANCHOR = "ANCHOR",
2967
- MENTION = "MENTION",
2968
- LINK = "LINK",
2969
- COLOR = "COLOR",
2970
- FONT_SIZE = "FONT_SIZE",
2971
- EXTERNAL = "EXTERNAL",
2972
- STRIKETHROUGH = "STRIKETHROUGH"
2973
- }
2974
- /** @enumType */
2975
- export type DecorationTypeWithLiterals = DecorationType | 'BOLD' | 'ITALIC' | 'UNDERLINE' | 'SPOILER' | 'ANCHOR' | 'MENTION' | 'LINK' | 'COLOR' | 'FONT_SIZE' | 'EXTERNAL' | 'STRIKETHROUGH';
2976
- export interface AnchorData {
2977
- /** The target node's ID. */
2978
- anchor?: string;
2979
- }
2980
- export interface ColorData {
2981
- /** The text's background color as a hexadecimal value. */
2982
- background?: string | null;
2983
- /** The text's foreground color as a hexadecimal value. */
2984
- foreground?: string | null;
2985
- }
2986
- export interface LinkData {
2987
- /** Link details. */
2988
- link?: Link;
2989
- }
2990
- export interface MentionData {
2991
- /** The mentioned user's name. */
2992
- name?: string;
2993
- /** The version of the user's name that appears after the `@` character in the mention. */
2994
- slug?: string;
2995
- /** Mentioned user's ID. */
2996
- id?: string | null;
2997
- }
2998
- export interface FontSizeData {
2999
- /** The units used for the font size. */
3000
- unit?: FontTypeWithLiterals;
3001
- /** Font size value. */
3002
- value?: number | null;
3003
- }
3004
- export declare enum FontType {
3005
- PX = "PX",
3006
- EM = "EM"
3007
- }
3008
- /** @enumType */
3009
- export type FontTypeWithLiterals = FontType | 'PX' | 'EM';
3010
- export interface SpoilerData {
3011
- /** Spoiler ID. */
3012
- id?: string | null;
3013
- }
3014
- export interface AppEmbedData extends AppEmbedDataAppDataOneOf {
3015
- /** Data for embedded Wix Bookings content. */
3016
- bookingData?: BookingData;
3017
- /** Data for embedded Wix Events content. */
3018
- eventData?: EventData;
3019
- /** The type of Wix App content being embedded. */
3020
- type?: AppTypeWithLiterals;
3021
- /** The ID of the embedded content. */
3022
- itemId?: string | null;
3023
- /** The name of the embedded content. */
3024
- name?: string | null;
3025
- /**
3026
- * Deprecated: Use `image` instead.
3027
- * @deprecated
3028
- */
3029
- imageSrc?: string | null;
3030
- /** The URL for the embedded content. */
3031
- url?: string | null;
3032
- /** An image for the embedded content. */
3033
- image?: V1Media;
3034
- }
3035
- /** @oneof */
3036
- export interface AppEmbedDataAppDataOneOf {
3037
- /** Data for embedded Wix Bookings content. */
3038
- bookingData?: BookingData;
3039
- /** Data for embedded Wix Events content. */
3040
- eventData?: EventData;
3041
- }
3042
- export declare enum AppType {
3043
- PRODUCT = "PRODUCT",
3044
- EVENT = "EVENT",
3045
- BOOKING = "BOOKING"
3046
- }
3047
- /** @enumType */
3048
- export type AppTypeWithLiterals = AppType | 'PRODUCT' | 'EVENT' | 'BOOKING';
3049
- export interface BookingData {
3050
- /** Booking duration in minutes. */
3051
- durations?: string | null;
3052
- }
3053
- export interface EventData {
3054
- /** Event schedule. */
3055
- scheduling?: string | null;
3056
- /** Event location. */
3057
- location?: string | null;
3058
- }
3059
- export interface VideoData {
3060
- /** Styling for the video's container. */
3061
- containerData?: PluginContainerData;
3062
- /** Video details. */
3063
- video?: V1Media;
3064
- /** Video thumbnail details. */
3065
- thumbnail?: V1Media;
3066
- /** Sets whether the video's download button is disabled. Defaults to `false`. */
3067
- disableDownload?: boolean | null;
3068
- /** Video title. */
3069
- title?: string | null;
3070
- /** Video options. */
3071
- options?: PlaybackOptions;
3072
- }
3073
- export interface PlaybackOptions {
3074
- /** Sets whether the media will automatically start playing. */
3075
- autoPlay?: boolean | null;
3076
- /** Sets whether media's will be looped. */
3077
- playInLoop?: boolean | null;
3078
- /** Sets whether media's controls will be shown. */
3079
- showControls?: boolean | null;
3080
- }
3081
- export interface EmbedData {
3082
- /** Styling for the oEmbed node's container. */
3083
- containerData?: PluginContainerData;
3084
- /** An [oEmbed](https://www.oembed.com) object. */
3085
- oembed?: Oembed;
3086
- /** Origin asset source. */
3087
- src?: string | null;
3088
- }
3089
- export interface Oembed {
3090
- /** The resource type. */
3091
- type?: string | null;
3092
- /** The width of the resource specified in the `url` property in pixels. */
3093
- width?: number | null;
3094
- /** The height of the resource specified in the `url` property in pixels. */
3095
- height?: number | null;
3096
- /** Resource title. */
3097
- title?: string | null;
3098
- /** The source URL for the resource. */
3099
- url?: string | null;
3100
- /** HTML for embedding a video player. The HTML should have no padding or margins. */
3101
- html?: string | null;
3102
- /** The name of the author or owner of the resource. */
3103
- authorName?: string | null;
3104
- /** The URL for the author or owner of the resource. */
3105
- authorUrl?: string | null;
3106
- /** The name of the resource provider. */
3107
- providerName?: string | null;
3108
- /** The URL for the resource provider. */
3109
- providerUrl?: string | null;
3110
- /** The URL for a thumbnail image for the resource. If this property is defined, `thumbnailWidth` and `thumbnailHeight` must also be defined. */
3111
- thumbnailUrl?: string | null;
3112
- /** The width of the resource's thumbnail image. If this property is defined, `thumbnailUrl` and `thumbnailHeight` must also be defined. */
3113
- thumbnailWidth?: string | null;
3114
- /** The height of the resource's thumbnail image. If this property is defined, `thumbnailUrl` and `thumbnailWidth`must also be defined. */
3115
- thumbnailHeight?: string | null;
3116
- /** The URL for an embedded viedo. */
3117
- videoUrl?: string | null;
3118
- /** The oEmbed version number. This value must be `1.0`. */
3119
- version?: string | null;
3120
- }
3121
- export interface CollapsibleListData {
3122
- /** Styling for the collapsible list's container. */
3123
- containerData?: PluginContainerData;
3124
- /** If `true`, only one item can be expanded at a time. Defaults to `false`. */
3125
- expandOnlyOne?: boolean | null;
3126
- /** Sets which items are expanded when the page loads. */
3127
- initialExpandedItems?: InitialExpandedItemsWithLiterals;
3128
- /** The direction of the text in the list. Either left-to-right or right-to-left. */
3129
- direction?: DirectionWithLiterals;
3130
- /** If `true`, The collapsible item will appear in search results as an FAQ. */
3131
- isQapageData?: boolean | null;
3132
- }
3133
- export declare enum InitialExpandedItems {
3134
- /** First item will be expended initally */
3135
- FIRST = "FIRST",
3136
- /** All items will expended initally */
3137
- ALL = "ALL",
3138
- /** All items collapsed initally */
3139
- NONE = "NONE"
3140
- }
3141
- /** @enumType */
3142
- export type InitialExpandedItemsWithLiterals = InitialExpandedItems | 'FIRST' | 'ALL' | 'NONE';
3143
- export declare enum Direction {
3144
- /** Left-to-right */
3145
- LTR = "LTR",
3146
- /** Right-to-left */
3147
- RTL = "RTL"
3148
- }
3149
- /** @enumType */
3150
- export type DirectionWithLiterals = Direction | 'LTR' | 'RTL';
3151
- export interface TableData {
3152
- /** Styling for the table's container. */
3153
- containerData?: PluginContainerData;
3154
- /** The table's dimensions. */
3155
- dimensions?: Dimensions;
3156
- /**
3157
- * Deprecated: Use `rowHeader` and `columnHeader` instead.
3158
- * @deprecated
3159
- */
3160
- header?: boolean | null;
3161
- /** Sets whether the table's first row is a header. Defaults to `false`. */
3162
- rowHeader?: boolean | null;
3163
- /** Sets whether the table's first column is a header. Defaults to `false`. */
3164
- columnHeader?: boolean | null;
3165
- }
3166
- export interface Dimensions {
3167
- /** An array representing relative width of each column in relation to the other columns. */
3168
- colsWidthRatio?: number[];
3169
- /** An array representing the height of each row in pixels. */
3170
- rowsHeight?: number[];
3171
- /** An array representing the minimum width of each column in pixels. */
3172
- colsMinWidth?: number[];
3173
- }
3174
- export interface TableCellData {
3175
- /** Styling for the cell's background color and text alignment. */
3176
- cellStyle?: CellStyle;
3177
- /** The cell's border colors. */
3178
- borderColors?: BorderColors;
3179
- }
3180
- export declare enum VerticalAlignment {
3181
- /** Top alignment */
3182
- TOP = "TOP",
3183
- /** Middle alignment */
3184
- MIDDLE = "MIDDLE",
3185
- /** Bottom alignment */
3186
- BOTTOM = "BOTTOM"
3187
- }
3188
- /** @enumType */
3189
- export type VerticalAlignmentWithLiterals = VerticalAlignment | 'TOP' | 'MIDDLE' | 'BOTTOM';
3190
- export interface CellStyle {
3191
- /** Vertical alignment for the cell's text. */
3192
- verticalAlignment?: VerticalAlignmentWithLiterals;
3193
- /**
3194
- * Cell background color as a hexadecimal value.
3195
- * @format COLOR_HEX
3196
- */
3197
- backgroundColor?: string | null;
3198
- }
3199
- export interface BorderColors {
3200
- /**
3201
- * Left border color as a hexadecimal value.
3202
- * @format COLOR_HEX
3203
- */
3204
- left?: string | null;
3205
- /**
3206
- * Right border color as a hexadecimal value.
3207
- * @format COLOR_HEX
3208
- */
3209
- right?: string | null;
3210
- /**
3211
- * Top border color as a hexadecimal value.
3212
- * @format COLOR_HEX
3213
- */
3214
- top?: string | null;
3215
- /**
3216
- * Bottom border color as a hexadecimal value.
3217
- * @format COLOR_HEX
3218
- */
3219
- bottom?: string | null;
3220
- }
3221
- /**
3222
- * `NullValue` is a singleton enumeration to represent the null value for the
3223
- * `Value` type union.
3224
- *
3225
- * The JSON representation for `NullValue` is JSON `null`.
3226
- */
3227
- export declare enum NullValue {
3228
- /** Null value. */
3229
- NULL_VALUE = "NULL_VALUE"
3230
- }
3231
- /** @enumType */
3232
- export type NullValueWithLiterals = NullValue | 'NULL_VALUE';
3233
- /**
3234
- * `ListValue` is a wrapper around a repeated field of values.
3235
- *
3236
- * The JSON representation for `ListValue` is JSON array.
3237
- */
3238
- export interface ListValue {
3239
- /** Repeated field of dynamically typed values. */
3240
- values?: any[];
3241
- }
3242
- export interface AudioData {
3243
- /** Styling for the audio node's container. */
3244
- containerData?: PluginContainerData;
3245
- /** Audio file details. */
3246
- audio?: V1Media;
3247
- /** Sets whether the audio node's download button is disabled. Defaults to `false`. */
3248
- disableDownload?: boolean | null;
3249
- /** Cover image. */
3250
- coverImage?: V1Media;
3251
- /** Track name. */
3252
- name?: string | null;
3253
- /** Author name. */
3254
- authorName?: string | null;
3255
- /** An HTML version of the audio node. */
3256
- html?: string | null;
3257
- }
3258
- export interface OrderedListData {
3259
- /** Indentation level from 0-4. */
3260
- indentation?: number;
3261
- /** Offset level from 0-4. */
3262
- offset?: number | null;
3263
- /** List start number. */
3264
- start?: number | null;
3265
- }
3266
- export interface BulletedListData {
3267
- /** Indentation level from 0-4. */
3268
- indentation?: number;
3269
- /** Offset level from 0-4. */
3270
- offset?: number | null;
3271
- }
3272
- export interface BlockquoteData {
3273
- /** Indentation level from 1-4. */
3274
- indentation?: number;
3275
- }
3276
- export interface CaptionData {
3277
- textStyle?: TextStyle;
3278
- }
3279
- export interface LayoutCellData {
3280
- /** Size of the cell in 12 columns grid. */
3281
- colSpan?: number | null;
3282
- }
3283
- export interface Metadata {
3284
- /** Schema version. */
3285
- version?: number;
3286
- /**
3287
- * When the object was created.
3288
- * @readonly
3289
- * @deprecated
3290
- */
3291
- createdTimestamp?: Date | null;
3292
- /**
3293
- * When the object was most recently updated.
3294
- * @deprecated
3295
- */
3296
- updatedTimestamp?: Date | null;
3297
- /** Object ID. */
3298
- id?: string | null;
3299
- }
3300
- export interface DocumentStyle {
3301
- /** Styling for H1 nodes. */
3302
- headerOne?: TextNodeStyle;
3303
- /** Styling for H2 nodes. */
3304
- headerTwo?: TextNodeStyle;
3305
- /** Styling for H3 nodes. */
3306
- headerThree?: TextNodeStyle;
3307
- /** Styling for H4 nodes. */
3308
- headerFour?: TextNodeStyle;
3309
- /** Styling for H5 nodes. */
3310
- headerFive?: TextNodeStyle;
3311
- /** Styling for H6 nodes. */
3312
- headerSix?: TextNodeStyle;
3313
- /** Styling for paragraph nodes. */
3314
- paragraph?: TextNodeStyle;
3315
- /** Styling for block quote nodes. */
3316
- blockquote?: TextNodeStyle;
3317
- /** Styling for code block nodes. */
3318
- codeBlock?: TextNodeStyle;
3319
- }
3320
- export interface TextNodeStyle {
3321
- /** The decorations to apply to the node. */
3322
- decorations?: Decoration[];
3323
- /** Padding and background color for the node. */
3324
- nodeStyle?: NodeStyle;
3325
- /** Line height for text in the node. */
3326
- lineHeight?: string | null;
3327
- }
3328
- export interface Media {
3329
- /**
3330
- * Main media (image, video, etc.) associated with this product.
3331
- * @readonly
3332
- */
3333
- main?: ProductMedia;
3334
- /**
3335
- * All media items.
3336
- * > **Note:** Returned only when you pass `"MEDIA_ITEMS_INFO"` to the `fields` array in Products API requests.
3337
- */
3338
- itemsInfo?: MediaItemsInfo;
3339
- }
3340
- export interface ProductMedia extends ProductMediaSetByOneOf, ProductMediaMediaOneOf {
3341
- /**
3342
- * Set media by ID of an existing file in Wix Media Manager.
3343
- * @minLength 1
3344
- * @maxLength 200
3345
- */
3346
- id?: string;
3347
- /**
3348
- * Set media using an external media URL.
3349
- * @format WEB_URL
3350
- */
3351
- url?: string;
3352
- /**
3353
- * Product image.
3354
- * @readonly
3355
- */
3356
- image?: Image;
3357
- /**
3358
- * Product video.
3359
- * @readonly
3360
- */
3361
- video?: VideoV2;
3362
- /**
3363
- * Image alt text.
3364
- * @minLength 1
3365
- * @maxLength 1000
3366
- */
3367
- altText?: string | null;
3368
- /**
3369
- * Media display name.
3370
- * Allows to override the default media name. Can be passed only when `setBy: url`.
3371
- * @maxLength 80
3372
- */
3373
- displayName?: string | null;
3374
- /**
3375
- * Media type.
3376
- * @readonly
3377
- */
3378
- mediaType?: MediaTypeWithLiterals;
3379
- /**
3380
- * Media thumbnail.
3381
- * > **Note:** Returned only when you pass `"THUMBNAIL"` to the `fields` array in Products API requests.
3382
- */
3383
- thumbnail?: Thumbnail;
3384
- /**
3385
- * ID used to upload media to Wix Media Manager.
3386
- * @readonly
3387
- * @format GUID
3388
- */
3389
- uploadId?: string;
3390
- }
3391
- /** @oneof */
3392
- export interface ProductMediaSetByOneOf {
3393
- /**
3394
- * Set media by ID of an existing file in Wix Media Manager.
3395
- * @minLength 1
3396
- * @maxLength 200
3397
- */
3398
- id?: string;
3399
- /**
3400
- * Set media using an external media URL.
3401
- * @format WEB_URL
3402
- */
3403
- url?: string;
3404
- }
3405
- /** @oneof */
3406
- export interface ProductMediaMediaOneOf {
3407
- /**
3408
- * Product image.
3409
- * @readonly
3410
- */
3411
- image?: Image;
3412
- /**
3413
- * Product video.
3414
- * @readonly
3415
- */
3416
- video?: VideoV2;
3417
- }
3418
- export interface Image {
3419
- /**
3420
- * WixMedia image ID.
3421
- * @maxLength 400
3422
- */
3423
- id?: string;
3424
- /**
3425
- * Image URL.
3426
- * @format WEB_URL
3427
- */
3428
- url?: string;
3429
- /**
3430
- * Original image height.
3431
- * @readonly
3432
- */
3433
- height?: number;
3434
- /**
3435
- * Original image width.
3436
- * @readonly
3437
- */
3438
- width?: number;
3439
- /**
3440
- * Image alt text.
3441
- * @maxLength 200
3442
- */
3443
- altText?: string | null;
3444
- /**
3445
- * Image filename.
3446
- * @readonly
3447
- * @maxLength 200
3448
- */
3449
- filename?: string | null;
3450
- }
3451
- export interface VideoV2 {
3452
- /**
3453
- * WixMedia ID.
3454
- * @maxLength 400
3455
- */
3456
- id?: string;
3457
- /**
3458
- * Available resolutions for the video, starting with the optimal resolution.
3459
- * @readonly
3460
- * @maxSize 100
3461
- */
3462
- resolutions?: VideoResolution[];
3463
- /**
3464
- * Video filename.
3465
- * @readonly
3466
- * @maxLength 200
3467
- */
3468
- filename?: string | null;
3469
- }
3470
- export interface VideoResolution {
3471
- /**
3472
- * Video URL.
3473
- * @format WEB_URL
3474
- */
3475
- url?: string;
3476
- /** Video height. */
3477
- height?: number;
3478
- /** Video width. */
3479
- width?: number;
3480
- /**
3481
- * Video format for example, mp4, hls.
3482
- * @maxLength 200
3483
- */
3484
- format?: string;
3485
- }
3486
- export declare enum MediaType {
3487
- UNKNOWN_MEDIA_TYPE = "UNKNOWN_MEDIA_TYPE",
3488
- /** Image media type. */
3489
- IMAGE = "IMAGE",
3490
- /** Video media type. */
3491
- VIDEO = "VIDEO"
3492
- }
3493
- /** @enumType */
3494
- export type MediaTypeWithLiterals = MediaType | 'UNKNOWN_MEDIA_TYPE' | 'IMAGE' | 'VIDEO';
3495
- export interface Thumbnail {
3496
- /**
3497
- * Thumbnail url.
3498
- * @format WEB_URL
3499
- */
3500
- url?: string;
3501
- /** Thumbnail height. */
3502
- height?: number;
3503
- /** Thumbnail width. */
3504
- width?: number;
3505
- /**
3506
- * Thumbnail alt text.
3507
- * @minLength 1
3508
- * @maxLength 1000
3509
- */
3510
- altText?: string | null;
3511
- }
3512
- export interface MediaItemsInfo {
3513
- /**
3514
- * All media items (images, videos etc) associated with this product.
3515
- * @maxSize 15
3516
- */
3517
- items?: ProductMedia[];
3518
- }
3519
- /**
3520
- * The SEO schema object contains data about different types of meta tags. It makes sure that the information about your page is presented properly to search engines.
3521
- * The search engines use this information for ranking purposes, or to display snippets in the search results.
3522
- * This data will override other sources of tags (for example patterns) and will be included in the <head> section of the HTML document, while not being displayed on the page itself.
3523
- */
3524
- export interface SeoSchema {
3525
- /** SEO tag information. */
3526
- tags?: Tag[];
3527
- /** SEO general settings. */
3528
- settings?: Settings;
3529
- }
3530
- export interface Keyword {
3531
- /** Keyword value. */
3532
- term?: string;
3533
- /** Whether the keyword is the main focus keyword. */
3534
- isMain?: boolean;
3535
- /**
3536
- * The source that added the keyword terms to the SEO settings.
3537
- * @maxLength 1000
3538
- */
3539
- origin?: string | null;
3540
- }
3541
- export interface Tag {
3542
- /**
3543
- * SEO tag type.
3544
- *
3545
- *
3546
- * Supported values: `title`, `meta`, `script`, `link`.
3547
- */
3548
- type?: string;
3549
- /**
3550
- * A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.
3551
- * For example: `{"name": "description", "content": "the description itself"}`.
3552
- */
3553
- props?: Record<string, any> | null;
3554
- /** SEO tag meta data. For example, `{"height": 300, "width": 240}`. */
3555
- meta?: Record<string, any> | null;
3556
- /** SEO tag inner content. For example, `<title> inner content </title>`. */
3557
- children?: string;
3558
- /** Whether the tag is a custom tag. */
3559
- custom?: boolean;
3560
- /** Whether the tag is disabled. */
3561
- disabled?: boolean;
3562
- }
3563
- export interface Settings {
3564
- /**
3565
- * Whether the Auto Redirect feature, which creates `301 redirects` on a slug change, is enabled.
3566
- *
3567
- *
3568
- * Default: `false` (Auto Redirect is enabled.)
3569
- */
3570
- preventAutoRedirect?: boolean;
3571
- /**
3572
- * User-selected keyword terms for a specific page.
3573
- * @maxSize 5
3574
- */
3575
- keywords?: Keyword[];
3576
- }
3577
- export interface ConnectedOption extends ConnectedOptionOptionSettingsOneOf {
3578
- /** Choices settings. */
3579
- choicesSettings?: ChoicesSettings;
3580
- /**
3581
- * ID of a customization with `customizationType: PRODUCT_OPTION`.
3582
- * @minLength 1
3583
- * @maxLength 36
3584
- */
3585
- id?: string | null;
3586
- /**
3587
- * Option name.
3588
- * @minLength 1
3589
- * @maxLength 50
3590
- */
3591
- name?: string | null;
3592
- /** Option render type. */
3593
- optionRenderType?: ProductOptionRenderTypeWithLiterals;
3594
- }
3595
- /** @oneof */
3596
- export interface ConnectedOptionOptionSettingsOneOf {
3597
- /** Choices settings. */
3598
- choicesSettings?: ChoicesSettings;
3599
- }
3600
- export declare enum ProductOptionRenderType {
3601
- /** Not implemented. */
3602
- UNKNOWN_OPTION_RENDER_TYPE = "UNKNOWN_OPTION_RENDER_TYPE",
3603
- /** Text choices. */
3604
- TEXT_CHOICES = "TEXT_CHOICES",
3605
- /** Swatch choices. */
3606
- SWATCH_CHOICES = "SWATCH_CHOICES"
3607
- }
3608
- /** @enumType */
3609
- export type ProductOptionRenderTypeWithLiterals = ProductOptionRenderType | 'UNKNOWN_OPTION_RENDER_TYPE' | 'TEXT_CHOICES' | 'SWATCH_CHOICES';
3610
- export interface ChoicesSettings {
3611
- /**
3612
- * List of available choices for the option.
3613
- * @minSize 1
3614
- * @maxSize 100
3615
- * @immutable
3616
- */
3617
- choices?: ConnectedOptionChoice[];
3618
- }
3619
- export interface ConnectedOptionChoice extends ConnectedOptionChoiceValueOneOf {
3620
- /**
3621
- * Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color).
3622
- * @minLength 3
3623
- * @maxLength 20
3624
- */
3625
- colorCode?: string;
3626
- /**
3627
- * The id of the choice.
3628
- * @format GUID
3629
- */
3630
- choiceId?: string | null;
3631
- /**
3632
- * Product media overrides. When not empty only these images will be shown when such choices selected by customer. Otherwise all images of product.
3633
- * When several choices from different options selected only media filter present in `media_overrides` of ALL choices will be shown.
3634
- * For example if Color:red has images 1,2,3 and Material:Silk has images 2,3,5 then only images 2,3 will be shown when both of them selected.
3635
- * @maxSize 100
3636
- */
3637
- linkedMedia?: ProductMedia[];
3638
- /** The type of this choice. */
3639
- choiceType?: ChoiceTypeWithLiterals;
3640
- /**
3641
- * Choice name.
3642
- * @minLength 1
3643
- * @maxLength 50
3644
- */
3645
- name?: string | null;
3646
- /**
3647
- * A flag that indicates if at least one variant with this choice is in stock in the default store's location.
3648
- * For example, a product with 'Color' and 'Size' options with variants: [Blue, Small] which is out of stock and [Red Large] which is in stock. For choice 'Blue' ths flag will be 'false' and for 'Red' the flag will be true
3649
- * @readonly
3650
- */
3651
- inStock?: boolean;
3652
- /**
3653
- * Whether at least one variant with this choice is visible.
3654
- *
3655
- * Default: `false`
3656
- * @readonly
3657
- */
3658
- visible?: boolean;
3659
- }
3660
- /** @oneof */
3661
- export interface ConnectedOptionChoiceValueOneOf {
3662
- /**
3663
- * Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color).
3664
- * @minLength 3
3665
- * @maxLength 20
3666
- */
3667
- colorCode?: string;
3668
- }
3669
- export declare enum ChoiceType {
3670
- UNKNOWN_CHOICE_TYPE = "UNKNOWN_CHOICE_TYPE",
3671
- /** Text choice. */
3672
- CHOICE_TEXT = "CHOICE_TEXT",
3673
- /** Single color choice. */
3674
- ONE_COLOR = "ONE_COLOR",
3675
- /** Multiple colors choice. */
3676
- MULTIPLE_COLORS = "MULTIPLE_COLORS",
3677
- /** Image choice. */
3678
- IMAGE = "IMAGE"
3679
- }
3680
- /** @enumType */
3681
- export type ChoiceTypeWithLiterals = ChoiceType | 'UNKNOWN_CHOICE_TYPE' | 'CHOICE_TEXT' | 'ONE_COLOR' | 'MULTIPLE_COLORS' | 'IMAGE';
3682
- export interface MultipleColors {
3683
- /**
3684
- * List of color codes.
3685
- * @minLength 3
3686
- * @maxLength 20
3687
- * @minSize 2
3688
- * @maxSize 2
3689
- */
3690
- colorCodes?: string[];
3691
- }
3692
- export interface ConnectedModifier extends ConnectedModifierModifierSettingsOneOf {
3693
- /** Free text modifier settings. */
3694
- freeTextSettings?: FreeTextSettings;
3695
- /** Choice settings. */
3696
- choicesSettings?: ModifierChoicesSettings;
3697
- /**
3698
- * ID of a customization with `customizationType: MODIFIER`.
3699
- * @minLength 1
3700
- * @maxLength 36
3701
- */
3702
- id?: string | null;
3703
- /**
3704
- * Modifier title.
3705
- * @minLength 1
3706
- * @maxLength 50
3707
- */
3708
- name?: string | null;
3709
- /** Modifier render type. */
3710
- modifierRenderType?: ModifierRenderTypeWithLiterals;
3711
- /** Whether customer input is required for this modifier. */
3712
- mandatory?: boolean;
3713
- }
3714
- /** @oneof */
3715
- export interface ConnectedModifierModifierSettingsOneOf {
3716
- /** Free text modifier settings. */
3717
- freeTextSettings?: FreeTextSettings;
3718
- /** Choice settings. */
3719
- choicesSettings?: ModifierChoicesSettings;
3720
- }
3721
- export declare enum ModifierRenderType {
3722
- /** Not implemented. */
3723
- UNKNOWN_MODIFIER_RENDER_TYPE = "UNKNOWN_MODIFIER_RENDER_TYPE",
3724
- /** Free text. */
3725
- FREE_TEXT = "FREE_TEXT",
3726
- /** Text choices. */
3727
- TEXT_CHOICES = "TEXT_CHOICES",
3728
- /** Swatch choices. */
3729
- SWATCH_CHOICES = "SWATCH_CHOICES"
3730
- }
3731
- /** @enumType */
3732
- export type ModifierRenderTypeWithLiterals = ModifierRenderType | 'UNKNOWN_MODIFIER_RENDER_TYPE' | 'FREE_TEXT' | 'TEXT_CHOICES' | 'SWATCH_CHOICES';
3733
- export interface FreeTextSettings {
3734
- /** Minimum number of characters. */
3735
- minCharCount?: number;
3736
- /**
3737
- * Maximum number of characters.
3738
- * @max 500
3739
- */
3740
- maxCharCount?: number;
3741
- /**
3742
- * Default amount to be added to the product's price.
3743
- * @decimalValue options { gte:0, lte:999999999, maxScale:3 }
3744
- */
3745
- defaultAddedPrice?: string | null;
3746
- /**
3747
- * Title of the text to be input by the customer.
3748
- * @minLength 1
3749
- * @maxLength 150
3750
- */
3751
- title?: string;
3752
- }
3753
- export interface ModifierChoicesSettings {
3754
- /**
3755
- * List of modifier choices.
3756
- * @minSize 1
3757
- * @maxSize 100
3758
- * @immutable
3759
- */
3760
- choices?: ConnectedModifierChoice[];
3761
- }
3762
- export interface ConnectedModifierChoice extends ConnectedModifierChoiceValueOneOf {
3763
- /**
3764
- * Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color).
3765
- * @minLength 3
3766
- * @maxLength 20
3767
- */
3768
- colorCode?: string;
3769
- /**
3770
- * Choice ID.
3771
- * @format GUID
3772
- */
3773
- choiceId?: string | null;
3774
- /**
3775
- * Product media.
3776
- * @maxSize 100
3777
- */
3778
- linkedMedia?: ProductMedia[];
3779
- /** Choice type. */
3780
- choiceType?: ChoiceTypeWithLiterals;
3781
- /**
3782
- * Modifier key. Used for eCommerce integration.
3783
- * @readonly
3784
- * @minLength 1
3785
- * @maxLength 50
3786
- */
3787
- key?: string;
3788
- /**
3789
- * Choice name.
3790
- * @minLength 1
3791
- * @maxLength 50
3792
- */
3793
- name?: string | null;
3794
- /**
3795
- * Added price.
3796
- * @decimalValue options { gte:0, lte:999999999, maxScale:3 }
3797
- */
3798
- addedPrice?: string | null;
3799
- }
3800
- /** @oneof */
3801
- export interface ConnectedModifierChoiceValueOneOf {
3802
- /**
3803
- * Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color).
3804
- * @minLength 3
3805
- * @maxLength 20
3806
- */
3807
- colorCode?: string;
3808
- }
3809
- export interface Brand {
3810
- /**
3811
- * Brand ID.
3812
- * @format GUID
3813
- */
3814
- id?: string | null;
3815
- /**
3816
- * Brand name.
3817
- * @maxLength 50
3818
- */
3819
- name?: string | null;
3820
- }
3821
- export interface InfoSection {
3822
- /**
3823
- * Info section ID.
3824
- * @format GUID
3825
- */
3826
- id?: string | null;
3827
- /**
3828
- * Info section unique name.
3829
- * > **Note:** Returned only when you pass `"INFO_SECTION"` to the `fields` array in Products API requests.
3830
- * @maxLength 100
3831
- */
3832
- uniqueName?: string | null;
3833
- /**
3834
- * Info section title.
3835
- * > **Note:** Returned only when you pass `"INFO_SECTION"` to the `fields` array in Products API requests.
3836
- * @minLength 1
3837
- * @maxLength 50
3838
- * @readonly
3839
- */
3840
- title?: string | null;
3841
- /**
3842
- * Info section description using rich content.
3843
- * > **Note:** Returned only when you pass `"INFO_SECTION_DESCRIPTION"` to the `fields` array in Products API requests.
3844
- *
3845
- * <widget src="https://apps.wix.com/_serverless/ricos-playground-services/goto/api-component" plugins="indent.emoji.divider.codeBlock.file.gallery.giphy.image.table.link.textHighlight.textColor" exampleid="7dc9240e-d548-417a-abcf-0291b68b4303">
3846
- * <a href="https://dev.wix.com/docs/ricos/api-reference/ricos-document">See Ricos document reference</a>
3847
- * </widget>
3848
- * @readonly
3849
- */
3850
- description?: RichContent;
3851
- /**
3852
- * Info section description in HTML.
3853
- *
3854
- * When provided on create/update, this string must be a valid HTML. It will then be converted to rich content.
3855
- * `plainDescription` is ignored when value is also passed to the `description` field.
3856
- * > **Note:** Returned only when you pass `"INFO_SECTION_PLAIN_DESCRIPTION"` to the `fields` array in Products API requests.
3857
- * @maxLength 16000
3858
- */
3859
- plainDescription?: string | null;
3860
- }
3861
- export interface Ribbon {
3862
- /**
3863
- * Ribbon ID.
3864
- * @minLength 1
3865
- * @maxLength 36
3866
- */
3867
- id?: string | null;
3868
- /**
3869
- * Ribbon name.
3870
- * @maxLength 30
3871
- */
3872
- name?: string | null;
3873
- }
3874
- export interface ProductCategoriesInfo {
3875
- /**
3876
- * A list of categories related to product.
3877
- * @readonly
3878
- * @maxSize 2000
3879
- */
3880
- categories?: ProductCategory[];
3881
- }
3882
- export interface ProductCategory {
3883
- /**
3884
- * Category ID.
3885
- * @format GUID
3886
- */
3887
- id?: string;
3888
- /**
3889
- * Index location of the product within the category, which can be utilized for sorting products in a specific category. For detailed instructions on how to set this up, refer to the [Add and arrange products in category](https://dev.wix.com/docs/rest/business-solutions/stores/catalog-v3/products-v3/sample-use-cases-and-flows#add-and-arrange-products-in-category) sample flow.
3890
- * @max 200
3891
- */
3892
- index?: number | null;
3893
- }
3894
- export interface ProductCategoryIdsInfo {
3895
- /**
3896
- * A list of category ids related to product.
3897
- * @readonly
3898
- * @maxSize 2000
3899
- * @format GUID
3900
- */
3901
- categoryIds?: string[];
3902
- }
3903
- export interface PriceRange {
3904
- /** Minimum value. */
3905
- minValue?: FixedMonetaryAmount;
3906
- /** Maximum value. */
3907
- maxValue?: FixedMonetaryAmount;
3908
- }
3909
- export interface FixedMonetaryAmount {
3910
- /**
3911
- * Monetary amount. For example, `"3.99"`, or `"-4.99"` for a negative amount.
3912
- * @decimalValue options { gte:0, lte:999999999, maxScale:3 }
3913
- */
3914
- amount?: string;
3915
- /**
3916
- * Formatted monetary amount. For example, `"$3.99"`.
3917
- * > **Note:** Returned only when you pass `"CURRENCY"` to the `fields` array in Products API requests.
3918
- * @readonly
3919
- * @maxLength 20
3920
- */
3921
- formattedAmount?: string | null;
3922
- }
3923
- export interface Inventory {
3924
- /**
3925
- * Current availability status.
3926
- * @readonly
3927
- */
3928
- availabilityStatus?: AvailabilityStatusWithLiterals;
3929
- /**
3930
- * Current preorder status.
3931
- * @readonly
3932
- */
3933
- preorderStatus?: PreorderStatusWithLiterals;
3934
- /**
3935
- * Preorder availability status.
3936
- * @readonly
3937
- */
3938
- preorderAvailability?: ProductPreorderAvailabilityWithLiterals;
3939
- }
3940
- export declare enum AvailabilityStatus {
3941
- UNKNOWN_AVAILABILITY_STATUS = "UNKNOWN_AVAILABILITY_STATUS",
3942
- /** All variants are in stock and available for purchase. */
3943
- IN_STOCK = "IN_STOCK",
3944
- /** All variants are out of stock. */
3945
- OUT_OF_STOCK = "OUT_OF_STOCK",
3946
- /** Some variants are out of stock and some are in stock and available for purchase. */
3947
- PARTIALLY_OUT_OF_STOCK = "PARTIALLY_OUT_OF_STOCK"
3948
- }
3949
- /** @enumType */
3950
- export type AvailabilityStatusWithLiterals = AvailabilityStatus | 'UNKNOWN_AVAILABILITY_STATUS' | 'IN_STOCK' | 'OUT_OF_STOCK' | 'PARTIALLY_OUT_OF_STOCK';
3951
- export declare enum PreorderStatus {
3952
- UNKNOWN_PREORDER_STATUS = "UNKNOWN_PREORDER_STATUS",
3953
- /** All variants are enabled for preorder. */
3954
- ENABLED = "ENABLED",
3955
- /** All variants are disabled for preorder. */
3956
- DISABLED = "DISABLED",
3957
- /** Some variants are disabled and some are enabled for preorder. */
3958
- PARTIALLY_ENABLED = "PARTIALLY_ENABLED"
3959
- }
3960
- /** @enumType */
3961
- export type PreorderStatusWithLiterals = PreorderStatus | 'UNKNOWN_PREORDER_STATUS' | 'ENABLED' | 'DISABLED' | 'PARTIALLY_ENABLED';
3962
- export declare enum ProductPreorderAvailability {
3963
- UNKNOWN_PREORDER_AVAILABILITY_STATUS = "UNKNOWN_PREORDER_AVAILABILITY_STATUS",
3964
- /** All the product variants are available for preorder. */
3965
- ALL_VARIANTS = "ALL_VARIANTS",
3966
- /** None of the product variants are available for preorder. */
3967
- NO_VARIANTS = "NO_VARIANTS",
3968
- /** Some of the product variants are available for preorder. */
3969
- SOME_VARIANTS = "SOME_VARIANTS"
3970
- }
3971
- /** @enumType */
3972
- export type ProductPreorderAvailabilityWithLiterals = ProductPreorderAvailability | 'UNKNOWN_PREORDER_AVAILABILITY_STATUS' | 'ALL_VARIANTS' | 'NO_VARIANTS' | 'SOME_VARIANTS';
3973
- export declare enum ProductType {
3974
- /** Not implemented. */
3975
- UNKNOWN_PRODUCT_TYPE = "UNKNOWN_PRODUCT_TYPE",
3976
- /** Physical product. */
3977
- PHYSICAL = "PHYSICAL",
3978
- /** Digital product. */
3979
- DIGITAL = "DIGITAL"
3980
- }
3981
- /** @enumType */
3982
- export type ProductTypeWithLiterals = ProductType | 'UNKNOWN_PRODUCT_TYPE' | 'PHYSICAL' | 'DIGITAL';
3983
- export interface PhysicalProperties {
3984
- /**
3985
- * Price per unit settings.
3986
- * > **Note:** Use this field only when relevant. For example, for products that are sold by weight, volume, or length.
3987
- */
3988
- pricePerUnit?: PricePerUnitSettings;
3989
- /**
3990
- * Fulfiller ID.
3991
- * @format GUID
3992
- */
3993
- fulfillerId?: string | null;
3994
- /**
3995
- * Product shipping weight range - Calculated from the lightest and heaviest variant shipping weights.
3996
- * @readonly
3997
- */
3998
- shippingWeightRange?: WeightRange;
3999
- /**
4000
- * Product price per unit range. The minimum and maximum price per unit of all the variants.
4001
- * @readonly
4002
- */
4003
- pricePerUnitRange?: PricePerUnitRange;
4004
- /**
4005
- * Weight measurement unit.
4006
- * > **Note:** Returned only when you pass `"WEIGHT_MEASUREMENT_UNIT_INFO"` to the `fields` array in Products API requests.
4007
- * @readonly
4008
- */
4009
- weightMeasurementUnitInfo?: WeightMeasurementUnitInfo;
4010
- /**
4011
- * Delivery profile ID.
4012
- * @format GUID
4013
- */
4014
- deliveryProfileId?: string | null;
4015
- }
4016
- export interface PricePerUnitSettings {
4017
- /**
4018
- * Quantity.
4019
- * For example, to define price per per 100 grams, set this field to `100`.
4020
- * @min 0.01
4021
- * @max 999999999.99
4022
- */
4023
- quantity?: number;
4024
- /**
4025
- * Measurement unit.
4026
- * For example, to define price per 100 grams, set this field to "G".
4027
- */
4028
- measurementUnit?: MeasurementUnitWithLiterals;
4029
- }
4030
- export interface WeightRange {
4031
- /**
4032
- * Minimum weight across all variants associated with this product.
4033
- * @max 999999999.99
4034
- */
4035
- minValue?: number;
4036
- /**
4037
- * Maximum weight across all variants associated with this product.
4038
- * @max 999999999.99
4039
- */
4040
- maxValue?: number;
4041
- }
4042
- export interface PricePerUnitRange {
4043
- /** Minimum price per unit across all variants. */
4044
- minValue?: PricePerUnitRangePricePerUnit;
4045
- /** Maximum price per unit across all variants. */
4046
- maxValue?: PricePerUnitRangePricePerUnit;
4047
- }
4048
- export interface PricePerUnitRangePricePerUnit {
4049
- /**
4050
- * Calculated value of price per unit. Takes into account pricePerUnit settings of product and variants and price of variants.
4051
- * For example if discounted price is 2$, product's price per unit setting is 1 Kg, variant price per unit setting is 0.5 Kg then this value is 4$ (means variant weight is 0.5 Kg and it costs 2$ but we want to show price per 1 Kg so we show 4$).
4052
- * @readonly
4053
- * @decimalValue options { gte:0, lte:999999999, maxScale:3 }
4054
- */
4055
- value?: string;
4056
- /**
4057
- * Price per unit info in the format of variant specific data / product setting, for example €4.00 / 1 Kg.
4058
- * > **Note:** This field is returned by the API only when you pass `fields: "CURRENCY"` in a request.
4059
- * @readonly
4060
- * @maxLength 100
4061
- */
4062
- description?: string | null;
4063
- }
4064
- export interface WeightMeasurementUnitInfo {
4065
- /**
4066
- * Weight measurement unit.
4067
- * @readonly
4068
- */
4069
- weightMeasurementUnit?: WeightUnitWithLiterals;
4070
- }
4071
- export interface BreadcrumbsInfo {
4072
- /**
4073
- * Breadcrumbs.
4074
- * @readonly
4075
- * @maxSize 5
4076
- */
4077
- breadcrumbs?: BreadCrumb[];
4078
- }
4079
- export interface BreadCrumb {
4080
- /**
4081
- * Category ID.
4082
- * @format GUID
4083
- */
4084
- categoryId?: string;
4085
- /**
4086
- * Category name.
4087
- * @minLength 1
4088
- * @maxLength 80
4089
- */
4090
- categoryName?: string;
4091
- /**
4092
- * Category slug.
4093
- * @minLength 1
4094
- * @maxLength 100
4095
- */
4096
- categorySlug?: string;
4097
- }
4098
- export interface VariantsInfo {
4099
- /**
4100
- * List of related variants.
4101
- * @minSize 1
4102
- * @maxSize 1000
4103
- */
4104
- variants?: Variant[];
4105
- }
4106
- export interface Variant extends VariantTypedPropertiesOneOf {
4107
- /** Physical properties. Must be passed when `productType: PHYSICAL` */
4108
- physicalProperties?: VariantPhysicalProperties;
4109
- /** Digital properties. Must be passed when `productType: DIGITAL` */
4110
- digitalProperties?: VariantDigitalProperties;
4111
- /**
4112
- * Variant ID.
4113
- * @format GUID
4114
- * @immutable
4115
- */
4116
- id?: string | null;
4117
- /**
4118
- * Whether the variant is visible to site visitors.
4119
- *
4120
- * Default: `true`
4121
- */
4122
- visible?: boolean | null;
4123
- /**
4124
- * Variant SKU (stock keeping unit).
4125
- * @minLength 1
4126
- * @maxLength 40
4127
- */
4128
- sku?: string | null;
4129
- /**
4130
- * Variant barcode.
4131
- * @minLength 1
4132
- * @maxLength 40
4133
- */
4134
- barcode?: string | null;
4135
- /**
4136
- * List of choices that define the product's variant, which requires exactly one choice per product option.
4137
- * Must use `optionChoiceNames` in all requests this field is required.
4138
- * Empty only for default variants of unmanaged products.
4139
- * @maxSize 6
4140
- * @immutable
4141
- */
4142
- choices?: OptionChoice[];
4143
- /** Variant price. */
4144
- price?: PriceInfo;
4145
- /**
4146
- * Variant revenue details.
4147
- *
4148
- * > **Note:** Returned only when the following conditions are met:
4149
- * > + You pass `"MERCHANT_DATA"` to the `fields` array in Products API requests.
4150
- * > + Your app has the required `SCOPE.STORES.PRODUCT_READ_ADMIN` permission scope.
4151
- */
4152
- revenueDetails?: RevenueDetails;
4153
- /**
4154
- * Variant media.
4155
- * @readonly
4156
- */
4157
- media?: ProductMedia;
4158
- /**
4159
- * Subscription prices calculated by applying subscription discount to the variant `price.actual_price`.
4160
- * > **Note:** Returned only when you pass `"SUBSCRIPTION_PRICES_INFO"` to the `fields` array in Products API requests.
4161
- * @readonly
4162
- */
4163
- subscriptionPricesInfo?: SubscriptionPricesInfo;
4164
- /**
4165
- * Variant inventory status.
4166
- * @readonly
4167
- */
4168
- inventoryStatus?: InventoryStatus;
4169
- }
4170
- /** @oneof */
4171
- export interface VariantTypedPropertiesOneOf {
4172
- /** Physical properties. Must be passed when `productType: PHYSICAL` */
4173
- physicalProperties?: VariantPhysicalProperties;
4174
- /** Digital properties. Must be passed when `productType: DIGITAL` */
4175
- digitalProperties?: VariantDigitalProperties;
4176
- }
4177
- export interface OptionChoice {
4178
- /** Option and choice IDs. These match the IDs of the option and choice from the product's options field. */
4179
- optionChoiceIds?: OptionChoiceIds;
4180
- /**
4181
- * Option and choice names.
4182
- * This needs to be used in all requests `OptionChoice` is needed, and all `OptionChoiceNames` fields are required.
4183
- * > **Note:** Returned only when you pass `"VARIANT_OPTION_CHOICE_NAMES"` to the `fields` array in Products API requests.
4184
- */
4185
- optionChoiceNames?: OptionChoiceNames;
4186
- }
4187
- export interface OptionChoiceIds {
4188
- /**
4189
- * Option ID.
4190
- * @minLength 1
4191
- * @maxLength 36
4192
- * @immutable
4193
- */
4194
- optionId?: string;
4195
- /**
4196
- * Choice ID.
4197
- * @format GUID
4198
- * @immutable
4199
- */
4200
- choiceId?: string;
4201
- }
4202
- export interface OptionChoiceNames {
4203
- /**
4204
- * Option name.
4205
- * @minLength 1
4206
- * @maxLength 50
4207
- */
4208
- optionName?: string;
4209
- /**
4210
- * Choice name.
4211
- * @minLength 1
4212
- * @maxLength 50
4213
- */
4214
- choiceName?: string;
4215
- /** Render type. */
4216
- renderType?: ProductOptionRenderTypeWithLiterals;
4217
- }
4218
- export interface PriceInfo {
4219
- /** Variant price. Must be greater or equal to 0. */
4220
- actualPrice?: FixedMonetaryAmount;
4221
- /** The compare-at-price represents the original price of a product before any discount. It is optional and should only be set if a discount applies. When set, it must be higher than the current price to reflect accurate savings. */
4222
- compareAtPrice?: FixedMonetaryAmount;
4223
- }
4224
- export interface RevenueDetails {
4225
- /** Item cost. */
4226
- cost?: FixedMonetaryAmount;
4227
- /**
4228
- * Profit. Calculated by reducing `cost` from `discountedPrice`.
4229
- * @readonly
4230
- */
4231
- profit?: FixedMonetaryAmount;
4232
- /**
4233
- * Profit Margin. Calculated by dividing `profit` by `discountedPrice`.
4234
- * The result is rounded to 4 decimal places.
4235
- * @readonly
4236
- * @max 1
4237
- */
4238
- profitMargin?: number;
4239
- }
4240
- export interface VariantPhysicalProperties {
4241
- /**
4242
- * Variant shipping weight.
4243
- * product.physicalProperties.shipping_weight_range values are taken from here.
4244
- * @max 999999999.99
4245
- */
4246
- weight?: number | null;
4247
- /**
4248
- * Price per unit info, in order to show price per unit on the product page.
4249
- * For example if one sells cheese and defines 100g here then we know that buying this variant buyer receives 100g of cheese.
4250
- * But on product page price will be displayed for units defined on product level. See `pricePerUnit.value` to understand how it's calculated.
4251
- */
4252
- pricePerUnit?: PricePerUnit;
4253
- }
4254
- export interface PricePerUnit {
4255
- /**
4256
- * Price per unit data for this variant.
4257
- * `measurementUnit` value must correspond to the measurement unit set on the product.
4258
- */
4259
- settings?: PricePerUnitSettings;
4260
- /**
4261
- * Calculated value of price per unit. Takes into account `pricePerUnit` settings of parent product, of this variant, and discounted price of variant.
4262
- * For example if discounted price is 2$, product's price per unit setting is 1 Kg, variant price per unit setting is 0.5 Kg then this value is 4$ (means variant weight is 0.5 Kg and it costs 2$ but we want to show price per 1 Kg so we show 4$).
4263
- * @readonly
4264
- * @decimalValue options { gte:0, lte:999999999, maxScale:3 }
4265
- */
4266
- value?: string;
4267
- /**
4268
- * Price per unit description.
4269
- * > **Note:** Returned only when you pass `"CURRENCY"` to the `fields` array in Products API requests.
4270
- * @readonly
4271
- * @maxLength 100
4272
- */
4273
- description?: string | null;
4274
- }
4275
- export interface VariantDigitalProperties {
4276
- /** Digital file which will be downloaded by customer after successful purchase. */
4277
- digitalFile?: SecuredMedia;
4278
- }
4279
- export interface SecuredMedia {
4280
- /**
4281
- * Media ID in media manager.
4282
- * @minLength 1
4283
- * @maxLength 100
4284
- */
4285
- id?: string;
4286
- /**
4287
- * Original file name.
4288
- * @minLength 1
4289
- * @maxLength 1000
4290
- * @readonly
4291
- */
4292
- fileName?: string;
4293
- /**
4294
- * Original file size.
4295
- * @minLength 1
4296
- * @maxLength 1000
4297
- * @readonly
4298
- * @format DECIMAL_VALUE
4299
- * @decimalValue options { maxScale:0 }
4300
- */
4301
- fileSize?: string | null;
4302
- /**
4303
- * File type.
4304
- * @readonly
4305
- */
4306
- fileType?: FileTypeWithLiterals;
4307
- }
4308
- export declare enum FileType {
4309
- /** Unspecified file type. */
4310
- UNSPECIFIED = "UNSPECIFIED",
4311
- /** Secure picture file. */
4312
- SECURE_PICTURE = "SECURE_PICTURE",
4313
- /** Secure video file. */
4314
- SECURE_VIDEO = "SECURE_VIDEO",
4315
- /** Secure document file. */
4316
- SECURE_DOCUMENT = "SECURE_DOCUMENT",
4317
- /** Secure music file. */
4318
- SECURE_MUSIC = "SECURE_MUSIC",
4319
- /** Secure archive file. */
4320
- SECURE_ARCHIVE = "SECURE_ARCHIVE"
4321
- }
4322
- /** @enumType */
4323
- export type FileTypeWithLiterals = FileType | 'UNSPECIFIED' | 'SECURE_PICTURE' | 'SECURE_VIDEO' | 'SECURE_DOCUMENT' | 'SECURE_MUSIC' | 'SECURE_ARCHIVE';
4324
- export interface SubscriptionPricesInfo {
4325
- /**
4326
- * Subscription prices.
4327
- * @maxSize 6
4328
- */
4329
- subscriptionPrices?: SubscriptionPrice[];
4330
- }
4331
- export interface SubscriptionPrice {
4332
- /**
4333
- * Subscription ID.
4334
- * @format GUID
4335
- * @readonly
4336
- */
4337
- subscriptionId?: string;
4338
- /**
4339
- * Subscription price calculated by applying subscription discount to the variant `price.actual_price`
4340
- * @readonly
4341
- */
4342
- price?: FixedMonetaryAmount;
4343
- /**
4344
- * Price per unit info.
4345
- * @readonly
4346
- */
4347
- pricePerUnit?: SubscriptionPricePerUnit;
4348
- }
4349
- export interface SubscriptionPricePerUnit {
4350
- /**
4351
- * Calculated value of price per unit. Takes into account `pricePerUnit` settings of parent product, `pricePerUnit` settings of this variant, and the variant subscription price.
4352
- * @readonly
4353
- * @decimalValue options { gte:0, lte:999999999, maxScale:3 }
4354
- */
4355
- value?: string;
4356
- /**
4357
- * Price per unit description.
4358
- * > **Note:** Returned only when you pass `"CURRENCY"` to the `fields` array in Products API requests.
4359
- * @readonly
4360
- * @maxLength 20
4361
- */
4362
- description?: string | null;
4363
- }
4364
- export interface InventoryStatus {
4365
- /** Whether the variant is in stock. */
4366
- inStock?: boolean;
4367
- /** Whether preorder is enabled for this variant. */
4368
- preorderEnabled?: boolean;
4369
- }
4370
- export interface ExtendedFields {
4371
- /**
4372
- * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
4373
- * The value of each key is structured according to the schema defined when the extended fields were configured.
4374
- *
4375
- * You can only access fields for which you have the appropriate permissions.
4376
- *
4377
- * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
4378
- */
4379
- namespaces?: Record<string, Record<string, any>>;
4380
- }
4381
- export interface SubscriptionDetails {
4382
- /**
4383
- * Subscriptions.
4384
- * @minSize 1
4385
- * @maxSize 6
4386
- */
4387
- subscriptions?: Subscription[];
4388
- /**
4389
- * Whether to allow one-time purchases in addition to subscription-based purchases.
4390
- *
4391
- * Default: `false`
4392
- */
4393
- allowOneTimePurchases?: boolean | null;
4394
- }
4395
- export interface Subscription extends SubscriptionCyclesOneOf {
4396
- /** Whether subscription is renewed automatically at the end of each period. Cannot be `false`, instead set `billingCycles`. */
4397
- autoRenewal?: boolean;
4398
- /**
4399
- * Number of billing cycles before subscription ends.
4400
- * @min 2
4401
- * @max 999
4402
- */
4403
- billingCycles?: number;
4404
- /**
4405
- * Subscription ID.
4406
- * @format GUID
4407
- * @immutable
4408
- */
4409
- id?: string | null;
4410
- /**
4411
- * Subscription title.
4412
- * @minLength 1
4413
- * @maxLength 20
4414
- */
4415
- title?: string;
4416
- /**
4417
- * Subscription description.
4418
- * @maxLength 60
4419
- */
4420
- description?: string | null;
4421
- /**
4422
- * Whether the subscription is visible to site visitors.
4423
- *
4424
- * Default: `true`
4425
- */
4426
- visible?: boolean | null;
4427
- /**
4428
- * Frequency of recurring payment.
4429
- * For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months.
4430
- */
4431
- frequency?: SubscriptionFrequencyWithLiterals;
4432
- /**
4433
- * Interval of recurring payment. Default: `1`. For example, if `frequency: MONTH`, `billingCycles: 3` and `interval: 2`; payment will be made every 2 months for a total of 6 months.
4434
- * @min 1
4435
- * @max 50
4436
- */
4437
- interval?: number | null;
4438
- /**
4439
- * Discount info (optional).
4440
- * For example, a $20 discount would be `amount: 20`, `type: AMOUNT`.
4441
- */
4442
- discount?: SubscriptionDiscount;
4443
- }
4444
- /** @oneof */
4445
- export interface SubscriptionCyclesOneOf {
4446
- /** Whether subscription is renewed automatically at the end of each period. Cannot be `false`, instead set `billingCycles`. */
4447
- autoRenewal?: boolean;
4448
- /**
4449
- * Number of billing cycles before subscription ends.
4450
- * @min 2
4451
- * @max 999
4452
- */
4453
- billingCycles?: number;
4454
- }
4455
- /** Frequency unit of recurring payment */
4456
- export declare enum SubscriptionFrequency {
4457
- UNDEFINED = "UNDEFINED",
4458
- DAY = "DAY",
4459
- WEEK = "WEEK",
4460
- MONTH = "MONTH",
4461
- YEAR = "YEAR"
4462
- }
4463
- /** @enumType */
4464
- export type SubscriptionFrequencyWithLiterals = SubscriptionFrequency | 'UNDEFINED' | 'DAY' | 'WEEK' | 'MONTH' | 'YEAR';
4465
- export interface SubscriptionDiscount extends SubscriptionDiscountDiscountOneOf {
4466
- /**
4467
- * Amount to discount from the variant discounted_price.
4468
- * @decimalValue options { gt:0, lte:999999999, maxScale:3 }
4469
- */
4470
- amountOff?: string;
4471
- /**
4472
- * Percentage to discount from variant discounted_price.
4473
- * @min 0.1
4474
- * @max 99.9
4475
- */
4476
- percentOff?: number;
4477
- /** Discount type. */
4478
- type?: DiscountTypeWithLiterals;
4479
- }
4480
- /** @oneof */
4481
- export interface SubscriptionDiscountDiscountOneOf {
4482
- /**
4483
- * Amount to discount from the variant discounted_price.
4484
- * @decimalValue options { gt:0, lte:999999999, maxScale:3 }
4485
- */
4486
- amountOff?: string;
4487
- /**
4488
- * Percentage to discount from variant discounted_price.
4489
- * @min 0.1
4490
- * @max 99.9
4491
- */
4492
- percentOff?: number;
4493
- }
4494
- export declare enum DiscountType {
4495
- UNKNOWN_DISCOUNT = "UNKNOWN_DISCOUNT",
4496
- /** Discount by a specific amount. */
4497
- AMOUNT = "AMOUNT",
4498
- /** Discount by a percentage. */
4499
- PERCENT = "PERCENT"
4500
- }
4501
- /** @enumType */
4502
- export type DiscountTypeWithLiterals = DiscountType | 'UNKNOWN_DISCOUNT' | 'AMOUNT' | 'PERCENT';
4503
- export interface VariantSummary {
4504
- /**
4505
- * The total number of variants for the product.
4506
- * @readonly
4507
- */
4508
- variantCount?: number;
4509
- }
4510
- export interface MinVariantPriceInfo {
4511
- /**
4512
- * Subscription price calculated by applying subscription discount to the variant `price.actualPrice`
4513
- * @readonly
4514
- */
4515
- minSubscriptionPrice?: FixedMonetaryAmount;
4516
- /**
4517
- * Subscription price per unit calculated value of price per unit.
4518
- * Takes into account `pricePerUnit` settings of parent product, `pricePerUnit` settings of this variant, and the variant subscription price.
4519
- * @readonly
4520
- * @decimalValue options { gte:0, lte:999999999, maxScale:3 }
4521
- */
4522
- minSubscriptionPricePerUnit?: string | null;
4523
- /**
4524
- * Variant price per unit.
4525
- * @readonly
4526
- */
4527
- pricePerUnitData?: PricePerUnit;
4528
- /**
4529
- * Variant SKU (stock keeping unit).
4530
- * @readonly
4531
- * @minLength 1
4532
- * @maxLength 40
4533
- */
4534
- sku?: string | null;
4535
- /**
4536
- * Variant shipping weight.
4537
- * @readonly
4538
- * @max 999999999.99
4539
- */
4540
- weight?: number | null;
4541
- /**
4542
- * Variant revenue details.
4543
- *
4544
- * > **Note:** Returned only when the following conditions are met:
4545
- * > + You pass `"MERCHANT_DATA"` to the `fields` array in Products API requests.
4546
- * > + Your app has the required `SCOPE.STORES.PRODUCT_READ_ADMIN` permission scope.
4547
- * @readonly
4548
- */
4549
- revenueDetails?: RevenueDetails;
4550
- /** Variant price. Must be greater or equal to 0. */
4551
- actualPrice?: FixedMonetaryAmount;
4552
- /** The compare-at-price represents the original price of a product before any discount. It is optional and should only be set if a discount applies. When set, it must be higher than the current price to reflect accurate savings. */
4553
- compareAtPrice?: FixedMonetaryAmount;
4554
- }
4555
- export interface MigrateProductVariantsResponse {
4556
- }
4557
- export interface RecoverProductVariantsRequest {
4558
- }
4559
- export interface RecoverProductVariantsResponse {
4560
- }
4561
- export interface DomainEvent extends DomainEventBodyOneOf {
4562
- createdEvent?: EntityCreatedEvent;
4563
- updatedEvent?: EntityUpdatedEvent;
4564
- deletedEvent?: EntityDeletedEvent;
4565
- actionEvent?: ActionEvent;
4566
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
4567
- id?: string;
4568
- /**
4569
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
4570
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
4571
- */
4572
- entityFqdn?: string;
4573
- /**
4574
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
4575
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
4576
- */
4577
- slug?: string;
4578
- /** ID of the entity associated with the event. */
4579
- entityId?: string;
4580
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
4581
- eventTime?: Date | null;
4582
- /**
4583
- * Whether the event was triggered as a result of a privacy regulation application
4584
- * (for example, GDPR).
4585
- */
4586
- triggeredByAnonymizeRequest?: boolean | null;
4587
- /** If present, indicates the action that triggered the event. */
4588
- originatedFrom?: string | null;
4589
- /**
4590
- * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
4591
- * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
4592
- */
4593
- entityEventSequence?: string | null;
4594
- }
4595
- /** @oneof */
4596
- export interface DomainEventBodyOneOf {
4597
- createdEvent?: EntityCreatedEvent;
4598
- updatedEvent?: EntityUpdatedEvent;
4599
- deletedEvent?: EntityDeletedEvent;
4600
- actionEvent?: ActionEvent;
4601
- }
4602
- export interface EntityCreatedEvent {
4603
- entityAsJson?: string;
4604
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
4605
- restoreInfo?: RestoreInfo;
4606
- }
4607
- export interface RestoreInfo {
4608
- deletedDate?: Date | null;
4609
- }
4610
- export interface EntityUpdatedEvent {
4611
- /**
4612
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
4613
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
4614
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
4615
- */
4616
- currentEntityAsJson?: string;
4617
- }
4618
- export interface EntityDeletedEvent {
4619
- /** Entity that was deleted. */
4620
- deletedEntityAsJson?: string | null;
4621
- }
4622
- export interface ActionEvent {
4623
- bodyAsJson?: string;
4624
- }
4625
- export interface Empty {
4626
- }
4627
- export interface MessageEnvelope {
4628
- /**
4629
- * App instance ID.
4630
- * @format GUID
4631
- */
4632
- instanceId?: string | null;
4633
- /**
4634
- * Event type.
4635
- * @maxLength 150
4636
- */
4637
- eventType?: string;
4638
- /** The identification type and identity data. */
4639
- identity?: IdentificationData;
4640
- /** Stringify payload. */
4641
- data?: string;
4642
- }
4643
- export interface IdentificationData extends IdentificationDataIdOneOf {
4644
- /**
4645
- * ID of a site visitor that has not logged in to the site.
4646
- * @format GUID
4647
- */
4648
- anonymousVisitorId?: string;
4649
- /**
4650
- * ID of a site visitor that has logged in to the site.
4651
- * @format GUID
4652
- */
4653
- memberId?: string;
4654
- /**
4655
- * ID of a Wix user (site owner, contributor, etc.).
4656
- * @format GUID
4657
- */
4658
- wixUserId?: string;
4659
- /**
4660
- * ID of an app.
4661
- * @format GUID
4662
- */
4663
- appId?: string;
4664
- /** @readonly */
4665
- identityType?: WebhookIdentityTypeWithLiterals;
4666
- }
4667
- /** @oneof */
4668
- export interface IdentificationDataIdOneOf {
4669
- /**
4670
- * ID of a site visitor that has not logged in to the site.
4671
- * @format GUID
4672
- */
4673
- anonymousVisitorId?: string;
4674
- /**
4675
- * ID of a site visitor that has logged in to the site.
4676
- * @format GUID
4677
- */
4678
- memberId?: string;
4679
- /**
4680
- * ID of a Wix user (site owner, contributor, etc.).
4681
- * @format GUID
4682
- */
4683
- wixUserId?: string;
4684
- /**
4685
- * ID of an app.
4686
- * @format GUID
4687
- */
4688
- appId?: string;
4689
- }
4690
- export declare enum WebhookIdentityType {
4691
- UNKNOWN = "UNKNOWN",
4692
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
4693
- MEMBER = "MEMBER",
4694
- WIX_USER = "WIX_USER",
4695
- APP = "APP"
4696
- }
4697
- /** @enumType */
4698
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';