@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.
Files changed (134) hide show
  1. package/build/{internal/cjs/src/faq-category-v2-category-category.universal.d.ts → faq-category-v2-category-category.universal-CCCaclcc.d.mts} +47 -183
  2. package/build/{internal/es/src/faq-category-v2-category-category.universal.d.ts → faq-category-v2-category-category.universal-CCCaclcc.d.ts} +47 -183
  3. package/build/index.d.mts +84 -0
  4. package/build/index.d.ts +84 -0
  5. package/build/index.js +770 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +735 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/{cjs/src/faq-category-v2-category-category.universal.d.ts → internal/faq-category-v2-category-category.universal-CCCaclcc.d.mts} +47 -183
  10. package/build/{es/src/faq-category-v2-category-category.universal.d.ts → internal/faq-category-v2-category-category.universal-CCCaclcc.d.ts} +47 -183
  11. package/build/internal/index.d.mts +84 -0
  12. package/build/internal/index.d.ts +84 -0
  13. package/build/internal/index.js +770 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +735 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +245 -0
  18. package/build/internal/meta.d.ts +245 -0
  19. package/build/internal/meta.js +540 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +507 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +245 -0
  24. package/build/meta.d.ts +245 -0
  25. package/build/meta.js +540 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +507 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  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/faq-category-v2-category-category.context.d.ts +0 -21
  40. package/build/cjs/src/faq-category-v2-category-category.context.js +0 -26
  41. package/build/cjs/src/faq-category-v2-category-category.context.js.map +0 -1
  42. package/build/cjs/src/faq-category-v2-category-category.http.d.ts +0 -24
  43. package/build/cjs/src/faq-category-v2-category-category.http.js +0 -395
  44. package/build/cjs/src/faq-category-v2-category-category.http.js.map +0 -1
  45. package/build/cjs/src/faq-category-v2-category-category.meta.d.ts +0 -27
  46. package/build/cjs/src/faq-category-v2-category-category.meta.js +0 -161
  47. package/build/cjs/src/faq-category-v2-category-category.meta.js.map +0 -1
  48. package/build/cjs/src/faq-category-v2-category-category.public.d.ts +0 -72
  49. package/build/cjs/src/faq-category-v2-category-category.public.js +0 -98
  50. package/build/cjs/src/faq-category-v2-category-category.public.js.map +0 -1
  51. package/build/cjs/src/faq-category-v2-category-category.types.d.ts +0 -357
  52. package/build/cjs/src/faq-category-v2-category-category.types.js +0 -17
  53. package/build/cjs/src/faq-category-v2-category-category.types.js.map +0 -1
  54. package/build/cjs/src/faq-category-v2-category-category.universal.js +0 -332
  55. package/build/cjs/src/faq-category-v2-category-category.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/faq-category-v2-category-category.context.d.ts +0 -21
  67. package/build/es/src/faq-category-v2-category-category.context.js +0 -21
  68. package/build/es/src/faq-category-v2-category-category.context.js.map +0 -1
  69. package/build/es/src/faq-category-v2-category-category.http.d.ts +0 -24
  70. package/build/es/src/faq-category-v2-category-category.http.js +0 -385
  71. package/build/es/src/faq-category-v2-category-category.http.js.map +0 -1
  72. package/build/es/src/faq-category-v2-category-category.meta.d.ts +0 -27
  73. package/build/es/src/faq-category-v2-category-category.meta.js +0 -128
  74. package/build/es/src/faq-category-v2-category-category.meta.js.map +0 -1
  75. package/build/es/src/faq-category-v2-category-category.public.d.ts +0 -72
  76. package/build/es/src/faq-category-v2-category-category.public.js +0 -86
  77. package/build/es/src/faq-category-v2-category-category.public.js.map +0 -1
  78. package/build/es/src/faq-category-v2-category-category.types.d.ts +0 -357
  79. package/build/es/src/faq-category-v2-category-category.types.js +0 -14
  80. package/build/es/src/faq-category-v2-category-category.types.js.map +0 -1
  81. package/build/es/src/faq-category-v2-category-category.universal.js +0 -299
  82. package/build/es/src/faq-category-v2-category-category.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/faq-category-v2-category-category.context.d.ts +0 -21
  93. package/build/internal/cjs/src/faq-category-v2-category-category.context.js +0 -26
  94. package/build/internal/cjs/src/faq-category-v2-category-category.context.js.map +0 -1
  95. package/build/internal/cjs/src/faq-category-v2-category-category.http.d.ts +0 -24
  96. package/build/internal/cjs/src/faq-category-v2-category-category.http.js +0 -395
  97. package/build/internal/cjs/src/faq-category-v2-category-category.http.js.map +0 -1
  98. package/build/internal/cjs/src/faq-category-v2-category-category.meta.d.ts +0 -27
  99. package/build/internal/cjs/src/faq-category-v2-category-category.meta.js +0 -161
  100. package/build/internal/cjs/src/faq-category-v2-category-category.meta.js.map +0 -1
  101. package/build/internal/cjs/src/faq-category-v2-category-category.public.d.ts +0 -72
  102. package/build/internal/cjs/src/faq-category-v2-category-category.public.js +0 -98
  103. package/build/internal/cjs/src/faq-category-v2-category-category.public.js.map +0 -1
  104. package/build/internal/cjs/src/faq-category-v2-category-category.types.d.ts +0 -357
  105. package/build/internal/cjs/src/faq-category-v2-category-category.types.js +0 -17
  106. package/build/internal/cjs/src/faq-category-v2-category-category.types.js.map +0 -1
  107. package/build/internal/cjs/src/faq-category-v2-category-category.universal.js +0 -332
  108. package/build/internal/cjs/src/faq-category-v2-category-category.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/faq-category-v2-category-category.context.d.ts +0 -21
  119. package/build/internal/es/src/faq-category-v2-category-category.context.js +0 -21
  120. package/build/internal/es/src/faq-category-v2-category-category.context.js.map +0 -1
  121. package/build/internal/es/src/faq-category-v2-category-category.http.d.ts +0 -24
  122. package/build/internal/es/src/faq-category-v2-category-category.http.js +0 -385
  123. package/build/internal/es/src/faq-category-v2-category-category.http.js.map +0 -1
  124. package/build/internal/es/src/faq-category-v2-category-category.meta.d.ts +0 -27
  125. package/build/internal/es/src/faq-category-v2-category-category.meta.js +0 -128
  126. package/build/internal/es/src/faq-category-v2-category-category.meta.js.map +0 -1
  127. package/build/internal/es/src/faq-category-v2-category-category.public.d.ts +0 -72
  128. package/build/internal/es/src/faq-category-v2-category-category.public.js +0 -86
  129. package/build/internal/es/src/faq-category-v2-category-category.public.js.map +0 -1
  130. package/build/internal/es/src/faq-category-v2-category-category.types.d.ts +0 -357
  131. package/build/internal/es/src/faq-category-v2-category-category.types.js +0 -14
  132. package/build/internal/es/src/faq-category-v2-category-category.types.js.map +0 -1
  133. package/build/internal/es/src/faq-category-v2-category-category.universal.js +0 -299
  134. 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
- export interface Category {
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
- export interface ExtendedFields {
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
- export interface CreateCategoryRequest {
53
+ interface CreateCategoryRequest {
54
54
  /** Category to be created. */
55
55
  category: Category;
56
56
  }
57
- export interface CreateCategoryResponse {
57
+ interface CreateCategoryResponse {
58
58
  /** The created Category. */
59
59
  category?: Category;
60
60
  }
61
- export interface GetCategoryRequest {
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
- export interface GetCategoryResponse {
68
+ interface GetCategoryResponse {
69
69
  /** The requested Category. */
70
70
  category?: Category;
71
71
  }
72
- export interface UpdateCategoryRequest {
72
+ interface UpdateCategoryRequest {
73
73
  /** Category to be updated, may be partial. */
74
74
  category: Category;
75
75
  }
76
- export interface UpdateCategoryResponse {
76
+ interface UpdateCategoryResponse {
77
77
  /** Updated Category. */
78
78
  category?: Category;
79
79
  }
80
- export interface DeleteCategoryRequest {
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
- export interface DeleteCategoryResponse {
87
+ interface DeleteCategoryResponse {
88
88
  }
89
- export interface ListCategoriesRequest {
89
+ interface ListCategoriesRequest {
90
90
  /** Request more categories using cursor paging. */
91
91
  paging?: CursorPaging;
92
92
  }
93
- export interface CursorPaging {
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
- export interface ListCategoriesResponse {
108
+ interface ListCategoriesResponse {
109
109
  /** List of Categories. */
110
110
  categories?: Category[];
111
111
  /** Paging metadata */
112
112
  pagingMetadata?: PagingMetadataV2;
113
113
  }
114
- export interface PagingMetadataV2 {
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
- export interface Cursors {
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
- export interface QueryCategoriesRequest {
138
+ interface QueryCategoriesRequest {
139
139
  /** WQL expression. */
140
140
  query?: CursorQuery;
141
141
  }
142
- export interface CursorQuery extends CursorQueryPagingMethodOneOf {
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
- export interface CursorQueryPagingMethodOneOf {
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
- export interface Sorting {
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
- export declare enum SortOrder {
181
+ declare enum SortOrder {
182
182
  ASC = "ASC",
183
183
  DESC = "DESC"
184
184
  }
185
- export interface QueryCategoriesResponse {
185
+ interface QueryCategoriesResponse {
186
186
  /** List of Categories. */
187
187
  categories?: Category[];
188
188
  /** Paging metadata */
189
189
  pagingMetadata?: CursorPagingMetadata;
190
190
  }
191
- export interface CursorPagingMetadata {
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
- export interface UpdateExtendedFieldsRequest {
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
- export interface UpdateExtendedFieldsResponse {
212
+ interface UpdateExtendedFieldsResponse {
213
213
  /** Updated Category. */
214
214
  category?: Category;
215
215
  }
216
- export interface DomainEvent extends DomainEventBodyOneOf {
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
- export interface DomainEventBodyOneOf {
259
+ interface DomainEventBodyOneOf {
260
260
  createdEvent?: EntityCreatedEvent;
261
261
  updatedEvent?: EntityUpdatedEvent;
262
262
  deletedEvent?: EntityDeletedEvent;
263
263
  actionEvent?: ActionEvent;
264
264
  }
265
- export interface EntityCreatedEvent {
265
+ interface EntityCreatedEvent {
266
266
  entity?: string;
267
267
  }
268
- export interface RestoreInfo {
268
+ interface RestoreInfo {
269
269
  deletedDate?: Date | null;
270
270
  }
271
- export interface EntityUpdatedEvent {
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
- export interface EntityDeletedEvent {
279
+ interface EntityDeletedEvent {
280
280
  /** Entity that was deleted */
281
281
  deletedEntity?: string | null;
282
282
  }
283
- export interface ActionEvent {
283
+ interface ActionEvent {
284
284
  body?: string;
285
285
  }
286
- export interface MessageEnvelope {
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
- export interface IdentificationData extends IdentificationDataIdOneOf {
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
- export interface IdentificationDataIdOneOf {
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
- export declare enum WebhookIdentityType {
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
- export interface BaseEventMetadata {
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
- export interface EventMetadata extends BaseEventMetadata {
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
- export interface CategoryCreatedEnvelope {
408
+ interface CategoryCreatedEnvelope {
409
409
  entity: Category;
410
410
  metadata: EventMetadata;
411
411
  }
412
- /** @permissionScope Manage FAQ
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
- /** @permissionScope Manage FAQ
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
- /** @permissionScope Manage FAQ
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
- export interface CategoriesQueryResult extends QueryCursorResult {
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
- export interface CategoriesQueryBuilder {
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
- export {};
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 };