import { ListCategoryRequest as ListCategoryRequest$1, ListCategoryResponse as ListCategoryResponse$1, CreateCategoryRequest as CreateCategoryRequest$1, CreateCategoryResponse as CreateCategoryResponse$1, UpdateCategoryRequest as UpdateCategoryRequest$1, UpdateCategoryResponse as UpdateCategoryResponse$1, DeleteCategoryRequest as DeleteCategoryRequest$1, DeleteCategoryResponse as DeleteCategoryResponse$1 } from './index.typings.js'; import '@wix/sdk-types'; /** Categories are used to group multiple services together. A service must be associated with a category in order to be exposed in the Wix Bookings UI. */ interface Category { /** * Category ID. * @format GUID * @readonly */ id?: string | null; /** * Category name. * @maxLength 500 */ name?: string | null; /** * Category status. * * Default: `CREATED` * @readonly */ status?: StatusWithLiterals; /** Sort order of the category in the live site and dashboard. */ sortOrder?: number | null; } declare enum Status { /** The category was created. */ CREATED = "CREATED", /** The category was deleted. */ DELETED = "DELETED" } /** @enumType */ type StatusWithLiterals = Status | 'CREATED' | 'DELETED'; interface ListCategoryRequest { /** * IDs of the categories to retrieve. * * Default: All categories are retrieved. * @format GUID */ categoryIds?: string[]; /** * Whether to include deleted categories in the response. * * Default: `false` */ includeDeleted?: boolean | null; } interface ListCategoryResponse { /** Retrieved categories. */ categories?: Category[]; } /** An event sent every time a category entity is changed. */ interface CategoryNotification { category?: Category; event?: EventWithLiterals; } declare enum Event { /** Category was updated. */ Updated = "Updated", /** Category was deleted. */ Deleted = "Deleted", /** Category was created. */ Created = "Created" } /** @enumType */ type EventWithLiterals = Event | 'Updated' | 'Deleted' | 'Created'; interface CreateCategoryRequest { /** Category to create. */ category: Category; } interface CreateCategoryResponse { /** Created category. */ category?: Category; } interface BatchCreateCategoryRequest { /** Categories to create. */ categories?: Category[]; } interface BatchCreateCategoryResponse { /** Created categories. */ categories?: Category[]; } interface UpdateCategoryRequest { /** Category to update. */ category: Category; } interface UpdateCategoryResponse { /** Updated category. */ category?: Category; } interface DeleteCategoryRequest { /** * ID of the category to delete. * @format GUID */ id: string | null; /** * Whether to delete all the services associated with the category. * * Default: `false` */ deleteServices?: boolean | null; } interface DeleteCategoryResponse { /** * ID of the deleted category. * @format GUID */ id?: string | null; } interface BatchDeleteCategoryRequest { /** * IDs of the categories to delete. * @format GUID */ ids?: string[] | null; } interface BatchDeleteCategoryResponse { } interface BatchUpdateCategoryRequest { /** List of categories to be updated. */ categories?: Category[]; /** Field mask of fields to update. */ fieldMask?: string[]; } interface BatchUpdateCategoryResponse { } interface MessageEnvelope { /** * App instance ID. * @format GUID */ instanceId?: string | null; /** * Event type. * @maxLength 150 */ eventType?: string; /** The identification type and identity data. */ identity?: IdentificationData; /** Stringify payload. */ data?: string; /** Details related to the account */ accountInfo?: AccountInfo; } interface IdentificationData extends IdentificationDataIdOneOf { /** * ID of a site visitor that has not logged in to the site. * @format GUID */ anonymousVisitorId?: string; /** * ID of a site visitor that has logged in to the site. * @format GUID */ memberId?: string; /** * ID of a Wix user (site owner, contributor, etc.). * @format GUID */ wixUserId?: string; /** * ID of an app. * @format GUID */ appId?: string; /** @readonly */ identityType?: WebhookIdentityTypeWithLiterals; } /** @oneof */ interface IdentificationDataIdOneOf { /** * ID of a site visitor that has not logged in to the site. * @format GUID */ anonymousVisitorId?: string; /** * ID of a site visitor that has logged in to the site. * @format GUID */ memberId?: string; /** * ID of a Wix user (site owner, contributor, etc.). * @format GUID */ wixUserId?: string; /** * ID of an app. * @format GUID */ appId?: string; } declare enum WebhookIdentityType { UNKNOWN = "UNKNOWN", ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR", MEMBER = "MEMBER", WIX_USER = "WIX_USER", APP = "APP" } /** @enumType */ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP'; interface AccountInfo { /** * ID of the Wix account associated with the event. * @format GUID */ accountId?: string | null; /** * ID of the parent Wix account. Only included when accountId belongs to a child account. * @format GUID */ parentAccountId?: string | null; /** * ID of the Wix site associated with the event. Only included when the event is tied to a specific site. * @format GUID */ siteId?: string | null; } /** @docsIgnore */ type UpdateApplicationErrors = { code?: 'NOT_FOUND'; description?: string; data?: Record; }; type __PublicMethodMetaInfo = { getUrl: (context: any) => string; httpMethod: K; path: string; pathParams: M; __requestType: T; __originalRequestType: S; __responseType: Q; __originalResponseType: R; }; declare function listCategories(): __PublicMethodMetaInfo<'GET', {}, ListCategoryRequest$1, ListCategoryRequest, ListCategoryResponse$1, ListCategoryResponse>; declare function createCategory(): __PublicMethodMetaInfo<'POST', {}, CreateCategoryRequest$1, CreateCategoryRequest, CreateCategoryResponse$1, CreateCategoryResponse>; declare function updateCategory(): __PublicMethodMetaInfo<'PUT', { categoryId: string; }, UpdateCategoryRequest$1, UpdateCategoryRequest, UpdateCategoryResponse$1, UpdateCategoryResponse>; declare function deleteCategory(): __PublicMethodMetaInfo<'DELETE', { id: string; }, DeleteCategoryRequest$1, DeleteCategoryRequest, DeleteCategoryResponse$1, DeleteCategoryResponse>; export { type AccountInfo as AccountInfoOriginal, type BatchCreateCategoryRequest as BatchCreateCategoryRequestOriginal, type BatchCreateCategoryResponse as BatchCreateCategoryResponseOriginal, type BatchDeleteCategoryRequest as BatchDeleteCategoryRequestOriginal, type BatchDeleteCategoryResponse as BatchDeleteCategoryResponseOriginal, type BatchUpdateCategoryRequest as BatchUpdateCategoryRequestOriginal, type BatchUpdateCategoryResponse as BatchUpdateCategoryResponseOriginal, type CategoryNotification as CategoryNotificationOriginal, type Category as CategoryOriginal, type CreateCategoryRequest as CreateCategoryRequestOriginal, type CreateCategoryResponse as CreateCategoryResponseOriginal, type DeleteCategoryRequest as DeleteCategoryRequestOriginal, type DeleteCategoryResponse as DeleteCategoryResponseOriginal, Event as EventOriginal, type EventWithLiterals as EventWithLiteralsOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ListCategoryRequest as ListCategoryRequestOriginal, type ListCategoryResponse as ListCategoryResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, type UpdateApplicationErrors as UpdateApplicationErrorsOriginal, type UpdateCategoryRequest as UpdateCategoryRequestOriginal, type UpdateCategoryResponse as UpdateCategoryResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, createCategory, deleteCategory, listCategories, updateCategory };