@wix/auto_sdk_bookings_resources 1.0.56 → 1.0.58

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.
Files changed (37) hide show
  1. package/build/cjs/{bookings-resources-v2-resource-resources.universal-CLt-Jfz-.d.ts → bookings-resources-v2-resource-resources.universal-eE3GuYhS.d.ts} +34 -61
  2. package/build/cjs/index.d.ts +16 -42
  3. package/build/cjs/index.js +43 -1
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/cjs/index.typings.d.ts +4 -4
  6. package/build/cjs/index.typings.js +25 -0
  7. package/build/cjs/index.typings.js.map +1 -1
  8. package/build/cjs/meta.d.ts +16 -34
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/{bookings-resources-v2-resource-resources.universal-CLt-Jfz-.d.mts → bookings-resources-v2-resource-resources.universal-eE3GuYhS.d.mts} +34 -61
  11. package/build/es/index.d.mts +16 -42
  12. package/build/es/index.mjs +43 -1
  13. package/build/es/index.mjs.map +1 -1
  14. package/build/es/index.typings.d.mts +4 -4
  15. package/build/es/index.typings.mjs +24 -0
  16. package/build/es/index.typings.mjs.map +1 -1
  17. package/build/es/meta.d.mts +16 -34
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/{bookings-resources-v2-resource-resources.universal-CLt-Jfz-.d.ts → bookings-resources-v2-resource-resources.universal-eE3GuYhS.d.ts} +34 -61
  20. package/build/internal/cjs/index.d.ts +16 -42
  21. package/build/internal/cjs/index.js +43 -1
  22. package/build/internal/cjs/index.js.map +1 -1
  23. package/build/internal/cjs/index.typings.d.ts +4 -4
  24. package/build/internal/cjs/index.typings.js +25 -0
  25. package/build/internal/cjs/index.typings.js.map +1 -1
  26. package/build/internal/cjs/meta.d.ts +16 -34
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/{bookings-resources-v2-resource-resources.universal-CLt-Jfz-.d.mts → bookings-resources-v2-resource-resources.universal-eE3GuYhS.d.mts} +34 -61
  29. package/build/internal/es/index.d.mts +16 -42
  30. package/build/internal/es/index.mjs +43 -1
  31. package/build/internal/es/index.mjs.map +1 -1
  32. package/build/internal/es/index.typings.d.mts +4 -4
  33. package/build/internal/es/index.typings.mjs +24 -0
  34. package/build/internal/es/index.typings.mjs.map +1 -1
  35. package/build/internal/es/meta.d.mts +16 -34
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +3 -3
@@ -2,8 +2,7 @@ import { SearchSpec, Search, NonNullablePaths } from '@wix/sdk-types';
2
2
 
3
3
  /**
4
4
  * A resource represents an entity, such as a room or a staff member, that can be
5
- * scheduled for use in a *booking*
6
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/about-the-bookings-apis)).
5
+ * scheduled for use in a [booking](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/about-the-bookings-apis).
7
6
  * The availability of a resource is tracked to ensure that it
8
7
  * can be allocated at a requested time slot and to prevent double bookings.
9
8
  */
@@ -38,8 +37,7 @@ interface Resource extends ResourceCompositionDetailsOneOf {
38
37
  */
39
38
  name?: string | null;
40
39
  /**
41
- * ID of the *resource type*
42
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resource-types-v2/introduction)).
40
+ * ID of the [resource type](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resource-types-v2/introduction).
43
41
  *
44
42
  * Once a type has been set it can't be modified. You can create a resource
45
43
  * without specifying a type. However, customers can't book such resources.
@@ -48,8 +46,7 @@ interface Resource extends ResourceCompositionDetailsOneOf {
48
46
  */
49
47
  typeId?: string | null;
50
48
  /**
51
- * Information about the *schedule*
52
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction))
49
+ * Information about the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)
53
50
  * specifying the working hours and locations of the resource.
54
51
  *
55
52
  * Resources without a working hour schedule are available 24/7 at the locations
@@ -61,8 +58,7 @@ interface Resource extends ResourceCompositionDetailsOneOf {
61
58
  /** Information about the location where the resource is available. */
62
59
  locationOptions?: LocationOptions;
63
60
  /**
64
- * Schedule containing the *events*
65
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction))
61
+ * Schedule containing the [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)
66
62
  * for which the resource has been booked.
67
63
  * @readonly
68
64
  */
@@ -75,8 +71,7 @@ interface ResourceCompositionDetailsOneOf {
75
71
  }
76
72
  interface WorkingHoursSchedule {
77
73
  /**
78
- * ID of the working hour *schedule*
79
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)).
74
+ * ID of the working hour [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction).
80
75
  * @format GUID
81
76
  */
82
77
  scheduleId?: string | null;
@@ -106,8 +101,7 @@ interface SingleResource {
106
101
  */
107
102
  locationOptions?: LocationOptions;
108
103
  /**
109
- * Schedule containing the *events*
110
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction))
104
+ * Schedule containing the [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)
111
105
  * for which the resource has been booked.
112
106
  * @readonly
113
107
  */
@@ -137,8 +131,7 @@ interface Schedule {
137
131
  }
138
132
  interface LocationOptions {
139
133
  /**
140
- * Whether the resource is available in all *business locations*
141
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/about-service-locations#backend-modules_bookings_services_location-types) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-locations#location-types)).
134
+ * Whether the resource is available in all [business locations](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-locations#location-types).
142
135
  *
143
136
  * - `true`: The resource is available in all business locations.
144
137
  * - `false`: The resource is available only in specific locations.
@@ -151,8 +144,7 @@ interface LocationOptions {
151
144
  }
152
145
  interface SpecificLocation {
153
146
  /**
154
- * Whether the resource is available in *business locations*
155
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/about-service-locations#backend-modules_bookings_services_location-types) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-locations#location-types)).
147
+ * Whether the resource is available in [business locations](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-locations#location-types).
156
148
  *
157
149
  * - `true`: The resource is available in business locations.
158
150
  * - `false`: The resource isn't available in business locations.
@@ -171,8 +163,7 @@ interface SpecificLocation {
171
163
  }
172
164
  interface BusinessLocation {
173
165
  /**
174
- * ID of the business *location*
175
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction)).
166
+ * ID of the business [location](https://dev.wix.com/docs/rest/business-management/locations/introduction).
176
167
  * @format GUID
177
168
  */
178
169
  locationId?: string | null;
@@ -186,8 +177,7 @@ interface WorkingHoursSchedules {
186
177
  }
187
178
  interface EventsSchedule {
188
179
  /**
189
- * ID of the event *schedule*
190
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)).
180
+ * ID of the event [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction).
191
181
  * @format GUID
192
182
  */
193
183
  scheduleId?: string | null;
@@ -447,7 +437,7 @@ interface SearchResourcesRequest {
447
437
  /**
448
438
  * Search criteria including filter, sort, aggregations, and paging options.
449
439
  *
450
- * 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.
440
+ * Refer to the [supported filters article](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/filtering-and-sorting) for complete filter and sorting options.
451
441
  */
452
442
  search?: CursorSearch;
453
443
  }
@@ -460,13 +450,13 @@ interface CursorSearch extends CursorSearchPagingMethodOneOf {
460
450
  /**
461
451
  * Filter object for narrowing search results. For example, to return only resources available at specific business locations: `"filter": {"single_resource.location_options.specific_location_options.business_locations.location_id": {"$in": ["location-id-1", "location-id-2"]}}`.
462
452
  *
463
- * Learn more about the filter format in 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)).
453
+ * Learn more about the filter format in the [supported filters article](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting).
464
454
  */
465
455
  filter?: Record<string, any> | null;
466
456
  /**
467
457
  * Array of sort objects specifying result order. For example, to sort by resource name in ascending order: `"sort": [{"fieldName": "name", "order": "ASC"}]`.
468
458
  *
469
- * Learn more about the sort format in 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)).
459
+ * Learn more about the sort format in the [supported filters article](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting).
470
460
  * @maxSize 10
471
461
  */
472
462
  sort?: Sorting[];
@@ -1009,11 +999,7 @@ interface AggregationResultsResultOneOf {
1009
999
  nested?: NestedResults;
1010
1000
  }
1011
1001
  interface QueryResourcesRequest {
1012
- /**
1013
- * Query for retrieving resources. Refer to the *supported filters article*
1014
- * ([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))
1015
- * for a complete list of supported filters.
1016
- */
1002
+ /** Query for retrieving resources. Refer to the [supported filters article](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/filtering-and-sorting) for a complete list of supported filters. */
1017
1003
  query?: CursorQuery;
1018
1004
  }
1019
1005
  interface CursorQuery extends CursorQueryPagingMethodOneOf {
@@ -1047,11 +1033,7 @@ interface QueryResourcesResponse {
1047
1033
  pagingMetadata?: CursorPagingMetadata;
1048
1034
  }
1049
1035
  interface CountResourcesRequest {
1050
- /**
1051
- * Filter to base the count on. Refer to the *supported filters article*
1052
- * ([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))
1053
- * for a complete list of supported filters.
1054
- */
1036
+ /** Filter to base the count on. Refer to the [supported filters article](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/filtering-and-sorting) for a complete list of supported filters. */
1055
1037
  filter?: Record<string, any> | null;
1056
1038
  /**
1057
1039
  * Free text to match in searchable fields. Field is deprecated due to decision to use query instead of search for performing the count.
@@ -1388,8 +1370,7 @@ declare function onResourceUpdated(handler: (event: ResourceUpdatedEnvelope) =>
1388
1370
  *
1389
1371
  * ### Connected schedules
1390
1372
  *
1391
- * A new event *schedule*
1392
- * ([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))
1373
+ * A new event [schedule](https://dev.wix.com/docs/api-reference/business-management/calendar/wix-bookings-integration)
1393
1374
  * is automatically created for the resource.
1394
1375
  *
1395
1376
  * ### Locations
@@ -1416,8 +1397,7 @@ declare function createResource(resource: NonNullablePaths<Resource, `name`, 2>)
1416
1397
  * Creates up to 50 resources.
1417
1398
  *
1418
1399
  *
1419
- * Refer to *Create Resource*
1420
- * ([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))
1400
+ * Refer to [Create Resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/create-resource)
1421
1401
  * for more details.
1422
1402
  * @param resources - Resources to create.
1423
1403
  * @public
@@ -1499,8 +1479,7 @@ interface UpdateResource {
1499
1479
  */
1500
1480
  name?: string | null;
1501
1481
  /**
1502
- * ID of the *resource type*
1503
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resource-types/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resource-types-v2/introduction)).
1482
+ * ID of the [resource type](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resource-types-v2/introduction).
1504
1483
  *
1505
1484
  * Once a type has been set it can't be modified. You can create a resource
1506
1485
  * without specifying a type. However, customers can't book such resources.
@@ -1509,8 +1488,7 @@ interface UpdateResource {
1509
1488
  */
1510
1489
  typeId?: string | null;
1511
1490
  /**
1512
- * Information about the *schedule*
1513
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction))
1491
+ * Information about the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)
1514
1492
  * specifying the working hours and locations of the resource.
1515
1493
  *
1516
1494
  * Resources without a working hour schedule are available 24/7 at the locations
@@ -1522,8 +1500,7 @@ interface UpdateResource {
1522
1500
  /** Information about the location where the resource is available. */
1523
1501
  locationOptions?: LocationOptions;
1524
1502
  /**
1525
- * Schedule containing the *events*
1526
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction))
1503
+ * Schedule containing the [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)
1527
1504
  * for which the resource has been booked.
1528
1505
  * @readonly
1529
1506
  */
@@ -1535,8 +1512,7 @@ interface UpdateResource {
1535
1512
  * Updates multiple resources.
1536
1513
  *
1537
1514
  *
1538
- * Refer to *Update Resource*
1539
- * ([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))
1515
+ * Refer to [Update Resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/update-resource)
1540
1516
  * for more details.
1541
1517
  * @param resources - Resources to update.
1542
1518
  * @public
@@ -1565,8 +1541,7 @@ interface BulkUpdateResourcesOptions {
1565
1541
  *
1566
1542
  * Deleting a resource cancels its event schedule and all its working hour
1567
1543
  * schedules that aren't shared with another resource. Learn more about
1568
- * _how Bookings uses the Calendar APIs_
1569
- * ([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)).
1544
+ * [how Bookings uses the Calendar APIs](https://dev.wix.com/docs/api-reference/business-management/calendar/wix-bookings-integration).
1570
1545
  * @param resourceId - ID of the resource to delete.
1571
1546
  * @public
1572
1547
  * @requiredField resourceId
@@ -1579,8 +1554,7 @@ declare function deleteResource(resourceId: string): Promise<void>;
1579
1554
  * Deletes multiple resources.
1580
1555
  *
1581
1556
  *
1582
- * Refer to *Delete Resource*
1583
- * ([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))
1557
+ * Refer to [Delete Resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/delete-resource)
1584
1558
  * for more details.
1585
1559
  * @param ids - IDs of the resources to delete.
1586
1560
  * @public
@@ -1658,13 +1632,13 @@ type ResourceSearch = {
1658
1632
  /**
1659
1633
  Filter object for narrowing search results. For example, to return only resources available at specific business locations: `"filter": {"single_resource.location_options.specific_location_options.business_locations.location_id": {"$in": ["location-id-1", "location-id-2"]}}`.
1660
1634
 
1661
- Learn more about the filter format in 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)).
1635
+ Learn more about the filter format in the [supported filters article](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting).
1662
1636
  */
1663
1637
  filter?: CommonSearchWithEntityContext['filter'] | null;
1664
1638
  /**
1665
1639
  Array of sort objects specifying result order. For example, to sort by resource name in ascending order: `"sort": [{"fieldName": "name", "order": "ASC"}]`.
1666
1640
 
1667
- Learn more about the sort format in 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)).
1641
+ Learn more about the sort format in the [supported filters article](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/filtering-and-sorting).
1668
1642
  @maxSize: 10
1669
1643
  */
1670
1644
  sort?: {
@@ -1839,13 +1813,16 @@ interface ResourcesQueryBuilder {
1839
1813
  skipTo: (cursor: string) => ResourcesQueryBuilder;
1840
1814
  find: () => Promise<ResourcesQueryResult>;
1841
1815
  }
1816
+ /**
1817
+ * @hidden
1818
+ * @fqn wix.bookings.resources.v2.ResourcesService.QueryResources
1819
+ * @requiredField query
1820
+ */
1821
+ declare function typedQueryResources(query: CursorQuery): Promise<NonNullablePaths<QueryResourcesResponse, `resources`, 2>>;
1842
1822
  /**
1843
1823
  * Counts resources according to given criteria.
1844
1824
  *
1845
- *
1846
- * Refer to the *supported filters article*
1847
- * ([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))
1848
- * for a complete list of supported filters and sorting options.
1825
+ * Refer to the [supported filters article](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/filtering-and-sorting) for a complete list of supported filters and sorting options.
1849
1826
  * @public
1850
1827
  * @param options - 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.
1851
1828
  * @permissionId BOOKINGS.RESOURCE_READ
@@ -1854,11 +1831,7 @@ interface ResourcesQueryBuilder {
1854
1831
  */
1855
1832
  declare function countResources(options?: CountResourcesOptions): Promise<NonNullablePaths<CountResourcesResponse, `count`, 2>>;
1856
1833
  interface CountResourcesOptions {
1857
- /**
1858
- * Filter to base the count on. Refer to the *supported filters article*
1859
- * ([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))
1860
- * for a complete list of supported filters.
1861
- */
1834
+ /** Filter to base the count on. Refer to the [supported filters article](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/filtering-and-sorting) for a complete list of supported filters. */
1862
1835
  filter?: Record<string, any> | null;
1863
1836
  /**
1864
1837
  * Free text to match in searchable fields. Field is deprecated due to decision to use query instead of search for performing the count.
@@ -1868,4 +1841,4 @@ interface CountResourcesOptions {
1868
1841
  search?: SearchDetails;
1869
1842
  }
1870
1843
 
1871
- export { type ListDeletedResourcesRequest as $, AggregationType as A, type BulkCreateResourcesOptions as B, type CreateResourceValidationErrors as C, type BusinessLocation as D, type WorkingHoursSchedules as E, type EventsSchedule as F, type ExtendedFields as G, type CreateResourceRequest as H, Interval as I, type CreateResourceResponse as J, type BulkCreateResourcesRequest as K, type LocationOptions as L, type MaskedResource as M, NestedAggregationType as N, type BulkResourceResult as O, type ItemMetadata as P, type ApplicationError as Q, type Resource as R, type SearchResourcesResponse as S, type BulkActionMetadata as T, type UpdateResource as U, type V2WorkingHoursSchedules as V, WebhookIdentityType as W, type GetResourceRequest as X, type GetResourceResponse as Y, type GetDeletedResourceRequest as Z, type GetDeletedResourceResponse as _, type BulkCreateResourcesResponse as a, type DomainEvent as a$, type CursorPaging as a0, type ListDeletedResourcesResponse as a1, type CursorPagingMetadata as a2, type Cursors as a3, type RemoveResourceFromTrashBinRequest as a4, type RemoveResourceFromTrashBinResponse as a5, type RestoreResourceFromTrashBinRequest as a6, type RestoreResourceFromTrashBinResponse as a7, type UpdateResourceRequest as a8, type UpdateResourceResponse as a9, type NestedAggregationResults as aA, type NestedAggregationResultsResultOneOf as aB, type ValueResults as aC, type RangeResults as aD, type AggregationResultsScalarResult as aE, type NestedValueAggregationResult as aF, type ValueResult as aG, type RangeResult as aH, type ScalarResult as aI, type NestedResultValue as aJ, type NestedResultValueResultOneOf as aK, type Results as aL, type DateHistogramResult as aM, type GroupByValueResults as aN, type DateHistogramResults as aO, type NestedResults as aP, type AggregationResults as aQ, type AggregationResultsResultOneOf as aR, type QueryResourcesRequest as aS, type CursorQuery as aT, type CursorQueryPagingMethodOneOf as aU, type QueryResourcesResponse as aV, type CountResourcesRequest as aW, type FixResourceSchedulesRequest as aX, type FixResourceSchedulesResponse as aY, type ReindexTenantRequest as aZ, type ReindexTenantResponse as a_, type BulkUpdateResourcesRequest as aa, type DeleteResourceRequest as ab, type DeleteResourceResponse as ac, type BulkDeleteResourcesRequest as ad, type SearchResourcesRequest as ae, type CursorSearch as af, type CursorSearchPagingMethodOneOf as ag, type Sorting as ah, type Aggregation as ai, type AggregationKindOneOf as aj, type RangeBucket as ak, type IncludeMissingValuesOptions as al, type ValueAggregation as am, type ValueAggregationOptionsOneOf as an, type RangeAggregation as ao, type ScalarAggregation as ap, type DateHistogramAggregation as aq, type NestedAggregationItem as ar, type NestedAggregationItemKindOneOf as as, type NestedAggregation as at, type GroupByAggregation as au, type GroupByAggregationKindOneOf as av, type SearchDetails as aw, type AggregationData as ax, type ValueAggregationResult as ay, type RangeAggregationResult as az, type BulkCreateResourcesValidationErrors as b, type DomainEventBodyOneOf as b0, type EntityCreatedEvent as b1, type RestoreInfo as b2, type EntityUpdatedEvent as b3, type EntityDeletedEvent as b4, type ActionEvent as b5, type Empty as b6, type MessageEnvelope as b7, type IdentificationData as b8, type IdentificationDataIdOneOf as b9, queryResources as bA, countResources as bB, type BaseEventMetadata as ba, type EventMetadata as bb, type ResourceSearchSpec as bc, type ResourcesQueryResult as bd, type ManagementTypeWithLiterals as be, type SortOrderWithLiterals as bf, type SortTypeWithLiterals as bg, type SortDirectionWithLiterals as bh, type MissingValuesWithLiterals as bi, type ScalarTypeWithLiterals as bj, type NestedAggregationTypeWithLiterals as bk, type IntervalWithLiterals as bl, type AggregationTypeWithLiterals as bm, type ModeWithLiterals as bn, type WebhookIdentityTypeWithLiterals as bo, type CommonSearchWithEntityContext as bp, onResourceCreated as bq, onResourceDeleted as br, onResourceUpdated as bs, createResource as bt, bulkCreateResources as bu, getResource as bv, updateResource as bw, bulkUpdateResources as bx, deleteResource as by, bulkDeleteResources as bz, type UpdateResourceValidationErrors as c, type BulkUpdateResourcesOptions as d, type BulkUpdateResourcesResponse as e, type BulkUpdateResourcesValidationErrors as f, type BulkDeleteResourcesResponse as g, type ResourceSearch as h, type ResourcesQueryBuilder as i, type CountResourcesOptions as j, type CountResourcesResponse as k, type ResourceCreatedEnvelope as l, type ResourceDeletedEnvelope as m, type ResourceUpdatedEnvelope as n, ManagementType as o, SortOrder as p, SortType as q, SortDirection as r, MissingValues as s, ScalarType as t, Mode as u, type ResourceCompositionDetailsOneOf as v, type WorkingHoursSchedule as w, type SingleResource as x, type Schedule as y, type SpecificLocation as z };
1844
+ export { type GetDeletedResourceRequest as $, AggregationType as A, type BulkCreateResourcesOptions as B, type CreateResourceValidationErrors as C, type Schedule as D, type SpecificLocation as E, type BusinessLocation as F, type WorkingHoursSchedules as G, type EventsSchedule as H, Interval as I, type ExtendedFields as J, type CreateResourceRequest as K, type LocationOptions as L, type MaskedResource as M, NestedAggregationType as N, type CreateResourceResponse as O, type BulkCreateResourcesRequest as P, type BulkResourceResult as Q, type Resource as R, type SearchResourcesResponse as S, type ItemMetadata as T, type UpdateResource as U, type V2WorkingHoursSchedules as V, WebhookIdentityType as W, type ApplicationError as X, type BulkActionMetadata as Y, type GetResourceRequest as Z, type GetResourceResponse as _, type BulkCreateResourcesResponse as a, type ReindexTenantResponse as a$, type GetDeletedResourceResponse as a0, type ListDeletedResourcesRequest as a1, type CursorPaging as a2, type ListDeletedResourcesResponse as a3, type CursorPagingMetadata as a4, type Cursors as a5, type RemoveResourceFromTrashBinRequest as a6, type RemoveResourceFromTrashBinResponse as a7, type RestoreResourceFromTrashBinRequest as a8, type RestoreResourceFromTrashBinResponse as a9, type ValueAggregationResult as aA, type RangeAggregationResult as aB, type NestedAggregationResults as aC, type NestedAggregationResultsResultOneOf as aD, type ValueResults as aE, type RangeResults as aF, type AggregationResultsScalarResult as aG, type NestedValueAggregationResult as aH, type ValueResult as aI, type RangeResult as aJ, type ScalarResult as aK, type NestedResultValue as aL, type NestedResultValueResultOneOf as aM, type Results as aN, type DateHistogramResult as aO, type GroupByValueResults as aP, type DateHistogramResults as aQ, type NestedResults as aR, type AggregationResults as aS, type AggregationResultsResultOneOf as aT, type QueryResourcesRequest as aU, type CursorQueryPagingMethodOneOf as aV, type QueryResourcesResponse as aW, type CountResourcesRequest as aX, type FixResourceSchedulesRequest as aY, type FixResourceSchedulesResponse as aZ, type ReindexTenantRequest as a_, type UpdateResourceRequest as aa, type UpdateResourceResponse as ab, type BulkUpdateResourcesRequest as ac, type DeleteResourceRequest as ad, type DeleteResourceResponse as ae, type BulkDeleteResourcesRequest as af, type SearchResourcesRequest as ag, type CursorSearch as ah, type CursorSearchPagingMethodOneOf as ai, type Sorting as aj, type Aggregation as ak, type AggregationKindOneOf as al, type RangeBucket as am, type IncludeMissingValuesOptions as an, type ValueAggregation as ao, type ValueAggregationOptionsOneOf as ap, type RangeAggregation as aq, type ScalarAggregation as ar, type DateHistogramAggregation as as, type NestedAggregationItem as at, type NestedAggregationItemKindOneOf as au, type NestedAggregation as av, type GroupByAggregation as aw, type GroupByAggregationKindOneOf as ax, type SearchDetails as ay, type AggregationData as az, type BulkCreateResourcesValidationErrors as b, type DomainEvent as b0, type DomainEventBodyOneOf as b1, type EntityCreatedEvent as b2, type RestoreInfo as b3, type EntityUpdatedEvent as b4, type EntityDeletedEvent as b5, type ActionEvent as b6, type Empty as b7, type MessageEnvelope as b8, type IdentificationData as b9, bulkDeleteResources as bA, queryResources as bB, countResources as bC, type IdentificationDataIdOneOf as ba, type BaseEventMetadata as bb, type EventMetadata as bc, type ResourceSearchSpec as bd, type ResourcesQueryResult as be, type ManagementTypeWithLiterals as bf, type SortOrderWithLiterals as bg, type SortTypeWithLiterals as bh, type SortDirectionWithLiterals as bi, type MissingValuesWithLiterals as bj, type ScalarTypeWithLiterals as bk, type NestedAggregationTypeWithLiterals as bl, type IntervalWithLiterals as bm, type AggregationTypeWithLiterals as bn, type ModeWithLiterals as bo, type WebhookIdentityTypeWithLiterals as bp, type CommonSearchWithEntityContext as bq, onResourceCreated as br, onResourceDeleted as bs, onResourceUpdated as bt, createResource as bu, bulkCreateResources as bv, getResource as bw, updateResource as bx, bulkUpdateResources as by, deleteResource as bz, type UpdateResourceValidationErrors as c, type BulkUpdateResourcesOptions as d, type BulkUpdateResourcesResponse as e, type BulkUpdateResourcesValidationErrors as f, type BulkDeleteResourcesResponse as g, type ResourceSearch as h, type CountResourcesOptions as i, type CountResourcesResponse as j, type ResourceCreatedEnvelope as k, type ResourceDeletedEnvelope as l, type ResourceUpdatedEnvelope as m, type ResourcesQueryBuilder as n, type CursorQuery as o, ManagementType as p, SortOrder as q, SortType as r, SortDirection as s, typedQueryResources as t, MissingValues as u, ScalarType as v, Mode as w, type ResourceCompositionDetailsOneOf as x, type WorkingHoursSchedule as y, type SingleResource as z };
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { R as Resource, C as CreateResourceValidationErrors, B as BulkCreateResourcesOptions, a as BulkCreateResourcesResponse, b as BulkCreateResourcesValidationErrors, U as UpdateResource, c as UpdateResourceValidationErrors, M as MaskedResource, d as BulkUpdateResourcesOptions, e as BulkUpdateResourcesResponse, f as BulkUpdateResourcesValidationErrors, g as BulkDeleteResourcesResponse, h as ResourceSearch, S as SearchResourcesResponse, i as ResourcesQueryBuilder, j as CountResourcesOptions, k as CountResourcesResponse, l as ResourceCreatedEnvelope, m as ResourceDeletedEnvelope, n as ResourceUpdatedEnvelope } from './bookings-resources-v2-resource-resources.universal-CLt-Jfz-.js';
3
- export { b5 as ActionEvent, ai as Aggregation, ax as AggregationData, aj as AggregationKindOneOf, aQ as AggregationResults, aR as AggregationResultsResultOneOf, aE as AggregationResultsScalarResult, A as AggregationType, bm as AggregationTypeWithLiterals, Q as ApplicationError, ba as BaseEventMetadata, T as BulkActionMetadata, K as BulkCreateResourcesRequest, ad as BulkDeleteResourcesRequest, O as BulkResourceResult, aa as BulkUpdateResourcesRequest, D as BusinessLocation, bp as CommonSearchWithEntityContext, aW as CountResourcesRequest, H as CreateResourceRequest, J as CreateResourceResponse, a0 as CursorPaging, a2 as CursorPagingMetadata, aT as CursorQuery, aU as CursorQueryPagingMethodOneOf, af as CursorSearch, ag as CursorSearchPagingMethodOneOf, a3 as Cursors, aq as DateHistogramAggregation, aM as DateHistogramResult, aO as DateHistogramResults, ab as DeleteResourceRequest, ac as DeleteResourceResponse, a$ as DomainEvent, b0 as DomainEventBodyOneOf, b6 as Empty, b1 as EntityCreatedEvent, b4 as EntityDeletedEvent, b3 as EntityUpdatedEvent, bb as EventMetadata, F as EventsSchedule, G as ExtendedFields, aX as FixResourceSchedulesRequest, aY as FixResourceSchedulesResponse, Z as GetDeletedResourceRequest, _ as GetDeletedResourceResponse, X as GetResourceRequest, Y as GetResourceResponse, au as GroupByAggregation, av as GroupByAggregationKindOneOf, aN as GroupByValueResults, b8 as IdentificationData, b9 as IdentificationDataIdOneOf, al as IncludeMissingValuesOptions, I as Interval, bl as IntervalWithLiterals, P as ItemMetadata, $ as ListDeletedResourcesRequest, a1 as ListDeletedResourcesResponse, L as LocationOptions, o as ManagementType, be as ManagementTypeWithLiterals, b7 as MessageEnvelope, s as MissingValues, bi as MissingValuesWithLiterals, u as Mode, bn as ModeWithLiterals, at as NestedAggregation, ar as NestedAggregationItem, as as NestedAggregationItemKindOneOf, aA as NestedAggregationResults, aB as NestedAggregationResultsResultOneOf, N as NestedAggregationType, bk as NestedAggregationTypeWithLiterals, aJ as NestedResultValue, aK as NestedResultValueResultOneOf, aP as NestedResults, aF as NestedValueAggregationResult, aS as QueryResourcesRequest, aV as QueryResourcesResponse, ao as RangeAggregation, az as RangeAggregationResult, ak as RangeBucket, aH as RangeResult, aD as RangeResults, aZ as ReindexTenantRequest, a_ as ReindexTenantResponse, a4 as RemoveResourceFromTrashBinRequest, a5 as RemoveResourceFromTrashBinResponse, v as ResourceCompositionDetailsOneOf, bc as ResourceSearchSpec, bd as ResourcesQueryResult, b2 as RestoreInfo, a6 as RestoreResourceFromTrashBinRequest, a7 as RestoreResourceFromTrashBinResponse, aL as Results, ap as ScalarAggregation, aI as ScalarResult, t as ScalarType, bj as ScalarTypeWithLiterals, y as Schedule, aw as SearchDetails, ae as SearchResourcesRequest, x as SingleResource, r as SortDirection, bh as SortDirectionWithLiterals, p as SortOrder, bf as SortOrderWithLiterals, q as SortType, bg as SortTypeWithLiterals, ah as Sorting, z as SpecificLocation, a8 as UpdateResourceRequest, a9 as UpdateResourceResponse, V as V2WorkingHoursSchedules, am as ValueAggregation, an as ValueAggregationOptionsOneOf, ay as ValueAggregationResult, aG as ValueResult, aC as ValueResults, W as WebhookIdentityType, bo as WebhookIdentityTypeWithLiterals, w as WorkingHoursSchedule, E as WorkingHoursSchedules } from './bookings-resources-v2-resource-resources.universal-CLt-Jfz-.js';
2
+ import { R as Resource, C as CreateResourceValidationErrors, B as BulkCreateResourcesOptions, a as BulkCreateResourcesResponse, b as BulkCreateResourcesValidationErrors, U as UpdateResource, c as UpdateResourceValidationErrors, M as MaskedResource, d as BulkUpdateResourcesOptions, e as BulkUpdateResourcesResponse, f as BulkUpdateResourcesValidationErrors, g as BulkDeleteResourcesResponse, h as ResourceSearch, S as SearchResourcesResponse, i as CountResourcesOptions, j as CountResourcesResponse, k as ResourceCreatedEnvelope, l as ResourceDeletedEnvelope, m as ResourceUpdatedEnvelope, n as ResourcesQueryBuilder, o as CursorQuery, t as typedQueryResources } from './bookings-resources-v2-resource-resources.universal-eE3GuYhS.js';
3
+ export { b6 as ActionEvent, ak as Aggregation, az as AggregationData, al as AggregationKindOneOf, aS as AggregationResults, aT as AggregationResultsResultOneOf, aG as AggregationResultsScalarResult, A as AggregationType, bn as AggregationTypeWithLiterals, X as ApplicationError, bb as BaseEventMetadata, Y as BulkActionMetadata, P as BulkCreateResourcesRequest, af as BulkDeleteResourcesRequest, Q as BulkResourceResult, ac as BulkUpdateResourcesRequest, F as BusinessLocation, bq as CommonSearchWithEntityContext, aX as CountResourcesRequest, K as CreateResourceRequest, O as CreateResourceResponse, a2 as CursorPaging, a4 as CursorPagingMetadata, aV as CursorQueryPagingMethodOneOf, ah as CursorSearch, ai as CursorSearchPagingMethodOneOf, a5 as Cursors, as as DateHistogramAggregation, aO as DateHistogramResult, aQ as DateHistogramResults, ad as DeleteResourceRequest, ae as DeleteResourceResponse, b0 as DomainEvent, b1 as DomainEventBodyOneOf, b7 as Empty, b2 as EntityCreatedEvent, b5 as EntityDeletedEvent, b4 as EntityUpdatedEvent, bc as EventMetadata, H as EventsSchedule, J as ExtendedFields, aY as FixResourceSchedulesRequest, aZ as FixResourceSchedulesResponse, $ as GetDeletedResourceRequest, a0 as GetDeletedResourceResponse, Z as GetResourceRequest, _ as GetResourceResponse, aw as GroupByAggregation, ax as GroupByAggregationKindOneOf, aP as GroupByValueResults, b9 as IdentificationData, ba as IdentificationDataIdOneOf, an as IncludeMissingValuesOptions, I as Interval, bm as IntervalWithLiterals, T as ItemMetadata, a1 as ListDeletedResourcesRequest, a3 as ListDeletedResourcesResponse, L as LocationOptions, p as ManagementType, bf as ManagementTypeWithLiterals, b8 as MessageEnvelope, u as MissingValues, bj as MissingValuesWithLiterals, w as Mode, bo as ModeWithLiterals, av as NestedAggregation, at as NestedAggregationItem, au as NestedAggregationItemKindOneOf, aC as NestedAggregationResults, aD as NestedAggregationResultsResultOneOf, N as NestedAggregationType, bl as NestedAggregationTypeWithLiterals, aL as NestedResultValue, aM as NestedResultValueResultOneOf, aR as NestedResults, aH as NestedValueAggregationResult, aU as QueryResourcesRequest, aW as QueryResourcesResponse, aq as RangeAggregation, aB as RangeAggregationResult, am as RangeBucket, aJ as RangeResult, aF as RangeResults, a_ as ReindexTenantRequest, a$ as ReindexTenantResponse, a6 as RemoveResourceFromTrashBinRequest, a7 as RemoveResourceFromTrashBinResponse, x as ResourceCompositionDetailsOneOf, bd as ResourceSearchSpec, be as ResourcesQueryResult, b3 as RestoreInfo, a8 as RestoreResourceFromTrashBinRequest, a9 as RestoreResourceFromTrashBinResponse, aN as Results, ar as ScalarAggregation, aK as ScalarResult, v as ScalarType, bk as ScalarTypeWithLiterals, D as Schedule, ay as SearchDetails, ag as SearchResourcesRequest, z as SingleResource, s as SortDirection, bi as SortDirectionWithLiterals, q as SortOrder, bg as SortOrderWithLiterals, r as SortType, bh as SortTypeWithLiterals, aj as Sorting, E as SpecificLocation, aa as UpdateResourceRequest, ab as UpdateResourceResponse, V as V2WorkingHoursSchedules, ao as ValueAggregation, ap as ValueAggregationOptionsOneOf, aA as ValueAggregationResult, aI as ValueResult, aE as ValueResults, W as WebhookIdentityType, bp as WebhookIdentityTypeWithLiterals, y as WorkingHoursSchedule, G as WorkingHoursSchedules } from './bookings-resources-v2-resource-resources.universal-eE3GuYhS.js';
4
4
 
5
5
  declare function createResource$1(httpClient: HttpClient): CreateResourceSignature;
6
6
  interface CreateResourceSignature {
@@ -10,8 +10,7 @@ interface CreateResourceSignature {
10
10
  *
11
11
  * ### Connected schedules
12
12
  *
13
- * A new event *schedule*
14
- * ([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))
13
+ * A new event [schedule](https://dev.wix.com/docs/api-reference/business-management/calendar/wix-bookings-integration)
15
14
  * is automatically created for the resource.
16
15
  *
17
16
  * ### Locations
@@ -35,8 +34,7 @@ interface BulkCreateResourcesSignature {
35
34
  * Creates up to 50 resources.
36
35
  *
37
36
  *
38
- * Refer to *Create Resource*
39
- * ([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))
37
+ * Refer to [Create Resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/create-resource)
40
38
  * for more details.
41
39
  * @param - Resources to create.
42
40
  */
@@ -74,8 +72,7 @@ interface BulkUpdateResourcesSignature {
74
72
  * Updates multiple resources.
75
73
  *
76
74
  *
77
- * Refer to *Update Resource*
78
- * ([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
+ * Refer to [Update Resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/update-resource)
79
76
  * for more details.
80
77
  * @param - Resources to update.
81
78
  */
@@ -91,8 +88,7 @@ interface DeleteResourceSignature {
91
88
  *
92
89
  * Deleting a resource cancels its event schedule and all its working hour
93
90
  * schedules that aren't shared with another resource. Learn more about
94
- * _how Bookings uses the Calendar APIs_
95
- * ([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)).
91
+ * [how Bookings uses the Calendar APIs](https://dev.wix.com/docs/api-reference/business-management/calendar/wix-bookings-integration).
96
92
  * @param - ID of the resource to delete.
97
93
  */
98
94
  (resourceId: string): Promise<void>;
@@ -103,8 +99,7 @@ interface BulkDeleteResourcesSignature {
103
99
  * Deletes multiple resources.
104
100
  *
105
101
  *
106
- * Refer to *Delete Resource*
107
- * ([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))
102
+ * Refer to [Delete Resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/delete-resource)
108
103
  * for more details.
109
104
  * @param - IDs of the resources to delete.
110
105
  */
@@ -116,44 +111,19 @@ interface SearchResourcesSignature {
116
111
  * Retrieves a list of resources matching the provided search criteria.
117
112
  *
118
113
  *
119
- * 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
+ * Refer to the [supported filters article](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/filtering-and-sorting) for complete filter and sorting options.
120
115
  * @param - Search criteria including filter, sort, aggregations, and paging options.
121
116
  *
122
- * 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.
117
+ * Refer to the [supported filters article](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/filtering-and-sorting) for complete filter and sorting options.
123
118
  */
124
119
  (search: ResourceSearch): Promise<NonNullablePaths<SearchResourcesResponse, `resources` | `aggregationData.results` | `aggregationData.results.${number}.scalar.type` | `aggregationData.results.${number}.scalar.value` | `aggregationData.results.${number}.name` | `aggregationData.results.${number}.type` | `aggregationData.results.${number}.fieldPath`, 6>>;
125
120
  }
126
- declare function queryResources$1(httpClient: HttpClient): QueryResourcesSignature;
127
- interface QueryResourcesSignature {
128
- /**
129
- * Creates a query to retrieve a list of resources.
130
- *
131
- * The `queryResources()` function builds a query to retrieve a list of resources and returns a `ResourcesQueryBuilder` object.
132
- *
133
- * 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.
134
- *
135
- * 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.
136
- *
137
- * `queryResources()` runs with the following `ResourcesQueryBuilder` default that you can override:
138
- *
139
- * + `limit` is `50`.
140
- * + Sorted by `id` in ascending order.
141
- *
142
- * 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"`.
143
- *
144
- * 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`.
145
- */
146
- (): ResourcesQueryBuilder;
147
- }
148
121
  declare function countResources$1(httpClient: HttpClient): CountResourcesSignature;
149
122
  interface CountResourcesSignature {
150
123
  /**
151
124
  * Counts resources according to given criteria.
152
125
  *
153
- *
154
- * Refer to the *supported filters article*
155
- * ([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))
156
- * for a complete list of supported filters and sorting options.
126
+ * Refer to the [supported filters article](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/filtering-and-sorting) for a complete list of supported filters and sorting options.
157
127
  * @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.
158
128
  */
159
129
  (options?: CountResourcesOptions): Promise<NonNullablePaths<CountResourcesResponse, `count`, 2>>;
@@ -162,6 +132,10 @@ declare const onResourceCreated$1: EventDefinition<ResourceCreatedEnvelope, "wix
162
132
  declare const onResourceDeleted$1: EventDefinition<ResourceDeletedEnvelope, "wix.bookings.resources.v2.resource_deleted">;
163
133
  declare const onResourceUpdated$1: EventDefinition<ResourceUpdatedEnvelope, "wix.bookings.resources.v2.resource_updated">;
164
134
 
135
+ declare function customQueryResources(httpClient: HttpClient): {
136
+ (): ResourcesQueryBuilder;
137
+ (query: CursorQuery): ReturnType<typeof typedQueryResources>;
138
+ };
165
139
  declare const createResource: MaybeContext<BuildRESTFunction<typeof createResource$1> & typeof createResource$1>;
166
140
  declare const bulkCreateResources: MaybeContext<BuildRESTFunction<typeof bulkCreateResources$1> & typeof bulkCreateResources$1>;
167
141
  declare const getResource: MaybeContext<BuildRESTFunction<typeof getResource$1> & typeof getResource$1>;
@@ -170,8 +144,8 @@ declare const bulkUpdateResources: MaybeContext<BuildRESTFunction<typeof bulkUpd
170
144
  declare const deleteResource: MaybeContext<BuildRESTFunction<typeof deleteResource$1> & typeof deleteResource$1>;
171
145
  declare const bulkDeleteResources: MaybeContext<BuildRESTFunction<typeof bulkDeleteResources$1> & typeof bulkDeleteResources$1>;
172
146
  declare const searchResources: MaybeContext<BuildRESTFunction<typeof searchResources$1> & typeof searchResources$1>;
173
- declare const queryResources: MaybeContext<BuildRESTFunction<typeof queryResources$1> & typeof queryResources$1>;
174
147
  declare const countResources: MaybeContext<BuildRESTFunction<typeof countResources$1> & typeof countResources$1>;
148
+ declare const queryResources: MaybeContext<BuildRESTFunction<typeof customQueryResources> & typeof customQueryResources>;
175
149
  /**
176
150
  * Triggered when a resource is created.
177
151
  */
@@ -185,4 +159,4 @@ declare const onResourceDeleted: BuildEventDefinition<typeof onResourceDeleted$1
185
159
  */
186
160
  declare const onResourceUpdated: BuildEventDefinition<typeof onResourceUpdated$1> & typeof onResourceUpdated$1;
187
161
 
188
- export { BulkCreateResourcesOptions, BulkCreateResourcesResponse, BulkCreateResourcesValidationErrors, BulkDeleteResourcesResponse, BulkUpdateResourcesOptions, BulkUpdateResourcesResponse, BulkUpdateResourcesValidationErrors, CountResourcesOptions, CountResourcesResponse, CreateResourceValidationErrors, MaskedResource, Resource, ResourceCreatedEnvelope, ResourceDeletedEnvelope, ResourceSearch, ResourceUpdatedEnvelope, ResourcesQueryBuilder, SearchResourcesResponse, UpdateResource, UpdateResourceValidationErrors, bulkCreateResources, bulkDeleteResources, bulkUpdateResources, countResources, createResource, deleteResource, getResource, onResourceCreated, onResourceDeleted, onResourceUpdated, queryResources, searchResources, updateResource };
162
+ export { BulkCreateResourcesOptions, BulkCreateResourcesResponse, BulkCreateResourcesValidationErrors, BulkDeleteResourcesResponse, BulkUpdateResourcesOptions, BulkUpdateResourcesResponse, BulkUpdateResourcesValidationErrors, CountResourcesOptions, CountResourcesResponse, CreateResourceValidationErrors, CursorQuery, MaskedResource, Resource, ResourceCreatedEnvelope, ResourceDeletedEnvelope, ResourceSearch, ResourceUpdatedEnvelope, ResourcesQueryBuilder, SearchResourcesResponse, UpdateResource, UpdateResourceValidationErrors, bulkCreateResources, bulkDeleteResources, bulkUpdateResources, countResources, createResource, deleteResource, getResource, onResourceCreated, onResourceDeleted, onResourceUpdated, queryResources, searchResources, updateResource };
@@ -795,6 +795,29 @@ function queryResources2() {
795
795
  transformationPaths: {}
796
796
  });
797
797
  }
798
+ async function typedQueryResources(query) {
799
+ const { httpClient, sideEffects } = arguments[1];
800
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
801
+ const reqOpts = queryResources(payload);
802
+ sideEffects?.onSiteCall?.();
803
+ try {
804
+ const result = await httpClient.request(reqOpts);
805
+ sideEffects?.onSuccess?.(result);
806
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
807
+ } catch (err) {
808
+ const transformedError = (0, import_transform_error.transformError)(
809
+ err,
810
+ {
811
+ spreadPathsToArguments: {},
812
+ explicitPathsToArguments: { query: "$[0]" },
813
+ singleArgumentUnchanged: false
814
+ },
815
+ ["query"]
816
+ );
817
+ sideEffects?.onError?.(err);
818
+ throw transformedError;
819
+ }
820
+ }
798
821
  async function countResources2(options) {
799
822
  const { httpClient, sideEffects } = arguments[1];
800
823
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -891,6 +914,13 @@ function queryResources3(httpClient) {
891
914
  { httpClient }
892
915
  );
893
916
  }
917
+ function typedQueryResources2(httpClient) {
918
+ return (query) => typedQueryResources(
919
+ query,
920
+ // @ts-ignore
921
+ { httpClient }
922
+ );
923
+ }
894
924
  function countResources3(httpClient) {
895
925
  return (options) => countResources2(
896
926
  options,
@@ -950,6 +980,18 @@ var onResourceUpdated = (0, import_sdk_types.EventDefinition)(
950
980
  // src/bookings-resources-v2-resource-resources.context.ts
951
981
  var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
952
982
  var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
983
+ var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
984
+ function customQueryResources(httpClient) {
985
+ const router = (0, import_query_method_router.createQueryOverloadRouter)({
986
+ builderQueryFunction: () => queryResources3(httpClient)(),
987
+ typedQueryFunction: (query) => typedQueryResources2(httpClient)(query),
988
+ hasOptionsParameter: false
989
+ });
990
+ function overloadedQuery(query) {
991
+ return router(...arguments);
992
+ }
993
+ return overloadedQuery;
994
+ }
953
995
  var createResource4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createResource3);
954
996
  var bulkCreateResources4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateResources3);
955
997
  var getResource4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getResource3);
@@ -958,8 +1000,8 @@ var bulkUpdateResources4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTMo
958
1000
  var deleteResource4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteResource3);
959
1001
  var bulkDeleteResources4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkDeleteResources3);
960
1002
  var searchResources4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(searchResources3);
961
- var queryResources4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryResources3);
962
1003
  var countResources4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(countResources3);
1004
+ var queryResources4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryResources);
963
1005
  var onResourceCreated2 = (0, import_event_definition_modules.createEventModule)(onResourceCreated);
964
1006
  var onResourceDeleted2 = (0, import_event_definition_modules.createEventModule)(onResourceDeleted);
965
1007
  var onResourceUpdated2 = (0, import_event_definition_modules.createEventModule)(onResourceUpdated);