@wix/auto_sdk_bookings_services 1.0.0

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