@wix/auto_sdk_stores_ribbons-v-3 1.0.10 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/build/index.d.mts +136 -0
  2. package/build/index.d.ts +136 -0
  3. package/build/index.js +872 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +833 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/index.d.mts +136 -0
  8. package/build/internal/index.d.ts +136 -0
  9. package/build/internal/index.js +872 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +833 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/build/internal/meta.d.mts +394 -0
  14. package/build/internal/meta.d.ts +394 -0
  15. package/build/internal/meta.js +580 -0
  16. package/build/internal/meta.js.map +1 -0
  17. package/build/internal/meta.mjs +544 -0
  18. package/build/internal/meta.mjs.map +1 -0
  19. package/build/{es/src/stores-catalog-v3-ribbon-ribbons-v-3.types.d.ts → internal/stores-catalog-v3-ribbon-ribbons-v-3.universal-DWKP9-aP.d.mts} +308 -68
  20. package/build/{cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.types.d.ts → internal/stores-catalog-v3-ribbon-ribbons-v-3.universal-DWKP9-aP.d.ts} +308 -68
  21. package/build/meta.d.mts +394 -0
  22. package/build/meta.d.ts +394 -0
  23. package/build/meta.js +580 -0
  24. package/build/meta.js.map +1 -0
  25. package/build/meta.mjs +544 -0
  26. package/build/meta.mjs.map +1 -0
  27. package/build/{internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.types.d.ts → stores-catalog-v3-ribbon-ribbons-v-3.universal-DWKP9-aP.d.mts} +308 -68
  28. package/build/{internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.types.d.ts → stores-catalog-v3-ribbon-ribbons-v-3.universal-DWKP9-aP.d.ts} +308 -68
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.context.d.ts +0 -24
  40. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.context.js +0 -30
  41. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.context.js.map +0 -1
  42. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.http.d.ts +0 -59
  43. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.http.js +0 -410
  44. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.http.js.map +0 -1
  45. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.d.ts +0 -28
  46. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.js +0 -218
  47. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.js.map +0 -1
  48. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.public.d.ts +0 -119
  49. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.public.js +0 -104
  50. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.public.js.map +0 -1
  51. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js +0 -24
  52. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js.map +0 -1
  53. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.d.ts +0 -1237
  54. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js +0 -606
  55. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.context.d.ts +0 -24
  67. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.context.js +0 -24
  68. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.context.js.map +0 -1
  69. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.http.d.ts +0 -59
  70. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.http.js +0 -397
  71. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.http.js.map +0 -1
  72. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.d.ts +0 -28
  73. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.js +0 -182
  74. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.js.map +0 -1
  75. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.public.d.ts +0 -119
  76. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.public.js +0 -88
  77. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.public.js.map +0 -1
  78. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js +0 -21
  79. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js.map +0 -1
  80. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.d.ts +0 -1237
  81. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js +0 -570
  82. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.context.d.ts +0 -24
  93. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.context.js +0 -30
  94. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.context.js.map +0 -1
  95. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.http.d.ts +0 -59
  96. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.http.js +0 -410
  97. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.http.js.map +0 -1
  98. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.d.ts +0 -28
  99. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.js +0 -218
  100. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.js.map +0 -1
  101. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.public.d.ts +0 -119
  102. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.public.js +0 -104
  103. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.public.js.map +0 -1
  104. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js +0 -24
  105. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js.map +0 -1
  106. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.d.ts +0 -1237
  107. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js +0 -606
  108. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.context.d.ts +0 -24
  119. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.context.js +0 -24
  120. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.context.js.map +0 -1
  121. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.http.d.ts +0 -59
  122. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.http.js +0 -397
  123. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.http.js.map +0 -1
  124. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.d.ts +0 -28
  125. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.js +0 -182
  126. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.js.map +0 -1
  127. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.public.d.ts +0 -119
  128. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.public.js +0 -88
  129. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.public.js.map +0 -1
  130. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js +0 -21
  131. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js.map +0 -1
  132. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.d.ts +0 -1237
  133. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js +0 -570
  134. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js.map +0 -1
@@ -1,11 +1,11 @@
1
1
  /** A Ribbon is a visual element that you can assign to products to highlight them on your site. */
2
- export interface Ribbon {
2
+ interface Ribbon {
3
3
  /**
4
4
  * Ribbon ID.
5
5
  * @format GUID
6
6
  * @readonly
7
7
  */
8
- id?: string | null;
8
+ _id?: string | null;
9
9
  /**
10
10
  * Revision number, which increments by 1 each time the ribbon is updated.
11
11
  * To prevent conflicting changes,
@@ -19,12 +19,12 @@ export interface Ribbon {
19
19
  * Date and time the ribbon was created.
20
20
  * @readonly
21
21
  */
22
- createdDate?: Date | null;
22
+ _createdDate?: Date | null;
23
23
  /**
24
24
  * Date and time the ribbon was updated.
25
25
  * @readonly
26
26
  */
27
- updatedDate?: Date | null;
27
+ _updatedDate?: Date | null;
28
28
  /**
29
29
  * Ribbon name.
30
30
  * @minLength 1
@@ -38,7 +38,7 @@ export interface Ribbon {
38
38
  */
39
39
  assignedProductCount?: number | null;
40
40
  }
41
- export interface InvalidateCache extends InvalidateCacheGetByOneOf {
41
+ interface InvalidateCache extends InvalidateCacheGetByOneOf {
42
42
  /**
43
43
  * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
44
44
  * @format GUID
@@ -69,7 +69,7 @@ export interface InvalidateCache extends InvalidateCacheGetByOneOf {
69
69
  hardPurge?: boolean;
70
70
  }
71
71
  /** @oneof */
72
- export interface InvalidateCacheGetByOneOf {
72
+ interface InvalidateCacheGetByOneOf {
73
73
  /**
74
74
  * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
75
75
  * @format GUID
@@ -91,7 +91,7 @@ export interface InvalidateCacheGetByOneOf {
91
91
  /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */
92
92
  customTag?: CustomTag;
93
93
  }
94
- export interface App {
94
+ interface App {
95
95
  /**
96
96
  * The AppDefId
97
97
  * @minLength 1
@@ -103,7 +103,7 @@ export interface App {
103
103
  */
104
104
  instanceId?: string;
105
105
  }
106
- export interface Page {
106
+ interface Page {
107
107
  /**
108
108
  * the msid the page is on
109
109
  * @format GUID
@@ -115,7 +115,7 @@ export interface Page {
115
115
  */
116
116
  pageId?: string;
117
117
  }
118
- export interface URI {
118
+ interface URI {
119
119
  /**
120
120
  * the msid the URI is on
121
121
  * @format GUID
@@ -127,7 +127,7 @@ export interface URI {
127
127
  */
128
128
  uriPath?: string;
129
129
  }
130
- export interface File {
130
+ interface File {
131
131
  /**
132
132
  * the msid the file is related to
133
133
  * @format GUID
@@ -140,7 +140,7 @@ export interface File {
140
140
  */
141
141
  fileName?: string;
142
142
  }
143
- export interface CustomTag {
143
+ interface CustomTag {
144
144
  /**
145
145
  * the msid the tag is related to
146
146
  * @format GUID
@@ -153,15 +153,15 @@ export interface CustomTag {
153
153
  */
154
154
  tag?: string;
155
155
  }
156
- export interface CreateRibbonRequest {
156
+ interface CreateRibbonRequest {
157
157
  /** Ribbon to create. */
158
158
  ribbon: Ribbon;
159
159
  }
160
- export interface CreateRibbonResponse {
160
+ interface CreateRibbonResponse {
161
161
  /** Created ribbon. */
162
162
  ribbon?: Ribbon;
163
163
  }
164
- export interface GetRibbonRequest {
164
+ interface GetRibbonRequest {
165
165
  /**
166
166
  * Ribbon ID.
167
167
  * @format GUID
@@ -175,17 +175,17 @@ export interface GetRibbonRequest {
175
175
  */
176
176
  fields?: RequestedFieldsWithLiterals[];
177
177
  }
178
- export declare enum RequestedFields {
178
+ declare enum RequestedFields {
179
179
  UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
180
180
  ASSIGNED_PRODUCT_COUNT = "ASSIGNED_PRODUCT_COUNT"
181
181
  }
182
182
  /** @enumType */
183
- export type RequestedFieldsWithLiterals = RequestedFields | 'UNKNOWN_REQUESTED_FIELD' | 'ASSIGNED_PRODUCT_COUNT';
184
- export interface GetRibbonResponse {
183
+ type RequestedFieldsWithLiterals = RequestedFields | 'UNKNOWN_REQUESTED_FIELD' | 'ASSIGNED_PRODUCT_COUNT';
184
+ interface GetRibbonResponse {
185
185
  /** Ribbon. */
186
186
  ribbon?: Ribbon;
187
187
  }
188
- export interface UpdateRibbonRequest {
188
+ interface UpdateRibbonRequest {
189
189
  /** Ribbon to update. */
190
190
  ribbon: Ribbon;
191
191
  /**
@@ -196,20 +196,20 @@ export interface UpdateRibbonRequest {
196
196
  */
197
197
  fields?: RequestedFieldsWithLiterals[];
198
198
  }
199
- export interface UpdateRibbonResponse {
199
+ interface UpdateRibbonResponse {
200
200
  /** Updated Ribbon. */
201
201
  ribbon?: Ribbon;
202
202
  }
203
- export interface DeleteRibbonRequest {
203
+ interface DeleteRibbonRequest {
204
204
  /**
205
205
  * Ribbon ID.
206
206
  * @format GUID
207
207
  */
208
208
  ribbonId: string;
209
209
  }
210
- export interface DeleteRibbonResponse {
210
+ interface DeleteRibbonResponse {
211
211
  }
212
- export interface QueryRibbonsRequest {
212
+ interface QueryRibbonsRequest {
213
213
  /** Query options. */
214
214
  query?: CursorQuery;
215
215
  /**
@@ -220,7 +220,7 @@ export interface QueryRibbonsRequest {
220
220
  */
221
221
  fields?: RequestedFieldsWithLiterals[];
222
222
  }
223
- export interface CursorQuery extends CursorQueryPagingMethodOneOf {
223
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
224
224
  /** 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`. */
225
225
  cursorPaging?: CursorPaging;
226
226
  /**
@@ -240,11 +240,11 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
240
240
  sort?: Sorting[];
241
241
  }
242
242
  /** @oneof */
243
- export interface CursorQueryPagingMethodOneOf {
243
+ interface CursorQueryPagingMethodOneOf {
244
244
  /** 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`. */
245
245
  cursorPaging?: CursorPaging;
246
246
  }
247
- export interface Sorting {
247
+ interface Sorting {
248
248
  /**
249
249
  * Name of the field to sort by.
250
250
  * @maxLength 512
@@ -253,15 +253,15 @@ export interface Sorting {
253
253
  /** Sort order. */
254
254
  order?: SortOrderWithLiterals;
255
255
  }
256
- export declare enum SortOrder {
256
+ declare enum SortOrder {
257
257
  /** Ascending order. */
258
258
  ASC = "ASC",
259
259
  /** Descending order. */
260
260
  DESC = "DESC"
261
261
  }
262
262
  /** @enumType */
263
- export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
264
- export interface CursorPaging {
263
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
264
+ interface CursorPaging {
265
265
  /**
266
266
  * Maximum number of items to return in the results.
267
267
  * @max 100
@@ -276,7 +276,7 @@ export interface CursorPaging {
276
276
  */
277
277
  cursor?: string | null;
278
278
  }
279
- export interface QueryRibbonsResponse {
279
+ interface QueryRibbonsResponse {
280
280
  /**
281
281
  * List of ribbons.
282
282
  * @minSize 1
@@ -286,7 +286,7 @@ export interface QueryRibbonsResponse {
286
286
  /** Details on the paged set of results returned. */
287
287
  pagingMetadata?: CursorPagingMetadata;
288
288
  }
289
- export interface CursorPagingMetadata {
289
+ interface CursorPagingMetadata {
290
290
  /** Number of items returned in the response. */
291
291
  count?: number | null;
292
292
  /** Cursor strings that point to the next page, previous page, or both. */
@@ -299,7 +299,7 @@ export interface CursorPagingMetadata {
299
299
  */
300
300
  hasNext?: boolean | null;
301
301
  }
302
- export interface Cursors {
302
+ interface Cursors {
303
303
  /**
304
304
  * Cursor string pointing to the next page in the list of results.
305
305
  * @maxLength 16000
@@ -311,7 +311,7 @@ export interface Cursors {
311
311
  */
312
312
  prev?: string | null;
313
313
  }
314
- export interface BulkCreateRibbonsRequest {
314
+ interface BulkCreateRibbonsRequest {
315
315
  /**
316
316
  * Ribbons to create.
317
317
  * @minSize 1
@@ -325,7 +325,7 @@ export interface BulkCreateRibbonsRequest {
325
325
  */
326
326
  returnEntity?: boolean;
327
327
  }
328
- export interface BulkCreateRibbonsResponse {
328
+ interface BulkCreateRibbonsResponse {
329
329
  /**
330
330
  * Ribbons created by bulk action.
331
331
  * @maxSize 100
@@ -334,7 +334,7 @@ export interface BulkCreateRibbonsResponse {
334
334
  /** Bulk action metadata. */
335
335
  bulkActionMetadata?: BulkActionMetadata;
336
336
  }
337
- export interface V3BulkRibbonResult {
337
+ interface V3BulkRibbonResult {
338
338
  /** Bulk action metadata for ribbon. */
339
339
  itemMetadata?: ItemMetadata;
340
340
  /**
@@ -344,12 +344,12 @@ export interface V3BulkRibbonResult {
344
344
  */
345
345
  item?: Ribbon;
346
346
  }
347
- export interface ItemMetadata {
347
+ interface ItemMetadata {
348
348
  /**
349
349
  * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
350
350
  * @format GUID
351
351
  */
352
- id?: string | null;
352
+ _id?: string | null;
353
353
  /** Index of the item within the request array. Allows for correlation between request and response items. */
354
354
  originalIndex?: number;
355
355
  /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
@@ -357,7 +357,7 @@ export interface ItemMetadata {
357
357
  /** Details about the error in case of failure. */
358
358
  error?: ApplicationError;
359
359
  }
360
- export interface ApplicationError {
360
+ interface ApplicationError {
361
361
  /** Error code. */
362
362
  code?: string;
363
363
  /** Description of the error. */
@@ -365,7 +365,7 @@ export interface ApplicationError {
365
365
  /** Data related to the error. */
366
366
  data?: Record<string, any> | null;
367
367
  }
368
- export interface BulkActionMetadata {
368
+ interface BulkActionMetadata {
369
369
  /** Number of items that were successfully processed. */
370
370
  totalSuccesses?: number;
371
371
  /** Number of items that couldn't be processed. */
@@ -373,7 +373,7 @@ export interface BulkActionMetadata {
373
373
  /** Number of failures without details because detailed failure threshold was exceeded. */
374
374
  undetailedFailures?: number;
375
375
  }
376
- export interface BulkUpdateRibbonsRequest {
376
+ interface BulkUpdateRibbonsRequest {
377
377
  /**
378
378
  * List of ribbons to update.
379
379
  * @minSize 1
@@ -394,13 +394,13 @@ export interface BulkUpdateRibbonsRequest {
394
394
  */
395
395
  fields?: RequestedFieldsWithLiterals[];
396
396
  }
397
- export interface MaskedRibbon {
397
+ interface MaskedRibbon {
398
398
  /** Ribbon to update. */
399
399
  ribbon?: Ribbon;
400
400
  /** Explicit list of fields to update. */
401
401
  fieldMask?: string[];
402
402
  }
403
- export interface BulkUpdateRibbonsResponse {
403
+ interface BulkUpdateRibbonsResponse {
404
404
  /**
405
405
  * Ribbons updated by bulk action.
406
406
  * @maxSize 100
@@ -409,7 +409,7 @@ export interface BulkUpdateRibbonsResponse {
409
409
  /** Bulk action metadata. */
410
410
  bulkActionMetadata?: BulkActionMetadata;
411
411
  }
412
- export interface GetOrCreateRibbonRequest {
412
+ interface GetOrCreateRibbonRequest {
413
413
  /**
414
414
  * Ribbon name to retrieve or create.
415
415
  * @minLength 1
@@ -424,11 +424,11 @@ export interface GetOrCreateRibbonRequest {
424
424
  */
425
425
  fields?: RequestedFieldsWithLiterals[];
426
426
  }
427
- export interface GetOrCreateRibbonResponse {
427
+ interface GetOrCreateRibbonResponse {
428
428
  /** Ribbon. */
429
429
  ribbon?: Ribbon;
430
430
  }
431
- export interface BulkGetOrCreateRibbonsRequest {
431
+ interface BulkGetOrCreateRibbonsRequest {
432
432
  /**
433
433
  * Ribbon names to retrieve or create.
434
434
  * @minLength 1
@@ -445,7 +445,7 @@ export interface BulkGetOrCreateRibbonsRequest {
445
445
  */
446
446
  fields?: RequestedFieldsWithLiterals[];
447
447
  }
448
- export interface BulkGetOrCreateRibbonsResponse {
448
+ interface BulkGetOrCreateRibbonsResponse {
449
449
  /**
450
450
  * Ribbons retrieved or created by bulk action.
451
451
  * @maxSize 100
@@ -454,7 +454,7 @@ export interface BulkGetOrCreateRibbonsResponse {
454
454
  /** Bulk action metadata. */
455
455
  bulkActionMetadata?: BulkActionMetadata;
456
456
  }
457
- export interface BulkDeleteRibbonsRequest {
457
+ interface BulkDeleteRibbonsRequest {
458
458
  /**
459
459
  * IDs of ribbons to delete.
460
460
  * @format GUID
@@ -463,7 +463,7 @@ export interface BulkDeleteRibbonsRequest {
463
463
  */
464
464
  ribbonIds: string[];
465
465
  }
466
- export interface BulkDeleteRibbonsResponse {
466
+ interface BulkDeleteRibbonsResponse {
467
467
  /**
468
468
  * Ribbons deleted by bulk action.
469
469
  * @maxSize 100
@@ -472,17 +472,17 @@ export interface BulkDeleteRibbonsResponse {
472
472
  /** Bulk action metadata. */
473
473
  bulkActionMetadata?: BulkActionMetadata;
474
474
  }
475
- export interface BulkRibbonResult {
475
+ interface BulkRibbonResult {
476
476
  /** Bulk action metadata for ribbon. */
477
477
  itemMetadata?: ItemMetadata;
478
478
  }
479
- export interface DomainEvent extends DomainEventBodyOneOf {
479
+ interface DomainEvent extends DomainEventBodyOneOf {
480
480
  createdEvent?: EntityCreatedEvent;
481
481
  updatedEvent?: EntityUpdatedEvent;
482
482
  deletedEvent?: EntityDeletedEvent;
483
483
  actionEvent?: ActionEvent;
484
484
  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
485
- id?: string;
485
+ _id?: string;
486
486
  /**
487
487
  * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
488
488
  * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
@@ -511,38 +511,36 @@ export interface DomainEvent extends DomainEventBodyOneOf {
511
511
  entityEventSequence?: string | null;
512
512
  }
513
513
  /** @oneof */
514
- export interface DomainEventBodyOneOf {
514
+ interface DomainEventBodyOneOf {
515
515
  createdEvent?: EntityCreatedEvent;
516
516
  updatedEvent?: EntityUpdatedEvent;
517
517
  deletedEvent?: EntityDeletedEvent;
518
518
  actionEvent?: ActionEvent;
519
519
  }
520
- export interface EntityCreatedEvent {
521
- entityAsJson?: string;
522
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
523
- restoreInfo?: RestoreInfo;
520
+ interface EntityCreatedEvent {
521
+ entity?: string;
524
522
  }
525
- export interface RestoreInfo {
523
+ interface RestoreInfo {
526
524
  deletedDate?: Date | null;
527
525
  }
528
- export interface EntityUpdatedEvent {
526
+ interface EntityUpdatedEvent {
529
527
  /**
530
528
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
531
529
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
532
530
  * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
533
531
  */
534
- currentEntityAsJson?: string;
532
+ currentEntity?: string;
535
533
  }
536
- export interface EntityDeletedEvent {
534
+ interface EntityDeletedEvent {
537
535
  /** Entity that was deleted. */
538
- deletedEntityAsJson?: string | null;
536
+ deletedEntity?: string | null;
539
537
  }
540
- export interface ActionEvent {
541
- bodyAsJson?: string;
538
+ interface ActionEvent {
539
+ body?: string;
542
540
  }
543
- export interface Empty {
541
+ interface Empty {
544
542
  }
545
- export interface MessageEnvelope {
543
+ interface MessageEnvelope {
546
544
  /**
547
545
  * App instance ID.
548
546
  * @format GUID
@@ -558,7 +556,7 @@ export interface MessageEnvelope {
558
556
  /** Stringify payload. */
559
557
  data?: string;
560
558
  }
561
- export interface IdentificationData extends IdentificationDataIdOneOf {
559
+ interface IdentificationData extends IdentificationDataIdOneOf {
562
560
  /**
563
561
  * ID of a site visitor that has not logged in to the site.
564
562
  * @format GUID
@@ -583,7 +581,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
583
581
  identityType?: WebhookIdentityTypeWithLiterals;
584
582
  }
585
583
  /** @oneof */
586
- export interface IdentificationDataIdOneOf {
584
+ interface IdentificationDataIdOneOf {
587
585
  /**
588
586
  * ID of a site visitor that has not logged in to the site.
589
587
  * @format GUID
@@ -605,7 +603,7 @@ export interface IdentificationDataIdOneOf {
605
603
  */
606
604
  appId?: string;
607
605
  }
608
- export declare enum WebhookIdentityType {
606
+ declare enum WebhookIdentityType {
609
607
  UNKNOWN = "UNKNOWN",
610
608
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
611
609
  MEMBER = "MEMBER",
@@ -613,4 +611,246 @@ export declare enum WebhookIdentityType {
613
611
  APP = "APP"
614
612
  }
615
613
  /** @enumType */
616
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
614
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
615
+ interface BaseEventMetadata {
616
+ /**
617
+ * App instance ID.
618
+ * @format GUID
619
+ */
620
+ instanceId?: string | null;
621
+ /**
622
+ * Event type.
623
+ * @maxLength 150
624
+ */
625
+ eventType?: string;
626
+ /** The identification type and identity data. */
627
+ identity?: IdentificationData;
628
+ }
629
+ interface EventMetadata extends BaseEventMetadata {
630
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
631
+ _id?: string;
632
+ /**
633
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
634
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
635
+ */
636
+ entityFqdn?: string;
637
+ /**
638
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
639
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
640
+ */
641
+ slug?: string;
642
+ /** ID of the entity associated with the event. */
643
+ entityId?: string;
644
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
645
+ eventTime?: Date | null;
646
+ /**
647
+ * Whether the event was triggered as a result of a privacy regulation application
648
+ * (for example, GDPR).
649
+ */
650
+ triggeredByAnonymizeRequest?: boolean | null;
651
+ /** If present, indicates the action that triggered the event. */
652
+ originatedFrom?: string | null;
653
+ /**
654
+ * 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.
655
+ * 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.
656
+ */
657
+ entityEventSequence?: string | null;
658
+ }
659
+ interface RibbonCreatedEnvelope {
660
+ entity: Ribbon;
661
+ metadata: EventMetadata;
662
+ }
663
+ interface RibbonDeletedEnvelope {
664
+ entity: Ribbon;
665
+ metadata: EventMetadata;
666
+ }
667
+ interface RibbonUpdatedEnvelope {
668
+ entity: Ribbon;
669
+ metadata: EventMetadata;
670
+ }
671
+ interface GetRibbonOptions {
672
+ /**
673
+ * Fields to include in the response.
674
+ *
675
+ * Supported values: `ASSIGNED_PRODUCTS_COUNT`
676
+ * @maxSize 100
677
+ */
678
+ fields?: RequestedFieldsWithLiterals[];
679
+ }
680
+ interface UpdateRibbon {
681
+ /**
682
+ * Ribbon ID.
683
+ * @format GUID
684
+ * @readonly
685
+ */
686
+ _id?: string | null;
687
+ /**
688
+ * Revision number, which increments by 1 each time the ribbon is updated.
689
+ * To prevent conflicting changes,
690
+ * the current revision must be passed when updating the ribbon.
691
+ *
692
+ * Ignored when creating a ribbon.
693
+ * @readonly
694
+ */
695
+ revision?: string | null;
696
+ /**
697
+ * Date and time the ribbon was created.
698
+ * @readonly
699
+ */
700
+ _createdDate?: Date | null;
701
+ /**
702
+ * Date and time the ribbon was updated.
703
+ * @readonly
704
+ */
705
+ _updatedDate?: Date | null;
706
+ /**
707
+ * Ribbon name.
708
+ * @minLength 1
709
+ * @maxLength 30
710
+ */
711
+ name?: string;
712
+ /**
713
+ * Number of products this ribbon is assigned to.
714
+ * > **Note:** Returned only when you pass `"ASSIGNED_PRODUCT_COUNT"` to the `fields` array in Ribbon API requests.
715
+ * @readonly
716
+ */
717
+ assignedProductCount?: number | null;
718
+ }
719
+ interface UpdateRibbonOptions {
720
+ /**
721
+ * Fields to include in the response.
722
+ *
723
+ * Supported values: `ASSIGNED_PRODUCTS_COUNT`
724
+ * @maxSize 100
725
+ */
726
+ fields?: RequestedFieldsWithLiterals[];
727
+ }
728
+ interface QueryRibbonsOptions {
729
+ /**
730
+ * Fields to include in the response.
731
+ *
732
+ * Supported values: `ASSIGNED_PRODUCTS_COUNT`
733
+ * @maxSize 100
734
+ */
735
+ fields?: RequestedFieldsWithLiterals[] | undefined;
736
+ }
737
+ interface QueryCursorResult {
738
+ cursors: Cursors;
739
+ hasNext: () => boolean;
740
+ hasPrev: () => boolean;
741
+ length: number;
742
+ pageSize: number;
743
+ }
744
+ interface RibbonsQueryResult extends QueryCursorResult {
745
+ items: Ribbon[];
746
+ query: RibbonsQueryBuilder;
747
+ next: () => Promise<RibbonsQueryResult>;
748
+ prev: () => Promise<RibbonsQueryResult>;
749
+ }
750
+ interface RibbonsQueryBuilder {
751
+ /** @param propertyName - Property whose value is compared with `value`.
752
+ * @param value - Value to compare against.
753
+ * @documentationMaturity preview
754
+ */
755
+ eq: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name', value: any) => RibbonsQueryBuilder;
756
+ /** @param propertyName - Property whose value is compared with `value`.
757
+ * @param value - Value to compare against.
758
+ * @documentationMaturity preview
759
+ */
760
+ ne: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name', value: any) => RibbonsQueryBuilder;
761
+ /** @param propertyName - Property whose value is compared with `value`.
762
+ * @param value - Value to compare against.
763
+ * @documentationMaturity preview
764
+ */
765
+ ge: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name', value: any) => RibbonsQueryBuilder;
766
+ /** @param propertyName - Property whose value is compared with `value`.
767
+ * @param value - Value to compare against.
768
+ * @documentationMaturity preview
769
+ */
770
+ gt: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name', value: any) => RibbonsQueryBuilder;
771
+ /** @param propertyName - Property whose value is compared with `value`.
772
+ * @param value - Value to compare against.
773
+ * @documentationMaturity preview
774
+ */
775
+ le: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name', value: any) => RibbonsQueryBuilder;
776
+ /** @param propertyName - Property whose value is compared with `value`.
777
+ * @param value - Value to compare against.
778
+ * @documentationMaturity preview
779
+ */
780
+ lt: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name', value: any) => RibbonsQueryBuilder;
781
+ /** @param propertyName - Property whose value is compared with `string`.
782
+ * @param string - String to compare against. Case-insensitive.
783
+ * @documentationMaturity preview
784
+ */
785
+ startsWith: (propertyName: '_id' | 'name', value: string) => RibbonsQueryBuilder;
786
+ /** @param propertyName - Property whose value is compared with `values`.
787
+ * @param values - List of values to compare against.
788
+ * @documentationMaturity preview
789
+ */
790
+ hasSome: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name', value: any[]) => RibbonsQueryBuilder;
791
+ /** @documentationMaturity preview */
792
+ in: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name', value: any) => RibbonsQueryBuilder;
793
+ /** @documentationMaturity preview */
794
+ exists: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name', value: boolean) => RibbonsQueryBuilder;
795
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
796
+ * @documentationMaturity preview
797
+ */
798
+ ascending: (...propertyNames: Array<'_createdDate' | '_updatedDate' | 'name'>) => RibbonsQueryBuilder;
799
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
800
+ * @documentationMaturity preview
801
+ */
802
+ descending: (...propertyNames: Array<'_createdDate' | '_updatedDate' | 'name'>) => RibbonsQueryBuilder;
803
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
804
+ * @documentationMaturity preview
805
+ */
806
+ limit: (limit: number) => RibbonsQueryBuilder;
807
+ /** @param cursor - A pointer to specific record
808
+ * @documentationMaturity preview
809
+ */
810
+ skipTo: (cursor: string) => RibbonsQueryBuilder;
811
+ /** @documentationMaturity preview */
812
+ find: () => Promise<RibbonsQueryResult>;
813
+ }
814
+ interface BulkCreateRibbonsOptions {
815
+ /**
816
+ * Whether to return the full created ribbon entities in the response.
817
+ *
818
+ * Default: `false`
819
+ */
820
+ returnEntity?: boolean;
821
+ }
822
+ interface BulkUpdateRibbonsOptions {
823
+ /**
824
+ * Whether to return the full updated ribbon entities in the response.
825
+ *
826
+ * Default: `false`
827
+ */
828
+ returnEntity?: boolean;
829
+ /**
830
+ * Fields to include in the response.
831
+ *
832
+ * Supported values: `ASSIGNED_PRODUCTS_COUNT`
833
+ * @maxSize 100
834
+ */
835
+ fields?: RequestedFieldsWithLiterals[];
836
+ }
837
+ interface GetOrCreateRibbonOptions {
838
+ /**
839
+ * Fields to include in the response.
840
+ *
841
+ * Supported values: `ASSIGNED_PRODUCTS_COUNT`
842
+ * @maxSize 100
843
+ */
844
+ fields?: RequestedFieldsWithLiterals[];
845
+ }
846
+ interface BulkGetOrCreateRibbonsOptions {
847
+ /**
848
+ * Fields to include in the response.
849
+ *
850
+ * Supported values: `ASSIGNED_PRODUCTS_COUNT`
851
+ * @maxSize 100
852
+ */
853
+ fields?: RequestedFieldsWithLiterals[];
854
+ }
855
+
856
+ export { type BulkDeleteRibbonsRequest as $, type App as A, type BulkCreateRibbonsOptions as B, type CustomTag as C, type DeleteRibbonRequest as D, type Sorting as E, type File as F, type GetRibbonOptions as G, type CursorPaging as H, type InvalidateCache as I, type QueryRibbonsResponse as J, type CursorPagingMetadata as K, type Cursors as L, type MaskedRibbon as M, type BulkCreateRibbonsRequest as N, type ItemMetadata as O, type Page as P, type QueryRibbonsOptions as Q, type Ribbon as R, SortOrder as S, type ApplicationError as T, type UpdateRibbon as U, type V3BulkRibbonResult as V, WebhookIdentityType as W, type BulkActionMetadata as X, type BulkUpdateRibbonsRequest as Y, type GetOrCreateRibbonRequest as Z, type BulkGetOrCreateRibbonsRequest as _, type UpdateRibbonOptions as a, type BulkRibbonResult as a0, type DomainEvent as a1, type DomainEventBodyOneOf as a2, type EntityCreatedEvent as a3, type RestoreInfo as a4, type EntityUpdatedEvent as a5, type EntityDeletedEvent as a6, type ActionEvent as a7, type Empty as a8, type MessageEnvelope as a9, type IdentificationData as aa, type IdentificationDataIdOneOf as ab, type BaseEventMetadata as ac, type EventMetadata as ad, type RibbonsQueryResult as ae, type RibbonsQueryBuilder as b, type BulkCreateRibbonsResponse as c, type BulkUpdateRibbonsOptions as d, type BulkUpdateRibbonsResponse as e, type GetOrCreateRibbonOptions as f, type GetOrCreateRibbonResponse as g, type BulkGetOrCreateRibbonsOptions as h, type BulkGetOrCreateRibbonsResponse as i, type BulkDeleteRibbonsResponse as j, type RibbonCreatedEnvelope as k, type RibbonDeletedEnvelope as l, type RibbonUpdatedEnvelope as m, RequestedFields as n, type InvalidateCacheGetByOneOf as o, type URI as p, type CreateRibbonRequest as q, type CreateRibbonResponse as r, type GetRibbonRequest as s, type GetRibbonResponse as t, type UpdateRibbonRequest as u, type UpdateRibbonResponse as v, type DeleteRibbonResponse as w, type QueryRibbonsRequest as x, type CursorQuery as y, type CursorQueryPagingMethodOneOf as z };