@wix/auto_sdk_events_categories 1.0.16 → 1.0.18

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 (130) hide show
  1. package/build/events-v1-category-categories.universal-C1gJTmtZ.d.mts +656 -0
  2. package/build/events-v1-category-categories.universal-C1gJTmtZ.d.ts +656 -0
  3. package/build/{cjs/src/events-v1-category-categories.public.d.ts → index.d.mts} +33 -19
  4. package/build/{internal/cjs/src/events-v1-category-categories.public.d.ts → index.d.ts} +33 -19
  5. package/build/index.js +1360 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +1320 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/events-v1-category-categories.universal-C1gJTmtZ.d.mts +656 -0
  10. package/build/internal/events-v1-category-categories.universal-C1gJTmtZ.d.ts +656 -0
  11. package/build/internal/{es/src/events-v1-category-categories.public.d.ts → index.d.mts} +33 -19
  12. package/build/{es/src/events-v1-category-categories.public.d.ts → internal/index.d.ts} +33 -19
  13. package/build/internal/index.js +1360 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +1320 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/{es/src/events-v1-category-categories.types.d.ts → internal/meta.d.mts} +86 -182
  18. package/build/{cjs/src/events-v1-category-categories.types.d.ts → internal/meta.d.ts} +86 -182
  19. package/build/internal/meta.js +1083 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +1044 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/{internal/cjs/src/events-v1-category-categories.types.d.ts → meta.d.mts} +86 -182
  24. package/build/{internal/es/src/events-v1-category-categories.types.d.ts → meta.d.ts} +86 -182
  25. package/build/meta.js +1083 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +1044 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +12 -11
  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/events-v1-category-categories.context.d.ts +0 -17
  40. package/build/cjs/src/events-v1-category-categories.context.js +0 -24
  41. package/build/cjs/src/events-v1-category-categories.context.js.map +0 -1
  42. package/build/cjs/src/events-v1-category-categories.http.d.ts +0 -57
  43. package/build/cjs/src/events-v1-category-categories.http.js +0 -851
  44. package/build/cjs/src/events-v1-category-categories.http.js.map +0 -1
  45. package/build/cjs/src/events-v1-category-categories.meta.d.ts +0 -37
  46. package/build/cjs/src/events-v1-category-categories.meta.js +0 -275
  47. package/build/cjs/src/events-v1-category-categories.meta.js.map +0 -1
  48. package/build/cjs/src/events-v1-category-categories.public.js +0 -89
  49. package/build/cjs/src/events-v1-category-categories.public.js.map +0 -1
  50. package/build/cjs/src/events-v1-category-categories.types.js +0 -33
  51. package/build/cjs/src/events-v1-category-categories.types.js.map +0 -1
  52. package/build/cjs/src/events-v1-category-categories.universal.d.ts +0 -900
  53. package/build/cjs/src/events-v1-category-categories.universal.js +0 -633
  54. package/build/cjs/src/events-v1-category-categories.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/package.json +0 -3
  65. package/build/es/src/events-v1-category-categories.context.d.ts +0 -17
  66. package/build/es/src/events-v1-category-categories.context.js +0 -17
  67. package/build/es/src/events-v1-category-categories.context.js.map +0 -1
  68. package/build/es/src/events-v1-category-categories.http.d.ts +0 -57
  69. package/build/es/src/events-v1-category-categories.http.js +0 -835
  70. package/build/es/src/events-v1-category-categories.http.js.map +0 -1
  71. package/build/es/src/events-v1-category-categories.meta.d.ts +0 -37
  72. package/build/es/src/events-v1-category-categories.meta.js +0 -236
  73. package/build/es/src/events-v1-category-categories.meta.js.map +0 -1
  74. package/build/es/src/events-v1-category-categories.public.js +0 -69
  75. package/build/es/src/events-v1-category-categories.public.js.map +0 -1
  76. package/build/es/src/events-v1-category-categories.types.js +0 -30
  77. package/build/es/src/events-v1-category-categories.types.js.map +0 -1
  78. package/build/es/src/events-v1-category-categories.universal.d.ts +0 -900
  79. package/build/es/src/events-v1-category-categories.universal.js +0 -594
  80. package/build/es/src/events-v1-category-categories.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 -1
  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/events-v1-category-categories.context.d.ts +0 -17
  91. package/build/internal/cjs/src/events-v1-category-categories.context.js +0 -24
  92. package/build/internal/cjs/src/events-v1-category-categories.context.js.map +0 -1
  93. package/build/internal/cjs/src/events-v1-category-categories.http.d.ts +0 -57
  94. package/build/internal/cjs/src/events-v1-category-categories.http.js +0 -851
  95. package/build/internal/cjs/src/events-v1-category-categories.http.js.map +0 -1
  96. package/build/internal/cjs/src/events-v1-category-categories.meta.d.ts +0 -37
  97. package/build/internal/cjs/src/events-v1-category-categories.meta.js +0 -275
  98. package/build/internal/cjs/src/events-v1-category-categories.meta.js.map +0 -1
  99. package/build/internal/cjs/src/events-v1-category-categories.public.js +0 -89
  100. package/build/internal/cjs/src/events-v1-category-categories.public.js.map +0 -1
  101. package/build/internal/cjs/src/events-v1-category-categories.types.js +0 -33
  102. package/build/internal/cjs/src/events-v1-category-categories.types.js.map +0 -1
  103. package/build/internal/cjs/src/events-v1-category-categories.universal.d.ts +0 -900
  104. package/build/internal/cjs/src/events-v1-category-categories.universal.js +0 -633
  105. package/build/internal/cjs/src/events-v1-category-categories.universal.js.map +0 -1
  106. package/build/internal/es/index.d.ts +0 -1
  107. package/build/internal/es/index.js +0 -2
  108. package/build/internal/es/index.js.map +0 -1
  109. package/build/internal/es/index.typings.d.ts +0 -1
  110. package/build/internal/es/index.typings.js +0 -2
  111. package/build/internal/es/index.typings.js.map +0 -1
  112. package/build/internal/es/meta.d.ts +0 -1
  113. package/build/internal/es/meta.js +0 -2
  114. package/build/internal/es/meta.js.map +0 -1
  115. package/build/internal/es/src/events-v1-category-categories.context.d.ts +0 -17
  116. package/build/internal/es/src/events-v1-category-categories.context.js +0 -17
  117. package/build/internal/es/src/events-v1-category-categories.context.js.map +0 -1
  118. package/build/internal/es/src/events-v1-category-categories.http.d.ts +0 -57
  119. package/build/internal/es/src/events-v1-category-categories.http.js +0 -835
  120. package/build/internal/es/src/events-v1-category-categories.http.js.map +0 -1
  121. package/build/internal/es/src/events-v1-category-categories.meta.d.ts +0 -37
  122. package/build/internal/es/src/events-v1-category-categories.meta.js +0 -236
  123. package/build/internal/es/src/events-v1-category-categories.meta.js.map +0 -1
  124. package/build/internal/es/src/events-v1-category-categories.public.js +0 -69
  125. package/build/internal/es/src/events-v1-category-categories.public.js.map +0 -1
  126. package/build/internal/es/src/events-v1-category-categories.types.js +0 -30
  127. package/build/internal/es/src/events-v1-category-categories.types.js.map +0 -1
  128. package/build/internal/es/src/events-v1-category-categories.universal.d.ts +0 -900
  129. package/build/internal/es/src/events-v1-category-categories.universal.js +0 -594
  130. package/build/internal/es/src/events-v1-category-categories.universal.js.map +0 -1
@@ -0,0 +1,656 @@
1
+ interface Category {
2
+ /**
3
+ * Category ID.
4
+ * @format GUID
5
+ * @readonly
6
+ */
7
+ _id?: string;
8
+ /**
9
+ * Category name.
10
+ * @minLength 1
11
+ * @maxLength 30
12
+ */
13
+ name?: string;
14
+ /**
15
+ * Date and time when category was created.
16
+ * @readonly
17
+ */
18
+ _createdDate?: Date | null;
19
+ /**
20
+ * The total number of draft and published events assigned to the category.
21
+ * @readonly
22
+ */
23
+ counts?: CategoryCounts;
24
+ /**
25
+ * Category state. Possible values:
26
+ * - `MANUAL`: Category is created manually by the user.
27
+ * - `AUTO`: Category is created automatically.
28
+ * - `RECURRING_EVENT`: Category is created automatically when publishing recurring events.
29
+ * - `HIDDEN`: Category can't be seen.
30
+ *
31
+ * Default: `MANUAL`.
32
+ *
33
+ * **Note:** The WIX_EVENTS.MANAGE_AUTO_CATEGORIES permission is required to use states other than `MANUAL`.
34
+ * @maxSize 3
35
+ */
36
+ states?: StateWithLiterals[];
37
+ }
38
+ interface CategoryCounts {
39
+ /** Total number of published events assigned to the category. Deleted events are excluded. */
40
+ assignedEventsCount?: number | null;
41
+ /** Total number of draft events assigned to the category. */
42
+ assignedDraftEventsCount?: number | null;
43
+ }
44
+ declare enum State {
45
+ /** Created manually by the user. */
46
+ MANUAL = "MANUAL",
47
+ /** Created automatically. */
48
+ AUTO = "AUTO",
49
+ /** Created when publishing recurring events. */
50
+ RECURRING_EVENT = "RECURRING_EVENT",
51
+ /** Category is hidden. */
52
+ HIDDEN = "HIDDEN"
53
+ }
54
+ /** @enumType */
55
+ type StateWithLiterals = State | 'MANUAL' | 'AUTO' | 'RECURRING_EVENT' | 'HIDDEN';
56
+ interface CreateCategoryRequest {
57
+ /** Category to create. */
58
+ category: Category;
59
+ }
60
+ interface CreateCategoryResponse {
61
+ /** Created category. */
62
+ category?: Category;
63
+ }
64
+ interface BulkCreateCategoryRequest {
65
+ /**
66
+ * Categories to create.
67
+ * @minSize 1
68
+ * @maxSize 10
69
+ */
70
+ categories: Category[];
71
+ }
72
+ interface BulkCreateCategoryResponse {
73
+ /** Bulk create results. */
74
+ results?: BulkCategoryResult[];
75
+ /** Metadata of results. */
76
+ bulkActionMetadata?: BulkActionMetadata;
77
+ }
78
+ interface BulkCategoryResult {
79
+ /** Metadata. */
80
+ itemMetadata?: ItemMetadata;
81
+ /** Created categories. */
82
+ item?: Category;
83
+ }
84
+ interface ItemMetadata {
85
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
86
+ _id?: string | null;
87
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
88
+ originalIndex?: number;
89
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
90
+ success?: boolean;
91
+ /** Details about the error in case of failure. */
92
+ error?: ApplicationError;
93
+ }
94
+ interface ApplicationError {
95
+ /** Error code. */
96
+ code?: string;
97
+ /** Description of the error. */
98
+ description?: string;
99
+ /** Data related to the error. */
100
+ data?: Record<string, any> | null;
101
+ }
102
+ interface BulkActionMetadata {
103
+ /** Number of items that were successfully processed. */
104
+ totalSuccesses?: number;
105
+ /** Number of items that couldn't be processed. */
106
+ totalFailures?: number;
107
+ /** Number of failures without details due to exceeding the threshold for detailed failures. */
108
+ undetailedFailures?: number;
109
+ }
110
+ interface UpdateCategoryRequest {
111
+ /** Category to update. */
112
+ category: Category;
113
+ }
114
+ interface UpdateCategoryResponse {
115
+ /** Updated category. */
116
+ category?: Category;
117
+ }
118
+ interface DeleteCategoryRequest {
119
+ /**
120
+ * ID of category to be deleted.
121
+ * @format GUID
122
+ */
123
+ categoryId: string;
124
+ }
125
+ interface DeleteCategoryResponse {
126
+ }
127
+ interface QueryCategoriesRequest {
128
+ /** Options to use when querying categories. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more details. */
129
+ query: QueryV2;
130
+ /**
131
+ * Predefined sets of fields to return.
132
+ * - `COUNTS`: Returns `assignedEventsCount`.
133
+ * @maxSize 1
134
+ */
135
+ fieldset?: CategoryFieldsetWithLiterals[];
136
+ }
137
+ interface QueryV2 extends QueryV2PagingMethodOneOf {
138
+ /**
139
+ * Pointer to page of results using offset.
140
+ * See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination).
141
+ */
142
+ paging?: Paging;
143
+ /** Filter. See [supported fields and operators](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events). */
144
+ filter?: Record<string, any> | null;
145
+ /**
146
+ * Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]
147
+ * See [supported fields](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events).
148
+ * @maxSize 20
149
+ */
150
+ sort?: Sorting[];
151
+ }
152
+ /** @oneof */
153
+ interface QueryV2PagingMethodOneOf {
154
+ /**
155
+ * Pointer to page of results using offset.
156
+ * See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination).
157
+ */
158
+ paging?: Paging;
159
+ }
160
+ interface Sorting {
161
+ /**
162
+ * Name of the field to sort by
163
+ * @maxLength 100
164
+ */
165
+ fieldName?: string;
166
+ /** Sort order (ASC/DESC). Defaults to ASC */
167
+ order?: SortOrderWithLiterals;
168
+ }
169
+ declare enum SortOrder {
170
+ ASC = "ASC",
171
+ DESC = "DESC"
172
+ }
173
+ /** @enumType */
174
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
175
+ interface Paging {
176
+ /**
177
+ * Number of items to load per page.
178
+ * @max 1000
179
+ */
180
+ limit?: number | null;
181
+ /** Number of items to skip in the current sort order. */
182
+ offset?: number | null;
183
+ }
184
+ declare enum CategoryFieldset {
185
+ /** Include `assignedEventsCount` in the response. */
186
+ COUNTS = "COUNTS"
187
+ }
188
+ /** @enumType */
189
+ type CategoryFieldsetWithLiterals = CategoryFieldset | 'COUNTS';
190
+ interface QueryCategoriesResponse {
191
+ /** List of categories. */
192
+ categories?: Category[];
193
+ /** Metadata for the paginated results. */
194
+ metaData?: PagingMetadataV2;
195
+ }
196
+ interface PagingMetadataV2 {
197
+ /** Number of items returned in the response. */
198
+ count?: number | null;
199
+ /** Offset that was requested. */
200
+ offset?: number | null;
201
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
202
+ total?: number | null;
203
+ /** Flag that indicates the server failed to calculate the `total` field. */
204
+ tooManyToCount?: boolean | null;
205
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
206
+ cursors?: Cursors;
207
+ }
208
+ interface Cursors {
209
+ /**
210
+ * Cursor string pointing to the next page in the list of results.
211
+ * @maxLength 16000
212
+ */
213
+ next?: string | null;
214
+ /**
215
+ * Cursor pointing to the previous page in the list of results.
216
+ * @maxLength 16000
217
+ */
218
+ prev?: string | null;
219
+ }
220
+ interface AssignEventsRequest {
221
+ /**
222
+ * ID of category to which events should be assigned.
223
+ * @format GUID
224
+ */
225
+ categoryId: string;
226
+ /**
227
+ * A list of events IDs.
228
+ * @format GUID
229
+ * @minSize 1
230
+ * @maxSize 100
231
+ */
232
+ eventId: string[];
233
+ }
234
+ interface AssignEventsResponse {
235
+ }
236
+ interface BulkAssignEventsRequest {
237
+ /**
238
+ * A list of category IDs to which events should be assigned.
239
+ * @format GUID
240
+ * @minSize 1
241
+ * @maxSize 10
242
+ */
243
+ categoryId: string[];
244
+ /**
245
+ * A list of events IDs.
246
+ * @format GUID
247
+ * @minSize 1
248
+ * @maxSize 1
249
+ */
250
+ eventId: string[];
251
+ }
252
+ interface BulkAssignEventsResponse {
253
+ /** Bulk assign results. */
254
+ results?: BulkCategoryResult[];
255
+ /** Metadata of results. */
256
+ bulkActionMetadata?: BulkActionMetadata;
257
+ }
258
+ interface BulkAssignEventsAsyncRequest {
259
+ /**
260
+ * Category IDs.
261
+ * @format GUID
262
+ * @minSize 1
263
+ * @maxSize 10
264
+ */
265
+ categoryId: string[];
266
+ /**
267
+ * Criteria that must be met for an event to be considered for the bulk assign. Supported filters for this API:
268
+ * - `_id`: [`eq()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/eq)
269
+ * - `name`: [`eq()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/eq)
270
+ */
271
+ filter: Record<string, any> | null;
272
+ }
273
+ interface BulkAssignEventsAsyncResponse {
274
+ }
275
+ interface UnassignEventsRequest {
276
+ /**
277
+ * Category ID.
278
+ * @format GUID
279
+ */
280
+ categoryId: string;
281
+ /**
282
+ * A list of events IDs.
283
+ * @format GUID
284
+ * @minSize 1
285
+ * @maxSize 100
286
+ */
287
+ eventId: string[];
288
+ }
289
+ interface UnassignEventsResponse {
290
+ }
291
+ interface BulkUnassignEventsRequest {
292
+ /**
293
+ * A list of category IDs.
294
+ * @format GUID
295
+ * @minSize 1
296
+ * @maxSize 10
297
+ */
298
+ categoryId: string[];
299
+ /**
300
+ * A list of events IDs.
301
+ * @format GUID
302
+ * @minSize 1
303
+ * @maxSize 1
304
+ */
305
+ eventId?: string[];
306
+ }
307
+ interface BulkUnassignEventsResponse {
308
+ /** Results. */
309
+ results?: BulkCategoryResult[];
310
+ /** Metadata of results. */
311
+ bulkActionMetadata?: BulkActionMetadata;
312
+ }
313
+ interface BulkUnassignEventsAsyncRequest {
314
+ /**
315
+ * Category ID.
316
+ * @format GUID
317
+ * @minSize 1
318
+ * @maxSize 10
319
+ */
320
+ categoryId: string[];
321
+ /**
322
+ * Criteria that must be met for an event to be considered for the bulk assign. Supported filters for this API:
323
+ * - `_id`: [`eq()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/eq)
324
+ * - `name`: [`eq()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/eq)
325
+ */
326
+ filter: Record<string, any> | null;
327
+ }
328
+ interface BulkUnassignEventsAsyncResponse {
329
+ }
330
+ interface ListEventCategoriesRequest {
331
+ /**
332
+ * Event ID.
333
+ * @format GUID
334
+ */
335
+ eventId: string;
336
+ }
337
+ interface ListEventCategoriesResponse {
338
+ /** A list of categories. */
339
+ categories?: Category[];
340
+ }
341
+ interface ReorderCategoryEventsRequest extends ReorderCategoryEventsRequestReferenceEventOneOf {
342
+ /**
343
+ * Move the event before defined `eventId`.
344
+ * @format GUID
345
+ */
346
+ beforeEventId?: string;
347
+ /**
348
+ * Move the event after defined `eventId`.
349
+ * @format GUID
350
+ */
351
+ afterEventId?: string;
352
+ /**
353
+ * Category ID.
354
+ * @format GUID
355
+ */
356
+ categoryId: string;
357
+ /**
358
+ * Event ID.
359
+ * @format GUID
360
+ */
361
+ eventId?: string;
362
+ }
363
+ /** @oneof */
364
+ interface ReorderCategoryEventsRequestReferenceEventOneOf {
365
+ /**
366
+ * Move the event before defined `eventId`.
367
+ * @format GUID
368
+ */
369
+ beforeEventId?: string;
370
+ /**
371
+ * Move the event after defined `eventId`.
372
+ * @format GUID
373
+ */
374
+ afterEventId?: string;
375
+ }
376
+ interface ReorderCategoryEventsResponse {
377
+ }
378
+ interface DomainEvent extends DomainEventBodyOneOf {
379
+ createdEvent?: EntityCreatedEvent;
380
+ updatedEvent?: EntityUpdatedEvent;
381
+ deletedEvent?: EntityDeletedEvent;
382
+ actionEvent?: ActionEvent;
383
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
384
+ _id?: string;
385
+ /**
386
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
387
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
388
+ */
389
+ entityFqdn?: string;
390
+ /**
391
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
392
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
393
+ */
394
+ slug?: string;
395
+ /** ID of the entity associated with the event. */
396
+ entityId?: string;
397
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
398
+ eventTime?: Date | null;
399
+ /**
400
+ * Whether the event was triggered as a result of a privacy regulation application
401
+ * (for example, GDPR).
402
+ */
403
+ triggeredByAnonymizeRequest?: boolean | null;
404
+ /** If present, indicates the action that triggered the event. */
405
+ originatedFrom?: string | null;
406
+ /**
407
+ * 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.
408
+ * 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.
409
+ */
410
+ entityEventSequence?: string | null;
411
+ }
412
+ /** @oneof */
413
+ interface DomainEventBodyOneOf {
414
+ createdEvent?: EntityCreatedEvent;
415
+ updatedEvent?: EntityUpdatedEvent;
416
+ deletedEvent?: EntityDeletedEvent;
417
+ actionEvent?: ActionEvent;
418
+ }
419
+ interface EntityCreatedEvent {
420
+ entity?: string;
421
+ }
422
+ interface RestoreInfo {
423
+ deletedDate?: Date | null;
424
+ }
425
+ interface EntityUpdatedEvent {
426
+ /**
427
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
428
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
429
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
430
+ */
431
+ currentEntity?: string;
432
+ }
433
+ interface EntityDeletedEvent {
434
+ /** Entity that was deleted. */
435
+ deletedEntity?: string | null;
436
+ }
437
+ interface ActionEvent {
438
+ body?: string;
439
+ }
440
+ interface MessageEnvelope {
441
+ /**
442
+ * App instance ID.
443
+ * @format GUID
444
+ */
445
+ instanceId?: string | null;
446
+ /**
447
+ * Event type.
448
+ * @maxLength 150
449
+ */
450
+ eventType?: string;
451
+ /** The identification type and identity data. */
452
+ identity?: IdentificationData;
453
+ /** Stringify payload. */
454
+ data?: string;
455
+ }
456
+ interface IdentificationData extends IdentificationDataIdOneOf {
457
+ /**
458
+ * ID of a site visitor that has not logged in to the site.
459
+ * @format GUID
460
+ */
461
+ anonymousVisitorId?: string;
462
+ /**
463
+ * ID of a site visitor that has logged in to the site.
464
+ * @format GUID
465
+ */
466
+ memberId?: string;
467
+ /**
468
+ * ID of a Wix user (site owner, contributor, etc.).
469
+ * @format GUID
470
+ */
471
+ wixUserId?: string;
472
+ /**
473
+ * ID of an app.
474
+ * @format GUID
475
+ */
476
+ appId?: string;
477
+ /** @readonly */
478
+ identityType?: WebhookIdentityTypeWithLiterals;
479
+ }
480
+ /** @oneof */
481
+ interface IdentificationDataIdOneOf {
482
+ /**
483
+ * ID of a site visitor that has not logged in to the site.
484
+ * @format GUID
485
+ */
486
+ anonymousVisitorId?: string;
487
+ /**
488
+ * ID of a site visitor that has logged in to the site.
489
+ * @format GUID
490
+ */
491
+ memberId?: string;
492
+ /**
493
+ * ID of a Wix user (site owner, contributor, etc.).
494
+ * @format GUID
495
+ */
496
+ wixUserId?: string;
497
+ /**
498
+ * ID of an app.
499
+ * @format GUID
500
+ */
501
+ appId?: string;
502
+ }
503
+ declare enum WebhookIdentityType {
504
+ UNKNOWN = "UNKNOWN",
505
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
506
+ MEMBER = "MEMBER",
507
+ WIX_USER = "WIX_USER",
508
+ APP = "APP"
509
+ }
510
+ /** @enumType */
511
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
512
+ interface UpdateCategory {
513
+ /**
514
+ * Category ID.
515
+ * @format GUID
516
+ * @readonly
517
+ */
518
+ _id?: string;
519
+ /**
520
+ * Category name.
521
+ * @minLength 1
522
+ * @maxLength 30
523
+ */
524
+ name?: string;
525
+ /**
526
+ * Date and time when category was created.
527
+ * @readonly
528
+ */
529
+ _createdDate?: Date | null;
530
+ /**
531
+ * The total number of draft and published events assigned to the category.
532
+ * @readonly
533
+ */
534
+ counts?: CategoryCounts;
535
+ /**
536
+ * Category state. Possible values:
537
+ * - `MANUAL`: Category is created manually by the user.
538
+ * - `AUTO`: Category is created automatically.
539
+ * - `RECURRING_EVENT`: Category is created automatically when publishing recurring events.
540
+ * - `HIDDEN`: Category can't be seen.
541
+ *
542
+ * Default: `MANUAL`.
543
+ *
544
+ * **Note:** The WIX_EVENTS.MANAGE_AUTO_CATEGORIES permission is required to use states other than `MANUAL`.
545
+ * @maxSize 3
546
+ */
547
+ states?: StateWithLiterals[];
548
+ }
549
+ interface QueryCategoriesOptions {
550
+ /**
551
+ * Predefined sets of fields to return.
552
+ * - `COUNTS`: Returns `assignedEventsCount`.
553
+ * @maxSize 1
554
+ */
555
+ fieldset?: CategoryFieldsetWithLiterals[] | undefined;
556
+ }
557
+ interface QueryOffsetResult {
558
+ currentPage: number | undefined;
559
+ totalPages: number | undefined;
560
+ totalCount: number | undefined;
561
+ hasNext: () => boolean;
562
+ hasPrev: () => boolean;
563
+ length: number;
564
+ pageSize: number;
565
+ }
566
+ interface CategoriesQueryResult extends QueryOffsetResult {
567
+ items: Category[];
568
+ query: CategoriesQueryBuilder;
569
+ next: () => Promise<CategoriesQueryResult>;
570
+ prev: () => Promise<CategoriesQueryResult>;
571
+ }
572
+ interface CategoriesQueryBuilder {
573
+ /** @param propertyName - Property whose value is compared with `value`.
574
+ * @param value - Value to compare against.
575
+ */
576
+ eq: (propertyName: '_id' | 'name', value: any) => CategoriesQueryBuilder;
577
+ /** @param propertyName - Property whose value is compared with `values`.
578
+ * @param values - List of values to compare against.
579
+ */
580
+ hasSome: (propertyName: string, value: any[]) => CategoriesQueryBuilder;
581
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
582
+ ascending: (...propertyNames: Array<'_createdDate'>) => CategoriesQueryBuilder;
583
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
584
+ descending: (...propertyNames: Array<'_createdDate'>) => CategoriesQueryBuilder;
585
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
586
+ limit: (limit: number) => CategoriesQueryBuilder;
587
+ /** @param skip - Number of items to skip in the query results before returning the results. */
588
+ skip: (skip: number) => CategoriesQueryBuilder;
589
+ find: () => Promise<CategoriesQueryResult>;
590
+ }
591
+ interface BulkAssignEventsOptions {
592
+ /**
593
+ * A list of events IDs.
594
+ * @format GUID
595
+ * @minSize 1
596
+ * @maxSize 1
597
+ */
598
+ eventId: string[];
599
+ }
600
+ interface BulkAssignEventsAsyncOptions {
601
+ /**
602
+ * Criteria that must be met for an event to be considered for the bulk assign. Supported filters for this API:
603
+ * - `_id`: [`eq()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/eq)
604
+ * - `name`: [`eq()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/eq)
605
+ */
606
+ filter: Record<string, any> | null;
607
+ }
608
+ interface BulkUnassignEventsOptions {
609
+ /**
610
+ * A list of events IDs.
611
+ * @format GUID
612
+ * @minSize 1
613
+ * @maxSize 1
614
+ */
615
+ eventId?: string[];
616
+ }
617
+ interface BulkUnassignEventsAsyncOptions {
618
+ /**
619
+ * Criteria that must be met for an event to be considered for the bulk assign. Supported filters for this API:
620
+ * - `_id`: [`eq()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/eq)
621
+ * - `name`: [`eq()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/eq)
622
+ */
623
+ filter: Record<string, any> | null;
624
+ }
625
+ interface ReorderCategoryEventsOptions extends ReorderCategoryEventsOptionsReferenceEventOneOf {
626
+ /**
627
+ * Event ID.
628
+ * @format GUID
629
+ */
630
+ eventId?: string;
631
+ /**
632
+ * Move the event before defined `eventId`.
633
+ * @format GUID
634
+ */
635
+ beforeEventId?: string;
636
+ /**
637
+ * Move the event after defined `eventId`.
638
+ * @format GUID
639
+ */
640
+ afterEventId?: string;
641
+ }
642
+ /** @oneof */
643
+ interface ReorderCategoryEventsOptionsReferenceEventOneOf {
644
+ /**
645
+ * Move the event before defined `eventId`.
646
+ * @format GUID
647
+ */
648
+ beforeEventId?: string;
649
+ /**
650
+ * Move the event after defined `eventId`.
651
+ * @format GUID
652
+ */
653
+ afterEventId?: string;
654
+ }
655
+
656
+ export { type EntityCreatedEvent as $, type ApplicationError as A, type BulkCreateCategoryResponse as B, type Category as C, type DeleteCategoryRequest as D, type AssignEventsResponse as E, type BulkAssignEventsRequest as F, type BulkAssignEventsAsyncRequest as G, type BulkAssignEventsAsyncResponse as H, type ItemMetadata as I, type UnassignEventsRequest as J, type UnassignEventsResponse as K, type ListEventCategoriesResponse as L, type BulkUnassignEventsRequest as M, type BulkUnassignEventsAsyncRequest as N, type BulkUnassignEventsAsyncResponse as O, type Paging as P, type QueryCategoriesOptions as Q, type ReorderCategoryEventsOptions as R, State as S, type ListEventCategoriesRequest as T, type UpdateCategory as U, type ReorderCategoryEventsRequest as V, WebhookIdentityType as W, type ReorderCategoryEventsRequestReferenceEventOneOf as X, type ReorderCategoryEventsResponse as Y, type DomainEvent as Z, type DomainEventBodyOneOf as _, type CategoriesQueryBuilder as a, type RestoreInfo as a0, type EntityUpdatedEvent as a1, type EntityDeletedEvent as a2, type ActionEvent as a3, type MessageEnvelope as a4, type IdentificationData as a5, type IdentificationDataIdOneOf as a6, type CategoriesQueryResult as a7, type ReorderCategoryEventsOptionsReferenceEventOneOf as a8, type BulkAssignEventsOptions as b, type BulkAssignEventsResponse as c, type BulkAssignEventsAsyncOptions as d, type BulkUnassignEventsOptions as e, type BulkUnassignEventsResponse as f, type BulkUnassignEventsAsyncOptions as g, SortOrder as h, CategoryFieldset as i, type CategoryCounts as j, type CreateCategoryRequest as k, type CreateCategoryResponse as l, type BulkCreateCategoryRequest as m, type BulkCategoryResult as n, type BulkActionMetadata as o, type UpdateCategoryRequest as p, type UpdateCategoryResponse as q, type DeleteCategoryResponse as r, type QueryCategoriesRequest as s, type QueryV2 as t, type QueryV2PagingMethodOneOf as u, type Sorting as v, type QueryCategoriesResponse as w, type PagingMetadataV2 as x, type Cursors as y, type AssignEventsRequest as z };