@wix/auto_sdk_faq_category 1.0.3 → 1.0.4
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/{internal/cjs/src/faq-category-v2-category-category.universal.d.ts → faq-category-v2-category-category.universal-CCCaclcc.d.mts} +47 -183
- package/build/{internal/es/src/faq-category-v2-category-category.universal.d.ts → faq-category-v2-category-category.universal-CCCaclcc.d.ts} +47 -183
- 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/{cjs/src/faq-category-v2-category-category.universal.d.ts → internal/faq-category-v2-category-category.universal-CCCaclcc.d.mts} +47 -183
- package/build/{es/src/faq-category-v2-category-category.universal.d.ts → internal/faq-category-v2-category-category.universal-CCCaclcc.d.ts} +47 -183
- package/build/internal/index.d.mts +84 -0
- package/build/internal/index.d.ts +84 -0
- package/build/internal/index.js +770 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +735 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +245 -0
- package/build/internal/meta.d.ts +245 -0
- package/build/internal/meta.js +540 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +507 -0
- package/build/internal/meta.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 +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/faq-category-v2-category-category.context.d.ts +0 -21
- package/build/cjs/src/faq-category-v2-category-category.context.js +0 -26
- package/build/cjs/src/faq-category-v2-category-category.context.js.map +0 -1
- package/build/cjs/src/faq-category-v2-category-category.http.d.ts +0 -24
- package/build/cjs/src/faq-category-v2-category-category.http.js +0 -395
- package/build/cjs/src/faq-category-v2-category-category.http.js.map +0 -1
- package/build/cjs/src/faq-category-v2-category-category.meta.d.ts +0 -27
- package/build/cjs/src/faq-category-v2-category-category.meta.js +0 -161
- package/build/cjs/src/faq-category-v2-category-category.meta.js.map +0 -1
- package/build/cjs/src/faq-category-v2-category-category.public.d.ts +0 -72
- package/build/cjs/src/faq-category-v2-category-category.public.js +0 -98
- package/build/cjs/src/faq-category-v2-category-category.public.js.map +0 -1
- package/build/cjs/src/faq-category-v2-category-category.types.d.ts +0 -357
- package/build/cjs/src/faq-category-v2-category-category.types.js +0 -17
- package/build/cjs/src/faq-category-v2-category-category.types.js.map +0 -1
- package/build/cjs/src/faq-category-v2-category-category.universal.js +0 -332
- package/build/cjs/src/faq-category-v2-category-category.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/faq-category-v2-category-category.context.d.ts +0 -21
- package/build/es/src/faq-category-v2-category-category.context.js +0 -21
- package/build/es/src/faq-category-v2-category-category.context.js.map +0 -1
- package/build/es/src/faq-category-v2-category-category.http.d.ts +0 -24
- package/build/es/src/faq-category-v2-category-category.http.js +0 -385
- package/build/es/src/faq-category-v2-category-category.http.js.map +0 -1
- package/build/es/src/faq-category-v2-category-category.meta.d.ts +0 -27
- package/build/es/src/faq-category-v2-category-category.meta.js +0 -128
- package/build/es/src/faq-category-v2-category-category.meta.js.map +0 -1
- package/build/es/src/faq-category-v2-category-category.public.d.ts +0 -72
- package/build/es/src/faq-category-v2-category-category.public.js +0 -86
- package/build/es/src/faq-category-v2-category-category.public.js.map +0 -1
- package/build/es/src/faq-category-v2-category-category.types.d.ts +0 -357
- package/build/es/src/faq-category-v2-category-category.types.js +0 -14
- package/build/es/src/faq-category-v2-category-category.types.js.map +0 -1
- package/build/es/src/faq-category-v2-category-category.universal.js +0 -299
- package/build/es/src/faq-category-v2-category-category.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/faq-category-v2-category-category.context.d.ts +0 -21
- package/build/internal/cjs/src/faq-category-v2-category-category.context.js +0 -26
- package/build/internal/cjs/src/faq-category-v2-category-category.context.js.map +0 -1
- package/build/internal/cjs/src/faq-category-v2-category-category.http.d.ts +0 -24
- package/build/internal/cjs/src/faq-category-v2-category-category.http.js +0 -395
- package/build/internal/cjs/src/faq-category-v2-category-category.http.js.map +0 -1
- package/build/internal/cjs/src/faq-category-v2-category-category.meta.d.ts +0 -27
- package/build/internal/cjs/src/faq-category-v2-category-category.meta.js +0 -161
- package/build/internal/cjs/src/faq-category-v2-category-category.meta.js.map +0 -1
- package/build/internal/cjs/src/faq-category-v2-category-category.public.d.ts +0 -72
- package/build/internal/cjs/src/faq-category-v2-category-category.public.js +0 -98
- package/build/internal/cjs/src/faq-category-v2-category-category.public.js.map +0 -1
- package/build/internal/cjs/src/faq-category-v2-category-category.types.d.ts +0 -357
- package/build/internal/cjs/src/faq-category-v2-category-category.types.js +0 -17
- package/build/internal/cjs/src/faq-category-v2-category-category.types.js.map +0 -1
- package/build/internal/cjs/src/faq-category-v2-category-category.universal.js +0 -332
- package/build/internal/cjs/src/faq-category-v2-category-category.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/faq-category-v2-category-category.context.d.ts +0 -21
- package/build/internal/es/src/faq-category-v2-category-category.context.js +0 -21
- package/build/internal/es/src/faq-category-v2-category-category.context.js.map +0 -1
- package/build/internal/es/src/faq-category-v2-category-category.http.d.ts +0 -24
- package/build/internal/es/src/faq-category-v2-category-category.http.js +0 -385
- package/build/internal/es/src/faq-category-v2-category-category.http.js.map +0 -1
- package/build/internal/es/src/faq-category-v2-category-category.meta.d.ts +0 -27
- package/build/internal/es/src/faq-category-v2-category-category.meta.js +0 -128
- package/build/internal/es/src/faq-category-v2-category-category.meta.js.map +0 -1
- package/build/internal/es/src/faq-category-v2-category-category.public.d.ts +0 -72
- package/build/internal/es/src/faq-category-v2-category-category.public.js +0 -86
- package/build/internal/es/src/faq-category-v2-category-category.public.js.map +0 -1
- package/build/internal/es/src/faq-category-v2-category-category.types.d.ts +0 -357
- package/build/internal/es/src/faq-category-v2-category-category.types.js +0 -14
- package/build/internal/es/src/faq-category-v2-category-category.types.js.map +0 -1
- package/build/internal/es/src/faq-category-v2-category-category.universal.js +0 -299
- package/build/internal/es/src/faq-category-v2-category-category.universal.js.map +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Categories are themed groupings of FAQ question entries that a site owner can create to organize their
|
|
3
3
|
* FAQ questions (e.g., Shipping, Returns, etc.).
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
interface Category {
|
|
6
6
|
/**
|
|
7
7
|
* Category ID.
|
|
8
8
|
* @format GUID
|
|
@@ -39,7 +39,7 @@ export interface Category {
|
|
|
39
39
|
/** Data Extensions */
|
|
40
40
|
extendedFields?: ExtendedFields;
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
interface ExtendedFields {
|
|
43
43
|
/**
|
|
44
44
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
45
45
|
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
@@ -50,47 +50,47 @@ export interface ExtendedFields {
|
|
|
50
50
|
*/
|
|
51
51
|
namespaces?: Record<string, Record<string, any>>;
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
interface CreateCategoryRequest {
|
|
54
54
|
/** Category to be created. */
|
|
55
55
|
category: Category;
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
interface CreateCategoryResponse {
|
|
58
58
|
/** The created Category. */
|
|
59
59
|
category?: Category;
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
interface GetCategoryRequest {
|
|
62
62
|
/**
|
|
63
63
|
* ID of the Category to retrieve.
|
|
64
64
|
* @format GUID
|
|
65
65
|
*/
|
|
66
66
|
categoryId: string;
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
interface GetCategoryResponse {
|
|
69
69
|
/** The requested Category. */
|
|
70
70
|
category?: Category;
|
|
71
71
|
}
|
|
72
|
-
|
|
72
|
+
interface UpdateCategoryRequest {
|
|
73
73
|
/** Category to be updated, may be partial. */
|
|
74
74
|
category: Category;
|
|
75
75
|
}
|
|
76
|
-
|
|
76
|
+
interface UpdateCategoryResponse {
|
|
77
77
|
/** Updated Category. */
|
|
78
78
|
category?: Category;
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
interface DeleteCategoryRequest {
|
|
81
81
|
/**
|
|
82
82
|
* Id of the Category to delete.
|
|
83
83
|
* @format GUID
|
|
84
84
|
*/
|
|
85
85
|
categoryId: string;
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
interface DeleteCategoryResponse {
|
|
88
88
|
}
|
|
89
|
-
|
|
89
|
+
interface ListCategoriesRequest {
|
|
90
90
|
/** Request more categories using cursor paging. */
|
|
91
91
|
paging?: CursorPaging;
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
interface CursorPaging {
|
|
94
94
|
/**
|
|
95
95
|
* Maximum number of items to return in the results.
|
|
96
96
|
* @max 100
|
|
@@ -105,13 +105,13 @@ export interface CursorPaging {
|
|
|
105
105
|
*/
|
|
106
106
|
cursor?: string | null;
|
|
107
107
|
}
|
|
108
|
-
|
|
108
|
+
interface ListCategoriesResponse {
|
|
109
109
|
/** List of Categories. */
|
|
110
110
|
categories?: Category[];
|
|
111
111
|
/** Paging metadata */
|
|
112
112
|
pagingMetadata?: PagingMetadataV2;
|
|
113
113
|
}
|
|
114
|
-
|
|
114
|
+
interface PagingMetadataV2 {
|
|
115
115
|
/** Number of items returned in the response. */
|
|
116
116
|
count?: number | null;
|
|
117
117
|
/** Offset that was requested. */
|
|
@@ -123,7 +123,7 @@ export interface PagingMetadataV2 {
|
|
|
123
123
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
124
124
|
cursors?: Cursors;
|
|
125
125
|
}
|
|
126
|
-
|
|
126
|
+
interface Cursors {
|
|
127
127
|
/**
|
|
128
128
|
* Cursor string pointing to the next page in the list of results.
|
|
129
129
|
* @maxLength 16000
|
|
@@ -135,11 +135,11 @@ export interface Cursors {
|
|
|
135
135
|
*/
|
|
136
136
|
prev?: string | null;
|
|
137
137
|
}
|
|
138
|
-
|
|
138
|
+
interface QueryCategoriesRequest {
|
|
139
139
|
/** WQL expression. */
|
|
140
140
|
query?: CursorQuery;
|
|
141
141
|
}
|
|
142
|
-
|
|
142
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
143
143
|
/**
|
|
144
144
|
* Cursor paging options.
|
|
145
145
|
*
|
|
@@ -161,7 +161,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
161
161
|
sort?: Sorting[];
|
|
162
162
|
}
|
|
163
163
|
/** @oneof */
|
|
164
|
-
|
|
164
|
+
interface CursorQueryPagingMethodOneOf {
|
|
165
165
|
/**
|
|
166
166
|
* Cursor paging options.
|
|
167
167
|
*
|
|
@@ -169,7 +169,7 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
169
169
|
*/
|
|
170
170
|
cursorPaging?: CursorPaging;
|
|
171
171
|
}
|
|
172
|
-
|
|
172
|
+
interface Sorting {
|
|
173
173
|
/**
|
|
174
174
|
* Name of the field to sort by.
|
|
175
175
|
* @maxLength 512
|
|
@@ -178,17 +178,17 @@ export interface Sorting {
|
|
|
178
178
|
/** Sort order. */
|
|
179
179
|
order?: SortOrder;
|
|
180
180
|
}
|
|
181
|
-
|
|
181
|
+
declare enum SortOrder {
|
|
182
182
|
ASC = "ASC",
|
|
183
183
|
DESC = "DESC"
|
|
184
184
|
}
|
|
185
|
-
|
|
185
|
+
interface QueryCategoriesResponse {
|
|
186
186
|
/** List of Categories. */
|
|
187
187
|
categories?: Category[];
|
|
188
188
|
/** Paging metadata */
|
|
189
189
|
pagingMetadata?: CursorPagingMetadata;
|
|
190
190
|
}
|
|
191
|
-
|
|
191
|
+
interface CursorPagingMetadata {
|
|
192
192
|
/** Number of items returned in current page. */
|
|
193
193
|
count?: number | null;
|
|
194
194
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
@@ -201,7 +201,7 @@ export interface CursorPagingMetadata {
|
|
|
201
201
|
*/
|
|
202
202
|
hasNext?: boolean | null;
|
|
203
203
|
}
|
|
204
|
-
|
|
204
|
+
interface UpdateExtendedFieldsRequest {
|
|
205
205
|
/** ID of the entity to update. */
|
|
206
206
|
_id: string;
|
|
207
207
|
/** Identifier for the app whose extended fields are being updated. */
|
|
@@ -209,11 +209,11 @@ export interface UpdateExtendedFieldsRequest {
|
|
|
209
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
210
|
namespaceData: Record<string, any> | null;
|
|
211
211
|
}
|
|
212
|
-
|
|
212
|
+
interface UpdateExtendedFieldsResponse {
|
|
213
213
|
/** Updated Category. */
|
|
214
214
|
category?: Category;
|
|
215
215
|
}
|
|
216
|
-
|
|
216
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
217
217
|
createdEvent?: EntityCreatedEvent;
|
|
218
218
|
updatedEvent?: EntityUpdatedEvent;
|
|
219
219
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -256,19 +256,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
256
256
|
entityEventSequence?: string | null;
|
|
257
257
|
}
|
|
258
258
|
/** @oneof */
|
|
259
|
-
|
|
259
|
+
interface DomainEventBodyOneOf {
|
|
260
260
|
createdEvent?: EntityCreatedEvent;
|
|
261
261
|
updatedEvent?: EntityUpdatedEvent;
|
|
262
262
|
deletedEvent?: EntityDeletedEvent;
|
|
263
263
|
actionEvent?: ActionEvent;
|
|
264
264
|
}
|
|
265
|
-
|
|
265
|
+
interface EntityCreatedEvent {
|
|
266
266
|
entity?: string;
|
|
267
267
|
}
|
|
268
|
-
|
|
268
|
+
interface RestoreInfo {
|
|
269
269
|
deletedDate?: Date | null;
|
|
270
270
|
}
|
|
271
|
-
|
|
271
|
+
interface EntityUpdatedEvent {
|
|
272
272
|
/**
|
|
273
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
274
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -276,14 +276,14 @@ export interface EntityUpdatedEvent {
|
|
|
276
276
|
*/
|
|
277
277
|
currentEntity?: string;
|
|
278
278
|
}
|
|
279
|
-
|
|
279
|
+
interface EntityDeletedEvent {
|
|
280
280
|
/** Entity that was deleted */
|
|
281
281
|
deletedEntity?: string | null;
|
|
282
282
|
}
|
|
283
|
-
|
|
283
|
+
interface ActionEvent {
|
|
284
284
|
body?: string;
|
|
285
285
|
}
|
|
286
|
-
|
|
286
|
+
interface MessageEnvelope {
|
|
287
287
|
/**
|
|
288
288
|
* App instance ID.
|
|
289
289
|
* @format GUID
|
|
@@ -299,7 +299,7 @@ export interface MessageEnvelope {
|
|
|
299
299
|
/** Stringify payload. */
|
|
300
300
|
data?: string;
|
|
301
301
|
}
|
|
302
|
-
|
|
302
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
303
303
|
/**
|
|
304
304
|
* ID of a site visitor that has not logged in to the site.
|
|
305
305
|
* @format GUID
|
|
@@ -324,7 +324,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
324
324
|
identityType?: WebhookIdentityType;
|
|
325
325
|
}
|
|
326
326
|
/** @oneof */
|
|
327
|
-
|
|
327
|
+
interface IdentificationDataIdOneOf {
|
|
328
328
|
/**
|
|
329
329
|
* ID of a site visitor that has not logged in to the site.
|
|
330
330
|
* @format GUID
|
|
@@ -346,14 +346,14 @@ export interface IdentificationDataIdOneOf {
|
|
|
346
346
|
*/
|
|
347
347
|
appId?: string;
|
|
348
348
|
}
|
|
349
|
-
|
|
349
|
+
declare enum WebhookIdentityType {
|
|
350
350
|
UNKNOWN = "UNKNOWN",
|
|
351
351
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
352
352
|
MEMBER = "MEMBER",
|
|
353
353
|
WIX_USER = "WIX_USER",
|
|
354
354
|
APP = "APP"
|
|
355
355
|
}
|
|
356
|
-
|
|
356
|
+
interface BaseEventMetadata {
|
|
357
357
|
/**
|
|
358
358
|
* App instance ID.
|
|
359
359
|
* @format GUID
|
|
@@ -367,7 +367,7 @@ export interface BaseEventMetadata {
|
|
|
367
367
|
/** The identification type and identity data. */
|
|
368
368
|
identity?: IdentificationData;
|
|
369
369
|
}
|
|
370
|
-
|
|
370
|
+
interface EventMetadata extends BaseEventMetadata {
|
|
371
371
|
/**
|
|
372
372
|
* Unique event ID.
|
|
373
373
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -405,100 +405,18 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
405
405
|
*/
|
|
406
406
|
entityEventSequence?: string | null;
|
|
407
407
|
}
|
|
408
|
-
|
|
408
|
+
interface CategoryCreatedEnvelope {
|
|
409
409
|
entity: Category;
|
|
410
410
|
metadata: EventMetadata;
|
|
411
411
|
}
|
|
412
|
-
|
|
413
|
-
* @permissionScopeId SCOPE.DC-LABS.MANAGE-FAQ
|
|
414
|
-
* @permissionScope Read FAQ
|
|
415
|
-
* @permissionScopeId SCOPE.DC-LABS.READ-FAQ
|
|
416
|
-
* @permissionId FAQ.READ_CATEGORIES
|
|
417
|
-
* @webhook
|
|
418
|
-
* @eventType wix.faq.category.v2.category_created
|
|
419
|
-
* @serviceIdentifier wix.faq.category.v2.CategoryService
|
|
420
|
-
* @slug created
|
|
421
|
-
*/
|
|
422
|
-
export declare function onCategoryCreated(handler: (event: CategoryCreatedEnvelope) => void | Promise<void>): void;
|
|
423
|
-
export interface CategoryDeletedEnvelope {
|
|
412
|
+
interface CategoryDeletedEnvelope {
|
|
424
413
|
metadata: EventMetadata;
|
|
425
414
|
}
|
|
426
|
-
|
|
427
|
-
* @permissionScopeId SCOPE.DC-LABS.MANAGE-FAQ
|
|
428
|
-
* @permissionScope Read FAQ
|
|
429
|
-
* @permissionScopeId SCOPE.DC-LABS.READ-FAQ
|
|
430
|
-
* @permissionId FAQ.READ_CATEGORIES
|
|
431
|
-
* @webhook
|
|
432
|
-
* @eventType wix.faq.category.v2.category_deleted
|
|
433
|
-
* @serviceIdentifier wix.faq.category.v2.CategoryService
|
|
434
|
-
* @slug deleted
|
|
435
|
-
*/
|
|
436
|
-
export declare function onCategoryDeleted(handler: (event: CategoryDeletedEnvelope) => void | Promise<void>): void;
|
|
437
|
-
export interface CategoryUpdatedEnvelope {
|
|
415
|
+
interface CategoryUpdatedEnvelope {
|
|
438
416
|
entity: Category;
|
|
439
417
|
metadata: EventMetadata;
|
|
440
418
|
}
|
|
441
|
-
|
|
442
|
-
* @permissionScopeId SCOPE.DC-LABS.MANAGE-FAQ
|
|
443
|
-
* @permissionScope Read FAQ
|
|
444
|
-
* @permissionScopeId SCOPE.DC-LABS.READ-FAQ
|
|
445
|
-
* @permissionId FAQ.READ_CATEGORIES
|
|
446
|
-
* @webhook
|
|
447
|
-
* @eventType wix.faq.category.v2.category_updated
|
|
448
|
-
* @serviceIdentifier wix.faq.category.v2.CategoryService
|
|
449
|
-
* @slug updated
|
|
450
|
-
*/
|
|
451
|
-
export declare function onCategoryUpdated(handler: (event: CategoryUpdatedEnvelope) => void | Promise<void>): void;
|
|
452
|
-
/**
|
|
453
|
-
* Creates a new Category.
|
|
454
|
-
* @param category - Category to be created.
|
|
455
|
-
* @public
|
|
456
|
-
* @requiredField category
|
|
457
|
-
* @requiredField category.title
|
|
458
|
-
* @permissionId FAQ.CREATE_CATEGORY
|
|
459
|
-
* @permissionScope Manage FAQ
|
|
460
|
-
* @permissionScopeId SCOPE.DC-LABS.MANAGE-FAQ
|
|
461
|
-
* @applicableIdentity APP
|
|
462
|
-
* @returns The created Category.
|
|
463
|
-
* @fqn wix.faq.category.v2.CategoryService.CreateCategory
|
|
464
|
-
*/
|
|
465
|
-
export declare function createCategory(category: Category): Promise<Category>;
|
|
466
|
-
/**
|
|
467
|
-
* Retrieves a single Category by id.
|
|
468
|
-
* @param categoryId - ID of the Category to retrieve.
|
|
469
|
-
* @public
|
|
470
|
-
* @requiredField categoryId
|
|
471
|
-
* @permissionId FAQ.READ_CATEGORIES
|
|
472
|
-
* @permissionScope Manage FAQ
|
|
473
|
-
* @permissionScopeId SCOPE.DC-LABS.MANAGE-FAQ
|
|
474
|
-
* @permissionScope Read FAQ
|
|
475
|
-
* @permissionScopeId SCOPE.DC-LABS.READ-FAQ
|
|
476
|
-
* @applicableIdentity APP
|
|
477
|
-
* @applicableIdentity VISITOR
|
|
478
|
-
* @returns The requested Category.
|
|
479
|
-
* @fqn wix.faq.category.v2.CategoryService.GetCategory
|
|
480
|
-
*/
|
|
481
|
-
export declare function getCategory(categoryId: string): Promise<Category>;
|
|
482
|
-
/**
|
|
483
|
-
* Updates a Category.
|
|
484
|
-
*
|
|
485
|
-
* Each time the Category is updated, `revision` increments by 1.
|
|
486
|
-
* The current `revision` must be passed when updating the Category.
|
|
487
|
-
* This ensures you're working with the latest Category and prevents unintended overwrites.
|
|
488
|
-
* @param _id - Category ID.
|
|
489
|
-
* @public
|
|
490
|
-
* @requiredField _id
|
|
491
|
-
* @requiredField category
|
|
492
|
-
* @requiredField category.revision
|
|
493
|
-
* @permissionId FAQ.UPDATE_CATEGORY
|
|
494
|
-
* @permissionScope Manage FAQ
|
|
495
|
-
* @permissionScopeId SCOPE.DC-LABS.MANAGE-FAQ
|
|
496
|
-
* @applicableIdentity APP
|
|
497
|
-
* @returns Updated Category.
|
|
498
|
-
* @fqn wix.faq.category.v2.CategoryService.UpdateCategory
|
|
499
|
-
*/
|
|
500
|
-
export declare function updateCategory(_id: string | null, category: UpdateCategory): Promise<Category>;
|
|
501
|
-
export interface UpdateCategory {
|
|
419
|
+
interface UpdateCategory {
|
|
502
420
|
/**
|
|
503
421
|
* Category ID.
|
|
504
422
|
* @format GUID
|
|
@@ -535,49 +453,10 @@ export interface UpdateCategory {
|
|
|
535
453
|
/** Data Extensions */
|
|
536
454
|
extendedFields?: ExtendedFields;
|
|
537
455
|
}
|
|
538
|
-
|
|
539
|
-
* Deletes a Category.
|
|
540
|
-
* Deleting a Category permanently removes them from the Category List.
|
|
541
|
-
* @param categoryId - Id of the Category to delete.
|
|
542
|
-
* @public
|
|
543
|
-
* @requiredField categoryId
|
|
544
|
-
* @permissionId FAQ.DELETE_CATEGORY
|
|
545
|
-
* @permissionScope Manage FAQ
|
|
546
|
-
* @permissionScopeId SCOPE.DC-LABS.MANAGE-FAQ
|
|
547
|
-
* @applicableIdentity APP
|
|
548
|
-
* @fqn wix.faq.category.v2.CategoryService.DeleteCategory
|
|
549
|
-
*/
|
|
550
|
-
export declare function deleteCategory(categoryId: string): Promise<void>;
|
|
551
|
-
/**
|
|
552
|
-
* Retrieves categories.
|
|
553
|
-
* @public
|
|
554
|
-
* @permissionId FAQ.READ_CATEGORIES
|
|
555
|
-
* @permissionScope Manage FAQ
|
|
556
|
-
* @permissionScopeId SCOPE.DC-LABS.MANAGE-FAQ
|
|
557
|
-
* @permissionScope Read FAQ
|
|
558
|
-
* @permissionScopeId SCOPE.DC-LABS.READ-FAQ
|
|
559
|
-
* @applicableIdentity APP
|
|
560
|
-
* @applicableIdentity VISITOR
|
|
561
|
-
* @fqn wix.faq.category.v2.CategoryService.ListCategories
|
|
562
|
-
*/
|
|
563
|
-
export declare function listCategories(options?: ListCategoriesOptions): Promise<ListCategoriesResponse>;
|
|
564
|
-
export interface ListCategoriesOptions {
|
|
456
|
+
interface ListCategoriesOptions {
|
|
565
457
|
/** Request more categories using cursor paging. */
|
|
566
458
|
paging?: CursorPaging;
|
|
567
459
|
}
|
|
568
|
-
/**
|
|
569
|
-
* Retrieves a list of Categories, given the provided [paging, filtering, and sorting].
|
|
570
|
-
* @public
|
|
571
|
-
* @permissionScope Manage FAQ
|
|
572
|
-
* @permissionScopeId SCOPE.DC-LABS.MANAGE-FAQ
|
|
573
|
-
* @permissionScope Read FAQ
|
|
574
|
-
* @permissionScopeId SCOPE.DC-LABS.READ-FAQ
|
|
575
|
-
* @permissionId FAQ.READ_CATEGORIES
|
|
576
|
-
* @applicableIdentity APP
|
|
577
|
-
* @applicableIdentity VISITOR
|
|
578
|
-
* @fqn wix.faq.category.v2.CategoryService.QueryCategories
|
|
579
|
-
*/
|
|
580
|
-
export declare function queryCategories(): CategoriesQueryBuilder;
|
|
581
460
|
interface QueryCursorResult {
|
|
582
461
|
cursors: Cursors;
|
|
583
462
|
hasNext: () => boolean;
|
|
@@ -585,13 +464,13 @@ interface QueryCursorResult {
|
|
|
585
464
|
length: number;
|
|
586
465
|
pageSize: number;
|
|
587
466
|
}
|
|
588
|
-
|
|
467
|
+
interface CategoriesQueryResult extends QueryCursorResult {
|
|
589
468
|
items: Category[];
|
|
590
469
|
query: CategoriesQueryBuilder;
|
|
591
470
|
next: () => Promise<CategoriesQueryResult>;
|
|
592
471
|
prev: () => Promise<CategoriesQueryResult>;
|
|
593
472
|
}
|
|
594
|
-
|
|
473
|
+
interface CategoriesQueryBuilder {
|
|
595
474
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
596
475
|
* @param value - Value to compare against.
|
|
597
476
|
*/
|
|
@@ -636,24 +515,9 @@ export interface CategoriesQueryBuilder {
|
|
|
636
515
|
skipTo: (cursor: string) => CategoriesQueryBuilder;
|
|
637
516
|
find: () => Promise<CategoriesQueryResult>;
|
|
638
517
|
}
|
|
639
|
-
|
|
640
|
-
* Updates extended fields of a Category without incrementing revision
|
|
641
|
-
* @param _id - ID of the entity to update.
|
|
642
|
-
* @param namespace - Identifier for the app whose extended fields are being updated.
|
|
643
|
-
* @public
|
|
644
|
-
* @requiredField _id
|
|
645
|
-
* @requiredField namespace
|
|
646
|
-
* @requiredField options
|
|
647
|
-
* @requiredField options.namespaceData
|
|
648
|
-
* @permissionId FAQ.UPDATE_CATEGORY
|
|
649
|
-
* @permissionScope Manage FAQ
|
|
650
|
-
* @permissionScopeId SCOPE.DC-LABS.MANAGE-FAQ
|
|
651
|
-
* @applicableIdentity APP
|
|
652
|
-
* @fqn wix.faq.category.v2.CategoryService.UpdateExtendedFields
|
|
653
|
-
*/
|
|
654
|
-
export declare function updateExtendedFields(_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse>;
|
|
655
|
-
export interface UpdateExtendedFieldsOptions {
|
|
518
|
+
interface UpdateExtendedFieldsOptions {
|
|
656
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. */
|
|
657
520
|
namespaceData: Record<string, any> | null;
|
|
658
521
|
}
|
|
659
|
-
|
|
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 };
|