@wix/bookings 1.0.231 → 1.0.233

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.
@@ -31,8 +31,6 @@ const _createScheduleRequest = { schedule: '_schedule' };
31
31
  const _deleteResourceRequest = {};
32
32
  const _deleteResourceResponse = {};
33
33
  const _image = { urlExpirationDate: 'google.protobuf.Timestamp' };
34
- const _listResourcesRequest = {};
35
- const _listResourcesResponse = { resources: '_resource' };
36
34
  const _location = {
37
35
  customAddress: '_address',
38
36
  businessLocation: '_locationsLocation',
@@ -176,37 +174,6 @@ function resolveComWixpressBookingsResourcesCoreApiV1ResourceResourcesServiceUrl
176
174
  };
177
175
  return resolveUrl(Object.assign(opts, { domainToMappings }));
178
176
  }
179
- /** @internal */
180
- export function list(payload) {
181
- const { toJSON: toReq, fromJSON: fromReq } = serializer(_listResourcesRequest, {});
182
- const { fromJSON: fromRes } = serializer(_listResourcesResponse, {
183
- _address,
184
- _addressLocation,
185
- _availability,
186
- _image,
187
- _location,
188
- _locationsAddress,
189
- _locationsAddressLocation,
190
- _locationsLocation,
191
- _recurringInterval,
192
- _resource,
193
- _schedule,
194
- });
195
- function __list({ host }) {
196
- const serializedData = toReq(payload);
197
- const metadata = {
198
- entityFqdn: 'wix.bookings.catalog.v1.resource',
199
- method: 'GET',
200
- methodFqn: 'com.wixpress.bookings.resources.core.api.v1.resource.ResourcesService.List',
201
- url: resolveComWixpressBookingsResourcesCoreApiV1ResourceResourcesServiceUrl({ protoPath: '/v1/resources', data: serializedData, host }),
202
- params: toURLSearchParams(serializedData),
203
- transformResponse: fromRes,
204
- };
205
- return metadata;
206
- }
207
- __list.fromReq = fromReq;
208
- return __list;
209
- }
210
177
  /**
211
178
  * Retrieves a list of the resources according to the specified filters and paging.
212
179
  *
@@ -262,45 +229,25 @@ export function query(payload) {
262
229
  }
263
230
  /**
264
231
  * Creates a resource.
265
- * <!--ONLY:VELO
266
- * The `createResource()` function returns a Promise that resolves to the created resource.
267
- * <!--END:ONLY:VELO-->
268
232
  *
269
- * Bookings resources are created with a schedule. The schedule and its sessions determine the resource's availability. Note that the schedule must contain a start date in the `availability.start` property.
270
- * For resources that are available during the business's default hours, add the business's schedule as a linked schedule in the resource's schedule. For resources that have their own hours, create sessions with type `"WORKING_HOURS"` using the resource's schedule.
271
- * You can use both individual and recurring sessions to define resource availability. You cannot use availability constraints for resource schedules.
272
233
  *
273
- * <!--ONLY:VELO
274
- * When creating a resource using `createResource()`, include the resource's schedule information. Set the schedule information as follows:
275
- * + If the resource uses the default business hours, get the business resource's schedule ID and include it in the `scheduleInfo.availability.linkedSchedules` array in the `scheduleInfo` parameter. The default hours can bee found in the Dashboard under **Settings** in the **Bookings** section, on the **Appointment hours** page.
276
- * + If the resource has its own custom working hours, create the resource, then create sessions of type `"WORKING_HOURS"` using the [`createSession()`](wix-bookings-backend.Sessions/createsession) function. Use the `scheduleId` returned from `createResource()` when creating the sessions. These session can be single sessions or recurring sessions.
277
- * + You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
278
- *
279
- * > **Notes:**
280
- * > + The Wix Bookings app does not show both default business hours and custom hours on the **Staff** page in the dashboard. If you've set up both custom and default business hours, only the default business hours will appear in the app, although both are working.
281
- * > + The Wix Bookings app does not show non-recurring `WORKING_HOURS` sessions in the resource calendar.
282
- * > + You can only add the business resource's schedule as a linked schedule for a resource.
283
- * > + A resource can have one schedule only.
284
- * > + You can have up to 135 active resources and an additional 135 deleted resources.
285
- * > + Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can create a resource. You can override the role permissions by setting the `options.suppressAuth` parameter to `true`.
286
- * <!--END:ONLY:VELO-->
287
- *
288
- * <!--ONLY:REST-->
289
- * Use the following steps to create resources:
290
- * - Create the resource using including schedule information.
291
- * - If the resource uses the default business hours, get the business resource's schedule ID and include it in the `scheduleInfo.availability.linkedSchedules` array in the in the schedule parameters.
292
- * - If the resource has its own custom working hours, create sessions of type `"WORKING_HOURS"`. Use the `scheduleId` of the new resource when creating the sessions. These session can be single sessions or recurring sessions. You can have both business hours and custom hours for the same resource schedule.
234
+ * The `createResource()` function returns a Promise that resolves to the created resource.
235
+ * Bookings resources are created with a schedule. The schedule and its sessions determine the resource's availability. Note that the schedule must contain a start date in the availability.start property. For resources that are available during the business's default hours, add the business's schedule as a linked schedule in the resource's schedule. For resources that have their own hours, create sessions with type `WORKING_HOURS` using the resource's schedule. You can use both individual and recurring sessions to define resource availability. You cannot use availability constraints for resource schedules.
293
236
  *
294
- * >**Notes:**
295
- * > + A resource can have one schedule only.
296
- * > + You can have up to 135 active resources and an additional 135 deleted resources.
297
- * > + The `businessLocation.businessSchedule` object in the `schedule.location` object is not supported.
298
237
  *
238
+ * When creating a resource using `createResource()`, include the resource's schedule information. Set the schedule information as follows:
239
+ * - If the resource uses the default business hours, get the business resource's schedule ID and include it in the `scheduleInfo.availability.linkedSchedules` array in the `scheduleInfo` parameter. The default hours can bee found in the Dashboard under **Settings** in the **Bookings** section, on the **Appointment hours** page.
240
+ * - If the resource has its own custom working hours, create the resource, then create sessions of type `WORKING_HOURS` using the [`createSession()`](wix-bookings-v2/sessions/createsession) function. Use the `scheduleId` returned from `createResource()` when creating the sessions. These session can be single sessions or recurring sessions.
241
+ * - You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
299
242
  *
300
243
  *
301
- * >**Permissions:**
302
- * > This endpoint requires the Manage Bookings [permission scope](https://devforum.wix.com/kb/en/article/available-permissions).
303
- * <!--END:ONLY:REST-->
244
+ * > **Notes:**
245
+ * - The Wix Bookings app does not show both default business hours and custom hours on the **Staff** page in the dashboard. If you've set up both custom and default business hours, only the default business hours will appear in the app, although both are working.
246
+ * - The Wix Bookings app does not show non-recurring `WORKING_HOURS` sessions in the resource calendar.
247
+ * - You can only add the business resource's schedule as a linked schedule for a resource.
248
+ * - A resource can have one schedule only.
249
+ * - You can have up to 135 active resources and an additional 135 deleted resources.
250
+ * - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can create a resource.
304
251
  */
305
252
  export function create(payload) {
306
253
  const { toJSON: toReq, fromJSON: fromReq } = serializer(_createResourceRequest, {
@@ -346,26 +293,14 @@ export function create(payload) {
346
293
  }
347
294
  /**
348
295
  * Updates a resource.
349
- * <!--ONLY:VELO
350
- * The `updateResource()` function returns a Promise that resolves when a resource is updated.
351
- * Use this function to update all bookings resource information except for the resource's schedule. To update a resource's schedule use [`updateResourceSchedule()`](wix-bookings-backend/resource/updateresourceschedule).
352
296
  *
353
- * >**Notes:**
354
- * > + When updating a resource you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"business"` and `"staff"`.
355
- * > + Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource. You can override the role permissions by setting the `options.suppressAuth` parameter to `true`.
356
- * <!--END:ONLY:VELO-->
357
- * <!--ONLY:REST-->
358
- * Use this endpoint to update all resource information except for the resource's schedule. To update a resource's schedule use
359
- * the [Update Schedule](https://dev.wix.com/api/rest/wix-bookings/resources/update-schedule) endpoint.
360
297
  *
361
- * >**Notes:**
362
- * > + When updating a resource you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"business"` and `"staff"`.
363
- * > + When updating a resource's schedule you cannot change the resource tag used by the Wix Bookings app. Tags used by the app have the values `"INDIVIDUAL"`, `"GROUP"`, and `"COURSE”`.
364
- * > + The `businessLocation.businessSchedule` object in the `schedule.location` object is not supported.
298
+ * The `updateResource()` function returns a Promise that resolves when a resource is updated. Use this function to update all bookings resource information except for the resource's schedule. To update a resource's schedule use [`updateResourceSchedule()`](#updateresourceschedule).
365
299
  *
366
- * >**Permissions:**
367
- * > This endpoint requires the Manage Bookings [permission scope](https://devforum.wix.com/kb/en/article/available-permissions).
368
- * <!--END:ONLY:REST-->
300
+ *
301
+ * >**Notes:**
302
+ * - When updating a resource you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"business"` and `"staff"`.
303
+ * - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource.
369
304
  */
370
305
  export function update(payload) {
371
306
  const { toJSON: toReq, fromJSON: fromReq } = serializer(_updateResourceRequest, {
@@ -511,28 +446,19 @@ export function updateSchedule(payload) {
511
446
  }
512
447
  /**
513
448
  * Deletes a resource.
514
- * <!--ONLY:VELO
449
+ *
515
450
  * The `deleteResource()` function returns a Promise that is resolved when a resource is deleted.
516
- * <!--END:ONLY:VELO-->
517
- * Deleting a resource updates its `status` to `"DELETED"`.
451
+ *
452
+ *
453
+ * Deleting a resource updates its status to `DELETED`.
518
454
  *
519
455
  * You cannot delete a resource if it has booked sessions.
520
456
  *
521
- * <!--ONLY:VELO
522
- * >**Notes:**
523
- * > + The Bookings app automatically creates a resource with a name and tag of value `"business"``. This resource is used for the business's schedule and working hours and cannot be deleted.
524
- * > + You can have up to 135 active resources and an additional 135 deleted resources.
525
- * > + Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can delete a resource. You can override the role permissions by setting the `options.suppressAuth` parameter to `true`.
526
- * <!--END:ONLY:VELO-->
527
457
  *
528
- * <!--ONLY:REST-->
529
458
  * >**Notes:**
530
- * > + The Bookings app creates a resource with `"business"` in name and tag values. This resource is used for the business's schedule and working hours and cannot be deleted.
531
- * > + You can have up to 135 active resources and an additional 135 deleted resources.
532
- *
533
- * >**Permissions:**
534
- * > This endpoint requires the Manage Bookings [permission scope](https://devforum.wix.com/kb/en/article/available-permissions).
535
- * <!--END:ONLY:REST-->
459
+ * - The Bookings app automatically creates a resource with a name and tag of value `business`. This resource is used for the business's schedule and working hours and cannot be deleted.
460
+ * - You can have up to 135 active resources and an additional 135 deleted resources.
461
+ * - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can delete a resource.
536
462
  */
537
463
  export function _delete(payload) {
538
464
  const { toJSON: toReq, fromJSON: fromReq } = serializer(_deleteResourceRequest, {});
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-catalog-v1-resource.http.js","sourceRoot":"","sources":["../../../src/bookings-catalog-v1-resource.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAwBhD,MAAM,QAAQ,GAAG,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;AACjD,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,6BAA6B;CACzC,CAAC;AACF,MAAM,aAAa,GAAG;IACpB,KAAK,EAAE,2BAA2B;IAClC,GAAG,EAAE,2BAA2B;IAChC,SAAS,EAAE,WAAW;CACvB,CAAC;AACF,MAAM,aAAa,GAAG;IACpB,cAAc,EAAE,wBAAwB;IACxC,cAAc,EAAE,wBAAwB;IACxC,cAAc,EAAE,wBAAwB;CACzC,CAAC;AACF,MAAM,cAAc,GAAG;IACrB,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,WAAW;IACpB,SAAS,EAAE,WAAW;CACvB,CAAC;AACF,MAAM,sBAAsB,GAAG,EAAE,IAAI,EAAE,2BAA2B,EAAE,CAAC;AACrE,MAAM,sBAAsB,GAAG;IAC7B,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,WAAW;CACvB,CAAC;AACF,MAAM,uBAAuB,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;AAC1D,MAAM,sBAAsB,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;AACzD,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAClC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AACnC,MAAM,MAAM,GAAG,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,CAAC;AAClE,MAAM,qBAAqB,GAAG,EAAE,CAAC;AACjC,MAAM,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AC;IAClB,CAAC;IAED,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC;IAE5B,OAAO,SAAS,CAAC;AACnB,CAAC"}
1
+ {"version":3,"file":"bookings-catalog-v1-resource.http.js","sourceRoot":"","sources":["../../../src/bookings-catalog-v1-resource.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAqBhD,MAAM,QAAQ,GAAG,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;AACjD,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,6BAA6B;CACzC,CAAC;AACF,MAAM,aAAa,GAAG;IACpB,KAAK,EAAE,2BAA2B;IAClC,GAAG,EAAE,2BAA2B;IAChC,SAAS,EAAE,WAAW;CACvB,CAAC;AACF,MAAM,aAAa,GAAG;IACpB,cAAc,EAAE,wBAAwB;IACxC,cAAc,EAAE,wBAAwB;IACxC,cAAc,EAAE,wBAAwB;CACzC,CAAC;AACF,MAAM,cAAc,GAAG;IACrB,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,WAAW;IACpB,SAAS,EAAE,WAAW;CACvB,CAAC;AACF,MAAM,sBAAsB,GAAG,EAAE,IAAI,EAAE,2BAA2B,EAAE,CAAC;AACrE,MAAM,sBAAsB,GAAG;IAC7B,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,WAAW;CACvB,CAAC;AACF,MAAM,uBAAuB,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;AAC1D,MAAM,sBAAsB,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;AACzD,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAClC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AACnC,MAAM,MAAM,GAAG,EAAE,iBA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AM,EAAE,QAAe;YACvB,SAAS,EACP,+EAA+E;YACjF,GAAG,EAAE,uEAAuE,CAC1E,EAAE,SAAS,EAAE,oBAAoB,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,CAChE;YACD,MAAM,EAAE,iBAAiB,CAAC,cAAc,CAAC;YACzC,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC;IAE5B,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -1,13 +1,12 @@
1
1
  import { HttpClient } from '@wix/sdk-types';
2
- import { Resource, CreateOptions, ListOptions, QueryOptions, UpdateOptions, UpdateScheduleOptions } from './bookings-catalog-v1-resource.universal';
2
+ import { Resource, CreateResourceOptions, QueryResourcesOptions, UpdateResourceOptions, UpdateScheduleOptions } from './bookings-catalog-v1-resource.universal';
3
3
  export declare const __metadata: {
4
4
  PACKAGE_NAME: string;
5
5
  };
6
- export declare function list(httpClient: HttpClient): (options?: ListOptions | undefined) => Promise<import("./bookings-catalog-v1-resource.universal").ListResourcesResponse & import("./bookings-catalog-v1-resource.universal").ListResourcesResponseNonNullableFields>;
7
- export declare function query(httpClient: HttpClient): (options?: QueryOptions | undefined) => Promise<import("./bookings-catalog-v1-resource.universal").QueryResourcesResponse & import("./bookings-catalog-v1-resource.universal").QueryResourcesResponseNonNullableFields>;
8
- export declare function create(httpClient: HttpClient): (resource: Resource, options?: CreateOptions | undefined) => Promise<import("./bookings-catalog-v1-resource.universal").CreateResourceResponse & import("./bookings-catalog-v1-resource.universal").CreateResourceResponseNonNullableFields>;
9
- export declare function update(httpClient: HttpClient): (_id: string | null, options?: UpdateOptions | undefined) => Promise<import("./bookings-catalog-v1-resource.universal").UpdateResourceResponse & import("./bookings-catalog-v1-resource.universal").UpdateResourceResponseNonNullableFields>;
6
+ export declare function queryResources(httpClient: HttpClient): (options?: QueryResourcesOptions | undefined) => Promise<import("./bookings-catalog-v1-resource.universal").QueryResourcesResponse & import("./bookings-catalog-v1-resource.universal").QueryResourcesResponseNonNullableFields>;
7
+ export declare function createResource(httpClient: HttpClient): (resource: Resource, options?: CreateResourceOptions | undefined) => Promise<import("./bookings-catalog-v1-resource.universal").CreateResourceResponse & import("./bookings-catalog-v1-resource.universal").CreateResourceResponseNonNullableFields>;
8
+ export declare function updateResource(httpClient: HttpClient): (_id: string | null, options?: UpdateResourceOptions | undefined) => Promise<import("./bookings-catalog-v1-resource.universal").UpdateResourceResponse & import("./bookings-catalog-v1-resource.universal").UpdateResourceResponseNonNullableFields>;
10
9
  export declare function updateSchedule(httpClient: HttpClient): (resourceId: string | null, options?: UpdateScheduleOptions | undefined) => Promise<import("./bookings-catalog-v1-resource.universal").UpdateScheduleResponse & import("./bookings-catalog-v1-resource.universal").UpdateScheduleResponseNonNullableFields>;
11
- export declare function _delete(httpClient: HttpClient): (_id: string) => Promise<import("./bookings-catalog-v1-resource.universal").DeleteResourceResponse & import("./bookings-catalog-v1-resource.universal").DeleteResourceResponseNonNullableFields>;
10
+ export declare function deleteResource(httpClient: HttpClient): (_id: string) => Promise<import("./bookings-catalog-v1-resource.universal").DeleteResourceResponse & import("./bookings-catalog-v1-resource.universal").DeleteResourceResponseNonNullableFields>;
12
11
  export { Day, Transparency, RecurringIntervalType, LocationType, LocationStatus, LocationsLocationType, DayOfWeek, ApprovalStatus, ScheduleStatus, ConferenceType, ResourceStatus, SortOrder, Event, } from './bookings-catalog-v1-resource.universal';
13
- export { Resource, Schedule, RecurringInterval, Interval, Frequency, LinkedSchedule, Location, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, LocationsLocation, LocationsAddress, LocationsStreetAddress, LocationsAddressLocation, BusinessSchedule, TimePeriod, SpecialHourPeriod, Rate, Price, Availability, AvailabilityConstraints, SplitInterval, Participant, ExternalCalendarOverrides, Version, ConferenceProvider, CalendarConference, BusinessLocation, ListResourcesRequest, Query, Sorting, Paging, ListResourcesResponse, QueryMetaData, PagingMetadataV2, Cursors, QueryResourcesRequest, QueryV2, QueryV2PagingMethodOneOf, CursorPaging, QueryResourcesResponse, CreateResourceRequest, CreateResourceResponse, ResourceNotification, BatchCreateResourceRequest, BatchCreateResourceResponse, UpdateResourceRequest, BatchRequest, CreateScheduleRequest, UpdateScheduleRequest, ParticipantNotification, CancelScheduleRequest, UpdateResourceResponse, BatchResponse, ResourceUpdateScheduleRequest, UpdateScheduleResponse, DeleteResourceRequest, DeleteResourceResponse, BatchDeleteResourceRequest, BatchDeleteResourceResponse, LinkResourceToUserRequest, LinkResourceToUserResponse, UnLinkResourceFromOwnerRequest, UnLinkResourceFromOwnerResponse, ListResourcesResponseNonNullableFields, QueryResourcesResponseNonNullableFields, CreateResourceResponseNonNullableFields, UpdateResourceResponseNonNullableFields, UpdateScheduleResponseNonNullableFields, DeleteResourceResponseNonNullableFields, ListOptions, QueryOptions, CreateOptions, UpdateOptions, UpdateScheduleOptions, } from './bookings-catalog-v1-resource.universal';
12
+ export { Resource, Schedule, RecurringInterval, Interval, Frequency, LinkedSchedule, Location, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, LocationsLocation, LocationsAddress, LocationsStreetAddress, LocationsAddressLocation, BusinessSchedule, TimePeriod, SpecialHourPeriod, Rate, Price, Availability, AvailabilityConstraints, SplitInterval, Participant, ExternalCalendarOverrides, Version, ConferenceProvider, CalendarConference, BusinessLocation, ListResourcesRequest, Query, Sorting, Paging, ListResourcesResponse, QueryMetaData, PagingMetadataV2, Cursors, QueryResourcesRequest, QueryV2, QueryV2PagingMethodOneOf, CursorPaging, QueryResourcesResponse, CreateResourceRequest, CreateResourceResponse, ResourceNotification, BatchCreateResourceRequest, BatchCreateResourceResponse, UpdateResourceRequest, BatchRequest, CreateScheduleRequest, UpdateScheduleRequest, ParticipantNotification, CancelScheduleRequest, UpdateResourceResponse, BatchResponse, ResourceUpdateScheduleRequest, UpdateScheduleResponse, DeleteResourceRequest, DeleteResourceResponse, BatchDeleteResourceRequest, BatchDeleteResourceResponse, LinkResourceToUserRequest, LinkResourceToUserResponse, UnLinkResourceFromOwnerRequest, UnLinkResourceFromOwnerResponse, QueryResourcesResponseNonNullableFields, CreateResourceResponseNonNullableFields, UpdateResourceResponseNonNullableFields, UpdateScheduleResponseNonNullableFields, DeleteResourceResponseNonNullableFields, QueryResourcesOptions, CreateResourceOptions, UpdateResourceOptions, UpdateScheduleOptions, } from './bookings-catalog-v1-resource.universal';
@@ -1,22 +1,17 @@
1
- import { list as universalList, query as universalQuery, create as universalCreate, update as universalUpdate, updateSchedule as universalUpdateSchedule, _delete as universal_delete, } from './bookings-catalog-v1-resource.universal';
1
+ import { queryResources as universalQueryResources, createResource as universalCreateResource, updateResource as universalUpdateResource, updateSchedule as universalUpdateSchedule, deleteResource as universalDeleteResource, } from './bookings-catalog-v1-resource.universal';
2
2
  export const __metadata = { PACKAGE_NAME: '@wix/bookings' };
3
- export function list(httpClient) {
4
- return (options) => universalList(options,
3
+ export function queryResources(httpClient) {
4
+ return (options) => universalQueryResources(options,
5
5
  // @ts-ignore
6
6
  { httpClient });
7
7
  }
8
- export function query(httpClient) {
9
- return (options) => universalQuery(options,
8
+ export function createResource(httpClient) {
9
+ return (resource, options) => universalCreateResource(resource, options,
10
10
  // @ts-ignore
11
11
  { httpClient });
12
12
  }
13
- export function create(httpClient) {
14
- return (resource, options) => universalCreate(resource, options,
15
- // @ts-ignore
16
- { httpClient });
17
- }
18
- export function update(httpClient) {
19
- return (_id, options) => universalUpdate(_id, options,
13
+ export function updateResource(httpClient) {
14
+ return (_id, options) => universalUpdateResource(_id, options,
20
15
  // @ts-ignore
21
16
  { httpClient });
22
17
  }
@@ -25,8 +20,8 @@ export function updateSchedule(httpClient) {
25
20
  // @ts-ignore
26
21
  { httpClient });
27
22
  }
28
- export function _delete(httpClient) {
29
- return (_id) => universal_delete(_id,
23
+ export function deleteResource(httpClient) {
24
+ return (_id) => universalDeleteResource(_id,
30
25
  // @ts-ignore
31
26
  { httpClient });
32
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-catalog-v1-resource.public.js","sourceRoot":"","sources":["../../../src/bookings-catalog-v1-resource.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,IAAI,IAAI,aAAa,EACrB,KAAK,IAAI,cAAc,EACvB,MAAM,IAAI,eAAe,EACzB,MAAM,IAAI,eAAe,EACzB,cAAc,IAAI,uBAAuB,EACzC,OAAO,IAAI,gBAAgB,GAO5B,MAAM,0CAA0C,CAAC;AAElD,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,MAAM,UAAU,IAAI,CAAC,UAAsB;IACzC,OAAO,CAAC,OAAqB,EAAE,EAAE,CAC/B,aAAa,CACX,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,KAAK,CAAC,UAAsB;IAC1C,OAAO,CAAC,OAAsB,EAAE,EAAE,CAChC,cAAc,CACZ,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,UAAsB;IAC3C,OAAO,CAAC,QAAkB,EAAE,OAAuB,EAAE,EAAE,CACrD,eAAe,CACb,QAAQ,EACR,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,UAAsB;IAC3C,OAAO,CAAC,GAAkB,EAAE,OAAuB,EAAE,EAAE,CACrD,eAAe,CACb,GAAG,EACH,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,UAAsB;IACnD,OAAO,CAAC,UAAyB,EAAE,OAA+B,EAAE,EAAE,CACpE,uBAAuB,CACrB,UAAU,EACV,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,UAAsB;IAC5C,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,gBAAgB,CACd,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,OAAO,EACL,GAAG,EACH,YAAY,EACZ,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACd,qBAAqB,EACrB,SAAS,EACT,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,SAAS,EACT,KAAK,GACN,MAAM,0CAA0C,CAAC"}
1
+ {"version":3,"file":"bookings-catalog-v1-resource.public.js","sourceRoot":"","sources":["../../../src/bookings-catalog-v1-resource.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,IAAI,uBAAuB,EACzC,cAAc,IAAI,uBAAuB,EACzC,cAAc,IAAI,uBAAuB,EACzC,cAAc,IAAI,uBAAuB,EACzC,cAAc,IAAI,uBAAuB,GAM1C,MAAM,0CAA0C,CAAC;AAElD,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,MAAM,UAAU,cAAc,CAAC,UAAsB;IACnD,OAAO,CAAC,OAA+B,EAAE,EAAE,CACzC,uBAAuB,CACrB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,UAAsB;IACnD,OAAO,CAAC,QAAkB,EAAE,OAA+B,EAAE,EAAE,CAC7D,uBAAuB,CACrB,QAAQ,EACR,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,UAAsB;IACnD,OAAO,CAAC,GAAkB,EAAE,OAA+B,EAAE,EAAE,CAC7D,uBAAuB,CACrB,GAAG,EACH,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,UAAsB;IACnD,OAAO,CAAC,UAAyB,EAAE,OAA+B,EAAE,EAAE,CACpE,uBAAuB,CACrB,UAAU,EACV,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,UAAsB;IACnD,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,uBAAuB,CACrB,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,OAAO,EACL,GAAG,EACH,YAAY,EACZ,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACd,qBAAqB,EACrB,SAAS,EACT,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,SAAS,EACT,KAAK,GACN,MAAM,0CAA0C,CAAC"}
@@ -930,313 +930,6 @@ export interface UnLinkResourceFromOwnerResponse {
930
930
  /** The updated resource. */
931
931
  resource?: Resource;
932
932
  }
933
- export interface ListResourcesResponseNonNullableFields {
934
- resources: {
935
- images: {
936
- id: string;
937
- url: string;
938
- height: number;
939
- width: number;
940
- }[];
941
- schedules: {
942
- id: string;
943
- intervals: {
944
- id: string;
945
- interval?: {
946
- daysOfWeek: Day;
947
- duration: number;
948
- };
949
- affectedSchedules: {
950
- scheduleId: string;
951
- transparency: Transparency;
952
- scheduleOwnerId: string;
953
- }[];
954
- intervalType: RecurringIntervalType;
955
- }[];
956
- location?: {
957
- locationType: LocationType;
958
- customAddress?: {
959
- streetAddress?: {
960
- number: string;
961
- name: string;
962
- apt: string;
963
- };
964
- subdivisions: {
965
- code: string;
966
- name: string;
967
- }[];
968
- };
969
- businessLocation?: {
970
- name: string;
971
- default: boolean;
972
- status: LocationStatus;
973
- locationType: LocationsLocationType;
974
- address?: {
975
- streetAddress?: {
976
- number: string;
977
- name: string;
978
- apt: string;
979
- };
980
- };
981
- businessSchedule?: {
982
- periods: {
983
- openDay: DayOfWeek;
984
- openTime: string;
985
- closeDay: DayOfWeek;
986
- closeTime: string;
987
- }[];
988
- specialHourPeriod: {
989
- startDate: string;
990
- endDate: string;
991
- isClosed: boolean;
992
- comment: string;
993
- }[];
994
- };
995
- archived: boolean;
996
- };
997
- };
998
- rate?: {
999
- labeledPriceOptions?: {
1000
- amount: string;
1001
- currency: string;
1002
- downPayAmount: string;
1003
- };
1004
- defaultVariedPrice?: {
1005
- amount: string;
1006
- currency: string;
1007
- downPayAmount: string;
1008
- };
1009
- };
1010
- availability?: {
1011
- linkedSchedules: {
1012
- scheduleId: string;
1013
- transparency: Transparency;
1014
- scheduleOwnerId: string;
1015
- }[];
1016
- constraints?: {
1017
- slotDurations: number[];
1018
- timeBetweenSlots: number;
1019
- };
1020
- locations: {
1021
- locationType: LocationType;
1022
- customAddress?: {
1023
- streetAddress?: {
1024
- number: string;
1025
- name: string;
1026
- apt: string;
1027
- };
1028
- subdivisions: {
1029
- code: string;
1030
- name: string;
1031
- }[];
1032
- };
1033
- businessLocation?: {
1034
- name: string;
1035
- default: boolean;
1036
- status: LocationStatus;
1037
- locationType: LocationsLocationType;
1038
- address?: {
1039
- streetAddress?: {
1040
- number: string;
1041
- name: string;
1042
- apt: string;
1043
- };
1044
- };
1045
- businessSchedule?: {
1046
- periods: {
1047
- openDay: DayOfWeek;
1048
- openTime: string;
1049
- closeDay: DayOfWeek;
1050
- closeTime: string;
1051
- }[];
1052
- specialHourPeriod: {
1053
- startDate: string;
1054
- endDate: string;
1055
- isClosed: boolean;
1056
- comment: string;
1057
- }[];
1058
- };
1059
- archived: boolean;
1060
- };
1061
- }[];
1062
- };
1063
- totalNumberOfParticipants: number;
1064
- participants: {
1065
- id: string;
1066
- partySize: number;
1067
- approvalStatus: ApprovalStatus;
1068
- inherited: boolean;
1069
- }[];
1070
- status: ScheduleStatus;
1071
- version: number;
1072
- inheritedFields: string[];
1073
- conferenceProvider?: {
1074
- providerId: string;
1075
- };
1076
- calendarConference?: {
1077
- id: string;
1078
- externalId: string;
1079
- providerId: string;
1080
- hostUrl: string;
1081
- guestUrl: string;
1082
- conferenceType: ConferenceType;
1083
- };
1084
- }[];
1085
- status: ResourceStatus;
1086
- businessLocation?: {
1087
- locationId: string;
1088
- };
1089
- eventsSchedule?: {
1090
- id: string;
1091
- intervals: {
1092
- id: string;
1093
- interval?: {
1094
- daysOfWeek: Day;
1095
- duration: number;
1096
- };
1097
- affectedSchedules: {
1098
- scheduleId: string;
1099
- transparency: Transparency;
1100
- scheduleOwnerId: string;
1101
- }[];
1102
- intervalType: RecurringIntervalType;
1103
- }[];
1104
- location?: {
1105
- locationType: LocationType;
1106
- customAddress?: {
1107
- streetAddress?: {
1108
- number: string;
1109
- name: string;
1110
- apt: string;
1111
- };
1112
- subdivisions: {
1113
- code: string;
1114
- name: string;
1115
- }[];
1116
- };
1117
- businessLocation?: {
1118
- name: string;
1119
- default: boolean;
1120
- status: LocationStatus;
1121
- locationType: LocationsLocationType;
1122
- address?: {
1123
- streetAddress?: {
1124
- number: string;
1125
- name: string;
1126
- apt: string;
1127
- };
1128
- };
1129
- businessSchedule?: {
1130
- periods: {
1131
- openDay: DayOfWeek;
1132
- openTime: string;
1133
- closeDay: DayOfWeek;
1134
- closeTime: string;
1135
- }[];
1136
- specialHourPeriod: {
1137
- startDate: string;
1138
- endDate: string;
1139
- isClosed: boolean;
1140
- comment: string;
1141
- }[];
1142
- };
1143
- archived: boolean;
1144
- };
1145
- };
1146
- rate?: {
1147
- labeledPriceOptions?: {
1148
- amount: string;
1149
- currency: string;
1150
- downPayAmount: string;
1151
- };
1152
- defaultVariedPrice?: {
1153
- amount: string;
1154
- currency: string;
1155
- downPayAmount: string;
1156
- };
1157
- };
1158
- availability?: {
1159
- linkedSchedules: {
1160
- scheduleId: string;
1161
- transparency: Transparency;
1162
- scheduleOwnerId: string;
1163
- }[];
1164
- constraints?: {
1165
- slotDurations: number[];
1166
- timeBetweenSlots: number;
1167
- };
1168
- locations: {
1169
- locationType: LocationType;
1170
- customAddress?: {
1171
- streetAddress?: {
1172
- number: string;
1173
- name: string;
1174
- apt: string;
1175
- };
1176
- subdivisions: {
1177
- code: string;
1178
- name: string;
1179
- }[];
1180
- };
1181
- businessLocation?: {
1182
- name: string;
1183
- default: boolean;
1184
- status: LocationStatus;
1185
- locationType: LocationsLocationType;
1186
- address?: {
1187
- streetAddress?: {
1188
- number: string;
1189
- name: string;
1190
- apt: string;
1191
- };
1192
- };
1193
- businessSchedule?: {
1194
- periods: {
1195
- openDay: DayOfWeek;
1196
- openTime: string;
1197
- closeDay: DayOfWeek;
1198
- closeTime: string;
1199
- }[];
1200
- specialHourPeriod: {
1201
- startDate: string;
1202
- endDate: string;
1203
- isClosed: boolean;
1204
- comment: string;
1205
- }[];
1206
- };
1207
- archived: boolean;
1208
- };
1209
- }[];
1210
- };
1211
- totalNumberOfParticipants: number;
1212
- participants: {
1213
- id: string;
1214
- partySize: number;
1215
- approvalStatus: ApprovalStatus;
1216
- inherited: boolean;
1217
- }[];
1218
- status: ScheduleStatus;
1219
- version: number;
1220
- inheritedFields: string[];
1221
- conferenceProvider?: {
1222
- providerId: string;
1223
- };
1224
- calendarConference?: {
1225
- id: string;
1226
- externalId: string;
1227
- providerId: string;
1228
- hostUrl: string;
1229
- guestUrl: string;
1230
- conferenceType: ConferenceType;
1231
- };
1232
- };
1233
- }[];
1234
- metadata?: {
1235
- items: number;
1236
- offset: number;
1237
- totalCount: number;
1238
- };
1239
- }
1240
933
  export interface QueryResourcesResponseNonNullableFields {
1241
934
  resources: {
1242
935
  images: {