@wix/auto_sdk_events_categories 1.0.44 → 1.0.45
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/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +2 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +2 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +2 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.ts","../../src/events-v1-category-categories.universal.ts","../../src/events-v1-category-categories.http.ts","../../src/events-v1-category-categories.public.ts","../../src/events-v1-category-categories.context.ts"],"sourcesContent":["export * from './src/events-v1-category-categories.context.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 {\n HttpClient,\n HttpResponse,\n NonNullablePaths,\n QuerySpec,\n Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixEventsV1Category from './events-v1-category-categories.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/**\n * A Category is a classification object that groups related events on a site so you can organize and display them by themes, venues, or other facets.\n *\n * You can manage Categories, assign events to them, and use them to control the selection and order of events across different pages and widgets.\n *\n * Read more about [Categories](https://support.wix.com/en/article/creating-and-displaying-event-categories).\n */\nexport interface Category {\n /**\n * Category ID.\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * Category name.\n * @minLength 1\n * @maxLength 30\n */\n name?: string;\n /**\n * Date and time when category was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * The total number of draft and published events assigned to the category.\n * @readonly\n */\n counts?: CategoryCounts;\n /**\n * Category state. Possible values:\n * - `MANUAL`: Category is created manually by the user.\n * - `AUTO`: Category is created automatically.\n * - `RECURRING_EVENT`: Category is created automatically when publishing recurring events.\n * - `HIDDEN`: Category can't be seen.\n *\n * Default: `MANUAL`.\n *\n * **Note:** The WIX_EVENTS.MANAGE_AUTO_CATEGORIES permission is required to use states other than `MANUAL`.\n * @maxSize 3\n */\n states?: StateWithLiterals[];\n}\n\nexport interface CategoryCounts {\n /** Total number of published events assigned to the category. Deleted events are excluded. */\n assignedEventsCount?: number | null;\n /** Total number of draft events assigned to the category. */\n assignedDraftEventsCount?: number | null;\n}\n\nexport enum State {\n /** Categoty is created manually by the user. */\n MANUAL = 'MANUAL',\n /** Category is created automatically. */\n AUTO = 'AUTO',\n /** Category is created automatically when publishing recurring events. */\n RECURRING_EVENT = 'RECURRING_EVENT',\n /** Category is hidden. */\n HIDDEN = 'HIDDEN',\n}\n\n/** @enumType */\nexport type StateWithLiterals =\n | State\n | 'MANUAL'\n | 'AUTO'\n | 'RECURRING_EVENT'\n | 'HIDDEN';\n\nexport interface CreateCategoryRequest {\n /** Category to create. */\n category: Category;\n}\n\nexport interface CreateCategoryResponse {\n /** Created category. */\n category?: Category;\n}\n\nexport interface BulkCreateCategoryRequest {\n /**\n * Categories to create.\n * @minSize 1\n * @maxSize 10\n */\n categories: Category[];\n}\n\nexport interface BulkCreateCategoryResponse {\n /** Bulk create results. */\n results?: BulkCategoryResult[];\n /** Metadata of results. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkCategoryResult {\n /** Metadata. */\n itemMetadata?: ItemMetadata;\n /** Created categories. */\n item?: Category;\n}\n\nexport interface ItemMetadata {\n /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */\n _id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details due to exceeding the threshold for detailed failures. */\n undetailedFailures?: number;\n}\n\nexport interface UpdateCategoryRequest {\n /** Category to update. */\n category: Category;\n}\n\nexport interface UpdateCategoryResponse {\n /** Updated category. */\n category?: Category;\n}\n\nexport interface DeleteCategoryRequest {\n /**\n * ID of category to be deleted.\n * @format GUID\n */\n categoryId: string;\n}\n\nexport interface DeleteCategoryResponse {}\n\nexport interface QueryCategoriesRequest {\n /** Options to use when querying categories. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more details. */\n query: QueryV2;\n /**\n * Predefined sets of fields to return.\n * - `COUNTS`: Returns `assignedEventsCount`.\n * @maxSize 1\n */\n fieldset?: CategoryFieldsetWithLiterals[];\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /**\n * Pointer to page of results using offset.\n * See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination).\n */\n paging?: Paging;\n /** Filter. See [supported fields and operators](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events). */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the form [{\"fieldName\":\"sortField1\"},{\"fieldName\":\"sortField2\",\"direction\":\"DESC\"}]\n * See [supported fields](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events).\n * @maxSize 20\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /**\n * Pointer to page of results using offset.\n * See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination).\n */\n paging?: Paging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by\n * @maxLength 100\n */\n fieldName?: string;\n /** Sort order (ASC/DESC). Defaults to ASC */\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 Paging {\n /**\n * Number of items to load per page.\n * @max 1000\n */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport enum CategoryFieldset {\n /** Include `assignedEventsCount` in the response. */\n COUNTS = 'COUNTS',\n}\n\n/** @enumType */\nexport type CategoryFieldsetWithLiterals = CategoryFieldset | 'COUNTS';\n\nexport interface QueryCategoriesResponse {\n /** List of categories. */\n categories?: Category[];\n /** Metadata for the paginated results. */\n metaData?: 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 AssignEventsRequest {\n /**\n * ID of category to which events should be assigned.\n * @format GUID\n */\n categoryId: string;\n /**\n * A list of events IDs.\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n eventId: string[];\n}\n\nexport interface AssignEventsResponse {}\n\nexport interface BulkAssignEventsRequest {\n /**\n * A list of category IDs to which events should be assigned.\n * @format GUID\n * @minSize 1\n * @maxSize 10\n */\n categoryId: string[];\n /**\n * A list of events IDs.\n * @format GUID\n * @minSize 1\n * @maxSize 1\n */\n eventId: string[];\n}\n\nexport interface BulkAssignEventsResponse {\n /** Bulk assign results. */\n results?: BulkCategoryResult[];\n /** Metadata of results. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkAssignEventsAsyncRequest {\n /**\n * Category IDs.\n * @format GUID\n * @minSize 1\n * @maxSize 10\n */\n categoryId: string[];\n /**\n * Criteria that must be met for an event to be considered for the bulk assign. Supported filters for this API:\n * - `_id`: [`eq()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/eq)\n * - `name`: [`eq()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/eq)\n */\n filter: Record<string, any> | null;\n}\n\nexport interface BulkAssignEventsAsyncResponse {}\n\nexport interface UnassignEventsRequest {\n /**\n * Category ID.\n * @format GUID\n */\n categoryId: string;\n /**\n * A list of events IDs.\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n eventId: string[];\n}\n\nexport interface UnassignEventsResponse {}\n\nexport interface BulkUnassignEventsRequest {\n /**\n * A list of category IDs.\n * @format GUID\n * @minSize 1\n * @maxSize 10\n */\n categoryId: string[];\n /**\n * A list of events IDs.\n * @format GUID\n * @minSize 1\n * @maxSize 1\n */\n eventId?: string[];\n}\n\nexport interface BulkUnassignEventsResponse {\n /** Results. */\n results?: BulkCategoryResult[];\n /** Metadata of results. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkUnassignEventsAsyncRequest {\n /**\n * Category ID.\n * @format GUID\n * @minSize 1\n * @maxSize 10\n */\n categoryId: string[];\n /**\n * Criteria that must be met for an event to be considered for the bulk assign. Supported filters for this API:\n * - `_id`: [`eq()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/eq)\n * - `name`: [`eq()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/eq)\n */\n filter: Record<string, any> | null;\n}\n\nexport interface BulkUnassignEventsAsyncResponse {}\n\nexport interface ListEventCategoriesRequest {\n /**\n * Event ID.\n * @format GUID\n */\n eventId: string;\n}\n\nexport interface ListEventCategoriesResponse {\n /** A list of categories. */\n categories?: Category[];\n}\n\nexport interface ReorderCategoryEventsRequest\n extends ReorderCategoryEventsRequestReferenceEventOneOf {\n /**\n * Move the event before defined `eventId`.\n * @format GUID\n */\n beforeEventId?: string;\n /**\n * Move the event after defined `eventId`.\n * @format GUID\n */\n afterEventId?: string;\n /**\n * Category ID.\n * @format GUID\n */\n categoryId: string;\n /**\n * Event ID.\n * @format GUID\n */\n eventId?: string;\n}\n\n/** @oneof */\nexport interface ReorderCategoryEventsRequestReferenceEventOneOf {\n /**\n * Move the event before defined `eventId`.\n * @format GUID\n */\n beforeEventId?: string;\n /**\n * Move the event after defined `eventId`.\n * @format GUID\n */\n afterEventId?: string;\n}\n\nexport interface ReorderCategoryEventsResponse {}\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 AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type ReorderCategoryEventsApplicationErrors = {\n code?: 'INVALID_REORDER_INSTRUCTION';\n description?: string;\n data?: Record<string, any>;\n};\n\n/**\n * Creates a category.\n * @public\n * @requiredField category\n * @param category - Category to create.\n * @permissionId WIX_EVENTS.MANAGE_CATEGORIES\n * @applicableIdentity APP\n * @returns Created category.\n * @fqn wix.events.categories.CategoryManagement.CreateCategory\n */\nexport async function createCategory(\n category: Category\n): Promise<NonNullablePaths<Category, `_id` | `name` | `states`, 2>> {\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 = ambassadorWixEventsV1Category.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 * Creates multiple categories at once.\n * @param categories - Categories to create.\n * @public\n * @requiredField categories\n * @permissionId WIX_EVENTS.MANAGE_CATEGORIES\n * @applicableIdentity APP\n * @fqn wix.events.categories.CategoryManagement.BulkCreateCategory\n */\nexport async function bulkCreateCategory(\n categories: Category[]\n): Promise<\n NonNullablePaths<\n BulkCreateCategoryResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item._id`\n | `results.${number}.item.name`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n categories: categories,\n });\n\n const reqOpts = ambassadorWixEventsV1Category.bulkCreateCategory(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: { categories: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['categories']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates an existing category.\n * @param _id - Category ID.\n * @public\n * @requiredField _id\n * @requiredField category\n * @permissionId WIX_EVENTS.MANAGE_CATEGORIES\n * @applicableIdentity APP\n * @returns Updated category.\n * @fqn wix.events.categories.CategoryManagement.UpdateCategory\n */\nexport async function updateCategory(\n _id: string,\n category: UpdateCategory\n): Promise<NonNullablePaths<Category, `_id` | `name` | `states`, 2>> {\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 = ambassadorWixEventsV1Category.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;\n /**\n * Category name.\n * @minLength 1\n * @maxLength 30\n */\n name?: string;\n /**\n * Date and time when category was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * The total number of draft and published events assigned to the category.\n * @readonly\n */\n counts?: CategoryCounts;\n /**\n * Category state. Possible values:\n * - `MANUAL`: Category is created manually by the user.\n * - `AUTO`: Category is created automatically.\n * - `RECURRING_EVENT`: Category is created automatically when publishing recurring events.\n * - `HIDDEN`: Category can't be seen.\n *\n * Default: `MANUAL`.\n *\n * **Note:** The WIX_EVENTS.MANAGE_AUTO_CATEGORIES permission is required to use states other than `MANUAL`.\n * @maxSize 3\n */\n states?: StateWithLiterals[];\n}\n\n/**\n * Deletes a category.\n * @param categoryId - ID of category to be deleted.\n * @public\n * @requiredField categoryId\n * @permissionId WIX_EVENTS.MANAGE_CATEGORIES\n * @applicableIdentity APP\n * @fqn wix.events.categories.CategoryManagement.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 = ambassadorWixEventsV1Category.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 * Creates a query to retrieve a list of categories.\n *\n *\n * The `queryCategories()` function builds a query to retrieve a list of categories and returns a `CategoriesQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/find) function.\n *\n * You can refine the query by chaining `CategoriesQueryBuilder` functions onto the query. `CategoriesQueryBuilder` functions enable you to sort, filter, and control the results `queryCategories()` returns.\n *\n * `queryCategories()` runs with these `CategoriesQueryBuilder` defaults, which you can override:\n *\n * - [`limit(50)`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/limit)\n * @public\n * @param options - Options to use when querying categories.\n * @permissionId WIX_EVENTS.READ_CATEGORIES\n * @applicableIdentity APP\n * @fqn wix.events.categories.CategoryManagement.QueryCategories\n */\nexport function queryCategories(\n options?: QueryCategoriesOptions\n): CategoriesQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n Category,\n 'OFFSET',\n QueryCategoriesRequest,\n QueryCategoriesResponse\n >({\n func: async (payload: QueryCategoriesRequest) => {\n const reqOpts = ambassadorWixEventsV1Category.queryCategories({\n ...payload,\n ...(options ?? {}),\n });\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, options] as [\n QueryCategoriesRequest['query'],\n QueryCategoriesOptions\n ];\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?.metaData,\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: 'OFFSET',\n transformationPaths: {},\n });\n}\n\nexport interface QueryCategoriesOptions {\n /**\n * Predefined sets of fields to return.\n * - `COUNTS`: Returns `assignedEventsCount`.\n * @maxSize 1\n */\n fieldset?: CategoryFieldsetWithLiterals[] | undefined;\n}\n\ninterface QueryOffsetResult {\n currentPage: number | undefined;\n totalPages: number | undefined;\n totalCount: number | undefined;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface CategoriesQueryResult extends QueryOffsetResult {\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: (propertyName: '_id' | 'name', value: any) => CategoriesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n */\n hasSome: (propertyName: string, value: any[]) => 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' | 'name' | '_createdDate'>\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' | 'name' | '_createdDate'>\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 skip - Number of items to skip in the query results before returning the results. */\n skip: (skip: number) => CategoriesQueryBuilder;\n find: () => Promise<CategoriesQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.events.categories.CategoryManagement.QueryCategories\n * @requiredField query\n */\nexport async function typedQueryCategories(\n query: CategoryQuery,\n options?: QueryCategoriesOptions\n): Promise<\n NonNullablePaths<\n QueryCategoriesResponse,\n `categories` | `categories.${number}._id` | `categories.${number}.name`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n query: query,\n ...options,\n });\n\n const reqOpts = ambassadorWixEventsV1Category.queryCategories(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: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CategoryQuerySpec extends QuerySpec {\n paging: 'offset';\n wql: [\n {\n fields: ['_id', 'name'];\n operators: ['$eq'];\n sort: 'BOTH';\n },\n {\n fields: ['states'];\n operators: ['$hasSome'];\n sort: 'NONE';\n },\n {\n fields: ['_createdDate'];\n operators: [];\n sort: 'BOTH';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n Category,\n CategoryQuerySpec\n>;\nexport type CategoryQuery = {\n /** \n Pointer to page of results using offset.\n See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). \n */\n paging?: {\n /** \n Number of items to load per page. \n @max: 1000 \n */\n limit?: NonNullable<CommonQueryWithEntityContext['paging']>['limit'] | null;\n /** \n Number of items to skip in the current sort order. \n */\n offset?:\n | NonNullable<CommonQueryWithEntityContext['paging']>['offset']\n | null;\n };\n /** \n Filter. See [supported fields and operators](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events). \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n /** \n Sort object in the form [{\"fieldName\":\"sortField1\"},{\"fieldName\":\"sortField2\",\"direction\":\"DESC\"}]\n See [supported fields](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events). \n @maxSize: 20 \n */\n sort?: {\n /** \n Name of the field to sort by \n @maxLength: 100 \n */\n fieldName?: NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order (ASC/DESC). Defaults to ASC \n */\n order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n }[];\n};\n\n/**\n * Assigns events to a single category.\n * @param categoryId - ID of category to which events should be assigned.\n * @param eventId - A list of events IDs.\n * @public\n * @requiredField categoryId\n * @requiredField eventId\n * @permissionId WIX_EVENTS.MANAGE_CATEGORIES\n * @applicableIdentity APP\n * @fqn wix.events.categories.CategoryManagement.AssignEvents\n */\nexport async function assignEvents(\n categoryId: string,\n eventId: string[]\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n categoryId: categoryId,\n eventId: eventId,\n });\n\n const reqOpts = ambassadorWixEventsV1Category.assignEvents(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]', eventId: '$[1]' },\n singleArgumentUnchanged: false,\n },\n ['categoryId', 'eventId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Assigns events to multiple categories at once.\n * @param categoryId - A list of category IDs to which events should be assigned.\n * @public\n * @requiredField categoryId\n * @requiredField options\n * @requiredField options.eventId\n * @param options - Options to use when assigning events to multiple categories.\n * @permissionId WIX_EVENTS.MANAGE_CATEGORIES\n * @applicableIdentity APP\n * @fqn wix.events.categories.CategoryManagement.BulkAssignEvents\n */\nexport async function bulkAssignEvents(\n categoryId: string[],\n options: NonNullablePaths<BulkAssignEventsOptions, `eventId`, 2>\n): Promise<\n NonNullablePaths<\n BulkAssignEventsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item._id`\n | `results.${number}.item.name`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n categoryId: categoryId,\n eventId: options?.eventId,\n });\n\n const reqOpts = ambassadorWixEventsV1Category.bulkAssignEvents(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 categoryId: '$[0]',\n eventId: '$[1].eventId',\n },\n singleArgumentUnchanged: false,\n },\n ['categoryId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkAssignEventsOptions {\n /**\n * A list of events IDs.\n * @format GUID\n * @minSize 1\n * @maxSize 1\n */\n eventId: string[];\n}\n\n/**\n * Assigns events that match given filter criteria to multiple categories.\n *\n * Unlike the [`bulkAssignEvents()`](https://www.wix.com/velo/reference/wix-events-v2/categories/bulkassignevents) function, this function can handle numerous requests and is less prone to failures.\n *\n * However, the events will not be instantly assigned to the categories (as with `bulkAssignEvents()`), but rather after some time. In this case, if try to [`listEventCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/listeventcategories) or [`queryCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/querycategories), you might not get the correct response.\n * @param categoryId - Category IDs.\n * @public\n * @requiredField categoryId\n * @requiredField options\n * @requiredField options.filter\n * @param options - Options to use when assigning events to multiple categories.\n * @permissionId WIX_EVENTS.MANAGE_CATEGORIES\n * @applicableIdentity APP\n * @fqn wix.events.categories.CategoryManagement.BulkAssignEventsAsync\n */\nexport async function bulkAssignEventsAsync(\n categoryId: string[],\n options: NonNullablePaths<BulkAssignEventsAsyncOptions, `filter`, 2>\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n categoryId: categoryId,\n filter: options?.filter,\n });\n\n const reqOpts = ambassadorWixEventsV1Category.bulkAssignEventsAsync(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]', filter: '$[1].filter' },\n singleArgumentUnchanged: false,\n },\n ['categoryId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkAssignEventsAsyncOptions {\n /**\n * Criteria that must be met for an event to be considered for the bulk assign. Supported filters for this API:\n * - `_id`: [`eq()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/eq)\n * - `name`: [`eq()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/eq)\n */\n filter: Record<string, any> | null;\n}\n\n/**\n * Unassigns events from a category.\n * @param categoryId - Category ID.\n * @param eventId - A list of events IDs.\n * @public\n * @requiredField categoryId\n * @requiredField eventId\n * @permissionId WIX_EVENTS.MANAGE_CATEGORIES\n * @applicableIdentity APP\n * @fqn wix.events.categories.CategoryManagement.UnassignEvents\n */\nexport async function unassignEvents(\n categoryId: string,\n eventId: string[]\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n categoryId: categoryId,\n eventId: eventId,\n });\n\n const reqOpts = ambassadorWixEventsV1Category.unassignEvents(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]', eventId: '$[1]' },\n singleArgumentUnchanged: false,\n },\n ['categoryId', 'eventId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Unassigns events from multiple categories at once.\n * @param categoryId - A list of category IDs.\n * @public\n * @requiredField categoryId\n * @param options - Options to use when removing events from multiple categories.\n * @permissionId WIX_EVENTS.MANAGE_CATEGORIES\n * @applicableIdentity APP\n * @fqn wix.events.categories.CategoryManagement.BulkUnassignEvents\n */\nexport async function bulkUnassignEvents(\n categoryId: string[],\n options?: BulkUnassignEventsOptions\n): Promise<\n NonNullablePaths<\n BulkUnassignEventsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item._id`\n | `results.${number}.item.name`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n categoryId: categoryId,\n eventId: options?.eventId,\n });\n\n const reqOpts = ambassadorWixEventsV1Category.bulkUnassignEvents(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 categoryId: '$[0]',\n eventId: '$[1].eventId',\n },\n singleArgumentUnchanged: false,\n },\n ['categoryId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUnassignEventsOptions {\n /**\n * A list of events IDs.\n * @format GUID\n * @minSize 1\n * @maxSize 1\n */\n eventId?: string[];\n}\n\n/**\n * Removes events that match given filter criteria from multiple categories.\n *\n * Unlike the [`bulkUnassignEvents()`](https://www.wix.com/velo/reference/wix-events-v2/categories/bulkunassignevents) function, this function can handle numerous requests and is less prone to failures.\n *\n * However, the events will not be instantly removed from the categories (as with `bulkUnassignEvents()`), but rather after some time. In this case, if try to [`listEventCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/listeventcategories) or [`queryCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/querycategories), you might not get the correct response.\n * @param categoryId - Category ID.\n * @public\n * @requiredField categoryId\n * @requiredField options\n * @requiredField options.filter\n * @param options - Options to use when removing events from multiple categories.\n * @permissionId WIX_EVENTS.MANAGE_CATEGORIES\n * @applicableIdentity APP\n * @fqn wix.events.categories.CategoryManagement.BulkUnassignEventsAsync\n */\nexport async function bulkUnassignEventsAsync(\n categoryId: string[],\n options: NonNullablePaths<BulkUnassignEventsAsyncOptions, `filter`, 2>\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n categoryId: categoryId,\n filter: options?.filter,\n });\n\n const reqOpts =\n ambassadorWixEventsV1Category.bulkUnassignEventsAsync(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]', filter: '$[1].filter' },\n singleArgumentUnchanged: false,\n },\n ['categoryId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUnassignEventsAsyncOptions {\n /**\n * Criteria that must be met for an event to be considered for the bulk assign. Supported filters for this API:\n * - `_id`: [`eq()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/eq)\n * - `name`: [`eq()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/eq)\n */\n filter: Record<string, any> | null;\n}\n\n/**\n * Retrieves a list of categories that are not in the `HIDDEN` state.\n * @param eventId - Event ID.\n * @public\n * @requiredField eventId\n * @permissionId WIX_EVENTS.READ_CATEGORIES\n * @applicableIdentity APP\n * @fqn wix.events.categories.CategoryManagement.ListEventCategories\n */\nexport async function listEventCategories(\n eventId: string\n): Promise<\n NonNullablePaths<\n ListEventCategoriesResponse,\n `categories` | `categories.${number}._id` | `categories.${number}.name`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ eventId: eventId });\n\n const reqOpts = ambassadorWixEventsV1Category.listEventCategories(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: { eventId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['eventId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Change the order of events that are assigned to the same category on the Events Widget.\n *\n *\n * For more information see [this article](https://support.wix.com/en/article/creating-and-displaying-event-categories)\n * @param categoryId - Category ID.\n * @public\n * @requiredField categoryId\n * @param options - Options to use when reordering events.\n * @permissionId WIX_EVENTS.MANAGE_CATEGORIES\n * @applicableIdentity APP\n * @fqn wix.events.categories.CategoryManagement.ReorderCategoryEvents\n */\nexport async function reorderCategoryEvents(\n categoryId: string,\n options?: ReorderCategoryEventsOptions\n): Promise<\n void & {\n __applicationErrorsType?: ReorderCategoryEventsApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n categoryId: categoryId,\n eventId: options?.eventId,\n beforeEventId: options?.beforeEventId,\n afterEventId: options?.afterEventId,\n });\n\n const reqOpts = ambassadorWixEventsV1Category.reorderCategoryEvents(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 categoryId: '$[0]',\n eventId: '$[1].eventId',\n beforeEventId: '$[1].beforeEventId',\n afterEventId: '$[1].afterEventId',\n },\n singleArgumentUnchanged: false,\n },\n ['categoryId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ReorderCategoryEventsOptions\n extends ReorderCategoryEventsOptionsReferenceEventOneOf {\n /**\n * Event ID.\n * @format GUID\n */\n eventId?: string;\n /**\n * Move the event before defined `eventId`.\n * @format GUID\n */\n beforeEventId?: string;\n /**\n * Move the event after defined `eventId`.\n * @format GUID\n */\n afterEventId?: string;\n}\n\n/** @oneof */\nexport interface ReorderCategoryEventsOptionsReferenceEventOneOf {\n /**\n * Move the event before defined `eventId`.\n * @format GUID\n */\n beforeEventId?: string;\n /**\n * Move the event after defined `eventId`.\n * @format GUID\n */\n afterEventId?: string;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\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 resolveWixEventsCategoriesCategoryManagementUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'events._base_domain_': [\n {\n srcPath: '',\n destPath: '',\n },\n {\n srcPath: '/_api/wix-events-web',\n destPath: '/api',\n },\n ],\n 'www.wixevents.com': [\n {\n srcPath: '/_api/wix-events-web',\n destPath: '/api',\n },\n {\n srcPath: '/api',\n destPath: '/api',\n },\n {\n srcPath: '/viewEvent',\n destPath: '/viewEvent',\n },\n {\n srcPath: '/viewRsvpDashboard',\n destPath: '/viewRsvpDashboard',\n },\n {\n srcPath: '/viewOrderDashboard',\n destPath: '/viewOrderDashboard',\n },\n {\n srcPath: '/viewSummarySubscription',\n destPath: '/viewSummarySubscription',\n },\n {\n srcPath: '/check-in',\n destPath: '/check-in',\n },\n {\n srcPath: '/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/export',\n destPath: '/export',\n },\n {\n srcPath: '/tickets',\n destPath: '/tickets',\n },\n {\n srcPath: '/payment-redirect',\n destPath: '/payment-redirect',\n },\n {\n srcPath: '/admin',\n destPath: '/admin',\n },\n {\n srcPath: '/ticket',\n destPath: '/ticket',\n },\n {\n srcPath: '/media',\n destPath: '/media',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/wix-events-web',\n destPath: '',\n },\n ],\n 'events.wixapps.net': [\n {\n srcPath: '/_api/wix-events-web',\n destPath: '/api',\n },\n {\n srcPath: '/events',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/wix-events-web',\n destPath: '/api',\n },\n {\n srcPath: '/_api/wix-events-web/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk-async/categories',\n destPath: '/v1/bulk-async/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk/categories',\n destPath: '/v1/bulk/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/categories',\n destPath: '/v1/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/events',\n destPath: '/v1/events',\n },\n {\n srcPath: '/_api/wix-events-web/v1/orders',\n destPath: '/v1/orders',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/wix-events-web',\n destPath: '/api',\n },\n {\n srcPath: '/events',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/wix-events-web',\n destPath: '/api',\n },\n {\n srcPath: '/_api/wix-events-web/v1/events',\n destPath: '/v1/events',\n },\n {\n srcPath: '/_api/wix-events-web/v1/categories',\n destPath: '/v1/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v2/events',\n destPath: '/v2/events',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk/categories',\n destPath: '/v1/bulk/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk/events',\n destPath: '/v1/bulk/events',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk-async/categories',\n destPath: '/v1/bulk-async/categories',\n },\n {\n srcPath: '/events/v1/events',\n destPath: '/v1/events',\n },\n {\n srcPath: '/events/v1/categories',\n destPath: '/v1/categories',\n },\n {\n srcPath: '/events/v1/bulk/categories',\n destPath: '/v1/bulk/categories',\n },\n {\n srcPath: '/events/v1/bulk-async/categories',\n destPath: '/v1/bulk-async/categories',\n },\n {\n srcPath: '/events/v1/bulk/events',\n destPath: '/v1/bulk/events',\n },\n {\n srcPath: '/events/v1/reports',\n destPath: '/v1/reports',\n },\n {\n srcPath: '/events/v1/orders',\n destPath: '/v1/orders',\n },\n {\n srcPath: '/events/v1/web',\n destPath: '/v1/web',\n },\n {\n srcPath: '/events/v2/tickets',\n destPath: '/v2/tickets',\n },\n {\n srcPath: '/events/v2/events',\n destPath: '/v2/events',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/events/v1/events',\n destPath: '/v1/events',\n },\n {\n srcPath: '/events/v1/categories',\n destPath: '/v1/categories',\n },\n {\n srcPath: '/events/v1/orders',\n destPath: '/v1/orders',\n },\n {\n srcPath: '/events/v1/bulk/categories',\n destPath: '/v1/bulk/categories',\n },\n {\n srcPath: '/events/v2/events',\n destPath: '/v2/events',\n },\n {\n srcPath: '/events/v1/bulk-async/categories',\n destPath: '/v1/bulk-async/categories',\n },\n ],\n 'api._base_domain_': [\n {\n srcPath: '/events/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/events/v1/bulk-async/categories',\n destPath: '/v1/bulk-async/categories',\n },\n {\n srcPath: '/events/v1/bulk/categories',\n destPath: '/v1/bulk/categories',\n },\n {\n srcPath: '/events/v1/categories',\n destPath: '/v1/categories',\n },\n {\n srcPath: '/events/v1/events',\n destPath: '/v1/events',\n },\n {\n srcPath: '/events/v1/orders',\n destPath: '/v1/orders',\n },\n ],\n _: [\n {\n srcPath: '/_api/wix-events-web/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk-async/categories',\n destPath: '/v1/bulk-async/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk/categories',\n destPath: '/v1/bulk/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/categories',\n destPath: '/v1/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/events',\n destPath: '/v1/events',\n },\n {\n srcPath: '/_api/wix-events-web/v1/orders',\n destPath: '/v1/orders',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/events/v2/events',\n destPath: '/v2/events',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk-async/categories',\n destPath: '/v1/bulk-async/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk/categories',\n destPath: '/v1/bulk/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/categories',\n destPath: '/v1/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/events',\n destPath: '/v1/events',\n },\n {\n srcPath: '/_api/wix-events-web/v1/orders',\n destPath: '/v1/orders',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/wix-events-web/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk-async/categories',\n destPath: '/v1/bulk-async/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk/categories',\n destPath: '/v1/bulk/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/categories',\n destPath: '/v1/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/events',\n destPath: '/v1/events',\n },\n {\n srcPath: '/_api/wix-events-web/v1/orders',\n destPath: '/v1/orders',\n },\n ],\n '*.pub.wix-code.com': [\n {\n srcPath: '/_api/wix-events-web/v1/bulk-async/categories',\n destPath: '/v1/bulk-async/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk/categories',\n destPath: '/v1/bulk/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/categories',\n destPath: '/v1/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/events',\n destPath: '/v1/events',\n },\n {\n srcPath: '/_api/wix-events-web/v1/orders',\n destPath: '/v1/orders',\n },\n ],\n 'editor-flow.wixapps.net': [\n {\n srcPath: '/_api/wix-events-web/v1/bulk-async/categories',\n destPath: '/v1/bulk-async/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk/categories',\n destPath: '/v1/bulk/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/categories',\n destPath: '/v1/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/events',\n destPath: '/v1/events',\n },\n {\n srcPath: '/_api/wix-events-web/v1/orders',\n destPath: '/v1/orders',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/wix-events-web/v1/bulk-async/categories',\n destPath: '/v1/bulk-async/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk/categories',\n destPath: '/v1/bulk/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/categories',\n destPath: '/v1/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/events',\n destPath: '/v1/events',\n },\n {\n srcPath: '/_api/wix-events-web/v1/orders',\n destPath: '/v1/orders',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/wix-events-web/v1/bulk-async/categories',\n destPath: '/v1/bulk-async/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk/categories',\n destPath: '/v1/bulk/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/categories',\n destPath: '/v1/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/events',\n destPath: '/v1/events',\n },\n {\n srcPath: '/_api/wix-events-web/v1/orders',\n destPath: '/v1/orders',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/wix-events-web/v1/bulk-async/categories',\n destPath: '/v1/bulk-async/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk/categories',\n destPath: '/v1/bulk/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/categories',\n destPath: '/v1/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/events',\n destPath: '/v1/events',\n },\n {\n srcPath: '/_api/wix-events-web/v1/orders',\n destPath: '/v1/orders',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_events_categories';\n\n/** Creates a category. */\nexport function createCategory(payload: object): RequestOptionsFactory<any> {\n function __createCategory({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'category.createdDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.events.v1.category',\n method: 'POST' as any,\n methodFqn: 'wix.events.categories.CategoryManagement.CreateCategory',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsCategoriesCategoryManagementUrl({\n protoPath: '/v1/categories',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'category.createdDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createCategory;\n}\n\n/** Creates multiple categories at once. */\nexport function bulkCreateCategory(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkCreateCategory({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'categories.createdDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.events.v1.category',\n method: 'POST' as any,\n methodFqn: 'wix.events.categories.CategoryManagement.BulkCreateCategory',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsCategoriesCategoryManagementUrl({\n protoPath: '/v1/bulk/categories/create',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'results.item.createdDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateCategory;\n}\n\n/** Updates an existing category. */\nexport function updateCategory(payload: object): RequestOptionsFactory<any> {\n function __updateCategory({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'category.createdDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.events.v1.category',\n method: 'PATCH' as any,\n methodFqn: 'wix.events.categories.CategoryManagement.UpdateCategory',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsCategoriesCategoryManagementUrl({\n protoPath: '/v1/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: [{ path: 'category.createdDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateCategory;\n}\n\n/** Deletes a category. */\nexport function deleteCategory(payload: object): RequestOptionsFactory<any> {\n function __deleteCategory({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.category',\n method: 'DELETE' as any,\n methodFqn: 'wix.events.categories.CategoryManagement.DeleteCategory',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsCategoriesCategoryManagementUrl({\n protoPath: '/v1/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/**\n * Creates a query to retrieve a list of categories.\n *\n *\n * The `queryCategories()` function builds a query to retrieve a list of categories and returns a `CategoriesQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/find) function.\n *\n * You can refine the query by chaining `CategoriesQueryBuilder` functions onto the query. `CategoriesQueryBuilder` functions enable you to sort, filter, and control the results `queryCategories()` returns.\n *\n * `queryCategories()` runs with these `CategoriesQueryBuilder` defaults, which you can override:\n *\n * - [`limit(50)`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/limit)\n */\nexport function queryCategories(payload: object): RequestOptionsFactory<any> {\n function __queryCategories({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.category',\n method: 'POST' as any,\n methodFqn: 'wix.events.categories.CategoryManagement.QueryCategories',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsCategoriesCategoryManagementUrl({\n protoPath: '/v1/categories/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'categories.createdDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryCategories;\n}\n\n/** Assigns events to a single category. */\nexport function assignEvents(payload: object): RequestOptionsFactory<any> {\n function __assignEvents({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.category',\n method: 'POST' as any,\n methodFqn: 'wix.events.categories.CategoryManagement.AssignEvents',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsCategoriesCategoryManagementUrl({\n protoPath: '/v1/categories/{categoryId}/events',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __assignEvents;\n}\n\n/** Assigns events to multiple categories at once. */\nexport function bulkAssignEvents(payload: object): RequestOptionsFactory<any> {\n function __bulkAssignEvents({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.category',\n method: 'POST' as any,\n methodFqn: 'wix.events.categories.CategoryManagement.BulkAssignEvents',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsCategoriesCategoryManagementUrl({\n protoPath: '/v1/bulk/categories/events',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'results.item.createdDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkAssignEvents;\n}\n\n/**\n * Assigns events that match given filter criteria to multiple categories.\n *\n * Unlike the [`bulkAssignEvents()`](https://www.wix.com/velo/reference/wix-events-v2/categories/bulkassignevents) function, this function can handle numerous requests and is less prone to failures.\n *\n * However, the events will not be instantly assigned to the categories (as with `bulkAssignEvents()`), but rather after some time. In this case, if try to [`listEventCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/listeventcategories) or [`queryCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/querycategories), you might not get the correct response.\n */\nexport function bulkAssignEventsAsync(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkAssignEventsAsync({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.category',\n method: 'POST' as any,\n methodFqn:\n 'wix.events.categories.CategoryManagement.BulkAssignEventsAsync',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsCategoriesCategoryManagementUrl({\n protoPath: '/v1/bulk-async/categories/assign-events-by-filter',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkAssignEventsAsync;\n}\n\n/** Unassigns events from a category. */\nexport function unassignEvents(payload: object): RequestOptionsFactory<any> {\n function __unassignEvents({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.category',\n method: 'DELETE' as any,\n methodFqn: 'wix.events.categories.CategoryManagement.UnassignEvents',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsCategoriesCategoryManagementUrl({\n protoPath: '/v1/categories/{categoryId}/events',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __unassignEvents;\n}\n\n/** Unassigns events from multiple categories at once. */\nexport function bulkUnassignEvents(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUnassignEvents({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.category',\n method: 'DELETE' as any,\n methodFqn: 'wix.events.categories.CategoryManagement.BulkUnassignEvents',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsCategoriesCategoryManagementUrl({\n protoPath: '/v1/bulk/categories/events',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'results.item.createdDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkUnassignEvents;\n}\n\n/**\n * Removes events that match given filter criteria from multiple categories.\n *\n * Unlike the [`bulkUnassignEvents()`](https://www.wix.com/velo/reference/wix-events-v2/categories/bulkunassignevents) function, this function can handle numerous requests and is less prone to failures.\n *\n * However, the events will not be instantly removed from the categories (as with `bulkUnassignEvents()`), but rather after some time. In this case, if try to [`listEventCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/listeventcategories) or [`queryCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/querycategories), you might not get the correct response.\n */\nexport function bulkUnassignEventsAsync(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUnassignEventsAsync({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.category',\n method: 'POST' as any,\n methodFqn:\n 'wix.events.categories.CategoryManagement.BulkUnassignEventsAsync',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsCategoriesCategoryManagementUrl({\n protoPath: '/v1/bulk-async/categories/unassign-events-by-filter',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUnassignEventsAsync;\n}\n\n/** Retrieves a list of categories that are not in the `HIDDEN` state. */\nexport function listEventCategories(\n payload: object\n): RequestOptionsFactory<any> {\n function __listEventCategories({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.category',\n method: 'GET' as any,\n methodFqn: 'wix.events.categories.CategoryManagement.ListEventCategories',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsCategoriesCategoryManagementUrl({\n protoPath: '/v1/categories/{eventId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'categories.createdDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listEventCategories;\n}\n\n/**\n * Change the order of events that are assigned to the same category on the Events Widget.\n *\n *\n * For more information see [this article](https://support.wix.com/en/article/creating-and-displaying-event-categories)\n */\nexport function reorderCategoryEvents(\n payload: object\n): RequestOptionsFactory<any> {\n function __reorderCategoryEvents({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.category',\n method: 'POST' as any,\n methodFqn:\n 'wix.events.categories.CategoryManagement.ReorderCategoryEvents',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsCategoriesCategoryManagementUrl({\n protoPath: '/v1/categories/{categoryId}/reorder',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __reorderCategoryEvents;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n BulkAssignEventsAsyncOptions,\n BulkAssignEventsOptions,\n BulkAssignEventsResponse,\n BulkCreateCategoryResponse,\n BulkUnassignEventsAsyncOptions,\n BulkUnassignEventsOptions,\n BulkUnassignEventsResponse,\n CategoriesQueryBuilder,\n Category,\n CategoryQuery,\n ListEventCategoriesResponse,\n QueryCategoriesOptions,\n QueryCategoriesResponse,\n ReorderCategoryEventsApplicationErrors,\n ReorderCategoryEventsOptions,\n UpdateCategory,\n assignEvents as universalAssignEvents,\n bulkAssignEvents as universalBulkAssignEvents,\n bulkAssignEventsAsync as universalBulkAssignEventsAsync,\n bulkCreateCategory as universalBulkCreateCategory,\n bulkUnassignEvents as universalBulkUnassignEvents,\n bulkUnassignEventsAsync as universalBulkUnassignEventsAsync,\n createCategory as universalCreateCategory,\n deleteCategory as universalDeleteCategory,\n listEventCategories as universalListEventCategories,\n queryCategories as universalQueryCategories,\n reorderCategoryEvents as universalReorderCategoryEvents,\n typedQueryCategories as universalTypedQueryCategories,\n unassignEvents as universalUnassignEvents,\n updateCategory as universalUpdateCategory,\n} from './events-v1-category-categories.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/events' };\n\nexport function createCategory(\n httpClient: HttpClient\n): CreateCategorySignature {\n return (category: Category) =>\n universalCreateCategory(\n category,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateCategorySignature {\n /**\n * Creates a category.\n * @param - Category to create.\n * @returns Created category.\n */\n (category: Category): Promise<\n NonNullablePaths<Category, `_id` | `name` | `states`, 2>\n >;\n}\n\nexport function bulkCreateCategory(\n httpClient: HttpClient\n): BulkCreateCategorySignature {\n return (categories: Category[]) =>\n universalBulkCreateCategory(\n categories,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkCreateCategorySignature {\n /**\n * Creates multiple categories at once.\n * @param - Categories to create.\n */\n (categories: Category[]): Promise<\n NonNullablePaths<\n BulkCreateCategoryResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item._id`\n | `results.${number}.item.name`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\nexport function updateCategory(\n httpClient: HttpClient\n): UpdateCategorySignature {\n return (_id: string, category: UpdateCategory) =>\n universalUpdateCategory(\n _id,\n category,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateCategorySignature {\n /**\n * Updates an existing category.\n * @param - Category ID.\n * @returns Updated category.\n */\n (_id: string, category: UpdateCategory): Promise<\n NonNullablePaths<Category, `_id` | `name` | `states`, 2>\n >;\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 * @param - ID of category to be deleted.\n */\n (categoryId: string): Promise<void>;\n}\n\nexport function queryCategories(\n httpClient: HttpClient\n): QueryCategoriesSignature {\n return (options?: QueryCategoriesOptions) =>\n universalQueryCategories(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryCategoriesSignature {\n /**\n * Creates a query to retrieve a list of categories.\n *\n *\n * The `queryCategories()` function builds a query to retrieve a list of categories and returns a `CategoriesQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/find) function.\n *\n * You can refine the query by chaining `CategoriesQueryBuilder` functions onto the query. `CategoriesQueryBuilder` functions enable you to sort, filter, and control the results `queryCategories()` returns.\n *\n * `queryCategories()` runs with these `CategoriesQueryBuilder` defaults, which you can override:\n *\n * - [`limit(50)`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/limit)\n * @param - Options to use when querying categories.\n */\n (options?: QueryCategoriesOptions): CategoriesQueryBuilder;\n}\n\nexport function typedQueryCategories(\n httpClient: HttpClient\n): TypedQueryCategoriesSignature {\n return (query: CategoryQuery, options?: QueryCategoriesOptions) =>\n universalTypedQueryCategories(\n query,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface TypedQueryCategoriesSignature {\n /** */\n (query: CategoryQuery, options?: QueryCategoriesOptions): Promise<\n NonNullablePaths<\n QueryCategoriesResponse,\n `categories` | `categories.${number}._id` | `categories.${number}.name`,\n 4\n >\n >;\n}\n\nexport function assignEvents(httpClient: HttpClient): AssignEventsSignature {\n return (categoryId: string, eventId: string[]) =>\n universalAssignEvents(\n categoryId,\n eventId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface AssignEventsSignature {\n /**\n * Assigns events to a single category.\n * @param - ID of category to which events should be assigned.\n * @param - A list of events IDs.\n */\n (categoryId: string, eventId: string[]): Promise<void>;\n}\n\nexport function bulkAssignEvents(\n httpClient: HttpClient\n): BulkAssignEventsSignature {\n return (\n categoryId: string[],\n options: NonNullablePaths<BulkAssignEventsOptions, `eventId`, 2>\n ) =>\n universalBulkAssignEvents(\n categoryId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkAssignEventsSignature {\n /**\n * Assigns events to multiple categories at once.\n * @param - A list of category IDs to which events should be assigned.\n * @param - Options to use when assigning events to multiple categories.\n */\n (\n categoryId: string[],\n options: NonNullablePaths<BulkAssignEventsOptions, `eventId`, 2>\n ): Promise<\n NonNullablePaths<\n BulkAssignEventsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item._id`\n | `results.${number}.item.name`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\nexport function bulkAssignEventsAsync(\n httpClient: HttpClient\n): BulkAssignEventsAsyncSignature {\n return (\n categoryId: string[],\n options: NonNullablePaths<BulkAssignEventsAsyncOptions, `filter`, 2>\n ) =>\n universalBulkAssignEventsAsync(\n categoryId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkAssignEventsAsyncSignature {\n /**\n * Assigns events that match given filter criteria to multiple categories.\n *\n * Unlike the [`bulkAssignEvents()`](https://www.wix.com/velo/reference/wix-events-v2/categories/bulkassignevents) function, this function can handle numerous requests and is less prone to failures.\n *\n * However, the events will not be instantly assigned to the categories (as with `bulkAssignEvents()`), but rather after some time. In this case, if try to [`listEventCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/listeventcategories) or [`queryCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/querycategories), you might not get the correct response.\n * @param - Category IDs.\n * @param - Options to use when assigning events to multiple categories.\n */\n (\n categoryId: string[],\n options: NonNullablePaths<BulkAssignEventsAsyncOptions, `filter`, 2>\n ): Promise<void>;\n}\n\nexport function unassignEvents(\n httpClient: HttpClient\n): UnassignEventsSignature {\n return (categoryId: string, eventId: string[]) =>\n universalUnassignEvents(\n categoryId,\n eventId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UnassignEventsSignature {\n /**\n * Unassigns events from a category.\n * @param - Category ID.\n * @param - A list of events IDs.\n */\n (categoryId: string, eventId: string[]): Promise<void>;\n}\n\nexport function bulkUnassignEvents(\n httpClient: HttpClient\n): BulkUnassignEventsSignature {\n return (categoryId: string[], options?: BulkUnassignEventsOptions) =>\n universalBulkUnassignEvents(\n categoryId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUnassignEventsSignature {\n /**\n * Unassigns events from multiple categories at once.\n * @param - A list of category IDs.\n * @param - Options to use when removing events from multiple categories.\n */\n (categoryId: string[], options?: BulkUnassignEventsOptions): Promise<\n NonNullablePaths<\n BulkUnassignEventsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item._id`\n | `results.${number}.item.name`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\nexport function bulkUnassignEventsAsync(\n httpClient: HttpClient\n): BulkUnassignEventsAsyncSignature {\n return (\n categoryId: string[],\n options: NonNullablePaths<BulkUnassignEventsAsyncOptions, `filter`, 2>\n ) =>\n universalBulkUnassignEventsAsync(\n categoryId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUnassignEventsAsyncSignature {\n /**\n * Removes events that match given filter criteria from multiple categories.\n *\n * Unlike the [`bulkUnassignEvents()`](https://www.wix.com/velo/reference/wix-events-v2/categories/bulkunassignevents) function, this function can handle numerous requests and is less prone to failures.\n *\n * However, the events will not be instantly removed from the categories (as with `bulkUnassignEvents()`), but rather after some time. In this case, if try to [`listEventCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/listeventcategories) or [`queryCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/querycategories), you might not get the correct response.\n * @param - Category ID.\n * @param - Options to use when removing events from multiple categories.\n */\n (\n categoryId: string[],\n options: NonNullablePaths<BulkUnassignEventsAsyncOptions, `filter`, 2>\n ): Promise<void>;\n}\n\nexport function listEventCategories(\n httpClient: HttpClient\n): ListEventCategoriesSignature {\n return (eventId: string) =>\n universalListEventCategories(\n eventId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListEventCategoriesSignature {\n /**\n * Retrieves a list of categories that are not in the `HIDDEN` state.\n * @param - Event ID.\n */\n (eventId: string): Promise<\n NonNullablePaths<\n ListEventCategoriesResponse,\n `categories` | `categories.${number}._id` | `categories.${number}.name`,\n 4\n >\n >;\n}\n\nexport function reorderCategoryEvents(\n httpClient: HttpClient\n): ReorderCategoryEventsSignature {\n return (categoryId: string, options?: ReorderCategoryEventsOptions) =>\n universalReorderCategoryEvents(\n categoryId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ReorderCategoryEventsSignature {\n /**\n * Change the order of events that are assigned to the same category on the Events Widget.\n *\n *\n * For more information see [this article](https://support.wix.com/en/article/creating-and-displaying-event-categories)\n * @param - Category ID.\n * @param - Options to use when reordering events.\n */\n (categoryId: string, options?: ReorderCategoryEventsOptions): Promise<\n void & {\n __applicationErrorsType?: ReorderCategoryEventsApplicationErrors;\n }\n >;\n}\n\nexport {\n AccountInfo,\n ActionEvent,\n ApplicationError,\n AssignEventsRequest,\n AssignEventsResponse,\n BulkActionMetadata,\n BulkAssignEventsAsyncOptions,\n BulkAssignEventsAsyncRequest,\n BulkAssignEventsAsyncResponse,\n BulkAssignEventsOptions,\n BulkAssignEventsRequest,\n BulkAssignEventsResponse,\n BulkCategoryResult,\n BulkCreateCategoryRequest,\n BulkCreateCategoryResponse,\n BulkUnassignEventsAsyncOptions,\n BulkUnassignEventsAsyncRequest,\n BulkUnassignEventsAsyncResponse,\n BulkUnassignEventsOptions,\n BulkUnassignEventsRequest,\n BulkUnassignEventsResponse,\n CategoriesQueryBuilder,\n CategoriesQueryResult,\n Category,\n CategoryCounts,\n CategoryFieldset,\n CategoryQuerySpec,\n CreateCategoryRequest,\n CreateCategoryResponse,\n Cursors,\n DeleteCategoryRequest,\n DeleteCategoryResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n IdentificationData,\n IdentificationDataIdOneOf,\n ItemMetadata,\n ListEventCategoriesRequest,\n ListEventCategoriesResponse,\n MessageEnvelope,\n Paging,\n PagingMetadataV2,\n QueryCategoriesOptions,\n QueryCategoriesRequest,\n QueryCategoriesResponse,\n QueryV2,\n QueryV2PagingMethodOneOf,\n ReorderCategoryEventsOptions,\n ReorderCategoryEventsOptionsReferenceEventOneOf,\n ReorderCategoryEventsRequest,\n ReorderCategoryEventsRequestReferenceEventOneOf,\n ReorderCategoryEventsResponse,\n RestoreInfo,\n SortOrder,\n Sorting,\n State,\n UnassignEventsRequest,\n UnassignEventsResponse,\n UpdateCategory,\n UpdateCategoryRequest,\n UpdateCategoryResponse,\n WebhookIdentityType,\n} from './events-v1-category-categories.universal.js';\n","import {\n createCategory as publicCreateCategory,\n bulkCreateCategory as publicBulkCreateCategory,\n updateCategory as publicUpdateCategory,\n deleteCategory as publicDeleteCategory,\n queryCategories as publicQueryCategories,\n typedQueryCategories as publicTypedQueryCategories,\n assignEvents as publicAssignEvents,\n bulkAssignEvents as publicBulkAssignEvents,\n bulkAssignEventsAsync as publicBulkAssignEventsAsync,\n unassignEvents as publicUnassignEvents,\n bulkUnassignEvents as publicBulkUnassignEvents,\n bulkUnassignEventsAsync as publicBulkUnassignEventsAsync,\n listEventCategories as publicListEventCategories,\n reorderCategoryEvents as publicReorderCategoryEvents,\n} from './events-v1-category-categories.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\nimport { HttpClient } from '@wix/sdk-types';\nimport { createQueryOverloadRouter } from '@wix/sdk-runtime/query-method-router';\nimport {\n CategoriesQueryBuilder,\n CategoryQuery,\n QueryCategoriesOptions,\n typedQueryCategories as universalTypedQueryCategories,\n} from './events-v1-category-categories.universal.js';\n\nfunction customQueryCategories(httpClient: HttpClient) {\n const router = createQueryOverloadRouter({\n builderQueryFunction: (options?: QueryCategoriesOptions) =>\n publicQueryCategories(httpClient)(options),\n typedQueryFunction: (\n query: CategoryQuery,\n options?: QueryCategoriesOptions\n ) => publicTypedQueryCategories(httpClient)(query, options),\n hasOptionsParameter: true,\n });\n\n function overloadedQuery(\n query: CategoryQuery,\n options?: QueryCategoriesOptions\n ): ReturnType<typeof universalTypedQueryCategories>;\n function overloadedQuery(\n options?: QueryCategoriesOptions\n ): CategoriesQueryBuilder;\n function overloadedQuery(\n queryOrOptions?: CategoryQuery | QueryCategoriesOptions,\n options?: QueryCategoriesOptions\n ): any {\n return router(...arguments);\n }\n\n return overloadedQuery;\n}\n\nexport const createCategory: MaybeContext<\n BuildRESTFunction<typeof publicCreateCategory> & typeof publicCreateCategory\n> = /*#__PURE__*/ createRESTModule(publicCreateCategory);\nexport const bulkCreateCategory: MaybeContext<\n BuildRESTFunction<typeof publicBulkCreateCategory> &\n typeof publicBulkCreateCategory\n> = /*#__PURE__*/ createRESTModule(publicBulkCreateCategory);\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 assignEvents: MaybeContext<\n BuildRESTFunction<typeof publicAssignEvents> & typeof publicAssignEvents\n> = /*#__PURE__*/ createRESTModule(publicAssignEvents);\nexport const bulkAssignEvents: MaybeContext<\n BuildRESTFunction<typeof publicBulkAssignEvents> &\n typeof publicBulkAssignEvents\n> = /*#__PURE__*/ createRESTModule(publicBulkAssignEvents);\nexport const bulkAssignEventsAsync: MaybeContext<\n BuildRESTFunction<typeof publicBulkAssignEventsAsync> &\n typeof publicBulkAssignEventsAsync\n> = /*#__PURE__*/ createRESTModule(publicBulkAssignEventsAsync);\nexport const unassignEvents: MaybeContext<\n BuildRESTFunction<typeof publicUnassignEvents> & typeof publicUnassignEvents\n> = /*#__PURE__*/ createRESTModule(publicUnassignEvents);\nexport const bulkUnassignEvents: MaybeContext<\n BuildRESTFunction<typeof publicBulkUnassignEvents> &\n typeof publicBulkUnassignEvents\n> = /*#__PURE__*/ createRESTModule(publicBulkUnassignEvents);\nexport const bulkUnassignEventsAsync: MaybeContext<\n BuildRESTFunction<typeof publicBulkUnassignEventsAsync> &\n typeof publicBulkUnassignEventsAsync\n> = /*#__PURE__*/ createRESTModule(publicBulkUnassignEventsAsync);\nexport const listEventCategories: MaybeContext<\n BuildRESTFunction<typeof publicListEventCategories> &\n typeof publicListEventCategories\n> = /*#__PURE__*/ createRESTModule(publicListEventCategories);\nexport const reorderCategoryEvents: MaybeContext<\n BuildRESTFunction<typeof publicReorderCategoryEvents> &\n typeof publicReorderCategoryEvents\n> = /*#__PURE__*/ createRESTModule(publicReorderCategoryEvents);\nexport const queryCategories: MaybeContext<\n BuildRESTFunction<typeof customQueryCategories> & typeof customQueryCategories\n> = /*#__PURE__*/ createRESTModule(customQueryCategories);\n\nexport {\n State,\n SortOrder,\n CategoryFieldset,\n WebhookIdentityType,\n} from './events-v1-category-categories.universal.js';\nexport {\n Category,\n CategoryCounts,\n CreateCategoryRequest,\n CreateCategoryResponse,\n BulkCreateCategoryRequest,\n BulkCreateCategoryResponse,\n BulkCategoryResult,\n ItemMetadata,\n ApplicationError,\n BulkActionMetadata,\n UpdateCategoryRequest,\n UpdateCategoryResponse,\n DeleteCategoryRequest,\n DeleteCategoryResponse,\n QueryCategoriesRequest,\n QueryV2,\n QueryV2PagingMethodOneOf,\n Sorting,\n Paging,\n QueryCategoriesResponse,\n PagingMetadataV2,\n Cursors,\n AssignEventsRequest,\n AssignEventsResponse,\n BulkAssignEventsRequest,\n BulkAssignEventsResponse,\n BulkAssignEventsAsyncRequest,\n BulkAssignEventsAsyncResponse,\n UnassignEventsRequest,\n UnassignEventsResponse,\n BulkUnassignEventsRequest,\n BulkUnassignEventsResponse,\n BulkUnassignEventsAsyncRequest,\n BulkUnassignEventsAsyncResponse,\n ListEventCategoriesRequest,\n ListEventCategoriesResponse,\n ReorderCategoryEventsRequest,\n ReorderCategoryEventsRequestReferenceEventOneOf,\n ReorderCategoryEventsResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n UpdateCategory,\n QueryCategoriesOptions,\n CategoriesQueryResult,\n CategoriesQueryBuilder,\n CategoryQuerySpec,\n BulkAssignEventsOptions,\n BulkAssignEventsAsyncOptions,\n BulkUnassignEventsOptions,\n BulkUnassignEventsAsyncOptions,\n ReorderCategoryEventsOptions,\n ReorderCategoryEventsOptionsReferenceEventOneOf,\n} from './events-v1-category-categories.universal.js';\nexport {\n StateWithLiterals,\n SortOrderWithLiterals,\n CategoryFieldsetWithLiterals,\n WebhookIdentityTypeWithLiterals,\n ReorderCategoryEventsApplicationErrors,\n CommonQueryWithEntityContext,\n CategoryQuery,\n} from './events-v1-category-categories.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAAA;AAAA,EAAA,wBAAAC;AAAA,EAAA,6BAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,+BAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,6BAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,sBAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,gDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SA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AAS;AAAA,EAC5B;AAEA,SAAO;AACT;AAEO,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMC,sBAGK,2DAAiBA,mBAAwB;AACpD,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMC,gBAEK,2DAAiBA,aAAkB;AAC9C,IAAMC,oBAGK,2DAAiBA,iBAAsB;AAClD,IAAMC,yBAGK,2DAAiBA,sBAA2B;AACvD,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMC,sBAGK,2DAAiBA,mBAAwB;AACpD,IAAMC,2BAGK,2DAAiBA,wBAA6B;AACzD,IAAMC,uBAGK,2DAAiBA,oBAAyB;AACrD,IAAMC,yBAGK,2DAAiBA,sBAA2B;AACvD,IAAMb,mBAEK,2DAAiB,qBAAqB;","names":["assignEvents","bulkAssignEvents","bulkAssignEventsAsync","bulkCreateCategory","bulkUnassignEvents","bulkUnassignEventsAsync","createCategory","deleteCategory","listEventCategories","queryCategories","reorderCategoryEvents","unassignEvents","updateCategory","import_timestamp","import_rest_modules","payload","import_transform_paths","State","SortOrder","CategoryFieldset","WebhookIdentityType","createCategory","sdkTransformError","bulkCreateCategory","updateCategory","deleteCategory","queryCategories","assignEvents","bulkAssignEvents","bulkAssignEventsAsync","unassignEvents","bulkUnassignEvents","bulkUnassignEventsAsync","listEventCategories","reorderCategoryEvents","createCategory","bulkCreateCategory","updateCategory","deleteCategory","queryCategories","typedQueryCategories","assignEvents","bulkAssignEvents","bulkAssignEventsAsync","unassignEvents","bulkUnassignEvents","bulkUnassignEventsAsync","listEventCategories","reorderCategoryEvents","import_rest_modules","queryCategories","typedQueryCategories","createCategory","bulkCreateCategory","updateCategory","deleteCategory","assignEvents","bulkAssignEvents","bulkAssignEventsAsync","unassignEvents","bulkUnassignEvents","bulkUnassignEventsAsync","listEventCategories","reorderCategoryEvents"]}
|
|
1
|
+
{"version":3,"sources":["../../index.ts","../../src/events-v1-category-categories.universal.ts","../../src/events-v1-category-categories.http.ts","../../src/events-v1-category-categories.public.ts","../../src/events-v1-category-categories.context.ts"],"sourcesContent":["export * from './src/events-v1-category-categories.context.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 {\n HttpClient,\n HttpResponse,\n NonNullablePaths,\n QuerySpec,\n Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixEventsV1Category from './events-v1-category-categories.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/**\n * A Category is a classification object that groups related events on a site so you can organize and display them by themes, venues, or other facets.\n *\n * You can manage Categories, assign events to them, and use them to control the selection and order of events across different pages and widgets.\n *\n * Read more about [Categories](https://support.wix.com/en/article/creating-and-displaying-event-categories).\n */\nexport interface Category {\n /**\n * Category ID.\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * Category name.\n * @minLength 1\n * @maxLength 30\n */\n name?: string;\n /**\n * Date and time when category was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * The total number of draft and published events assigned to the category.\n * @readonly\n */\n counts?: CategoryCounts;\n /**\n * Category state. Possible values:\n * - `MANUAL`: Category is created manually by the user.\n * - `AUTO`: Category is created automatically.\n * - `RECURRING_EVENT`: Category is created automatically when publishing recurring events.\n * - `HIDDEN`: Category can't be seen.\n *\n * Default: `MANUAL`.\n *\n * **Note:** The WIX_EVENTS.MANAGE_AUTO_CATEGORIES permission is required to use states other than `MANUAL`.\n * @maxSize 3\n */\n states?: StateWithLiterals[];\n}\n\nexport interface CategoryCounts {\n /** Total number of published events assigned to the category. Deleted events are excluded. */\n assignedEventsCount?: number | null;\n /** Total number of draft events assigned to the category. */\n assignedDraftEventsCount?: number | null;\n}\n\nexport enum State {\n /** Categoty is created manually by the user. */\n MANUAL = 'MANUAL',\n /** Category is created automatically. */\n AUTO = 'AUTO',\n /** Category is created automatically when publishing recurring events. */\n RECURRING_EVENT = 'RECURRING_EVENT',\n /** Category is hidden. */\n HIDDEN = 'HIDDEN',\n}\n\n/** @enumType */\nexport type StateWithLiterals =\n | State\n | 'MANUAL'\n | 'AUTO'\n | 'RECURRING_EVENT'\n | 'HIDDEN';\n\nexport interface CreateCategoryRequest {\n /** Category to create. */\n category: Category;\n}\n\nexport interface CreateCategoryResponse {\n /** Created category. */\n category?: Category;\n}\n\nexport interface BulkCreateCategoryRequest {\n /**\n * Categories to create.\n * @minSize 1\n * @maxSize 10\n */\n categories: Category[];\n}\n\nexport interface BulkCreateCategoryResponse {\n /** Bulk create results. */\n results?: BulkCategoryResult[];\n /** Metadata of results. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkCategoryResult {\n /** Metadata. */\n itemMetadata?: ItemMetadata;\n /** Created categories. */\n item?: Category;\n}\n\nexport interface ItemMetadata {\n /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */\n _id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details due to exceeding the threshold for detailed failures. */\n undetailedFailures?: number;\n}\n\nexport interface UpdateCategoryRequest {\n /** Category to update. */\n category: Category;\n}\n\nexport interface UpdateCategoryResponse {\n /** Updated category. */\n category?: Category;\n}\n\nexport interface DeleteCategoryRequest {\n /**\n * ID of category to be deleted.\n * @format GUID\n */\n categoryId: string;\n}\n\nexport interface DeleteCategoryResponse {}\n\nexport interface QueryCategoriesRequest {\n /** Options to use when querying categories. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more details. */\n query: QueryV2;\n /**\n * Predefined sets of fields to return.\n * - `COUNTS`: Returns `assignedEventsCount`.\n * @maxSize 1\n */\n fieldset?: CategoryFieldsetWithLiterals[];\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /**\n * Pointer to page of results using offset.\n * See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination).\n */\n paging?: Paging;\n /** Filter. See [supported fields and operators](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events). */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the form [{\"fieldName\":\"sortField1\"},{\"fieldName\":\"sortField2\",\"direction\":\"DESC\"}]\n * See [supported fields](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events).\n * @maxSize 20\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /**\n * Pointer to page of results using offset.\n * See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination).\n */\n paging?: Paging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by\n * @maxLength 100\n */\n fieldName?: string;\n /** Sort order (ASC/DESC). Defaults to ASC */\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 Paging {\n /**\n * Number of items to load per page.\n * @max 1000\n */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport enum CategoryFieldset {\n /** Include `assignedEventsCount` in the response. */\n COUNTS = 'COUNTS',\n}\n\n/** @enumType */\nexport type CategoryFieldsetWithLiterals = CategoryFieldset | 'COUNTS';\n\nexport interface QueryCategoriesResponse {\n /** List of categories. */\n categories?: Category[];\n /** Metadata for the paginated results. */\n metaData?: 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 AssignEventsRequest {\n /**\n * ID of category to which events should be assigned.\n * @format GUID\n */\n categoryId: string;\n /**\n * A list of events IDs.\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n eventId: string[];\n}\n\nexport interface AssignEventsResponse {}\n\nexport interface BulkAssignEventsRequest {\n /**\n * A list of category IDs to which events should be assigned.\n * @format GUID\n * @minSize 1\n * @maxSize 10\n */\n categoryId: string[];\n /**\n * A list of events IDs.\n * @format GUID\n * @minSize 1\n * @maxSize 1\n */\n eventId: string[];\n}\n\nexport interface BulkAssignEventsResponse {\n /** Bulk assign results. */\n results?: BulkCategoryResult[];\n /** Metadata of results. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkAssignEventsAsyncRequest {\n /**\n * Category IDs.\n * @format GUID\n * @minSize 1\n * @maxSize 10\n */\n categoryId: string[];\n /**\n * Criteria that must be met for an event to be considered for the bulk assign. Supported filters for this API:\n * - `_id`: [`eq()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/eq)\n * - `name`: [`eq()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/eq)\n */\n filter: Record<string, any> | null;\n}\n\nexport interface BulkAssignEventsAsyncResponse {}\n\nexport interface UnassignEventsRequest {\n /**\n * Category ID.\n * @format GUID\n */\n categoryId: string;\n /**\n * A list of events IDs.\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n eventId: string[];\n}\n\nexport interface UnassignEventsResponse {}\n\nexport interface BulkUnassignEventsRequest {\n /**\n * A list of category IDs.\n * @format GUID\n * @minSize 1\n * @maxSize 10\n */\n categoryId: string[];\n /**\n * A list of events IDs.\n * @format GUID\n * @minSize 1\n * @maxSize 1\n */\n eventId?: string[];\n}\n\nexport interface BulkUnassignEventsResponse {\n /** Results. */\n results?: BulkCategoryResult[];\n /** Metadata of results. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkUnassignEventsAsyncRequest {\n /**\n * Category ID.\n * @format GUID\n * @minSize 1\n * @maxSize 10\n */\n categoryId: string[];\n /**\n * Criteria that must be met for an event to be considered for the bulk assign. Supported filters for this API:\n * - `_id`: [`eq()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/eq)\n * - `name`: [`eq()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/eq)\n */\n filter: Record<string, any> | null;\n}\n\nexport interface BulkUnassignEventsAsyncResponse {}\n\nexport interface ListEventCategoriesRequest {\n /**\n * Event ID.\n * @format GUID\n */\n eventId: string;\n}\n\nexport interface ListEventCategoriesResponse {\n /** A list of categories. */\n categories?: Category[];\n}\n\nexport interface ReorderCategoryEventsRequest\n extends ReorderCategoryEventsRequestReferenceEventOneOf {\n /**\n * Move the event before defined `eventId`.\n * @format GUID\n */\n beforeEventId?: string;\n /**\n * Move the event after defined `eventId`.\n * @format GUID\n */\n afterEventId?: string;\n /**\n * Category ID.\n * @format GUID\n */\n categoryId: string;\n /**\n * Event ID.\n * @format GUID\n */\n eventId?: string;\n}\n\n/** @oneof */\nexport interface ReorderCategoryEventsRequestReferenceEventOneOf {\n /**\n * Move the event before defined `eventId`.\n * @format GUID\n */\n beforeEventId?: string;\n /**\n * Move the event after defined `eventId`.\n * @format GUID\n */\n afterEventId?: string;\n}\n\nexport interface ReorderCategoryEventsResponse {}\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 /** Details related to the account */\n accountInfo?: AccountInfo;\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 AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type ReorderCategoryEventsApplicationErrors = {\n code?: 'INVALID_REORDER_INSTRUCTION';\n description?: string;\n data?: Record<string, any>;\n};\n\n/**\n * Creates a category.\n * @public\n * @requiredField category\n * @param category - Category to create.\n * @permissionId WIX_EVENTS.MANAGE_CATEGORIES\n * @applicableIdentity APP\n * @returns Created category.\n * @fqn wix.events.categories.CategoryManagement.CreateCategory\n */\nexport async function createCategory(\n category: Category\n): Promise<NonNullablePaths<Category, `_id` | `name` | `states`, 2>> {\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 = ambassadorWixEventsV1Category.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 * Creates multiple categories at once.\n * @param categories - Categories to create.\n * @public\n * @requiredField categories\n * @permissionId WIX_EVENTS.MANAGE_CATEGORIES\n * @applicableIdentity APP\n * @fqn wix.events.categories.CategoryManagement.BulkCreateCategory\n */\nexport async function bulkCreateCategory(\n categories: Category[]\n): Promise<\n NonNullablePaths<\n BulkCreateCategoryResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item._id`\n | `results.${number}.item.name`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n categories: categories,\n });\n\n const reqOpts = ambassadorWixEventsV1Category.bulkCreateCategory(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: { categories: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['categories']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates an existing category.\n * @param _id - Category ID.\n * @public\n * @requiredField _id\n * @requiredField category\n * @permissionId WIX_EVENTS.MANAGE_CATEGORIES\n * @applicableIdentity APP\n * @returns Updated category.\n * @fqn wix.events.categories.CategoryManagement.UpdateCategory\n */\nexport async function updateCategory(\n _id: string,\n category: UpdateCategory\n): Promise<NonNullablePaths<Category, `_id` | `name` | `states`, 2>> {\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 = ambassadorWixEventsV1Category.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;\n /**\n * Category name.\n * @minLength 1\n * @maxLength 30\n */\n name?: string;\n /**\n * Date and time when category was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * The total number of draft and published events assigned to the category.\n * @readonly\n */\n counts?: CategoryCounts;\n /**\n * Category state. Possible values:\n * - `MANUAL`: Category is created manually by the user.\n * - `AUTO`: Category is created automatically.\n * - `RECURRING_EVENT`: Category is created automatically when publishing recurring events.\n * - `HIDDEN`: Category can't be seen.\n *\n * Default: `MANUAL`.\n *\n * **Note:** The WIX_EVENTS.MANAGE_AUTO_CATEGORIES permission is required to use states other than `MANUAL`.\n * @maxSize 3\n */\n states?: StateWithLiterals[];\n}\n\n/**\n * Deletes a category.\n * @param categoryId - ID of category to be deleted.\n * @public\n * @requiredField categoryId\n * @permissionId WIX_EVENTS.MANAGE_CATEGORIES\n * @applicableIdentity APP\n * @fqn wix.events.categories.CategoryManagement.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 = ambassadorWixEventsV1Category.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 * Creates a query to retrieve a list of categories.\n *\n *\n * The `queryCategories()` function builds a query to retrieve a list of categories and returns a `CategoriesQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/find) function.\n *\n * You can refine the query by chaining `CategoriesQueryBuilder` functions onto the query. `CategoriesQueryBuilder` functions enable you to sort, filter, and control the results `queryCategories()` returns.\n *\n * `queryCategories()` runs with these `CategoriesQueryBuilder` defaults, which you can override:\n *\n * - [`limit(50)`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/limit)\n * @public\n * @param options - Options to use when querying categories.\n * @permissionId WIX_EVENTS.READ_CATEGORIES\n * @applicableIdentity APP\n * @fqn wix.events.categories.CategoryManagement.QueryCategories\n */\nexport function queryCategories(\n options?: QueryCategoriesOptions\n): CategoriesQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n Category,\n 'OFFSET',\n QueryCategoriesRequest,\n QueryCategoriesResponse\n >({\n func: async (payload: QueryCategoriesRequest) => {\n const reqOpts = ambassadorWixEventsV1Category.queryCategories({\n ...payload,\n ...(options ?? {}),\n });\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, options] as [\n QueryCategoriesRequest['query'],\n QueryCategoriesOptions\n ];\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?.metaData,\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: 'OFFSET',\n transformationPaths: {},\n });\n}\n\nexport interface QueryCategoriesOptions {\n /**\n * Predefined sets of fields to return.\n * - `COUNTS`: Returns `assignedEventsCount`.\n * @maxSize 1\n */\n fieldset?: CategoryFieldsetWithLiterals[] | undefined;\n}\n\ninterface QueryOffsetResult {\n currentPage: number | undefined;\n totalPages: number | undefined;\n totalCount: number | undefined;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface CategoriesQueryResult extends QueryOffsetResult {\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: (propertyName: '_id' | 'name', value: any) => CategoriesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n */\n hasSome: (propertyName: string, value: any[]) => 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' | 'name' | '_createdDate'>\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' | 'name' | '_createdDate'>\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 skip - Number of items to skip in the query results before returning the results. */\n skip: (skip: number) => CategoriesQueryBuilder;\n find: () => Promise<CategoriesQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.events.categories.CategoryManagement.QueryCategories\n * @requiredField query\n */\nexport async function typedQueryCategories(\n query: CategoryQuery,\n options?: QueryCategoriesOptions\n): Promise<\n NonNullablePaths<\n QueryCategoriesResponse,\n `categories` | `categories.${number}._id` | `categories.${number}.name`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n query: query,\n ...options,\n });\n\n const reqOpts = ambassadorWixEventsV1Category.queryCategories(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: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CategoryQuerySpec extends QuerySpec {\n paging: 'offset';\n wql: [\n {\n fields: ['_id', 'name'];\n operators: ['$eq'];\n sort: 'BOTH';\n },\n {\n fields: ['states'];\n operators: ['$hasSome'];\n sort: 'NONE';\n },\n {\n fields: ['_createdDate'];\n operators: [];\n sort: 'BOTH';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n Category,\n CategoryQuerySpec\n>;\nexport type CategoryQuery = {\n /** \n Pointer to page of results using offset.\n See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). \n */\n paging?: {\n /** \n Number of items to load per page. \n @max: 1000 \n */\n limit?: NonNullable<CommonQueryWithEntityContext['paging']>['limit'] | null;\n /** \n Number of items to skip in the current sort order. \n */\n offset?:\n | NonNullable<CommonQueryWithEntityContext['paging']>['offset']\n | null;\n };\n /** \n Filter. See [supported fields and operators](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events). \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n /** \n Sort object in the form [{\"fieldName\":\"sortField1\"},{\"fieldName\":\"sortField2\",\"direction\":\"DESC\"}]\n See [supported fields](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events). \n @maxSize: 20 \n */\n sort?: {\n /** \n Name of the field to sort by \n @maxLength: 100 \n */\n fieldName?: NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order (ASC/DESC). Defaults to ASC \n */\n order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n }[];\n};\n\n/**\n * Assigns events to a single category.\n * @param categoryId - ID of category to which events should be assigned.\n * @param eventId - A list of events IDs.\n * @public\n * @requiredField categoryId\n * @requiredField eventId\n * @permissionId WIX_EVENTS.MANAGE_CATEGORIES\n * @applicableIdentity APP\n * @fqn wix.events.categories.CategoryManagement.AssignEvents\n */\nexport async function assignEvents(\n categoryId: string,\n eventId: string[]\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n categoryId: categoryId,\n eventId: eventId,\n });\n\n const reqOpts = ambassadorWixEventsV1Category.assignEvents(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]', eventId: '$[1]' },\n singleArgumentUnchanged: false,\n },\n ['categoryId', 'eventId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Assigns events to multiple categories at once.\n * @param categoryId - A list of category IDs to which events should be assigned.\n * @public\n * @requiredField categoryId\n * @requiredField options\n * @requiredField options.eventId\n * @param options - Options to use when assigning events to multiple categories.\n * @permissionId WIX_EVENTS.MANAGE_CATEGORIES\n * @applicableIdentity APP\n * @fqn wix.events.categories.CategoryManagement.BulkAssignEvents\n */\nexport async function bulkAssignEvents(\n categoryId: string[],\n options: NonNullablePaths<BulkAssignEventsOptions, `eventId`, 2>\n): Promise<\n NonNullablePaths<\n BulkAssignEventsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item._id`\n | `results.${number}.item.name`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n categoryId: categoryId,\n eventId: options?.eventId,\n });\n\n const reqOpts = ambassadorWixEventsV1Category.bulkAssignEvents(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 categoryId: '$[0]',\n eventId: '$[1].eventId',\n },\n singleArgumentUnchanged: false,\n },\n ['categoryId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkAssignEventsOptions {\n /**\n * A list of events IDs.\n * @format GUID\n * @minSize 1\n * @maxSize 1\n */\n eventId: string[];\n}\n\n/**\n * Assigns events that match given filter criteria to multiple categories.\n *\n * Unlike the [`bulkAssignEvents()`](https://www.wix.com/velo/reference/wix-events-v2/categories/bulkassignevents) function, this function can handle numerous requests and is less prone to failures.\n *\n * However, the events will not be instantly assigned to the categories (as with `bulkAssignEvents()`), but rather after some time. In this case, if try to [`listEventCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/listeventcategories) or [`queryCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/querycategories), you might not get the correct response.\n * @param categoryId - Category IDs.\n * @public\n * @requiredField categoryId\n * @requiredField options\n * @requiredField options.filter\n * @param options - Options to use when assigning events to multiple categories.\n * @permissionId WIX_EVENTS.MANAGE_CATEGORIES\n * @applicableIdentity APP\n * @fqn wix.events.categories.CategoryManagement.BulkAssignEventsAsync\n */\nexport async function bulkAssignEventsAsync(\n categoryId: string[],\n options: NonNullablePaths<BulkAssignEventsAsyncOptions, `filter`, 2>\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n categoryId: categoryId,\n filter: options?.filter,\n });\n\n const reqOpts = ambassadorWixEventsV1Category.bulkAssignEventsAsync(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]', filter: '$[1].filter' },\n singleArgumentUnchanged: false,\n },\n ['categoryId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkAssignEventsAsyncOptions {\n /**\n * Criteria that must be met for an event to be considered for the bulk assign. Supported filters for this API:\n * - `_id`: [`eq()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/eq)\n * - `name`: [`eq()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/eq)\n */\n filter: Record<string, any> | null;\n}\n\n/**\n * Unassigns events from a category.\n * @param categoryId - Category ID.\n * @param eventId - A list of events IDs.\n * @public\n * @requiredField categoryId\n * @requiredField eventId\n * @permissionId WIX_EVENTS.MANAGE_CATEGORIES\n * @applicableIdentity APP\n * @fqn wix.events.categories.CategoryManagement.UnassignEvents\n */\nexport async function unassignEvents(\n categoryId: string,\n eventId: string[]\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n categoryId: categoryId,\n eventId: eventId,\n });\n\n const reqOpts = ambassadorWixEventsV1Category.unassignEvents(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]', eventId: '$[1]' },\n singleArgumentUnchanged: false,\n },\n ['categoryId', 'eventId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Unassigns events from multiple categories at once.\n * @param categoryId - A list of category IDs.\n * @public\n * @requiredField categoryId\n * @param options - Options to use when removing events from multiple categories.\n * @permissionId WIX_EVENTS.MANAGE_CATEGORIES\n * @applicableIdentity APP\n * @fqn wix.events.categories.CategoryManagement.BulkUnassignEvents\n */\nexport async function bulkUnassignEvents(\n categoryId: string[],\n options?: BulkUnassignEventsOptions\n): Promise<\n NonNullablePaths<\n BulkUnassignEventsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item._id`\n | `results.${number}.item.name`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n categoryId: categoryId,\n eventId: options?.eventId,\n });\n\n const reqOpts = ambassadorWixEventsV1Category.bulkUnassignEvents(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 categoryId: '$[0]',\n eventId: '$[1].eventId',\n },\n singleArgumentUnchanged: false,\n },\n ['categoryId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUnassignEventsOptions {\n /**\n * A list of events IDs.\n * @format GUID\n * @minSize 1\n * @maxSize 1\n */\n eventId?: string[];\n}\n\n/**\n * Removes events that match given filter criteria from multiple categories.\n *\n * Unlike the [`bulkUnassignEvents()`](https://www.wix.com/velo/reference/wix-events-v2/categories/bulkunassignevents) function, this function can handle numerous requests and is less prone to failures.\n *\n * However, the events will not be instantly removed from the categories (as with `bulkUnassignEvents()`), but rather after some time. In this case, if try to [`listEventCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/listeventcategories) or [`queryCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/querycategories), you might not get the correct response.\n * @param categoryId - Category ID.\n * @public\n * @requiredField categoryId\n * @requiredField options\n * @requiredField options.filter\n * @param options - Options to use when removing events from multiple categories.\n * @permissionId WIX_EVENTS.MANAGE_CATEGORIES\n * @applicableIdentity APP\n * @fqn wix.events.categories.CategoryManagement.BulkUnassignEventsAsync\n */\nexport async function bulkUnassignEventsAsync(\n categoryId: string[],\n options: NonNullablePaths<BulkUnassignEventsAsyncOptions, `filter`, 2>\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n categoryId: categoryId,\n filter: options?.filter,\n });\n\n const reqOpts =\n ambassadorWixEventsV1Category.bulkUnassignEventsAsync(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]', filter: '$[1].filter' },\n singleArgumentUnchanged: false,\n },\n ['categoryId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUnassignEventsAsyncOptions {\n /**\n * Criteria that must be met for an event to be considered for the bulk assign. Supported filters for this API:\n * - `_id`: [`eq()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/eq)\n * - `name`: [`eq()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/eq)\n */\n filter: Record<string, any> | null;\n}\n\n/**\n * Retrieves a list of categories that are not in the `HIDDEN` state.\n * @param eventId - Event ID.\n * @public\n * @requiredField eventId\n * @permissionId WIX_EVENTS.READ_CATEGORIES\n * @applicableIdentity APP\n * @fqn wix.events.categories.CategoryManagement.ListEventCategories\n */\nexport async function listEventCategories(\n eventId: string\n): Promise<\n NonNullablePaths<\n ListEventCategoriesResponse,\n `categories` | `categories.${number}._id` | `categories.${number}.name`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ eventId: eventId });\n\n const reqOpts = ambassadorWixEventsV1Category.listEventCategories(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: { eventId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['eventId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Change the order of events that are assigned to the same category on the Events Widget.\n *\n *\n * For more information see [this article](https://support.wix.com/en/article/creating-and-displaying-event-categories)\n * @param categoryId - Category ID.\n * @public\n * @requiredField categoryId\n * @param options - Options to use when reordering events.\n * @permissionId WIX_EVENTS.MANAGE_CATEGORIES\n * @applicableIdentity APP\n * @fqn wix.events.categories.CategoryManagement.ReorderCategoryEvents\n */\nexport async function reorderCategoryEvents(\n categoryId: string,\n options?: ReorderCategoryEventsOptions\n): Promise<\n void & {\n __applicationErrorsType?: ReorderCategoryEventsApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n categoryId: categoryId,\n eventId: options?.eventId,\n beforeEventId: options?.beforeEventId,\n afterEventId: options?.afterEventId,\n });\n\n const reqOpts = ambassadorWixEventsV1Category.reorderCategoryEvents(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 categoryId: '$[0]',\n eventId: '$[1].eventId',\n beforeEventId: '$[1].beforeEventId',\n afterEventId: '$[1].afterEventId',\n },\n singleArgumentUnchanged: false,\n },\n ['categoryId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ReorderCategoryEventsOptions\n extends ReorderCategoryEventsOptionsReferenceEventOneOf {\n /**\n * Event ID.\n * @format GUID\n */\n eventId?: string;\n /**\n * Move the event before defined `eventId`.\n * @format GUID\n */\n beforeEventId?: string;\n /**\n * Move the event after defined `eventId`.\n * @format GUID\n */\n afterEventId?: string;\n}\n\n/** @oneof */\nexport interface ReorderCategoryEventsOptionsReferenceEventOneOf {\n /**\n * Move the event before defined `eventId`.\n * @format GUID\n */\n beforeEventId?: string;\n /**\n * Move the event after defined `eventId`.\n * @format GUID\n */\n afterEventId?: string;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\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 resolveWixEventsCategoriesCategoryManagementUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'events._base_domain_': [\n {\n srcPath: '',\n destPath: '',\n },\n {\n srcPath: '/_api/wix-events-web',\n destPath: '/api',\n },\n ],\n 'www.wixevents.com': [\n {\n srcPath: '/_api/wix-events-web',\n destPath: '/api',\n },\n {\n srcPath: '/api',\n destPath: '/api',\n },\n {\n srcPath: '/viewEvent',\n destPath: '/viewEvent',\n },\n {\n srcPath: '/viewRsvpDashboard',\n destPath: '/viewRsvpDashboard',\n },\n {\n srcPath: '/viewOrderDashboard',\n destPath: '/viewOrderDashboard',\n },\n {\n srcPath: '/viewSummarySubscription',\n destPath: '/viewSummarySubscription',\n },\n {\n srcPath: '/check-in',\n destPath: '/check-in',\n },\n {\n srcPath: '/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/export',\n destPath: '/export',\n },\n {\n srcPath: '/tickets',\n destPath: '/tickets',\n },\n {\n srcPath: '/payment-redirect',\n destPath: '/payment-redirect',\n },\n {\n srcPath: '/admin',\n destPath: '/admin',\n },\n {\n srcPath: '/ticket',\n destPath: '/ticket',\n },\n {\n srcPath: '/media',\n destPath: '/media',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/wix-events-web',\n destPath: '',\n },\n ],\n 'events.wixapps.net': [\n {\n srcPath: '/_api/wix-events-web',\n destPath: '/api',\n },\n {\n srcPath: '/events',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/wix-events-web',\n destPath: '/api',\n },\n {\n srcPath: '/_api/wix-events-web/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk-async/categories',\n destPath: '/v1/bulk-async/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk/categories',\n destPath: '/v1/bulk/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/categories',\n destPath: '/v1/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/events',\n destPath: '/v1/events',\n },\n {\n srcPath: '/_api/wix-events-web/v1/orders',\n destPath: '/v1/orders',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/wix-events-web',\n destPath: '/api',\n },\n {\n srcPath: '/events',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/wix-events-web',\n destPath: '/api',\n },\n {\n srcPath: '/_api/wix-events-web/v1/events',\n destPath: '/v1/events',\n },\n {\n srcPath: '/_api/wix-events-web/v1/categories',\n destPath: '/v1/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v2/events',\n destPath: '/v2/events',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk/categories',\n destPath: '/v1/bulk/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk/events',\n destPath: '/v1/bulk/events',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk-async/categories',\n destPath: '/v1/bulk-async/categories',\n },\n {\n srcPath: '/events/v1/events',\n destPath: '/v1/events',\n },\n {\n srcPath: '/events/v1/categories',\n destPath: '/v1/categories',\n },\n {\n srcPath: '/events/v1/bulk/categories',\n destPath: '/v1/bulk/categories',\n },\n {\n srcPath: '/events/v1/bulk-async/categories',\n destPath: '/v1/bulk-async/categories',\n },\n {\n srcPath: '/events/v1/bulk/events',\n destPath: '/v1/bulk/events',\n },\n {\n srcPath: '/events/v1/reports',\n destPath: '/v1/reports',\n },\n {\n srcPath: '/events/v1/orders',\n destPath: '/v1/orders',\n },\n {\n srcPath: '/events/v1/web',\n destPath: '/v1/web',\n },\n {\n srcPath: '/events/v2/tickets',\n destPath: '/v2/tickets',\n },\n {\n srcPath: '/events/v2/events',\n destPath: '/v2/events',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/events/v1/events',\n destPath: '/v1/events',\n },\n {\n srcPath: '/events/v1/categories',\n destPath: '/v1/categories',\n },\n {\n srcPath: '/events/v1/orders',\n destPath: '/v1/orders',\n },\n {\n srcPath: '/events/v1/bulk/categories',\n destPath: '/v1/bulk/categories',\n },\n {\n srcPath: '/events/v2/events',\n destPath: '/v2/events',\n },\n {\n srcPath: '/events/v1/bulk-async/categories',\n destPath: '/v1/bulk-async/categories',\n },\n ],\n 'api._base_domain_': [\n {\n srcPath: '/events/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/events/v1/bulk-async/categories',\n destPath: '/v1/bulk-async/categories',\n },\n {\n srcPath: '/events/v1/bulk/categories',\n destPath: '/v1/bulk/categories',\n },\n {\n srcPath: '/events/v1/categories',\n destPath: '/v1/categories',\n },\n {\n srcPath: '/events/v1/events',\n destPath: '/v1/events',\n },\n {\n srcPath: '/events/v1/orders',\n destPath: '/v1/orders',\n },\n ],\n _: [\n {\n srcPath: '/_api/wix-events-web/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk-async/categories',\n destPath: '/v1/bulk-async/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk/categories',\n destPath: '/v1/bulk/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/categories',\n destPath: '/v1/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/events',\n destPath: '/v1/events',\n },\n {\n srcPath: '/_api/wix-events-web/v1/orders',\n destPath: '/v1/orders',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/events/v2/events',\n destPath: '/v2/events',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk-async/categories',\n destPath: '/v1/bulk-async/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk/categories',\n destPath: '/v1/bulk/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/categories',\n destPath: '/v1/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/events',\n destPath: '/v1/events',\n },\n {\n srcPath: '/_api/wix-events-web/v1/orders',\n destPath: '/v1/orders',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/wix-events-web/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk-async/categories',\n destPath: '/v1/bulk-async/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk/categories',\n destPath: '/v1/bulk/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/categories',\n destPath: '/v1/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/events',\n destPath: '/v1/events',\n },\n {\n srcPath: '/_api/wix-events-web/v1/orders',\n destPath: '/v1/orders',\n },\n ],\n '*.pub.wix-code.com': [\n {\n srcPath: '/_api/wix-events-web/v1/bulk-async/categories',\n destPath: '/v1/bulk-async/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk/categories',\n destPath: '/v1/bulk/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/categories',\n destPath: '/v1/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/events',\n destPath: '/v1/events',\n },\n {\n srcPath: '/_api/wix-events-web/v1/orders',\n destPath: '/v1/orders',\n },\n ],\n 'editor-flow.wixapps.net': [\n {\n srcPath: '/_api/wix-events-web/v1/bulk-async/categories',\n destPath: '/v1/bulk-async/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk/categories',\n destPath: '/v1/bulk/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/categories',\n destPath: '/v1/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/events',\n destPath: '/v1/events',\n },\n {\n srcPath: '/_api/wix-events-web/v1/orders',\n destPath: '/v1/orders',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/wix-events-web/v1/bulk-async/categories',\n destPath: '/v1/bulk-async/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk/categories',\n destPath: '/v1/bulk/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/categories',\n destPath: '/v1/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/events',\n destPath: '/v1/events',\n },\n {\n srcPath: '/_api/wix-events-web/v1/orders',\n destPath: '/v1/orders',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/wix-events-web/v1/bulk-async/categories',\n destPath: '/v1/bulk-async/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk/categories',\n destPath: '/v1/bulk/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/categories',\n destPath: '/v1/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/events',\n destPath: '/v1/events',\n },\n {\n srcPath: '/_api/wix-events-web/v1/orders',\n destPath: '/v1/orders',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/wix-events-web/v1/bulk-async/categories',\n destPath: '/v1/bulk-async/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/bulk/categories',\n destPath: '/v1/bulk/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/categories',\n destPath: '/v1/categories',\n },\n {\n srcPath: '/_api/wix-events-web/v1/events',\n destPath: '/v1/events',\n },\n {\n srcPath: '/_api/wix-events-web/v1/orders',\n destPath: '/v1/orders',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_events_categories';\n\n/** Creates a category. */\nexport function createCategory(payload: object): RequestOptionsFactory<any> {\n function __createCategory({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'category.createdDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.events.v1.category',\n method: 'POST' as any,\n methodFqn: 'wix.events.categories.CategoryManagement.CreateCategory',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsCategoriesCategoryManagementUrl({\n protoPath: '/v1/categories',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'category.createdDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createCategory;\n}\n\n/** Creates multiple categories at once. */\nexport function bulkCreateCategory(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkCreateCategory({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'categories.createdDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.events.v1.category',\n method: 'POST' as any,\n methodFqn: 'wix.events.categories.CategoryManagement.BulkCreateCategory',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsCategoriesCategoryManagementUrl({\n protoPath: '/v1/bulk/categories/create',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'results.item.createdDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateCategory;\n}\n\n/** Updates an existing category. */\nexport function updateCategory(payload: object): RequestOptionsFactory<any> {\n function __updateCategory({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'category.createdDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.events.v1.category',\n method: 'PATCH' as any,\n methodFqn: 'wix.events.categories.CategoryManagement.UpdateCategory',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsCategoriesCategoryManagementUrl({\n protoPath: '/v1/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: [{ path: 'category.createdDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateCategory;\n}\n\n/** Deletes a category. */\nexport function deleteCategory(payload: object): RequestOptionsFactory<any> {\n function __deleteCategory({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.category',\n method: 'DELETE' as any,\n methodFqn: 'wix.events.categories.CategoryManagement.DeleteCategory',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsCategoriesCategoryManagementUrl({\n protoPath: '/v1/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/**\n * Creates a query to retrieve a list of categories.\n *\n *\n * The `queryCategories()` function builds a query to retrieve a list of categories and returns a `CategoriesQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/find) function.\n *\n * You can refine the query by chaining `CategoriesQueryBuilder` functions onto the query. `CategoriesQueryBuilder` functions enable you to sort, filter, and control the results `queryCategories()` returns.\n *\n * `queryCategories()` runs with these `CategoriesQueryBuilder` defaults, which you can override:\n *\n * - [`limit(50)`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/limit)\n */\nexport function queryCategories(payload: object): RequestOptionsFactory<any> {\n function __queryCategories({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.category',\n method: 'POST' as any,\n methodFqn: 'wix.events.categories.CategoryManagement.QueryCategories',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsCategoriesCategoryManagementUrl({\n protoPath: '/v1/categories/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'categories.createdDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryCategories;\n}\n\n/** Assigns events to a single category. */\nexport function assignEvents(payload: object): RequestOptionsFactory<any> {\n function __assignEvents({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.category',\n method: 'POST' as any,\n methodFqn: 'wix.events.categories.CategoryManagement.AssignEvents',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsCategoriesCategoryManagementUrl({\n protoPath: '/v1/categories/{categoryId}/events',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __assignEvents;\n}\n\n/** Assigns events to multiple categories at once. */\nexport function bulkAssignEvents(payload: object): RequestOptionsFactory<any> {\n function __bulkAssignEvents({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.category',\n method: 'POST' as any,\n methodFqn: 'wix.events.categories.CategoryManagement.BulkAssignEvents',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsCategoriesCategoryManagementUrl({\n protoPath: '/v1/bulk/categories/events',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'results.item.createdDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkAssignEvents;\n}\n\n/**\n * Assigns events that match given filter criteria to multiple categories.\n *\n * Unlike the [`bulkAssignEvents()`](https://www.wix.com/velo/reference/wix-events-v2/categories/bulkassignevents) function, this function can handle numerous requests and is less prone to failures.\n *\n * However, the events will not be instantly assigned to the categories (as with `bulkAssignEvents()`), but rather after some time. In this case, if try to [`listEventCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/listeventcategories) or [`queryCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/querycategories), you might not get the correct response.\n */\nexport function bulkAssignEventsAsync(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkAssignEventsAsync({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.category',\n method: 'POST' as any,\n methodFqn:\n 'wix.events.categories.CategoryManagement.BulkAssignEventsAsync',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsCategoriesCategoryManagementUrl({\n protoPath: '/v1/bulk-async/categories/assign-events-by-filter',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkAssignEventsAsync;\n}\n\n/** Unassigns events from a category. */\nexport function unassignEvents(payload: object): RequestOptionsFactory<any> {\n function __unassignEvents({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.category',\n method: 'DELETE' as any,\n methodFqn: 'wix.events.categories.CategoryManagement.UnassignEvents',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsCategoriesCategoryManagementUrl({\n protoPath: '/v1/categories/{categoryId}/events',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __unassignEvents;\n}\n\n/** Unassigns events from multiple categories at once. */\nexport function bulkUnassignEvents(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUnassignEvents({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.category',\n method: 'DELETE' as any,\n methodFqn: 'wix.events.categories.CategoryManagement.BulkUnassignEvents',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsCategoriesCategoryManagementUrl({\n protoPath: '/v1/bulk/categories/events',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'results.item.createdDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkUnassignEvents;\n}\n\n/**\n * Removes events that match given filter criteria from multiple categories.\n *\n * Unlike the [`bulkUnassignEvents()`](https://www.wix.com/velo/reference/wix-events-v2/categories/bulkunassignevents) function, this function can handle numerous requests and is less prone to failures.\n *\n * However, the events will not be instantly removed from the categories (as with `bulkUnassignEvents()`), but rather after some time. In this case, if try to [`listEventCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/listeventcategories) or [`queryCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/querycategories), you might not get the correct response.\n */\nexport function bulkUnassignEventsAsync(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUnassignEventsAsync({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.category',\n method: 'POST' as any,\n methodFqn:\n 'wix.events.categories.CategoryManagement.BulkUnassignEventsAsync',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsCategoriesCategoryManagementUrl({\n protoPath: '/v1/bulk-async/categories/unassign-events-by-filter',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUnassignEventsAsync;\n}\n\n/** Retrieves a list of categories that are not in the `HIDDEN` state. */\nexport function listEventCategories(\n payload: object\n): RequestOptionsFactory<any> {\n function __listEventCategories({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.category',\n method: 'GET' as any,\n methodFqn: 'wix.events.categories.CategoryManagement.ListEventCategories',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsCategoriesCategoryManagementUrl({\n protoPath: '/v1/categories/{eventId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'categories.createdDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listEventCategories;\n}\n\n/**\n * Change the order of events that are assigned to the same category on the Events Widget.\n *\n *\n * For more information see [this article](https://support.wix.com/en/article/creating-and-displaying-event-categories)\n */\nexport function reorderCategoryEvents(\n payload: object\n): RequestOptionsFactory<any> {\n function __reorderCategoryEvents({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.v1.category',\n method: 'POST' as any,\n methodFqn:\n 'wix.events.categories.CategoryManagement.ReorderCategoryEvents',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsCategoriesCategoryManagementUrl({\n protoPath: '/v1/categories/{categoryId}/reorder',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __reorderCategoryEvents;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n BulkAssignEventsAsyncOptions,\n BulkAssignEventsOptions,\n BulkAssignEventsResponse,\n BulkCreateCategoryResponse,\n BulkUnassignEventsAsyncOptions,\n BulkUnassignEventsOptions,\n BulkUnassignEventsResponse,\n CategoriesQueryBuilder,\n Category,\n CategoryQuery,\n ListEventCategoriesResponse,\n QueryCategoriesOptions,\n QueryCategoriesResponse,\n ReorderCategoryEventsApplicationErrors,\n ReorderCategoryEventsOptions,\n UpdateCategory,\n assignEvents as universalAssignEvents,\n bulkAssignEvents as universalBulkAssignEvents,\n bulkAssignEventsAsync as universalBulkAssignEventsAsync,\n bulkCreateCategory as universalBulkCreateCategory,\n bulkUnassignEvents as universalBulkUnassignEvents,\n bulkUnassignEventsAsync as universalBulkUnassignEventsAsync,\n createCategory as universalCreateCategory,\n deleteCategory as universalDeleteCategory,\n listEventCategories as universalListEventCategories,\n queryCategories as universalQueryCategories,\n reorderCategoryEvents as universalReorderCategoryEvents,\n typedQueryCategories as universalTypedQueryCategories,\n unassignEvents as universalUnassignEvents,\n updateCategory as universalUpdateCategory,\n} from './events-v1-category-categories.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/events' };\n\nexport function createCategory(\n httpClient: HttpClient\n): CreateCategorySignature {\n return (category: Category) =>\n universalCreateCategory(\n category,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateCategorySignature {\n /**\n * Creates a category.\n * @param - Category to create.\n * @returns Created category.\n */\n (category: Category): Promise<\n NonNullablePaths<Category, `_id` | `name` | `states`, 2>\n >;\n}\n\nexport function bulkCreateCategory(\n httpClient: HttpClient\n): BulkCreateCategorySignature {\n return (categories: Category[]) =>\n universalBulkCreateCategory(\n categories,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkCreateCategorySignature {\n /**\n * Creates multiple categories at once.\n * @param - Categories to create.\n */\n (categories: Category[]): Promise<\n NonNullablePaths<\n BulkCreateCategoryResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item._id`\n | `results.${number}.item.name`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\nexport function updateCategory(\n httpClient: HttpClient\n): UpdateCategorySignature {\n return (_id: string, category: UpdateCategory) =>\n universalUpdateCategory(\n _id,\n category,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateCategorySignature {\n /**\n * Updates an existing category.\n * @param - Category ID.\n * @returns Updated category.\n */\n (_id: string, category: UpdateCategory): Promise<\n NonNullablePaths<Category, `_id` | `name` | `states`, 2>\n >;\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 * @param - ID of category to be deleted.\n */\n (categoryId: string): Promise<void>;\n}\n\nexport function queryCategories(\n httpClient: HttpClient\n): QueryCategoriesSignature {\n return (options?: QueryCategoriesOptions) =>\n universalQueryCategories(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryCategoriesSignature {\n /**\n * Creates a query to retrieve a list of categories.\n *\n *\n * The `queryCategories()` function builds a query to retrieve a list of categories and returns a `CategoriesQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/find) function.\n *\n * You can refine the query by chaining `CategoriesQueryBuilder` functions onto the query. `CategoriesQueryBuilder` functions enable you to sort, filter, and control the results `queryCategories()` returns.\n *\n * `queryCategories()` runs with these `CategoriesQueryBuilder` defaults, which you can override:\n *\n * - [`limit(50)`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/limit)\n * @param - Options to use when querying categories.\n */\n (options?: QueryCategoriesOptions): CategoriesQueryBuilder;\n}\n\nexport function typedQueryCategories(\n httpClient: HttpClient\n): TypedQueryCategoriesSignature {\n return (query: CategoryQuery, options?: QueryCategoriesOptions) =>\n universalTypedQueryCategories(\n query,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface TypedQueryCategoriesSignature {\n /** */\n (query: CategoryQuery, options?: QueryCategoriesOptions): Promise<\n NonNullablePaths<\n QueryCategoriesResponse,\n `categories` | `categories.${number}._id` | `categories.${number}.name`,\n 4\n >\n >;\n}\n\nexport function assignEvents(httpClient: HttpClient): AssignEventsSignature {\n return (categoryId: string, eventId: string[]) =>\n universalAssignEvents(\n categoryId,\n eventId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface AssignEventsSignature {\n /**\n * Assigns events to a single category.\n * @param - ID of category to which events should be assigned.\n * @param - A list of events IDs.\n */\n (categoryId: string, eventId: string[]): Promise<void>;\n}\n\nexport function bulkAssignEvents(\n httpClient: HttpClient\n): BulkAssignEventsSignature {\n return (\n categoryId: string[],\n options: NonNullablePaths<BulkAssignEventsOptions, `eventId`, 2>\n ) =>\n universalBulkAssignEvents(\n categoryId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkAssignEventsSignature {\n /**\n * Assigns events to multiple categories at once.\n * @param - A list of category IDs to which events should be assigned.\n * @param - Options to use when assigning events to multiple categories.\n */\n (\n categoryId: string[],\n options: NonNullablePaths<BulkAssignEventsOptions, `eventId`, 2>\n ): Promise<\n NonNullablePaths<\n BulkAssignEventsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item._id`\n | `results.${number}.item.name`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\nexport function bulkAssignEventsAsync(\n httpClient: HttpClient\n): BulkAssignEventsAsyncSignature {\n return (\n categoryId: string[],\n options: NonNullablePaths<BulkAssignEventsAsyncOptions, `filter`, 2>\n ) =>\n universalBulkAssignEventsAsync(\n categoryId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkAssignEventsAsyncSignature {\n /**\n * Assigns events that match given filter criteria to multiple categories.\n *\n * Unlike the [`bulkAssignEvents()`](https://www.wix.com/velo/reference/wix-events-v2/categories/bulkassignevents) function, this function can handle numerous requests and is less prone to failures.\n *\n * However, the events will not be instantly assigned to the categories (as with `bulkAssignEvents()`), but rather after some time. In this case, if try to [`listEventCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/listeventcategories) or [`queryCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/querycategories), you might not get the correct response.\n * @param - Category IDs.\n * @param - Options to use when assigning events to multiple categories.\n */\n (\n categoryId: string[],\n options: NonNullablePaths<BulkAssignEventsAsyncOptions, `filter`, 2>\n ): Promise<void>;\n}\n\nexport function unassignEvents(\n httpClient: HttpClient\n): UnassignEventsSignature {\n return (categoryId: string, eventId: string[]) =>\n universalUnassignEvents(\n categoryId,\n eventId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UnassignEventsSignature {\n /**\n * Unassigns events from a category.\n * @param - Category ID.\n * @param - A list of events IDs.\n */\n (categoryId: string, eventId: string[]): Promise<void>;\n}\n\nexport function bulkUnassignEvents(\n httpClient: HttpClient\n): BulkUnassignEventsSignature {\n return (categoryId: string[], options?: BulkUnassignEventsOptions) =>\n universalBulkUnassignEvents(\n categoryId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUnassignEventsSignature {\n /**\n * Unassigns events from multiple categories at once.\n * @param - A list of category IDs.\n * @param - Options to use when removing events from multiple categories.\n */\n (categoryId: string[], options?: BulkUnassignEventsOptions): Promise<\n NonNullablePaths<\n BulkUnassignEventsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item._id`\n | `results.${number}.item.name`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\nexport function bulkUnassignEventsAsync(\n httpClient: HttpClient\n): BulkUnassignEventsAsyncSignature {\n return (\n categoryId: string[],\n options: NonNullablePaths<BulkUnassignEventsAsyncOptions, `filter`, 2>\n ) =>\n universalBulkUnassignEventsAsync(\n categoryId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUnassignEventsAsyncSignature {\n /**\n * Removes events that match given filter criteria from multiple categories.\n *\n * Unlike the [`bulkUnassignEvents()`](https://www.wix.com/velo/reference/wix-events-v2/categories/bulkunassignevents) function, this function can handle numerous requests and is less prone to failures.\n *\n * However, the events will not be instantly removed from the categories (as with `bulkUnassignEvents()`), but rather after some time. In this case, if try to [`listEventCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/listeventcategories) or [`queryCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/querycategories), you might not get the correct response.\n * @param - Category ID.\n * @param - Options to use when removing events from multiple categories.\n */\n (\n categoryId: string[],\n options: NonNullablePaths<BulkUnassignEventsAsyncOptions, `filter`, 2>\n ): Promise<void>;\n}\n\nexport function listEventCategories(\n httpClient: HttpClient\n): ListEventCategoriesSignature {\n return (eventId: string) =>\n universalListEventCategories(\n eventId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListEventCategoriesSignature {\n /**\n * Retrieves a list of categories that are not in the `HIDDEN` state.\n * @param - Event ID.\n */\n (eventId: string): Promise<\n NonNullablePaths<\n ListEventCategoriesResponse,\n `categories` | `categories.${number}._id` | `categories.${number}.name`,\n 4\n >\n >;\n}\n\nexport function reorderCategoryEvents(\n httpClient: HttpClient\n): ReorderCategoryEventsSignature {\n return (categoryId: string, options?: ReorderCategoryEventsOptions) =>\n universalReorderCategoryEvents(\n categoryId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ReorderCategoryEventsSignature {\n /**\n * Change the order of events that are assigned to the same category on the Events Widget.\n *\n *\n * For more information see [this article](https://support.wix.com/en/article/creating-and-displaying-event-categories)\n * @param - Category ID.\n * @param - Options to use when reordering events.\n */\n (categoryId: string, options?: ReorderCategoryEventsOptions): Promise<\n void & {\n __applicationErrorsType?: ReorderCategoryEventsApplicationErrors;\n }\n >;\n}\n\nexport {\n AccountInfo,\n ActionEvent,\n ApplicationError,\n AssignEventsRequest,\n AssignEventsResponse,\n BulkActionMetadata,\n BulkAssignEventsAsyncOptions,\n BulkAssignEventsAsyncRequest,\n BulkAssignEventsAsyncResponse,\n BulkAssignEventsOptions,\n BulkAssignEventsRequest,\n BulkAssignEventsResponse,\n BulkCategoryResult,\n BulkCreateCategoryRequest,\n BulkCreateCategoryResponse,\n BulkUnassignEventsAsyncOptions,\n BulkUnassignEventsAsyncRequest,\n BulkUnassignEventsAsyncResponse,\n BulkUnassignEventsOptions,\n BulkUnassignEventsRequest,\n BulkUnassignEventsResponse,\n CategoriesQueryBuilder,\n CategoriesQueryResult,\n Category,\n CategoryCounts,\n CategoryFieldset,\n CategoryQuerySpec,\n CreateCategoryRequest,\n CreateCategoryResponse,\n Cursors,\n DeleteCategoryRequest,\n DeleteCategoryResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n IdentificationData,\n IdentificationDataIdOneOf,\n ItemMetadata,\n ListEventCategoriesRequest,\n ListEventCategoriesResponse,\n MessageEnvelope,\n Paging,\n PagingMetadataV2,\n QueryCategoriesOptions,\n QueryCategoriesRequest,\n QueryCategoriesResponse,\n QueryV2,\n QueryV2PagingMethodOneOf,\n ReorderCategoryEventsOptions,\n ReorderCategoryEventsOptionsReferenceEventOneOf,\n ReorderCategoryEventsRequest,\n ReorderCategoryEventsRequestReferenceEventOneOf,\n ReorderCategoryEventsResponse,\n RestoreInfo,\n SortOrder,\n Sorting,\n State,\n UnassignEventsRequest,\n UnassignEventsResponse,\n UpdateCategory,\n UpdateCategoryRequest,\n UpdateCategoryResponse,\n WebhookIdentityType,\n} from './events-v1-category-categories.universal.js';\n","import {\n createCategory as publicCreateCategory,\n bulkCreateCategory as publicBulkCreateCategory,\n updateCategory as publicUpdateCategory,\n deleteCategory as publicDeleteCategory,\n queryCategories as publicQueryCategories,\n typedQueryCategories as publicTypedQueryCategories,\n assignEvents as publicAssignEvents,\n bulkAssignEvents as publicBulkAssignEvents,\n bulkAssignEventsAsync as publicBulkAssignEventsAsync,\n unassignEvents as publicUnassignEvents,\n bulkUnassignEvents as publicBulkUnassignEvents,\n bulkUnassignEventsAsync as publicBulkUnassignEventsAsync,\n listEventCategories as publicListEventCategories,\n reorderCategoryEvents as publicReorderCategoryEvents,\n} from './events-v1-category-categories.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\nimport { HttpClient } from '@wix/sdk-types';\nimport { createQueryOverloadRouter } from '@wix/sdk-runtime/query-method-router';\nimport {\n CategoriesQueryBuilder,\n CategoryQuery,\n QueryCategoriesOptions,\n typedQueryCategories as universalTypedQueryCategories,\n} from './events-v1-category-categories.universal.js';\n\nfunction customQueryCategories(httpClient: HttpClient) {\n const router = createQueryOverloadRouter({\n builderQueryFunction: (options?: QueryCategoriesOptions) =>\n publicQueryCategories(httpClient)(options),\n typedQueryFunction: (\n query: CategoryQuery,\n options?: QueryCategoriesOptions\n ) => publicTypedQueryCategories(httpClient)(query, options),\n hasOptionsParameter: true,\n });\n\n function overloadedQuery(\n query: CategoryQuery,\n options?: QueryCategoriesOptions\n ): ReturnType<typeof universalTypedQueryCategories>;\n function overloadedQuery(\n options?: QueryCategoriesOptions\n ): CategoriesQueryBuilder;\n function overloadedQuery(\n queryOrOptions?: CategoryQuery | QueryCategoriesOptions,\n options?: QueryCategoriesOptions\n ): any {\n return router(...arguments);\n }\n\n return overloadedQuery;\n}\n\nexport const createCategory: MaybeContext<\n BuildRESTFunction<typeof publicCreateCategory> & typeof publicCreateCategory\n> = /*#__PURE__*/ createRESTModule(publicCreateCategory);\nexport const bulkCreateCategory: MaybeContext<\n BuildRESTFunction<typeof publicBulkCreateCategory> &\n typeof publicBulkCreateCategory\n> = /*#__PURE__*/ createRESTModule(publicBulkCreateCategory);\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 assignEvents: MaybeContext<\n BuildRESTFunction<typeof publicAssignEvents> & typeof publicAssignEvents\n> = /*#__PURE__*/ createRESTModule(publicAssignEvents);\nexport const bulkAssignEvents: MaybeContext<\n BuildRESTFunction<typeof publicBulkAssignEvents> &\n typeof publicBulkAssignEvents\n> = /*#__PURE__*/ createRESTModule(publicBulkAssignEvents);\nexport const bulkAssignEventsAsync: MaybeContext<\n BuildRESTFunction<typeof publicBulkAssignEventsAsync> &\n typeof publicBulkAssignEventsAsync\n> = /*#__PURE__*/ createRESTModule(publicBulkAssignEventsAsync);\nexport const unassignEvents: MaybeContext<\n BuildRESTFunction<typeof publicUnassignEvents> & typeof publicUnassignEvents\n> = /*#__PURE__*/ createRESTModule(publicUnassignEvents);\nexport const bulkUnassignEvents: MaybeContext<\n BuildRESTFunction<typeof publicBulkUnassignEvents> &\n typeof publicBulkUnassignEvents\n> = /*#__PURE__*/ createRESTModule(publicBulkUnassignEvents);\nexport const bulkUnassignEventsAsync: MaybeContext<\n BuildRESTFunction<typeof publicBulkUnassignEventsAsync> &\n typeof publicBulkUnassignEventsAsync\n> = /*#__PURE__*/ createRESTModule(publicBulkUnassignEventsAsync);\nexport const listEventCategories: MaybeContext<\n BuildRESTFunction<typeof publicListEventCategories> &\n typeof publicListEventCategories\n> = /*#__PURE__*/ createRESTModule(publicListEventCategories);\nexport const reorderCategoryEvents: MaybeContext<\n BuildRESTFunction<typeof publicReorderCategoryEvents> &\n typeof publicReorderCategoryEvents\n> = /*#__PURE__*/ createRESTModule(publicReorderCategoryEvents);\nexport const queryCategories: MaybeContext<\n BuildRESTFunction<typeof customQueryCategories> & typeof customQueryCategories\n> = /*#__PURE__*/ createRESTModule(customQueryCategories);\n\nexport {\n State,\n SortOrder,\n CategoryFieldset,\n WebhookIdentityType,\n} from './events-v1-category-categories.universal.js';\nexport {\n Category,\n CategoryCounts,\n CreateCategoryRequest,\n CreateCategoryResponse,\n BulkCreateCategoryRequest,\n BulkCreateCategoryResponse,\n BulkCategoryResult,\n ItemMetadata,\n ApplicationError,\n BulkActionMetadata,\n UpdateCategoryRequest,\n UpdateCategoryResponse,\n DeleteCategoryRequest,\n DeleteCategoryResponse,\n QueryCategoriesRequest,\n QueryV2,\n QueryV2PagingMethodOneOf,\n Sorting,\n Paging,\n QueryCategoriesResponse,\n PagingMetadataV2,\n Cursors,\n AssignEventsRequest,\n AssignEventsResponse,\n BulkAssignEventsRequest,\n BulkAssignEventsResponse,\n BulkAssignEventsAsyncRequest,\n BulkAssignEventsAsyncResponse,\n UnassignEventsRequest,\n UnassignEventsResponse,\n BulkUnassignEventsRequest,\n BulkUnassignEventsResponse,\n BulkUnassignEventsAsyncRequest,\n BulkUnassignEventsAsyncResponse,\n ListEventCategoriesRequest,\n ListEventCategoriesResponse,\n ReorderCategoryEventsRequest,\n ReorderCategoryEventsRequestReferenceEventOneOf,\n ReorderCategoryEventsResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n UpdateCategory,\n QueryCategoriesOptions,\n CategoriesQueryResult,\n CategoriesQueryBuilder,\n CategoryQuerySpec,\n BulkAssignEventsOptions,\n BulkAssignEventsAsyncOptions,\n BulkUnassignEventsOptions,\n BulkUnassignEventsAsyncOptions,\n ReorderCategoryEventsOptions,\n ReorderCategoryEventsOptionsReferenceEventOneOf,\n} from './events-v1-category-categories.universal.js';\nexport {\n StateWithLiterals,\n SortOrderWithLiterals,\n CategoryFieldsetWithLiterals,\n WebhookIdentityTypeWithLiterals,\n ReorderCategoryEventsApplicationErrors,\n CommonQueryWithEntityContext,\n CategoryQuery,\n} from './events-v1-category-categories.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAAA;AAAA,EAAA,wBAAAC;AAAA,EAAA,6BAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,+BAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,6BAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,sBAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,gDACP,MACA;AACA,Q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AAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAgBO,SAASC,uBACd,YACgC;AAChC,SAAO,CAAC,YAAoB,YAC1BA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AClYA,IAAAC,uBAAiC;AAGjC,iCAA0C;AAQ1C,SAAS,sBAAsB,YAAwB;AACrD,QAAM,aAAS,sDAA0B;AAAA,IACvC,sBAAsB,CAAC,YACrBC,iBAAsB,UAAU,EAAE,OAAO;AAAA,IAC3C,oBAAoB,CAClB,OACA,YACGC,sBAA2B,UAAU,EAAE,OAAO,OAAO;AAAA,IAC1D,qBAAqB;AAAA,EACvB,CAAC;AASD,WAAS,gBACP,gBACA,SACK;AACL,WAAO,OAAO,GAAG,SAAS;AAAA,EAC5B;AAEA,SAAO;AACT;AAEO,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMC,sBAGK,2DAAiBA,mBAAwB;AACpD,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMC,gBAEK,2DAAiBA,aAAkB;AAC9C,IAAMC,oBAGK,2DAAiBA,iBAAsB;AAClD,IAAMC,yBAGK,2DAAiBA,sBAA2B;AACvD,IAAMC,kBAEK,2DAAiBA,eAAoB;AAChD,IAAMC,sBAGK,2DAAiBA,mBAAwB;AACpD,IAAMC,2BAGK,2DAAiBA,wBAA6B;AACzD,IAAMC,uBAGK,2DAAiBA,oBAAyB;AACrD,IAAMC,yBAGK,2DAAiBA,sBAA2B;AACvD,IAAMb,mBAEK,2DAAiB,qBAAqB;","names":["assignEvents","bulkAssignEvents","bulkAssignEventsAsync","bulkCreateCategory","bulkUnassignEvents","bulkUnassignEventsAsync","createCategory","deleteCategory","listEventCategories","queryCategories","reorderCategoryEvents","unassignEvents","updateCategory","import_timestamp","import_rest_modules","payload","import_transform_paths","State","SortOrder","CategoryFieldset","WebhookIdentityType","createCategory","sdkTransformError","bulkCreateCategory","updateCategory","deleteCategory","queryCategories","assignEvents","bulkAssignEvents","bulkAssignEventsAsync","unassignEvents","bulkUnassignEvents","bulkUnassignEventsAsync","listEventCategories","reorderCategoryEvents","createCategory","bulkCreateCategory","updateCategory","deleteCategory","queryCategories","typedQueryCategories","assignEvents","bulkAssignEvents","bulkAssignEventsAsync","unassignEvents","bulkUnassignEvents","bulkUnassignEventsAsync","listEventCategories","reorderCategoryEvents","import_rest_modules","queryCategories","typedQueryCategories","createCategory","bulkCreateCategory","updateCategory","deleteCategory","assignEvents","bulkAssignEvents","bulkAssignEventsAsync","unassignEvents","bulkUnassignEvents","bulkUnassignEventsAsync","listEventCategories","reorderCategoryEvents"]}
|