@wix/auto_sdk_stores_ribbons-v-3 1.0.0

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 (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.context.d.ts +24 -0
  11. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.context.js +30 -0
  12. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.context.js.map +1 -0
  13. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.http.d.ts +59 -0
  14. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.http.js +410 -0
  15. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.http.js.map +1 -0
  16. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.d.ts +28 -0
  17. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.js +218 -0
  18. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.js.map +1 -0
  19. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.public.d.ts +119 -0
  20. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.public.js +104 -0
  21. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.public.js.map +1 -0
  22. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.types.d.ts +514 -0
  23. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js +24 -0
  24. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js.map +1 -0
  25. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.d.ts +1040 -0
  26. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js +556 -0
  27. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.context.d.ts +24 -0
  39. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.context.js +24 -0
  40. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.context.js.map +1 -0
  41. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.http.d.ts +59 -0
  42. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.http.js +397 -0
  43. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.http.js.map +1 -0
  44. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.d.ts +28 -0
  45. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.js +182 -0
  46. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.js.map +1 -0
  47. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.public.d.ts +119 -0
  48. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.public.js +88 -0
  49. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.public.js.map +1 -0
  50. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.types.d.ts +514 -0
  51. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js +21 -0
  52. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js.map +1 -0
  53. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.d.ts +1040 -0
  54. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js +520 -0
  55. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.context.d.ts +24 -0
  66. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.context.js +30 -0
  67. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.context.js.map +1 -0
  68. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.http.d.ts +59 -0
  69. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.http.js +410 -0
  70. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.http.js.map +1 -0
  71. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.d.ts +28 -0
  72. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.js +218 -0
  73. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.js.map +1 -0
  74. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.public.d.ts +119 -0
  75. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.public.js +104 -0
  76. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.public.js.map +1 -0
  77. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.types.d.ts +514 -0
  78. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js +24 -0
  79. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js.map +1 -0
  80. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.d.ts +1040 -0
  81. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js +556 -0
  82. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.context.d.ts +24 -0
  93. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.context.js +24 -0
  94. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.context.js.map +1 -0
  95. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.http.d.ts +59 -0
  96. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.http.js +397 -0
  97. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.http.js.map +1 -0
  98. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.d.ts +28 -0
  99. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.js +182 -0
  100. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.js.map +1 -0
  101. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.public.d.ts +119 -0
  102. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.public.js +88 -0
  103. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.public.js.map +1 -0
  104. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.types.d.ts +514 -0
  105. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js +21 -0
  106. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js.map +1 -0
  107. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.d.ts +1040 -0
  108. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js +520 -0
  109. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,514 @@
1
+ /** A Ribbon is a visual element that you can assign to products to highlight them on your site. */
2
+ export interface Ribbon {
3
+ /**
4
+ * Ribbon ID.
5
+ * @readonly
6
+ */
7
+ id?: string | null;
8
+ /**
9
+ * Revision number, which increments by 1 each time the ribbon is updated.
10
+ * To prevent conflicting changes,
11
+ * the current revision must be passed when updating the ribbon.
12
+ *
13
+ * Ignored when creating a ribbon.
14
+ * @readonly
15
+ */
16
+ revision?: string | null;
17
+ /**
18
+ * Date and time the ribbon was created.
19
+ * @readonly
20
+ */
21
+ createdDate?: Date | null;
22
+ /**
23
+ * Date and time the ribbon was updated.
24
+ * @readonly
25
+ */
26
+ updatedDate?: Date | null;
27
+ /** Ribbon name. */
28
+ name?: string;
29
+ /**
30
+ * Number of products this ribbon is assigned to.
31
+ * > **Note:** Returned only when you pass `"ASSIGNED_PRODUCT_COUNT"` to the `fields` array in Ribbon API requests.
32
+ * @readonly
33
+ */
34
+ assignedProductCount?: number | null;
35
+ }
36
+ export interface InvalidateCache extends InvalidateCacheGetByOneOf {
37
+ /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
38
+ metaSiteId?: string;
39
+ /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
40
+ siteId?: string;
41
+ /** Invalidate by App */
42
+ app?: App;
43
+ /** Invalidate by page id */
44
+ page?: Page;
45
+ /** Invalidate by URI path */
46
+ uri?: URI;
47
+ /** Invalidate by file (for media files such as PDFs) */
48
+ file?: File;
49
+ /** tell us why you're invalidating the cache. You don't need to add your app name */
50
+ reason?: string | null;
51
+ /** Is local DS */
52
+ localDc?: boolean;
53
+ hardPurge?: boolean;
54
+ }
55
+ /** @oneof */
56
+ export interface InvalidateCacheGetByOneOf {
57
+ /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
58
+ metaSiteId?: string;
59
+ /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
60
+ siteId?: string;
61
+ /** Invalidate by App */
62
+ app?: App;
63
+ /** Invalidate by page id */
64
+ page?: Page;
65
+ /** Invalidate by URI path */
66
+ uri?: URI;
67
+ /** Invalidate by file (for media files such as PDFs) */
68
+ file?: File;
69
+ }
70
+ export interface App {
71
+ /** The AppDefId */
72
+ appDefId?: string;
73
+ /** The instance Id */
74
+ instanceId?: string;
75
+ }
76
+ export interface Page {
77
+ /** the msid the page is on */
78
+ metaSiteId?: string;
79
+ /** Invalidate by Page ID */
80
+ pageId?: string;
81
+ }
82
+ export interface URI {
83
+ /** the msid the URI is on */
84
+ metaSiteId?: string;
85
+ /** URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes */
86
+ uriPath?: string;
87
+ }
88
+ export interface File {
89
+ /** the msid the file is related to */
90
+ metaSiteId?: string;
91
+ /** Invalidate by filename (for media files such as PDFs) */
92
+ fileName?: string;
93
+ }
94
+ export interface CreateRibbonRequest {
95
+ /** Ribbon to create. */
96
+ ribbon: Ribbon;
97
+ }
98
+ export interface CreateRibbonResponse {
99
+ /** Created ribbon. */
100
+ ribbon?: Ribbon;
101
+ }
102
+ export interface GetRibbonRequest {
103
+ /** Ribbon ID. */
104
+ ribbonId: string;
105
+ /**
106
+ * Fields to include in the response.
107
+ *
108
+ * Supported values: `ASSIGNED_PRODUCTS_COUNT`
109
+ */
110
+ fields?: RequestedFields[];
111
+ }
112
+ export declare enum RequestedFields {
113
+ UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
114
+ ASSIGNED_PRODUCT_COUNT = "ASSIGNED_PRODUCT_COUNT"
115
+ }
116
+ export interface GetRibbonResponse {
117
+ /** Ribbon. */
118
+ ribbon?: Ribbon;
119
+ }
120
+ export interface UpdateRibbonRequest {
121
+ /** Ribbon to update. */
122
+ ribbon: Ribbon;
123
+ /**
124
+ * Fields to include in the response.
125
+ *
126
+ * Supported values: `ASSIGNED_PRODUCTS_COUNT`
127
+ */
128
+ fields?: RequestedFields[];
129
+ }
130
+ export interface UpdateRibbonResponse {
131
+ /** Updated Ribbon. */
132
+ ribbon?: Ribbon;
133
+ }
134
+ export interface DeleteRibbonRequest {
135
+ /** Ribbon ID. */
136
+ ribbonId: string;
137
+ }
138
+ export interface DeleteRibbonResponse {
139
+ }
140
+ export interface QueryRibbonsRequest {
141
+ /** Query options. */
142
+ query?: CursorQuery;
143
+ /**
144
+ * Fields to include in the response.
145
+ *
146
+ * Supported values: `ASSIGNED_PRODUCTS_COUNT`
147
+ */
148
+ fields?: RequestedFields[];
149
+ }
150
+ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
151
+ /** 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`. */
152
+ cursorPaging?: CursorPaging;
153
+ /**
154
+ * Filter object in the following format:
155
+ * `"filter" : {
156
+ * "fieldName1": "value1",
157
+ * "fieldName2":{"$operator":"value2"}
158
+ * }`
159
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
160
+ */
161
+ filter?: Record<string, any> | null;
162
+ /**
163
+ * Sort object in the following format:
164
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
165
+ */
166
+ sort?: Sorting[];
167
+ }
168
+ /** @oneof */
169
+ export interface CursorQueryPagingMethodOneOf {
170
+ /** 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`. */
171
+ cursorPaging?: CursorPaging;
172
+ }
173
+ export interface Sorting {
174
+ /** Name of the field to sort by. */
175
+ fieldName?: string;
176
+ /** Sort order. */
177
+ order?: SortOrder;
178
+ }
179
+ export declare enum SortOrder {
180
+ /** Ascending order. */
181
+ ASC = "ASC",
182
+ /** Descending order. */
183
+ DESC = "DESC"
184
+ }
185
+ export interface CursorPaging {
186
+ /** Maximum number of items to return in the results. */
187
+ limit?: number | null;
188
+ /**
189
+ * Pointer to the next or previous page in the list of results.
190
+ *
191
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
192
+ * Not relevant for the first request.
193
+ */
194
+ cursor?: string | null;
195
+ }
196
+ export interface QueryRibbonsResponse {
197
+ /** List of ribbons. */
198
+ ribbons?: Ribbon[];
199
+ /** Details on the paged set of results returned. */
200
+ pagingMetadata?: CursorPagingMetadata;
201
+ }
202
+ export interface CursorPagingMetadata {
203
+ /** Number of items returned in the response. */
204
+ count?: number | null;
205
+ /** Cursor strings that point to the next page, previous page, or both. */
206
+ cursors?: Cursors;
207
+ /**
208
+ * Whether there are more pages to retrieve following the current page.
209
+ *
210
+ * + `true`: Another page of results can be retrieved.
211
+ * + `false`: This is the last page.
212
+ */
213
+ hasNext?: boolean | null;
214
+ }
215
+ export interface Cursors {
216
+ /** Cursor string pointing to the next page in the list of results. */
217
+ next?: string | null;
218
+ /** Cursor pointing to the previous page in the list of results. */
219
+ prev?: string | null;
220
+ }
221
+ export interface BulkCreateRibbonsRequest {
222
+ /** Ribbons to create. */
223
+ ribbons: Ribbon[];
224
+ /**
225
+ * Whether to return the full created ribbon entities in the response.
226
+ *
227
+ * Default: `false`
228
+ */
229
+ returnEntity?: boolean;
230
+ }
231
+ export interface BulkCreateRibbonsResponse {
232
+ /** Ribbons created by bulk action. */
233
+ results?: V3BulkRibbonResult[];
234
+ /** Bulk action metadata. */
235
+ bulkActionMetadata?: BulkActionMetadata;
236
+ }
237
+ export interface V3BulkRibbonResult {
238
+ /** Bulk action metadata for ribbon. */
239
+ itemMetadata?: ItemMetadata;
240
+ /**
241
+ * Full ribbon entity.
242
+ *
243
+ * Returned only if `returnEntity: true` is passed in the request.
244
+ */
245
+ item?: Ribbon;
246
+ }
247
+ export interface ItemMetadata {
248
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
249
+ id?: string | null;
250
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
251
+ originalIndex?: number;
252
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
253
+ success?: boolean;
254
+ /** Details about the error in case of failure. */
255
+ error?: ApplicationError;
256
+ }
257
+ export interface ApplicationError {
258
+ /** Error code. */
259
+ code?: string;
260
+ /** Description of the error. */
261
+ description?: string;
262
+ /** Data related to the error. */
263
+ data?: Record<string, any> | null;
264
+ }
265
+ export interface BulkActionMetadata {
266
+ /** Number of items that were successfully processed. */
267
+ totalSuccesses?: number;
268
+ /** Number of items that couldn't be processed. */
269
+ totalFailures?: number;
270
+ /** Number of failures without details because detailed failure threshold was exceeded. */
271
+ undetailedFailures?: number;
272
+ }
273
+ export interface BulkUpdateRibbonsRequest {
274
+ /** List of ribbons to update. */
275
+ ribbons: MaskedRibbon[];
276
+ /**
277
+ * Whether to return the full updated ribbon entities in the response.
278
+ *
279
+ * Default: `false`
280
+ */
281
+ returnEntity?: boolean;
282
+ /**
283
+ * Fields to include in the response.
284
+ *
285
+ * Supported values: `ASSIGNED_PRODUCTS_COUNT`
286
+ */
287
+ fields?: RequestedFields[];
288
+ }
289
+ export interface MaskedRibbon {
290
+ /** Ribbon to update. */
291
+ ribbon?: Ribbon;
292
+ /** Explicit list of fields to update. */
293
+ fieldMask?: string[];
294
+ }
295
+ export interface BulkUpdateRibbonsResponse {
296
+ /** Ribbons updated by bulk action. */
297
+ results?: V3BulkRibbonResult[];
298
+ /** Bulk action metadata. */
299
+ bulkActionMetadata?: BulkActionMetadata;
300
+ }
301
+ export interface GetOrCreateRibbonRequest {
302
+ /** Ribbon name to retrieve or create. */
303
+ ribbonName: string;
304
+ /**
305
+ * Fields to include in the response.
306
+ *
307
+ * Supported values: `ASSIGNED_PRODUCTS_COUNT`
308
+ */
309
+ fields?: RequestedFields[];
310
+ }
311
+ export interface GetOrCreateRibbonResponse {
312
+ /** Ribbon. */
313
+ ribbon?: Ribbon;
314
+ }
315
+ export interface BulkGetOrCreateRibbonsRequest {
316
+ /** Ribbon names to retrieve or create. */
317
+ ribbonNames: string[];
318
+ /**
319
+ * Fields to include in the response.
320
+ *
321
+ * Supported values: `ASSIGNED_PRODUCTS_COUNT`
322
+ */
323
+ fields?: RequestedFields[];
324
+ }
325
+ export interface BulkGetOrCreateRibbonsResponse {
326
+ /** Ribbons retrieved or created by bulk action. */
327
+ results?: V3BulkRibbonResult[];
328
+ /** Bulk action metadata. */
329
+ bulkActionMetadata?: BulkActionMetadata;
330
+ }
331
+ export interface BulkDeleteRibbonsRequest {
332
+ /** IDs of ribbons to delete. */
333
+ ribbonIds: string[];
334
+ }
335
+ export interface BulkDeleteRibbonsResponse {
336
+ /** Ribbons deleted by bulk action. */
337
+ results?: BulkRibbonResult[];
338
+ /** Bulk action metadata. */
339
+ bulkActionMetadata?: BulkActionMetadata;
340
+ }
341
+ export interface BulkRibbonResult {
342
+ /** Bulk action metadata for ribbon. */
343
+ itemMetadata?: ItemMetadata;
344
+ }
345
+ export interface DomainEvent extends DomainEventBodyOneOf {
346
+ createdEvent?: EntityCreatedEvent;
347
+ updatedEvent?: EntityUpdatedEvent;
348
+ deletedEvent?: EntityDeletedEvent;
349
+ actionEvent?: ActionEvent;
350
+ /**
351
+ * Unique event ID.
352
+ * Allows clients to ignore duplicate webhooks.
353
+ */
354
+ id?: string;
355
+ /**
356
+ * Assumes actions are also always typed to an entity_type
357
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
358
+ */
359
+ entityFqdn?: string;
360
+ /**
361
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
362
+ * This is although the created/updated/deleted notion is duplication of the oneof types
363
+ * Example: created/updated/deleted/started/completed/email_opened
364
+ */
365
+ slug?: string;
366
+ /** ID of the entity associated with the event. */
367
+ entityId?: string;
368
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
369
+ eventTime?: Date | null;
370
+ /**
371
+ * Whether the event was triggered as a result of a privacy regulation application
372
+ * (for example, GDPR).
373
+ */
374
+ triggeredByAnonymizeRequest?: boolean | null;
375
+ /** If present, indicates the action that triggered the event. */
376
+ originatedFrom?: string | null;
377
+ /**
378
+ * A sequence number defining the order of updates to the underlying entity.
379
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
380
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
381
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
382
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
383
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
384
+ */
385
+ entityEventSequence?: string | null;
386
+ }
387
+ /** @oneof */
388
+ export interface DomainEventBodyOneOf {
389
+ createdEvent?: EntityCreatedEvent;
390
+ updatedEvent?: EntityUpdatedEvent;
391
+ deletedEvent?: EntityDeletedEvent;
392
+ actionEvent?: ActionEvent;
393
+ }
394
+ export interface EntityCreatedEvent {
395
+ entityAsJson?: string;
396
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
397
+ restoreInfo?: RestoreInfo;
398
+ }
399
+ export interface RestoreInfo {
400
+ deletedDate?: Date | null;
401
+ }
402
+ export interface EntityUpdatedEvent {
403
+ /**
404
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
405
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
406
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
407
+ */
408
+ currentEntityAsJson?: string;
409
+ }
410
+ export interface EntityDeletedEvent {
411
+ /** Entity that was deleted */
412
+ deletedEntityAsJson?: string | null;
413
+ }
414
+ export interface ActionEvent {
415
+ bodyAsJson?: string;
416
+ }
417
+ export interface Empty {
418
+ }
419
+ export interface MessageEnvelope {
420
+ /** App instance ID. */
421
+ instanceId?: string | null;
422
+ /** Event type. */
423
+ eventType?: string;
424
+ /** The identification type and identity data. */
425
+ identity?: IdentificationData;
426
+ /** Stringify payload. */
427
+ data?: string;
428
+ }
429
+ export interface IdentificationData extends IdentificationDataIdOneOf {
430
+ /** ID of a site visitor that has not logged in to the site. */
431
+ anonymousVisitorId?: string;
432
+ /** ID of a site visitor that has logged in to the site. */
433
+ memberId?: string;
434
+ /** ID of a Wix user (site owner, contributor, etc.). */
435
+ wixUserId?: string;
436
+ /** ID of an app. */
437
+ appId?: string;
438
+ /** @readonly */
439
+ identityType?: WebhookIdentityType;
440
+ }
441
+ /** @oneof */
442
+ export interface IdentificationDataIdOneOf {
443
+ /** ID of a site visitor that has not logged in to the site. */
444
+ anonymousVisitorId?: string;
445
+ /** ID of a site visitor that has logged in to the site. */
446
+ memberId?: string;
447
+ /** ID of a Wix user (site owner, contributor, etc.). */
448
+ wixUserId?: string;
449
+ /** ID of an app. */
450
+ appId?: string;
451
+ }
452
+ export declare enum WebhookIdentityType {
453
+ UNKNOWN = "UNKNOWN",
454
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
455
+ MEMBER = "MEMBER",
456
+ WIX_USER = "WIX_USER",
457
+ APP = "APP"
458
+ }
459
+ interface RibbonNonNullableFields {
460
+ name: string;
461
+ }
462
+ export interface CreateRibbonResponseNonNullableFields {
463
+ ribbon?: RibbonNonNullableFields;
464
+ }
465
+ export interface GetRibbonResponseNonNullableFields {
466
+ ribbon?: RibbonNonNullableFields;
467
+ }
468
+ export interface UpdateRibbonResponseNonNullableFields {
469
+ ribbon?: RibbonNonNullableFields;
470
+ }
471
+ export interface QueryRibbonsResponseNonNullableFields {
472
+ ribbons: RibbonNonNullableFields[];
473
+ }
474
+ interface ApplicationErrorNonNullableFields {
475
+ code: string;
476
+ description: string;
477
+ }
478
+ interface ItemMetadataNonNullableFields {
479
+ originalIndex: number;
480
+ success: boolean;
481
+ error?: ApplicationErrorNonNullableFields;
482
+ }
483
+ interface V3BulkRibbonResultNonNullableFields {
484
+ itemMetadata?: ItemMetadataNonNullableFields;
485
+ item?: RibbonNonNullableFields;
486
+ }
487
+ interface BulkActionMetadataNonNullableFields {
488
+ totalSuccesses: number;
489
+ totalFailures: number;
490
+ undetailedFailures: number;
491
+ }
492
+ export interface BulkCreateRibbonsResponseNonNullableFields {
493
+ results: V3BulkRibbonResultNonNullableFields[];
494
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
495
+ }
496
+ export interface BulkUpdateRibbonsResponseNonNullableFields {
497
+ results: V3BulkRibbonResultNonNullableFields[];
498
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
499
+ }
500
+ export interface GetOrCreateRibbonResponseNonNullableFields {
501
+ ribbon?: RibbonNonNullableFields;
502
+ }
503
+ export interface BulkGetOrCreateRibbonsResponseNonNullableFields {
504
+ results: V3BulkRibbonResultNonNullableFields[];
505
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
506
+ }
507
+ interface BulkRibbonResultNonNullableFields {
508
+ itemMetadata?: ItemMetadataNonNullableFields;
509
+ }
510
+ export interface BulkDeleteRibbonsResponseNonNullableFields {
511
+ results: BulkRibbonResultNonNullableFields[];
512
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
513
+ }
514
+ export {};
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebhookIdentityType = exports.SortOrder = exports.RequestedFields = void 0;
4
+ var RequestedFields;
5
+ (function (RequestedFields) {
6
+ RequestedFields["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
7
+ RequestedFields["ASSIGNED_PRODUCT_COUNT"] = "ASSIGNED_PRODUCT_COUNT";
8
+ })(RequestedFields || (exports.RequestedFields = RequestedFields = {}));
9
+ var SortOrder;
10
+ (function (SortOrder) {
11
+ /** Ascending order. */
12
+ SortOrder["ASC"] = "ASC";
13
+ /** Descending order. */
14
+ SortOrder["DESC"] = "DESC";
15
+ })(SortOrder || (exports.SortOrder = SortOrder = {}));
16
+ var WebhookIdentityType;
17
+ (function (WebhookIdentityType) {
18
+ WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
19
+ WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
20
+ WebhookIdentityType["MEMBER"] = "MEMBER";
21
+ WebhookIdentityType["WIX_USER"] = "WIX_USER";
22
+ WebhookIdentityType["APP"] = "APP";
23
+ })(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
24
+ //# sourceMappingURL=stores-catalog-v3-ribbon-ribbons-v-3.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stores-catalog-v3-ribbon-ribbons-v-3.types.js","sourceRoot":"","sources":["../../../../src/stores-catalog-v3-ribbon-ribbons-v-3.types.ts"],"names":[],"mappings":";;;AAyHA,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,sEAAmD,CAAA;IACnD,oEAAiD,CAAA;AACnD,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAyED,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,uBAAuB;IACvB,wBAAW,CAAA;IACX,wBAAwB;IACxB,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AA2SD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}