@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
@@ -1,10 +1,9 @@
1
- import { H as CreateResourceRequest$1, J as CreateResourceResponse$1, K as BulkCreateResourcesRequest$1, a as BulkCreateResourcesResponse$1, X as GetResourceRequest$1, Y as GetResourceResponse$1, a8 as UpdateResourceRequest$1, a9 as UpdateResourceResponse$1, aa as BulkUpdateResourcesRequest$1, e as BulkUpdateResourcesResponse$1, ab as DeleteResourceRequest$1, ac as DeleteResourceResponse$1, ad as BulkDeleteResourcesRequest$1, g as BulkDeleteResourcesResponse$1, ae as SearchResourcesRequest$1, S as SearchResourcesResponse$1, aS as QueryResourcesRequest$1, aV as QueryResourcesResponse$1, aW as CountResourcesRequest$1, k as CountResourcesResponse$1 } from './bookings-resources-v2-resource-resources.universal-CLt-Jfz-.mjs';
1
+ import { K as CreateResourceRequest$1, O as CreateResourceResponse$1, P as BulkCreateResourcesRequest$1, a as BulkCreateResourcesResponse$1, Z as GetResourceRequest$1, _ as GetResourceResponse$1, aa as UpdateResourceRequest$1, ab as UpdateResourceResponse$1, ac as BulkUpdateResourcesRequest$1, e as BulkUpdateResourcesResponse$1, ad as DeleteResourceRequest$1, ae as DeleteResourceResponse$1, af as BulkDeleteResourcesRequest$1, g as BulkDeleteResourcesResponse$1, ag as SearchResourcesRequest$1, S as SearchResourcesResponse$1, aU as QueryResourcesRequest$1, aW as QueryResourcesResponse$1, aX as CountResourcesRequest$1, j as CountResourcesResponse$1 } from './bookings-resources-v2-resource-resources.universal-eE3GuYhS.mjs';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  /**
5
5
  * A resource represents an entity, such as a room or a staff member, that can be
6
- * scheduled for use in a *booking*
7
- * ([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)).
6
+ * scheduled for use in a [booking](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/about-the-bookings-apis).
8
7
  * The availability of a resource is tracked to ensure that it
9
8
  * can be allocated at a requested time slot and to prevent double bookings.
10
9
  */
@@ -39,8 +38,7 @@ interface Resource extends ResourceCompositionDetailsOneOf {
39
38
  */
40
39
  name?: string | null;
41
40
  /**
42
- * ID of the *resource type*
43
- * ([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)).
41
+ * ID of the [resource type](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resource-types-v2/introduction).
44
42
  *
45
43
  * Once a type has been set it can't be modified. You can create a resource
46
44
  * without specifying a type. However, customers can't book such resources.
@@ -49,8 +47,7 @@ interface Resource extends ResourceCompositionDetailsOneOf {
49
47
  */
50
48
  typeId?: string | null;
51
49
  /**
52
- * Information about the *schedule*
53
- * ([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))
50
+ * Information about the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)
54
51
  * specifying the working hours and locations of the resource.
55
52
  *
56
53
  * Resources without a working hour schedule are available 24/7 at the locations
@@ -62,8 +59,7 @@ interface Resource extends ResourceCompositionDetailsOneOf {
62
59
  /** Information about the location where the resource is available. */
63
60
  locationOptions?: LocationOptions;
64
61
  /**
65
- * Schedule containing the *events*
66
- * ([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))
62
+ * Schedule containing the [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)
67
63
  * for which the resource has been booked.
68
64
  * @readonly
69
65
  */
@@ -76,8 +72,7 @@ interface ResourceCompositionDetailsOneOf {
76
72
  }
77
73
  interface WorkingHoursSchedule {
78
74
  /**
79
- * ID of the working hour *schedule*
80
- * ([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)).
75
+ * ID of the working hour [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction).
81
76
  * @format GUID
82
77
  */
83
78
  scheduleId?: string | null;
@@ -107,8 +102,7 @@ interface SingleResource {
107
102
  */
108
103
  locationOptions?: LocationOptions;
109
104
  /**
110
- * Schedule containing the *events*
111
- * ([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))
105
+ * Schedule containing the [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)
112
106
  * for which the resource has been booked.
113
107
  * @readonly
114
108
  */
@@ -138,8 +132,7 @@ interface Schedule {
138
132
  }
139
133
  interface LocationOptions {
140
134
  /**
141
- * Whether the resource is available in all *business locations*
142
- * ([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)).
135
+ * 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).
143
136
  *
144
137
  * - `true`: The resource is available in all business locations.
145
138
  * - `false`: The resource is available only in specific locations.
@@ -152,8 +145,7 @@ interface LocationOptions {
152
145
  }
153
146
  interface SpecificLocation {
154
147
  /**
155
- * Whether the resource is available in *business locations*
156
- * ([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)).
148
+ * 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).
157
149
  *
158
150
  * - `true`: The resource is available in business locations.
159
151
  * - `false`: The resource isn't available in business locations.
@@ -172,8 +164,7 @@ interface SpecificLocation {
172
164
  }
173
165
  interface BusinessLocation {
174
166
  /**
175
- * ID of the business *location*
176
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction)).
167
+ * ID of the business [location](https://dev.wix.com/docs/rest/business-management/locations/introduction).
177
168
  * @format GUID
178
169
  */
179
170
  locationId?: string | null;
@@ -187,8 +178,7 @@ interface WorkingHoursSchedules {
187
178
  }
188
179
  interface EventsSchedule {
189
180
  /**
190
- * ID of the event *schedule*
191
- * ([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)).
181
+ * ID of the event [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction).
192
182
  * @format GUID
193
183
  */
194
184
  scheduleId?: string | null;
@@ -448,7 +438,7 @@ interface SearchResourcesRequest {
448
438
  /**
449
439
  * Search criteria including filter, sort, aggregations, and paging options.
450
440
  *
451
- * 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.
441
+ * 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.
452
442
  */
453
443
  search?: CursorSearch;
454
444
  }
@@ -461,13 +451,13 @@ interface CursorSearch extends CursorSearchPagingMethodOneOf {
461
451
  /**
462
452
  * 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"]}}`.
463
453
  *
464
- * 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)).
454
+ * 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).
465
455
  */
466
456
  filter?: Record<string, any> | null;
467
457
  /**
468
458
  * Array of sort objects specifying result order. For example, to sort by resource name in ascending order: `"sort": [{"fieldName": "name", "order": "ASC"}]`.
469
459
  *
470
- * 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)).
460
+ * 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).
471
461
  * @maxSize 10
472
462
  */
473
463
  sort?: Sorting[];
@@ -1010,11 +1000,7 @@ interface AggregationResultsResultOneOf {
1010
1000
  nested?: NestedResults;
1011
1001
  }
1012
1002
  interface QueryResourcesRequest {
1013
- /**
1014
- * Query for retrieving resources. Refer to the *supported filters article*
1015
- * ([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))
1016
- * for a complete list of supported filters.
1017
- */
1003
+ /** 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. */
1018
1004
  query?: CursorQuery;
1019
1005
  }
1020
1006
  interface CursorQuery extends CursorQueryPagingMethodOneOf {
@@ -1048,11 +1034,7 @@ interface QueryResourcesResponse {
1048
1034
  pagingMetadata?: CursorPagingMetadata;
1049
1035
  }
1050
1036
  interface CountResourcesRequest {
1051
- /**
1052
- * Filter to base the count on. Refer to the *supported filters article*
1053
- * ([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))
1054
- * for a complete list of supported filters.
1055
- */
1037
+ /** 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. */
1056
1038
  filter?: Record<string, any> | null;
1057
1039
  /**
1058
1040
  * Free text to match in searchable fields. Field is deprecated due to decision to use query instead of search for performing the count.