@wix/auto_sdk_faq_category 1.0.9 → 1.0.11

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 (35) hide show
  1. package/build/{faq-category-v2-category-category.universal-CCCaclcc.d.mts → cjs/faq-category-v2-category-category.universal-VvJYKFEQ.d.ts} +28 -40
  2. package/build/{internal → cjs}/index.d.ts +10 -8
  3. package/build/{internal → cjs}/index.js +8 -5
  4. package/build/cjs/index.js.map +1 -0
  5. package/build/{internal → cjs}/meta.d.ts +4 -2
  6. package/build/{faq-category-v2-category-category.universal-CCCaclcc.d.ts → es/faq-category-v2-category-category.universal-VvJYKFEQ.d.mts} +28 -40
  7. package/build/{internal → es}/index.d.mts +10 -8
  8. package/build/{internal → es}/index.mjs +8 -5
  9. package/build/es/index.mjs.map +1 -0
  10. package/build/{internal → es}/meta.d.mts +4 -2
  11. package/build/internal/{faq-category-v2-category-category.universal-CCCaclcc.d.mts → cjs/faq-category-v2-category-category.universal-VvJYKFEQ.d.ts} +28 -40
  12. package/build/{index.d.ts → internal/cjs/index.d.ts} +10 -8
  13. package/build/{index.js → internal/cjs/index.js} +8 -5
  14. package/build/internal/cjs/index.js.map +1 -0
  15. package/build/{meta.d.ts → internal/cjs/meta.d.ts} +4 -2
  16. package/build/internal/cjs/meta.js.map +1 -0
  17. package/build/internal/{faq-category-v2-category-category.universal-CCCaclcc.d.ts → es/faq-category-v2-category-category.universal-VvJYKFEQ.d.mts} +28 -40
  18. package/build/{index.d.mts → internal/es/index.d.mts} +10 -8
  19. package/build/{index.mjs → internal/es/index.mjs} +8 -5
  20. package/build/internal/es/index.mjs.map +1 -0
  21. package/build/{meta.d.mts → internal/es/meta.d.mts} +4 -2
  22. package/build/internal/es/meta.mjs.map +1 -0
  23. package/package.json +12 -12
  24. package/build/index.js.map +0 -1
  25. package/build/index.mjs.map +0 -1
  26. package/build/internal/index.js.map +0 -1
  27. package/build/internal/index.mjs.map +0 -1
  28. package/build/meta.js.map +0 -1
  29. package/build/meta.mjs.map +0 -1
  30. /package/build/{internal → cjs}/meta.js +0 -0
  31. /package/build/{internal → cjs}/meta.js.map +0 -0
  32. /package/build/{internal → es}/meta.mjs +0 -0
  33. /package/build/{internal → es}/meta.mjs.map +0 -0
  34. /package/build/{meta.js → internal/cjs/meta.js} +0 -0
  35. /package/build/{meta.mjs → internal/es/meta.mjs} +0 -0
@@ -176,12 +176,14 @@ interface Sorting {
176
176
  */
177
177
  fieldName?: string;
178
178
  /** Sort order. */
179
- order?: SortOrder;
179
+ order?: SortOrderWithLiterals;
180
180
  }
181
181
  declare enum SortOrder {
182
182
  ASC = "ASC",
183
183
  DESC = "DESC"
184
184
  }
185
+ /** @enumType */
186
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
185
187
  interface QueryCategoriesResponse {
186
188
  /** List of Categories. */
187
189
  categories?: Category[];
@@ -218,25 +220,21 @@ interface DomainEvent extends DomainEventBodyOneOf {
218
220
  updatedEvent?: EntityUpdatedEvent;
219
221
  deletedEvent?: EntityDeletedEvent;
220
222
  actionEvent?: ActionEvent;
221
- /**
222
- * Unique event ID.
223
- * Allows clients to ignore duplicate webhooks.
224
- */
223
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
225
224
  _id?: string;
226
225
  /**
227
- * Assumes actions are also always typed to an entity_type
228
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
226
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
227
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
229
228
  */
230
229
  entityFqdn?: string;
231
230
  /**
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
231
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
232
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
235
233
  */
236
234
  slug?: string;
237
235
  /** ID of the entity associated with the event. */
238
236
  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 */
237
+ /** 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
238
  eventTime?: Date | null;
241
239
  /**
242
240
  * Whether the event was triggered as a result of a privacy regulation application
@@ -246,12 +244,8 @@ interface DomainEvent extends DomainEventBodyOneOf {
246
244
  /** If present, indicates the action that triggered the event. */
247
245
  originatedFrom?: string | null;
248
246
  /**
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.
247
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
248
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
255
249
  */
256
250
  entityEventSequence?: string | null;
257
251
  }
@@ -277,7 +271,7 @@ interface EntityUpdatedEvent {
277
271
  currentEntity?: string;
278
272
  }
279
273
  interface EntityDeletedEvent {
280
- /** Entity that was deleted */
274
+ /** Entity that was deleted. */
281
275
  deletedEntity?: string | null;
282
276
  }
283
277
  interface ActionEvent {
@@ -321,7 +315,7 @@ interface IdentificationData extends IdentificationDataIdOneOf {
321
315
  */
322
316
  appId?: string;
323
317
  /** @readonly */
324
- identityType?: WebhookIdentityType;
318
+ identityType?: WebhookIdentityTypeWithLiterals;
325
319
  }
326
320
  /** @oneof */
327
321
  interface IdentificationDataIdOneOf {
@@ -353,6 +347,8 @@ declare enum WebhookIdentityType {
353
347
  WIX_USER = "WIX_USER",
354
348
  APP = "APP"
355
349
  }
350
+ /** @enumType */
351
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
356
352
  interface BaseEventMetadata {
357
353
  /**
358
354
  * App instance ID.
@@ -368,25 +364,21 @@ interface BaseEventMetadata {
368
364
  identity?: IdentificationData;
369
365
  }
370
366
  interface EventMetadata extends BaseEventMetadata {
371
- /**
372
- * Unique event ID.
373
- * Allows clients to ignore duplicate webhooks.
374
- */
367
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
375
368
  _id?: string;
376
369
  /**
377
- * Assumes actions are also always typed to an entity_type
378
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
370
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
371
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
379
372
  */
380
373
  entityFqdn?: string;
381
374
  /**
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
375
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
376
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
385
377
  */
386
378
  slug?: string;
387
379
  /** ID of the entity associated with the event. */
388
380
  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 */
381
+ /** 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
382
  eventTime?: Date | null;
391
383
  /**
392
384
  * Whether the event was triggered as a result of a privacy regulation application
@@ -396,12 +388,8 @@ interface EventMetadata extends BaseEventMetadata {
396
388
  /** If present, indicates the action that triggered the event. */
397
389
  originatedFrom?: string | null;
398
390
  /**
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.
391
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
392
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
405
393
  */
406
394
  entityEventSequence?: string | null;
407
395
  }
@@ -482,19 +470,19 @@ interface CategoriesQueryBuilder {
482
470
  /** @param propertyName - Property whose value is compared with `value`.
483
471
  * @param value - Value to compare against.
484
472
  */
485
- ge: (propertyName: 'sortOrder', value: any) => CategoriesQueryBuilder;
473
+ ge: (propertyName: '_id' | 'title' | 'sortOrder', value: any) => CategoriesQueryBuilder;
486
474
  /** @param propertyName - Property whose value is compared with `value`.
487
475
  * @param value - Value to compare against.
488
476
  */
489
- gt: (propertyName: 'sortOrder', value: any) => CategoriesQueryBuilder;
477
+ gt: (propertyName: '_id' | 'title' | 'sortOrder', value: any) => CategoriesQueryBuilder;
490
478
  /** @param propertyName - Property whose value is compared with `value`.
491
479
  * @param value - Value to compare against.
492
480
  */
493
- le: (propertyName: 'sortOrder', value: any) => CategoriesQueryBuilder;
481
+ le: (propertyName: '_id' | 'title' | 'sortOrder', value: any) => CategoriesQueryBuilder;
494
482
  /** @param propertyName - Property whose value is compared with `value`.
495
483
  * @param value - Value to compare against.
496
484
  */
497
- lt: (propertyName: 'sortOrder', value: any) => CategoriesQueryBuilder;
485
+ lt: (propertyName: '_id' | 'title' | 'sortOrder', value: any) => CategoriesQueryBuilder;
498
486
  /** @param propertyName - Property whose value is compared with `string`.
499
487
  * @param string - String to compare against. Case-insensitive.
500
488
  */
@@ -520,4 +508,4 @@ interface UpdateExtendedFieldsOptions {
520
508
  namespaceData: Record<string, any> | null;
521
509
  }
522
510
 
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 };
511
+ export { type EntityDeletedEvent as A, type ActionEvent as B, type Category as C, type DeleteCategoryRequest as D, type ExtendedFields as E, type IdentificationDataIdOneOf as F, type GetCategoryRequest as G, type BaseEventMetadata as H, type IdentificationData as I, type EventMetadata 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 CategoryCreatedEnvelope as e, type CategoryDeletedEnvelope as f, type CategoryUpdatedEnvelope as g, type CreateCategoryRequest as h, type CreateCategoryResponse as i, type GetCategoryResponse as j, type UpdateCategoryRequest as k, type UpdateCategoryResponse as l, type DeleteCategoryResponse as m, type ListCategoriesRequest as n, type CursorPaging as o, type Cursors as p, type CursorQuery as q, type CursorQueryPagingMethodOneOf as r, type Sorting as s, type QueryCategoriesResponse as t, type CursorPagingMetadata as u, type UpdateExtendedFieldsRequest as v, type DomainEvent as w, type DomainEventBodyOneOf as x, type EntityCreatedEvent as y, type EntityUpdatedEvent as z };
@@ -1,7 +1,6 @@
1
- import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
- import { C as Category, U as UpdateCategory, L as ListCategoriesOptions, a as ListCategoriesResponse, b as CategoriesQueryBuilder, c as UpdateExtendedFieldsOptions, d as UpdateExtendedFieldsResponse } from './faq-category-v2-category-category.universal-CCCaclcc.js';
3
- export { A as ActionEvent, B as BaseEventMetadata, K as CategoriesQueryResult, F as CategoryCreatedEnvelope, H as CategoryDeletedEnvelope, J as CategoryUpdatedEnvelope, e as CreateCategoryRequest, f as CreateCategoryResponse, l as CursorPaging, r as CursorPagingMetadata, n as CursorQuery, o as CursorQueryPagingMethodOneOf, m as Cursors, D as DeleteCategoryRequest, j as DeleteCategoryResponse, t as DomainEvent, u as DomainEventBodyOneOf, v as EntityCreatedEvent, x as EntityDeletedEvent, w as EntityUpdatedEvent, z as EventMetadata, E as ExtendedFields, G as GetCategoryRequest, g as GetCategoryResponse, I as IdentificationData, y as IdentificationDataIdOneOf, k as ListCategoriesRequest, M as MessageEnvelope, P as PagingMetadataV2, Q as QueryCategoriesRequest, q as QueryCategoriesResponse, R as RestoreInfo, S as SortOrder, p as Sorting, h as UpdateCategoryRequest, i as UpdateCategoryResponse, s as UpdateExtendedFieldsRequest, W as WebhookIdentityType } from './faq-category-v2-category-category.universal-CCCaclcc.js';
4
- import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
1
+ import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { C as Category, U as UpdateCategory, L as ListCategoriesOptions, a as ListCategoriesResponse, b as CategoriesQueryBuilder, c as UpdateExtendedFieldsOptions, d as UpdateExtendedFieldsResponse, e as CategoryCreatedEnvelope, f as CategoryDeletedEnvelope, g as CategoryUpdatedEnvelope } from './faq-category-v2-category-category.universal-VvJYKFEQ.js';
3
+ export { B as ActionEvent, H as BaseEventMetadata, K as CategoriesQueryResult, h as CreateCategoryRequest, i as CreateCategoryResponse, o as CursorPaging, u as CursorPagingMetadata, q as CursorQuery, r as CursorQueryPagingMethodOneOf, p as Cursors, D as DeleteCategoryRequest, m as DeleteCategoryResponse, w as DomainEvent, x as DomainEventBodyOneOf, y as EntityCreatedEvent, A as EntityDeletedEvent, z as EntityUpdatedEvent, J as EventMetadata, E as ExtendedFields, G as GetCategoryRequest, j as GetCategoryResponse, I as IdentificationData, F as IdentificationDataIdOneOf, n as ListCategoriesRequest, M as MessageEnvelope, P as PagingMetadataV2, Q as QueryCategoriesRequest, t as QueryCategoriesResponse, R as RestoreInfo, S as SortOrder, s as Sorting, k as UpdateCategoryRequest, l as UpdateCategoryResponse, v as UpdateExtendedFieldsRequest, W as WebhookIdentityType } from './faq-category-v2-category-category.universal-VvJYKFEQ.js';
5
4
 
6
5
  declare function createCategory$1(httpClient: HttpClient): CreateCategorySignature;
7
6
  interface CreateCategorySignature {
@@ -66,6 +65,9 @@ interface UpdateExtendedFieldsSignature {
66
65
  */
67
66
  (_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse>;
68
67
  }
68
+ declare const onCategoryCreated$1: EventDefinition<CategoryCreatedEnvelope, "wix.faq.category.v2.category_created">;
69
+ declare const onCategoryDeleted$1: EventDefinition<CategoryDeletedEnvelope, "wix.faq.category.v2.category_deleted">;
70
+ declare const onCategoryUpdated$1: EventDefinition<CategoryUpdatedEnvelope, "wix.faq.category.v2.category_updated">;
69
71
 
70
72
  declare const createCategory: MaybeContext<BuildRESTFunction<typeof createCategory$1> & typeof createCategory$1>;
71
73
  declare const getCategory: MaybeContext<BuildRESTFunction<typeof getCategory$1> & typeof getCategory$1>;
@@ -75,10 +77,10 @@ declare const listCategories: MaybeContext<BuildRESTFunction<typeof listCategori
75
77
  declare const queryCategories: MaybeContext<BuildRESTFunction<typeof queryCategories$1> & typeof queryCategories$1>;
76
78
  declare const updateExtendedFields: MaybeContext<BuildRESTFunction<typeof updateExtendedFields$1> & typeof updateExtendedFields$1>;
77
79
  /** */
78
- declare const onCategoryCreated: ReturnType<typeof createEventModule<typeof publicOnCategoryCreated>>;
80
+ declare const onCategoryCreated: BuildEventDefinition<typeof onCategoryCreated$1>;
79
81
  /** */
80
- declare const onCategoryDeleted: ReturnType<typeof createEventModule<typeof publicOnCategoryDeleted>>;
82
+ declare const onCategoryDeleted: BuildEventDefinition<typeof onCategoryDeleted$1>;
81
83
  /** */
82
- declare const onCategoryUpdated: ReturnType<typeof createEventModule<typeof publicOnCategoryUpdated>>;
84
+ declare const onCategoryUpdated: BuildEventDefinition<typeof onCategoryUpdated$1>;
83
85
 
84
- export { CategoriesQueryBuilder, Category, ListCategoriesOptions, ListCategoriesResponse, UpdateCategory, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, createCategory, deleteCategory, getCategory, listCategories, onCategoryCreated, onCategoryDeleted, onCategoryUpdated, queryCategories, updateCategory, updateExtendedFields };
86
+ export { CategoriesQueryBuilder, Category, CategoryCreatedEnvelope, CategoryDeletedEnvelope, CategoryUpdatedEnvelope, ListCategoriesOptions, ListCategoriesResponse, UpdateCategory, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, createCategory, deleteCategory, getCategory, listCategories, onCategoryCreated, onCategoryDeleted, onCategoryUpdated, queryCategories, updateCategory, updateExtendedFields };
@@ -39,7 +39,7 @@ module.exports = __toCommonJS(index_exports);
39
39
  var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
40
40
  var import_float3 = require("@wix/sdk-runtime/transformations/float");
41
41
  var import_timestamp3 = require("@wix/sdk-runtime/transformations/timestamp");
42
- var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
42
+ var import_transform_paths3 = require("@wix/sdk-runtime/transformations/transform-paths");
43
43
  var import_sdk_types = require("@wix/sdk-types");
44
44
 
45
45
  // src/faq-category-v2-category-category.universal.ts
@@ -418,6 +418,7 @@ function updateExtendedFields(payload) {
418
418
  }
419
419
 
420
420
  // src/faq-category-v2-category-category.universal.ts
421
+ var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
421
422
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
422
423
  SortOrder2["ASC"] = "ASC";
423
424
  SortOrder2["DESC"] = "DESC";
@@ -576,7 +577,9 @@ function queryCategories2() {
576
577
  });
577
578
  },
578
579
  responseTransformer: ({ data }) => {
579
- const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(data);
580
+ const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
581
+ (0, import_transform_paths2.transformPaths)(data, [])
582
+ );
580
583
  return {
581
584
  items: transformedData?.categories,
582
585
  pagingMetadata: transformedData?.pagingMetadata
@@ -682,7 +685,7 @@ var onCategoryCreated = (0, import_sdk_types.EventDefinition)(
682
685
  "wix.faq.category.v2.category_created",
683
686
  true,
684
687
  (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
685
- (0, import_transform_paths2.transformPaths)(event, [
688
+ (0, import_transform_paths3.transformPaths)(event, [
686
689
  {
687
690
  transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
688
691
  paths: [
@@ -702,7 +705,7 @@ var onCategoryDeleted = (0, import_sdk_types.EventDefinition)(
702
705
  "wix.faq.category.v2.category_deleted",
703
706
  true,
704
707
  (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
705
- (0, import_transform_paths2.transformPaths)(event, [
708
+ (0, import_transform_paths3.transformPaths)(event, [
706
709
  {
707
710
  transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
708
711
  paths: [
@@ -722,7 +725,7 @@ var onCategoryUpdated = (0, import_sdk_types.EventDefinition)(
722
725
  "wix.faq.category.v2.category_updated",
723
726
  true,
724
727
  (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
725
- (0, import_transform_paths2.transformPaths)(event, [
728
+ (0, import_transform_paths3.transformPaths)(event, [
726
729
  {
727
730
  transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
728
731
  paths: [
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../index.ts","../../src/faq-category-v2-category-category.public.ts","../../src/faq-category-v2-category-category.universal.ts","../../src/faq-category-v2-category-category.http.ts","../../src/faq-category-v2-category-category.context.ts"],"sourcesContent":["export * from './src/faq-category-v2-category-category.context.js';\n","import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n CategoriesQueryBuilder,\n Category,\n CategoryCreatedEnvelope,\n CategoryDeletedEnvelope,\n CategoryUpdatedEnvelope,\n ListCategoriesOptions,\n ListCategoriesResponse,\n UpdateCategory,\n UpdateExtendedFieldsOptions,\n UpdateExtendedFieldsResponse,\n createCategory as universalCreateCategory,\n deleteCategory as universalDeleteCategory,\n getCategory as universalGetCategory,\n listCategories as universalListCategories,\n queryCategories as universalQueryCategories,\n updateCategory as universalUpdateCategory,\n updateExtendedFields as universalUpdateExtendedFields,\n} from './faq-category-v2-category-category.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/faq' };\n\nexport function createCategory(\n httpClient: HttpClient\n): CreateCategorySignature {\n return (category: NonNullablePaths<Category, `title`>) =>\n universalCreateCategory(\n category,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateCategorySignature {\n /**\n * Creates a new Category.\n * @param - Category to be created.\n * @returns The created Category.\n */\n (category: Category): Promise<Category>;\n}\n\nexport function getCategory(httpClient: HttpClient): GetCategorySignature {\n return (categoryId: string) =>\n universalGetCategory(\n categoryId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetCategorySignature {\n /**\n * Retrieves a single Category by id.\n * @param - ID of the Category to retrieve.\n * @returns The requested Category.\n */\n (categoryId: string): Promise<Category>;\n}\n\nexport function updateCategory(\n httpClient: HttpClient\n): UpdateCategorySignature {\n return (\n _id: string,\n category: NonNullablePaths<UpdateCategory, `revision`>\n ) =>\n universalUpdateCategory(\n _id,\n category,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateCategorySignature {\n /**\n * Updates a Category.\n *\n * Each time the Category is updated, `revision` increments by 1.\n * The current `revision` must be passed when updating the Category.\n * This ensures you're working with the latest Category and prevents unintended overwrites.\n * @param - Category ID.\n * @returns Updated Category.\n */\n (_id: string, category: UpdateCategory): Promise<Category>;\n}\n\nexport function deleteCategory(\n httpClient: HttpClient\n): DeleteCategorySignature {\n return (categoryId: string) =>\n universalDeleteCategory(\n categoryId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteCategorySignature {\n /**\n * Deletes a Category.\n * Deleting a Category permanently removes them from the Category List.\n * @param - Id of the Category to delete.\n */\n (categoryId: string): Promise<void>;\n}\n\nexport function listCategories(\n httpClient: HttpClient\n): ListCategoriesSignature {\n return (options?: ListCategoriesOptions) =>\n universalListCategories(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListCategoriesSignature {\n /**\n * Retrieves categories.\n */\n (\n options?: ListCategoriesOptions | undefined\n ): Promise<ListCategoriesResponse>;\n}\n\nexport function queryCategories(\n httpClient: HttpClient\n): QueryCategoriesSignature {\n return () =>\n universalQueryCategories(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryCategoriesSignature {\n /**\n * Retrieves a list of Categories, given the provided [paging, filtering, and sorting].\n */\n (): CategoriesQueryBuilder;\n}\n\nexport function updateExtendedFields(\n httpClient: HttpClient\n): UpdateExtendedFieldsSignature {\n return (\n _id: string,\n namespace: string,\n options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`>\n ) =>\n universalUpdateExtendedFields(\n _id,\n namespace,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateExtendedFieldsSignature {\n /**\n * Updates extended fields of a Category without incrementing revision\n * @param - ID of the entity to update.\n * @param - Identifier for the app whose extended fields are being updated.\n */\n (\n _id: string,\n namespace: string,\n options: UpdateExtendedFieldsOptions\n ): Promise<UpdateExtendedFieldsResponse>;\n}\n\nexport const onCategoryCreated = EventDefinition(\n 'wix.faq.category.v2.category_created',\n true,\n (event: CategoryCreatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'entity.sortOrder' }],\n },\n ])\n )\n)<CategoryCreatedEnvelope>();\nexport const onCategoryDeleted = EventDefinition(\n 'wix.faq.category.v2.category_deleted',\n true,\n (event: CategoryDeletedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'undefined.createdDate' },\n { path: 'undefined.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'undefined.sortOrder' }],\n },\n ])\n )\n)<CategoryDeletedEnvelope>();\nexport const onCategoryUpdated = EventDefinition(\n 'wix.faq.category.v2.category_updated',\n true,\n (event: CategoryUpdatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'entity.sortOrder' }],\n },\n ])\n )\n)<CategoryUpdatedEnvelope>();\n\nexport {\n ActionEvent,\n BaseEventMetadata,\n CategoriesQueryBuilder,\n CategoriesQueryResult,\n Category,\n CategoryCreatedEnvelope,\n CategoryDeletedEnvelope,\n CategoryUpdatedEnvelope,\n CreateCategoryRequest,\n CreateCategoryResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n DeleteCategoryRequest,\n DeleteCategoryResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n ExtendedFields,\n GetCategoryRequest,\n GetCategoryResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n ListCategoriesOptions,\n ListCategoriesRequest,\n ListCategoriesResponse,\n MessageEnvelope,\n PagingMetadataV2,\n QueryCategoriesRequest,\n QueryCategoriesResponse,\n RestoreInfo,\n SortOrder,\n Sorting,\n UpdateCategory,\n UpdateCategoryRequest,\n UpdateCategoryResponse,\n UpdateExtendedFieldsOptions,\n UpdateExtendedFieldsRequest,\n UpdateExtendedFieldsResponse,\n WebhookIdentityType,\n} from './faq-category-v2-category-category.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixFaqCategoryV2Category from './faq-category-v2-category-category.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/**\n * Categories are themed groupings of FAQ question entries that a site owner can create to organize their\n * FAQ questions (e.g., Shipping, Returns, etc.).\n */\nexport interface Category {\n /**\n * Category ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the Category is updated.\n * To prevent conflicting changes,\n * the current revision must be passed when updating the Category.\n *\n * Ignored when creating a Category.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the Category was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the Category was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Category title.\n * @maxLength 500\n * @minLength 1\n */\n title?: string | null;\n /** Order of category within a site. */\n sortOrder?: number | null;\n /** Data Extensions */\n extendedFields?: ExtendedFields;\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface CreateCategoryRequest {\n /** Category to be created. */\n category: Category;\n}\n\nexport interface CreateCategoryResponse {\n /** The created Category. */\n category?: Category;\n}\n\nexport interface GetCategoryRequest {\n /**\n * ID of the Category to retrieve.\n * @format GUID\n */\n categoryId: string;\n}\n\nexport interface GetCategoryResponse {\n /** The requested Category. */\n category?: Category;\n}\n\nexport interface UpdateCategoryRequest {\n /** Category to be updated, may be partial. */\n category: Category;\n}\n\nexport interface UpdateCategoryResponse {\n /** Updated Category. */\n category?: Category;\n}\n\nexport interface DeleteCategoryRequest {\n /**\n * Id of the Category to delete.\n * @format GUID\n */\n categoryId: string;\n}\n\nexport interface DeleteCategoryResponse {}\n\nexport interface ListCategoriesRequest {\n /** Request more categories using cursor paging. */\n paging?: CursorPaging;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface ListCategoriesResponse {\n /** List of Categories. */\n categories?: Category[];\n /** Paging metadata */\n pagingMetadata?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface QueryCategoriesRequest {\n /** WQL expression. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface QueryCategoriesResponse {\n /** List of Categories. */\n categories?: Category[];\n /** Paging metadata */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface UpdateExtendedFieldsRequest {\n /** ID of the entity to update. */\n _id: string;\n /** Identifier for the app whose extended fields are being updated. */\n namespace: string;\n /** 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. */\n namespaceData: Record<string, any> | null;\n}\n\nexport interface UpdateExtendedFieldsResponse {\n /** Updated Category. */\n category?: Category;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\nexport interface CategoryCreatedEnvelope {\n entity: Category;\n metadata: EventMetadata;\n}\n\n/** @permissionScope Manage FAQ\n * @permissionScopeId SCOPE.DC-LABS.MANAGE-FAQ\n * @permissionScope Read FAQ\n * @permissionScopeId SCOPE.DC-LABS.READ-FAQ\n * @permissionId FAQ.READ_CATEGORIES\n * @webhook\n * @eventType wix.faq.category.v2.category_created\n * @serviceIdentifier wix.faq.category.v2.CategoryService\n * @slug created\n */\nexport declare function onCategoryCreated(\n handler: (event: CategoryCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface CategoryDeletedEnvelope {\n metadata: EventMetadata;\n}\n\n/** @permissionScope Manage FAQ\n * @permissionScopeId SCOPE.DC-LABS.MANAGE-FAQ\n * @permissionScope Read FAQ\n * @permissionScopeId SCOPE.DC-LABS.READ-FAQ\n * @permissionId FAQ.READ_CATEGORIES\n * @webhook\n * @eventType wix.faq.category.v2.category_deleted\n * @serviceIdentifier wix.faq.category.v2.CategoryService\n * @slug deleted\n */\nexport declare function onCategoryDeleted(\n handler: (event: CategoryDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface CategoryUpdatedEnvelope {\n entity: Category;\n metadata: EventMetadata;\n}\n\n/** @permissionScope Manage FAQ\n * @permissionScopeId SCOPE.DC-LABS.MANAGE-FAQ\n * @permissionScope Read FAQ\n * @permissionScopeId SCOPE.DC-LABS.READ-FAQ\n * @permissionId FAQ.READ_CATEGORIES\n * @webhook\n * @eventType wix.faq.category.v2.category_updated\n * @serviceIdentifier wix.faq.category.v2.CategoryService\n * @slug updated\n */\nexport declare function onCategoryUpdated(\n handler: (event: CategoryUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Creates a new Category.\n * @param category - Category to be created.\n * @public\n * @requiredField category\n * @requiredField category.title\n * @permissionId FAQ.CREATE_CATEGORY\n * @applicableIdentity APP\n * @returns The created Category.\n * @fqn wix.faq.category.v2.CategoryService.CreateCategory\n */\nexport async function createCategory(\n category: NonNullablePaths<Category, `title`>\n): Promise<Category> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ category: category });\n\n const reqOpts = ambassadorWixFaqCategoryV2Category.createCategory(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.category!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { category: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['category']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a single Category by id.\n * @param categoryId - ID of the Category to retrieve.\n * @public\n * @requiredField categoryId\n * @permissionId FAQ.READ_CATEGORIES\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @returns The requested Category.\n * @fqn wix.faq.category.v2.CategoryService.GetCategory\n */\nexport async function getCategory(categoryId: string): Promise<Category> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n categoryId: categoryId,\n });\n\n const reqOpts = ambassadorWixFaqCategoryV2Category.getCategory(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.category!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { categoryId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['categoryId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates a Category.\n *\n * Each time the Category is updated, `revision` increments by 1.\n * The current `revision` must be passed when updating the Category.\n * This ensures you're working with the latest Category and prevents unintended overwrites.\n * @param _id - Category ID.\n * @public\n * @requiredField _id\n * @requiredField category\n * @requiredField category.revision\n * @permissionId FAQ.UPDATE_CATEGORY\n * @applicableIdentity APP\n * @returns Updated Category.\n * @fqn wix.faq.category.v2.CategoryService.UpdateCategory\n */\nexport async function updateCategory(\n _id: string,\n category: NonNullablePaths<UpdateCategory, `revision`>\n): Promise<Category> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n category: { ...category, id: _id },\n });\n\n const reqOpts = ambassadorWixFaqCategoryV2Category.updateCategory(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.category!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { category: '$[1]' },\n explicitPathsToArguments: { 'category.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'category']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateCategory {\n /**\n * Category ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the Category is updated.\n * To prevent conflicting changes,\n * the current revision must be passed when updating the Category.\n *\n * Ignored when creating a Category.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the Category was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the Category was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Category title.\n * @maxLength 500\n * @minLength 1\n */\n title?: string | null;\n /** Order of category within a site. */\n sortOrder?: number | null;\n /** Data Extensions */\n extendedFields?: ExtendedFields;\n}\n\n/**\n * Deletes a Category.\n * Deleting a Category permanently removes them from the Category List.\n * @param categoryId - Id of the Category to delete.\n * @public\n * @requiredField categoryId\n * @permissionId FAQ.DELETE_CATEGORY\n * @applicableIdentity APP\n * @fqn wix.faq.category.v2.CategoryService.DeleteCategory\n */\nexport async function deleteCategory(categoryId: string): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n categoryId: categoryId,\n });\n\n const reqOpts = ambassadorWixFaqCategoryV2Category.deleteCategory(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { categoryId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['categoryId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves categories.\n * @public\n * @permissionId FAQ.READ_CATEGORIES\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @fqn wix.faq.category.v2.CategoryService.ListCategories\n */\nexport async function listCategories(\n options?: ListCategoriesOptions\n): Promise<NonNullablePaths<ListCategoriesResponse, `categories`>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n paging: options?.paging,\n });\n\n const reqOpts = ambassadorWixFaqCategoryV2Category.listCategories(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { paging: '$[0].paging' },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListCategoriesOptions {\n /** Request more categories using cursor paging. */\n paging?: CursorPaging;\n}\n\n/**\n * Retrieves a list of Categories, given the provided [paging, filtering, and sorting].\n * @public\n * @permissionId FAQ.READ_CATEGORIES\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @fqn wix.faq.category.v2.CategoryService.QueryCategories\n */\nexport function queryCategories(): CategoriesQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n Category,\n 'CURSOR',\n QueryCategoriesRequest,\n QueryCategoriesResponse\n >({\n func: async (payload: QueryCategoriesRequest) => {\n const reqOpts =\n ambassadorWixFaqCategoryV2Category.queryCategories(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryCategoriesRequest['query']) => {\n const args = [query, {}] as [QueryCategoriesRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({ data }: HttpResponse<QueryCategoriesResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.categories,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface CategoriesQueryResult extends QueryCursorResult {\n items: Category[];\n query: CategoriesQueryBuilder;\n next: () => Promise<CategoriesQueryResult>;\n prev: () => Promise<CategoriesQueryResult>;\n}\n\nexport interface CategoriesQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n eq: (\n propertyName: '_id' | 'title' | 'sortOrder',\n value: any\n ) => CategoriesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n ne: (\n propertyName: '_id' | 'title' | 'sortOrder',\n value: any\n ) => CategoriesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n ge: (\n propertyName: '_id' | 'title' | 'sortOrder',\n value: any\n ) => CategoriesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n gt: (\n propertyName: '_id' | 'title' | 'sortOrder',\n value: any\n ) => CategoriesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n le: (\n propertyName: '_id' | 'title' | 'sortOrder',\n value: any\n ) => CategoriesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n */\n lt: (\n propertyName: '_id' | 'title' | 'sortOrder',\n value: any\n ) => CategoriesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `string`.\n * @param string - String to compare against. Case-insensitive.\n */\n startsWith: (\n propertyName: '_id' | 'title',\n value: string\n ) => CategoriesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n */\n hasSome: (\n propertyName: '_id' | 'title' | 'sortOrder',\n value: any[]\n ) => CategoriesQueryBuilder;\n in: (\n propertyName: '_id' | 'title' | 'sortOrder',\n value: any\n ) => CategoriesQueryBuilder;\n exists: (\n propertyName: '_id' | 'title' | 'sortOrder',\n value: boolean\n ) => CategoriesQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */\n ascending: (\n ...propertyNames: Array<'_id' | 'title' | 'sortOrder'>\n ) => CategoriesQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */\n descending: (\n ...propertyNames: Array<'_id' | 'title' | 'sortOrder'>\n ) => CategoriesQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */\n limit: (limit: number) => CategoriesQueryBuilder;\n /** @param cursor - A pointer to specific record */\n skipTo: (cursor: string) => CategoriesQueryBuilder;\n find: () => Promise<CategoriesQueryResult>;\n}\n\n/**\n * Updates extended fields of a Category without incrementing revision\n * @param _id - ID of the entity to update.\n * @param namespace - Identifier for the app whose extended fields are being updated.\n * @public\n * @requiredField _id\n * @requiredField namespace\n * @requiredField options\n * @requiredField options.namespaceData\n * @permissionId FAQ.UPDATE_CATEGORY\n * @applicableIdentity APP\n * @fqn wix.faq.category.v2.CategoryService.UpdateExtendedFields\n */\nexport async function updateExtendedFields(\n _id: string,\n namespace: string,\n options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`>\n): Promise<UpdateExtendedFieldsResponse> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n id: _id,\n namespace: namespace,\n namespaceData: options?.namespaceData,\n });\n\n const reqOpts =\n ambassadorWixFaqCategoryV2Category.updateExtendedFields(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n id: '$[0]',\n namespace: '$[1]',\n namespaceData: '$[2].namespaceData',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'namespace', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateExtendedFieldsOptions {\n /** 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. */\n namespaceData: Record<string, any> | null;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixFaqCategoryV2CategoryServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'bo._base_domain_': [\n {\n srcPath: '/category',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/category',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/category',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/faq-server/v2/categories',\n destPath: '/v2/categories',\n },\n {\n srcPath: '/_api/faq-server/v2/draft-categories',\n destPath: '/v2/draft-categories',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/faq-server/v2/categories',\n destPath: '/v2/categories',\n },\n {\n srcPath: '/_api/faq-server/v2/draft-categories',\n destPath: '/v2/draft-categories',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/faq/v2/categories',\n destPath: '/v2/categories',\n },\n {\n srcPath: '/_api/faq-server/v2/draft-categories',\n destPath: '/v2/draft-categories',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/faq/v2/categories',\n destPath: '/v2/categories',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/faq-server/v2/categories',\n destPath: '/v2/categories',\n },\n {\n srcPath: '/_api/faq-server/v2/draft-categories',\n destPath: '/v2/draft-categories',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/faq-server/v2/categories',\n destPath: '/v2/categories',\n },\n {\n srcPath: '/_api/faq-server/v2/draft-categories',\n destPath: '/v2/draft-categories',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/faq-server/v2/categories',\n destPath: '/v2/categories',\n },\n {\n srcPath: '/_api/faq-server/v2/draft-categories',\n destPath: '/v2/draft-categories',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/faq-server/v2/categories',\n destPath: '/v2/categories',\n },\n {\n srcPath: '/_api/faq-server/v2/draft-categories',\n destPath: '/v2/draft-categories',\n },\n ],\n _: [\n {\n srcPath: '/_api/faq-server/v2/categories',\n destPath: '/v2/categories',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/faq-server/v2/categories',\n destPath: '/v2/categories',\n },\n {\n srcPath: '/_api/faq-server/v2/draft-categories',\n destPath: '/v2/draft-categories',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/faq-server/v2/draft-categories',\n destPath: '/v2/draft-categories',\n },\n {\n srcPath: '/_api/faq-server/v2/categories',\n destPath: '/v2/categories',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_faq_category';\n\n/** Creates a new Category. */\nexport function createCategory(payload: object): RequestOptionsFactory<any> {\n function __createCategory({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'category.createdDate' },\n { path: 'category.updatedDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [{ path: 'category.sortOrder' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.faq.category.v2.category',\n method: 'POST' as any,\n methodFqn: 'wix.faq.category.v2.CategoryService.CreateCategory',\n packageName: PACKAGE_NAME,\n url: resolveWixFaqCategoryV2CategoryServiceUrl({\n protoPath: '/v2/categories',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'category.createdDate' },\n { path: 'category.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'category.sortOrder' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createCategory;\n}\n\n/** Retrieves a single Category by id. */\nexport function getCategory(payload: object): RequestOptionsFactory<any> {\n function __getCategory({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.faq.category.v2.category',\n method: 'GET' as any,\n methodFqn: 'wix.faq.category.v2.CategoryService.GetCategory',\n packageName: PACKAGE_NAME,\n url: resolveWixFaqCategoryV2CategoryServiceUrl({\n protoPath: '/v2/categories/{categoryId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'category.createdDate' },\n { path: 'category.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'category.sortOrder' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getCategory;\n}\n\n/**\n * Updates a Category.\n *\n * Each time the Category is updated, `revision` increments by 1.\n * The current `revision` must be passed when updating the Category.\n * This ensures you're working with the latest Category and prevents unintended overwrites.\n */\nexport function updateCategory(payload: object): RequestOptionsFactory<any> {\n function __updateCategory({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'category.createdDate' },\n { path: 'category.updatedDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [{ path: 'category.sortOrder' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.faq.category.v2.category',\n method: 'PATCH' as any,\n methodFqn: 'wix.faq.category.v2.CategoryService.UpdateCategory',\n packageName: PACKAGE_NAME,\n url: resolveWixFaqCategoryV2CategoryServiceUrl({\n protoPath: '/v2/categories/{category.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'category.createdDate' },\n { path: 'category.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'category.sortOrder' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateCategory;\n}\n\n/**\n * Deletes a Category.\n * Deleting a Category permanently removes them from the Category List.\n */\nexport function deleteCategory(payload: object): RequestOptionsFactory<any> {\n function __deleteCategory({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.faq.category.v2.category',\n method: 'DELETE' as any,\n methodFqn: 'wix.faq.category.v2.CategoryService.DeleteCategory',\n packageName: PACKAGE_NAME,\n url: resolveWixFaqCategoryV2CategoryServiceUrl({\n protoPath: '/v2/categories/{categoryId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteCategory;\n}\n\n/** Retrieves categories. */\nexport function listCategories(payload: object): RequestOptionsFactory<any> {\n function __listCategories({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.faq.category.v2.category',\n method: 'GET' as any,\n methodFqn: 'wix.faq.category.v2.CategoryService.ListCategories',\n packageName: PACKAGE_NAME,\n url: resolveWixFaqCategoryV2CategoryServiceUrl({\n protoPath: '/v2/categories',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'categories.createdDate' },\n { path: 'categories.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'categories.sortOrder' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listCategories;\n}\n\n/** Retrieves a list of Categories, given the provided [paging, filtering, and sorting]. */\nexport function queryCategories(payload: object): RequestOptionsFactory<any> {\n function __queryCategories({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.faq.category.v2.category',\n method: 'POST' as any,\n methodFqn: 'wix.faq.category.v2.CategoryService.QueryCategories',\n packageName: PACKAGE_NAME,\n url: resolveWixFaqCategoryV2CategoryServiceUrl({\n protoPath: '/v2/categories/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'categories.createdDate' },\n { path: 'categories.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'categories.sortOrder' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryCategories;\n}\n\n/** Updates extended fields of a Category without incrementing revision */\nexport function updateExtendedFields(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateExtendedFields({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.faq.category.v2.category',\n method: 'POST' as any,\n methodFqn: 'wix.faq.category.v2.CategoryService.UpdateExtendedFields',\n packageName: PACKAGE_NAME,\n url: resolveWixFaqCategoryV2CategoryServiceUrl({\n protoPath: '/v2/categories/{id}/update-extended-fields',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'category.createdDate' },\n { path: 'category.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'category.sortOrder' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateExtendedFields;\n}\n","import {\n createCategory as publicCreateCategory,\n getCategory as publicGetCategory,\n updateCategory as publicUpdateCategory,\n deleteCategory as publicDeleteCategory,\n listCategories as publicListCategories,\n queryCategories as publicQueryCategories,\n updateExtendedFields as publicUpdateExtendedFields,\n} from './faq-category-v2-category-category.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n BuildRESTFunction,\n MaybeContext,\n BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { onCategoryCreated as publicOnCategoryCreated } from './faq-category-v2-category-category.public.js';\nimport { onCategoryDeleted as publicOnCategoryDeleted } from './faq-category-v2-category-category.public.js';\nimport { onCategoryUpdated as publicOnCategoryUpdated } from './faq-category-v2-category-category.public.js';\n\nexport const createCategory: MaybeContext<\n BuildRESTFunction<typeof publicCreateCategory> & typeof publicCreateCategory\n> = /*#__PURE__*/ createRESTModule(publicCreateCategory);\nexport const getCategory: MaybeContext<\n BuildRESTFunction<typeof publicGetCategory> & typeof publicGetCategory\n> = /*#__PURE__*/ createRESTModule(publicGetCategory);\nexport const updateCategory: MaybeContext<\n BuildRESTFunction<typeof publicUpdateCategory> & typeof publicUpdateCategory\n> = /*#__PURE__*/ createRESTModule(publicUpdateCategory);\nexport const deleteCategory: MaybeContext<\n BuildRESTFunction<typeof publicDeleteCategory> & typeof publicDeleteCategory\n> = /*#__PURE__*/ createRESTModule(publicDeleteCategory);\nexport const listCategories: MaybeContext<\n BuildRESTFunction<typeof publicListCategories> & typeof publicListCategories\n> = /*#__PURE__*/ createRESTModule(publicListCategories);\nexport const queryCategories: MaybeContext<\n BuildRESTFunction<typeof publicQueryCategories> & typeof publicQueryCategories\n> = /*#__PURE__*/ createRESTModule(publicQueryCategories);\nexport const updateExtendedFields: MaybeContext<\n BuildRESTFunction<typeof publicUpdateExtendedFields> &\n typeof publicUpdateExtendedFields\n> = /*#__PURE__*/ createRESTModule(publicUpdateExtendedFields);\n/** */\nexport const onCategoryCreated: BuildEventDefinition<\n typeof publicOnCategoryCreated\n> = createEventModule(publicOnCategoryCreated);\n/** */\nexport const onCategoryDeleted: BuildEventDefinition<\n typeof publicOnCategoryDeleted\n> = createEventModule(publicOnCategoryDeleted);\n/** */\nexport const onCategoryUpdated: BuildEventDefinition<\n typeof publicOnCategoryUpdated\n> = createEventModule(publicOnCategoryUpdated);\n\nexport {\n SortOrder,\n WebhookIdentityType,\n} from './faq-category-v2-category-category.universal.js';\nexport {\n Category,\n ExtendedFields,\n CreateCategoryRequest,\n CreateCategoryResponse,\n GetCategoryRequest,\n GetCategoryResponse,\n UpdateCategoryRequest,\n UpdateCategoryResponse,\n DeleteCategoryRequest,\n DeleteCategoryResponse,\n ListCategoriesRequest,\n CursorPaging,\n ListCategoriesResponse,\n PagingMetadataV2,\n Cursors,\n QueryCategoriesRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Sorting,\n QueryCategoriesResponse,\n CursorPagingMetadata,\n UpdateExtendedFieldsRequest,\n UpdateExtendedFieldsResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n BaseEventMetadata,\n EventMetadata,\n CategoryCreatedEnvelope,\n CategoryDeletedEnvelope,\n CategoryUpdatedEnvelope,\n UpdateCategory,\n ListCategoriesOptions,\n CategoriesQueryResult,\n CategoriesQueryBuilder,\n UpdateExtendedFieldsOptions,\n} from './faq-category-v2-category-category.universal.js';\n"],"mappings":";;;;;;;;;;;;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O;AAAA,UACL,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,qBAAqB;AAAA,QAC/B;AAAA,MACF;AAAA,MACA;AAAA,QACE,aAAa;AAAA,QACb,OAAO,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAAA,MACtC;AAAA,IACF,CAAC;AAAA,EACH;AACJ,EAA2B;;;AGzO3B,IAAAC,uBAAiC;AACjC,sCAAkC;AAU3B,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMC,eAEK,2DAAiBA,YAAiB;AAC7C,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMC,mBAEK,2DAAiBA,gBAAqB;AACjD,IAAMC,wBAGK,2DAAiBA,qBAA0B;AAEtD,IAAMC,yBAET,mDAAkB,iBAAuB;AAEtC,IAAMC,yBAET,mDAAkB,iBAAuB;AAEtC,IAAMC,yBAET,mDAAkB,iBAAuB;","names":["createCategory","deleteCategory","getCategory","listCategories","onCategoryCreated","onCategoryDeleted","onCategoryUpdated","queryCategories","updateCategory","updateExtendedFields","import_rename_all_nested_keys","import_float","import_timestamp","import_transform_paths","import_float","import_timestamp","import_rest_modules","payload","import_transform_paths","SortOrder","WebhookIdentityType","createCategory","sdkTransformError","getCategory","updateCategory","deleteCategory","listCategories","queryCategories","updateExtendedFields","createCategory","getCategory","updateCategory","deleteCategory","listCategories","queryCategories","updateExtendedFields","import_rest_modules","createCategory","getCategory","updateCategory","deleteCategory","listCategories","queryCategories","updateExtendedFields","onCategoryCreated","onCategoryDeleted","onCategoryUpdated"]}
@@ -1,4 +1,4 @@
1
- import { e as CreateCategoryRequest$1, f as CreateCategoryResponse$1, G as GetCategoryRequest$1, g as GetCategoryResponse$1, h as UpdateCategoryRequest$1, i as UpdateCategoryResponse$1, D as DeleteCategoryRequest$1, j as DeleteCategoryResponse$1, k as ListCategoriesRequest$1, a as ListCategoriesResponse$1, Q as QueryCategoriesRequest$1, q as QueryCategoriesResponse$1, s as UpdateExtendedFieldsRequest$1, d as UpdateExtendedFieldsResponse$1 } from './faq-category-v2-category-category.universal-CCCaclcc.js';
1
+ import { h as CreateCategoryRequest$1, i as CreateCategoryResponse$1, G as GetCategoryRequest$1, j as GetCategoryResponse$1, k as UpdateCategoryRequest$1, l as UpdateCategoryResponse$1, D as DeleteCategoryRequest$1, m as DeleteCategoryResponse$1, n as ListCategoriesRequest$1, a as ListCategoriesResponse$1, Q as QueryCategoriesRequest$1, t as QueryCategoriesResponse$1, v as UpdateExtendedFieldsRequest$1, d as UpdateExtendedFieldsResponse$1 } from './faq-category-v2-category-category.universal-VvJYKFEQ.js';
2
2
 
3
3
  /**
4
4
  * Categories are themed groupings of FAQ question entries that a site owner can create to organize their
@@ -178,12 +178,14 @@ interface Sorting {
178
178
  */
179
179
  fieldName?: string;
180
180
  /** Sort order. */
181
- order?: SortOrder;
181
+ order?: SortOrderWithLiterals;
182
182
  }
183
183
  declare enum SortOrder {
184
184
  ASC = "ASC",
185
185
  DESC = "DESC"
186
186
  }
187
+ /** @enumType */
188
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
187
189
  interface QueryCategoriesResponse {
188
190
  /** List of Categories. */
189
191
  categories?: Category[];