@wix/auto_sdk_bookings_resources 1.0.29 → 1.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { z as CreateResourceRequest$1, D as CreateResourceResponse$1, F as BulkCreateResourcesRequest$1, a as BulkCreateResourcesResponse$1, O as GetResourceRequest$1, P as GetResourceResponse$1, a4 as UpdateResourceRequest$1, a5 as UpdateResourceResponse$1, a6 as BulkUpdateResourcesRequest$1, c as BulkUpdateResourcesResponse$1, a7 as DeleteResourceRequest$1, a8 as DeleteResourceResponse$1, a9 as BulkDeleteResourcesRequest$1, d as BulkDeleteResourcesResponse$1, aa as SearchResourcesRequest$1, S as SearchResourcesResponse$1, aO as QueryResourcesRequest$1, aR as QueryResourcesResponse$1, aS as CountResourcesRequest$1, g as CountResourcesResponse$1 } from './bookings-resources-v2-resource-resources.universal-RnzqwcCV.mjs';
1
+ import { D as CreateResourceRequest$1, F as CreateResourceResponse$1, G as BulkCreateResourcesRequest$1, b as BulkCreateResourcesResponse$1, P as GetResourceRequest$1, Q as GetResourceResponse$1, a5 as UpdateResourceRequest$1, a6 as UpdateResourceResponse$1, a7 as BulkUpdateResourcesRequest$1, d as BulkUpdateResourcesResponse$1, a8 as DeleteResourceRequest$1, a9 as DeleteResourceResponse$1, aa as BulkDeleteResourcesRequest$1, e as BulkDeleteResourcesResponse$1, ab as SearchResourcesRequest$1, S as SearchResourcesResponse$1, aP as QueryResourcesRequest$1, aS as QueryResourcesResponse$1, aT as CountResourcesRequest$1, h as CountResourcesResponse$1 } from './bookings-resources-v2-resource-resources.universal-_0qC4n2d.mjs';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  /**
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/bookings-resources-v2-resource-resources.http.ts","../../src/bookings-resources-v2-resource-resources.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixBookingsResourcesV2ResourcesServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/bookings/v2/resources',\n destPath: '/v2/resources',\n },\n {\n srcPath: '/_api/bookings/v2/resources',\n destPath: '/v2/resources',\n },\n {\n srcPath: '/v2/bulk/resources',\n destPath: '/v2/bulk/resources',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/resources-2',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/bookings/v2/resources',\n destPath: '/v2/resources',\n },\n {\n srcPath: '/bookings/v2/bulk/resources',\n destPath: '/v2/bulk/resources',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/resources-2',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_bookings_resources';\n\n/**\n * Creates a new resource.\n *\n *\n * ## Connected schedules\n *\n * A new event *schedule*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/wix-bookings-integration) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/wix-bookings-integration))\n * is automatically created for the resource.\n *\n * ## Locations\n *\n * If you don't specify `locationOptions`, Wix Bookings automatically sets\n * `locationOptions.availableInAllLocations` to `true`.\n *\n * If you specify 1 business location ID in `locationOptions.specificLocationOptions.businessLocations`,\n * you must specify `locationOptions.specificLocationOptions.availableInBusinessLocations`\n * as `true`. Currently, you can specify only a single business location.\n */\nexport function createResource(payload: object): RequestOptionsFactory<any> {\n function __createResource({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'resource.createdDate' },\n { path: 'resource.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'POST' as any,\n methodFqn: 'wix.bookings.resources.v2.ResourcesService.CreateResource',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/resources',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'resource.createdDate' },\n { path: 'resource.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createResource;\n}\n\n/**\n * Creates up to 50 resources.\n *\n *\n * Refer to *Create Resource*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/create-resource) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/create-resource))\n * for more details.\n */\nexport function bulkCreateResources(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkCreateResources({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'resources.createdDate' },\n { path: 'resources.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'POST' as any,\n methodFqn:\n 'wix.bookings.resources.v2.ResourcesService.BulkCreateResources',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/bulk/resources/create',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateResources;\n}\n\n/** Retrieves a resource. */\nexport function getResource(payload: object): RequestOptionsFactory<any> {\n function __getResource({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'GET' as any,\n methodFqn: 'wix.bookings.resources.v2.ResourcesService.GetResource',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/resources/{resourceId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'resource.createdDate' },\n { path: 'resource.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getResource;\n}\n\n/**\n * Updates a resource.\n *\n *\n * Each time the resource is updated, `revision` increments by 1. You must include the current revision of the resource when updating it.\n * This ensures you're working with the latest service information and prevents unintended overwrites.\n */\nexport function updateResource(payload: object): RequestOptionsFactory<any> {\n function __updateResource({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'mask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'resource.createdDate' },\n { path: 'resource.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'PATCH' as any,\n methodFqn: 'wix.bookings.resources.v2.ResourcesService.UpdateResource',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/resources/{resource.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'resource.createdDate' },\n { path: 'resource.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateResource;\n}\n\n/**\n * Updates multiple resources.\n *\n *\n * Each time the resource is updated, `revision` increments by 1. You must include the current revision of the resource when updating it.\n * This ensures you're working with the latest service information and prevents unintended overwrites.\n */\nexport function bulkUpdateResources(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateResources({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'resources.fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'resources.resource.createdDate' },\n { path: 'resources.resource.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'POST' as any,\n methodFqn:\n 'wix.bookings.resources.v2.ResourcesService.BulkUpdateResources',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/bulk/resources/update',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkUpdateResources;\n}\n\n/**\n * Deletes a resource.\n *\n *\n * Deleting a resource cancels its event schedule and all its working hour\n * schedules that aren't shared with another resource. Learn more about\n * _how Bookings uses the Calendar APIs_\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/wix-bookings-integration) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/wix-bookings-integration)).\n */\nexport function deleteResource(payload: object): RequestOptionsFactory<any> {\n function __deleteResource({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'DELETE' as any,\n methodFqn: 'wix.bookings.resources.v2.ResourcesService.DeleteResource',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/resources/{resourceId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteResource;\n}\n\n/**\n * Deletes multiple resources.\n *\n *\n * Refer to *Delete Resource*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/delete-resource) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/delete-resource))\n * for more details.\n */\nexport function bulkDeleteResources(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkDeleteResources({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'POST' as any,\n methodFqn:\n 'wix.bookings.resources.v2.ResourcesService.BulkDeleteResources',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/bulk/resources/delete',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkDeleteResources;\n}\n\n/**\n * Retrieves a list of resources matching the provided search criteria.\n *\n *\n * Refer to the supported filters article ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting)) for complete filter and sorting options.\n */\nexport function searchResources(payload: object): RequestOptionsFactory<any> {\n function __searchResources({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'search.aggregations.range.buckets.from' },\n { path: 'search.aggregations.range.buckets.to' },\n {\n path: 'search.aggregations.nested.nestedAggregations.range.buckets.from',\n },\n {\n path: 'search.aggregations.nested.nestedAggregations.range.buckets.to',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'POST' as any,\n methodFqn: 'wix.bookings.resources.v2.ResourcesService.SearchResources',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/resources/search',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'resources.createdDate' },\n { path: 'resources.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'aggregationData.results.ranges.results.from' },\n { path: 'aggregationData.results.ranges.results.to' },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from',\n },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.range.from',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.range.to',\n },\n { path: 'aggregationData.results.scalar.value' },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.scalar.value',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.scalar.value',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __searchResources;\n}\n\n/**\n * Creates a query to retrieve a list of resources.\n *\n * The `queryResources()` function builds a query to retrieve a list of resources and returns a `ResourcesQueryBuilder` object.\n *\n * 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/resources/resources-query-builder/find) function.\n *\n * You can refine the query by chaining `ResourcesQueryBuilder` functions onto the query. `ResourcesQueryBuilder` functions enable you to sort, filter, and control the results that `queryResources()` returns.\n *\n * `queryResources()` runs with the following `ResourcesQueryBuilder` default that you can override:\n *\n * + `limit` is `50`.\n * + Sorted by `id` in ascending order.\n *\n * The functions that are chained to `queryResources()` are applied in the order they are called. For example, if you apply `ascending(\"typeId\")` and then `ascending(\"name\")`, the results are sorted first by the `\"typeId\"`, and then, if there are multiple results with the same `\"typeId\"`, the items are sorted by `\"name\"`.\n *\n * The following `ResourcesQueryBuilder` functions are supported for the `queryResources()` 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/resources/resources-query-result/items) property in `ResourcesQueryResult`.\n */\nexport function queryResources(payload: object): RequestOptionsFactory<any> {\n function __queryResources({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'POST' as any,\n methodFqn: 'wix.bookings.resources.v2.ResourcesService.QueryResources',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/resources/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'resources.createdDate' },\n { path: 'resources.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryResources;\n}\n\n/**\n * Counts resources according to given criteria.\n *\n *\n * Refer to the *supported filters article*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting))\n * for a complete list of supported filters and sorting options.\n */\nexport function countResources(payload: object): RequestOptionsFactory<any> {\n function __countResources({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'POST' as any,\n methodFqn: 'wix.bookings.resources.v2.ResourcesService.CountResources',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/resources/count',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __countResources;\n}\n","import * as ambassadorWixBookingsResourcesV2Resource from './bookings-resources-v2-resource-resources.http.js';\nimport * as ambassadorWixBookingsResourcesV2ResourceTypes from './bookings-resources-v2-resource-resources.types.js';\nimport * as ambassadorWixBookingsResourcesV2ResourceUniversalTypes from './bookings-resources-v2-resource-resources.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createResource(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.CreateResourceRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.CreateResourceRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.CreateResourceResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.CreateResourceResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.createResource(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/resources',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkCreateResources(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.BulkCreateResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.BulkCreateResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.BulkCreateResourcesResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.BulkCreateResourcesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.bulkCreateResources(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/bulk/resources/create',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getResource(): __PublicMethodMetaInfo<\n 'GET',\n { resourceId: string },\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.GetResourceRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.GetResourceRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.GetResourceResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.GetResourceResponse\n> {\n const payload = { resourceId: ':resourceId' } as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.getResource(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/resources/{resourceId}',\n pathParams: { resourceId: 'resourceId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateResource(): __PublicMethodMetaInfo<\n 'PATCH',\n { resourceId: string },\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.UpdateResourceRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.UpdateResourceRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.UpdateResourceResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.UpdateResourceResponse\n> {\n const payload = { resource: { id: ':resourceId' } } as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.updateResource(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v2/resources/{resource.id}',\n pathParams: { resourceId: 'resourceId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdateResources(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.BulkUpdateResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.BulkUpdateResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.BulkUpdateResourcesResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.BulkUpdateResourcesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.bulkUpdateResources(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/bulk/resources/update',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteResource(): __PublicMethodMetaInfo<\n 'DELETE',\n { resourceId: string },\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.DeleteResourceRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.DeleteResourceRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.DeleteResourceResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.DeleteResourceResponse\n> {\n const payload = { resourceId: ':resourceId' } as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.deleteResource(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v2/resources/{resourceId}',\n pathParams: { resourceId: 'resourceId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkDeleteResources(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.BulkDeleteResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.BulkDeleteResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.BulkDeleteResourcesResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.BulkDeleteResourcesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.bulkDeleteResources(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/bulk/resources/delete',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function searchResources(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.SearchResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.SearchResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.SearchResourcesResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.SearchResourcesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.searchResources(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/resources/search',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryResources(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.QueryResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.QueryResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.QueryResourcesResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.QueryResourcesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.queryResources(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/resources/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function countResources(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.CountResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.CountResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.CountResourcesResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.CountResourcesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.countResources(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/resources/count',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,iDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,I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A,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","createResource","bulkCreateResources","getResource","updateResource","bulkUpdateResources","deleteResource","bulkDeleteResources","searchResources","queryResources","countResources"]}
1
+ {"version":3,"sources":["../../src/bookings-resources-v2-resource-resources.http.ts","../../src/bookings-resources-v2-resource-resources.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixBookingsResourcesV2ResourcesServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/bookings/v2/resources',\n destPath: '/v2/resources',\n },\n {\n srcPath: '/_api/bookings/v2/resources',\n destPath: '/v2/resources',\n },\n {\n srcPath: '/v2/bulk/resources',\n destPath: '/v2/bulk/resources',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/resources-2',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/bookings/v2/resources',\n destPath: '/v2/resources',\n },\n {\n srcPath: '/bookings/v2/bulk/resources',\n destPath: '/v2/bulk/resources',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/resources-2',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_bookings_resources';\n\n/**\n * Creates a new resource.\n *\n *\n * ## Connected schedules\n *\n * A new event *schedule*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/wix-bookings-integration) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/wix-bookings-integration))\n * is automatically created for the resource.\n *\n * ## Locations\n *\n * If you don't specify `locationOptions`, Wix Bookings automatically sets\n * `locationOptions.availableInAllLocations` to `true`.\n *\n * If you specify 1 business location ID in `locationOptions.specificLocationOptions.businessLocations`,\n * you must specify `locationOptions.specificLocationOptions.availableInBusinessLocations`\n * as `true`. Currently, you can specify only a single business location.\n */\nexport function createResource(payload: object): RequestOptionsFactory<any> {\n function __createResource({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'resource.createdDate' },\n { path: 'resource.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'POST' as any,\n methodFqn: 'wix.bookings.resources.v2.ResourcesService.CreateResource',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/resources',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'resource.createdDate' },\n { path: 'resource.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createResource;\n}\n\n/**\n * Creates up to 50 resources.\n *\n *\n * Refer to *Create Resource*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/create-resource) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/create-resource))\n * for more details.\n */\nexport function bulkCreateResources(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkCreateResources({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'resources.createdDate' },\n { path: 'resources.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'POST' as any,\n methodFqn:\n 'wix.bookings.resources.v2.ResourcesService.BulkCreateResources',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/bulk/resources/create',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateResources;\n}\n\n/** Retrieves a resource. */\nexport function getResource(payload: object): RequestOptionsFactory<any> {\n function __getResource({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'GET' as any,\n methodFqn: 'wix.bookings.resources.v2.ResourcesService.GetResource',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/resources/{resourceId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'resource.createdDate' },\n { path: 'resource.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getResource;\n}\n\n/**\n * Updates a resource.\n *\n *\n * Each time the resource is updated, `revision` increments by 1. You must include the current revision of the resource when updating it.\n * This ensures you're working with the latest service information and prevents unintended overwrites.\n */\nexport function updateResource(payload: object): RequestOptionsFactory<any> {\n function __updateResource({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'mask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'resource.createdDate' },\n { path: 'resource.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'PATCH' as any,\n methodFqn: 'wix.bookings.resources.v2.ResourcesService.UpdateResource',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/resources/{resource.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'resource.createdDate' },\n { path: 'resource.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateResource;\n}\n\n/**\n * Updates multiple resources.\n *\n *\n * Refer to *Update Resource*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/update-resource) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/update-resource))\n * for more details.\n */\nexport function bulkUpdateResources(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateResources({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'resources.fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'resources.resource.createdDate' },\n { path: 'resources.resource.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'POST' as any,\n methodFqn:\n 'wix.bookings.resources.v2.ResourcesService.BulkUpdateResources',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/bulk/resources/update',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkUpdateResources;\n}\n\n/**\n * Deletes a resource.\n *\n *\n * Deleting a resource cancels its event schedule and all its working hour\n * schedules that aren't shared with another resource. Learn more about\n * _how Bookings uses the Calendar APIs_\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/wix-bookings-integration) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/wix-bookings-integration)).\n */\nexport function deleteResource(payload: object): RequestOptionsFactory<any> {\n function __deleteResource({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'DELETE' as any,\n methodFqn: 'wix.bookings.resources.v2.ResourcesService.DeleteResource',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/resources/{resourceId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteResource;\n}\n\n/**\n * Deletes multiple resources.\n *\n *\n * Refer to *Delete Resource*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/delete-resource) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/delete-resource))\n * for more details.\n */\nexport function bulkDeleteResources(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkDeleteResources({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'POST' as any,\n methodFqn:\n 'wix.bookings.resources.v2.ResourcesService.BulkDeleteResources',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/bulk/resources/delete',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkDeleteResources;\n}\n\n/**\n * Retrieves a list of resources matching the provided search criteria.\n *\n *\n * Refer to the supported filters article ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting)) for complete filter and sorting options.\n */\nexport function searchResources(payload: object): RequestOptionsFactory<any> {\n function __searchResources({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'search.aggregations.range.buckets.from' },\n { path: 'search.aggregations.range.buckets.to' },\n {\n path: 'search.aggregations.nested.nestedAggregations.range.buckets.from',\n },\n {\n path: 'search.aggregations.nested.nestedAggregations.range.buckets.to',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'POST' as any,\n methodFqn: 'wix.bookings.resources.v2.ResourcesService.SearchResources',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/resources/search',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'resources.createdDate' },\n { path: 'resources.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'aggregationData.results.ranges.results.from' },\n { path: 'aggregationData.results.ranges.results.to' },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from',\n },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.range.from',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.range.to',\n },\n { path: 'aggregationData.results.scalar.value' },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.scalar.value',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.scalar.value',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __searchResources;\n}\n\n/**\n * Creates a query to retrieve a list of resources.\n *\n * The `queryResources()` function builds a query to retrieve a list of resources and returns a `ResourcesQueryBuilder` object.\n *\n * 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/resources/resources-query-builder/find) function.\n *\n * You can refine the query by chaining `ResourcesQueryBuilder` functions onto the query. `ResourcesQueryBuilder` functions enable you to sort, filter, and control the results that `queryResources()` returns.\n *\n * `queryResources()` runs with the following `ResourcesQueryBuilder` default that you can override:\n *\n * + `limit` is `50`.\n * + Sorted by `id` in ascending order.\n *\n * The functions that are chained to `queryResources()` are applied in the order they are called. For example, if you apply `ascending(\"typeId\")` and then `ascending(\"name\")`, the results are sorted first by the `\"typeId\"`, and then, if there are multiple results with the same `\"typeId\"`, the items are sorted by `\"name\"`.\n *\n * The following `ResourcesQueryBuilder` functions are supported for the `queryResources()` 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/resources/resources-query-result/items) property in `ResourcesQueryResult`.\n */\nexport function queryResources(payload: object): RequestOptionsFactory<any> {\n function __queryResources({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'POST' as any,\n methodFqn: 'wix.bookings.resources.v2.ResourcesService.QueryResources',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/resources/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'resources.createdDate' },\n { path: 'resources.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryResources;\n}\n\n/**\n * Counts resources according to given criteria.\n *\n *\n * Refer to the *supported filters article*\n * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting))\n * for a complete list of supported filters and sorting options.\n */\nexport function countResources(payload: object): RequestOptionsFactory<any> {\n function __countResources({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.bookings.resources.v2.resource',\n method: 'POST' as any,\n methodFqn: 'wix.bookings.resources.v2.ResourcesService.CountResources',\n packageName: PACKAGE_NAME,\n url: resolveWixBookingsResourcesV2ResourcesServiceUrl({\n protoPath: '/v2/resources/count',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __countResources;\n}\n","import * as ambassadorWixBookingsResourcesV2Resource from './bookings-resources-v2-resource-resources.http.js';\nimport * as ambassadorWixBookingsResourcesV2ResourceTypes from './bookings-resources-v2-resource-resources.types.js';\nimport * as ambassadorWixBookingsResourcesV2ResourceUniversalTypes from './bookings-resources-v2-resource-resources.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createResource(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.CreateResourceRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.CreateResourceRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.CreateResourceResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.CreateResourceResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.createResource(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/resources',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkCreateResources(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.BulkCreateResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.BulkCreateResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.BulkCreateResourcesResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.BulkCreateResourcesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.bulkCreateResources(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/bulk/resources/create',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getResource(): __PublicMethodMetaInfo<\n 'GET',\n { resourceId: string },\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.GetResourceRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.GetResourceRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.GetResourceResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.GetResourceResponse\n> {\n const payload = { resourceId: ':resourceId' } as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.getResource(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/resources/{resourceId}',\n pathParams: { resourceId: 'resourceId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateResource(): __PublicMethodMetaInfo<\n 'PATCH',\n { resourceId: string },\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.UpdateResourceRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.UpdateResourceRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.UpdateResourceResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.UpdateResourceResponse\n> {\n const payload = { resource: { id: ':resourceId' } } as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.updateResource(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v2/resources/{resource.id}',\n pathParams: { resourceId: 'resourceId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdateResources(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.BulkUpdateResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.BulkUpdateResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.BulkUpdateResourcesResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.BulkUpdateResourcesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.bulkUpdateResources(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/bulk/resources/update',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteResource(): __PublicMethodMetaInfo<\n 'DELETE',\n { resourceId: string },\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.DeleteResourceRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.DeleteResourceRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.DeleteResourceResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.DeleteResourceResponse\n> {\n const payload = { resourceId: ':resourceId' } as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.deleteResource(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v2/resources/{resourceId}',\n pathParams: { resourceId: 'resourceId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkDeleteResources(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.BulkDeleteResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.BulkDeleteResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.BulkDeleteResourcesResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.BulkDeleteResourcesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.bulkDeleteResources(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/bulk/resources/delete',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function searchResources(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.SearchResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.SearchResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.SearchResourcesResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.SearchResourcesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.searchResources(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/resources/search',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryResources(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.QueryResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.QueryResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.QueryResourcesResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.QueryResourcesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.queryResources(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/resources/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function countResources(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.CountResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceTypes.CountResourcesRequest,\n ambassadorWixBookingsResourcesV2ResourceUniversalTypes.CountResourcesResponse,\n ambassadorWixBookingsResourcesV2ResourceTypes.CountResourcesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBookingsResourcesV2Resource.countResources(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/resources/count',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,iDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MAC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AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,kBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACqC,eAAe,OAAO;AAEjE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","createResource","bulkCreateResources","getResource","updateResource","bulkUpdateResources","deleteResource","bulkDeleteResources","searchResources","queryResources","countResources"]}
@@ -1270,6 +1270,7 @@ interface ResourceUpdatedEnvelope {
1270
1270
  entity: Resource;
1271
1271
  metadata: EventMetadata;
1272
1272
  }
1273
+ type ResourceNonNullablePaths = `workingHoursSchedules.values` | `locationOptions.specificLocationOptions.businessLocations`;
1273
1274
  interface BulkCreateResourcesOptions {
1274
1275
  /**
1275
1276
  * Whether to include the created resources in the response.
@@ -1588,4 +1589,4 @@ interface CountResourcesOptions {
1588
1589
  search?: SearchDetails;
1589
1590
  }
1590
1591
 
1591
- export { type Cursors as $, AggregationType as A, type BulkCreateResourcesOptions as B, type CountResourcesOptions as C, type CreateResourceResponse as D, type EventsSchedule as E, type BulkCreateResourcesRequest as F, type BulkResourceResult as G, type ItemMetadata as H, Interval as I, type ApplicationError as J, type BulkActionMetadata as K, type LocationOptions as L, type MaskedResource as M, NestedAggregationType as N, type GetResourceRequest as O, type GetResourceResponse as P, type GetDeletedResourceRequest as Q, type Resource as R, type SearchResourcesResponse as S, type GetDeletedResourceResponse as T, type UpdateResource as U, type V2WorkingHoursSchedules as V, WebhookIdentityType as W, type ListDeletedResourcesRequest as X, type CursorPaging as Y, type ListDeletedResourcesResponse as Z, type CursorPagingMetadata as _, type BulkCreateResourcesResponse as a, type EntityUpdatedEvent as a$, type RemoveResourceFromTrashBinRequest as a0, type RemoveResourceFromTrashBinResponse as a1, type RestoreResourceFromTrashBinRequest as a2, type RestoreResourceFromTrashBinResponse as a3, type UpdateResourceRequest as a4, type UpdateResourceResponse as a5, type BulkUpdateResourcesRequest as a6, type DeleteResourceRequest as a7, type DeleteResourceResponse as a8, type BulkDeleteResourcesRequest as a9, type AggregationResultsScalarResult as aA, type NestedValueAggregationResult as aB, type ValueResult as aC, type RangeResult as aD, type ScalarResult as aE, type NestedResultValue as aF, type NestedResultValueResultOneOf as aG, type Results as aH, type DateHistogramResult as aI, type GroupByValueResults as aJ, type DateHistogramResults as aK, type NestedResults as aL, type AggregationResults as aM, type AggregationResultsResultOneOf as aN, type QueryResourcesRequest as aO, type CursorQuery as aP, type CursorQueryPagingMethodOneOf as aQ, type QueryResourcesResponse as aR, type CountResourcesRequest as aS, type FixResourceSchedulesRequest as aT, type FixResourceSchedulesResponse as aU, type ReindexTenantRequest as aV, type ReindexTenantResponse as aW, type DomainEvent as aX, type DomainEventBodyOneOf as aY, type EntityCreatedEvent as aZ, type RestoreInfo as a_, type SearchResourcesRequest as aa, type CursorSearch as ab, type CursorSearchPagingMethodOneOf as ac, type Sorting as ad, type Aggregation as ae, type AggregationKindOneOf as af, type RangeBucket as ag, type IncludeMissingValuesOptions as ah, type ValueAggregation as ai, type ValueAggregationOptionsOneOf as aj, type RangeAggregation as ak, type ScalarAggregation as al, type DateHistogramAggregation as am, type NestedAggregationItem as an, type NestedAggregationItemKindOneOf as ao, type NestedAggregation as ap, type GroupByAggregation as aq, type GroupByAggregationKindOneOf as ar, type SearchDetails as as, type AggregationData as at, type ValueAggregationResult as au, type RangeAggregationResult as av, type NestedAggregationResults as aw, type NestedAggregationResultsResultOneOf as ax, type ValueResults as ay, type RangeResults as az, type BulkUpdateResourcesOptions as b, type EntityDeletedEvent as b0, type ActionEvent as b1, type Empty as b2, type MessageEnvelope as b3, type IdentificationData as b4, type IdentificationDataIdOneOf as b5, type BaseEventMetadata as b6, type EventMetadata as b7, type ResourceSearchSpec as b8, type ResourcesQueryResult as b9, type BulkUpdateResourcesResponse as c, type BulkDeleteResourcesResponse as d, type ResourceSearch as e, type ResourcesQueryBuilder as f, type CountResourcesResponse as g, type ResourceCreatedEnvelope as h, type ResourceDeletedEnvelope as i, type ResourceUpdatedEnvelope as j, ManagementType as k, SortOrder as l, SortType as m, SortDirection as n, MissingValues as o, ScalarType as p, Mode as q, type ResourceCompositionDetailsOneOf as r, type WorkingHoursSchedule as s, type SingleResource as t, type Schedule as u, type SpecificLocation as v, type BusinessLocation as w, type WorkingHoursSchedules as x, type ExtendedFields as y, type CreateResourceRequest as z };
1592
+ export { type CursorPagingMetadata as $, AggregationType as A, type BulkCreateResourcesOptions as B, type CountResourcesOptions as C, type CreateResourceRequest as D, type EventsSchedule as E, type CreateResourceResponse as F, type BulkCreateResourcesRequest as G, type BulkResourceResult as H, Interval as I, type ItemMetadata as J, type ApplicationError as K, type LocationOptions as L, type MaskedResource as M, NestedAggregationType as N, type BulkActionMetadata as O, type GetResourceRequest as P, type GetResourceResponse as Q, type Resource as R, type SearchResourcesResponse as S, type GetDeletedResourceRequest as T, type UpdateResource as U, type V2WorkingHoursSchedules as V, WebhookIdentityType as W, type GetDeletedResourceResponse as X, type ListDeletedResourcesRequest as Y, type CursorPaging as Z, type ListDeletedResourcesResponse as _, type ResourceNonNullablePaths as a, type RestoreInfo as a$, type Cursors as a0, type RemoveResourceFromTrashBinRequest as a1, type RemoveResourceFromTrashBinResponse as a2, type RestoreResourceFromTrashBinRequest as a3, type RestoreResourceFromTrashBinResponse as a4, type UpdateResourceRequest as a5, type UpdateResourceResponse as a6, type BulkUpdateResourcesRequest as a7, type DeleteResourceRequest as a8, type DeleteResourceResponse as a9, type RangeResults as aA, type AggregationResultsScalarResult as aB, type NestedValueAggregationResult as aC, type ValueResult as aD, type RangeResult as aE, type ScalarResult as aF, type NestedResultValue as aG, type NestedResultValueResultOneOf as aH, type Results as aI, type DateHistogramResult as aJ, type GroupByValueResults as aK, type DateHistogramResults as aL, type NestedResults as aM, type AggregationResults as aN, type AggregationResultsResultOneOf as aO, type QueryResourcesRequest as aP, type CursorQuery as aQ, type CursorQueryPagingMethodOneOf as aR, type QueryResourcesResponse as aS, type CountResourcesRequest as aT, type FixResourceSchedulesRequest as aU, type FixResourceSchedulesResponse as aV, type ReindexTenantRequest as aW, type ReindexTenantResponse as aX, type DomainEvent as aY, type DomainEventBodyOneOf as aZ, type EntityCreatedEvent as a_, type BulkDeleteResourcesRequest as aa, type SearchResourcesRequest as ab, type CursorSearch as ac, type CursorSearchPagingMethodOneOf as ad, type Sorting as ae, type Aggregation as af, type AggregationKindOneOf as ag, type RangeBucket as ah, type IncludeMissingValuesOptions as ai, type ValueAggregation as aj, type ValueAggregationOptionsOneOf as ak, type RangeAggregation as al, type ScalarAggregation as am, type DateHistogramAggregation as an, type NestedAggregationItem as ao, type NestedAggregationItemKindOneOf as ap, type NestedAggregation as aq, type GroupByAggregation as ar, type GroupByAggregationKindOneOf as as, type SearchDetails as at, type AggregationData as au, type ValueAggregationResult as av, type RangeAggregationResult as aw, type NestedAggregationResults as ax, type NestedAggregationResultsResultOneOf as ay, type ValueResults as az, type BulkCreateResourcesResponse as b, type EntityUpdatedEvent as b0, type EntityDeletedEvent as b1, type ActionEvent as b2, type Empty as b3, type MessageEnvelope as b4, type IdentificationData as b5, type IdentificationDataIdOneOf as b6, type BaseEventMetadata as b7, type EventMetadata as b8, type ResourceSearchSpec as b9, type ResourcesQueryResult as ba, type BulkUpdateResourcesOptions as c, type BulkUpdateResourcesResponse as d, type BulkDeleteResourcesResponse as e, type ResourceSearch as f, type ResourcesQueryBuilder as g, type CountResourcesResponse as h, type ResourceCreatedEnvelope as i, type ResourceDeletedEnvelope as j, type ResourceUpdatedEnvelope as k, ManagementType as l, SortOrder as m, SortType as n, SortDirection as o, MissingValues as p, ScalarType as q, Mode as r, type ResourceCompositionDetailsOneOf as s, type WorkingHoursSchedule as t, type SingleResource as u, type Schedule as v, type SpecificLocation as w, type BusinessLocation as x, type WorkingHoursSchedules as y, type ExtendedFields as z };
@@ -1,6 +1,6 @@
1
- import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { R as Resource, B as BulkCreateResourcesOptions, a as BulkCreateResourcesResponse, U as UpdateResource, M as MaskedResource, b as BulkUpdateResourcesOptions, c as BulkUpdateResourcesResponse, d as BulkDeleteResourcesResponse, e as ResourceSearch, S as SearchResourcesResponse, f as ResourcesQueryBuilder, C as CountResourcesOptions, g as CountResourcesResponse, h as ResourceCreatedEnvelope, i as ResourceDeletedEnvelope, j as ResourceUpdatedEnvelope } from './bookings-resources-v2-resource-resources.universal-RnzqwcCV.js';
3
- export { b1 as ActionEvent, ae as Aggregation, at as AggregationData, af as AggregationKindOneOf, aM as AggregationResults, aN as AggregationResultsResultOneOf, aA as AggregationResultsScalarResult, A as AggregationType, J as ApplicationError, b6 as BaseEventMetadata, K as BulkActionMetadata, F as BulkCreateResourcesRequest, a9 as BulkDeleteResourcesRequest, G as BulkResourceResult, a6 as BulkUpdateResourcesRequest, w as BusinessLocation, aS as CountResourcesRequest, z as CreateResourceRequest, D as CreateResourceResponse, Y as CursorPaging, _ as CursorPagingMetadata, aP as CursorQuery, aQ as CursorQueryPagingMethodOneOf, ab as CursorSearch, ac as CursorSearchPagingMethodOneOf, $ as Cursors, am as DateHistogramAggregation, aI as DateHistogramResult, aK as DateHistogramResults, a7 as DeleteResourceRequest, a8 as DeleteResourceResponse, aX as DomainEvent, aY as DomainEventBodyOneOf, b2 as Empty, aZ as EntityCreatedEvent, b0 as EntityDeletedEvent, a$ as EntityUpdatedEvent, b7 as EventMetadata, E as EventsSchedule, y as ExtendedFields, aT as FixResourceSchedulesRequest, aU as FixResourceSchedulesResponse, Q as GetDeletedResourceRequest, T as GetDeletedResourceResponse, O as GetResourceRequest, P as GetResourceResponse, aq as GroupByAggregation, ar as GroupByAggregationKindOneOf, aJ as GroupByValueResults, b4 as IdentificationData, b5 as IdentificationDataIdOneOf, ah as IncludeMissingValuesOptions, I as Interval, H as ItemMetadata, X as ListDeletedResourcesRequest, Z as ListDeletedResourcesResponse, L as LocationOptions, k as ManagementType, b3 as MessageEnvelope, o as MissingValues, q as Mode, ap as NestedAggregation, an as NestedAggregationItem, ao as NestedAggregationItemKindOneOf, aw as NestedAggregationResults, ax as NestedAggregationResultsResultOneOf, N as NestedAggregationType, aF as NestedResultValue, aG as NestedResultValueResultOneOf, aL as NestedResults, aB as NestedValueAggregationResult, aO as QueryResourcesRequest, aR as QueryResourcesResponse, ak as RangeAggregation, av as RangeAggregationResult, ag as RangeBucket, aD as RangeResult, az as RangeResults, aV as ReindexTenantRequest, aW as ReindexTenantResponse, a0 as RemoveResourceFromTrashBinRequest, a1 as RemoveResourceFromTrashBinResponse, r as ResourceCompositionDetailsOneOf, b8 as ResourceSearchSpec, b9 as ResourcesQueryResult, a_ as RestoreInfo, a2 as RestoreResourceFromTrashBinRequest, a3 as RestoreResourceFromTrashBinResponse, aH as Results, al as ScalarAggregation, aE as ScalarResult, p as ScalarType, u as Schedule, as as SearchDetails, aa as SearchResourcesRequest, t as SingleResource, n as SortDirection, l as SortOrder, m as SortType, ad as Sorting, v as SpecificLocation, a4 as UpdateResourceRequest, a5 as UpdateResourceResponse, V as V2WorkingHoursSchedules, ai as ValueAggregation, aj as ValueAggregationOptionsOneOf, au as ValueAggregationResult, aC as ValueResult, ay as ValueResults, W as WebhookIdentityType, s as WorkingHoursSchedule, x as WorkingHoursSchedules } from './bookings-resources-v2-resource-resources.universal-RnzqwcCV.js';
1
+ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { R as Resource, a as ResourceNonNullablePaths, B as BulkCreateResourcesOptions, b as BulkCreateResourcesResponse, U as UpdateResource, M as MaskedResource, c as BulkUpdateResourcesOptions, d as BulkUpdateResourcesResponse, e as BulkDeleteResourcesResponse, f as ResourceSearch, S as SearchResourcesResponse, g as ResourcesQueryBuilder, C as CountResourcesOptions, h as CountResourcesResponse, i as ResourceCreatedEnvelope, j as ResourceDeletedEnvelope, k as ResourceUpdatedEnvelope } from './bookings-resources-v2-resource-resources.universal-_0qC4n2d.js';
3
+ export { b2 as ActionEvent, af as Aggregation, au as AggregationData, ag as AggregationKindOneOf, aN as AggregationResults, aO as AggregationResultsResultOneOf, aB as AggregationResultsScalarResult, A as AggregationType, K as ApplicationError, b7 as BaseEventMetadata, O as BulkActionMetadata, G as BulkCreateResourcesRequest, aa as BulkDeleteResourcesRequest, H as BulkResourceResult, a7 as BulkUpdateResourcesRequest, x as BusinessLocation, aT as CountResourcesRequest, D as CreateResourceRequest, F as CreateResourceResponse, Z as CursorPaging, $ as CursorPagingMetadata, aQ as CursorQuery, aR as CursorQueryPagingMethodOneOf, ac as CursorSearch, ad as CursorSearchPagingMethodOneOf, a0 as Cursors, an as DateHistogramAggregation, aJ as DateHistogramResult, aL as DateHistogramResults, a8 as DeleteResourceRequest, a9 as DeleteResourceResponse, aY as DomainEvent, aZ as DomainEventBodyOneOf, b3 as Empty, a_ as EntityCreatedEvent, b1 as EntityDeletedEvent, b0 as EntityUpdatedEvent, b8 as EventMetadata, E as EventsSchedule, z as ExtendedFields, aU as FixResourceSchedulesRequest, aV as FixResourceSchedulesResponse, T as GetDeletedResourceRequest, X as GetDeletedResourceResponse, P as GetResourceRequest, Q as GetResourceResponse, ar as GroupByAggregation, as as GroupByAggregationKindOneOf, aK as GroupByValueResults, b5 as IdentificationData, b6 as IdentificationDataIdOneOf, ai as IncludeMissingValuesOptions, I as Interval, J as ItemMetadata, Y as ListDeletedResourcesRequest, _ as ListDeletedResourcesResponse, L as LocationOptions, l as ManagementType, b4 as MessageEnvelope, p as MissingValues, r as Mode, aq as NestedAggregation, ao as NestedAggregationItem, ap as NestedAggregationItemKindOneOf, ax as NestedAggregationResults, ay as NestedAggregationResultsResultOneOf, N as NestedAggregationType, aG as NestedResultValue, aH as NestedResultValueResultOneOf, aM as NestedResults, aC as NestedValueAggregationResult, aP as QueryResourcesRequest, aS as QueryResourcesResponse, al as RangeAggregation, aw as RangeAggregationResult, ah as RangeBucket, aE as RangeResult, aA as RangeResults, aW as ReindexTenantRequest, aX as ReindexTenantResponse, a1 as RemoveResourceFromTrashBinRequest, a2 as RemoveResourceFromTrashBinResponse, s as ResourceCompositionDetailsOneOf, b9 as ResourceSearchSpec, ba as ResourcesQueryResult, a$ as RestoreInfo, a3 as RestoreResourceFromTrashBinRequest, a4 as RestoreResourceFromTrashBinResponse, aI as Results, am as ScalarAggregation, aF as ScalarResult, q as ScalarType, v as Schedule, at as SearchDetails, ab as SearchResourcesRequest, u as SingleResource, o as SortDirection, m as SortOrder, n as SortType, ae as Sorting, w as SpecificLocation, a5 as UpdateResourceRequest, a6 as UpdateResourceResponse, V as V2WorkingHoursSchedules, aj as ValueAggregation, ak as ValueAggregationOptionsOneOf, av as ValueAggregationResult, aD as ValueResult, az as ValueResults, W as WebhookIdentityType, t as WorkingHoursSchedule, y as WorkingHoursSchedules } from './bookings-resources-v2-resource-resources.universal-_0qC4n2d.js';
4
4
 
5
5
  declare function createResource$1(httpClient: HttpClient): CreateResourceSignature;
6
6
  interface CreateResourceSignature {
@@ -25,7 +25,7 @@ interface CreateResourceSignature {
25
25
  * @param - Resource to create.
26
26
  * @returns Created resource.
27
27
  */
28
- (resource: Resource): Promise<Resource>;
28
+ (resource: NonNullablePaths<Resource, `name`>): Promise<NonNullablePaths<Resource, ResourceNonNullablePaths>>;
29
29
  }
30
30
  declare function bulkCreateResources$1(httpClient: HttpClient): BulkCreateResourcesSignature;
31
31
  interface BulkCreateResourcesSignature {
@@ -38,7 +38,9 @@ interface BulkCreateResourcesSignature {
38
38
  * for more details.
39
39
  * @param - Resources to create.
40
40
  */
41
- (resources: Resource[], options?: BulkCreateResourcesOptions | undefined): Promise<BulkCreateResourcesResponse>;
41
+ (resources: NonNullablePaths<Resource, `name`>[], options?: BulkCreateResourcesOptions): Promise<NonNullablePaths<BulkCreateResourcesResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
42
+ [P in ResourceNonNullablePaths]: `results.${number}.item.${P}`;
43
+ }[ResourceNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
42
44
  }
43
45
  declare function getResource$1(httpClient: HttpClient): GetResourceSignature;
44
46
  interface GetResourceSignature {
@@ -47,7 +49,7 @@ interface GetResourceSignature {
47
49
  * @param - ID of the resource to retrieve.
48
50
  * @returns Retrieved resource.
49
51
  */
50
- (resourceId: string): Promise<Resource>;
52
+ (resourceId: string): Promise<NonNullablePaths<Resource, ResourceNonNullablePaths>>;
51
53
  }
52
54
  declare function updateResource$1(httpClient: HttpClient): UpdateResourceSignature;
53
55
  interface UpdateResourceSignature {
@@ -60,7 +62,7 @@ interface UpdateResourceSignature {
60
62
  * @param - Resource ID.
61
63
  * @returns Updated resource.
62
64
  */
63
- (_id: string, resource: UpdateResource): Promise<Resource>;
65
+ (_id: string, resource: NonNullablePaths<UpdateResource, `revision`>): Promise<NonNullablePaths<Resource, ResourceNonNullablePaths>>;
64
66
  }
65
67
  declare function bulkUpdateResources$1(httpClient: HttpClient): BulkUpdateResourcesSignature;
66
68
  interface BulkUpdateResourcesSignature {
@@ -68,11 +70,14 @@ interface BulkUpdateResourcesSignature {
68
70
  * Updates multiple resources.
69
71
  *
70
72
  *
71
- * Each time the resource is updated, `revision` increments by 1. You must include the current revision of the resource when updating it.
72
- * This ensures you're working with the latest service information and prevents unintended overwrites.
73
+ * Refer to *Update Resource*
74
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/update-resource) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/update-resource))
75
+ * for more details.
73
76
  * @param - Resources to update.
74
77
  */
75
- (resources: MaskedResource[], options?: BulkUpdateResourcesOptions | undefined): Promise<BulkUpdateResourcesResponse>;
78
+ (resources: NonNullablePaths<MaskedResource, `resource._id` | `resource.revision`>[], options?: BulkUpdateResourcesOptions): Promise<NonNullablePaths<BulkUpdateResourcesResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
79
+ [P in ResourceNonNullablePaths]: `results.${number}.item.${P}`;
80
+ }[ResourceNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
76
81
  }
77
82
  declare function deleteResource$1(httpClient: HttpClient): DeleteResourceSignature;
78
83
  interface DeleteResourceSignature {
@@ -99,7 +104,9 @@ interface BulkDeleteResourcesSignature {
99
104
  * for more details.
100
105
  * @param - IDs of the resources to delete.
101
106
  */
102
- (ids: string[]): Promise<BulkDeleteResourcesResponse>;
107
+ (ids: string[]): Promise<NonNullablePaths<BulkDeleteResourcesResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
108
+ [P in ResourceNonNullablePaths]: `results.${number}.item.${P}`;
109
+ }[ResourceNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
103
110
  }
104
111
  declare function searchResources$1(httpClient: HttpClient): SearchResourcesSignature;
105
112
  interface SearchResourcesSignature {
@@ -112,7 +119,9 @@ interface SearchResourcesSignature {
112
119
  *
113
120
  * Refer to the supported filters article ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting)) for complete filter and sorting options.
114
121
  */
115
- (search: ResourceSearch): Promise<SearchResourcesResponse>;
122
+ (search: ResourceSearch): Promise<NonNullablePaths<SearchResourcesResponse, {
123
+ [P in ResourceNonNullablePaths]: `resources.${number}.${P}`;
124
+ }[ResourceNonNullablePaths] | `aggregationData.results` | `aggregationData.results.${number}.scalar.type` | `aggregationData.results.${number}.scalar.value` | `aggregationData.results.${number}.name` | `aggregationData.results.${number}.type` | `aggregationData.results.${number}.fieldPath`>>;
116
125
  }
117
126
  declare function queryResources$1(httpClient: HttpClient): QueryResourcesSignature;
118
127
  interface QueryResourcesSignature {
@@ -147,7 +156,7 @@ interface CountResourcesSignature {
147
156
  * for a complete list of supported filters and sorting options.
148
157
  * @param - Filter to base the count on. See *the supported filters article* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting)) for a complete list of filtering options.
149
158
  */
150
- (options?: CountResourcesOptions | undefined): Promise<CountResourcesResponse>;
159
+ (options?: CountResourcesOptions): Promise<NonNullablePaths<CountResourcesResponse, `count`>>;
151
160
  }
152
161
  declare const onResourceCreated$1: EventDefinition<ResourceCreatedEnvelope, "wix.bookings.resources.v2.resource_created">;
153
162
  declare const onResourceDeleted$1: EventDefinition<ResourceDeletedEnvelope, "wix.bookings.resources.v2.resource_deleted">;