@wix/auto_sdk_events_categories 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.
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/events-v1-category-categories.context.d.ts +17 -0
- package/build/cjs/src/events-v1-category-categories.context.js +24 -0
- package/build/cjs/src/events-v1-category-categories.context.js.map +1 -0
- package/build/cjs/src/events-v1-category-categories.http.d.ts +57 -0
- package/build/cjs/src/events-v1-category-categories.http.js +851 -0
- package/build/cjs/src/events-v1-category-categories.http.js.map +1 -0
- package/build/cjs/src/events-v1-category-categories.meta.d.ts +37 -0
- package/build/cjs/src/events-v1-category-categories.meta.js +275 -0
- package/build/cjs/src/events-v1-category-categories.meta.js.map +1 -0
- package/build/cjs/src/events-v1-category-categories.public.d.ts +141 -0
- package/build/cjs/src/events-v1-category-categories.public.js +89 -0
- package/build/cjs/src/events-v1-category-categories.public.js.map +1 -0
- package/build/cjs/src/events-v1-category-categories.types.d.ts +430 -0
- package/build/cjs/src/events-v1-category-categories.types.js +33 -0
- package/build/cjs/src/events-v1-category-categories.types.js.map +1 -0
- package/build/cjs/src/events-v1-category-categories.universal.d.ts +748 -0
- package/build/cjs/src/events-v1-category-categories.universal.js +605 -0
- package/build/cjs/src/events-v1-category-categories.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/events-v1-category-categories.context.d.ts +17 -0
- package/build/es/src/events-v1-category-categories.context.js +17 -0
- package/build/es/src/events-v1-category-categories.context.js.map +1 -0
- package/build/es/src/events-v1-category-categories.http.d.ts +57 -0
- package/build/es/src/events-v1-category-categories.http.js +835 -0
- package/build/es/src/events-v1-category-categories.http.js.map +1 -0
- package/build/es/src/events-v1-category-categories.meta.d.ts +37 -0
- package/build/es/src/events-v1-category-categories.meta.js +236 -0
- package/build/es/src/events-v1-category-categories.meta.js.map +1 -0
- package/build/es/src/events-v1-category-categories.public.d.ts +141 -0
- package/build/es/src/events-v1-category-categories.public.js +69 -0
- package/build/es/src/events-v1-category-categories.public.js.map +1 -0
- package/build/es/src/events-v1-category-categories.types.d.ts +430 -0
- package/build/es/src/events-v1-category-categories.types.js +30 -0
- package/build/es/src/events-v1-category-categories.types.js.map +1 -0
- package/build/es/src/events-v1-category-categories.universal.d.ts +748 -0
- package/build/es/src/events-v1-category-categories.universal.js +566 -0
- package/build/es/src/events-v1-category-categories.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/events-v1-category-categories.context.d.ts +17 -0
- package/build/internal/cjs/src/events-v1-category-categories.context.js +24 -0
- package/build/internal/cjs/src/events-v1-category-categories.context.js.map +1 -0
- package/build/internal/cjs/src/events-v1-category-categories.http.d.ts +57 -0
- package/build/internal/cjs/src/events-v1-category-categories.http.js +851 -0
- package/build/internal/cjs/src/events-v1-category-categories.http.js.map +1 -0
- package/build/internal/cjs/src/events-v1-category-categories.meta.d.ts +37 -0
- package/build/internal/cjs/src/events-v1-category-categories.meta.js +275 -0
- package/build/internal/cjs/src/events-v1-category-categories.meta.js.map +1 -0
- package/build/internal/cjs/src/events-v1-category-categories.public.d.ts +141 -0
- package/build/internal/cjs/src/events-v1-category-categories.public.js +89 -0
- package/build/internal/cjs/src/events-v1-category-categories.public.js.map +1 -0
- package/build/internal/cjs/src/events-v1-category-categories.types.d.ts +430 -0
- package/build/internal/cjs/src/events-v1-category-categories.types.js +33 -0
- package/build/internal/cjs/src/events-v1-category-categories.types.js.map +1 -0
- package/build/internal/cjs/src/events-v1-category-categories.universal.d.ts +748 -0
- package/build/internal/cjs/src/events-v1-category-categories.universal.js +605 -0
- package/build/internal/cjs/src/events-v1-category-categories.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/events-v1-category-categories.context.d.ts +17 -0
- package/build/internal/es/src/events-v1-category-categories.context.js +17 -0
- package/build/internal/es/src/events-v1-category-categories.context.js.map +1 -0
- package/build/internal/es/src/events-v1-category-categories.http.d.ts +57 -0
- package/build/internal/es/src/events-v1-category-categories.http.js +835 -0
- package/build/internal/es/src/events-v1-category-categories.http.js.map +1 -0
- package/build/internal/es/src/events-v1-category-categories.meta.d.ts +37 -0
- package/build/internal/es/src/events-v1-category-categories.meta.js +236 -0
- package/build/internal/es/src/events-v1-category-categories.meta.js.map +1 -0
- package/build/internal/es/src/events-v1-category-categories.public.d.ts +141 -0
- package/build/internal/es/src/events-v1-category-categories.public.js +69 -0
- package/build/internal/es/src/events-v1-category-categories.public.js.map +1 -0
- package/build/internal/es/src/events-v1-category-categories.types.d.ts +430 -0
- package/build/internal/es/src/events-v1-category-categories.types.js +30 -0
- package/build/internal/es/src/events-v1-category-categories.types.js.map +1 -0
- package/build/internal/es/src/events-v1-category-categories.universal.d.ts +748 -0
- package/build/internal/es/src/events-v1-category-categories.universal.js +566 -0
- package/build/internal/es/src/events-v1-category-categories.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
export interface Category {
|
|
2
|
+
/**
|
|
3
|
+
* Category ID.
|
|
4
|
+
* @readonly
|
|
5
|
+
*/
|
|
6
|
+
id?: string;
|
|
7
|
+
/** Category name. */
|
|
8
|
+
name?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Date and time when category was created.
|
|
11
|
+
* @readonly
|
|
12
|
+
*/
|
|
13
|
+
createdDate?: Date | null;
|
|
14
|
+
/**
|
|
15
|
+
* The total number of draft and published events assigned to the category.
|
|
16
|
+
* @readonly
|
|
17
|
+
*/
|
|
18
|
+
counts?: CategoryCounts;
|
|
19
|
+
/**
|
|
20
|
+
* Category state. Possible values:
|
|
21
|
+
*
|
|
22
|
+
* `MANUAL`: Category is created manually by the user.
|
|
23
|
+
* `AUTO`: Category is created automatically.
|
|
24
|
+
* `RECURRING_EVENT`: Category is created automatically when publishing recurring events.
|
|
25
|
+
* `HIDDEN`: Category can't be seen.
|
|
26
|
+
*
|
|
27
|
+
* Default: `MANUAL`.
|
|
28
|
+
*
|
|
29
|
+
* **Note:** The WIX_EVENTS.MANAGE_AUTO_CATEGORIES permission scope is required to use states other than `MANUAL`.
|
|
30
|
+
*/
|
|
31
|
+
states?: State[];
|
|
32
|
+
}
|
|
33
|
+
export interface CategoryCounts {
|
|
34
|
+
/** Total number of draft events assigned to the category. */
|
|
35
|
+
assignedEventsCount?: number | null;
|
|
36
|
+
/** Total number of published events assigned to the category. Deleted events are excluded. */
|
|
37
|
+
assignedDraftEventsCount?: number | null;
|
|
38
|
+
}
|
|
39
|
+
export declare enum State {
|
|
40
|
+
/** Created manually by the user. */
|
|
41
|
+
MANUAL = "MANUAL",
|
|
42
|
+
/** Created automatically. */
|
|
43
|
+
AUTO = "AUTO",
|
|
44
|
+
/** Created when publishing recurring events. */
|
|
45
|
+
RECURRING_EVENT = "RECURRING_EVENT",
|
|
46
|
+
/** Category is hidden. */
|
|
47
|
+
HIDDEN = "HIDDEN"
|
|
48
|
+
}
|
|
49
|
+
export interface CreateCategoryRequest {
|
|
50
|
+
/** Category to create. */
|
|
51
|
+
category: Category;
|
|
52
|
+
}
|
|
53
|
+
export interface CreateCategoryResponse {
|
|
54
|
+
/** Created category. */
|
|
55
|
+
category?: Category;
|
|
56
|
+
}
|
|
57
|
+
export interface BulkCreateCategoryRequest {
|
|
58
|
+
/** Categories to create. */
|
|
59
|
+
categories: Category[];
|
|
60
|
+
}
|
|
61
|
+
export interface BulkCreateCategoryResponse {
|
|
62
|
+
/** Bulk create results. */
|
|
63
|
+
results?: BulkCategoryResult[];
|
|
64
|
+
/** Metadata of results. */
|
|
65
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
66
|
+
}
|
|
67
|
+
export interface BulkCategoryResult {
|
|
68
|
+
/** Metadata. */
|
|
69
|
+
itemMetadata?: ItemMetadata;
|
|
70
|
+
/** Category. */
|
|
71
|
+
item?: Category;
|
|
72
|
+
}
|
|
73
|
+
export interface ItemMetadata {
|
|
74
|
+
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
75
|
+
id?: string | null;
|
|
76
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
77
|
+
originalIndex?: number;
|
|
78
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
79
|
+
success?: boolean;
|
|
80
|
+
/** Details about the error in case of failure. */
|
|
81
|
+
error?: ApplicationError;
|
|
82
|
+
}
|
|
83
|
+
export interface ApplicationError {
|
|
84
|
+
/** Error code. */
|
|
85
|
+
code?: string;
|
|
86
|
+
/** Description of the error. */
|
|
87
|
+
description?: string;
|
|
88
|
+
/** Data related to the error. */
|
|
89
|
+
data?: Record<string, any> | null;
|
|
90
|
+
}
|
|
91
|
+
export interface BulkActionMetadata {
|
|
92
|
+
/** Number of items that were successfully processed. */
|
|
93
|
+
totalSuccesses?: number;
|
|
94
|
+
/** Number of items that couldn't be processed. */
|
|
95
|
+
totalFailures?: number;
|
|
96
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
97
|
+
undetailedFailures?: number;
|
|
98
|
+
}
|
|
99
|
+
export interface UpdateCategoryRequest {
|
|
100
|
+
/** Category to update. */
|
|
101
|
+
category: Category;
|
|
102
|
+
}
|
|
103
|
+
export interface UpdateCategoryResponse {
|
|
104
|
+
/** Updated category. */
|
|
105
|
+
category?: Category;
|
|
106
|
+
}
|
|
107
|
+
export interface DeleteCategoryRequest {
|
|
108
|
+
/** ID of category to be deleted. */
|
|
109
|
+
categoryId: string;
|
|
110
|
+
}
|
|
111
|
+
export interface DeleteCategoryResponse {
|
|
112
|
+
}
|
|
113
|
+
export interface QueryCategoriesRequest {
|
|
114
|
+
/** Options to use when querying categories. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more details. */
|
|
115
|
+
query: QueryV2;
|
|
116
|
+
/**
|
|
117
|
+
* Predefined sets of fields to return.
|
|
118
|
+
* - `COUNTS`: Returns `assignedEventsCount`.
|
|
119
|
+
*/
|
|
120
|
+
fieldset?: CategoryFieldset[];
|
|
121
|
+
}
|
|
122
|
+
export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
123
|
+
/**
|
|
124
|
+
* Pointer to page of results using offset.
|
|
125
|
+
* See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination).
|
|
126
|
+
*/
|
|
127
|
+
paging?: Paging;
|
|
128
|
+
/** 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). */
|
|
129
|
+
filter?: Record<string, any> | null;
|
|
130
|
+
/**
|
|
131
|
+
* Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]
|
|
132
|
+
* 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).
|
|
133
|
+
*/
|
|
134
|
+
sort?: Sorting[];
|
|
135
|
+
}
|
|
136
|
+
/** @oneof */
|
|
137
|
+
export interface 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
|
+
}
|
|
144
|
+
export interface Sorting {
|
|
145
|
+
/** Name of the field to sort by */
|
|
146
|
+
fieldName?: string;
|
|
147
|
+
/** Sort order (ASC/DESC). Defaults to ASC */
|
|
148
|
+
order?: SortOrder;
|
|
149
|
+
}
|
|
150
|
+
export declare enum SortOrder {
|
|
151
|
+
ASC = "ASC",
|
|
152
|
+
DESC = "DESC"
|
|
153
|
+
}
|
|
154
|
+
export interface Paging {
|
|
155
|
+
/** Number of items to load per page. */
|
|
156
|
+
limit?: number | null;
|
|
157
|
+
/** Number of items to skip in the current sort order. */
|
|
158
|
+
offset?: number | null;
|
|
159
|
+
}
|
|
160
|
+
export declare enum CategoryFieldset {
|
|
161
|
+
/** Include `assignedEventsCount` in the response. */
|
|
162
|
+
COUNTS = "COUNTS"
|
|
163
|
+
}
|
|
164
|
+
export interface QueryCategoriesResponse {
|
|
165
|
+
/** List of categories. */
|
|
166
|
+
categories?: Category[];
|
|
167
|
+
/** Metadata for the paginated results. */
|
|
168
|
+
metaData?: PagingMetadataV2;
|
|
169
|
+
}
|
|
170
|
+
export interface PagingMetadataV2 {
|
|
171
|
+
/** Number of items returned in the response. */
|
|
172
|
+
count?: number | null;
|
|
173
|
+
/** Offset that was requested. */
|
|
174
|
+
offset?: number | null;
|
|
175
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
176
|
+
total?: number | null;
|
|
177
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
178
|
+
tooManyToCount?: boolean | null;
|
|
179
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
180
|
+
cursors?: Cursors;
|
|
181
|
+
}
|
|
182
|
+
export interface Cursors {
|
|
183
|
+
/** Cursor string pointing to the next page in the list of results. */
|
|
184
|
+
next?: string | null;
|
|
185
|
+
/** Cursor pointing to the previous page in the list of results. */
|
|
186
|
+
prev?: string | null;
|
|
187
|
+
}
|
|
188
|
+
export interface AssignEventsRequest {
|
|
189
|
+
/** ID of category to which events should be assigned. */
|
|
190
|
+
categoryId: string;
|
|
191
|
+
/** A list of events IDs. */
|
|
192
|
+
eventId: string[];
|
|
193
|
+
}
|
|
194
|
+
export interface AssignEventsResponse {
|
|
195
|
+
}
|
|
196
|
+
export interface BulkAssignEventsRequest {
|
|
197
|
+
/** A list of category IDs to which events should be assigned. */
|
|
198
|
+
categoryId: string[];
|
|
199
|
+
/** A list of events IDs. */
|
|
200
|
+
eventId: string[];
|
|
201
|
+
}
|
|
202
|
+
export interface BulkAssignEventsResponse {
|
|
203
|
+
/** Bulk assign results. */
|
|
204
|
+
results?: BulkCategoryResult[];
|
|
205
|
+
/** Metadata of results. */
|
|
206
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
207
|
+
}
|
|
208
|
+
export interface BulkAssignEventsAsyncRequest {
|
|
209
|
+
/** Category IDs. */
|
|
210
|
+
categoryId: string[];
|
|
211
|
+
/** 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). */
|
|
212
|
+
filter: Record<string, any> | null;
|
|
213
|
+
}
|
|
214
|
+
export interface BulkAssignEventsAsyncResponse {
|
|
215
|
+
}
|
|
216
|
+
export interface UnassignEventsRequest {
|
|
217
|
+
/** Category ID. */
|
|
218
|
+
categoryId: string;
|
|
219
|
+
/** A list of events IDs. */
|
|
220
|
+
eventId: string[];
|
|
221
|
+
}
|
|
222
|
+
export interface UnassignEventsResponse {
|
|
223
|
+
}
|
|
224
|
+
export interface BulkUnassignEventsRequest {
|
|
225
|
+
/** A list of category IDs. */
|
|
226
|
+
categoryId: string[];
|
|
227
|
+
/** A list of events IDs. */
|
|
228
|
+
eventId?: string[];
|
|
229
|
+
}
|
|
230
|
+
export interface BulkUnassignEventsResponse {
|
|
231
|
+
/** Results. */
|
|
232
|
+
results?: BulkCategoryResult[];
|
|
233
|
+
/** Metadata. */
|
|
234
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
235
|
+
}
|
|
236
|
+
export interface BulkUnassignEventsAsyncRequest {
|
|
237
|
+
/** Category ID. */
|
|
238
|
+
categoryId: string[];
|
|
239
|
+
/** 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). */
|
|
240
|
+
filter: Record<string, any> | null;
|
|
241
|
+
}
|
|
242
|
+
export interface BulkUnassignEventsAsyncResponse {
|
|
243
|
+
}
|
|
244
|
+
export interface ListEventCategoriesRequest {
|
|
245
|
+
/** Event ID. */
|
|
246
|
+
eventId: string;
|
|
247
|
+
}
|
|
248
|
+
export interface ListEventCategoriesResponse {
|
|
249
|
+
/** A list of categories. */
|
|
250
|
+
categories?: Category[];
|
|
251
|
+
}
|
|
252
|
+
export interface ReorderCategoryEventsRequest extends ReorderCategoryEventsRequestReferenceEventOneOf {
|
|
253
|
+
/** Move the event before defined `eventId`. */
|
|
254
|
+
beforeEventId?: string;
|
|
255
|
+
/** Move the event after defined `eventId`. */
|
|
256
|
+
afterEventId?: string;
|
|
257
|
+
/** Category ID. */
|
|
258
|
+
categoryId: string;
|
|
259
|
+
/** Event ID. */
|
|
260
|
+
eventId?: string;
|
|
261
|
+
}
|
|
262
|
+
/** @oneof */
|
|
263
|
+
export interface ReorderCategoryEventsRequestReferenceEventOneOf {
|
|
264
|
+
/** Move the event before defined `eventId`. */
|
|
265
|
+
beforeEventId?: string;
|
|
266
|
+
/** Move the event after defined `eventId`. */
|
|
267
|
+
afterEventId?: string;
|
|
268
|
+
}
|
|
269
|
+
export interface ReorderCategoryEventsResponse {
|
|
270
|
+
}
|
|
271
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
272
|
+
createdEvent?: EntityCreatedEvent;
|
|
273
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
274
|
+
deletedEvent?: EntityDeletedEvent;
|
|
275
|
+
actionEvent?: ActionEvent;
|
|
276
|
+
/**
|
|
277
|
+
* Unique event ID.
|
|
278
|
+
* Allows clients to ignore duplicate webhooks.
|
|
279
|
+
*/
|
|
280
|
+
id?: string;
|
|
281
|
+
/**
|
|
282
|
+
* Assumes actions are also always typed to an entity_type
|
|
283
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
284
|
+
*/
|
|
285
|
+
entityFqdn?: string;
|
|
286
|
+
/**
|
|
287
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
288
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
289
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
290
|
+
*/
|
|
291
|
+
slug?: string;
|
|
292
|
+
/** ID of the entity associated with the event. */
|
|
293
|
+
entityId?: string;
|
|
294
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
295
|
+
eventTime?: Date | null;
|
|
296
|
+
/**
|
|
297
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
298
|
+
* (for example, GDPR).
|
|
299
|
+
*/
|
|
300
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
301
|
+
/** If present, indicates the action that triggered the event. */
|
|
302
|
+
originatedFrom?: string | null;
|
|
303
|
+
/**
|
|
304
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
305
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
306
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
307
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
308
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
309
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
310
|
+
*/
|
|
311
|
+
entityEventSequence?: string | null;
|
|
312
|
+
}
|
|
313
|
+
/** @oneof */
|
|
314
|
+
export interface DomainEventBodyOneOf {
|
|
315
|
+
createdEvent?: EntityCreatedEvent;
|
|
316
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
317
|
+
deletedEvent?: EntityDeletedEvent;
|
|
318
|
+
actionEvent?: ActionEvent;
|
|
319
|
+
}
|
|
320
|
+
export interface EntityCreatedEvent {
|
|
321
|
+
entityAsJson?: string;
|
|
322
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
323
|
+
restoreInfo?: RestoreInfo;
|
|
324
|
+
}
|
|
325
|
+
export interface RestoreInfo {
|
|
326
|
+
deletedDate?: Date | null;
|
|
327
|
+
}
|
|
328
|
+
export interface EntityUpdatedEvent {
|
|
329
|
+
/**
|
|
330
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
331
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
332
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
333
|
+
*/
|
|
334
|
+
currentEntityAsJson?: string;
|
|
335
|
+
}
|
|
336
|
+
export interface EntityDeletedEvent {
|
|
337
|
+
/** Entity that was deleted */
|
|
338
|
+
deletedEntityAsJson?: string | null;
|
|
339
|
+
}
|
|
340
|
+
export interface ActionEvent {
|
|
341
|
+
bodyAsJson?: string;
|
|
342
|
+
}
|
|
343
|
+
export interface MessageEnvelope {
|
|
344
|
+
/** App instance ID. */
|
|
345
|
+
instanceId?: string | null;
|
|
346
|
+
/** Event type. */
|
|
347
|
+
eventType?: string;
|
|
348
|
+
/** The identification type and identity data. */
|
|
349
|
+
identity?: IdentificationData;
|
|
350
|
+
/** Stringify payload. */
|
|
351
|
+
data?: string;
|
|
352
|
+
}
|
|
353
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
354
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
355
|
+
anonymousVisitorId?: string;
|
|
356
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
357
|
+
memberId?: string;
|
|
358
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
359
|
+
wixUserId?: string;
|
|
360
|
+
/** ID of an app. */
|
|
361
|
+
appId?: string;
|
|
362
|
+
/** @readonly */
|
|
363
|
+
identityType?: WebhookIdentityType;
|
|
364
|
+
}
|
|
365
|
+
/** @oneof */
|
|
366
|
+
export interface IdentificationDataIdOneOf {
|
|
367
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
368
|
+
anonymousVisitorId?: string;
|
|
369
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
370
|
+
memberId?: string;
|
|
371
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
372
|
+
wixUserId?: string;
|
|
373
|
+
/** ID of an app. */
|
|
374
|
+
appId?: string;
|
|
375
|
+
}
|
|
376
|
+
export declare enum WebhookIdentityType {
|
|
377
|
+
UNKNOWN = "UNKNOWN",
|
|
378
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
379
|
+
MEMBER = "MEMBER",
|
|
380
|
+
WIX_USER = "WIX_USER",
|
|
381
|
+
APP = "APP"
|
|
382
|
+
}
|
|
383
|
+
interface CategoryNonNullableFields {
|
|
384
|
+
id: string;
|
|
385
|
+
name: string;
|
|
386
|
+
states: State[];
|
|
387
|
+
}
|
|
388
|
+
export interface CreateCategoryResponseNonNullableFields {
|
|
389
|
+
category?: CategoryNonNullableFields;
|
|
390
|
+
}
|
|
391
|
+
interface ApplicationErrorNonNullableFields {
|
|
392
|
+
code: string;
|
|
393
|
+
description: string;
|
|
394
|
+
}
|
|
395
|
+
interface ItemMetadataNonNullableFields {
|
|
396
|
+
originalIndex: number;
|
|
397
|
+
success: boolean;
|
|
398
|
+
error?: ApplicationErrorNonNullableFields;
|
|
399
|
+
}
|
|
400
|
+
interface BulkCategoryResultNonNullableFields {
|
|
401
|
+
itemMetadata?: ItemMetadataNonNullableFields;
|
|
402
|
+
item?: CategoryNonNullableFields;
|
|
403
|
+
}
|
|
404
|
+
interface BulkActionMetadataNonNullableFields {
|
|
405
|
+
totalSuccesses: number;
|
|
406
|
+
totalFailures: number;
|
|
407
|
+
undetailedFailures: number;
|
|
408
|
+
}
|
|
409
|
+
export interface BulkCreateCategoryResponseNonNullableFields {
|
|
410
|
+
results: BulkCategoryResultNonNullableFields[];
|
|
411
|
+
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
412
|
+
}
|
|
413
|
+
export interface UpdateCategoryResponseNonNullableFields {
|
|
414
|
+
category?: CategoryNonNullableFields;
|
|
415
|
+
}
|
|
416
|
+
export interface QueryCategoriesResponseNonNullableFields {
|
|
417
|
+
categories: CategoryNonNullableFields[];
|
|
418
|
+
}
|
|
419
|
+
export interface BulkAssignEventsResponseNonNullableFields {
|
|
420
|
+
results: BulkCategoryResultNonNullableFields[];
|
|
421
|
+
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
422
|
+
}
|
|
423
|
+
export interface BulkUnassignEventsResponseNonNullableFields {
|
|
424
|
+
results: BulkCategoryResultNonNullableFields[];
|
|
425
|
+
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
426
|
+
}
|
|
427
|
+
export interface ListEventCategoriesResponseNonNullableFields {
|
|
428
|
+
categories: CategoryNonNullableFields[];
|
|
429
|
+
}
|
|
430
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export var State;
|
|
2
|
+
(function (State) {
|
|
3
|
+
/** Created manually by the user. */
|
|
4
|
+
State["MANUAL"] = "MANUAL";
|
|
5
|
+
/** Created automatically. */
|
|
6
|
+
State["AUTO"] = "AUTO";
|
|
7
|
+
/** Created when publishing recurring events. */
|
|
8
|
+
State["RECURRING_EVENT"] = "RECURRING_EVENT";
|
|
9
|
+
/** Category is hidden. */
|
|
10
|
+
State["HIDDEN"] = "HIDDEN";
|
|
11
|
+
})(State || (State = {}));
|
|
12
|
+
export var SortOrder;
|
|
13
|
+
(function (SortOrder) {
|
|
14
|
+
SortOrder["ASC"] = "ASC";
|
|
15
|
+
SortOrder["DESC"] = "DESC";
|
|
16
|
+
})(SortOrder || (SortOrder = {}));
|
|
17
|
+
export var CategoryFieldset;
|
|
18
|
+
(function (CategoryFieldset) {
|
|
19
|
+
/** Include `assignedEventsCount` in the response. */
|
|
20
|
+
CategoryFieldset["COUNTS"] = "COUNTS";
|
|
21
|
+
})(CategoryFieldset || (CategoryFieldset = {}));
|
|
22
|
+
export var WebhookIdentityType;
|
|
23
|
+
(function (WebhookIdentityType) {
|
|
24
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
25
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
26
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
27
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
28
|
+
WebhookIdentityType["APP"] = "APP";
|
|
29
|
+
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
30
|
+
//# sourceMappingURL=events-v1-category-categories.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events-v1-category-categories.types.js","sourceRoot":"","sources":["../../../src/events-v1-category-categories.types.ts"],"names":[],"mappings":"AAwCA,MAAM,CAAN,IAAY,KASX;AATD,WAAY,KAAK;IACf,oCAAoC;IACpC,0BAAiB,CAAA;IACjB,6BAA6B;IAC7B,sBAAa,CAAA;IACb,gDAAgD;IAChD,4CAAmC,CAAA;IACnC,0BAA0B;IAC1B,0BAAiB,CAAA;AACnB,CAAC,EATW,KAAK,KAAL,KAAK,QAShB;AAsHD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AASD,MAAM,CAAN,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,qDAAqD;IACrD,qCAAiB,CAAA;AACnB,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB,QAG3B;AAgPD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|