import { K as CreateResourceRequest$1, O as CreateResourceResponse$1, P as BulkCreateResourcesRequest$1, a as BulkCreateResourcesResponse$1, Z as GetResourceRequest$1, _ as GetResourceResponse$1, aa as UpdateResourceRequest$1, ab as UpdateResourceResponse$1, ac as BulkUpdateResourcesRequest$1, e as BulkUpdateResourcesResponse$1, ad as DeleteResourceRequest$1, ae as DeleteResourceResponse$1, af as BulkDeleteResourcesRequest$1, g as BulkDeleteResourcesResponse$1, ag as SearchResourcesRequest$1, S as SearchResourcesResponse$1, aU as QueryResourcesRequest$1, aX as QueryResourcesResponse$1, aY as CountResourcesRequest$1, j as CountResourcesResponse$1 } from './bookings-resources-v2-resource-resources.universal-dGPKVytD.mjs'; import '@wix/sdk-types'; /** * A resource represents an entity, such as a room or a staff member, that can be * scheduled for use in a [booking](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/about-the-bookings-apis). * The availability of a resource is tracked to ensure that it * can be allocated at a requested time slot and to prevent double bookings. */ interface Resource extends ResourceCompositionDetailsOneOf { /** * Resource ID. * @format GUID * @readonly */ id?: string | null; /** * Revision number, which increments by 1 each time the resource is updated. * To prevent conflicting changes, * the current revision must be passed when updating the resource. * @readonly */ revision?: string | null; /** * Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource was created. * @readonly */ createdDate?: Date | null; /** * Time in `YYYY-MM-DDThh:mm:ss.sssZ` format the resource was last updated. * @readonly */ updatedDate?: Date | null; /** * Name of the resource. * @maxLength 40 * @minLength 1 */ name?: string | null; /** * ID of the [resource type](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resource-types-v2/introduction). * * Once a type has been set it can't be modified. You can create a resource * without specifying a type. However, customers can't book such resources. * @format GUID * @immutable */ typeId?: string | null; /** * Information about the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction) * specifying the working hours and locations of the resource. * * Resources without a working hour schedule are available 24/7 at the locations * specified in the field `locationOptions`. * When both `workingHoursSchedules` and `locationOptions` are set, * `workingHoursSchedules` takes precedence. */ workingHoursSchedules?: WorkingHoursSchedules; /** Information about the location where the resource is available. */ locationOptions?: LocationOptions; /** * Schedule containing the [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction) * for which the resource has been booked. * @readonly */ eventsSchedule?: EventsSchedule; /** Extensions enabling users to save custom data related to the resource. */ extendedFields?: ExtendedFields; } /** @oneof */ interface ResourceCompositionDetailsOneOf { } interface WorkingHoursSchedule { /** * ID of the working hour [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction). * @format GUID */ scheduleId?: string | null; /** * Whether the schedule is shared by multiple resources or unique for this resource. * * Default: `false` * @readonly */ shared?: boolean | null; } interface SingleResource { /** * Schedule details that specify the working hours and locations of this resource. * * When this field is missing or empty, the resource is assumed to be available * around the clock (24/7) at the locations specified in `locationOptions`. When * both `workingHoursSchedules` and `locationOptions` are set, * `workingHoursSchedules` takes precedence. */ workingHoursSchedules?: V2WorkingHoursSchedules; /** * Information about the location where the resource is available. * * If you don't specify `locationOptions`, Wix Bookings automatically sets * `{"availableInAllLocations": true}`. */ locationOptions?: LocationOptions; /** * Schedule containing the [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction) * for which the resource has been booked. * @readonly */ eventsSchedule?: Schedule; } interface V2WorkingHoursSchedules { /** * Schedules specifying the working hours of the resource. Currently, only a single schedule is supported. * @maxSize 1 */ values?: Schedule[]; } /** Deprecated and subject to removal */ interface Schedule { /** * Schedule ID. See [Schedules API](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) for more information. * @format GUID */ scheduleId?: string | null; /** * Whether this schedule is used by multiple resources or unique for this resource. * * `true` if it is a shared schedule (for example from a business or location), `false` this is a custom schedule specific to the resource. * Default: `false`. */ shared?: boolean | 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; } interface WorkingHoursSchedules { /** * Schedules specifying the working hours of the resource. Currently, only a single schedule is supported. * @maxSize 1 */ values?: WorkingHoursSchedule[]; } interface EventsSchedule { /** * ID of the event [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction). * @format GUID */ scheduleId?: string | null; } declare enum ManagementType { /** The resource is managed by a Wix user. */ WIX_USER = "WIX_USER" } /** @enumType */ type ManagementTypeWithLiterals = ManagementType | 'WIX_USER'; 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>; } interface CreateResourceRequest { /** Resource to create. */ resource: Resource; } interface CreateResourceResponse { /** Created resource. */ resource?: Resource; } interface BulkCreateResourcesRequest { /** * Resources to create. * @maxSize 50 */ resources: Resource[]; /** * Whether to include the created resources in the response. * * Default: `false` */ returnEntity?: boolean; } interface BulkCreateResourcesResponse { /** The result of each resource creation. */ results?: BulkResourceResult[]; /** Create statistics. */ bulkActionMetadata?: BulkActionMetadata; } interface BulkResourceResult { /** Item metadata. */ itemMetadata?: ItemMetadata; /** The resulting resource after the bulk operation. */ item?: Resource; } 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 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 GetResourceRequest { /** * ID of the resource to retrieve. * @format GUID */ resourceId: string; } interface GetResourceResponse { /** Retrieved resource. */ resource?: Resource; } interface GetDeletedResourceRequest { /** * ID of the deleted resource to retrieve from the trash bin. * @format GUID */ resourceId?: string; } interface GetDeletedResourceResponse { /** Retrieved resource. */ resource?: Resource; } interface ListDeletedResourcesRequest { /** * IDs of the resources to retrieve. * @format GUID * @maxSize 100 */ resourceIds?: string[]; /** Paging details, allowing you specify a limit and a cursor. */ paging?: CursorPaging; } interface CursorPaging { /** * Maximum number of items to return in the results. * @max 100 */ limit?: number | null; /** * Pointer to the next or previous page in the list of results. * * Pass 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 ListDeletedResourcesResponse { /** Retrieved resources. */ resources?: Resource[]; /** 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 RemoveResourceFromTrashBinRequest { /** * ID of the resource to permanently delete from the trash bin. * @format GUID */ resourceId?: string; } interface RemoveResourceFromTrashBinResponse { } interface RestoreResourceFromTrashBinRequest { /** * ID of the resource to restore from the trash bin. * @format GUID */ resourceId?: string; } interface RestoreResourceFromTrashBinResponse { /** Restored resource. */ resource?: Resource; } interface UpdateResourceRequest { /** Resource to update. */ resource: Resource; } interface UpdateResourceResponse { /** Updated resource. */ resource?: Resource; } interface BulkUpdateResourcesRequest { /** * Resources to update. * @minSize 1 * @maxSize 100 */ resources: MaskedResource[]; /** * Whether to include the updated resources in the response. * * Default: `false` */ returnEntity?: boolean; } interface MaskedResource { /** Resource to update. */ resource?: Resource; /** Explicit list of fields to update. */ fieldMask?: string[]; } interface BulkUpdateResourcesResponse { /** The result of each resource update. */ results?: BulkResourceResult[]; /** Update statistics. */ bulkActionMetadata?: BulkActionMetadata; } interface DeleteResourceRequest { /** * ID of the resource to delete. * @format GUID */ resourceId: string; } interface DeleteResourceResponse { } interface BulkDeleteResourcesRequest { /** * IDs of the resources to delete. * @format GUID * @maxSize 50 */ ids: string[]; } interface BulkDeleteResourcesResponse { /** The result of each resource removal. */ results?: BulkResourceResult[]; /** Delete statistics. */ bulkActionMetadata?: BulkActionMetadata; } interface SearchResourcesRequest { /** Search criteria including filter, sort, aggregations, and paging options. */ search?: CursorSearch; } interface CursorSearch extends CursorSearchPagingMethodOneOf { /** * Cursor-based paging for result navigation. When requesting `cursor_paging.cursor`, * `filter`, `sort`, or `search` can't be specified. */ cursorPaging?: CursorPaging; /** * Filter object for narrowing search results. For example, to return only resources available at specific business locations: `"filter": {"single_resource.location_options.specific_location_options.business_locations.location_id": {"$in": ["location-id-1", "location-id-2"]}}`. * * Learn more about the filter format in the [supported filters article](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting). */ filter?: Record | null; /** * Array of sort objects specifying result order. For example, to sort by resource name in ascending order: `"sort": [{"fieldName": "name", "order": "ASC"}]`. * * Learn more about the sort format in the [supported filters article](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting). * @maxSize 10 */ sort?: Sorting[]; /** * Aggregations for grouping data into categories (facets) and providing summaries for each category. * For example, use aggregations to categorize search results by resource type, management type, or location availability. * @maxSize 10 */ aggregations?: Aggregation[]; /** Free text to match in searchable fields. */ search?: SearchDetails; /** * Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) or [ISO 8601 UTC offset format](https://en.wikipedia.org/wiki/ISO_8601#Time_offsets_from_UTC) for adjusting time fields in the specified filters and returned aggregation data. For example, `America/New_York`, `UTC`, or `+02:00`. * * Default: Time zone specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties). * @maxLength 50 */ timeZone?: string | null; } /** @oneof */ interface CursorSearchPagingMethodOneOf { /** * Cursor-based paging for result navigation. When requesting `cursor_paging.cursor`, * `filter`, `sort`, or `search` can't be specified. */ 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 Aggregation extends AggregationKindOneOf { /** Value aggregation configuration. */ value?: ValueAggregation; /** Range aggregation configuration. */ range?: RangeAggregation; /** Scalar aggregation configuration. */ scalar?: ScalarAggregation; /** Date histogram aggregation configuration. */ dateHistogram?: DateHistogramAggregation; /** Nested aggregation configuration. */ nested?: NestedAggregation; /** * Aggregation name, returned in `aggregations.results.name`. * @maxLength 100 */ name?: string | null; /** Type of aggregation. Client must specify matching aggregation field below. */ type?: AggregationTypeWithLiterals; /** * Field to aggregate by. Use dot notation to specify a JSON path. For example `name` or `locationOptions.businessLocations.locationId`. * @maxLength 200 */ fieldPath?: string; /** * Deprecated. Use `nested` instead. * @deprecated Deprecated. Use `nested` instead. * @replacedBy kind.nested * @targetRemovalDate 2024-03-30 */ groupBy?: GroupByAggregation; } /** @oneof */ interface AggregationKindOneOf { /** Value aggregation configuration. */ value?: ValueAggregation; /** Range aggregation configuration. */ range?: RangeAggregation; /** Scalar aggregation configuration. */ scalar?: ScalarAggregation; /** Date histogram aggregation configuration. */ dateHistogram?: DateHistogramAggregation; /** Nested aggregation configuration. */ nested?: NestedAggregation; } interface RangeBucket { /** Inclusive lower bound of the range. Required if `to` isn't specified. */ from?: number | null; /** Exclusive upper bound of the range. Required if `from` isn't specified. */ to?: number | null; } declare enum SortType { /** Number of matches in the results. */ COUNT = "COUNT", /** Alphabetically by the field value. */ VALUE = "VALUE" } /** @enumType */ type SortTypeWithLiterals = SortType | 'COUNT' | 'VALUE'; declare enum SortDirection { /** Descending order. */ DESC = "DESC", /** Ascending order. */ ASC = "ASC" } /** @enumType */ type SortDirectionWithLiterals = SortDirection | 'DESC' | 'ASC'; declare enum MissingValues { /** Exclude missing values from the aggregation results. */ EXCLUDE = "EXCLUDE", /** Include missing values in the aggregation results. */ INCLUDE = "INCLUDE" } /** @enumType */ type MissingValuesWithLiterals = MissingValues | 'EXCLUDE' | 'INCLUDE'; interface IncludeMissingValuesOptions { /** * Custom bucket name for missing values. * * Default values: * - string: `N/A` * - int: `0` * - bool: `false` * @maxLength 20 */ addToBucket?: string; } declare enum ScalarType { /** Total number of distinct values. */ COUNT_DISTINCT = "COUNT_DISTINCT", /** Minimum value. */ MIN = "MIN", /** Maximum value. */ MAX = "MAX" } /** @enumType */ type ScalarTypeWithLiterals = ScalarType | 'COUNT_DISTINCT' | 'MIN' | 'MAX'; interface ValueAggregation extends ValueAggregationOptionsOneOf { /** Options for including missing values in the aggregation results. */ includeOptions?: IncludeMissingValuesOptions; /** Whether to sort by number of matches or value of the field. */ sortType?: SortTypeWithLiterals; /** Whether to sort in ascending or descending order. */ sortDirection?: SortDirectionWithLiterals; /** * Number of aggregations to return. * * Min: `1` * Max: `250` * Default: `10` */ limit?: number | null; /** * Whether missing values should be included or excluded from the aggregation results. * * Default: `EXCLUDE` */ missingValues?: MissingValuesWithLiterals; } /** @oneof */ interface ValueAggregationOptionsOneOf { /** Options for including missing values in the aggregation results. */ includeOptions?: IncludeMissingValuesOptions; } declare enum NestedAggregationType { /** 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", /** Calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). */ DATE_HISTOGRAM = "DATE_HISTOGRAM" } /** @enumType */ type NestedAggregationTypeWithLiterals = NestedAggregationType | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM'; interface RangeAggregation { /** * List of range buckets defining the ranges for aggregation. During aggregation, each entity is placed in the first bucket where its value falls within the specified range bounds. * @maxSize 50 */ buckets?: RangeBucket[]; } interface ScalarAggregation { /** Operator for the scalar aggregation, for example `COUNT_DISTINCT`, `MIN`, `MAX`. */ type?: ScalarTypeWithLiterals; } interface DateHistogramAggregation { /** Time interval for date histogram aggregation, for example `DAY`, `HOUR`, `MONTH`. */ interval?: IntervalWithLiterals; } declare enum Interval { /** Yearly interval */ YEAR = "YEAR", /** Monthly interval */ MONTH = "MONTH", /** Weekly interval */ WEEK = "WEEK", /** Daily interval */ DAY = "DAY", /** Hourly interval */ HOUR = "HOUR", /** Minute interval */ MINUTE = "MINUTE", /** Second interval */ SECOND = "SECOND" } /** @enumType */ type IntervalWithLiterals = Interval | 'YEAR' | 'MONTH' | 'WEEK' | 'DAY' | 'HOUR' | 'MINUTE' | 'SECOND'; interface NestedAggregationItem extends NestedAggregationItemKindOneOf { /** Value aggregation configuration. Calculates the distribution of field values within the dataset. */ value?: ValueAggregation; /** Range aggregation configuration. Calculates counts within user-defined value ranges. */ range?: RangeAggregation; /** Scalar aggregation configuration. Calculates single numerical metrics like count, min, max, sum, or average. */ scalar?: ScalarAggregation; /** Date histogram aggregation configuration. Calculates counts within time intervals. */ dateHistogram?: DateHistogramAggregation; /** * User-defined name of aggregation. Must be unique and will appear in aggregation results. * @maxLength 100 */ name?: string | null; /** Type of aggregation. Client must specify matching aggregation field below. */ type?: NestedAggregationTypeWithLiterals; /** * Path to the field to aggregate by in dot notation. For example `name` or `locationOptions.businessLocations.locationId`. * @maxLength 200 */ fieldPath?: string; } /** @oneof */ interface NestedAggregationItemKindOneOf { /** Value aggregation configuration. Calculates the distribution of field values within the dataset. */ value?: ValueAggregation; /** Range aggregation configuration. Calculates counts within user-defined value ranges. */ range?: RangeAggregation; /** Scalar aggregation configuration. Calculates single numerical metrics like count, min, max, sum, or average. */ scalar?: ScalarAggregation; /** Date histogram aggregation configuration. Calculates counts within time intervals. */ dateHistogram?: DateHistogramAggregation; } declare enum AggregationType { /** 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", /** Calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). */ DATE_HISTOGRAM = "DATE_HISTOGRAM", /** Flattened list of aggregations, where each aggregation is nested within previous 1. */ NESTED = "NESTED" } /** @enumType */ type AggregationTypeWithLiterals = AggregationType | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM' | 'NESTED'; /** Nested aggregation for multi-level faceted search. Allows exploring large amounts of data through multiple levels of categorization, where each subsequent aggregation is nested within the previous aggregation to create hierarchical data summaries. */ interface NestedAggregation { /** * Flattened list of aggregations where each next aggregation is nested within the previous 1. * @minSize 2 * @maxSize 3 */ nestedAggregations?: NestedAggregationItem[]; } interface GroupByAggregation extends GroupByAggregationKindOneOf { /** Value aggregation configuration. */ value?: ValueAggregation; /** * User-defined name of aggregation. Must be unique and will appear in aggregation results. * @maxLength 100 */ name?: string | null; /** * Path to the field to aggregate by in dot notation. For example `name` or `locationOptions.businessLocations.locationId`. * @maxLength 200 */ fieldPath?: string; } /** @oneof */ interface GroupByAggregationKindOneOf { /** Value aggregation configuration. */ value?: ValueAggregation; } 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, `locationOptions.availableInAllLocations`. * @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 SearchResourcesResponse { /** * Retrieved resources that match the search criteria specified in the request. * * Each resource includes all available information such as name, type, management details, * location options, working hour schedules, and availability configurations. */ resources?: Resource[]; /** * Cursor-based paging metadata for navigating through search results. * * Contains navigation information including the current page cursor, whether additional * results are available, and result counts. Use the `next` cursor to fetch subsequent pages. */ pagingMetadata?: CursorPagingMetadata; /** * Aggregation results derived from the aggregations specified in the search request. * * Provides analytical summaries such as resource counts by type, location distribution, * management type statistics, or custom groupings. Only populated when aggregations * are included in the search criteria. */ 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; } 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; /** * Path to the field to aggregate by in dot notation. For example `name` or `locationOptions.businessLocations.locationId`. * @maxLength 200 */ fieldPath?: string; } /** @oneof */ interface NestedAggregationResultsResultOneOf { /** Value aggregation results. */ values?: ValueResults; /** Range aggregation results. */ ranges?: RangeResults; /** Scalar aggregation results. */ scalar?: AggregationResultsScalarResult; } 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; /** * Path to the field to aggregate by in dot notation. For example `name` or `locationOptions.businessLocations.locationId`. * @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 QueryResourcesRequest { /** Query object. */ query?: CursorQuery; } 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 5 */ 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 QueryResourcesResponse { /** Retrieved resources. */ resources?: Resource[]; /** Paging metadata. */ pagingMetadata?: CursorPagingMetadata; } interface CountResourcesRequest { /** Filter to base the count on. See [Query Resources](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/query-resources) for a list of supported filters. */ filter?: Record | null; /** * Free text to match in searchable fields. Field is deprecated due to decision to use query instead of search for performing the count. * @deprecated Free text to match in searchable fields. Field is deprecated due to decision to use query instead of search for performing the count. * @targetRemovalDate 2024-05-01 */ search?: SearchDetails; } interface CountResourcesResponse { /** Total number of resources matching the filter. */ count?: number; } interface FixResourceSchedulesRequest { /** * ID of the resource to fix schedules for. * @format GUID */ resourceId?: string; /** Working hour schedule that must be set for this resource. */ workingHoursSchedule?: Schedule; } interface FixResourceSchedulesResponse { /** Updated resource. */ resource?: Resource; } interface ReindexTenantRequest { } interface ReindexTenantResponse { } 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 Empty { } 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 CreateResourceValidationErrors = { ruleName?: 'RESOURCE_LOCATION_ID_IS_REQUIRED'; } | { ruleName?: 'RESOURCE_SPECIFIC_LOCATION_OPTIONS_NOT_ALLOWED'; } | { ruleName?: 'RESOURCE_SPECIFIC_LOCATION_OPTIONS_MUST_BE_SET'; } | { ruleName?: 'RESOURCE_AVAILABLE_IN_BUSINESS_LOCATION_MUST_BE_TRUE'; }; /** @docsIgnore */ type BulkCreateResourcesValidationErrors = { ruleName?: 'RESOURCE_LOCATION_ID_IS_REQUIRED'; } | { ruleName?: 'RESOURCE_SPECIFIC_LOCATION_OPTIONS_NOT_ALLOWED'; } | { ruleName?: 'RESOURCE_SPECIFIC_LOCATION_OPTIONS_MUST_BE_SET'; } | { ruleName?: 'RESOURCE_AVAILABLE_IN_BUSINESS_LOCATION_MUST_BE_TRUE'; } | { ruleName?: 'RESOURCE_WORKING_HOURS_NOT_SUPPORTED_IN_BULK_REQUEST'; }; /** @docsIgnore */ type UpdateResourceValidationErrors = { ruleName?: 'RESOURCE_NAME_IS_REQUIRED'; } | { ruleName?: 'RESOURCE_LOCATION_ID_IS_REQUIRED'; } | { ruleName?: 'RESOURCE_SPECIFIC_LOCATION_OPTIONS_NOT_ALLOWED'; } | { ruleName?: 'RESOURCE_SPECIFIC_LOCATION_OPTIONS_MUST_BE_SET'; } | { ruleName?: 'RESOURCE_AVAILABLE_IN_BUSINESS_LOCATION_MUST_BE_TRUE'; } | { ruleName?: 'RESOURCE_WORKING_HOURS_SCHEDULE_ID_IS_REQUIRED'; } | { ruleName?: 'RESOURCE_WORKING_HOURS_SHARED_IS_REQUIRED'; }; /** @docsIgnore */ type BulkUpdateResourcesValidationErrors = { ruleName?: 'RESOURCE_NAME_IS_REQUIRED'; } | { ruleName?: 'RESOURCE_LOCATION_ID_IS_REQUIRED'; } | { ruleName?: 'RESOURCE_SPECIFIC_LOCATION_OPTIONS_NOT_ALLOWED'; } | { ruleName?: 'RESOURCE_SPECIFIC_LOCATION_OPTIONS_MUST_BE_SET'; } | { ruleName?: 'RESOURCE_AVAILABLE_IN_BUSINESS_LOCATION_MUST_BE_TRUE'; } | { ruleName?: 'RESOURCE_WORKING_HOURS_SCHEDULE_ID_IS_REQUIRED'; } | { ruleName?: 'RESOURCE_WORKING_HOURS_SHARED_IS_REQUIRED'; }; type __PublicMethodMetaInfo = { getUrl: (context: any) => string; httpMethod: K; path: string; pathParams: M; __requestType: T; __originalRequestType: S; __responseType: Q; __originalResponseType: R; }; declare function createResource(): __PublicMethodMetaInfo<'POST', {}, CreateResourceRequest$1, CreateResourceRequest, CreateResourceResponse$1, CreateResourceResponse>; declare function bulkCreateResources(): __PublicMethodMetaInfo<'POST', {}, BulkCreateResourcesRequest$1, BulkCreateResourcesRequest, BulkCreateResourcesResponse$1, BulkCreateResourcesResponse>; declare function getResource(): __PublicMethodMetaInfo<'GET', { resourceId: string; }, GetResourceRequest$1, GetResourceRequest, GetResourceResponse$1, GetResourceResponse>; declare function updateResource(): __PublicMethodMetaInfo<'PATCH', { resourceId: string; }, UpdateResourceRequest$1, UpdateResourceRequest, UpdateResourceResponse$1, UpdateResourceResponse>; declare function bulkUpdateResources(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateResourcesRequest$1, BulkUpdateResourcesRequest, BulkUpdateResourcesResponse$1, BulkUpdateResourcesResponse>; declare function deleteResource(): __PublicMethodMetaInfo<'DELETE', { resourceId: string; }, DeleteResourceRequest$1, DeleteResourceRequest, DeleteResourceResponse$1, DeleteResourceResponse>; declare function bulkDeleteResources(): __PublicMethodMetaInfo<'POST', {}, BulkDeleteResourcesRequest$1, BulkDeleteResourcesRequest, BulkDeleteResourcesResponse$1, BulkDeleteResourcesResponse>; declare function searchResources(): __PublicMethodMetaInfo<'POST', {}, SearchResourcesRequest$1, SearchResourcesRequest, SearchResourcesResponse$1, SearchResourcesResponse>; declare function queryResources(): __PublicMethodMetaInfo<'POST', {}, QueryResourcesRequest$1, QueryResourcesRequest, QueryResourcesResponse$1, QueryResourcesResponse>; declare function countResources(): __PublicMethodMetaInfo<'POST', {}, CountResourcesRequest$1, CountResourcesRequest, CountResourcesResponse$1, CountResourcesResponse>; export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AggregationData as AggregationDataOriginal, type AggregationKindOneOf as AggregationKindOneOfOriginal, type Aggregation as AggregationOriginal, type AggregationResults as AggregationResultsOriginal, type AggregationResultsResultOneOf as AggregationResultsResultOneOfOriginal, type AggregationResultsScalarResult as AggregationResultsScalarResultOriginal, AggregationType as AggregationTypeOriginal, type AggregationTypeWithLiterals as AggregationTypeWithLiteralsOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCreateResourcesRequest as BulkCreateResourcesRequestOriginal, type BulkCreateResourcesResponse as BulkCreateResourcesResponseOriginal, type BulkCreateResourcesValidationErrors as BulkCreateResourcesValidationErrorsOriginal, type BulkDeleteResourcesRequest as BulkDeleteResourcesRequestOriginal, type BulkDeleteResourcesResponse as BulkDeleteResourcesResponseOriginal, type BulkResourceResult as BulkResourceResultOriginal, type BulkUpdateResourcesRequest as BulkUpdateResourcesRequestOriginal, type BulkUpdateResourcesResponse as BulkUpdateResourcesResponseOriginal, type BulkUpdateResourcesValidationErrors as BulkUpdateResourcesValidationErrorsOriginal, type BusinessLocation as BusinessLocationOriginal, type CountResourcesRequest as CountResourcesRequestOriginal, type CountResourcesResponse as CountResourcesResponseOriginal, type CreateResourceRequest as CreateResourceRequestOriginal, type CreateResourceResponse as CreateResourceResponseOriginal, type CreateResourceValidationErrors as CreateResourceValidationErrorsOriginal, 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 DateHistogramAggregation as DateHistogramAggregationOriginal, type DateHistogramResult as DateHistogramResultOriginal, type DateHistogramResults as DateHistogramResultsOriginal, type DeleteResourceRequest as DeleteResourceRequestOriginal, type DeleteResourceResponse as DeleteResourceResponseOriginal, 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 EventsSchedule as EventsScheduleOriginal, type ExtendedFields as ExtendedFieldsOriginal, type FixResourceSchedulesRequest as FixResourceSchedulesRequestOriginal, type FixResourceSchedulesResponse as FixResourceSchedulesResponseOriginal, type GetDeletedResourceRequest as GetDeletedResourceRequestOriginal, type GetDeletedResourceResponse as GetDeletedResourceResponseOriginal, type GetResourceRequest as GetResourceRequestOriginal, type GetResourceResponse as GetResourceResponseOriginal, type GroupByAggregationKindOneOf as GroupByAggregationKindOneOfOriginal, type GroupByAggregation as GroupByAggregationOriginal, type GroupByValueResults as GroupByValueResultsOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type IncludeMissingValuesOptions as IncludeMissingValuesOptionsOriginal, Interval as IntervalOriginal, type IntervalWithLiterals as IntervalWithLiteralsOriginal, type ItemMetadata as ItemMetadataOriginal, type ListDeletedResourcesRequest as ListDeletedResourcesRequestOriginal, type ListDeletedResourcesResponse as ListDeletedResourcesResponseOriginal, type LocationOptions as LocationOptionsOriginal, ManagementType as ManagementTypeOriginal, type ManagementTypeWithLiterals as ManagementTypeWithLiteralsOriginal, type MaskedResource as MaskedResourceOriginal, type MessageEnvelope as MessageEnvelopeOriginal, MissingValues as MissingValuesOriginal, type MissingValuesWithLiterals as MissingValuesWithLiteralsOriginal, Mode as ModeOriginal, type ModeWithLiterals as ModeWithLiteralsOriginal, type NestedAggregationItemKindOneOf as NestedAggregationItemKindOneOfOriginal, type NestedAggregationItem as NestedAggregationItemOriginal, type NestedAggregation as NestedAggregationOriginal, type NestedAggregationResults as NestedAggregationResultsOriginal, type NestedAggregationResultsResultOneOf as NestedAggregationResultsResultOneOfOriginal, NestedAggregationType as NestedAggregationTypeOriginal, type NestedAggregationTypeWithLiterals as NestedAggregationTypeWithLiteralsOriginal, type NestedResultValue as NestedResultValueOriginal, type NestedResultValueResultOneOf as NestedResultValueResultOneOfOriginal, type NestedResults as NestedResultsOriginal, type NestedValueAggregationResult as NestedValueAggregationResultOriginal, type QueryResourcesRequest as QueryResourcesRequestOriginal, type QueryResourcesResponse as QueryResourcesResponseOriginal, type RangeAggregation as RangeAggregationOriginal, type RangeAggregationResult as RangeAggregationResultOriginal, type RangeBucket as RangeBucketOriginal, type RangeResult as RangeResultOriginal, type RangeResults as RangeResultsOriginal, type ReindexTenantRequest as ReindexTenantRequestOriginal, type ReindexTenantResponse as ReindexTenantResponseOriginal, type RemoveResourceFromTrashBinRequest as RemoveResourceFromTrashBinRequestOriginal, type RemoveResourceFromTrashBinResponse as RemoveResourceFromTrashBinResponseOriginal, type ResourceCompositionDetailsOneOf as ResourceCompositionDetailsOneOfOriginal, type Resource as ResourceOriginal, type RestoreInfo as RestoreInfoOriginal, type RestoreResourceFromTrashBinRequest as RestoreResourceFromTrashBinRequestOriginal, type RestoreResourceFromTrashBinResponse as RestoreResourceFromTrashBinResponseOriginal, type Results as ResultsOriginal, type ScalarAggregation as ScalarAggregationOriginal, type ScalarResult as ScalarResultOriginal, ScalarType as ScalarTypeOriginal, type ScalarTypeWithLiterals as ScalarTypeWithLiteralsOriginal, type Schedule as ScheduleOriginal, type SearchDetails as SearchDetailsOriginal, type SearchResourcesRequest as SearchResourcesRequestOriginal, type SearchResourcesResponse as SearchResourcesResponseOriginal, type SingleResource as SingleResourceOriginal, SortDirection as SortDirectionOriginal, type SortDirectionWithLiterals as SortDirectionWithLiteralsOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, SortType as SortTypeOriginal, type SortTypeWithLiterals as SortTypeWithLiteralsOriginal, type Sorting as SortingOriginal, type SpecificLocation as SpecificLocationOriginal, type UpdateResourceRequest as UpdateResourceRequestOriginal, type UpdateResourceResponse as UpdateResourceResponseOriginal, type UpdateResourceValidationErrors as UpdateResourceValidationErrorsOriginal, type V2WorkingHoursSchedules as V2WorkingHoursSchedulesOriginal, type ValueAggregationOptionsOneOf as ValueAggregationOptionsOneOfOriginal, type ValueAggregation as ValueAggregationOriginal, type ValueAggregationResult as ValueAggregationResultOriginal, type ValueResult as ValueResultOriginal, type ValueResults as ValueResultsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type WorkingHoursSchedule as WorkingHoursScheduleOriginal, type WorkingHoursSchedules as WorkingHoursSchedulesOriginal, type __PublicMethodMetaInfo, bulkCreateResources, bulkDeleteResources, bulkUpdateResources, countResources, createResource, deleteResource, getResource, queryResources, searchResources, updateResource };