@wix/auto_sdk_faq_category 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{internal → cjs}/index.d.ts +14 -12
- package/build/{internal → cjs}/index.js +8 -5
- package/build/cjs/index.js.map +1 -0
- package/build/{faq-category-v2-category-category.universal-CCCaclcc.d.mts → cjs/index.typings.d.ts} +147 -40
- package/build/cjs/index.typings.js +633 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/{internal → cjs}/meta.d.ts +5 -2
- package/build/{internal → es}/index.d.mts +14 -12
- package/build/{internal → es}/index.mjs +8 -5
- package/build/es/index.mjs.map +1 -0
- package/build/{faq-category-v2-category-category.universal-CCCaclcc.d.ts → es/index.typings.d.mts} +147 -40
- package/build/es/index.typings.mjs +601 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/{internal → es}/meta.d.mts +5 -2
- package/build/es/package.json +3 -0
- package/build/{index.d.ts → internal/cjs/index.d.ts} +14 -12
- package/build/{index.js → internal/cjs/index.js} +8 -5
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/{faq-category-v2-category-category.universal-CCCaclcc.d.mts → cjs/index.typings.d.ts} +147 -40
- package/build/internal/cjs/index.typings.js +633 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/{meta.d.ts → internal/cjs/meta.d.ts} +5 -2
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/{index.d.mts → internal/es/index.d.mts} +14 -12
- package/build/{index.mjs → internal/es/index.mjs} +8 -5
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/{faq-category-v2-category-category.universal-CCCaclcc.d.ts → es/index.typings.d.mts} +147 -40
- package/build/internal/es/index.typings.mjs +601 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/{meta.d.mts → internal/es/meta.d.mts} +5 -2
- package/build/internal/es/meta.mjs.map +1 -0
- package/package.json +12 -12
- package/build/index.js.map +0 -1
- package/build/index.mjs.map +0 -1
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs.map +0 -1
- package/build/meta.js.map +0 -1
- package/build/meta.mjs.map +0 -1
- /package/build/{internal → cjs}/meta.js +0 -0
- /package/build/{internal → cjs}/meta.js.map +0 -0
- /package/build/{internal → es}/meta.mjs +0 -0
- /package/build/{internal → es}/meta.mjs.map +0 -0
- /package/build/{meta.js → internal/cjs/meta.js} +0 -0
- /package/build/{meta.mjs → internal/es/meta.mjs} +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
1
|
+
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { Category, UpdateCategory, ListCategoriesOptions, ListCategoriesResponse, CategoriesQueryBuilder, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, CategoryCreatedEnvelope, CategoryDeletedEnvelope, CategoryUpdatedEnvelope } from './index.typings.js';
|
|
3
|
+
export { ActionEvent, BaseEventMetadata, CategoriesQueryResult, CreateCategoryRequest, CreateCategoryResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteCategoryRequest, DeleteCategoryResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetCategoryRequest, GetCategoryResponse, IdentificationData, IdentificationDataIdOneOf, ListCategoriesRequest, MessageEnvelope, PagingMetadataV2, QueryCategoriesRequest, QueryCategoriesResponse, RestoreInfo, SortOrder, Sorting, UpdateCategoryRequest, UpdateCategoryResponse, UpdateExtendedFieldsRequest, WebhookIdentityType } from './index.typings.js';
|
|
5
4
|
|
|
6
5
|
declare function createCategory$1(httpClient: HttpClient): CreateCategorySignature;
|
|
7
6
|
interface CreateCategorySignature {
|
|
@@ -10,7 +9,7 @@ interface CreateCategorySignature {
|
|
|
10
9
|
* @param - Category to be created.
|
|
11
10
|
* @returns The created Category.
|
|
12
11
|
*/
|
|
13
|
-
(category: Category): Promise<Category>;
|
|
12
|
+
(category: NonNullablePaths<Category, `title`>): Promise<Category>;
|
|
14
13
|
}
|
|
15
14
|
declare function getCategory$1(httpClient: HttpClient): GetCategorySignature;
|
|
16
15
|
interface GetCategorySignature {
|
|
@@ -32,7 +31,7 @@ interface UpdateCategorySignature {
|
|
|
32
31
|
* @param - Category ID.
|
|
33
32
|
* @returns Updated Category.
|
|
34
33
|
*/
|
|
35
|
-
(_id: string, category: UpdateCategory): Promise<Category>;
|
|
34
|
+
(_id: string, category: NonNullablePaths<UpdateCategory, `revision`>): Promise<Category>;
|
|
36
35
|
}
|
|
37
36
|
declare function deleteCategory$1(httpClient: HttpClient): DeleteCategorySignature;
|
|
38
37
|
interface DeleteCategorySignature {
|
|
@@ -48,7 +47,7 @@ interface ListCategoriesSignature {
|
|
|
48
47
|
/**
|
|
49
48
|
* Retrieves categories.
|
|
50
49
|
*/
|
|
51
|
-
(options?: ListCategoriesOptions
|
|
50
|
+
(options?: ListCategoriesOptions): Promise<NonNullablePaths<ListCategoriesResponse, `categories`>>;
|
|
52
51
|
}
|
|
53
52
|
declare function queryCategories$1(httpClient: HttpClient): QueryCategoriesSignature;
|
|
54
53
|
interface QueryCategoriesSignature {
|
|
@@ -64,8 +63,11 @@ interface UpdateExtendedFieldsSignature {
|
|
|
64
63
|
* @param - ID of the entity to update.
|
|
65
64
|
* @param - Identifier for the app whose extended fields are being updated.
|
|
66
65
|
*/
|
|
67
|
-
(_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse>;
|
|
66
|
+
(_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`>): 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:
|
|
80
|
+
declare const onCategoryCreated: BuildEventDefinition<typeof onCategoryCreated$1>;
|
|
79
81
|
/** */
|
|
80
|
-
declare const onCategoryDeleted:
|
|
82
|
+
declare const onCategoryDeleted: BuildEventDefinition<typeof onCategoryDeleted$1>;
|
|
81
83
|
/** */
|
|
82
|
-
declare const onCategoryUpdated:
|
|
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
|
|
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)(
|
|
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,
|
|
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,
|
|
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,
|
|
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: NonNullablePaths<Category, `title`>): 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 (\n _id: string,\n category: NonNullablePaths<UpdateCategory, `revision`>\n ): 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 (options?: ListCategoriesOptions): Promise<\n NonNullablePaths<ListCategoriesResponse, `categories`>\n >;\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: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`>\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":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAAA;AAAA,EAAA,sBAAAC;AAAA,EAAA,mBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,4BAAAC;AAAA;AAAA;;;ACAA,IAAAC,iCAAwD;AACxD,IAAAC,gBAA6C;AAC7C,IAAAC,oBAAqD;AACrD,IAAAC,0BAA+B;AAC/B,uBAA8D;;;ACJ9D,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,0CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;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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"]}
|
package/build/{faq-category-v2-category-category.universal-CCCaclcc.d.mts → cjs/index.typings.d.ts}
RENAMED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Categories are themed groupings of FAQ question entries that a site owner can create to organize their
|
|
3
5
|
* FAQ questions (e.g., Shipping, Returns, etc.).
|
|
@@ -176,12 +178,14 @@ interface Sorting {
|
|
|
176
178
|
*/
|
|
177
179
|
fieldName?: string;
|
|
178
180
|
/** Sort order. */
|
|
179
|
-
order?:
|
|
181
|
+
order?: SortOrderWithLiterals;
|
|
180
182
|
}
|
|
181
183
|
declare enum SortOrder {
|
|
182
184
|
ASC = "ASC",
|
|
183
185
|
DESC = "DESC"
|
|
184
186
|
}
|
|
187
|
+
/** @enumType */
|
|
188
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
185
189
|
interface QueryCategoriesResponse {
|
|
186
190
|
/** List of Categories. */
|
|
187
191
|
categories?: Category[];
|
|
@@ -218,25 +222,21 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
218
222
|
updatedEvent?: EntityUpdatedEvent;
|
|
219
223
|
deletedEvent?: EntityDeletedEvent;
|
|
220
224
|
actionEvent?: ActionEvent;
|
|
221
|
-
/**
|
|
222
|
-
* Unique event ID.
|
|
223
|
-
* Allows clients to ignore duplicate webhooks.
|
|
224
|
-
*/
|
|
225
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
225
226
|
_id?: string;
|
|
226
227
|
/**
|
|
227
|
-
*
|
|
228
|
-
*
|
|
228
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
229
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
229
230
|
*/
|
|
230
231
|
entityFqdn?: string;
|
|
231
232
|
/**
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
233
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
234
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
235
235
|
*/
|
|
236
236
|
slug?: string;
|
|
237
237
|
/** ID of the entity associated with the event. */
|
|
238
238
|
entityId?: string;
|
|
239
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
239
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
240
240
|
eventTime?: Date | null;
|
|
241
241
|
/**
|
|
242
242
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -246,12 +246,8 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
246
246
|
/** If present, indicates the action that triggered the event. */
|
|
247
247
|
originatedFrom?: string | null;
|
|
248
248
|
/**
|
|
249
|
-
* A sequence number
|
|
250
|
-
*
|
|
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.
|
|
249
|
+
* 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.
|
|
250
|
+
* 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
251
|
*/
|
|
256
252
|
entityEventSequence?: string | null;
|
|
257
253
|
}
|
|
@@ -277,7 +273,7 @@ interface EntityUpdatedEvent {
|
|
|
277
273
|
currentEntity?: string;
|
|
278
274
|
}
|
|
279
275
|
interface EntityDeletedEvent {
|
|
280
|
-
/** Entity that was deleted */
|
|
276
|
+
/** Entity that was deleted. */
|
|
281
277
|
deletedEntity?: string | null;
|
|
282
278
|
}
|
|
283
279
|
interface ActionEvent {
|
|
@@ -321,7 +317,7 @@ interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
321
317
|
*/
|
|
322
318
|
appId?: string;
|
|
323
319
|
/** @readonly */
|
|
324
|
-
identityType?:
|
|
320
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
325
321
|
}
|
|
326
322
|
/** @oneof */
|
|
327
323
|
interface IdentificationDataIdOneOf {
|
|
@@ -353,6 +349,8 @@ declare enum WebhookIdentityType {
|
|
|
353
349
|
WIX_USER = "WIX_USER",
|
|
354
350
|
APP = "APP"
|
|
355
351
|
}
|
|
352
|
+
/** @enumType */
|
|
353
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
356
354
|
interface BaseEventMetadata {
|
|
357
355
|
/**
|
|
358
356
|
* App instance ID.
|
|
@@ -368,25 +366,21 @@ interface BaseEventMetadata {
|
|
|
368
366
|
identity?: IdentificationData;
|
|
369
367
|
}
|
|
370
368
|
interface EventMetadata extends BaseEventMetadata {
|
|
371
|
-
/**
|
|
372
|
-
* Unique event ID.
|
|
373
|
-
* Allows clients to ignore duplicate webhooks.
|
|
374
|
-
*/
|
|
369
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
375
370
|
_id?: string;
|
|
376
371
|
/**
|
|
377
|
-
*
|
|
378
|
-
*
|
|
372
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
373
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
379
374
|
*/
|
|
380
375
|
entityFqdn?: string;
|
|
381
376
|
/**
|
|
382
|
-
*
|
|
383
|
-
*
|
|
384
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
377
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
378
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
385
379
|
*/
|
|
386
380
|
slug?: string;
|
|
387
381
|
/** ID of the entity associated with the event. */
|
|
388
382
|
entityId?: string;
|
|
389
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
383
|
+
/** 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
384
|
eventTime?: Date | null;
|
|
391
385
|
/**
|
|
392
386
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -396,12 +390,8 @@ interface EventMetadata extends BaseEventMetadata {
|
|
|
396
390
|
/** If present, indicates the action that triggered the event. */
|
|
397
391
|
originatedFrom?: string | null;
|
|
398
392
|
/**
|
|
399
|
-
* A sequence number
|
|
400
|
-
*
|
|
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.
|
|
393
|
+
* 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.
|
|
394
|
+
* 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
395
|
*/
|
|
406
396
|
entityEventSequence?: string | null;
|
|
407
397
|
}
|
|
@@ -409,13 +399,87 @@ interface CategoryCreatedEnvelope {
|
|
|
409
399
|
entity: Category;
|
|
410
400
|
metadata: EventMetadata;
|
|
411
401
|
}
|
|
402
|
+
/** @permissionScope Manage FAQ
|
|
403
|
+
* @permissionScopeId SCOPE.DC-LABS.MANAGE-FAQ
|
|
404
|
+
* @permissionScope Read FAQ
|
|
405
|
+
* @permissionScopeId SCOPE.DC-LABS.READ-FAQ
|
|
406
|
+
* @permissionId FAQ.READ_CATEGORIES
|
|
407
|
+
* @webhook
|
|
408
|
+
* @eventType wix.faq.category.v2.category_created
|
|
409
|
+
* @serviceIdentifier wix.faq.category.v2.CategoryService
|
|
410
|
+
* @slug created
|
|
411
|
+
*/
|
|
412
|
+
declare function onCategoryCreated(handler: (event: CategoryCreatedEnvelope) => void | Promise<void>): void;
|
|
412
413
|
interface CategoryDeletedEnvelope {
|
|
413
414
|
metadata: EventMetadata;
|
|
414
415
|
}
|
|
416
|
+
/** @permissionScope Manage FAQ
|
|
417
|
+
* @permissionScopeId SCOPE.DC-LABS.MANAGE-FAQ
|
|
418
|
+
* @permissionScope Read FAQ
|
|
419
|
+
* @permissionScopeId SCOPE.DC-LABS.READ-FAQ
|
|
420
|
+
* @permissionId FAQ.READ_CATEGORIES
|
|
421
|
+
* @webhook
|
|
422
|
+
* @eventType wix.faq.category.v2.category_deleted
|
|
423
|
+
* @serviceIdentifier wix.faq.category.v2.CategoryService
|
|
424
|
+
* @slug deleted
|
|
425
|
+
*/
|
|
426
|
+
declare function onCategoryDeleted(handler: (event: CategoryDeletedEnvelope) => void | Promise<void>): void;
|
|
415
427
|
interface CategoryUpdatedEnvelope {
|
|
416
428
|
entity: Category;
|
|
417
429
|
metadata: EventMetadata;
|
|
418
430
|
}
|
|
431
|
+
/** @permissionScope Manage FAQ
|
|
432
|
+
* @permissionScopeId SCOPE.DC-LABS.MANAGE-FAQ
|
|
433
|
+
* @permissionScope Read FAQ
|
|
434
|
+
* @permissionScopeId SCOPE.DC-LABS.READ-FAQ
|
|
435
|
+
* @permissionId FAQ.READ_CATEGORIES
|
|
436
|
+
* @webhook
|
|
437
|
+
* @eventType wix.faq.category.v2.category_updated
|
|
438
|
+
* @serviceIdentifier wix.faq.category.v2.CategoryService
|
|
439
|
+
* @slug updated
|
|
440
|
+
*/
|
|
441
|
+
declare function onCategoryUpdated(handler: (event: CategoryUpdatedEnvelope) => void | Promise<void>): void;
|
|
442
|
+
/**
|
|
443
|
+
* Creates a new Category.
|
|
444
|
+
* @param category - Category to be created.
|
|
445
|
+
* @public
|
|
446
|
+
* @requiredField category
|
|
447
|
+
* @requiredField category.title
|
|
448
|
+
* @permissionId FAQ.CREATE_CATEGORY
|
|
449
|
+
* @applicableIdentity APP
|
|
450
|
+
* @returns The created Category.
|
|
451
|
+
* @fqn wix.faq.category.v2.CategoryService.CreateCategory
|
|
452
|
+
*/
|
|
453
|
+
declare function createCategory(category: NonNullablePaths<Category, `title`>): Promise<Category>;
|
|
454
|
+
/**
|
|
455
|
+
* Retrieves a single Category by id.
|
|
456
|
+
* @param categoryId - ID of the Category to retrieve.
|
|
457
|
+
* @public
|
|
458
|
+
* @requiredField categoryId
|
|
459
|
+
* @permissionId FAQ.READ_CATEGORIES
|
|
460
|
+
* @applicableIdentity APP
|
|
461
|
+
* @applicableIdentity VISITOR
|
|
462
|
+
* @returns The requested Category.
|
|
463
|
+
* @fqn wix.faq.category.v2.CategoryService.GetCategory
|
|
464
|
+
*/
|
|
465
|
+
declare function getCategory(categoryId: string): Promise<Category>;
|
|
466
|
+
/**
|
|
467
|
+
* Updates a Category.
|
|
468
|
+
*
|
|
469
|
+
* Each time the Category is updated, `revision` increments by 1.
|
|
470
|
+
* The current `revision` must be passed when updating the Category.
|
|
471
|
+
* This ensures you're working with the latest Category and prevents unintended overwrites.
|
|
472
|
+
* @param _id - Category ID.
|
|
473
|
+
* @public
|
|
474
|
+
* @requiredField _id
|
|
475
|
+
* @requiredField category
|
|
476
|
+
* @requiredField category.revision
|
|
477
|
+
* @permissionId FAQ.UPDATE_CATEGORY
|
|
478
|
+
* @applicableIdentity APP
|
|
479
|
+
* @returns Updated Category.
|
|
480
|
+
* @fqn wix.faq.category.v2.CategoryService.UpdateCategory
|
|
481
|
+
*/
|
|
482
|
+
declare function updateCategory(_id: string, category: NonNullablePaths<UpdateCategory, `revision`>): Promise<Category>;
|
|
419
483
|
interface UpdateCategory {
|
|
420
484
|
/**
|
|
421
485
|
* Category ID.
|
|
@@ -453,10 +517,39 @@ interface UpdateCategory {
|
|
|
453
517
|
/** Data Extensions */
|
|
454
518
|
extendedFields?: ExtendedFields;
|
|
455
519
|
}
|
|
520
|
+
/**
|
|
521
|
+
* Deletes a Category.
|
|
522
|
+
* Deleting a Category permanently removes them from the Category List.
|
|
523
|
+
* @param categoryId - Id of the Category to delete.
|
|
524
|
+
* @public
|
|
525
|
+
* @requiredField categoryId
|
|
526
|
+
* @permissionId FAQ.DELETE_CATEGORY
|
|
527
|
+
* @applicableIdentity APP
|
|
528
|
+
* @fqn wix.faq.category.v2.CategoryService.DeleteCategory
|
|
529
|
+
*/
|
|
530
|
+
declare function deleteCategory(categoryId: string): Promise<void>;
|
|
531
|
+
/**
|
|
532
|
+
* Retrieves categories.
|
|
533
|
+
* @public
|
|
534
|
+
* @permissionId FAQ.READ_CATEGORIES
|
|
535
|
+
* @applicableIdentity APP
|
|
536
|
+
* @applicableIdentity VISITOR
|
|
537
|
+
* @fqn wix.faq.category.v2.CategoryService.ListCategories
|
|
538
|
+
*/
|
|
539
|
+
declare function listCategories(options?: ListCategoriesOptions): Promise<NonNullablePaths<ListCategoriesResponse, `categories`>>;
|
|
456
540
|
interface ListCategoriesOptions {
|
|
457
541
|
/** Request more categories using cursor paging. */
|
|
458
542
|
paging?: CursorPaging;
|
|
459
543
|
}
|
|
544
|
+
/**
|
|
545
|
+
* Retrieves a list of Categories, given the provided [paging, filtering, and sorting].
|
|
546
|
+
* @public
|
|
547
|
+
* @permissionId FAQ.READ_CATEGORIES
|
|
548
|
+
* @applicableIdentity APP
|
|
549
|
+
* @applicableIdentity VISITOR
|
|
550
|
+
* @fqn wix.faq.category.v2.CategoryService.QueryCategories
|
|
551
|
+
*/
|
|
552
|
+
declare function queryCategories(): CategoriesQueryBuilder;
|
|
460
553
|
interface QueryCursorResult {
|
|
461
554
|
cursors: Cursors;
|
|
462
555
|
hasNext: () => boolean;
|
|
@@ -482,19 +575,19 @@ interface CategoriesQueryBuilder {
|
|
|
482
575
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
483
576
|
* @param value - Value to compare against.
|
|
484
577
|
*/
|
|
485
|
-
ge: (propertyName: 'sortOrder', value: any) => CategoriesQueryBuilder;
|
|
578
|
+
ge: (propertyName: '_id' | 'title' | 'sortOrder', value: any) => CategoriesQueryBuilder;
|
|
486
579
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
487
580
|
* @param value - Value to compare against.
|
|
488
581
|
*/
|
|
489
|
-
gt: (propertyName: 'sortOrder', value: any) => CategoriesQueryBuilder;
|
|
582
|
+
gt: (propertyName: '_id' | 'title' | 'sortOrder', value: any) => CategoriesQueryBuilder;
|
|
490
583
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
491
584
|
* @param value - Value to compare against.
|
|
492
585
|
*/
|
|
493
|
-
le: (propertyName: 'sortOrder', value: any) => CategoriesQueryBuilder;
|
|
586
|
+
le: (propertyName: '_id' | 'title' | 'sortOrder', value: any) => CategoriesQueryBuilder;
|
|
494
587
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
495
588
|
* @param value - Value to compare against.
|
|
496
589
|
*/
|
|
497
|
-
lt: (propertyName: 'sortOrder', value: any) => CategoriesQueryBuilder;
|
|
590
|
+
lt: (propertyName: '_id' | 'title' | 'sortOrder', value: any) => CategoriesQueryBuilder;
|
|
498
591
|
/** @param propertyName - Property whose value is compared with `string`.
|
|
499
592
|
* @param string - String to compare against. Case-insensitive.
|
|
500
593
|
*/
|
|
@@ -515,9 +608,23 @@ interface CategoriesQueryBuilder {
|
|
|
515
608
|
skipTo: (cursor: string) => CategoriesQueryBuilder;
|
|
516
609
|
find: () => Promise<CategoriesQueryResult>;
|
|
517
610
|
}
|
|
611
|
+
/**
|
|
612
|
+
* Updates extended fields of a Category without incrementing revision
|
|
613
|
+
* @param _id - ID of the entity to update.
|
|
614
|
+
* @param namespace - Identifier for the app whose extended fields are being updated.
|
|
615
|
+
* @public
|
|
616
|
+
* @requiredField _id
|
|
617
|
+
* @requiredField namespace
|
|
618
|
+
* @requiredField options
|
|
619
|
+
* @requiredField options.namespaceData
|
|
620
|
+
* @permissionId FAQ.UPDATE_CATEGORY
|
|
621
|
+
* @applicableIdentity APP
|
|
622
|
+
* @fqn wix.faq.category.v2.CategoryService.UpdateExtendedFields
|
|
623
|
+
*/
|
|
624
|
+
declare function updateExtendedFields(_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`>): Promise<UpdateExtendedFieldsResponse>;
|
|
518
625
|
interface UpdateExtendedFieldsOptions {
|
|
519
626
|
/** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
|
|
520
627
|
namespaceData: Record<string, any> | null;
|
|
521
628
|
}
|
|
522
629
|
|
|
523
|
-
export { type ActionEvent
|
|
630
|
+
export { type ActionEvent, type BaseEventMetadata, type CategoriesQueryBuilder, type CategoriesQueryResult, type Category, type CategoryCreatedEnvelope, type CategoryDeletedEnvelope, type CategoryUpdatedEnvelope, type CreateCategoryRequest, type CreateCategoryResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteCategoryRequest, type DeleteCategoryResponse, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type GetCategoryRequest, type GetCategoryResponse, type IdentificationData, type IdentificationDataIdOneOf, type ListCategoriesOptions, type ListCategoriesRequest, type ListCategoriesResponse, type MessageEnvelope, type PagingMetadataV2, type QueryCategoriesRequest, type QueryCategoriesResponse, type RestoreInfo, SortOrder, type SortOrderWithLiterals, type Sorting, type UpdateCategory, type UpdateCategoryRequest, type UpdateCategoryResponse, type UpdateExtendedFieldsOptions, type UpdateExtendedFieldsRequest, type UpdateExtendedFieldsResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, createCategory, deleteCategory, getCategory, listCategories, onCategoryCreated, onCategoryDeleted, onCategoryUpdated, queryCategories, updateCategory, updateExtendedFields };
|