@wix/auto_sdk_faq_category 1.0.12 → 1.0.14
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/faq-category-v2-category-category.universal-CCCaclcc.d.mts +523 -0
- package/build/faq-category-v2-category-category.universal-CCCaclcc.d.ts +523 -0
- package/build/index.d.mts +84 -0
- package/build/index.d.ts +84 -0
- package/build/index.js +770 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +735 -0
- package/build/index.mjs.map +1 -0
- package/build/meta.d.mts +245 -0
- package/build/meta.d.ts +245 -0
- package/build/meta.js +540 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +507 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,523 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Categories are themed groupings of FAQ question entries that a site owner can create to organize their
|
|
3
|
+
* FAQ questions (e.g., Shipping, Returns, etc.).
|
|
4
|
+
*/
|
|
5
|
+
interface Category {
|
|
6
|
+
/**
|
|
7
|
+
* Category ID.
|
|
8
|
+
* @format GUID
|
|
9
|
+
* @readonly
|
|
10
|
+
*/
|
|
11
|
+
_id?: string | null;
|
|
12
|
+
/**
|
|
13
|
+
* Revision number, which increments by 1 each time the Category is updated.
|
|
14
|
+
* To prevent conflicting changes,
|
|
15
|
+
* the current revision must be passed when updating the Category.
|
|
16
|
+
*
|
|
17
|
+
* Ignored when creating a Category.
|
|
18
|
+
* @readonly
|
|
19
|
+
*/
|
|
20
|
+
revision?: string | null;
|
|
21
|
+
/**
|
|
22
|
+
* Date and time the Category was created.
|
|
23
|
+
* @readonly
|
|
24
|
+
*/
|
|
25
|
+
_createdDate?: Date | null;
|
|
26
|
+
/**
|
|
27
|
+
* Date and time the Category was last updated.
|
|
28
|
+
* @readonly
|
|
29
|
+
*/
|
|
30
|
+
_updatedDate?: Date | null;
|
|
31
|
+
/**
|
|
32
|
+
* Category title.
|
|
33
|
+
* @maxLength 500
|
|
34
|
+
* @minLength 1
|
|
35
|
+
*/
|
|
36
|
+
title?: string | null;
|
|
37
|
+
/** Order of category within a site. */
|
|
38
|
+
sortOrder?: number | null;
|
|
39
|
+
/** Data Extensions */
|
|
40
|
+
extendedFields?: ExtendedFields;
|
|
41
|
+
}
|
|
42
|
+
interface ExtendedFields {
|
|
43
|
+
/**
|
|
44
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
45
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
46
|
+
*
|
|
47
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
48
|
+
*
|
|
49
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
50
|
+
*/
|
|
51
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
52
|
+
}
|
|
53
|
+
interface CreateCategoryRequest {
|
|
54
|
+
/** Category to be created. */
|
|
55
|
+
category: Category;
|
|
56
|
+
}
|
|
57
|
+
interface CreateCategoryResponse {
|
|
58
|
+
/** The created Category. */
|
|
59
|
+
category?: Category;
|
|
60
|
+
}
|
|
61
|
+
interface GetCategoryRequest {
|
|
62
|
+
/**
|
|
63
|
+
* ID of the Category to retrieve.
|
|
64
|
+
* @format GUID
|
|
65
|
+
*/
|
|
66
|
+
categoryId: string;
|
|
67
|
+
}
|
|
68
|
+
interface GetCategoryResponse {
|
|
69
|
+
/** The requested Category. */
|
|
70
|
+
category?: Category;
|
|
71
|
+
}
|
|
72
|
+
interface UpdateCategoryRequest {
|
|
73
|
+
/** Category to be updated, may be partial. */
|
|
74
|
+
category: Category;
|
|
75
|
+
}
|
|
76
|
+
interface UpdateCategoryResponse {
|
|
77
|
+
/** Updated Category. */
|
|
78
|
+
category?: Category;
|
|
79
|
+
}
|
|
80
|
+
interface DeleteCategoryRequest {
|
|
81
|
+
/**
|
|
82
|
+
* Id of the Category to delete.
|
|
83
|
+
* @format GUID
|
|
84
|
+
*/
|
|
85
|
+
categoryId: string;
|
|
86
|
+
}
|
|
87
|
+
interface DeleteCategoryResponse {
|
|
88
|
+
}
|
|
89
|
+
interface ListCategoriesRequest {
|
|
90
|
+
/** Request more categories using cursor paging. */
|
|
91
|
+
paging?: CursorPaging;
|
|
92
|
+
}
|
|
93
|
+
interface CursorPaging {
|
|
94
|
+
/**
|
|
95
|
+
* Maximum number of items to return in the results.
|
|
96
|
+
* @max 100
|
|
97
|
+
*/
|
|
98
|
+
limit?: number | null;
|
|
99
|
+
/**
|
|
100
|
+
* Pointer to the next or previous page in the list of results.
|
|
101
|
+
*
|
|
102
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
103
|
+
* Not relevant for the first request.
|
|
104
|
+
* @maxLength 16000
|
|
105
|
+
*/
|
|
106
|
+
cursor?: string | null;
|
|
107
|
+
}
|
|
108
|
+
interface ListCategoriesResponse {
|
|
109
|
+
/** List of Categories. */
|
|
110
|
+
categories?: Category[];
|
|
111
|
+
/** Paging metadata */
|
|
112
|
+
pagingMetadata?: PagingMetadataV2;
|
|
113
|
+
}
|
|
114
|
+
interface PagingMetadataV2 {
|
|
115
|
+
/** Number of items returned in the response. */
|
|
116
|
+
count?: number | null;
|
|
117
|
+
/** Offset that was requested. */
|
|
118
|
+
offset?: number | null;
|
|
119
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
120
|
+
total?: number | null;
|
|
121
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
122
|
+
tooManyToCount?: boolean | null;
|
|
123
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
124
|
+
cursors?: Cursors;
|
|
125
|
+
}
|
|
126
|
+
interface Cursors {
|
|
127
|
+
/**
|
|
128
|
+
* Cursor string pointing to the next page in the list of results.
|
|
129
|
+
* @maxLength 16000
|
|
130
|
+
*/
|
|
131
|
+
next?: string | null;
|
|
132
|
+
/**
|
|
133
|
+
* Cursor pointing to the previous page in the list of results.
|
|
134
|
+
* @maxLength 16000
|
|
135
|
+
*/
|
|
136
|
+
prev?: string | null;
|
|
137
|
+
}
|
|
138
|
+
interface QueryCategoriesRequest {
|
|
139
|
+
/** WQL expression. */
|
|
140
|
+
query?: CursorQuery;
|
|
141
|
+
}
|
|
142
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
143
|
+
/**
|
|
144
|
+
* Cursor paging options.
|
|
145
|
+
*
|
|
146
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
147
|
+
*/
|
|
148
|
+
cursorPaging?: CursorPaging;
|
|
149
|
+
/**
|
|
150
|
+
* Filter object.
|
|
151
|
+
*
|
|
152
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
153
|
+
*/
|
|
154
|
+
filter?: Record<string, any> | null;
|
|
155
|
+
/**
|
|
156
|
+
* Sort object.
|
|
157
|
+
*
|
|
158
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
159
|
+
* @maxSize 5
|
|
160
|
+
*/
|
|
161
|
+
sort?: Sorting[];
|
|
162
|
+
}
|
|
163
|
+
/** @oneof */
|
|
164
|
+
interface CursorQueryPagingMethodOneOf {
|
|
165
|
+
/**
|
|
166
|
+
* Cursor paging options.
|
|
167
|
+
*
|
|
168
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
169
|
+
*/
|
|
170
|
+
cursorPaging?: CursorPaging;
|
|
171
|
+
}
|
|
172
|
+
interface Sorting {
|
|
173
|
+
/**
|
|
174
|
+
* Name of the field to sort by.
|
|
175
|
+
* @maxLength 512
|
|
176
|
+
*/
|
|
177
|
+
fieldName?: string;
|
|
178
|
+
/** Sort order. */
|
|
179
|
+
order?: SortOrder;
|
|
180
|
+
}
|
|
181
|
+
declare enum SortOrder {
|
|
182
|
+
ASC = "ASC",
|
|
183
|
+
DESC = "DESC"
|
|
184
|
+
}
|
|
185
|
+
interface QueryCategoriesResponse {
|
|
186
|
+
/** List of Categories. */
|
|
187
|
+
categories?: Category[];
|
|
188
|
+
/** Paging metadata */
|
|
189
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
190
|
+
}
|
|
191
|
+
interface CursorPagingMetadata {
|
|
192
|
+
/** Number of items returned in current page. */
|
|
193
|
+
count?: number | null;
|
|
194
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
195
|
+
cursors?: Cursors;
|
|
196
|
+
/**
|
|
197
|
+
* Whether there are more pages to retrieve following the current page.
|
|
198
|
+
*
|
|
199
|
+
* + `true`: Another page of results can be retrieved.
|
|
200
|
+
* + `false`: This is the last page.
|
|
201
|
+
*/
|
|
202
|
+
hasNext?: boolean | null;
|
|
203
|
+
}
|
|
204
|
+
interface UpdateExtendedFieldsRequest {
|
|
205
|
+
/** ID of the entity to update. */
|
|
206
|
+
_id: string;
|
|
207
|
+
/** Identifier for the app whose extended fields are being updated. */
|
|
208
|
+
namespace: string;
|
|
209
|
+
/** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
|
|
210
|
+
namespaceData: Record<string, any> | null;
|
|
211
|
+
}
|
|
212
|
+
interface UpdateExtendedFieldsResponse {
|
|
213
|
+
/** Updated Category. */
|
|
214
|
+
category?: Category;
|
|
215
|
+
}
|
|
216
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
217
|
+
createdEvent?: EntityCreatedEvent;
|
|
218
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
219
|
+
deletedEvent?: EntityDeletedEvent;
|
|
220
|
+
actionEvent?: ActionEvent;
|
|
221
|
+
/**
|
|
222
|
+
* Unique event ID.
|
|
223
|
+
* Allows clients to ignore duplicate webhooks.
|
|
224
|
+
*/
|
|
225
|
+
_id?: string;
|
|
226
|
+
/**
|
|
227
|
+
* Assumes actions are also always typed to an entity_type
|
|
228
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
229
|
+
*/
|
|
230
|
+
entityFqdn?: string;
|
|
231
|
+
/**
|
|
232
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
233
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
234
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
235
|
+
*/
|
|
236
|
+
slug?: string;
|
|
237
|
+
/** ID of the entity associated with the event. */
|
|
238
|
+
entityId?: string;
|
|
239
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
240
|
+
eventTime?: Date | null;
|
|
241
|
+
/**
|
|
242
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
243
|
+
* (for example, GDPR).
|
|
244
|
+
*/
|
|
245
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
246
|
+
/** If present, indicates the action that triggered the event. */
|
|
247
|
+
originatedFrom?: string | null;
|
|
248
|
+
/**
|
|
249
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
250
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
251
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
252
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
253
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
254
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
255
|
+
*/
|
|
256
|
+
entityEventSequence?: string | null;
|
|
257
|
+
}
|
|
258
|
+
/** @oneof */
|
|
259
|
+
interface DomainEventBodyOneOf {
|
|
260
|
+
createdEvent?: EntityCreatedEvent;
|
|
261
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
262
|
+
deletedEvent?: EntityDeletedEvent;
|
|
263
|
+
actionEvent?: ActionEvent;
|
|
264
|
+
}
|
|
265
|
+
interface EntityCreatedEvent {
|
|
266
|
+
entity?: string;
|
|
267
|
+
}
|
|
268
|
+
interface RestoreInfo {
|
|
269
|
+
deletedDate?: Date | null;
|
|
270
|
+
}
|
|
271
|
+
interface EntityUpdatedEvent {
|
|
272
|
+
/**
|
|
273
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
274
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
275
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
276
|
+
*/
|
|
277
|
+
currentEntity?: string;
|
|
278
|
+
}
|
|
279
|
+
interface EntityDeletedEvent {
|
|
280
|
+
/** Entity that was deleted */
|
|
281
|
+
deletedEntity?: string | null;
|
|
282
|
+
}
|
|
283
|
+
interface ActionEvent {
|
|
284
|
+
body?: string;
|
|
285
|
+
}
|
|
286
|
+
interface MessageEnvelope {
|
|
287
|
+
/**
|
|
288
|
+
* App instance ID.
|
|
289
|
+
* @format GUID
|
|
290
|
+
*/
|
|
291
|
+
instanceId?: string | null;
|
|
292
|
+
/**
|
|
293
|
+
* Event type.
|
|
294
|
+
* @maxLength 150
|
|
295
|
+
*/
|
|
296
|
+
eventType?: string;
|
|
297
|
+
/** The identification type and identity data. */
|
|
298
|
+
identity?: IdentificationData;
|
|
299
|
+
/** Stringify payload. */
|
|
300
|
+
data?: string;
|
|
301
|
+
}
|
|
302
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
303
|
+
/**
|
|
304
|
+
* ID of a site visitor that has not logged in to the site.
|
|
305
|
+
* @format GUID
|
|
306
|
+
*/
|
|
307
|
+
anonymousVisitorId?: string;
|
|
308
|
+
/**
|
|
309
|
+
* ID of a site visitor that has logged in to the site.
|
|
310
|
+
* @format GUID
|
|
311
|
+
*/
|
|
312
|
+
memberId?: string;
|
|
313
|
+
/**
|
|
314
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
315
|
+
* @format GUID
|
|
316
|
+
*/
|
|
317
|
+
wixUserId?: string;
|
|
318
|
+
/**
|
|
319
|
+
* ID of an app.
|
|
320
|
+
* @format GUID
|
|
321
|
+
*/
|
|
322
|
+
appId?: string;
|
|
323
|
+
/** @readonly */
|
|
324
|
+
identityType?: WebhookIdentityType;
|
|
325
|
+
}
|
|
326
|
+
/** @oneof */
|
|
327
|
+
interface IdentificationDataIdOneOf {
|
|
328
|
+
/**
|
|
329
|
+
* ID of a site visitor that has not logged in to the site.
|
|
330
|
+
* @format GUID
|
|
331
|
+
*/
|
|
332
|
+
anonymousVisitorId?: string;
|
|
333
|
+
/**
|
|
334
|
+
* ID of a site visitor that has logged in to the site.
|
|
335
|
+
* @format GUID
|
|
336
|
+
*/
|
|
337
|
+
memberId?: string;
|
|
338
|
+
/**
|
|
339
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
340
|
+
* @format GUID
|
|
341
|
+
*/
|
|
342
|
+
wixUserId?: string;
|
|
343
|
+
/**
|
|
344
|
+
* ID of an app.
|
|
345
|
+
* @format GUID
|
|
346
|
+
*/
|
|
347
|
+
appId?: string;
|
|
348
|
+
}
|
|
349
|
+
declare enum WebhookIdentityType {
|
|
350
|
+
UNKNOWN = "UNKNOWN",
|
|
351
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
352
|
+
MEMBER = "MEMBER",
|
|
353
|
+
WIX_USER = "WIX_USER",
|
|
354
|
+
APP = "APP"
|
|
355
|
+
}
|
|
356
|
+
interface BaseEventMetadata {
|
|
357
|
+
/**
|
|
358
|
+
* App instance ID.
|
|
359
|
+
* @format GUID
|
|
360
|
+
*/
|
|
361
|
+
instanceId?: string | null;
|
|
362
|
+
/**
|
|
363
|
+
* Event type.
|
|
364
|
+
* @maxLength 150
|
|
365
|
+
*/
|
|
366
|
+
eventType?: string;
|
|
367
|
+
/** The identification type and identity data. */
|
|
368
|
+
identity?: IdentificationData;
|
|
369
|
+
}
|
|
370
|
+
interface EventMetadata extends BaseEventMetadata {
|
|
371
|
+
/**
|
|
372
|
+
* Unique event ID.
|
|
373
|
+
* Allows clients to ignore duplicate webhooks.
|
|
374
|
+
*/
|
|
375
|
+
_id?: string;
|
|
376
|
+
/**
|
|
377
|
+
* Assumes actions are also always typed to an entity_type
|
|
378
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
379
|
+
*/
|
|
380
|
+
entityFqdn?: string;
|
|
381
|
+
/**
|
|
382
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
383
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
384
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
385
|
+
*/
|
|
386
|
+
slug?: string;
|
|
387
|
+
/** ID of the entity associated with the event. */
|
|
388
|
+
entityId?: string;
|
|
389
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
390
|
+
eventTime?: Date | null;
|
|
391
|
+
/**
|
|
392
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
393
|
+
* (for example, GDPR).
|
|
394
|
+
*/
|
|
395
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
396
|
+
/** If present, indicates the action that triggered the event. */
|
|
397
|
+
originatedFrom?: string | null;
|
|
398
|
+
/**
|
|
399
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
400
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
401
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
402
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
403
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
404
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
405
|
+
*/
|
|
406
|
+
entityEventSequence?: string | null;
|
|
407
|
+
}
|
|
408
|
+
interface CategoryCreatedEnvelope {
|
|
409
|
+
entity: Category;
|
|
410
|
+
metadata: EventMetadata;
|
|
411
|
+
}
|
|
412
|
+
interface CategoryDeletedEnvelope {
|
|
413
|
+
metadata: EventMetadata;
|
|
414
|
+
}
|
|
415
|
+
interface CategoryUpdatedEnvelope {
|
|
416
|
+
entity: Category;
|
|
417
|
+
metadata: EventMetadata;
|
|
418
|
+
}
|
|
419
|
+
interface UpdateCategory {
|
|
420
|
+
/**
|
|
421
|
+
* Category ID.
|
|
422
|
+
* @format GUID
|
|
423
|
+
* @readonly
|
|
424
|
+
*/
|
|
425
|
+
_id?: string | null;
|
|
426
|
+
/**
|
|
427
|
+
* Revision number, which increments by 1 each time the Category is updated.
|
|
428
|
+
* To prevent conflicting changes,
|
|
429
|
+
* the current revision must be passed when updating the Category.
|
|
430
|
+
*
|
|
431
|
+
* Ignored when creating a Category.
|
|
432
|
+
* @readonly
|
|
433
|
+
*/
|
|
434
|
+
revision?: string | null;
|
|
435
|
+
/**
|
|
436
|
+
* Date and time the Category was created.
|
|
437
|
+
* @readonly
|
|
438
|
+
*/
|
|
439
|
+
_createdDate?: Date | null;
|
|
440
|
+
/**
|
|
441
|
+
* Date and time the Category was last updated.
|
|
442
|
+
* @readonly
|
|
443
|
+
*/
|
|
444
|
+
_updatedDate?: Date | null;
|
|
445
|
+
/**
|
|
446
|
+
* Category title.
|
|
447
|
+
* @maxLength 500
|
|
448
|
+
* @minLength 1
|
|
449
|
+
*/
|
|
450
|
+
title?: string | null;
|
|
451
|
+
/** Order of category within a site. */
|
|
452
|
+
sortOrder?: number | null;
|
|
453
|
+
/** Data Extensions */
|
|
454
|
+
extendedFields?: ExtendedFields;
|
|
455
|
+
}
|
|
456
|
+
interface ListCategoriesOptions {
|
|
457
|
+
/** Request more categories using cursor paging. */
|
|
458
|
+
paging?: CursorPaging;
|
|
459
|
+
}
|
|
460
|
+
interface QueryCursorResult {
|
|
461
|
+
cursors: Cursors;
|
|
462
|
+
hasNext: () => boolean;
|
|
463
|
+
hasPrev: () => boolean;
|
|
464
|
+
length: number;
|
|
465
|
+
pageSize: number;
|
|
466
|
+
}
|
|
467
|
+
interface CategoriesQueryResult extends QueryCursorResult {
|
|
468
|
+
items: Category[];
|
|
469
|
+
query: CategoriesQueryBuilder;
|
|
470
|
+
next: () => Promise<CategoriesQueryResult>;
|
|
471
|
+
prev: () => Promise<CategoriesQueryResult>;
|
|
472
|
+
}
|
|
473
|
+
interface CategoriesQueryBuilder {
|
|
474
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
475
|
+
* @param value - Value to compare against.
|
|
476
|
+
*/
|
|
477
|
+
eq: (propertyName: '_id' | 'title' | 'sortOrder', value: any) => CategoriesQueryBuilder;
|
|
478
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
479
|
+
* @param value - Value to compare against.
|
|
480
|
+
*/
|
|
481
|
+
ne: (propertyName: '_id' | 'title' | 'sortOrder', value: any) => CategoriesQueryBuilder;
|
|
482
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
483
|
+
* @param value - Value to compare against.
|
|
484
|
+
*/
|
|
485
|
+
ge: (propertyName: 'sortOrder', value: any) => CategoriesQueryBuilder;
|
|
486
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
487
|
+
* @param value - Value to compare against.
|
|
488
|
+
*/
|
|
489
|
+
gt: (propertyName: 'sortOrder', value: any) => CategoriesQueryBuilder;
|
|
490
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
491
|
+
* @param value - Value to compare against.
|
|
492
|
+
*/
|
|
493
|
+
le: (propertyName: 'sortOrder', value: any) => CategoriesQueryBuilder;
|
|
494
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
495
|
+
* @param value - Value to compare against.
|
|
496
|
+
*/
|
|
497
|
+
lt: (propertyName: 'sortOrder', value: any) => CategoriesQueryBuilder;
|
|
498
|
+
/** @param propertyName - Property whose value is compared with `string`.
|
|
499
|
+
* @param string - String to compare against. Case-insensitive.
|
|
500
|
+
*/
|
|
501
|
+
startsWith: (propertyName: '_id' | 'title', value: string) => CategoriesQueryBuilder;
|
|
502
|
+
/** @param propertyName - Property whose value is compared with `values`.
|
|
503
|
+
* @param values - List of values to compare against.
|
|
504
|
+
*/
|
|
505
|
+
hasSome: (propertyName: '_id' | 'title' | 'sortOrder', value: any[]) => CategoriesQueryBuilder;
|
|
506
|
+
in: (propertyName: '_id' | 'title' | 'sortOrder', value: any) => CategoriesQueryBuilder;
|
|
507
|
+
exists: (propertyName: '_id' | 'title' | 'sortOrder', value: boolean) => CategoriesQueryBuilder;
|
|
508
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
509
|
+
ascending: (...propertyNames: Array<'_id' | 'title' | 'sortOrder'>) => CategoriesQueryBuilder;
|
|
510
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
511
|
+
descending: (...propertyNames: Array<'_id' | 'title' | 'sortOrder'>) => CategoriesQueryBuilder;
|
|
512
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
|
|
513
|
+
limit: (limit: number) => CategoriesQueryBuilder;
|
|
514
|
+
/** @param cursor - A pointer to specific record */
|
|
515
|
+
skipTo: (cursor: string) => CategoriesQueryBuilder;
|
|
516
|
+
find: () => Promise<CategoriesQueryResult>;
|
|
517
|
+
}
|
|
518
|
+
interface UpdateExtendedFieldsOptions {
|
|
519
|
+
/** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
|
|
520
|
+
namespaceData: Record<string, any> | null;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
export { type ActionEvent as A, type BaseEventMetadata as B, type Category as C, type DeleteCategoryRequest as D, type ExtendedFields as E, type CategoryCreatedEnvelope as F, type GetCategoryRequest as G, type CategoryDeletedEnvelope as H, type IdentificationData as I, type CategoryUpdatedEnvelope as J, type CategoriesQueryResult as K, type ListCategoriesOptions as L, type MessageEnvelope as M, type PagingMetadataV2 as P, type QueryCategoriesRequest as Q, type RestoreInfo as R, SortOrder as S, type UpdateCategory as U, WebhookIdentityType as W, type ListCategoriesResponse as a, type CategoriesQueryBuilder as b, type UpdateExtendedFieldsOptions as c, type UpdateExtendedFieldsResponse as d, type CreateCategoryRequest as e, type CreateCategoryResponse as f, type GetCategoryResponse as g, type UpdateCategoryRequest as h, type UpdateCategoryResponse as i, type DeleteCategoryResponse as j, type ListCategoriesRequest as k, type CursorPaging as l, type Cursors as m, type CursorQuery as n, type CursorQueryPagingMethodOneOf as o, type Sorting as p, type QueryCategoriesResponse as q, type CursorPagingMetadata as r, type UpdateExtendedFieldsRequest as s, type DomainEvent as t, type DomainEventBodyOneOf as u, type EntityCreatedEvent as v, type EntityUpdatedEvent as w, type EntityDeletedEvent as x, type IdentificationDataIdOneOf as y, type EventMetadata as z };
|