@wix/auto_sdk_bookings_resources 1.0.0 → 1.0.2

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 (53) hide show
  1. package/build/cjs/src/bookings-resources-v2-resource-resources.context.d.ts +2 -6
  2. package/build/cjs/src/bookings-resources-v2-resource-resources.context.js +2 -6
  3. package/build/cjs/src/bookings-resources-v2-resource-resources.context.js.map +1 -1
  4. package/build/cjs/src/bookings-resources-v2-resource-resources.http.d.ts +47 -17
  5. package/build/cjs/src/bookings-resources-v2-resource-resources.http.js +46 -16
  6. package/build/cjs/src/bookings-resources-v2-resource-resources.http.js.map +1 -1
  7. package/build/cjs/src/bookings-resources-v2-resource-resources.public.d.ts +47 -23
  8. package/build/cjs/src/bookings-resources-v2-resource-resources.public.js.map +1 -1
  9. package/build/cjs/src/bookings-resources-v2-resource-resources.types.d.ts +110 -64
  10. package/build/cjs/src/bookings-resources-v2-resource-resources.types.js.map +1 -1
  11. package/build/cjs/src/bookings-resources-v2-resource-resources.universal.d.ts +197 -105
  12. package/build/cjs/src/bookings-resources-v2-resource-resources.universal.js +46 -22
  13. package/build/cjs/src/bookings-resources-v2-resource-resources.universal.js.map +1 -1
  14. package/build/es/src/bookings-resources-v2-resource-resources.context.d.ts +2 -6
  15. package/build/es/src/bookings-resources-v2-resource-resources.context.js +2 -6
  16. package/build/es/src/bookings-resources-v2-resource-resources.context.js.map +1 -1
  17. package/build/es/src/bookings-resources-v2-resource-resources.http.d.ts +47 -17
  18. package/build/es/src/bookings-resources-v2-resource-resources.http.js +46 -16
  19. package/build/es/src/bookings-resources-v2-resource-resources.http.js.map +1 -1
  20. package/build/es/src/bookings-resources-v2-resource-resources.public.d.ts +47 -23
  21. package/build/es/src/bookings-resources-v2-resource-resources.public.js.map +1 -1
  22. package/build/es/src/bookings-resources-v2-resource-resources.types.d.ts +110 -64
  23. package/build/es/src/bookings-resources-v2-resource-resources.types.js.map +1 -1
  24. package/build/es/src/bookings-resources-v2-resource-resources.universal.d.ts +197 -105
  25. package/build/es/src/bookings-resources-v2-resource-resources.universal.js +46 -22
  26. package/build/es/src/bookings-resources-v2-resource-resources.universal.js.map +1 -1
  27. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.context.d.ts +2 -6
  28. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.context.js +2 -6
  29. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.context.js.map +1 -1
  30. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.http.d.ts +47 -17
  31. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.http.js +46 -16
  32. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.http.js.map +1 -1
  33. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.public.d.ts +47 -23
  34. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.public.js.map +1 -1
  35. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.types.d.ts +110 -64
  36. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.types.js.map +1 -1
  37. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.universal.d.ts +197 -105
  38. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.universal.js +46 -22
  39. package/build/internal/cjs/src/bookings-resources-v2-resource-resources.universal.js.map +1 -1
  40. package/build/internal/es/src/bookings-resources-v2-resource-resources.context.d.ts +2 -6
  41. package/build/internal/es/src/bookings-resources-v2-resource-resources.context.js +2 -6
  42. package/build/internal/es/src/bookings-resources-v2-resource-resources.context.js.map +1 -1
  43. package/build/internal/es/src/bookings-resources-v2-resource-resources.http.d.ts +47 -17
  44. package/build/internal/es/src/bookings-resources-v2-resource-resources.http.js +46 -16
  45. package/build/internal/es/src/bookings-resources-v2-resource-resources.http.js.map +1 -1
  46. package/build/internal/es/src/bookings-resources-v2-resource-resources.public.d.ts +47 -23
  47. package/build/internal/es/src/bookings-resources-v2-resource-resources.public.js.map +1 -1
  48. package/build/internal/es/src/bookings-resources-v2-resource-resources.types.d.ts +110 -64
  49. package/build/internal/es/src/bookings-resources-v2-resource-resources.types.js.map +1 -1
  50. package/build/internal/es/src/bookings-resources-v2-resource-resources.universal.d.ts +197 -105
  51. package/build/internal/es/src/bookings-resources-v2-resource-resources.universal.js +46 -22
  52. package/build/internal/es/src/bookings-resources-v2-resource-resources.universal.js.map +1 -1
  53. package/package.json +2 -2
@@ -14,15 +14,11 @@ export declare const searchResources: MaybeContext<BuildRESTFunction<typeof publ
14
14
  export declare const queryResources: MaybeContext<BuildRESTFunction<typeof publicQueryResources> & typeof publicQueryResources>;
15
15
  export declare const countResources: MaybeContext<BuildRESTFunction<typeof publicCountResources> & typeof publicCountResources>;
16
16
  /**
17
- * Triggered for each resource that is created.
18
- *
19
- * This event has the same structure as [Resource Created](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/create-resource#resource-created).
17
+ * Triggered when a resource is created.
20
18
  */
21
19
  export declare const onResourceCreated: ReturnType<typeof createEventModule<typeof publicOnResourceCreated>>;
22
20
  /**
23
- * Triggered for each resource that is deleted.
24
- *
25
- * This event has the same structure as [Resource Deleted](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/bulk-delete-resources#resource-deleted).
21
+ * Triggered when a resource is deleted.
26
22
  */
27
23
  export declare const onResourceDeleted: ReturnType<typeof createEventModule<typeof publicOnResourceDeleted>>;
28
24
  /**
@@ -17,15 +17,11 @@ exports.searchResources = (0, rest_modules_1.createRESTModule)(bookings_resource
17
17
  exports.queryResources = (0, rest_modules_1.createRESTModule)(bookings_resources_v2_resource_resources_public_js_1.queryResources);
18
18
  exports.countResources = (0, rest_modules_1.createRESTModule)(bookings_resources_v2_resource_resources_public_js_1.countResources);
19
19
  /**
20
- * Triggered for each resource that is created.
21
- *
22
- * This event has the same structure as [Resource Created](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/create-resource#resource-created).
20
+ * Triggered when a resource is created.
23
21
  */
24
22
  exports.onResourceCreated = (0, event_definition_modules_1.createEventModule)(bookings_resources_v2_resource_resources_public_js_2.onResourceCreated);
25
23
  /**
26
- * Triggered for each resource that is deleted.
27
- *
28
- * This event has the same structure as [Resource Deleted](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/bulk-delete-resources#resource-deleted).
24
+ * Triggered when a resource is deleted.
29
25
  */
30
26
  exports.onResourceDeleted = (0, event_definition_modules_1.createEventModule)(bookings_resources_v2_resource_resources_public_js_3.onResourceDeleted);
31
27
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-resources-v2-resource-resources.context.js","sourceRoot":"","sources":["../../../src/bookings-resources-v2-resource-resources.context.ts"],"names":[],"mappings":";;;AAAA,6HAU8D;AAC9D,gEAAiE;AACjE,wFAA8E;AAE9E,6HAAoH;AACpH,6HAAoH;AACpH,6HAAoH;AAEvG,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,mEAAoB,CAAC,CAAC;AAC5C,QAAA,mBAAmB,GAGd,IAAA,+BAAgB,EAAC,wEAAyB,CAAC,CAAC;AACjD,QAAA,WAAW,GAEN,IAAA,+BAAgB,EAAC,gEAAiB,CAAC,CAAC;AACzC,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,mEAAoB,CAAC,CAAC;AAC5C,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,mEAAoB,CAAC,CAAC;AAC5C,QAAA,mBAAmB,GAGd,IAAA,+BAAgB,EAAC,wEAAyB,CAAC,CAAC;AACjD,QAAA,eAAe,GAEV,IAAA,+BAAgB,EAAC,oEAAqB,CAAC,CAAC;AAC7C,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,mEAAoB,CAAC,CAAC;AAC5C,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,mEAAoB,CAAC,CAAC;AACzD;;;;GAIG;AACU,QAAA,iBAAiB,GAE1B,IAAA,4CAAiB,EAAC,sEAAuB,CAAC,CAAC;AAC/C;;;;GAIG;AACU,QAAA,iBAAiB,GAE1B,IAAA,4CAAiB,EAAC,sEAAuB,CAAC,CAAC;AAC/C;;GAEG;AACU,QAAA,iBAAiB,GAE1B,IAAA,4CAAiB,EAAC,sEAAuB,CAAC,CAAC;AAE/C,iIAYiE;AAX/D,uJAAA,cAAc,OAAA;AACd,kJAAA,SAAS,OAAA;AACT,iJAAA,QAAQ,OAAA;AACR,sJAAA,aAAa,OAAA;AACb,sJAAA,aAAa,OAAA;AACb,mJAAA,UAAU,OAAA;AACV,8JAAA,qBAAqB,OAAA;AACrB,iJAAA,QAAQ,OAAA;AACR,wJAAA,eAAe,OAAA;AACf,6IAAA,IAAI,OAAA;AACJ,4JAAA,mBAAmB,OAAA"}
1
+ {"version":3,"file":"bookings-resources-v2-resource-resources.context.js","sourceRoot":"","sources":["../../../src/bookings-resources-v2-resource-resources.context.ts"],"names":[],"mappings":";;;AAAA,6HAU8D;AAC9D,gEAAiE;AACjE,wFAA8E;AAE9E,6HAAoH;AACpH,6HAAoH;AACpH,6HAAoH;AAEvG,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,mEAAoB,CAAC,CAAC;AAC5C,QAAA,mBAAmB,GAGd,IAAA,+BAAgB,EAAC,wEAAyB,CAAC,CAAC;AACjD,QAAA,WAAW,GAEN,IAAA,+BAAgB,EAAC,gEAAiB,CAAC,CAAC;AACzC,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,mEAAoB,CAAC,CAAC;AAC5C,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,mEAAoB,CAAC,CAAC;AAC5C,QAAA,mBAAmB,GAGd,IAAA,+BAAgB,EAAC,wEAAyB,CAAC,CAAC;AACjD,QAAA,eAAe,GAEV,IAAA,+BAAgB,EAAC,oEAAqB,CAAC,CAAC;AAC7C,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,mEAAoB,CAAC,CAAC;AAC5C,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,mEAAoB,CAAC,CAAC;AACzD;;GAEG;AACU,QAAA,iBAAiB,GAE1B,IAAA,4CAAiB,EAAC,sEAAuB,CAAC,CAAC;AAC/C;;GAEG;AACU,QAAA,iBAAiB,GAE1B,IAAA,4CAAiB,EAAC,sEAAuB,CAAC,CAAC;AAC/C;;GAEG;AACU,QAAA,iBAAiB,GAE1B,IAAA,4CAAiB,EAAC,sEAAuB,CAAC,CAAC;AAE/C,iIAYiE;AAX/D,uJAAA,cAAc,OAAA;AACd,kJAAA,SAAS,OAAA;AACT,iJAAA,QAAQ,OAAA;AACR,sJAAA,aAAa,OAAA;AACb,sJAAA,aAAa,OAAA;AACb,mJAAA,UAAU,OAAA;AACV,8JAAA,qBAAqB,OAAA;AACrB,iJAAA,QAAQ,OAAA;AACR,wJAAA,eAAe,OAAA;AACf,6IAAA,IAAI,OAAA;AACJ,4JAAA,mBAAmB,OAAA"}
@@ -2,24 +2,38 @@ import { RequestOptionsFactory } from '@wix/sdk-types';
2
2
  /**
3
3
  * Creates a new resource.
4
4
  *
5
- * A new events schedule is automatically created specific to this resource. This schedule will contain information
6
- * on when the resource is booked in order to prevent double bookings.
7
- * See [Schedules API](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) for more information.
8
- *
9
- * - If the request does not include the field `locationOptions`, then the service will create this field and set
10
- * `availableInAllLocations` in this structure to `true`.
11
- * - If the request includes one or more business location IDs in the `locationOptions.specificLocationOptions.businessLocations`
12
- * field, then the field `locationOptions.specificLocationOptions.availableInBusinessLocations` must be set
13
- * to `true`.
5
+ *
6
+ * ## Connected schedules
7
+ *
8
+ * A new event *schedule*
9
+ * ([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))
10
+ * is automatically created for the resource.
11
+ *
12
+ * ## Locations
13
+ *
14
+ * If you don't specify `locationOptions`, Wix Bookings automatically sets
15
+ * `locationOptions.availableInAllLocations` to `true`.
16
+ *
17
+ * If you specify 1 business location ID in `locationOptions.specificLocationOptions.businessLocations`,
18
+ * you must specify `locationOptions.specificLocationOptions.availableInBusinessLocations`
19
+ * as `true`. Currently, you can specify only a single business location.
14
20
  */
15
21
  export declare function createResource(payload: object): RequestOptionsFactory<any>;
16
- /** Creates multiple resources. */
22
+ /**
23
+ * Creates up to 50 resources.
24
+ *
25
+ *
26
+ * Refer to *Create Resource*
27
+ * ([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))
28
+ * for more details.
29
+ */
17
30
  export declare function bulkCreateResources(payload: object): RequestOptionsFactory<any>;
18
- /** Retrieves a resource by ID. */
31
+ /** Retrieves a resource. */
19
32
  export declare function getResource(payload: object): RequestOptionsFactory<any>;
20
33
  /**
21
34
  * Updates a resource.
22
35
  *
36
+ *
23
37
  * Each time the resource is updated, `revision` increments by 1. You must include the current revision of the resource when updating it.
24
38
  * This ensures you're working with the latest service information and prevents unintended overwrites.
25
39
  */
@@ -27,16 +41,29 @@ export declare function updateResource(payload: object): RequestOptionsFactory<a
27
41
  /**
28
42
  * Deletes a resource.
29
43
  *
30
- * Also cancels the associated events schedule and any working hours schedule that isn’t shared among multiple resources.
44
+ *
45
+ * Deleting a resource cancels its event schedule and all its working hour
46
+ * schedules that aren't shared with another resource. Learn more about
47
+ * how Bookings uses the Calendar APIs*
48
+ * ([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)).
31
49
  */
32
50
  export declare function deleteResource(payload: object): RequestOptionsFactory<any>;
33
- /** Deletes multiple resources. */
51
+ /**
52
+ * Deletes multiple resources.
53
+ *
54
+ *
55
+ * Refer to *Delete Resource*
56
+ * ([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))
57
+ * for more details.
58
+ */
34
59
  export declare function bulkDeleteResources(payload: object): RequestOptionsFactory<any>;
35
60
  /**
36
61
  * Retrieves a list of resources matching the provided search criteria.
37
62
  *
38
- * The search endpoints allow to perform advanced search including partial text search, exact match, and more.
39
- * The endpoint also allows to aggregate resources by type, name, app id, management type, management type and location options.
63
+ *
64
+ * Refer to the *supported filters article*
65
+ * ([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))
66
+ * for a complete list of supported filters and sorting options.
40
67
  */
41
68
  export declare function searchResources(payload: object): RequestOptionsFactory<any>;
42
69
  /**
@@ -53,7 +80,7 @@ export declare function searchResources(payload: object): RequestOptionsFactory<
53
80
  * + `limit` is `50`.
54
81
  * + Sorted by `id` in ascending order.
55
82
  *
56
- * 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("id")`, the results are sorted first by the `"typeId"`, and then, if there are multiple results with the same `"typeId"`, the items are sorted by `"id"`.
83
+ * 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"`.
57
84
  *
58
85
  * 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`.
59
86
  */
@@ -61,6 +88,9 @@ export declare function queryResources(payload: object): RequestOptionsFactory<a
61
88
  /**
62
89
  * Counts resources according to given criteria.
63
90
  *
64
- * Use [WQL filter](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section) to define the criteria.
91
+ *
92
+ * Refer to the *supported filters article*
93
+ * ([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))
94
+ * for a complete list of supported filters and sorting options.
65
95
  */
66
96
  export declare function countResources(payload: object): RequestOptionsFactory<any>;
@@ -54,15 +54,21 @@ const PACKAGE_NAME = '@wix/auto_sdk_bookings_resources';
54
54
  /**
55
55
  * Creates a new resource.
56
56
  *
57
- * A new events schedule is automatically created specific to this resource. This schedule will contain information
58
- * on when the resource is booked in order to prevent double bookings.
59
- * See [Schedules API](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) for more information.
60
57
  *
61
- * - If the request does not include the field `locationOptions`, then the service will create this field and set
62
- * `availableInAllLocations` in this structure to `true`.
63
- * - If the request includes one or more business location IDs in the `locationOptions.specificLocationOptions.businessLocations`
64
- * field, then the field `locationOptions.specificLocationOptions.availableInBusinessLocations` must be set
65
- * to `true`.
58
+ * ## Connected schedules
59
+ *
60
+ * A new event *schedule*
61
+ * ([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))
62
+ * is automatically created for the resource.
63
+ *
64
+ * ## Locations
65
+ *
66
+ * If you don't specify `locationOptions`, Wix Bookings automatically sets
67
+ * `locationOptions.availableInAllLocations` to `true`.
68
+ *
69
+ * If you specify 1 business location ID in `locationOptions.specificLocationOptions.businessLocations`,
70
+ * you must specify `locationOptions.specificLocationOptions.availableInBusinessLocations`
71
+ * as `true`. Currently, you can specify only a single business location.
66
72
  */
67
73
  function createResource(payload) {
68
74
  function __createResource({ host }) {
@@ -101,7 +107,14 @@ function createResource(payload) {
101
107
  return __createResource;
102
108
  }
103
109
  exports.createResource = createResource;
104
- /** Creates multiple resources. */
110
+ /**
111
+ * Creates up to 50 resources.
112
+ *
113
+ *
114
+ * Refer to *Create Resource*
115
+ * ([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))
116
+ * for more details.
117
+ */
105
118
  function bulkCreateResources(payload) {
106
119
  function __bulkCreateResources({ host }) {
107
120
  const serializedData = (0, transform_paths_1.transformPaths)(payload, [
@@ -139,7 +152,7 @@ function bulkCreateResources(payload) {
139
152
  return __bulkCreateResources;
140
153
  }
141
154
  exports.bulkCreateResources = bulkCreateResources;
142
- /** Retrieves a resource by ID. */
155
+ /** Retrieves a resource. */
143
156
  function getResource(payload) {
144
157
  function __getResource({ host }) {
145
158
  const metadata = {
@@ -171,6 +184,7 @@ exports.getResource = getResource;
171
184
  /**
172
185
  * Updates a resource.
173
186
  *
187
+ *
174
188
  * Each time the resource is updated, `revision` increments by 1. You must include the current revision of the resource when updating it.
175
189
  * This ensures you're working with the latest service information and prevents unintended overwrites.
176
190
  */
@@ -218,7 +232,11 @@ exports.updateResource = updateResource;
218
232
  /**
219
233
  * Deletes a resource.
220
234
  *
221
- * Also cancels the associated events schedule and any working hours schedule that isn’t shared among multiple resources.
235
+ *
236
+ * Deleting a resource cancels its event schedule and all its working hour
237
+ * schedules that aren't shared with another resource. Learn more about
238
+ * how Bookings uses the Calendar APIs*
239
+ * ([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)).
222
240
  */
223
241
  function deleteResource(payload) {
224
242
  function __deleteResource({ host }) {
@@ -239,7 +257,14 @@ function deleteResource(payload) {
239
257
  return __deleteResource;
240
258
  }
241
259
  exports.deleteResource = deleteResource;
242
- /** Deletes multiple resources. */
260
+ /**
261
+ * Deletes multiple resources.
262
+ *
263
+ *
264
+ * Refer to *Delete Resource*
265
+ * ([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))
266
+ * for more details.
267
+ */
243
268
  function bulkDeleteResources(payload) {
244
269
  function __bulkDeleteResources({ host }) {
245
270
  const metadata = {
@@ -271,8 +296,10 @@ exports.bulkDeleteResources = bulkDeleteResources;
271
296
  /**
272
297
  * Retrieves a list of resources matching the provided search criteria.
273
298
  *
274
- * The search endpoints allow to perform advanced search including partial text search, exact match, and more.
275
- * The endpoint also allows to aggregate resources by type, name, app id, management type, management type and location options.
299
+ *
300
+ * Refer to the *supported filters article*
301
+ * ([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))
302
+ * for a complete list of supported filters and sorting options.
276
303
  */
277
304
  function searchResources(payload) {
278
305
  function __searchResources({ host }) {
@@ -357,7 +384,7 @@ exports.searchResources = searchResources;
357
384
  * + `limit` is `50`.
358
385
  * + Sorted by `id` in ascending order.
359
386
  *
360
- * 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("id")`, the results are sorted first by the `"typeId"`, and then, if there are multiple results with the same `"typeId"`, the items are sorted by `"id"`.
387
+ * 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"`.
361
388
  *
362
389
  * 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`.
363
390
  */
@@ -392,7 +419,10 @@ exports.queryResources = queryResources;
392
419
  /**
393
420
  * Counts resources according to given criteria.
394
421
  *
395
- * Use [WQL filter](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section) to define the criteria.
422
+ *
423
+ * Refer to the *supported filters article*
424
+ * ([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))
425
+ * for a complete list of supported filters and sorting options.
396
426
  */
397
427
  function countResources(payload) {
398
428
  function __countResources({ host }) {
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-resources-v2-resource-resources.http.js","sourceRoot":"","sources":["../../../src/bookings-resources-v2-resource-resources.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;AAClE,kEAAsF;AACtF,kEAAsF;AACtF,0EAAkG;AAClG,0EAAkG;AAClG,4EAAmG;AACnG,sFAAkF;AAClF,gEAA2D;AAI3D,SAAS,gDAAgD,CACvD,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,wBAAwB;gBACjC,QAAQ,EAAE,eAAe;aAC1B;YACD;gBACE,OAAO,EAAE,6BAA6B;gBACtC,QAAQ,EAAE,eAAe;aAC1B;YACD;gBACE,OAAO,EAAE,oBAAoB;gBAC7B,QAAQ,EAAE,oBAAoB;aAC/B;SACF;QACD,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,cAAc;gBACvB,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,wBAAwB;gBACjC,QAAQ,EAAE,eAAe;aAC1B;YACD;gBACE,OAAO,EAAE,6BAA6B;gBACtC,QAAQ,EAAE,oBAAoB;aAC/B;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,mBAAmB;gBAC5B,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,IAAA,yBAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,kCAAkC,CAAC;AAExD;;;;;;;;;;;;GAYG;AACH,SAAgB,cAAc,CAAC,OAAe;IAC5C,SAAS,gBAAgB,CAAC,EAAE,IAAI,EAAO;QACrC,MAAM,cAAc,GAAG,IAAA,gCAAc,EAAC,OAAO,EAAE;YAC7C;gBACE,WAAW,EAAE,gDAA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C;gBACpD,SAAS,EAAE,qBAAqB;gBAChC,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;YACb,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,IAAA,gCAAc,EAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,gDAAoC;oBACjD,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,uBAAuB,EAAE;wBACjC,EAAE,IAAI,EAAE,uBAAuB,EAAE;qBAClC;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AA7BD,wCA6BC;AAED;;;;GAIG;AACH,SAAgB,cAAc,CAAC,OAAe;IAC5C,SAAS,gBAAgB,CAAC,EAAE,IAAI,EAAO;QACrC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,oCAAoC;YAChD,MAAM,EAAE,MAAa;YACrB,SAAS,EAAE,2DAA2D;YACtE,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,gDAAgD,CAAC;gBACpD,SAAS,EAAE,qBAAqB;gBAChC,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAnBD,wCAmBC"}
1
+ {"version":3,"file":"bookings-resources-v2-resource-resources.http.js","sourceRoot":"","sources":["../../../src/bookings-resources-v2-resource-resources.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;AAClE,kEAAsF;AACtF,kEAAsF;AACtF,0EAAkG;AAClG,0EAAkG;AAClG,4EAAmG;AACnG,sFAAkF;AAClF,gEAA2D;AAI3D,SAAS,gDAAgD,CACvD,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,wBAAwB;gBACjC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AAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AA7BD,wCA6BC;AAED;;;;;;;GAOG;AACH,SAAgB,cAAc,CAAC,OAAe;IAC5C,SAAS,gBAAgB,CAAC,EAAE,IAAI,EAAO;QACrC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,oCAAoC;YAChD,MAAM,EAAE,MAAa;YACrB,SAAS,EAAE,2DAA2D;YACtE,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,gDAAgD,CAAC;gBACpD,SAAS,EAAE,qBAAqB;gBAChC,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAnBD,wCAmBC"}
@@ -8,24 +8,35 @@ interface CreateResourceSignature {
8
8
  /**
9
9
  * Creates a new resource.
10
10
  *
11
- * A new events schedule is automatically created specific to this resource. This schedule will contain information
12
- * on when the resource is booked in order to prevent double bookings.
13
- * See [Schedules API](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) for more information.
14
- *
15
- * - If the request does not include the field `locationOptions`, then the service will create this field and set
16
- * `availableInAllLocations` in this structure to `true`.
17
- * - If the request includes one or more business location IDs in the `locationOptions.specificLocationOptions.businessLocations`
18
- * field, then the field `locationOptions.specificLocationOptions.availableInBusinessLocations` must be set
19
- * to `true`.
11
+ *
12
+ * ## Connected schedules
13
+ *
14
+ * A new event *schedule*
15
+ * ([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))
16
+ * is automatically created for the resource.
17
+ *
18
+ * ## Locations
19
+ *
20
+ * If you don't specify `locationOptions`, Wix Bookings automatically sets
21
+ * `locationOptions.availableInAllLocations` to `true`.
22
+ *
23
+ * If you specify 1 business location ID in `locationOptions.specificLocationOptions.businessLocations`,
24
+ * you must specify `locationOptions.specificLocationOptions.availableInBusinessLocations`
25
+ * as `true`. Currently, you can specify only a single business location.
20
26
  * @param - Resource to create.
21
- * @returns The created resource.
27
+ * @returns Created resource.
22
28
  */
23
29
  (resource: Resource): Promise<Resource & ResourceNonNullableFields>;
24
30
  }
25
31
  export declare function bulkCreateResources(httpClient: HttpClient): BulkCreateResourcesSignature;
26
32
  interface BulkCreateResourcesSignature {
27
33
  /**
28
- * Creates multiple resources.
34
+ * Creates up to 50 resources.
35
+ *
36
+ *
37
+ * Refer to *Create Resource*
38
+ * ([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))
39
+ * for more details.
29
40
  * @param - Resources to create.
30
41
  */
31
42
  (resources: Resource[], options?: BulkCreateResourcesOptions | undefined): Promise<BulkCreateResourcesResponse & BulkCreateResourcesResponseNonNullableFields>;
@@ -33,9 +44,9 @@ interface BulkCreateResourcesSignature {
33
44
  export declare function getResource(httpClient: HttpClient): GetResourceSignature;
34
45
  interface GetResourceSignature {
35
46
  /**
36
- * Retrieves a resource by ID.
47
+ * Retrieves a resource.
37
48
  * @param - ID of the resource to retrieve.
38
- * @returns The retrieved resource.
49
+ * @returns Retrieved resource.
39
50
  */
40
51
  (resourceId: string): Promise<Resource & ResourceNonNullableFields>;
41
52
  }
@@ -44,10 +55,11 @@ interface UpdateResourceSignature {
44
55
  /**
45
56
  * Updates a resource.
46
57
  *
58
+ *
47
59
  * Each time the resource is updated, `revision` increments by 1. You must include the current revision of the resource when updating it.
48
60
  * This ensures you're working with the latest service information and prevents unintended overwrites.
49
61
  * @param - Resource ID.
50
- * @returns The updated resource.
62
+ * @returns Updated resource.
51
63
  */
52
64
  (_id: string | null, resource: UpdateResource): Promise<Resource & ResourceNonNullableFields>;
53
65
  }
@@ -56,7 +68,11 @@ interface DeleteResourceSignature {
56
68
  /**
57
69
  * Deletes a resource.
58
70
  *
59
- * Also cancels the associated events schedule and any working hours schedule that isn’t shared among multiple resources.
71
+ *
72
+ * Deleting a resource cancels its event schedule and all its working hour
73
+ * schedules that aren't shared with another resource. Learn more about
74
+ * how Bookings uses the Calendar APIs*
75
+ * ([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)).
60
76
  * @param - ID of the resource to delete.
61
77
  */
62
78
  (resourceId: string): Promise<void>;
@@ -65,7 +81,12 @@ export declare function bulkDeleteResources(httpClient: HttpClient): BulkDeleteR
65
81
  interface BulkDeleteResourcesSignature {
66
82
  /**
67
83
  * Deletes multiple resources.
68
- * @param - The IDs of the resources to delete.
84
+ *
85
+ *
86
+ * Refer to *Delete Resource*
87
+ * ([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))
88
+ * for more details.
89
+ * @param - IDs of the resources to delete.
69
90
  */
70
91
  (ids: string[]): Promise<BulkDeleteResourcesResponse & BulkDeleteResourcesResponseNonNullableFields>;
71
92
  }
@@ -74,8 +95,10 @@ interface SearchResourcesSignature {
74
95
  /**
75
96
  * Retrieves a list of resources matching the provided search criteria.
76
97
  *
77
- * The search endpoints allow to perform advanced search including partial text search, exact match, and more.
78
- * The endpoint also allows to aggregate resources by type, name, app id, management type, management type and location options.
98
+ *
99
+ * Refer to the *supported filters article*
100
+ * ([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))
101
+ * for a complete list of supported filters and sorting options.
79
102
  */
80
103
  (options?: SearchResourcesOptions | undefined): Promise<SearchResourcesResponse & SearchResourcesResponseNonNullableFields>;
81
104
  }
@@ -95,7 +118,7 @@ interface QueryResourcesSignature {
95
118
  * + `limit` is `50`.
96
119
  * + Sorted by `id` in ascending order.
97
120
  *
98
- * 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("id")`, the results are sorted first by the `"typeId"`, and then, if there are multiple results with the same `"typeId"`, the items are sorted by `"id"`.
121
+ * 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"`.
99
122
  *
100
123
  * 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`.
101
124
  */
@@ -106,10 +129,11 @@ interface CountResourcesSignature {
106
129
  /**
107
130
  * Counts resources according to given criteria.
108
131
  *
109
- * Use [WQL filter](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section) to define the criteria.
110
- * @param - Filter to base the count on. See
111
- * [queryResources()](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/query-resources)
112
- * for supported filters.
132
+ *
133
+ * Refer to the *supported filters article*
134
+ * ([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))
135
+ * for a complete list of supported filters and sorting options.
136
+ * @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.
113
137
  */
114
138
  (options?: CountResourcesOptions | undefined): Promise<CountResourcesResponse & CountResourcesResponseNonNullableFields>;
115
139
  }
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-resources-v2-resource-resources.public.js","sourceRoot":"","sources":["../../../src/bookings-resources-v2-resource-resources.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AA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AG,IAAA,2BAAe,EAC9C,4CAA4C,EAC5C,IAAI,EACJ,CAAC,KAA8B,EAAE,EAAE,CACjC,IAAA,gEAAuC,EACrC,IAAA,gCAAc,EAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,gDAAoC;QACjD,KAAK,EAAE;YACL,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE;SAC/B;KACF;CACF,CAAC,CACH,CACJ,EAA2B,CAAC;AAE7B,iIAuIiE;AA/H/D,wJAAA,eAAe,OAAA;AAwDf,iJAAA,QAAQ,OAAA;AAKR,uJAAA,cAAc,OAAA;AAEd,sJAAA,aAAa,OAAA;AACb,6IAAA,IAAI,OAAA;AAMJ,8JAAA,qBAAqB,OAAA;AA+BrB,mJAAA,UAAU,OAAA;AAQV,sJAAA,aAAa,OAAA;AACb,kJAAA,SAAS,OAAA;AACT,iJAAA,QAAQ,OAAA;AAaR,4JAAA,mBAAmB,OAAA"}
1
+ {"version":3,"file":"bookings-resources-v2-resource-resources.public.js","sourceRoot":"","sources":["../../../src/bookings-resources-v2-resource-resources.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,8CAA6D;AAC7D,mIA4BiE;AAEpD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,SAAgB,cAAc,CAC5B,UAAsB;IAEtB,OAAO,CAAC,QAAkB,EAAE,EAAE,CAC5B,IAAA,sEAAuB,EACrB,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,wCASC;AA2BD,SAAgB,mBAAmB,CACjC,UAAsB;IAEtB,OAAO,CAAC,SAAqB,EAAE,OAAoC,EAAE,EAAE,CACrE,IAAA,2EAA4B,EAC1B,SAAS,EACT,OAAO;IACP,aAAa;IACb,EAAE,UAAU,E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