@wix/auto_sdk_bookings_services 1.0.32 → 1.0.34

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