/** A resource type is a classification of resources, e.g. room, equipment or vehicle. */ export interface ResourceType { /** * Resource type ID. * @readonly */ _id?: string | null; /** * Revision number, which increments by 1 each time the resource type is updated. * To prevent conflicting changes, * the current revision must be passed when updating the resource type. * @readonly */ revision?: string | null; /** * Represents the time in `YYYY-MM-DDThh:mm:ss.sssZ` format this resource type was created. * @readonly */ _createdDate?: Date | null; /** * Represents the time in `YYYY-MM-DDThh:mm:ss.sssZ` format this resource type was last updated. * @readonly */ _updatedDate?: Date | null; /** The name of this resource type, for example `meeting room`. The name must be unique per site. */ name?: string | null; /** Extensions enabling users to save custom data related to the resource type. */ extendedFields?: ExtendedFields; } export interface ResourceCounts { /** * The number of resources that have this type. * @readonly */ total?: number | null; /** * Whether a resource of this type exists that is available in all locations * @readonly */ hasResourcesInAllLocations?: boolean | null; /** * Whether a resource of this type exists that is available in any customer location. * @readonly */ hasResourcesInCustomerLocations?: boolean | null; /** * Whether a resource of this type exists that is available in any custom location. * @readonly */ hasResourcesInCustomLocations?: boolean | null; /** * Number of distinct business locations of resources with this type. * @readonly */ distinctBusinessLocationsCount?: number | null; /** * Distinct business location ids of resources with this type. Only first 50 are returned. * @readonly */ distinctLocationIds?: DistinctLocationIds; } export interface DistinctLocationIds { /** Locations ids of business locations. */ values?: string[]; } export 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>; } export interface CreateResourceTypeRequest { /** Resource type to be created. */ resourceType: ResourceType; } export interface LocationOptions { /** * `true` if the resource is available in all locations, `false` if the resource is available only in specific locations. * Default: `false` */ availableInAllLocations?: boolean | null; /** * Details of specific locations. It must be left empty if `availableInAllLocations` is `true`. * If supplied then the field `specificLocationOptions.availableInBusinessLocations` must be set to `true`. */ specificLocationOptions?: SpecificLocation; } export interface SpecificLocation { /** * `true` if the resource is available in some business locations, `false` otherwise. * * Default: `false` */ availableInBusinessLocations?: boolean | null; /** * Information about business locations. Should be empty if `availableInBusinessLocations` is `false` or if no business location exists in Locations. * Read more about business locations in this [article](https://dev.wix.com/docs/rest/business-management/locations/introduction). */ businessLocations?: BusinessLocation[]; } export interface BusinessLocation { /** The ID of the business location. Must not be empty. */ locationId?: string | null; } export declare enum RequestedFields { TOTAL_RESOURCE_COUNT = "TOTAL_RESOURCE_COUNT", SPECIFIC_LOCATION_TYPE_RESOURCE_COUNTS = "SPECIFIC_LOCATION_TYPE_RESOURCE_COUNTS", DISTINCT_RESOURCE_LOCATIONS = "DISTINCT_RESOURCE_LOCATIONS" } export interface CreateResourceTypeResponse { /** The created resource type. */ resourceType?: ResourceType; } export declare enum CreateResourceTypeErrors { UNKNOWN_CREATE_RESOURCE_TYPE_ERROR = "UNKNOWN_CREATE_RESOURCE_TYPE_ERROR", /** Failed to create requested `quantity` of resources for the resource type */ FAILED_TO_CREATE_RESOURCES = "FAILED_TO_CREATE_RESOURCES" } export interface GetResourceTypeRequest { /** ID of the resource type to retrieve. */ resourceTypeId: string; } export interface GetResourceTypeResponse { /** The requested resource type. */ resourceType?: ResourceType; } export interface UpdateResourceTypeRequest { /** Resource type to update. */ resourceType: ResourceType; } export interface UpdateResourceTypeResponse { /** Updated resource type. */ resourceType?: ResourceType; } export interface DeleteResourceTypeRequest { /** ID of the resource type to delete. */ resourceTypeId: string; } export interface DeleteResourceTypeResponse { } export interface QueryResourceTypesRequest { /** WQL expression. */ query?: CursorQuery; } export 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"}]` */ sort?: Sorting[]; } /** @oneof */ export 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; } export interface Sorting { /** Name of the field to sort by. */ fieldName?: string; /** Sort order. */ order?: SortOrder; } export declare enum SortOrder { ASC = "ASC", DESC = "DESC" } export interface CursorPaging { /** Number of items to load. */ 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. */ cursor?: string | null; } export interface QueryResourceTypesResponse { /** The retrieved resource types. */ resourceTypes?: ResourceType[]; /** Paging metadata, including offset and count. */ pagingMetadata?: CursorPagingMetadata; } export interface CursorPagingMetadata { /** Number of items returned in the response. */ count?: number | null; /** Offset that was requested. */ cursors?: Cursors; /** * Indicates if there are more results after the current page. * If `true`, another page of results can be retrieved. * If `false`, this is the last page. */ hasNext?: boolean | null; } export interface Cursors { /** Cursor pointing to next page in the list of results. */ next?: string | null; /** Cursor pointing to previous page in the list of results. */ prev?: string | null; } export interface CountResourceTypesRequest { /** Filter to apply on resource types to count. */ filter?: Record | null; } export interface CountResourceTypesResponse { /** The number of resource types matching the given filter. */ count?: number; } export interface DomainEvent extends DomainEventBodyOneOf { createdEvent?: EntityCreatedEvent; updatedEvent?: EntityUpdatedEvent; deletedEvent?: EntityDeletedEvent; actionEvent?: ActionEvent; /** * Unique event ID. * Allows clients to ignore duplicate webhooks. */ _id?: string; /** * Assumes actions are also always typed to an entity_type * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction */ entityFqdn?: string; /** * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug) * This is although the created/updated/deleted notion is duplication of the oneof types * 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 defining the order of updates to the underlying entity. * For example, given that some entity was updated at 16:00 and than again at 16:01, * it is guaranteed that the sequence number of the second update is strictly higher than the first. * As the consumer, you can use this value to ensure that you handle messages in the correct order. * To do so, you will need to persist this number on your end, and compare the sequence number from the * message against the one you have stored. Given that the stored number is higher, you should ignore the message. */ entityEventSequence?: string | null; } /** @oneof */ export interface DomainEventBodyOneOf { createdEvent?: EntityCreatedEvent; updatedEvent?: EntityUpdatedEvent; deletedEvent?: EntityDeletedEvent; actionEvent?: ActionEvent; } export interface EntityCreatedEvent { entity?: string; } export interface RestoreInfo { deletedDate?: Date | null; } export 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. */ currentEntity?: string; } export interface EntityDeletedEvent { /** Entity that was deleted */ deletedEntity?: string | null; } export interface ActionEvent { body?: string; } export interface MessageEnvelope { /** App instance ID. */ instanceId?: string | null; /** Event type. */ eventType?: string; /** The identification type and identity data. */ identity?: IdentificationData; /** Stringify payload. */ data?: string; } export interface IdentificationData extends IdentificationDataIdOneOf { /** ID of a site visitor that has not logged in to the site. */ anonymousVisitorId?: string; /** ID of a site visitor that has logged in to the site. */ memberId?: string; /** ID of a Wix user (site owner, contributor, etc.). */ wixUserId?: string; /** ID of an app. */ appId?: string; /** @readonly */ identityType?: WebhookIdentityType; } /** @oneof */ export interface IdentificationDataIdOneOf { /** ID of a site visitor that has not logged in to the site. */ anonymousVisitorId?: string; /** ID of a site visitor that has logged in to the site. */ memberId?: string; /** ID of a Wix user (site owner, contributor, etc.). */ wixUserId?: string; /** ID of an app. */ appId?: string; } export declare enum WebhookIdentityType { UNKNOWN = "UNKNOWN", ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR", MEMBER = "MEMBER", WIX_USER = "WIX_USER", APP = "APP" } interface DistinctLocationIdsNonNullableFields { values: string[]; } interface ResourceCountsNonNullableFields { distinctLocationIds?: DistinctLocationIdsNonNullableFields; } export interface ResourceTypeNonNullableFields { resourceCounts?: ResourceCountsNonNullableFields; } export interface CreateResourceTypeResponseNonNullableFields { resourceType?: ResourceTypeNonNullableFields; partialErrors: CreateResourceTypeErrors[]; } export interface GetResourceTypeResponseNonNullableFields { resourceType?: ResourceTypeNonNullableFields; } export interface UpdateResourceTypeResponseNonNullableFields { resourceType?: ResourceTypeNonNullableFields; } export interface QueryResourceTypesResponseNonNullableFields { resourceTypes: ResourceTypeNonNullableFields[]; } export interface CountResourceTypesResponseNonNullableFields { count: number; } export interface BaseEventMetadata { /** App instance ID. */ instanceId?: string | null; /** Event type. */ eventType?: string; /** The identification type and identity data. */ identity?: IdentificationData; } export interface EventMetadata extends BaseEventMetadata { /** * Unique event ID. * Allows clients to ignore duplicate webhooks. */ _id?: string; /** * Assumes actions are also always typed to an entity_type * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction */ entityFqdn?: string; /** * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug) * This is although the created/updated/deleted notion is duplication of the oneof types * 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 defining the order of updates to the underlying entity. * For example, given that some entity was updated at 16:00 and than again at 16:01, * it is guaranteed that the sequence number of the second update is strictly higher than the first. * As the consumer, you can use this value to ensure that you handle messages in the correct order. * To do so, you will need to persist this number on your end, and compare the sequence number from the * message against the one you have stored. Given that the stored number is higher, you should ignore the message. */ entityEventSequence?: string | null; } export interface ResourceTypeCreatedEnvelope { entity: ResourceType; metadata: EventMetadata; } /** * Triggered when a resource type is created. * @webhook * @eventType wix.bookings.resources.v2.resource_type_created * @documentationMaturity preview */ export declare function onResourceTypeCreated(handler: (event: ResourceTypeCreatedEnvelope) => void | Promise): void; export interface ResourceTypeDeletedEnvelope { metadata: EventMetadata; } /** * Triggered when a resource type is deleted. * @webhook * @eventType wix.bookings.resources.v2.resource_type_deleted * @documentationMaturity preview */ export declare function onResourceTypeDeleted(handler: (event: ResourceTypeDeletedEnvelope) => void | Promise): void; export interface ResourceTypeUpdatedEnvelope { entity: ResourceType; metadata: EventMetadata; } /** * Triggered when a resource type is updated. * @webhook * @eventType wix.bookings.resources.v2.resource_type_updated * @documentationMaturity preview */ export declare function onResourceTypeUpdated(handler: (event: ResourceTypeUpdatedEnvelope) => void | Promise): void; /** * Creates a new resource type. * @param resourceType - Resource type to be created. * @public * @documentationMaturity preview * @requiredField resourceType * @requiredField resourceType.name * @permissionId BOOKINGS.RESOURCE_TYPE_CREATE * @permissionScope Manage Bookings * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS * @permissionScope Manage Bookings - all permissions * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS * @applicableIdentity APP * @returns The created resource type. * @fqn wix.bookings.resources.v2.resourcetypes.ResourceTypesService.CreateResourceType */ export declare function createResourceType(resourceType: ResourceType): Promise; /** * Retrieves a resource type by ID. * @param resourceTypeId - ID of the resource type to retrieve. * @public * @documentationMaturity preview * @requiredField resourceTypeId * @permissionId BOOKINGS.RESOURCE_TYPE_READ * @permissionId BOOKINGS.RESOURCES_READ * @permissionScope Read Bookings - Public Data * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC * @permissionScope Manage Bookings * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS * @permissionScope Read Bookings - Including Participants * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE * @permissionScope Read Bookings - all read permissions * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS * @permissionScope Manage Bookings - all permissions * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS * @permissionScope Read Bookings - Public Data * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC * @permissionScope Manage Bookings Services and Settings * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION * @permissionScope Manage Bookings * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS * @permissionScope Read Bookings - Including Participants * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE * @permissionScope Read Bookings - all read permissions * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS * @permissionScope Manage Bookings - all permissions * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS * @permissionScope Read bookings calendar - including participants * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS * @permissionScope Read Bookings Calendar * @permissionScopeId SCOPE.DC-BOOKINGS.SESSIONS-RESOURCES * @applicableIdentity APP * @applicableIdentity VISITOR * @returns The requested resource type. * @fqn wix.bookings.resources.v2.resourcetypes.ResourceTypesService.GetResourceType */ export declare function getResourceType(resourceTypeId: string): Promise; /** * Updates a resource type. * * Each time the resource type is updated, `revision` increments by 1. You must include current revision of the resource type when updating it. * This ensures you're working with the latest service information and prevents unintended overwrites. * @param _id - Resource type ID. * @public * @documentationMaturity preview * @requiredField _id * @requiredField resourceType * @requiredField resourceType.revision * @permissionId BOOKINGS.RESOURCE_TYPE_UPDATE * @permissionScope Manage Bookings * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS * @permissionScope Manage Bookings - all permissions * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS * @applicableIdentity APP * @returns Updated resource type. * @fqn wix.bookings.resources.v2.resourcetypes.ResourceTypesService.UpdateResourceType */ export declare function updateResourceType(_id: string | null, resourceType: UpdateResourceType): Promise; export interface UpdateResourceType { /** * Resource type ID. * @readonly */ _id?: string | null; /** * Revision number, which increments by 1 each time the resource type is updated. * To prevent conflicting changes, * the current revision must be passed when updating the resource type. * @readonly */ revision?: string | null; /** * Represents the time in `YYYY-MM-DDThh:mm:ss.sssZ` format this resource type was created. * @readonly */ _createdDate?: Date | null; /** * Represents the time in `YYYY-MM-DDThh:mm:ss.sssZ` format this resource type was last updated. * @readonly */ _updatedDate?: Date | null; /** The name of this resource type, for example `meeting room`. The name must be unique per site. */ name?: string | null; /** Extensions enabling users to save custom data related to the resource type. */ extendedFields?: ExtendedFields; } /** * Deletes a resource type. * * Deleting a resource type will automatically delete all resources of this type. * @param resourceTypeId - ID of the resource type to delete. * @public * @documentationMaturity preview * @requiredField resourceTypeId * @permissionId BOOKINGS.RESOURCE_TYPE_DELETE * @permissionScope Manage Bookings * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS * @permissionScope Manage Bookings - all permissions * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS * @applicableIdentity APP * @fqn wix.bookings.resources.v2.resourcetypes.ResourceTypesService.DeleteResourceType */ export declare function deleteResourceType(resourceTypeId: string): Promise; /** * Creates a query to retrieve a list of resource types. * * The `queryResourceTypes()` function builds a query to retrieve a list of resource types and returns a `ResourceTypesQueryBuilder` object. * * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/resource-types-query-builder/find) function. * * You can refine the query by chaining `ResourceTypesQueryBuilder` functions onto the query. `ResourceTypesQueryBuilder` functions enable you to sort, filter, and control the results that `queryResourceTypes()` returns. * * `queryResourceTypes()` runs with the following `ResourceTypesQueryBuilder` default that you can override: * * + `limit` is `50`. * + Sorted by `id` in ascending order. * * The functions that are chained to `queryResourceTypes()` are applied in the order they are called. * * The following `ResourceTypesQueryBuilder` functions are supported for the `queryResourceTypes()` function. For a full description of the resource object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/resource-types-query-result/items) property in `ResourceTypesQueryResult`. * @public * @documentationMaturity preview * @permissionScope Read Bookings - Public Data * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC * @permissionScope Manage Bookings * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS * @permissionScope Read Bookings - Including Participants * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE * @permissionScope Read Bookings - all read permissions * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS * @permissionScope Manage Bookings - all permissions * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS * @permissionId BOOKINGS.RESOURCE_TYPE_READ * @applicableIdentity APP * @applicableIdentity VISITOR * @fqn wix.bookings.resources.v2.resourcetypes.ResourceTypesService.QueryResourceTypes */ export declare function queryResourceTypes(options?: QueryResourceTypesOptions): ResourceTypesQueryBuilder; export interface QueryResourceTypesOptions { } interface QueryCursorResult { cursors: Cursors; hasNext: () => boolean; hasPrev: () => boolean; length: number; pageSize: number; } export interface ResourceTypesQueryResult extends QueryCursorResult { items: ResourceType[]; query: ResourceTypesQueryBuilder; next: () => Promise; prev: () => Promise; } export interface ResourceTypesQueryBuilder { /** @param propertyName - Property whose value is compared with `value`. * @param value - Value to compare against. * @documentationMaturity preview */ eq: (propertyName: 'name', value: any) => ResourceTypesQueryBuilder; /** @param propertyName - Property whose value is compared with `value`. * @param value - Value to compare against. * @documentationMaturity preview */ ne: (propertyName: 'name', value: any) => ResourceTypesQueryBuilder; /** @param propertyName - Property whose value is compared with `string`. * @param string - String to compare against. Case-insensitive. * @documentationMaturity preview */ startsWith: (propertyName: 'name', value: string) => ResourceTypesQueryBuilder; /** @param propertyName - Property whose value is compared with `values`. * @param values - List of values to compare against. * @documentationMaturity preview */ hasSome: (propertyName: 'name', value: any[]) => ResourceTypesQueryBuilder; /** @documentationMaturity preview */ in: (propertyName: 'name', value: any) => ResourceTypesQueryBuilder; /** @documentationMaturity preview */ exists: (propertyName: 'name', value: boolean) => ResourceTypesQueryBuilder; /** @param limit - Number of items to return, which is also the `pageSize` of the results object. * @documentationMaturity preview */ limit: (limit: number) => ResourceTypesQueryBuilder; /** @param cursor - A pointer to specific record * @documentationMaturity preview */ skipTo: (cursor: string) => ResourceTypesQueryBuilder; /** @documentationMaturity preview */ find: () => Promise; } /** * Counts resource types according to given criteria. * * For field support for filters, see [Resource types: Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-type-v2/filtering-and-sorting). * Use [WQL filter](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section) to define the criteria. * @public * @documentationMaturity preview * @param options - Filter to base the count on. See * [queryResourceTypes()](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/query-resource-types) * for supported filters. * @permissionId BOOKINGS.RESOURCE_TYPE_READ * @permissionScope Read Bookings - Public Data * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC * @permissionScope Manage Bookings * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS * @permissionScope Read Bookings - Including Participants * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE * @permissionScope Read Bookings - all read permissions * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS * @permissionScope Manage Bookings - all permissions * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS * @applicableIdentity APP * @applicableIdentity VISITOR * @fqn wix.bookings.resources.v2.resourcetypes.ResourceTypesService.CountResourceTypes */ export declare function countResourceTypes(options?: CountResourceTypesOptions): Promise; export interface CountResourceTypesOptions { /** Filter to apply on resource types to count. */ filter?: Record | null; } export {};