@wix/auto_sdk_bookings_services 1.0.54 → 1.0.55

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 (129) hide show
  1. package/build/{es/src/bookings-services-v2-service-services.types.d.ts → bookings-services-v2-service-services.universal-B8YoV8-Q.d.mts} +893 -374
  2. package/build/{cjs/src/bookings-services-v2-service-services.types.d.ts → bookings-services-v2-service-services.universal-B8YoV8-Q.d.ts} +893 -374
  3. package/build/{internal/cjs/src/bookings-services-v2-service-services.public.d.ts → index.d.mts} +66 -31
  4. package/build/{internal/es/src/bookings-services-v2-service-services.public.d.ts → index.d.ts} +66 -31
  5. package/build/index.js +3306 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +3232 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{cjs/src/bookings-services-v2-service-services.types.d.ts → bookings-services-v2-service-services.universal-B8YoV8-Q.d.mts} +893 -374
  10. package/build/internal/{es/src/bookings-services-v2-service-services.types.d.ts → bookings-services-v2-service-services.universal-B8YoV8-Q.d.ts} +893 -374
  11. package/build/{cjs/src/bookings-services-v2-service-services.public.d.ts → internal/index.d.mts} +66 -31
  12. package/build/{es/src/bookings-services-v2-service-services.public.d.ts → internal/index.d.ts} +66 -31
  13. package/build/internal/index.js +3306 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +3232 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +2350 -0
  18. package/build/internal/meta.d.ts +2350 -0
  19. package/build/internal/meta.js +1879 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +1831 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +2350 -0
  24. package/build/meta.d.ts +2350 -0
  25. package/build/meta.js +1879 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +1831 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -56
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/bookings-services-v2-service-services.context.d.ts +0 -42
  40. package/build/cjs/src/bookings-services-v2-service-services.context.js +0 -72
  41. package/build/cjs/src/bookings-services-v2-service-services.context.js.map +0 -1
  42. package/build/cjs/src/bookings-services-v2-service-services.http.d.ts +0 -498
  43. package/build/cjs/src/bookings-services-v2-service-services.http.js +0 -1904
  44. package/build/cjs/src/bookings-services-v2-service-services.http.js.map +0 -1
  45. package/build/cjs/src/bookings-services-v2-service-services.meta.d.ts +0 -48
  46. package/build/cjs/src/bookings-services-v2-service-services.meta.js +0 -446
  47. package/build/cjs/src/bookings-services-v2-service-services.meta.js.map +0 -1
  48. package/build/cjs/src/bookings-services-v2-service-services.public.js +0 -299
  49. package/build/cjs/src/bookings-services-v2-service-services.public.js.map +0 -1
  50. package/build/cjs/src/bookings-services-v2-service-services.types.js +0 -235
  51. package/build/cjs/src/bookings-services-v2-service-services.types.js.map +0 -1
  52. package/build/cjs/src/bookings-services-v2-service-services.universal.d.ts +0 -4835
  53. package/build/cjs/src/bookings-services-v2-service-services.universal.js +0 -2257
  54. package/build/cjs/src/bookings-services-v2-service-services.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -56
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/src/bookings-services-v2-service-services.context.d.ts +0 -42
  65. package/build/es/src/bookings-services-v2-service-services.context.js +0 -42
  66. package/build/es/src/bookings-services-v2-service-services.context.js.map +0 -1
  67. package/build/es/src/bookings-services-v2-service-services.http.d.ts +0 -498
  68. package/build/es/src/bookings-services-v2-service-services.http.js +0 -1879
  69. package/build/es/src/bookings-services-v2-service-services.http.js.map +0 -1
  70. package/build/es/src/bookings-services-v2-service-services.meta.d.ts +0 -48
  71. package/build/es/src/bookings-services-v2-service-services.meta.js +0 -398
  72. package/build/es/src/bookings-services-v2-service-services.meta.js.map +0 -1
  73. package/build/es/src/bookings-services-v2-service-services.public.js +0 -247
  74. package/build/es/src/bookings-services-v2-service-services.public.js.map +0 -1
  75. package/build/es/src/bookings-services-v2-service-services.types.js +0 -232
  76. package/build/es/src/bookings-services-v2-service-services.types.js.map +0 -1
  77. package/build/es/src/bookings-services-v2-service-services.universal.d.ts +0 -4835
  78. package/build/es/src/bookings-services-v2-service-services.universal.js +0 -2209
  79. package/build/es/src/bookings-services-v2-service-services.universal.js.map +0 -1
  80. package/build/internal/cjs/index.d.ts +0 -1
  81. package/build/internal/cjs/index.js +0 -18
  82. package/build/internal/cjs/index.js.map +0 -1
  83. package/build/internal/cjs/index.typings.d.ts +0 -56
  84. package/build/internal/cjs/index.typings.js +0 -18
  85. package/build/internal/cjs/index.typings.js.map +0 -1
  86. package/build/internal/cjs/meta.d.ts +0 -1
  87. package/build/internal/cjs/meta.js +0 -18
  88. package/build/internal/cjs/meta.js.map +0 -1
  89. package/build/internal/cjs/src/bookings-services-v2-service-services.context.d.ts +0 -42
  90. package/build/internal/cjs/src/bookings-services-v2-service-services.context.js +0 -72
  91. package/build/internal/cjs/src/bookings-services-v2-service-services.context.js.map +0 -1
  92. package/build/internal/cjs/src/bookings-services-v2-service-services.http.d.ts +0 -498
  93. package/build/internal/cjs/src/bookings-services-v2-service-services.http.js +0 -1904
  94. package/build/internal/cjs/src/bookings-services-v2-service-services.http.js.map +0 -1
  95. package/build/internal/cjs/src/bookings-services-v2-service-services.meta.d.ts +0 -48
  96. package/build/internal/cjs/src/bookings-services-v2-service-services.meta.js +0 -446
  97. package/build/internal/cjs/src/bookings-services-v2-service-services.meta.js.map +0 -1
  98. package/build/internal/cjs/src/bookings-services-v2-service-services.public.js +0 -299
  99. package/build/internal/cjs/src/bookings-services-v2-service-services.public.js.map +0 -1
  100. package/build/internal/cjs/src/bookings-services-v2-service-services.types.js +0 -235
  101. package/build/internal/cjs/src/bookings-services-v2-service-services.types.js.map +0 -1
  102. package/build/internal/cjs/src/bookings-services-v2-service-services.universal.d.ts +0 -4835
  103. package/build/internal/cjs/src/bookings-services-v2-service-services.universal.js +0 -2257
  104. package/build/internal/cjs/src/bookings-services-v2-service-services.universal.js.map +0 -1
  105. package/build/internal/es/index.d.ts +0 -1
  106. package/build/internal/es/index.js +0 -2
  107. package/build/internal/es/index.js.map +0 -1
  108. package/build/internal/es/index.typings.d.ts +0 -56
  109. package/build/internal/es/index.typings.js +0 -2
  110. package/build/internal/es/index.typings.js.map +0 -1
  111. package/build/internal/es/meta.d.ts +0 -1
  112. package/build/internal/es/meta.js +0 -2
  113. package/build/internal/es/meta.js.map +0 -1
  114. package/build/internal/es/src/bookings-services-v2-service-services.context.d.ts +0 -42
  115. package/build/internal/es/src/bookings-services-v2-service-services.context.js +0 -42
  116. package/build/internal/es/src/bookings-services-v2-service-services.context.js.map +0 -1
  117. package/build/internal/es/src/bookings-services-v2-service-services.http.d.ts +0 -498
  118. package/build/internal/es/src/bookings-services-v2-service-services.http.js +0 -1879
  119. package/build/internal/es/src/bookings-services-v2-service-services.http.js.map +0 -1
  120. package/build/internal/es/src/bookings-services-v2-service-services.meta.d.ts +0 -48
  121. package/build/internal/es/src/bookings-services-v2-service-services.meta.js +0 -398
  122. package/build/internal/es/src/bookings-services-v2-service-services.meta.js.map +0 -1
  123. package/build/internal/es/src/bookings-services-v2-service-services.public.js +0 -247
  124. package/build/internal/es/src/bookings-services-v2-service-services.public.js.map +0 -1
  125. package/build/internal/es/src/bookings-services-v2-service-services.types.js +0 -232
  126. package/build/internal/es/src/bookings-services-v2-service-services.types.js.map +0 -1
  127. package/build/internal/es/src/bookings-services-v2-service-services.universal.d.ts +0 -4835
  128. package/build/internal/es/src/bookings-services-v2-service-services.universal.js +0 -2209
  129. package/build/internal/es/src/bookings-services-v2-service-services.universal.js.map +0 -1
@@ -1,498 +0,0 @@
1
- import { RequestOptionsFactory } from '@wix/sdk-types';
2
- /**
3
- * Creates a service.
4
- *
5
- *
6
- * ## Required fields
7
- *
8
- * When creating a service you must specify the following fields:
9
- * - `type`
10
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/about-service-types) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-types)):
11
- * Whether it's an appointment-based service, class, or course.
12
- * - `name`: Service name that's displayed to customers.
13
- * - `onlineBooking`:
14
- * Settings determining whether customers can book online, whether the business
15
- * must manually confirm bookings, and whether customers can request to book an
16
- * appointment time slot that already has a booking request awaiting business
17
- * confirmation.
18
- * - `payment`
19
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/about-service-payments) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-payments)):
20
- * How customers can pay when signing up for the service.
21
- *
22
- * ### Session durations
23
- *
24
- * Depending on which type of service you're creating, you may also need to specify
25
- * supported session durations.
26
- *
27
- * __Classes and courses__
28
- *
29
- * Don't specify `schedule.availabilityConstraints.sessionDurations`.
30
- *
31
- * __Appointment-based services without varied pricing based on session length__
32
- *
33
- * Specify the single supported session duration in the
34
- * `schedule.availabilityConstraints.sessionDurations` array.
35
- *
36
- * __Appointment-based services with varied pricing based on session length__
37
- *
38
- * - Specify all supported session durations in `schedule.availabilityConstraints.sessionDurations`.
39
- * - Note that Wix Bookings doesn't display these values to customers and
40
- * ignores them in pricing and availability calculations. Instead session
41
- * durations are retrieved from the relevant service *variants*
42
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction)).
43
- * - It is mandatory to specify `schedule.availabilityConstraints.sessionDurations`,
44
- * even though these values are ignored.
45
- */
46
- export declare function createService(payload: object): RequestOptionsFactory<any>;
47
- /**
48
- * Creates multiple services.
49
- *
50
- *
51
- * See *Create Service*
52
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/create-service) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/create-service))
53
- * for more details.
54
- */
55
- export declare function bulkCreateServices(payload: object): RequestOptionsFactory<any>;
56
- /** Retrieves a service. */
57
- export declare function getService(payload: object): RequestOptionsFactory<any>;
58
- /**
59
- * Updates a service.
60
- *
61
- *
62
- * Each time the service is updated, `revision` increments by 1. You must
63
- * include the number of the existing revision when updating the service.
64
- * This ensures you're working with the latest service information and
65
- * prevents unintended overwrites.
66
- *
67
- * ## Session durations
68
- *
69
- * Specify `schedule.availabilityConstraints.sessionDurations`
70
- * only if you want to update it for appointment-based services without varied
71
- * pricing based on session length. Don't specify `schedule.availabilityConstraints.sessionDurations`
72
- * for all other appointment-based services, classes, or courses. See *Create Service*
73
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/create-service#session-durations) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/create-service#session-durations))
74
- * for more details.
75
- */
76
- export declare function updateService(payload: object): RequestOptionsFactory<any>;
77
- /**
78
- * Updates up to 100 services.
79
- *
80
- *
81
- * See *Update Service*
82
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/update-service) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/update-service))
83
- * for more details.
84
- *
85
- * The call succeeds even if one or more individual services can't be updated.
86
- * Information about failures is returned in `bulkActionMetadata`.
87
- */
88
- export declare function bulkUpdateServices(payload: object): RequestOptionsFactory<any>;
89
- /**
90
- * Updates multiple services by filter.
91
- *
92
- *
93
- * Refer to the supported filters article
94
- * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/filtering-and-sorting#filtering))
95
- * for more details.
96
- *
97
- * See *Update Service*
98
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/update-service) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/update-service))
99
- * for more details about updating a service.
100
- *
101
- * The call succeeds even if one or more individual services can't be updated.
102
- * Information about failures is returned in `bulkActionMetadata`.
103
- */
104
- export declare function bulkUpdateServicesByFilter(payload: object): RequestOptionsFactory<any>;
105
- /**
106
- * Deletes a service.
107
- *
108
- *
109
- * Specify `{"preserveFutureSessionsWithParticipants": true}` to retain all
110
- * future sessions for the service. By default, all future sessions are canceled.
111
- */
112
- export declare function deleteService(payload: object): RequestOptionsFactory<any>;
113
- /**
114
- * Deletes multiple services.
115
- *
116
- *
117
- * See *Delete Service*
118
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/delete-service) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/delete-service))
119
- * for more details about deleting a service.
120
- *
121
- * The call succeeds even if one or more individual services can't be deleted.
122
- * Information about failures is returned in `bulkActionMetadata`.
123
- */
124
- export declare function bulkDeleteServices(payload: object): RequestOptionsFactory<any>;
125
- /**
126
- * Deletes multiple services by filter.
127
- *
128
- *
129
- * See *Delete Service*
130
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/delete-service) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/delete-service))
131
- * for more details about deleting a service.
132
- *
133
- * The call succeeds even if one or more individual services can't be deleted.
134
- * Information about failures is returned in `bulkActionMetadata`.
135
- *
136
- * Refer to the supported filters article
137
- * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/filtering-and-sorting#filtering))
138
- * for more details.
139
- *
140
- * To learn about working with filters in general, see
141
- * [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
142
- */
143
- export declare function bulkDeleteServicesByFilter(payload: object): RequestOptionsFactory<any>;
144
- /**
145
- * Creates a query to retrieve a list of `service` objects.
146
- *
147
- * The `queryServices()` function builds a query to retrieve a list of `service` objects and returns a `ServicesQueryBuilder` object.
148
- *
149
- * 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/services/services-query-builder/find) function.
150
- *
151
- * You can refine the query by chaining `ServicesQueryBuilder` functions onto the query. `ServicesQueryBuilder` functions enable you to sort, filter, and control the results that `queryServices()` returns.
152
- *
153
- * `queryServices()` runs with the following `ServicesQueryBuilder` defaults that you can override:
154
- *
155
- * + `limit` is `100`.
156
- * + Sorted by `createdDate` in ascending order.
157
- *
158
- * The functions that are chained to `queryServices()` are applied in the order they are called. For example, if you apply `ascending("category.name")` and then `ascending("name")`, the results are sorted first by `category.name`, and then, if there are multiple results with the same `category.name`, the items are sorted by `name`.
159
- *
160
- * The following `ServicesQueryBuilder` functions are supported for the `queryServices()` function. For a full description of the `service` object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/services-query-result/items) property in `ServicesQueryResult`.
161
- */
162
- export declare function queryServices(payload: object): RequestOptionsFactory<any>;
163
- /**
164
- * Retrieves a list of up to 100 services, given the provided filtering, paging,
165
- * and sorting.
166
- *
167
- *
168
- * ## Defaults
169
- *
170
- * Search Services has the following default settings, which you can override:
171
- * + Sorted by `createdDate` in ascending order.
172
- * + `paging.limit` set to `100`.
173
- * + `paging.offset` set to `0`.
174
- *
175
- * ## Filters
176
- *
177
- * When using filters for dates, you must use
178
- * [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).
179
- *
180
- * Refer to the supported filters article
181
- * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/filtering-and-sorting))
182
- * for a complete list of supported filters and sorting options.
183
- *
184
- * ## See also
185
- *
186
- * To learn about working with *Search* methods, see
187
- * _API Query Language_
188
- * ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language))
189
- * and *Sorting and Paging*
190
- * ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language#the-sort-array) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging)).
191
- */
192
- export declare function searchServices(payload: object): RequestOptionsFactory<any>;
193
- /**
194
- * Retrieves a list of up to 100 *booking policies*
195
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/introduction)),
196
- * and information about the services that are connected to them,
197
- * given the provided filtering, paging, and sorting.
198
- *
199
- * ## Defaults
200
- *
201
- * Query Policies has the following default settings, which you can override:
202
- *
203
- * + Sorted by `id` in ascending order.
204
- * + `cursorPaging.limit` set to `100`.
205
- *
206
- * ## Filters
207
- *
208
- * For a complete list of supported filters, refer to **Booking Policies API: Supported Filters**
209
- * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/supported-filters)).
210
- *
211
- * When using date filters, you must use
212
- * [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).
213
- *
214
- * ## Returned services
215
- *
216
- * If a booking policy is connected to more than 5 services, only a subset of
217
- * those services is returned. The `bookingPolicies.totalServiceCount` values
218
- * indicate the total number of services linked to each policy. You can call *Search Services*
219
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/search-services) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/search-services))
220
- * and specify the relevant policy ID in the filter to retrieve all services
221
- * connected to the booking policy.
222
- *
223
- * ## See also
224
- *
225
- * To learn about working with *Query* endpoints, see
226
- * [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
227
- * and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
228
- */
229
- export declare function queryPolicies(payload: object): RequestOptionsFactory<any>;
230
- /**
231
- * Retrieves a list of up to 100 *booking forms*
232
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/forms/introduction) | [REST](https://dev.wix.com/docs/rest/crm/forms/form-schemas/form-object)),
233
- * and information about the services that are connected to them,
234
- * given the provided filtering, paging, and sorting.
235
- *
236
- *
237
- * ## Defaults
238
- *
239
- * Query Booking Forms has the following default settings, which you can override:
240
- *
241
- * + Sorted by `id` in ascending order.
242
- * + `cursorPaging.limit` set to `100`.
243
- *
244
- * ## Filters
245
- *
246
- * For a complete list of supported filters, refer to **Forms API: Supported Filters**
247
- * ([REST](https://dev.wix.com/docs/rest/crm/forms/form-schemas/form-object)).
248
- *
249
- * When using date filters, you must use
250
- * [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).
251
- *
252
- * ## Returned services
253
- *
254
- * If a booking policy is connected to more than 5 services, only a subset of
255
- * these service IDs and names is returned. The `bookingForms.totalServiceCount`
256
- * values indicate the total number of services linked to each form. You can call *Query Services*
257
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/query-services) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/query-services))
258
- * and specify the relevant form ID in the filter to retrieve all services
259
- * connected to the booking form.
260
- *
261
- * ## Default booking forms
262
- *
263
- * By default, all Wix Bookings services use a standard booking form. To retrieve
264
- * a site's default booking form with Query Booking Forms, specify
265
- * `{"conditionalFields": ["DEFAULT_BOOKING_FORM"]}`.
266
- *
267
- * ## See also
268
- *
269
- * To learn about working with *Query* endpoints, see
270
- * [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
271
- * and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
272
- */
273
- export declare function queryBookingForms(payload: object): RequestOptionsFactory<any>;
274
- /**
275
- * Counts how many services match the given filter.
276
- *
277
- *
278
- * Refer to the supported filters article
279
- * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/filtering-and-sorting#filtering))
280
- * for more details.
281
- *
282
- * To learn about working with filters in general, see
283
- * [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters)
284
- */
285
- export declare function countServices(payload: object): RequestOptionsFactory<any>;
286
- /**
287
- * Retrieves 3 separate lists of business, custom, and customer *locations*
288
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction)),
289
- * given the provided filtering, and whether each location is connected to at
290
- * least one of the site's services.
291
- *
292
- *
293
- * ## Defaults
294
- *
295
- * Query Locations has the following default setting, which you can't override:
296
- * Sorted by `id` in ascending order.
297
- *
298
- * ## Filters
299
- *
300
- * For a complete list of supported filters, refer to the `location` object
301
- * ([REST](https://dev.wix.com/docs/rest/business-management/locations/location-object)).
302
- *
303
- * When using date filters, you must use
304
- * [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).
305
- *
306
- * ## See also
307
- *
308
- * To learn about working with *Query* endpoints, see
309
- * [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
310
- * and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
311
- */
312
- export declare function queryLocations(payload: object): RequestOptionsFactory<any>;
313
- /**
314
- * Retrieves a list of service *categories*
315
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/categories/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/categories-v2/introduction)),
316
- * given the provided filtering.
317
- *
318
- *
319
- * ## Defaults
320
- *
321
- * Query Categories has the following default setting, which you can't override:
322
- * Sorted by `id` in ascending order.
323
- *
324
- * ## Filters
325
- *
326
- * For a complete list of supported filters, refer to the supported filters article
327
- * ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/filtering-and-sorting#filtering)).
328
- *
329
- * When using date filters, you must use
330
- * [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).
331
- *
332
- * ## See also
333
- *
334
- * To learn about working with *Query* endpoints, see
335
- * [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
336
- * and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
337
- */
338
- export declare function queryCategories(payload: object): RequestOptionsFactory<any>;
339
- /**
340
- * Replaces the list of the *locations*
341
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction))
342
- * where the business offers the service.
343
- *
344
- *
345
- * ## Consequences for customers
346
- *
347
- * Removing a service location may impact existing sessions and their
348
- * participants. If you remove at least one service location, you must
349
- * specify `removedLocationSessionsAction` to indicate what happens to all
350
- * future sessions scheduled at this location.
351
- *
352
- * - **Keep existing location**: If you want to retain future sessions at their
353
- * originally scheduled location, specify
354
- * `{"removedLocationSessionsAction.action": "KEEP_AT_CURRENT_LOCATION"}`.
355
- * This ensures nothing changes for the customer, but the business must be
356
- * able to provide access to the removed location in the future.
357
- * - **Update location**: If you want to update the location for future sessions
358
- * scheduled at the removed location, specify
359
- * `{"removedLocationSessionsAction.action": "MOVE_TO_LOCATION"}` and
360
- * `moveToLocationOptions.newLocation`.
361
- *
362
- * You can't mix and match to keep some sessions at the previous location while
363
- * moving other sessions to an updated location.
364
- *
365
- * Past session details aren't changed, no matter which option you choose for
366
- * future sessions.
367
- *
368
- * Future sessions scheduled for a location defined by the customer are also not
369
- * updated.
370
- *
371
- * ## Specify location details
372
- *
373
- * Depending on whether the new or updated location is a business or custom location,
374
- * you need to specify different fields.
375
- *
376
- * - **Business location**: Specify the relevant *location ID*
377
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction))
378
- * in `locations.business.id`.
379
- * - **Custom location**: Specify the complete address object as
380
- * `locations.custom.address`.
381
- *
382
- * ## Participant notifications
383
- *
384
- * You can specify a `participantNotification.message` that's immediately send
385
- * to all customers who had booked at a changed location. Ensure
386
- * `participantNotification.notifyParticipants` is set to `true` to send the
387
- * message.
388
- */
389
- export declare function setServiceLocations(payload: object): RequestOptionsFactory<any>;
390
- /**
391
- * Adds a list of *pricing plan IDs*
392
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/introduction) | [REST](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/plans/plan-object))
393
- * to a service's `payment.pricingPlanIds` array.
394
- *
395
- *
396
- * The call doesn't validate whether the service's `payment.options.pricingPlan`
397
- * is set to `true`. If it's set to `false`, customers aren't able to pay
398
- * for their bookings using pricing plans. You can call *Update Service*
399
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/update-service) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/update-service))
400
- * to change a service's supported payment methods.
401
- */
402
- export declare function enablePricingPlansForService(payload: object): RequestOptionsFactory<any>;
403
- /**
404
- * Removes a list of *pricing plan IDs*
405
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/introduction) | [REST](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/plans/plan-object))
406
- * from a service's `payment.pricingPlanIds` array.
407
- *
408
- *
409
- * If you remove all pricing plan IDs from `payment.pricingPlanIds` and the
410
- * service supports only payments by pricing plan, customers will no longer be
411
- * able to book the service, as they will have no payment options available.
412
- */
413
- export declare function disablePricingPlansForService(payload: object): RequestOptionsFactory<any>;
414
- /**
415
- * Sets a new active slug for the service.
416
- *
417
- *
418
- * The call fails if at least one of these conditions is met:
419
- * - The slug doesn't adheres to the supported format.
420
- * - Another service is currently using the slug.
421
- * - Another service has used the slug in the past.
422
- */
423
- export declare function setCustomSlug(payload: object): RequestOptionsFactory<any>;
424
- /**
425
- * Checks whether a custom slug is validate for the service.
426
- *
427
- *
428
- * The checks include:
429
- * - The slug adheres to the supported format.
430
- * - No other service is currently using the slug.
431
- * - No other service has used the slug in the past.
432
- *
433
- * The call fails if at least one of the checks fails.
434
- */
435
- export declare function validateSlug(payload: object): RequestOptionsFactory<any>;
436
- /**
437
- * Clones a service.
438
- *
439
- *
440
- * ## Connected entities
441
- *
442
- * By default, not all entities connected to the service are cloned.
443
- *
444
- * ### Schedule
445
- *
446
- * Wix Bookings automatically creates a new active *schedule*
447
- * ([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))
448
- * for the cloned service. If Wix Bookings can't create this schedule, the
449
- * Clone Service* call fails.
450
- *
451
- * - __For appointment-based services__: Future appointments aren't added to the
452
- * cloned service's schedule. Use the *Events API*
453
- * ([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))
454
- * to add them as needed.
455
- * - __For classes and courses__: Future one-time events aren't added to the
456
- * cloned service's schedule, while future recurring events are added
457
- * asynchronously. The *Clone Service* call always succeeds, whether or not
458
- * recurring events are added.
459
- * If the response includes `RECURRING_EVENTS` in the `errors` array, it means the
460
- * cloned service doesn't have future recurring events, even though the original
461
- * service does. You can either delete the cloned service and try again or use
462
- * the *Events API*
463
- * ([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))
464
- * to add missing events to the schedule.
465
- *
466
- * Wix Bookings never adds past events to the cloned service's schedule.
467
- *
468
- * ### Service options and variants
469
- *
470
- * If the original service has *variants*
471
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction)),
472
- * they're cloned asynchronously. The *Clone Service* call always succeeds,
473
- * regardless of whether variants were cloned.
474
- *
475
- * If the response includes `OPTIONS_AND_VARIANTS` in the `errors` array, the cloned
476
- * service doesn't have variants, even though the original service does. You can
477
- * delete the cloned service and call *Clone Service* again, or use the
478
- * _Service Options And Variants API_
479
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction))
480
- * to add variants.
481
- *
482
- * ### Booking form
483
- *
484
- * The original service's booking form isn't cloned, whether it's
485
- * the default or a custom booking form.
486
- *
487
- * ### Pricing plans
488
- *
489
- * If the original service's accepts payments via *pricing plans*
490
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/pricing-plans/pricing-plans/plans/introduction)),
491
- * the cloned service's `payment.options.pricingPlan` is also set to `true`. To
492
- * accept specific pricing plans, call *Enable Pricing Plans For Service*
493
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/enable-pricing-plans-for-service) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/enable-pricing-plans-for-service)),
494
- * after cloning the service. If the original service accepts only
495
- * pricing plan payments and you don't call *Enable Pricing Plans For Service*
496
- * after cloning the service, customers will be unable to book the service.
497
- */
498
- export declare function cloneService(payload: object): RequestOptionsFactory<any>;