import { ax as CreateStaffMemberRequest$1, ay as CreateStaffMemberResponse$1, az as GetStaffMemberRequest$1, aA as GetStaffMemberResponse$1, aB as GetDeletedStaffMemberRequest$1, b as GetDeletedStaffMemberResponse$1, aC as ListDeletedStaffMembersRequest$1, c as ListDeletedStaffMembersResponse$1, aG as RemoveStaffMemberFromTrashBinRequest$1, aH as RemoveStaffMemberFromTrashBinResponse$1, aK as UpdateStaffMemberRequest$1, aL as UpdateStaffMemberResponse$1, aM as DeleteStaffMemberRequest$1, aN as DeleteStaffMemberResponse$1, aO as QueryStaffMembersRequest$1, aS as QueryStaffMembersResponse$1, aV as CountStaffMembersRequest$1, f as CountStaffMembersResponse$1, aW as ConnectStaffMemberToUserRequest$1, h as ConnectStaffMemberToUserResponse$1, aX as SearchStaffMembersRequest$1, k as SearchStaffMembersResponse$1, bk as DisconnectStaffMemberFromUserRequest$1, l as DisconnectStaffMemberFromUserResponse$1, bl as AssignWorkingHoursScheduleRequest$1, m as AssignWorkingHoursScheduleResponse$1, bm as AssignCustomScheduleRequest$1, o as AssignCustomScheduleResponse$1, bn as BulkUpdateStaffMemberTagsRequest$1, p as BulkUpdateStaffMemberTagsResponse$1, bs as BulkUpdateStaffMemberTagsByFilterRequest$1, s as BulkUpdateStaffMemberTagsByFilterResponse$1 } from './bookings-staff-v1-staff-member-staff-members.universal-DWRRcdmY.js'; import '@wix/sdk-types'; /** * An individual providing services within Wix Bookings. Only staff members who * are also Wix users can manage their working hours in the dashboard. */ interface StaffMember { /** * Staff member ID. * @format GUID * @readonly */ id?: string | null; /** * Staff member name. * @minLength 1 * @maxLength 40 */ name?: string | null; /** * Staff member's email address. * This field is populated based on the `publiclyAccessible` setting in the [Staff Member Settings API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-member-settings/introduction). * When the setting is disabled, this field is empty if the calling [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities) doesn't have sufficient permissions. * Identities with appropriate permissions can access this field regardless of the setting. * @maxLength 320 * @format EMAIL */ email?: string | null; /** * Staff member's phone number. * This field is populated based on the `publiclyAccessible` setting in the [Staff Member Settings API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-member-settings/introduction). * When the setting is disabled, this field is empty if the calling [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities) doesn't have sufficient permissions. * Identities with appropriate permissions can access this field regardless of the setting. * @maxLength 20 * @format PHONE */ phone?: string | null; /** * Description for the staff member. For example, * `Experienced nail technician specialized in gel and acrylic nails`. * @maxLength 500 */ description?: string | null; /** Staff media. */ mainMedia?: MediaItem; /** * Staff member's [resource ID](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction), * identical to `resource.id`. * @readonly * @format GUID */ resourceId?: string | null; /** * Details about the [resource object](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/resource-object) * associated with the staff member. Available only if you specify `RESOURCE_DETAILS` * in the `fields` array. * @readonly */ resource?: Resource; /** * Identity of the Wix user associated with the staff member. Learn more about * [identities](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities). * @readonly */ associatedWixIdentity?: AssociatedWixIdentity; /** * Revision number, which increments by 1 each time the staff member is updated. * To prevent conflicting changes, * the current revision must be passed when updating the staff member. * @readonly */ revision?: string | null; /** * Time the staff member was created in `YYYY-MM-DDThh:mm:ss.sssZ` format. * @readonly */ createdDate?: Date | null; /** * Time the staff member was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format. * @readonly */ updatedDate?: Date | null; /** Extensions enabling users to save custom data related to the staff member. */ extendedFields?: ExtendedFields; /** Tags allowing you to classify staff members. Learn more about [tags](https://dev.wix.com/docs/api-reference/business-management/tags/introduction). */ tags?: Tags; } interface MediaItem extends MediaItemMediaOneOf { /** Staff member's main image. */ image?: Image; } /** @oneof */ interface MediaItemMediaOneOf { /** Staff member's main image. */ image?: Image; } interface Image { /** * WixMedia image ID. To manage media assets, use the [Media Manager API](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction) * @maxLength 2048 */ id?: string; /** * Image URL. * @maxLength 2048 */ url?: string; /** * Original image height. * @readonly */ height?: number; /** * Original image width. * @readonly */ width?: number; /** * Image alt text. * @maxLength 2048 */ altText?: string | null; /** * Image filename. * @readonly * @maxLength 2048 */ filename?: string | null; } interface Resource { /** * ID of the [resource](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/introduction) * associated with the staff member. * @format GUID */ id?: string | null; /** * Working hour [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction) * of the staff member. By default, identical the opening hours of the * business's [default location](https://dev.wix.com/docs/rest/business-management/locations/introduction). * If the staff has custom working hours, identical to `eventsSchedule`. * @maxSize 1 */ workingHoursSchedules?: WorkingHoursSchedule[]; /** * Event [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction) * of the staff member. */ eventsSchedule?: EventSchedule; /** * Whether the staff member works according to business's [default location](https://dev.wix.com/docs/rest/business-management/locations/introduction) * opening hours. * * `false`: The staff has custom working hours. * * Default: `true` */ usesDefaultWorkingHours?: boolean; /** Revision number, which increments by 1 each time the resource is updated. */ revision?: string | null; } interface WorkingHoursSchedule { /** * ID of the working hour [schedule](https://dev.wix.com/docs/api-reference/business-management/calendar/schedules-v3/introduction) * associated with the staff member. Currently, each staff member can't have more than a * single working hour schedule. Learn more about * [how Wix Bookings uses the Calendar APIs](https://dev.wix.com/docs/api-reference/business-management/calendar/wix-bookings-integration). * @format GUID */ id?: string | null; /** * Whether the working hour schedule is shared with the business. If this field * isn't available, the schedule isn't shared but specific for the staff member. */ shared?: boolean; } interface EventSchedule { /** * ID of the event [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction) * associated with the staff member. Learn more about * _how Wix Bookings uses the Calendar APIs_ * [Wix Bookings](https://dev.wix.com/docs/rest/business-management/calendar/wix-bookings-integration). * @format GUID */ id?: string | null; } interface LocationOptions { /** * Whether the resource is available in all [business locations](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-locations#location-types). * * - `true`: The resource is available in all business locations. * - `false`: The resource is available only in specific locations. * * Default: `false` */ availableInAllLocations?: boolean | null; /** Details of resource availability in specific locations. */ specificLocationOptions?: SpecificLocation; } interface SpecificLocation { /** * Whether the resource is available in [business locations](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-locations#location-types). * * - `true`: The resource is available in business locations. * - `false`: The resource isn't available in business locations. * * Default: `false` */ availableInBusinessLocations?: boolean | null; /** * Information about the business locations where the resource is available. * Not returned, if the resource is available in either all business locations * or in no business location. * You can specify up to 100 business locations. * @maxSize 100 */ businessLocations?: BusinessLocation[]; } interface BusinessLocation { /** * ID of the business [location](https://dev.wix.com/docs/rest/business-management/locations/introduction). * @format GUID */ locationId?: string | null; } /** A staff member resource can be associated with a Wix user via assignment of a permissions role in the business manager. */ interface AssociatedWixIdentity { /** * Information about the identity connected to the staff member. Available only * if the staff member is connected to a Wix user. Learn more about [identities](https://dev.wix.com/docs/rest/articles/getting-started/about-identities). */ identificationData?: CommonIdentificationData; /** * Deprecated: Connection status. * Available only if you specify `ASSOCIATED_IDENTITY_STATUS` in the `fields` array. * @readonly * @deprecated Deprecated: Connection status. * Available only if you specify `ASSOCIATED_IDENTITY_STATUS` in the `fields` array. * @replacedBy connection * @targetRemovalDate 2024-12-01 */ connectionStatus?: AssociatedWixIdentityConnectionStatusEnumConnectionStatusWithLiterals; /** * Connection status. Available only if you specify `ASSOCIATED_IDENTITY_STATUS` * in the `fields` array. * @readonly */ connection?: Connection; } interface CommonIdentificationData extends CommonIdentificationDataIdOneOf { /** * 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; /** * ID of of a contact in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system. Retrievable via the [Contacts API](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/introduction) * @format GUID */ contactId?: string | null; } /** @oneof */ interface CommonIdentificationDataIdOneOf { /** * 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 IdentityType { UNKNOWN = "UNKNOWN", ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR", MEMBER = "MEMBER", WIX_USER = "WIX_USER", APP = "APP" } /** @enumType */ type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP'; declare enum AssociatedWixIdentityConnectionStatusEnumConnectionStatus { /** There is no information about the connection status. */ UNKNOWN = "UNKNOWN", /** The Wix user is connected to the staff member. */ CONNECTED = "CONNECTED", /** The Wix user must accept the invitation to join **.wix.com.** or the site. */ PENDING = "PENDING", /** The invitation to join **.wix.com.** or the site has expired. */ EXPIRED = "EXPIRED", /** The Wix user was disconnected from the staff member. */ DISCONNECTED = "DISCONNECTED" } /** @enumType */ type AssociatedWixIdentityConnectionStatusEnumConnectionStatusWithLiterals = AssociatedWixIdentityConnectionStatusEnumConnectionStatus | 'UNKNOWN' | 'CONNECTED' | 'PENDING' | 'EXPIRED' | 'DISCONNECTED'; interface Connection { /** * Connection status of the Wix user and the staff member. * @readonly */ status?: AssociatedWixIdentityConnectionStatusEnumConnectionStatusWithLiterals; } interface AssociatedConferencingProviders { /** * Conferencing accounts connected to the staff member. * @maxSize 10 */ items?: AssociatedConferencingProvider[]; } interface AssociatedConferencingProvider { /** * Conferencing provider ID. For example, Zoom integration identifier. * @format GUID */ id?: string; /** * Provider name. For example, Google Meet. * @maxLength 255 */ name?: string; /** Connection status. */ connectionStatus?: ConnectionStatusWithLiterals; /** * Conferencing account email. Might not match staff email. * @maxLength 320 * @format EMAIL */ accountEmail?: string | null; } declare enum ConnectionStatus { /** Provider is connected to the site and the user is authenticated. */ CONNECTED = "CONNECTED", /** Provider is not connected to the site or the user is not authenticated. */ DISCONNECTED = "DISCONNECTED" } /** @enumType */ type ConnectionStatusWithLiterals = ConnectionStatus | 'CONNECTED' | 'DISCONNECTED'; interface AssociatedConferencingAccounts { /** * Conferencing accounts connected to the staff member. * @maxSize 10 */ items?: AssociatedConferencingAccount[]; } interface AssociatedConferencingAccount extends AssociatedConferencingAccountAccountOneOf { /** * Conferencing for the staff member, configured via an external provider. * For example, a Zoom integration generating a link for sessions with the staff member. */ providerAccount?: AssociatedConferencingProvider; /** Conferencing for the staff member, configured via a custom conference link. */ customAccount?: CustomConferenceAccount; } /** @oneof */ interface AssociatedConferencingAccountAccountOneOf { /** * Conferencing for the staff member, configured via an external provider. * For example, a Zoom integration generating a link for sessions with the staff member. */ providerAccount?: AssociatedConferencingProvider; /** Conferencing for the staff member, configured via a custom conference link. */ customAccount?: CustomConferenceAccount; } interface CustomConferenceAccount { /** * Conferencing URL. For example, a Google Meet link. * @maxLength 2083 */ url?: string | null; /** * Optional password that protects the conferencing link. * @maxLength 320 */ password?: string | null; /** * Optional description of the conference link. * @maxLength 3000 */ description?: string | null; } interface ExtendedFields { /** * Extended field data. Each key corresponds to the namespace of the app that created the extended fields. * The value of each key is structured according to the schema defined when the extended fields were configured. * * You can only access fields for which you have the appropriate permissions. * * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields). */ namespaces?: Record>; } /** * Common object for tags. * Should be use as in this example: * message Foo { * string id = 1; * ... * Tags tags = 5 * } * * example of taggable entity * { * id: "123" * tags: { * tags: { * tag_ids:["11","22"] * }, * private_tags: { * tag_ids: ["33", "44"] * } * } * } */ interface Tags { /** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */ privateTags?: TagList; /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */ tags?: TagList; } interface TagList { /** * List of tag IDs * @maxSize 100 * @maxLength 5 */ tagIds?: string[]; } declare enum Gender { /** Male. */ MALE = "MALE", /** Female. */ FEMALE = "FEMALE", /** Non-binary. Includes Germany's [diverse](https://www.gesetze-im-internet.de/englisch_sbgg/englisch_sbgg.html), Netherlands' [X](https://en.wikipedia.org/wiki/Legal_recognition_of_non-binary_gender#The_Netherlands), and similar terms. */ NON_BINARY = "NON_BINARY" } /** @enumType */ type GenderWithLiterals = Gender | 'MALE' | 'FEMALE' | 'NON_BINARY'; interface StaffMemberDisconnectedFromUser { /** Updated staff member. */ staffMember?: StaffMember; } interface StaffMemberConnectedToUser { /** Updated staff member. */ staffMember?: StaffMember; } /** * This message is used to notify that a staff member has been fully created. For now it is only needed for * producing the correct Resources V1 events. A decision will be made later whether to keep it or not. */ interface StaffMemberFullyCreated { /** Created staff member. */ staffMember?: StaffMember; } /** Triggered when tags are modified on a staff member. */ interface TagsModified { /** Staff member whose tags were modified. */ staffMember?: StaffMember; /** Tags that were assigned. */ assignedTags?: Tags; /** Tags that were unassigned. */ unassignedTags?: Tags; } interface CreateStaffMemberRequest { /** Staff member to create. */ staffMember: StaffMember; /** * Conditional fields to return. * @maxSize 3 */ fields?: RequestedFieldsWithLiterals[]; } declare enum RequestedFields { /** Includes `resource` in the response. */ RESOURCE_DETAILS = "RESOURCE_DETAILS", /** Includes `associatedIdentityStatus` in the response. */ ASSOCIATED_IDENTITY_STATUS = "ASSOCIATED_IDENTITY_STATUS" } /** @enumType */ type RequestedFieldsWithLiterals = RequestedFields | 'RESOURCE_DETAILS' | 'ASSOCIATED_IDENTITY_STATUS'; interface CreateStaffMemberResponse { /** Created staff member. */ staffMember?: StaffMember; } interface GetStaffMemberRequest { /** * ID of the staff member to retrieve. * @format GUID */ staffMemberId: string; /** * Conditional fields to return. * @maxSize 3 */ fields?: RequestedFieldsWithLiterals[]; } interface GetStaffMemberResponse { /** Retrieved staff member. */ staffMember?: StaffMember; } interface GetDeletedStaffMemberRequest { /** * ID of the deleted staff member to retrieve. * @format GUID */ staffMemberId: string; /** * Conditional fields to return. * @maxSize 3 */ fields?: RequestedFieldsWithLiterals[]; } interface GetDeletedStaffMemberResponse { /** Retrieved staff member. */ staffMember?: StaffMember; } interface ListDeletedStaffMembersRequest { /** * IDs of the deleted staff members to retrieve. * * Default: All deleted staff members are returned, given the provided paging. * @format GUID * @maxSize 100 */ staffMemberIds?: string[]; /** Paging details. */ paging?: CursorPaging; /** * Conditional fields to return. * @maxSize 3 */ fields?: RequestedFieldsWithLiterals[]; } interface CursorPaging { /** * Number of items to load. * @max 100 */ limit?: number | null; /** * Pointer to the next or previous page in the list of results. * * You can get the relevant cursor token * from the `pagingMetadata` object in the previous call's response. * Not relevant for the first request. * @maxLength 16000 */ cursor?: string | null; } interface ListDeletedStaffMembersResponse { /** Retrieved staff members. */ staffMembers?: StaffMember[]; /** Paging metadata. */ pagingMetadata?: CursorPagingMetadata; } interface CursorPagingMetadata { /** * Number of items returned in the current response page. * * This count reflects the actual number of items in the current result set, * which may be less than the requested limit if fewer items are available. */ count?: number | null; /** * Navigation cursors for moving between result pages. * * Contains `next` and `prev` cursor tokens for pagination. Use the `next` cursor * to retrieve subsequent pages and `prev` cursor to go back to previous pages. * Learn more about cursor paging in the [API Query Language guide](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging). */ cursors?: Cursors; /** * Indicates whether additional results are available beyond the current page. * * - `true`: More results exist and can be retrieved using the `next` cursor. * - `false`: This is the final page of results. */ hasNext?: boolean | null; } interface Cursors { /** * Cursor token for retrieving the next page of results. * * Use this token in subsequent requests to continue pagination forward. * Value is `null` when on the last page of results. * @maxLength 16000 */ next?: string | null; /** * Cursor token for retrieving the previous page of results. * * Use this token to navigate backwards through result pages. * Value is `null` when on the first page of results. * @maxLength 16000 */ prev?: string | null; } interface RemoveStaffMemberFromTrashBinRequest { /** * ID of the staff member to delete permanently. * @format GUID */ staffMemberId: string; } interface RemoveStaffMemberFromTrashBinResponse { } interface RestoreStaffMemberFromTrashBinRequest { /** * ID of the staff member to restore from the trash bin. * @format GUID */ staffMemberId?: string; /** * Conditional fields to return. * @maxSize 3 */ fields?: RequestedFieldsWithLiterals[]; } interface RestoreStaffMemberFromTrashBinResponse { /** Restored staff member. */ staffMember?: StaffMember; } interface UpdateStaffMemberRequest { /** Staff member to update. */ staffMember: StaffMember; /** * Conditional fields to return. * @maxSize 3 */ fields?: RequestedFieldsWithLiterals[]; } interface UpdateStaffMemberResponse { /** Updated staff member. */ staffMember?: StaffMember; } interface DeleteStaffMemberRequest { /** * ID of the staff member to delete. * @format GUID */ staffMemberId: string; } interface DeleteStaffMemberResponse { } interface QueryStaffMembersRequest { /** Information about filters, paging, and sorting. */ query?: CursorQuery; /** * Conditional fields to return. * @maxSize 3 */ fields?: RequestedFieldsWithLiterals[]; } interface CursorQuery extends CursorQueryPagingMethodOneOf { /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */ cursorPaging?: CursorPaging; /** * Filter object in the following format: * `"filter" : { * "fieldName1": "value1", * "fieldName2":{"$operator":"value2"} * }` * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains` */ filter?: Record | null; /** * Sort object in the following format: * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]` * @maxSize 10 */ sort?: Sorting[]; } /** @oneof */ interface CursorQueryPagingMethodOneOf { /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */ cursorPaging?: CursorPaging; } interface Sorting { /** * Name of the field to sort by. * @maxLength 512 */ fieldName?: string; /** Sort order. */ order?: SortOrderWithLiterals; } declare enum SortOrder { ASC = "ASC", DESC = "DESC" } /** @enumType */ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC'; interface QueryStaffMembersResponse { /** Retrieved staff members. */ staffMembers?: StaffMember[]; /** Paging metadata. */ pagingMetadata?: CursorPagingMetadata; } interface QueryStaffMembersMultiLanguageRequest { /** Information about filters, paging, and sorting. */ query?: CursorQuery; /** * Conditional fields to return. * @maxSize 3 */ fields?: RequestedFieldsWithLiterals[]; } interface QueryStaffMembersMultiLanguageResponse { /** Retrieved staff members. */ staffMembers?: StaffMember[]; /** The retrieved staff members in the requested language according to the provided linguist aspect. */ translatedStaffMembers?: StaffMember[]; /** Paging metadata, including offset and count. */ pagingMetadata?: CursorPagingMetadata; } interface CountStaffMembersRequest { /** * Filter to base the count upon. * See [Query Staff Members](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/query-staff-members) * for a complete list of supported filters. */ filter?: Record | null; } interface CountStaffMembersResponse { /** Total number of staff members matching the given filter. */ count?: number; } interface ConnectStaffMemberToUserRequest { /** * ID of the staff member to connect to the Wix user. * @format GUID */ staffMemberId: string; /** * Email of the Wix user to connect to the staff member. * * Default: Email of the staff member. * @maxLength 320 * @format EMAIL */ email?: string | null; /** * Conditional fields to return. * @maxSize 3 */ fields?: RequestedFieldsWithLiterals[]; } interface ConnectStaffMemberToUserResponse { /** Updated staff member. */ staffMember?: StaffMember; } interface SearchStaffMembersRequest { /** Search criteria including filter, sort, and paging options. */ search?: CursorSearch; /** * Conditional fields to return in the response. * @maxSize 3 */ fields?: RequestedFieldsWithLiterals[]; } interface CursorSearch extends CursorSearchPagingMethodOneOf { /** * Cursor-based paging for result navigation. Can't be used together with 'paging'. * `cursor_paging.cursor` can't be used together with `filter` or `sort`. */ cursorPaging?: CursorPaging; /** * Filter object for narrowing search results. For example, to return only staff members with specific email domains: `"filter": {"email": {"$contains": "@company.com"}}`. * * Learn more about the filter format in the [supported filters article](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/filtering-and-sorting). */ filter?: Record | null; /** * Array of sort objects specifying result order. For example, to sort by creation date in descending order: `"sort": [{"fieldName": "createdDate", "order": "DESC"}]`. * * Learn more about the sort format in the [supported filters article](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/filtering-and-sorting). * @maxSize 10 */ sort?: Sorting[]; /** Free text to match in searchable fields. */ search?: SearchDetails; } /** @oneof */ interface CursorSearchPagingMethodOneOf { /** * Cursor-based paging for result navigation. Can't be used together with 'paging'. * `cursor_paging.cursor` can't be used together with `filter` or `sort`. */ cursorPaging?: CursorPaging; } interface SearchDetails { /** Search mode. Defines the search logic for combining multiple terms in the `expression`. */ mode?: ModeWithLiterals; /** * Search term or expression. * @maxLength 100 */ expression?: string | null; /** * Fields to search in. If the array is empty, all searchable fields are searched. Use dot notation to specify a JSON path. For example, `resource.workingHoursSchedules.shared`. * @maxLength 200 * @maxSize 20 */ fields?: string[]; /** Whether to enable the search function to use an algorithm to automatically find results that are close to the search expression, such as typos and declensions. */ fuzzy?: boolean; } declare enum Mode { /** At least 1 of the search terms must be present. */ OR = "OR", /** All search terms must be present. */ AND = "AND" } /** @enumType */ type ModeWithLiterals = Mode | 'OR' | 'AND'; interface SearchStaffMembersResponse { /** * Retrieved staff members that match the search criteria specified in the request. * * Each staff member includes their profile information such as name, email, phone number, * working hours schedule, connected user details, and any conditional fields requested * (resource details, conferencing providers, or identity status). */ staffMembers?: StaffMember[]; /** * Cursor-based paging metadata for navigating through search results. * * Contains pagination details including current cursor position, availability of additional * results, and item counts. Use the `next` cursor to retrieve subsequent result pages. * Note: Staff members don't support aggregations, so only cursor and count information is provided. */ pagingMetadata?: CursorPagingMetadata; /** * Aggregation data results (currently reserved for future use). * * Staff member searches don't currently support aggregations. This field is reserved * for potential future aggregation capabilities such as grouping by working hours, * location assignments, or user connection status. */ aggregationData?: AggregationData; } interface AggregationData { /** * Array of aggregation results, each containing the aggregation metadata and its calculated values for the specified search criteria. * @maxSize 10000 */ results?: AggregationResults[]; } interface ValueAggregationResult { /** * Value of the field. * @maxLength 100 */ value?: string; /** Count of entities with this value. */ count?: number; } interface RangeAggregationResult { /** Inclusive lower bound of the range. */ from?: number | null; /** Exclusive upper bound of the range. */ to?: number | null; /** Count of entities in this range. */ count?: number; } declare enum ScalarType { UNKNOWN_SCALAR_TYPE = "UNKNOWN_SCALAR_TYPE", /** Total number of distinct values. */ COUNT_DISTINCT = "COUNT_DISTINCT", /** Minimum value. */ MIN = "MIN", /** Maximum value. */ MAX = "MAX" } /** @enumType */ type ScalarTypeWithLiterals = ScalarType | 'UNKNOWN_SCALAR_TYPE' | 'COUNT_DISTINCT' | 'MIN' | 'MAX'; interface NestedAggregationResults extends NestedAggregationResultsResultOneOf { /** Value aggregation results. */ values?: ValueResults; /** Range aggregation results. */ ranges?: RangeResults; /** Scalar aggregation results. */ scalar?: AggregationResultsScalarResult; /** * User-defined name of aggregation, matches the one specified in request. * @maxLength 100 */ name?: string; /** Type of aggregation that matches result. */ type?: AggregationTypeWithLiterals; /** * Field to aggregate by, matches the one specified in request. * @maxLength 200 */ fieldPath?: string; } /** @oneof */ interface NestedAggregationResultsResultOneOf { /** Value aggregation results. */ values?: ValueResults; /** Range aggregation results. */ ranges?: RangeResults; /** Scalar aggregation results. */ scalar?: AggregationResultsScalarResult; } declare enum AggregationType { UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE", /** Calculates the distribution of a specific field's values within a dataset, providing insights into the overall distribution and key statistics of those values. */ VALUE = "VALUE", /** Calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. */ RANGE = "RANGE", /** Calculates a single numerical value from a dataset, summarizing the dataset into 1 key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */ SCALAR = "SCALAR" } /** @enumType */ type AggregationTypeWithLiterals = AggregationType | 'UNKNOWN_AGGREGATION_TYPE' | 'VALUE' | 'RANGE' | 'SCALAR'; interface ValueResults { /** * Array of value aggregation results, each containing a field value and the count of entities with that value. * @maxSize 250 */ results?: ValueAggregationResult[]; } interface RangeResults { /** * Array of range aggregation results returned in the same order as requested, each containing range bounds and count of entities within that range. * @maxSize 50 */ results?: RangeAggregationResult[]; } interface AggregationResultsScalarResult { /** Type of scalar aggregation. */ type?: ScalarTypeWithLiterals; /** Value of the scalar aggregation. */ value?: number; } interface NestedValueAggregationResult { /** * Value of the field. * @maxLength 1000 */ value?: string; /** Nested aggregations result data. */ nestedResults?: NestedAggregationResults; } interface ValueResult { /** * Value of the field. * @maxLength 1000 */ value?: string; /** Count of entities with this value. */ count?: number | null; } interface RangeResult { /** Inclusive lower bound of the range. */ from?: number | null; /** Exclusive upper bound of the range. */ to?: number | null; /** Count of entities in this range. */ count?: number | null; } interface ScalarResult { /** Value of the scalar aggregation. */ value?: number; } interface NestedResultValue extends NestedResultValueResultOneOf { /** Value aggregation result. */ value?: ValueResult; /** Range aggregation result. */ range?: RangeResult; /** Scalar aggregation result. */ scalar?: ScalarResult; /** Date histogram aggregation result. */ dateHistogram?: ValueResult; } /** @oneof */ interface NestedResultValueResultOneOf { /** Value aggregation result. */ value?: ValueResult; /** Range aggregation result. */ range?: RangeResult; /** Scalar aggregation result. */ scalar?: ScalarResult; /** Date histogram aggregation result. */ dateHistogram?: ValueResult; } interface Results { /** Map of nested aggregation results, keyed by aggregation name. */ results?: Record; } interface DateHistogramResult { /** * Date in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601). * @maxLength 100 */ value?: string; /** Count of documents in the bucket. */ count?: number; } interface GroupByValueResults { /** * Array of nested value aggregation results, each containing a field value and the associated nested aggregation data. * @maxSize 1000 */ results?: NestedValueAggregationResult[]; } interface DateHistogramResults { /** * Array of date histogram aggregation results, each containing a date bucket and its count. * @maxSize 200 */ results?: DateHistogramResult[]; } /** * Results of `NESTED` aggregation type in a flattened form. * Aggregations in resulting array are keyed by requested aggregation `name`. */ interface NestedResults { /** * Array of nested aggregation result groups, each containing multiple aggregation results. * @maxSize 1000 */ results?: Results[]; } interface AggregationResults extends AggregationResultsResultOneOf { /** Value aggregation results. */ values?: ValueResults; /** Range aggregation results. */ ranges?: RangeResults; /** Scalar aggregation results. */ scalar?: AggregationResultsScalarResult; /** Group by value aggregation results. */ groupedByValue?: GroupByValueResults; /** Date histogram aggregation results. */ dateHistogram?: DateHistogramResults; /** Nested aggregation results. */ nested?: NestedResults; /** * User-defined name of aggregation as derived from search request. * @maxLength 100 */ name?: string; /** Type of aggregation that must match specified kind as derived from search request. */ type?: AggregationTypeWithLiterals; /** * Field to aggregate by as derived from search request. * @maxLength 200 */ fieldPath?: string; } /** @oneof */ interface AggregationResultsResultOneOf { /** Value aggregation results. */ values?: ValueResults; /** Range aggregation results. */ ranges?: RangeResults; /** Scalar aggregation results. */ scalar?: AggregationResultsScalarResult; /** Group by value aggregation results. */ groupedByValue?: GroupByValueResults; /** Date histogram aggregation results. */ dateHistogram?: DateHistogramResults; /** Nested aggregation results. */ nested?: NestedResults; } interface DisconnectStaffMemberFromUserRequest { /** * ID of the staff member to disconnect from its Wix user. * @format GUID */ staffMemberId: string; /** * Conditional fields to return. * @maxSize 3 */ fields?: RequestedFieldsWithLiterals[]; } interface DisconnectStaffMemberFromUserResponse { /** Updated staff member. */ staffMember?: StaffMember; } interface AssignWorkingHoursScheduleRequest { /** * ID of the staff member to assign the schedule to. * @format GUID */ staffMemberId: string; /** * ID of the [schedule](https://dev.wix.com/docs/api-reference/business-management/calendar/schedules-v3/introduction) * to assign to the staff member. * * Must be either the staff member's event schedule ID or the working hour * schedule ID for a business location. * @format GUID */ scheduleId: string; /** * Conditional fields to return. * @maxSize 3 */ fields?: RequestedFieldsWithLiterals[]; } interface AssignWorkingHoursScheduleResponse { /** Updated staff member. */ staffMember?: StaffMember; } interface AssignCustomScheduleRequest { /** * ID of the staff member for which to assign a working hour schedule. * @format GUID */ staffMemberId: string; /** * ID of the [schedule](https://dev.wix.com/docs/api-reference/business-management/calendar/schedules-v3/introduction) * to assign to the staff member. * @format GUID */ scheduleId: string; /** * Conditional fields to return. * @maxSize 3 */ fields?: RequestedFieldsWithLiterals[]; } interface AssignCustomScheduleResponse { /** Updated staff member. */ staffMember?: StaffMember; } interface BulkUpdateStaffMemberTagsRequest { /** * IDs of staff members to update tags for. * @minSize 1 * @maxSize 100 * @format GUID */ ids: string[]; /** Tags to add to the staff members. */ assignTags?: Tags; /** Tags to remove from the staff members. */ unassignTags?: Tags; } interface BulkUpdateStaffMemberTagsResponse { /** * List of update results. * @minSize 1 * @maxSize 100 */ results?: BulkUpdateStaffMemberTagsResult[]; /** Bulk action metadata. */ bulkActionMetadata?: BulkActionMetadata; } interface ItemMetadata { /** * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). * @format GUID */ id?: string | null; /** Index of the item within the request array. Allows for correlation between request and response items. */ originalIndex?: number; /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */ success?: boolean; /** Details about the error in case of failure. */ error?: ApplicationError; } interface ApplicationError { /** Error code. */ code?: string; /** Description of the error. */ description?: string; /** Data related to the error. */ data?: Record | null; } interface BulkUpdateStaffMemberTagsResult { /** Metadata about an individual update operation. */ itemMetadata?: ItemMetadata; } interface BulkActionMetadata { /** Number of items that were successfully processed. */ totalSuccesses?: number; /** Number of items that couldn't be processed. */ totalFailures?: number; /** Number of failures without details because detailed failure threshold was exceeded. */ undetailedFailures?: number; } interface BulkUpdateStaffMemberTagsByFilterRequest { /** * Filter to base the update upon. * See [Query Staff Members](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/query-staff-members) * for a complete list of supported filters. */ filter: Record | null; /** Tags to add to the staff members. */ assignTags?: Tags; /** Tags to remove from the staff members. */ unassignTags?: Tags; } interface BulkUpdateStaffMemberTagsByFilterResponse { /** * Job ID for the bulk update operation. * @format GUID */ jobId?: string; } interface RestoreStaffRequest { /** * ID of the staff member to restore. * @format GUID */ staffMemberId?: string; /** * Conditional fields to return. * @maxSize 3 */ fields?: RequestedFieldsWithLiterals[]; } interface RestoreStaffResponse { /** Restored staff member. */ staffMember?: StaffMember; } interface Empty { } interface PolicyRemovedFromContributor { /** @format GUID */ accountId?: string; /** @format GUID */ metaSiteId?: string; policyIds?: string[]; } interface PolicyUpdatedForContributor { /** @format GUID */ accountId?: string; /** @format GUID */ metaSiteId?: string; oldPolicyIds?: string[]; newPolicyIds?: string[]; } interface DomainEvent extends DomainEventBodyOneOf { createdEvent?: EntityCreatedEvent; updatedEvent?: EntityUpdatedEvent; deletedEvent?: EntityDeletedEvent; actionEvent?: ActionEvent; /** Event ID. With this ID you can easily spot duplicated events and ignore them. */ id?: string; /** * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities. * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`. */ entityFqdn?: string; /** * Event action name, placed at the top level to make it easier for users to dispatch messages. * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`. */ slug?: string; /** ID of the entity associated with the event. */ entityId?: string; /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */ eventTime?: Date | null; /** * Whether the event was triggered as a result of a privacy regulation application * (for example, GDPR). */ triggeredByAnonymizeRequest?: boolean | null; /** If present, indicates the action that triggered the event. */ originatedFrom?: string | null; /** * 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. * 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. */ entityEventSequence?: string | null; } /** @oneof */ interface DomainEventBodyOneOf { createdEvent?: EntityCreatedEvent; updatedEvent?: EntityUpdatedEvent; deletedEvent?: EntityDeletedEvent; actionEvent?: ActionEvent; } interface EntityCreatedEvent { entityAsJson?: string; /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */ restoreInfo?: RestoreInfo; } interface RestoreInfo { deletedDate?: Date | null; } interface EntityUpdatedEvent { /** * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff. * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects. * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it. */ currentEntityAsJson?: string; } interface EntityDeletedEvent { /** Entity that was deleted. */ deletedEntityAsJson?: string | null; } interface ActionEvent { bodyAsJson?: string; } interface ScheduleNotification extends ScheduleNotificationEventOneOf { scheduleCreated?: ScheduleCreated; scheduleUpdated?: ScheduleUpdated; scheduleCancelled?: ScheduleCancelled; sessionCreated?: SessionCreated; sessionUpdated?: SessionUpdated; sessionCancelled?: SessionCancelled; availabilityPolicyUpdated?: AvailabilityPolicyUpdated; /** @deprecated */ intervalSplit?: IntervalSplit; recurringSessionSplit?: RecurringSessionSplit; /** * Inspect `schedule.scheduleOwnerUserId` on `scheduleUpdated` instead. * @deprecated */ scheduleUnassignedFromUser?: ScheduleUnassignedFromUser; preserveFutureSessionsWithParticipants?: boolean | null; /** * Whether to notify participants about changed sessions. deprecated, use participant_notification * @deprecated */ notifyParticipants?: boolean; /** site properties. Optional. Given in create schedule notification. */ siteProperties?: SitePropertiesOnScheduleCreation; instanceId?: string; } /** @oneof */ interface ScheduleNotificationEventOneOf { scheduleCreated?: ScheduleCreated; scheduleUpdated?: ScheduleUpdated; scheduleCancelled?: ScheduleCancelled; sessionCreated?: SessionCreated; sessionUpdated?: SessionUpdated; sessionCancelled?: SessionCancelled; availabilityPolicyUpdated?: AvailabilityPolicyUpdated; /** @deprecated */ intervalSplit?: IntervalSplit; recurringSessionSplit?: RecurringSessionSplit; /** * Inspect `schedule.scheduleOwnerUserId` on `scheduleUpdated` instead. * @deprecated */ scheduleUnassignedFromUser?: ScheduleUnassignedFromUser; } interface ScheduleCreated { schedule?: Schedule; } interface Schedule { /** Schedule ID. */ id?: string; /** ID of the schedule's owner entity. This may be a resource ID or a service ID. */ scheduleOwnerId?: string | null; /** * Schedule's time zone in [Area/Location](https://en.wikipedia.org/wiki/Tz_database) format. Read-only. * Derived from the Wix Business time zone. * @readonly */ timeZone?: string | null; /** * Deprecated. Please use the [Sessions API](https://dev.wix.com/api/rest/wix-bookings/schedules-and-sessions/session) instead. * @deprecated */ intervals?: RecurringInterval[]; /** * Default title for the schedule's sessions. Maximum length: 6000 characters. * @maxLength 6000 */ title?: string | null; /** * __Deprecated.__ * Tags for grouping schedules. These tags are the default tags for the schedule's sessions. * The Wix Bookings app uses the following predefined tags to set schedule type: `"INDIVIDUAL"`, `"GROUP"`, and `"COURSE"`. Once the schedule type is set using these tags, you cannot update it. In addition to the app's tags, you can create and update your own tags. * @deprecated */ tags?: string[] | null; /** Default location for the schedule's sessions. */ location?: Location; /** * Maximum number of participants that can be added to the schedule's sessions. * Must be at most `1` for schedule whose availability is affected by another schedule. E.g, appointment schedules of the Wix Bookings app. * @min 1 * @max 1000 */ capacity?: number | null; /** * Deprecated. Please use the [Booking Services V2](https://dev.wix.com/api/rest/wix-bookings/services-v2) payment instead. * @deprecated */ rate?: Rate; /** * __Deprecated.__ * @deprecated */ availability?: Availability; /** * Number of participants registered to sessions in this schedule, calculated as the sum of the party sizes. * @readonly */ totalNumberOfParticipants?: number; /** * *Partial list** of participants which are registered to sessions in this schedule. * Participants who are registered in the schedule are automatically registered to any session that is created for the schedule. * To retrieve the full list of schedule participants please use the [Query Extended Bookings API](https://dev.wix.com/api/rest/wix-bookings/bookings-reader-v2/query-extended-bookings). * @readonly */ participants?: Participant[]; /** * __Deprecated.__ * @deprecated */ externalCalendarOverrides?: ExternalCalendarOverrides; /** * Schedule status. Default: Created * @readonly */ status?: ScheduleStatusWithLiterals; /** * Schedule creation date. * @readonly */ created?: Date | null; /** * Schedule last update date. * @readonly */ updated?: Date | null; /** * Schedule version number, updated each time the schedule is updated. * @readonly */ version?: number; /** * Fields which were inherited from the Business Info page under Settings in the Dashboard. * @readonly */ inheritedFields?: string[]; /** * __Deprecated.__ * @deprecated */ conferenceProvider?: ConferenceProvider; /** * A conference created for the schedule. This is used when a participant is added to a schedule. * **Partially deprecated.** Only `hostUrl` and `guestUrl` are to be supported. * @deprecated */ calendarConference?: CalendarConference; } interface RecurringInterval { /** * The recurring interval identifier. * @readonly */ id?: string; /** The start time of the recurring interval. Required. */ start?: Date | null; /** The end time of the recurring interval. Optional. Empty value indicates that there is no end time. */ end?: Date | null; /** The interval rules. The day, hour and minutes the interval is recurring. */ interval?: Interval; /** The frequency of the interval. Optional. The default is frequency with the default repetition. */ frequency?: Frequency; /** Specifies the list of linked schedules and the way this link affects the corresponding schedules' availability. Can be calculated from the schedule or overridden on the recurring interval. */ affectedSchedules?: LinkedSchedule[]; /** The type of recurring interval. */ intervalType?: RecurringIntervalTypeWithLiterals; } interface Interval { /** The day the interval occurs. Optional. The default is the day of the recurring interval's start time. */ daysOfWeek?: DayWithLiterals; /** * The hour of the day the interval occurs. Must be consistent with the interval start time. Optional. The default is 0. Minimum: 0, maximum: 23. * @max 23 */ hourOfDay?: number | null; /** * The minutes of the hour the interval accrues. Must be consistent with the interval end time. Optional. The default is 0. Minimum: 0, maximum: 59. * @max 59 */ minuteOfHour?: number | null; /** The duration of the interval in minutes. Required. Part of the session end time calculation. */ duration?: number; } declare enum Day { /** Undefined. */ UNDEFINED = "UNDEFINED", /** Monday. */ MON = "MON", /** Tuesday. */ TUE = "TUE", /** Wednesday. */ WED = "WED", /** Thursday. */ THU = "THU", /** Friday. */ FRI = "FRI", /** Saturday. */ SAT = "SAT", /** Sunday. */ SUN = "SUN" } /** @enumType */ type DayWithLiterals = Day | 'UNDEFINED' | 'MON' | 'TUE' | 'WED' | 'THU' | 'FRI' | 'SAT' | 'SUN'; interface Frequency { /** * The frequency of the recurrence in weeks. i.e. when this value is 4, the interval occurs every 4 weeks. Optional. The default is 1. minimum: 1, maximum: 52. * @min 1 * @max 52 */ repetition?: number | null; } interface LinkedSchedule { /** * Schedule ID. * @format GUID */ scheduleId?: string; /** Sets this schedule's availability for the duration of the linked schedule's sessions. Default is `"BUSY"`. */ transparency?: TransparencyWithLiterals; /** * Owner ID, of the linked schedule. * @readonly */ scheduleOwnerId?: string; } declare enum Transparency { UNDEFINED = "UNDEFINED", /** The schedule can have available slots during the linked schedule's sessions. */ FREE = "FREE", /** The schedule can't have available slots during the linked schedule's sessions. */ BUSY = "BUSY" } /** @enumType */ type TransparencyWithLiterals = Transparency | 'UNDEFINED' | 'FREE' | 'BUSY'; declare enum RecurringIntervalType { /** The default value. Sessions for this interval will be of type EVENT. */ UNDEFINED = "UNDEFINED", /** A recurring interval of events. */ EVENT = "EVENT", /** Deprecated. */ TIME_AVAILABILITY = "TIME_AVAILABILITY", /** A recurring interval for availability. */ AVAILABILITY = "AVAILABILITY" } /** @enumType */ type RecurringIntervalTypeWithLiterals = RecurringIntervalType | 'UNDEFINED' | 'EVENT' | 'TIME_AVAILABILITY' | 'AVAILABILITY'; interface Location { /** Location type. */ locationType?: LocationTypeWithLiterals; /** * Free text address used when locationType is `OWNER_CUSTOM`. * @deprecated */ address?: string | null; /** Custom address, used when locationType is `"OWNER_CUSTOM"`. Might be used when locationType is `"CUSTOM"` in case the owner sets a custom address for the session which is different from the default. */ customAddress?: Address; } declare enum LocationType { /** Undefined location type. */ UNDEFINED = "UNDEFINED", /** The business address as set in the site’s general settings. */ OWNER_BUSINESS = "OWNER_BUSINESS", /** The address as set when creating the service. */ OWNER_CUSTOM = "OWNER_CUSTOM", /** The address set for the individual session. */ CUSTOM = "CUSTOM" } /** @enumType */ type LocationTypeWithLiterals = LocationType | 'UNDEFINED' | 'OWNER_BUSINESS' | 'OWNER_CUSTOM' | 'CUSTOM'; /** Physical address */ interface Address extends AddressStreetOneOf { /** Street name, number and apartment number. */ streetAddress?: StreetAddress; /** Main address line, usually street and number, as free text. */ addressLine?: string | null; /** * Country code. * @format COUNTRY */ country?: string | null; /** Subdivision. Usually state, region, prefecture or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */ subdivision?: string | null; /** City name. */ city?: string | null; /** Zip/postal code. */ postalCode?: string | null; /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */ addressLine2?: string | null; /** A string containing the full address of this location. */ formattedAddress?: string | null; /** Free text to help find the address. */ hint?: string | null; /** Coordinates of the physical address. */ geocode?: AddressLocation; /** Country full name. */ countryFullname?: string | null; /** Multi-level subdivisions from top to bottom. */ subdivisions?: Subdivision[]; } /** @oneof */ interface AddressStreetOneOf { /** Street name, number and apartment number. */ streetAddress?: StreetAddress; /** Main address line, usually street and number, as free text. */ addressLine?: string | null; } interface StreetAddress { /** Street number. */ number?: string; /** Street name. */ name?: string; /** Apartment number. */ apt?: string; } interface AddressLocation { /** Address latitude. */ latitude?: number | null; /** Address longitude. */ longitude?: number | null; } interface Subdivision { /** Subdivision code. Usually state, region, prefecture or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */ code?: string; /** Subdivision full name. */ name?: string; } interface LocationsLocation { /** * Location ID. * @format GUID * @readonly */ id?: string | null; /** * Location name. * @maxLength 150 */ name?: string; /** * Location description. * @maxLength 500 */ description?: string | null; /** * Whether this is the default location. There can only be one default location per site. The default location can't be archived. * @readonly */ default?: boolean; /** * Location status. Defaults to `ACTIVE`. * __Notes:__ * - [Archiving a location](https://dev.wix.com/api/rest/business-info/locations/archive-location) * doesn't affect the location's status. * - `INACTIVE` status is currently not supported. */ status?: LocationStatusWithLiterals; /** * Location type. * * **Note:** Currently not supported. * @deprecated */ locationType?: LocationsLocationTypeWithLiterals; /** Fax number. */ fax?: string | null; /** Timezone in `America/New_York` format. */ timeZone?: string | null; /** Email address. */ email?: string | null; /** Phone number. */ phone?: string | null; /** Address. */ address?: LocationsAddress; /** * Business schedule. Array of weekly recurring time periods when the location is open for business. Limited to 100 time periods. * * __Note:__ Not supported by Wix Bookings. */ businessSchedule?: BusinessSchedule; /** * Revision number, which increments by 1 each time the location is updated. * To prevent conflicting changes, the existing revision must be used when updating a location. */ revision?: string | null; /** * Whether the location is archived. Archived locations can't be updated. * __Note:__ [Archiving a location](https://dev.wix.com/api/rest/business-info/locations/archive-location) * doesn't affect its `status`. * @readonly */ archived?: boolean; /** * Location types. * @maxSize 10 */ locationTypes?: LocationsLocationTypeWithLiterals[]; /** Extended fields for data extensions. */ extendedFields?: ExtendedFields; } /** For future use */ declare enum LocationStatus { ACTIVE = "ACTIVE", INACTIVE = "INACTIVE" } /** @enumType */ type LocationStatusWithLiterals = LocationStatus | 'ACTIVE' | 'INACTIVE'; /** For future use */ declare enum LocationsLocationType { UNKNOWN = "UNKNOWN", BRANCH = "BRANCH", OFFICES = "OFFICES", RECEPTION = "RECEPTION", HEADQUARTERS = "HEADQUARTERS", INVENTORY = "INVENTORY" } /** @enumType */ type LocationsLocationTypeWithLiterals = LocationsLocationType | 'UNKNOWN' | 'BRANCH' | 'OFFICES' | 'RECEPTION' | 'HEADQUARTERS' | 'INVENTORY'; interface LocationsAddress { /** * 2-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * @format COUNTRY */ country?: string | null; /** Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format. */ subdivision?: string | null; /** City name. */ city?: string | null; /** * Postal or zip code. * @maxLength 20 */ postalCode?: string | null; /** Street address. Includes street name, number, and apartment number in separate fields. */ streetAddress?: LocationsStreetAddress; /** Full address of the location. */ formattedAddress?: string | null; /** * Extra information that helps finding the location. * @maxLength 500 */ hint?: string | null; /** Geographic coordinates of location. */ geocode?: LocationsAddressLocation; } /** Street address. Includes street name, number, and apartment number in separate fields. */ interface LocationsStreetAddress { /** Street number. */ number?: string; /** Street name. */ name?: string; /** Apartment number. */ apt?: string; } /** Address Geolocation */ interface LocationsAddressLocation { /** Latitude of the location. Must be between -90 and 90. */ latitude?: number | null; /** Longitude of the location. Must be between -180 and 180. */ longitude?: number | null; } /** Business schedule. Regular and exceptional time periods when the business is open or the service is available. */ interface BusinessSchedule { /** * Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods. * @maxSize 100 */ periods?: TimePeriod[]; /** * Exceptions to the business's regular hours. The business can be open or closed during the exception. * @maxSize 100 */ specialHourPeriod?: SpecialHourPeriod[]; } /** Weekly recurring time periods when the business is regularly open or the service is available. */ interface TimePeriod { /** Day of the week the period starts on. */ openDay?: DayOfWeekWithLiterals; /** * Time the period starts in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents * midnight at the end of the specified day. */ openTime?: string; /** Day of the week the period ends on. */ closeDay?: DayOfWeekWithLiterals; /** * Time the period ends in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents * midnight at the end of the specified day. * * __Note:__ If `openDay` and `closeDay` specify the same day of the week `closeTime` must be later than `openTime`. */ closeTime?: string; } /** Enumerates the days of the week. */ declare enum DayOfWeek { MONDAY = "MONDAY", TUESDAY = "TUESDAY", WEDNESDAY = "WEDNESDAY", THURSDAY = "THURSDAY", FRIDAY = "FRIDAY", SATURDAY = "SATURDAY", SUNDAY = "SUNDAY" } /** @enumType */ type DayOfWeekWithLiterals = DayOfWeek | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY'; /** Exception to the business's regular hours. The business can be open or closed during the exception. */ interface SpecialHourPeriod { /** Start date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */ startDate?: string; /** End date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */ endDate?: string; /** * Whether the business is closed (or the service is not available) during the exception. * * Default: `true`. */ isClosed?: boolean; /** Additional info about the exception. For example, "We close earlier on New Year's Eve." */ comment?: string; } interface Rate { /** * Mapping between a named price option, for example, adult or child prices, and the price, currency, and down payment amount. * When present in an update request, the `default_varied_price` is ignored to support backward compatibility. */ labeledPriceOptions?: Record; /** * Textual price information used when **Price Per Session** is set to **Custom Price** in the app's service details page. * When present in an update request, the `default_varied_price` is ignored to support backward compatibility. */ priceText?: string | null; } interface Price { /** * Required payment amount. * @format DECIMAL_VALUE */ amount?: string; /** * Currency in which the amount is quoted. * @format CURRENCY */ currency?: string; /** * Amount of a down payment or deposit as part of the transaction. * @format DECIMAL_VALUE */ downPayAmount?: string; } /** * */ interface Availability { /** Date and time the schedule starts to be available for booking. */ start?: Date | null; /** Date and time the schedule stops being available for booking. No value indicates no end time. */ end?: Date | null; /** Other schedules that impact the availability calculation. Relevant only when there are availability constraints. */ linkedSchedules?: LinkedSchedule[]; /** Constraints for calculating the schedule's availability. */ constraints?: AvailabilityConstraints; } /** Describes how to calculate the specific slots that are available for booking. */ interface AvailabilityConstraints { /** * A list of duration options for slots, in minutes. Minimum value for a duration is 1. * The availability calculation generates slots with these durations, where there is no conflict with existing sessions or other availability constraints. * @min 1 */ slotDurations?: number[]; /** * The number of minutes between the `end` of one slot, and the `start` of the next. * Minimum value is 0, maximum value is 120. * @max 720 */ timeBetweenSlots?: number; /** * Specify how to split the slots in intervals of minutes. * This value indicates the time between available slots' start time. e.g., from 5 minute slots (3:00, 3:05, 3:15) and 1 hour slots (3:00, 4:00, 5:00). * Optional. The default is the first duration in slot_durations field. * Deprecated. Use the `split_slots_interval.value_in_minutes`. * @deprecated */ splitInterval?: number | null; /** * An object defining the time between available slots' start times. For example, a slot with slots_split_interval=5 can start every 5 minutes. The default is the slot duration. * @readonly */ slotsSplitInterval?: SplitInterval; } /** The time between available slots' start times. For example, For 5 minute slots, 3:00, 3:05, 3:15 etc. For 1 hour slots, 3:00, 4:00, 5:00 etc. */ interface SplitInterval { /** * Whether the slot duration is used as the split interval value. * If `same_as_duration` is `true`, the `value_in_minutes` is the sum of the first duration in * `schedule.availabilityConstraints.SlotDurations` field, and `schedule.availabilityConstraints.TimeBetweenSlots` field. */ sameAsDuration?: boolean | null; /** Number of minutes between available slots' start times when `same_as_duration` is `false`. */ valueInMinutes?: number | null; } interface Participant { /** * Participant ID. Currently represents the booking.id. * @format GUID */ id?: string; /** * Contact ID. * @format GUID */ contactId?: string | null; /** Participant's name. */ name?: string | null; /** Participant's phone number. */ phone?: string | null; /** Participant's email address. */ email?: string | null; /** Group or party size. The number of people attending. Defaults to 0. Maximum is 250. */ partySize?: number; /** * Approval status for the participant. * */ approvalStatus?: ApprovalStatusWithLiterals; /** * Whether the participant was inherited from the schedule, as opposed to being booked directly to the session. * @readonly */ inherited?: boolean; } declare enum ApprovalStatus { /** Default. */ UNDEFINED = "UNDEFINED", /** Pending business approval. */ PENDING = "PENDING", /** Approved by the business. */ APPROVED = "APPROVED", /** Declined by the business. */ DECLINED = "DECLINED" } /** @enumType */ type ApprovalStatusWithLiterals = ApprovalStatus | 'UNDEFINED' | 'PENDING' | 'APPROVED' | 'DECLINED'; interface ExternalCalendarOverrides { /** Synced title of the external calendar event. */ title?: string | null; /** Synced description of the external calendar event. */ description?: string | null; } declare enum ScheduleStatus { /** Undefined schedule status. */ UNDEFINED = "UNDEFINED", /** The schedule was created. */ CREATED = "CREATED", /** The schedule was cancelled. */ CANCELLED = "CANCELLED" } /** @enumType */ type ScheduleStatusWithLiterals = ScheduleStatus | 'UNDEFINED' | 'CREATED' | 'CANCELLED'; interface Version { /** Schedule version number, updated each time the schedule is updated. */ scheduleVersion?: number | null; /** Participants version number, updated each time the schedule participants are updated. */ participantsVersion?: number | null; } interface ConferenceProvider { /** Conferencing provider ID */ providerId?: string; } interface CalendarConference { /** Wix Calendar conference ID. */ id?: string; /** Conference meeting ID in the provider's conferencing system. */ externalId?: string; /** Conference provider ID. */ providerId?: string; /** URL used by the host to start the conference. */ hostUrl?: string; /** URL used by a guest to join the conference. */ guestUrl?: string; /** Password to join the conference. */ password?: string | null; /** Conference description. */ description?: string | null; /** Conference type. */ conferenceType?: ConferenceTypeWithLiterals; /** ID of the account owner in the video conferencing service. */ accountOwnerId?: string | null; } declare enum ConferenceType { /** Undefined conference type. */ UNDEFINED = "UNDEFINED", /** API-generated online meeting. */ ONLINE_MEETING_PROVIDER = "ONLINE_MEETING_PROVIDER", /** User-defined meeting. */ CUSTOM = "CUSTOM" } /** @enumType */ type ConferenceTypeWithLiterals = ConferenceType | 'UNDEFINED' | 'ONLINE_MEETING_PROVIDER' | 'CUSTOM'; interface ScheduleUpdated { /** The old schedule before the update. */ oldSchedule?: Schedule; /** The new schedule after the update. */ newSchedule?: Schedule; /** * Recurring sessions updated event. If this field is given, the reason for the schedule updated event was * updating at least one of the given schedule's recurring sessions. * This event is triggered by create/update/delete recurring session apis. */ recurringSessions?: RecurringSessionsUpdated; /** Whether to notify participants about the change and an optional custom message */ participantNotification?: ParticipantNotification; /** * Whether this notification was created as a result of an anonymization request, such as GDPR. * An anonymized participant will have the following details: * name = "deleted" * phone = "deleted" * email = "deleted@deleted.com" */ triggeredByAnonymizeRequest?: boolean | null; } interface RecurringSessionsUpdated { /** Old schedule's recurring session list. */ oldRecurringSessions?: Session[]; /** New schedule's recurring session list. */ newRecurringSessions?: Session[]; } interface Session { /** * Session ID. * @readonly */ id?: string | null; /** * ID of the schedule that the session belongs to. * @immutable */ scheduleId?: string; /** * ID of the resource or service that the session's schedule belongs to. * @readonly */ scheduleOwnerId?: string | null; /** Original start date and time of the session in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC)) format. */ originalStart?: Date | null; /** An object specifying the start date and time of the session. If the session is a recurring session, `start` must contain a `localDateTime`. */ start?: CalendarDateTime; /** * An object specifying the end date and time of the session. The `end` time must be after the `start` time and be same type as `start`. * If the session is a recurring session, `end` must contain a `localDateTime`. */ end?: CalendarDateTime; /** * An object specifying a list of schedules and the way each schedule's availability is affected by the session. For example, the schedule of an instructor is affected by sessions of the class that they instruct. * The array is inherited from the schedule and can be overridden even if the session is a recurring session. */ affectedSchedules?: LinkedSchedule[]; /** * Session title. * The value is inherited from the schedule and can be overridden unless the session is a recurring session. * @maxLength 6000 */ title?: string | null; /** * __Deprecated.__ * Tags for the session. * The value is inherited from the schedule and can be overridden unless the session is a recurring session. * @maxLength 200 * @deprecated */ tags?: string[] | null; /** * An object describing the location where the session takes place. * Defaults to the schedule location. * For single sessions, `session.location.businessLocation` can only be provided for locations that are defined in the schedule using `schedule.location` or `schedule.availability.locations`. */ location?: Location; /** * Maximum number of participants that can be added to the session. Defaults to the schedule capacity. * The value is inherited from the schedule and can be overridden unless the session is a recurring session. * @max 1000 */ capacity?: number | null; /** * Deprecated. Please use the [Booking Services V2](https://dev.wix.com/api/rest/wix-bookings/services-v2) payment instead. * @deprecated */ rate?: Rate; /** * Time reserved after the session end time, derived from the schedule availability constraints and the time between slots. Read-only. * If the session is a recurring session, this field must be empty. */ timeReservedAfter?: number | null; /** * Additional information about the session. * Notes are not supported for recurring sessions. * @maxLength 10000 */ notes?: string; /** * The number of participants booked for the session. Read-only. * Calculated as the sum of the party sizes. * @readonly */ totalNumberOfParticipants?: number; /** * *Partial list** list of participants booked for the session. * The list includes participants who have registered for this specific session, and participants who have registered for a schedule that includes this session. * If the session is a recurring session, this field must be empty. * To retrieve the full list of session participants please use the [Query Extended Bookings API](https://dev.wix.com/api/rest/wix-bookings/bookings-reader-v2/query-extended-bookings). */ participants?: Participant[]; /** * A list of properties for which values were inherited from the schedule. * This does not include participants that were inherited from the schedule. * @readonly */ inheritedFields?: string[]; /** * __Deprecated.__ * @deprecated */ externalCalendarOverrides?: ExternalCalendarOverrides; /** * Session status. * @readonly */ status?: StatusWithLiterals; /** * Recurring interval ID. Defined when a session will be a recurring session. read-only. Optional. * For example, when creating a class service with recurring sessions, you add a recurrence rule to create recurring sessions. * This field is omitted for single sessions or instances of recurring sessions. * Specified when the session was originally generated from a schedule recurring interval. * Deprecated. Use `recurringSessionId`. * @readonly * @deprecated */ recurringIntervalId?: string | null; /** * The ID of the recurring session if this session is an instance of a recurrence. Use this ID to update the recurrence and all of the instances. * @readonly */ recurringSessionId?: string | null; /** Session type. */ type?: SessionTypeWithLiterals; /** * A conference created for the session according to the details set in the schedule's conference provider information. * If the session is a recurring session, this field is inherited from the schedule. * **Partially deprecated.** Only `hostUrl` and `guestUrl` are to be supported. * @deprecated */ calendarConference?: CalendarConference; /** * A string representing a recurrence rule (RRULE) for a recurring session, as defined in [iCalendar RFC 5545](https://icalendar.org/iCalendar-RFC-5545/3-3-10-recurrence-rule.html). * If the session is an instance of a recurrence pattern, the `instanceOfRecurrence` property will be contain the recurrence rule and this property will be empty. * The RRULE defines a rule for repeating a session. * Supported parameters are: * * |Keyword|Description|Supported values| * |--|--|---| * |`FREQ`|The frequency at which the session is recurs. Required.|`WEEKLY`| * |`INTERVAL`|How often, in terms of `FREQ`, the session recurs. Default is 1. Optional.| * |`UNTIL`|The UTC end date and time of the recurrence. Optional.| * |`BYDAY`|Day of the week when the event should recur. Required.|One of: `MO`, `TU`, `WE`, `TH`, `FR`, `SA`, `SU`| * * * For example, a session that repeats every second week on a Monday until January 7, 2022 at 8 AM: * `"FREQ=WEEKLY;INTERVAL=2;BYDAY=MO;UNTIL=20220107T080000Z"` * * */ recurrence?: string | null; /** * A string representing a recurrence rule (RRULE) if the session is an instance of a recurrence pattern. * Empty when the session is not an instance of a recurrence rule, or if the session defines a recurrence pattern, and `recurrence` is not empty. * @readonly */ instanceOfRecurrence?: string | null; /** * The session version. * Composed by the schedule, session and participants versions. * @readonly */ version?: SessionVersion; } interface CalendarDateTime { /** * UTC date-time in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC)) format. If a time zone offset is specified, the time is converted to UTC. For example, if you specify `new Date('2021-01-06T16:00:00.000-07:00')`, the stored value will be `"2021-01-06T23:00:00.000Z"`. * Required if `localDateTime` is not specified. * If `localDateTime` is specified, `timestamp` is calculated as `localDateTime`, using the business's time zone. */ timestamp?: Date | null; /** An object containing the local date and time for the business's time zone. */ localDateTime?: LocalDateTime; /** * The time zone. Optional. Derived from the schedule's time zone. * In case this field is associated with recurring session, this field is empty. * @readonly */ timeZone?: string | null; } interface LocalDateTime { /** Year. 4-digit format. */ year?: number | null; /** * Month number, from 1-12. * @min 1 * @max 12 */ monthOfYear?: number | null; /** Day of the month, from 1-31. */ dayOfMonth?: number | null; /** * Hour of the day in 24-hour format, from 0-23. * @max 23 */ hourOfDay?: number | null; /** * Minute, from 0-59. * @max 59 */ minutesOfHour?: number | null; } interface ExternalCalendarInfo { /** The external calendar type (e.g. Google Calendar, iCal, etc). */ calendarType?: CalendarTypeWithLiterals; } declare enum CalendarType { /** There is no information about the external calendar type. */ UNDEFINED = "UNDEFINED", /** [Google Calendar](https://developers.google.com/calendar/api/guides/overview). */ GOOGLE = "GOOGLE", /** Apple iCalendar. */ I_CAL = "I_CAL", /** __Deprecated__. Use `MICROSOFT` instead. */ OUTLOOK = "OUTLOOK", /** __Deprecated__. Use `MICROSOFT` instead. */ OFFICE_365 = "OFFICE_365", /** Microsoft Calendar. For example, Office 365 calendar or Outlook calendar. */ MICROSOFT = "MICROSOFT", /** A different type of external calendar, not listed here. */ OTHER = "OTHER" } /** @enumType */ type CalendarTypeWithLiterals = CalendarType | 'UNDEFINED' | 'GOOGLE' | 'I_CAL' | 'OUTLOOK' | 'OFFICE_365' | 'MICROSOFT' | 'OTHER'; declare enum Status { /** Undefined status. */ UNDEFINED = "UNDEFINED", /** Session is confirmed. Default status. */ CONFIRMED = "CONFIRMED", /** * Session is cancelled. * A cancelled session can be the cancellation of a recurring session that should no longer be displayed or a deleted single session. * The ListSessions returns cancelled sessions only if 'includeDelete' flag is set to true. */ CANCELLED = "CANCELLED" } /** @enumType */ type StatusWithLiterals = Status | 'UNDEFINED' | 'CONFIRMED' | 'CANCELLED'; declare enum SessionType { UNDEFINED = "UNDEFINED", /** * Creates an event on the calendar for the owner of the schedule that the session belongs to. * Default type. */ EVENT = "EVENT", /** Represents a resource's available working hours. */ WORKING_HOURS = "WORKING_HOURS", /** Deprecated. Please use WORKING_HOURS. */ TIME_AVAILABILITY = "TIME_AVAILABILITY", /** Deprecated. Represents a resource's available hours. Please use WORKING_HOURS. */ AVAILABILITY = "AVAILABILITY" } /** @enumType */ type SessionTypeWithLiterals = SessionType | 'UNDEFINED' | 'EVENT' | 'WORKING_HOURS' | 'TIME_AVAILABILITY' | 'AVAILABILITY'; interface SessionVersion { /** Incremental version number, which is updated on each change to the session or on changes affecting the session. */ number?: string | null; } interface ParticipantNotification { /** * Whether to send a message about the changes to the customer. * * Default: `false` */ notifyParticipants?: boolean; /** Custom message to send to the participants about the changes to the booking. */ message?: string | null; /** * Information about the delivery channels used to send the notification. * For example, `{"channels": "SMS" }`, `{"channels": "EMAIL" }`, or `{"channels": "EMAIL, SMS" }`. */ metadata?: Record; } interface ScheduleCancelled { schedule?: Schedule; /** Whether to notify participants about the change and an optional custom message */ participantNotification?: ParticipantNotification; oldSchedule?: Schedule; } interface SessionCreated { session?: Session; } interface SessionUpdated { oldSession?: Session; newSession?: Session; /** Whether to notify participants about the change and an optional custom message */ participantNotification?: ParticipantNotification; /** * Whether this notification was created as a result of an anonymization request, such as GDPR. * An anonymized participant will have the following details: * name = "deleted" * phone = "deleted" * email = "deleted@deleted.com" */ triggeredByAnonymizeRequest?: boolean | null; } interface SessionCancelled { session?: Session; /** Whether to notify participants about the change and an optional custom message */ participantNotification?: ParticipantNotification; } interface AvailabilityPolicyUpdated { availabilityPolicy?: AvailabilityPolicy; } /** Availability policy applied to all site schedules. */ interface AvailabilityPolicy { /** Specify how to split the schedule slots in intervals of minutes. */ splitInterval?: SplitInterval; } interface IntervalSplit { scheduleId?: string; intervals?: RecurringInterval[]; newScheduleVersion?: number | null; oldScheduleVersion?: number | null; } interface RecurringSessionSplit { scheduleId?: string; recurringSessions?: Session[]; newScheduleVersion?: number | null; oldScheduleVersion?: number | null; } /** Schedule unassigned from user. */ interface ScheduleUnassignedFromUser { /** * The Wix user id. * @format GUID */ userId?: string | null; /** The schedule that was unassigned from the user. */ schedule?: Schedule; } interface MultipleSessionsCreated { schedulesWithSessions?: ScheduleWithSessions[]; } interface ScheduleWithSessions { schedule?: Schedule; siteProperties?: SitePropertiesOnScheduleCreation; sessions?: Session[]; } interface SitePropertiesOnScheduleCreation { /** The global time zone value. */ timeZone?: string | null; } interface MigrationEvent { migrationData?: MigrationData; } interface MigrationData { businessId?: string | null; staffs?: StaffData[]; } interface StaffData { resourceId?: string; syncRequestEmail?: string; refreshToken?: string; } 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 BulkUpdateStaffMemberTagsApplicationErrors = { code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS'; description?: string; data?: Record; }; /** @docsIgnore */ type BulkUpdateStaffMemberTagsByFilterApplicationErrors = { code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS'; 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 createStaffMember(): __PublicMethodMetaInfo<'POST', {}, CreateStaffMemberRequest$1, CreateStaffMemberRequest, CreateStaffMemberResponse$1, CreateStaffMemberResponse>; declare function getStaffMember(): __PublicMethodMetaInfo<'GET', { staffMemberId: string; }, GetStaffMemberRequest$1, GetStaffMemberRequest, GetStaffMemberResponse$1, GetStaffMemberResponse>; declare function getDeletedStaffMember(): __PublicMethodMetaInfo<'GET', { staffMemberId: string; }, GetDeletedStaffMemberRequest$1, GetDeletedStaffMemberRequest, GetDeletedStaffMemberResponse$1, GetDeletedStaffMemberResponse>; declare function listDeletedStaffMembers(): __PublicMethodMetaInfo<'GET', {}, ListDeletedStaffMembersRequest$1, ListDeletedStaffMembersRequest, ListDeletedStaffMembersResponse$1, ListDeletedStaffMembersResponse>; declare function removeStaffMemberFromTrashBin(): __PublicMethodMetaInfo<'DELETE', { staffMemberId: string; }, RemoveStaffMemberFromTrashBinRequest$1, RemoveStaffMemberFromTrashBinRequest, RemoveStaffMemberFromTrashBinResponse$1, RemoveStaffMemberFromTrashBinResponse>; declare function updateStaffMember(): __PublicMethodMetaInfo<'PATCH', { staffMemberId: string; }, UpdateStaffMemberRequest$1, UpdateStaffMemberRequest, UpdateStaffMemberResponse$1, UpdateStaffMemberResponse>; declare function deleteStaffMember(): __PublicMethodMetaInfo<'DELETE', { staffMemberId: string; }, DeleteStaffMemberRequest$1, DeleteStaffMemberRequest, DeleteStaffMemberResponse$1, DeleteStaffMemberResponse>; declare function queryStaffMembers(): __PublicMethodMetaInfo<'POST', {}, QueryStaffMembersRequest$1, QueryStaffMembersRequest, QueryStaffMembersResponse$1, QueryStaffMembersResponse>; declare function countStaffMembers(): __PublicMethodMetaInfo<'POST', {}, CountStaffMembersRequest$1, CountStaffMembersRequest, CountStaffMembersResponse$1, CountStaffMembersResponse>; declare function connectStaffMemberToUser(): __PublicMethodMetaInfo<'POST', { staffMemberId: string; }, ConnectStaffMemberToUserRequest$1, ConnectStaffMemberToUserRequest, ConnectStaffMemberToUserResponse$1, ConnectStaffMemberToUserResponse>; declare function searchStaffMembers(): __PublicMethodMetaInfo<'POST', {}, SearchStaffMembersRequest$1, SearchStaffMembersRequest, SearchStaffMembersResponse$1, SearchStaffMembersResponse>; declare function disconnectStaffMemberFromUser(): __PublicMethodMetaInfo<'POST', { staffMemberId: string; }, DisconnectStaffMemberFromUserRequest$1, DisconnectStaffMemberFromUserRequest, DisconnectStaffMemberFromUserResponse$1, DisconnectStaffMemberFromUserResponse>; declare function assignWorkingHoursSchedule(): __PublicMethodMetaInfo<'POST', { staffMemberId: string; }, AssignWorkingHoursScheduleRequest$1, AssignWorkingHoursScheduleRequest, AssignWorkingHoursScheduleResponse$1, AssignWorkingHoursScheduleResponse>; declare function assignCustomSchedule(): __PublicMethodMetaInfo<'POST', { staffMemberId: string; }, AssignCustomScheduleRequest$1, AssignCustomScheduleRequest, AssignCustomScheduleResponse$1, AssignCustomScheduleResponse>; declare function bulkUpdateStaffMemberTags(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateStaffMemberTagsRequest$1, BulkUpdateStaffMemberTagsRequest, BulkUpdateStaffMemberTagsResponse$1, BulkUpdateStaffMemberTagsResponse>; declare function bulkUpdateStaffMemberTagsByFilter(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateStaffMemberTagsByFilterRequest$1, BulkUpdateStaffMemberTagsByFilterRequest, BulkUpdateStaffMemberTagsByFilterResponse$1, BulkUpdateStaffMemberTagsByFilterResponse>; export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AddressLocation as AddressLocationOriginal, type Address as AddressOriginal, type AddressStreetOneOf as AddressStreetOneOfOriginal, type AggregationData as AggregationDataOriginal, type AggregationResults as AggregationResultsOriginal, type AggregationResultsResultOneOf as AggregationResultsResultOneOfOriginal, type AggregationResultsScalarResult as AggregationResultsScalarResultOriginal, AggregationType as AggregationTypeOriginal, type AggregationTypeWithLiterals as AggregationTypeWithLiteralsOriginal, type ApplicationError as ApplicationErrorOriginal, ApprovalStatus as ApprovalStatusOriginal, type ApprovalStatusWithLiterals as ApprovalStatusWithLiteralsOriginal, type AssignCustomScheduleRequest as AssignCustomScheduleRequestOriginal, type AssignCustomScheduleResponse as AssignCustomScheduleResponseOriginal, type AssignWorkingHoursScheduleRequest as AssignWorkingHoursScheduleRequestOriginal, type AssignWorkingHoursScheduleResponse as AssignWorkingHoursScheduleResponseOriginal, type AssociatedConferencingAccountAccountOneOf as AssociatedConferencingAccountAccountOneOfOriginal, type AssociatedConferencingAccount as AssociatedConferencingAccountOriginal, type AssociatedConferencingAccounts as AssociatedConferencingAccountsOriginal, type AssociatedConferencingProvider as AssociatedConferencingProviderOriginal, type AssociatedConferencingProviders as AssociatedConferencingProvidersOriginal, AssociatedWixIdentityConnectionStatusEnumConnectionStatus as AssociatedWixIdentityConnectionStatusEnumConnectionStatusOriginal, type AssociatedWixIdentityConnectionStatusEnumConnectionStatusWithLiterals as AssociatedWixIdentityConnectionStatusEnumConnectionStatusWithLiteralsOriginal, type AssociatedWixIdentity as AssociatedWixIdentityOriginal, type AvailabilityConstraints as AvailabilityConstraintsOriginal, type Availability as AvailabilityOriginal, type AvailabilityPolicy as AvailabilityPolicyOriginal, type AvailabilityPolicyUpdated as AvailabilityPolicyUpdatedOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkUpdateStaffMemberTagsApplicationErrors as BulkUpdateStaffMemberTagsApplicationErrorsOriginal, type BulkUpdateStaffMemberTagsByFilterApplicationErrors as BulkUpdateStaffMemberTagsByFilterApplicationErrorsOriginal, type BulkUpdateStaffMemberTagsByFilterRequest as BulkUpdateStaffMemberTagsByFilterRequestOriginal, type BulkUpdateStaffMemberTagsByFilterResponse as BulkUpdateStaffMemberTagsByFilterResponseOriginal, type BulkUpdateStaffMemberTagsRequest as BulkUpdateStaffMemberTagsRequestOriginal, type BulkUpdateStaffMemberTagsResponse as BulkUpdateStaffMemberTagsResponseOriginal, type BulkUpdateStaffMemberTagsResult as BulkUpdateStaffMemberTagsResultOriginal, type BusinessLocation as BusinessLocationOriginal, type BusinessSchedule as BusinessScheduleOriginal, type CalendarConference as CalendarConferenceOriginal, type CalendarDateTime as CalendarDateTimeOriginal, CalendarType as CalendarTypeOriginal, type CalendarTypeWithLiterals as CalendarTypeWithLiteralsOriginal, type CommonIdentificationDataIdOneOf as CommonIdentificationDataIdOneOfOriginal, type CommonIdentificationData as CommonIdentificationDataOriginal, type ConferenceProvider as ConferenceProviderOriginal, ConferenceType as ConferenceTypeOriginal, type ConferenceTypeWithLiterals as ConferenceTypeWithLiteralsOriginal, type ConnectStaffMemberToUserRequest as ConnectStaffMemberToUserRequestOriginal, type ConnectStaffMemberToUserResponse as ConnectStaffMemberToUserResponseOriginal, type Connection as ConnectionOriginal, ConnectionStatus as ConnectionStatusOriginal, type ConnectionStatusWithLiterals as ConnectionStatusWithLiteralsOriginal, type CountStaffMembersRequest as CountStaffMembersRequestOriginal, type CountStaffMembersResponse as CountStaffMembersResponseOriginal, type CreateStaffMemberRequest as CreateStaffMemberRequestOriginal, type CreateStaffMemberResponse as CreateStaffMemberResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type CursorSearch as CursorSearchOriginal, type CursorSearchPagingMethodOneOf as CursorSearchPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type CustomConferenceAccount as CustomConferenceAccountOriginal, type DateHistogramResult as DateHistogramResultOriginal, type DateHistogramResults as DateHistogramResultsOriginal, DayOfWeek as DayOfWeekOriginal, type DayOfWeekWithLiterals as DayOfWeekWithLiteralsOriginal, Day as DayOriginal, type DayWithLiterals as DayWithLiteralsOriginal, type DeleteStaffMemberRequest as DeleteStaffMemberRequestOriginal, type DeleteStaffMemberResponse as DeleteStaffMemberResponseOriginal, type DisconnectStaffMemberFromUserRequest as DisconnectStaffMemberFromUserRequestOriginal, type DisconnectStaffMemberFromUserResponse as DisconnectStaffMemberFromUserResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type EventSchedule as EventScheduleOriginal, type ExtendedFields as ExtendedFieldsOriginal, type ExternalCalendarInfo as ExternalCalendarInfoOriginal, type ExternalCalendarOverrides as ExternalCalendarOverridesOriginal, type Frequency as FrequencyOriginal, Gender as GenderOriginal, type GenderWithLiterals as GenderWithLiteralsOriginal, type GetDeletedStaffMemberRequest as GetDeletedStaffMemberRequestOriginal, type GetDeletedStaffMemberResponse as GetDeletedStaffMemberResponseOriginal, type GetStaffMemberRequest as GetStaffMemberRequestOriginal, type GetStaffMemberResponse as GetStaffMemberResponseOriginal, type GroupByValueResults as GroupByValueResultsOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, IdentityType as IdentityTypeOriginal, type IdentityTypeWithLiterals as IdentityTypeWithLiteralsOriginal, type Image as ImageOriginal, type Interval as IntervalOriginal, type IntervalSplit as IntervalSplitOriginal, type ItemMetadata as ItemMetadataOriginal, type LinkedSchedule as LinkedScheduleOriginal, type ListDeletedStaffMembersRequest as ListDeletedStaffMembersRequestOriginal, type ListDeletedStaffMembersResponse as ListDeletedStaffMembersResponseOriginal, type LocalDateTime as LocalDateTimeOriginal, type LocationOptions as LocationOptionsOriginal, type Location as LocationOriginal, LocationStatus as LocationStatusOriginal, type LocationStatusWithLiterals as LocationStatusWithLiteralsOriginal, LocationType as LocationTypeOriginal, type LocationTypeWithLiterals as LocationTypeWithLiteralsOriginal, type LocationsAddressLocation as LocationsAddressLocationOriginal, type LocationsAddress as LocationsAddressOriginal, type LocationsLocation as LocationsLocationOriginal, LocationsLocationType as LocationsLocationTypeOriginal, type LocationsLocationTypeWithLiterals as LocationsLocationTypeWithLiteralsOriginal, type LocationsStreetAddress as LocationsStreetAddressOriginal, type MediaItemMediaOneOf as MediaItemMediaOneOfOriginal, type MediaItem as MediaItemOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MigrationData as MigrationDataOriginal, type MigrationEvent as MigrationEventOriginal, Mode as ModeOriginal, type ModeWithLiterals as ModeWithLiteralsOriginal, type MultipleSessionsCreated as MultipleSessionsCreatedOriginal, type NestedAggregationResults as NestedAggregationResultsOriginal, type NestedAggregationResultsResultOneOf as NestedAggregationResultsResultOneOfOriginal, type NestedResultValue as NestedResultValueOriginal, type NestedResultValueResultOneOf as NestedResultValueResultOneOfOriginal, type NestedResults as NestedResultsOriginal, type NestedValueAggregationResult as NestedValueAggregationResultOriginal, type ParticipantNotification as ParticipantNotificationOriginal, type Participant as ParticipantOriginal, type PolicyRemovedFromContributor as PolicyRemovedFromContributorOriginal, type PolicyUpdatedForContributor as PolicyUpdatedForContributorOriginal, type Price as PriceOriginal, type QueryStaffMembersMultiLanguageRequest as QueryStaffMembersMultiLanguageRequestOriginal, type QueryStaffMembersMultiLanguageResponse as QueryStaffMembersMultiLanguageResponseOriginal, type QueryStaffMembersRequest as QueryStaffMembersRequestOriginal, type QueryStaffMembersResponse as QueryStaffMembersResponseOriginal, type RangeAggregationResult as RangeAggregationResultOriginal, type RangeResult as RangeResultOriginal, type RangeResults as RangeResultsOriginal, type Rate as RateOriginal, type RecurringInterval as RecurringIntervalOriginal, RecurringIntervalType as RecurringIntervalTypeOriginal, type RecurringIntervalTypeWithLiterals as RecurringIntervalTypeWithLiteralsOriginal, type RecurringSessionSplit as RecurringSessionSplitOriginal, type RecurringSessionsUpdated as RecurringSessionsUpdatedOriginal, type RemoveStaffMemberFromTrashBinRequest as RemoveStaffMemberFromTrashBinRequestOriginal, type RemoveStaffMemberFromTrashBinResponse as RemoveStaffMemberFromTrashBinResponseOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type Resource as ResourceOriginal, type RestoreInfo as RestoreInfoOriginal, type RestoreStaffMemberFromTrashBinRequest as RestoreStaffMemberFromTrashBinRequestOriginal, type RestoreStaffMemberFromTrashBinResponse as RestoreStaffMemberFromTrashBinResponseOriginal, type RestoreStaffRequest as RestoreStaffRequestOriginal, type RestoreStaffResponse as RestoreStaffResponseOriginal, type Results as ResultsOriginal, type ScalarResult as ScalarResultOriginal, ScalarType as ScalarTypeOriginal, type ScalarTypeWithLiterals as ScalarTypeWithLiteralsOriginal, type ScheduleCancelled as ScheduleCancelledOriginal, type ScheduleCreated as ScheduleCreatedOriginal, type ScheduleNotificationEventOneOf as ScheduleNotificationEventOneOfOriginal, type ScheduleNotification as ScheduleNotificationOriginal, type Schedule as ScheduleOriginal, ScheduleStatus as ScheduleStatusOriginal, type ScheduleStatusWithLiterals as ScheduleStatusWithLiteralsOriginal, type ScheduleUnassignedFromUser as ScheduleUnassignedFromUserOriginal, type ScheduleUpdated as ScheduleUpdatedOriginal, type ScheduleWithSessions as ScheduleWithSessionsOriginal, type SearchDetails as SearchDetailsOriginal, type SearchStaffMembersRequest as SearchStaffMembersRequestOriginal, type SearchStaffMembersResponse as SearchStaffMembersResponseOriginal, type SessionCancelled as SessionCancelledOriginal, type SessionCreated as SessionCreatedOriginal, type Session as SessionOriginal, SessionType as SessionTypeOriginal, type SessionTypeWithLiterals as SessionTypeWithLiteralsOriginal, type SessionUpdated as SessionUpdatedOriginal, type SessionVersion as SessionVersionOriginal, type SitePropertiesOnScheduleCreation as SitePropertiesOnScheduleCreationOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type SpecialHourPeriod as SpecialHourPeriodOriginal, type SpecificLocation as SpecificLocationOriginal, type SplitInterval as SplitIntervalOriginal, type StaffData as StaffDataOriginal, type StaffMemberConnectedToUser as StaffMemberConnectedToUserOriginal, type StaffMemberDisconnectedFromUser as StaffMemberDisconnectedFromUserOriginal, type StaffMemberFullyCreated as StaffMemberFullyCreatedOriginal, type StaffMember as StaffMemberOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, type StreetAddress as StreetAddressOriginal, type Subdivision as SubdivisionOriginal, type TagList as TagListOriginal, type TagsModified as TagsModifiedOriginal, type Tags as TagsOriginal, type TimePeriod as TimePeriodOriginal, Transparency as TransparencyOriginal, type TransparencyWithLiterals as TransparencyWithLiteralsOriginal, type UpdateStaffMemberRequest as UpdateStaffMemberRequestOriginal, type UpdateStaffMemberResponse as UpdateStaffMemberResponseOriginal, type ValueAggregationResult as ValueAggregationResultOriginal, type ValueResult as ValueResultOriginal, type ValueResults as ValueResultsOriginal, type Version as VersionOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type WorkingHoursSchedule as WorkingHoursScheduleOriginal, type __PublicMethodMetaInfo, assignCustomSchedule, assignWorkingHoursSchedule, bulkUpdateStaffMemberTags, bulkUpdateStaffMemberTagsByFilter, connectStaffMemberToUser, countStaffMembers, createStaffMember, deleteStaffMember, disconnectStaffMemberFromUser, getDeletedStaffMember, getStaffMember, listDeletedStaffMembers, queryStaffMembers, removeStaffMemberFromTrashBin, searchStaffMembers, updateStaffMember };