@wix/bookings 1.0.119 → 1.0.121

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 (23) hide show
  1. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.http.d.ts +1 -1
  2. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.http.js +1 -1
  3. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.d.ts +2 -2
  4. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.d.ts +3 -3
  5. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.js +1 -1
  6. package/build/cjs/src/bookings-services-v2-service.public.d.ts +2 -3
  7. package/build/cjs/src/bookings-services-v2-service.public.js +1 -1
  8. package/build/cjs/src/bookings-services-v2-service.public.js.map +1 -1
  9. package/build/cjs/src/bookings-services-v2-service.universal.d.ts +66 -3
  10. package/build/cjs/src/bookings-services-v2-service.universal.js +58 -51
  11. package/build/cjs/src/bookings-services-v2-service.universal.js.map +1 -1
  12. package/build/es/src/bookings-catalog-v1-service-options-and-variants.http.d.ts +1 -1
  13. package/build/es/src/bookings-catalog-v1-service-options-and-variants.http.js +1 -1
  14. package/build/es/src/bookings-catalog-v1-service-options-and-variants.types.d.ts +2 -2
  15. package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.d.ts +3 -3
  16. package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.js +1 -1
  17. package/build/es/src/bookings-services-v2-service.public.d.ts +2 -3
  18. package/build/es/src/bookings-services-v2-service.public.js +1 -1
  19. package/build/es/src/bookings-services-v2-service.public.js.map +1 -1
  20. package/build/es/src/bookings-services-v2-service.universal.d.ts +66 -3
  21. package/build/es/src/bookings-services-v2-service.universal.js +59 -52
  22. package/build/es/src/bookings-services-v2-service.universal.js.map +1 -1
  23. package/package.json +2 -2
@@ -60,7 +60,7 @@ export declare function deleteServiceOptionsAndVariants(payload: DeleteServiceOp
60
60
  * - `cursorPaging.limit` is `100`
61
61
  *
62
62
  * For a detailed list of supported filtering operations see
63
- * [supported filters](https://dev.wix.com/api/rest/wix-bookings/service-variants/supported-filters).
63
+ * [supported filters](https://dev.wix.com/api/rest/wix-bookings/service-options-and-variants/supported-filters).
64
64
  *
65
65
  * To learn about working with _Query_ endpoints, see
66
66
  * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
@@ -283,7 +283,7 @@ exports.deleteServiceOptionsAndVariants = deleteServiceOptionsAndVariants;
283
283
  * - `cursorPaging.limit` is `100`
284
284
  *
285
285
  * For a detailed list of supported filtering operations see
286
- * [supported filters](https://dev.wix.com/api/rest/wix-bookings/service-variants/supported-filters).
286
+ * [supported filters](https://dev.wix.com/api/rest/wix-bookings/service-options-and-variants/supported-filters).
287
287
  *
288
288
  * To learn about working with _Query_ endpoints, see
289
289
  * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
@@ -85,7 +85,7 @@ export interface ServiceChoice extends ServiceChoiceChoiceOneOf {
85
85
  /** Name of the custom choice. */
86
86
  custom?: string;
87
87
  /**
88
- * ID of the staff member providing the service. Equal to the `resourceId`
88
+ * ID of the staff member providing the service. This ID is the equivalent of the `resourceId`
89
89
  * of the staff member or the `scheduleOwnerId` of the relevant
90
90
  * [schedule's](https://dev.wix.com/api/rest/wix-bookings/schedules-and-sessions/schedule/schedule-object)
91
91
  * `availability.linkedSchedules`.
@@ -99,7 +99,7 @@ export interface ServiceChoiceChoiceOneOf {
99
99
  /** Name of the custom choice. */
100
100
  custom?: string;
101
101
  /**
102
- * ID of the staff member providing the service. Equal to the `resourceId`
102
+ * ID of the staff member providing the service. This ID is the equivalent of the `resourceId`
103
103
  * of the staff member or the `scheduleOwnerId` of the relevant
104
104
  * [schedule's](https://dev.wix.com/api/rest/wix-bookings/schedules-and-sessions/schedule/schedule-object)
105
105
  * `availability.linkedSchedules`.
@@ -91,7 +91,7 @@ export interface ServiceChoice extends ServiceChoiceChoiceOneOf {
91
91
  /** Name of the custom choice. */
92
92
  custom?: string;
93
93
  /**
94
- * ID of the staff member providing the service. Equal to the `resourceId`
94
+ * ID of the staff member providing the service. This ID is the equivalent of the `resourceId`
95
95
  * of the staff member or the `scheduleOwnerId` of the relevant
96
96
  * [schedule's](https://dev.wix.com/api/rest/wix-bookings/schedules-and-sessions/schedule/schedule-object)
97
97
  * `availability.linkedSchedules`.
@@ -105,7 +105,7 @@ export interface ServiceChoiceChoiceOneOf {
105
105
  /** Name of the custom choice. */
106
106
  custom?: string;
107
107
  /**
108
- * ID of the staff member providing the service. Equal to the `resourceId`
108
+ * ID of the staff member providing the service. This ID is the equivalent of the `resourceId`
109
109
  * of the staff member or the `scheduleOwnerId` of the relevant
110
110
  * [schedule's](https://dev.wix.com/api/rest/wix-bookings/schedules-and-sessions/schedule/schedule-object)
111
111
  * `availability.linkedSchedules`.
@@ -1958,7 +1958,7 @@ export interface DeleteServiceOptionsAndVariantsOptions {
1958
1958
  * - `cursorPaging.limit` is `100`
1959
1959
  *
1960
1960
  * For a detailed list of supported filtering operations see
1961
- * [supported filters](https://dev.wix.com/api/rest/wix-bookings/service-variants/supported-filters).
1961
+ * [supported filters](https://dev.wix.com/api/rest/wix-bookings/service-options-and-variants/supported-filters).
1962
1962
  *
1963
1963
  * To learn about working with _Query_ endpoints, see
1964
1964
  * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
@@ -621,7 +621,7 @@ exports.deleteServiceOptionsAndVariants = deleteServiceOptionsAndVariants;
621
621
  * - `cursorPaging.limit` is `100`
622
622
  *
623
623
  * For a detailed list of supported filtering operations see
624
- * [supported filters](https://dev.wix.com/api/rest/wix-bookings/service-variants/supported-filters).
624
+ * [supported filters](https://dev.wix.com/api/rest/wix-bookings/service-options-and-variants/supported-filters).
625
625
  *
626
626
  * To learn about working with _Query_ endpoints, see
627
627
  * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
@@ -1,9 +1,8 @@
1
1
  import { HttpClient } from '@wix/sdk-types';
2
- import { QueryV2 } from './bookings-services-v2-service.universal';
3
2
  export declare const __metadata: {
4
3
  PACKAGE_NAME: string;
5
4
  };
6
5
  export declare function getService(httpClient: HttpClient): (serviceId: string) => Promise<import("./bookings-services-v2-service.universal").Service>;
7
- export declare function queryServices(httpClient: HttpClient): (query: QueryV2) => Promise<import("./bookings-services-v2-service.universal").QueryServicesResponse>;
6
+ export declare function queryServices(httpClient: HttpClient): () => import("./bookings-services-v2-service.universal").ServicesQueryBuilder;
8
7
  export { ServiceType, RateType, LocationType, SortOrder, Status, Event, Day, Transparency, RecurringIntervalType, LocationLocationType, LocationStatus, LocationsLocationType, DayOfWeek, ApprovalStatus, ScheduleStatus, ConferenceType, CalendarType, SessionStatus, SessionType, ResourceStatus, ResourceNotificationEvent, BenefitType, BenefitNotificationEvent, Action, InvalidSlugError, } from './bookings-services-v2-service.universal';
9
- export { Service, Media, MediaItem, MediaItemItemOneOf, V2Category, Form, FormSettings, Payment, PaymentRateOneOf, FixedPayment, Money, CustomPayment, VariedPayment, PaymentOptions, OnlineBooking, Conferencing, Location, LocationOptionsOneOf, Address, AddressStreetOneOf, StreetAddress, AddressLocation, BusinessLocationOptions, CustomLocationOptions, BookingPolicy, PolicyDescription, LimitEarlyBookingPolicy, LimitLateBookingPolicy, BookAfterStartPolicy, CancellationPolicy, ReschedulePolicy, WaitlistPolicy, ParticipantsPolicy, Schedule, AvailabilityConstraints, Slug, URLs, ExtendedFields, SeoSchema, Keyword, Tag, Settings, CreateServiceRequest, CreateServiceResponse, BulkCreateServicesRequest, BulkCreateServicesResponse, BulkServiceResult, ItemMetadata, ApplicationError, BulkActionMetadata, GetServiceRequest, GetServiceResponse, UpdateServiceRequest, UpdateServiceResponse, BulkUpdateServicesRequest, MaskedService, BulkUpdateServicesResponse, DeleteServiceRequest, ParticipantNotification, DeleteServiceResponse, BulkDeleteServicesRequest, BulkDeleteServicesResponse, QueryServicesRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryServicesResponse, PagingMetadataV2, Cursors, QueryPoliciesRequest, CursorQuery, CursorQueryPagingMethodOneOf, QueryPoliciesResponse, BookingPolicyWithServices, CursorPagingMetadata, CountServicesRequest, CountServicesResponse, CategoryNotification, Category, Empty, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, ExtendedFieldsUpdatedEvent, ScheduleNotification, ScheduleNotificationEventOneOf, ScheduleCreated, V1Schedule, RecurringInterval, Interval, Frequency, LinkedSchedule, V1Location, CommonAddress, CommonAddressStreetOneOf, CommonStreetAddress, CommonAddressLocation, Subdivision, LocationsLocation, LocationsAddress, LocationsStreetAddress, LocationsAddressLocation, BusinessSchedule, TimePeriod, SpecialHourPeriod, Rate, Price, Availability, V1AvailabilityConstraints, SplitInterval, Participant, ExternalCalendarOverrides, Version, ConferenceProvider, CalendarConference, ScheduleUpdated, RecurringSessionsUpdated, Session, CalendarDateTime, LocalDateTime, ExternalCalendarInfo, SessionVersion, V1ParticipantNotification, ScheduleCancelled, SessionCreated, SessionUpdated, SessionCancelled, AvailabilityPolicyUpdated, AvailabilityPolicy, IntervalSplit, RecurringSessionSplit, ScheduleUnassignedFromUser, MultipleSessionsCreated, ScheduleWithSessions, SitePropertiesOnScheduleCreation, MigrationEvent, MigrationData, StaffData, ResourceNotification, Resource, BenefitNotification, Benefit, EntryPass, Discount, DiscountDiscountOneOf, Behavior, BehaviorBehaviorOneOf, SetServiceLocationsRequest, RemovedLocationSessionsAction, RemovedLocationSessionsActionActionOptionsOneOf, MoveToNewLocationsOptions, SetServiceLocationsResponse, EnablePricingPlansForServiceRequest, EnablePricingPlansForServiceResponse, InvalidPricingPlan, DisablePricingPlansForServiceRequest, DisablePricingPlansForServiceResponse, SetCustomSlugRequest, SetCustomSlugResponse, ValidateSlugRequest, ValidateSlugResponse, } from './bookings-services-v2-service.universal';
8
+ export { Service, Media, MediaItem, MediaItemItemOneOf, V2Category, Form, FormSettings, Payment, PaymentRateOneOf, FixedPayment, Money, CustomPayment, VariedPayment, PaymentOptions, OnlineBooking, Conferencing, Location, LocationOptionsOneOf, Address, AddressStreetOneOf, StreetAddress, AddressLocation, BusinessLocationOptions, CustomLocationOptions, BookingPolicy, PolicyDescription, LimitEarlyBookingPolicy, LimitLateBookingPolicy, BookAfterStartPolicy, CancellationPolicy, ReschedulePolicy, WaitlistPolicy, ParticipantsPolicy, Schedule, AvailabilityConstraints, Slug, URLs, ExtendedFields, SeoSchema, Keyword, Tag, Settings, CreateServiceRequest, CreateServiceResponse, BulkCreateServicesRequest, BulkCreateServicesResponse, BulkServiceResult, ItemMetadata, ApplicationError, BulkActionMetadata, GetServiceRequest, GetServiceResponse, UpdateServiceRequest, UpdateServiceResponse, BulkUpdateServicesRequest, MaskedService, BulkUpdateServicesResponse, DeleteServiceRequest, ParticipantNotification, DeleteServiceResponse, BulkDeleteServicesRequest, BulkDeleteServicesResponse, QueryServicesRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryServicesResponse, PagingMetadataV2, Cursors, QueryPoliciesRequest, CursorQuery, CursorQueryPagingMethodOneOf, QueryPoliciesResponse, BookingPolicyWithServices, CursorPagingMetadata, CountServicesRequest, CountServicesResponse, CategoryNotification, Category, Empty, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, ExtendedFieldsUpdatedEvent, ScheduleNotification, ScheduleNotificationEventOneOf, ScheduleCreated, V1Schedule, RecurringInterval, Interval, Frequency, LinkedSchedule, V1Location, CommonAddress, CommonAddressStreetOneOf, CommonStreetAddress, CommonAddressLocation, Subdivision, LocationsLocation, LocationsAddress, LocationsStreetAddress, LocationsAddressLocation, BusinessSchedule, TimePeriod, SpecialHourPeriod, Rate, Price, Availability, V1AvailabilityConstraints, SplitInterval, Participant, ExternalCalendarOverrides, Version, ConferenceProvider, CalendarConference, ScheduleUpdated, RecurringSessionsUpdated, Session, CalendarDateTime, LocalDateTime, ExternalCalendarInfo, SessionVersion, V1ParticipantNotification, ScheduleCancelled, SessionCreated, SessionUpdated, SessionCancelled, AvailabilityPolicyUpdated, AvailabilityPolicy, IntervalSplit, RecurringSessionSplit, ScheduleUnassignedFromUser, MultipleSessionsCreated, ScheduleWithSessions, SitePropertiesOnScheduleCreation, MigrationEvent, MigrationData, StaffData, ResourceNotification, Resource, BenefitNotification, Benefit, EntryPass, Discount, DiscountDiscountOneOf, Behavior, BehaviorBehaviorOneOf, SetServiceLocationsRequest, RemovedLocationSessionsAction, RemovedLocationSessionsActionActionOptionsOneOf, MoveToNewLocationsOptions, SetServiceLocationsResponse, EnablePricingPlansForServiceRequest, EnablePricingPlansForServiceResponse, InvalidPricingPlan, DisablePricingPlansForServiceRequest, DisablePricingPlansForServiceResponse, SetCustomSlugRequest, SetCustomSlugResponse, ValidateSlugRequest, ValidateSlugResponse, ServicesQueryResult, ServicesQueryBuilder, } from './bookings-services-v2-service.universal';
@@ -10,7 +10,7 @@ function getService(httpClient) {
10
10
  }
11
11
  exports.getService = getService;
12
12
  function queryServices(httpClient) {
13
- return (query) => (0, bookings_services_v2_service_universal_1.queryServices)(query,
13
+ return () => (0, bookings_services_v2_service_universal_1.queryServices)(
14
14
  // @ts-ignore
15
15
  { httpClient });
16
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-services-v2-service.public.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.public.ts"],"names":[],"mappings":";;;AACA,qGAIkD;AAErC,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,SAAgB,UAAU,CAAC,UAAsB;IAC/C,OAAO,CAAC,SAAiB,EAAE,EAAE,CAC3B,IAAA,mDAAmB,EACjB,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,gCAOC;AAED,SAAgB,aAAa,CAAC,UAAsB;IAClD,OAAO,CAAC,KAAc,EAAE,EAAE,CACxB,IAAA,sDAAsB,EACpB,KAAK;IACL,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,sCAOC;AAED,mGA0BkD;AAzBhD,qIAAA,WAAW,OAAA;AACX,kIAAA,QAAQ,OAAA;AACR,sIAAA,YAAY,OAAA;AACZ,mIAAA,SAAS,OAAA;AACT,gIAAA,MAAM,OAAA;AACN,+HAAA,KAAK,OAAA;AACL,6HAAA,GAAG,OAAA;AACH,sIAAA,YAAY,OAAA;AACZ,+IAAA,qBAAqB,OAAA;AACrB,8IAAA,oBAAoB,OAAA;AACpB,wIAAA,cAAc,OAAA;AACd,+IAAA,qBAAqB,OAAA;AACrB,mIAAA,SAAS,OAAA;AACT,wIAAA,cAAc,OAAA;AACd,wIAAA,cAAc,OAAA;AACd,wIAAA,cAAc,OAAA;AACd,sIAAA,YAAY,OAAA;AACZ,uIAAA,aAAa,OAAA;AACb,qIAAA,WAAW,OAAA;AACX,wIAAA,cAAc,OAAA;AACd,mJAAA,yBAAyB,OAAA;AACzB,qIAAA,WAAW,OAAA;AACX,kJAAA,wBAAwB,OAAA;AACxB,gIAAA,MAAM,OAAA;AACN,0IAAA,gBAAgB,OAAA"}
1
+ {"version":3,"file":"bookings-services-v2-service.public.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.public.ts"],"names":[],"mappings":";;;AACA,qGAGkD;AAErC,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,SAAgB,UAAU,CAAC,UAAsB;IAC/C,OAAO,CAAC,SAAiB,EAAE,EAAE,CAC3B,IAAA,mDAAmB,EACjB,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,gCAOC;AAED,SAAgB,aAAa,CAAC,UAAsB;IAClD,OAAO,GAAG,EAAE,CACV,IAAA,sDAAsB;IACpB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAND,sCAMC;AAED,mGA0BkD;AAzBhD,qIAAA,WAAW,OAAA;AACX,kIAAA,QAAQ,OAAA;AACR,sIAAA,YAAY,OAAA;AACZ,mIAAA,SAAS,OAAA;AACT,gIAAA,MAAM,OAAA;AACN,+HAAA,KAAK,OAAA;AACL,6HAAA,GAAG,OAAA;AACH,sIAAA,YAAY,OAAA;AACZ,+IAAA,qBAAqB,OAAA;AACrB,8IAAA,oBAAoB,OAAA;AACpB,wIAAA,cAAc,OAAA;AACd,+IAAA,qBAAqB,OAAA;AACrB,mIAAA,SAAS,OAAA;AACT,wIAAA,cAAc,OAAA;AACd,wIAAA,cAAc,OAAA;AACd,wIAAA,cAAc,OAAA;AACd,sIAAA,YAAY,OAAA;AACZ,uIAAA,aAAa,OAAA;AACb,qIAAA,WAAW,OAAA;AACX,wIAAA,cAAc,OAAA;AACd,mJAAA,yBAAyB,OAAA;AACzB,qIAAA,WAAW,OAAA;AACX,kJAAA,wBAAwB,OAAA;AACxB,gIAAA,MAAM,OAAA;AACN,0IAAA,gBAAgB,OAAA"}
@@ -2382,9 +2382,72 @@ export declare function getService(serviceId: string): Promise<Service>;
2382
2382
  * >**Notes:**
2383
2383
  * > + Use UTC format when filtering with dates.
2384
2384
  * > + 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.
2385
- * @param query - WQL expression.
2386
2385
  * @public
2387
2386
  * @documentationMaturity preview
2388
- * @requiredField query
2389
2387
  */
2390
- export declare function queryServices(query: QueryV2): Promise<QueryServicesResponse>;
2388
+ export declare function queryServices(): ServicesQueryBuilder;
2389
+ interface QueryOffsetResult {
2390
+ currentPage: number;
2391
+ totalPages: number;
2392
+ totalCount: number;
2393
+ hasNext: () => boolean;
2394
+ hasPrev: () => boolean;
2395
+ length: number;
2396
+ pageSize: number;
2397
+ }
2398
+ export interface ServicesQueryResult extends QueryOffsetResult {
2399
+ items: Service[];
2400
+ query: ServicesQueryBuilder;
2401
+ next: () => Promise<ServicesQueryResult>;
2402
+ prev: () => Promise<ServicesQueryResult>;
2403
+ }
2404
+ export interface ServicesQueryBuilder {
2405
+ /** @param propertyName - Property whose value is compared with `value`.
2406
+ * @param value - Value to compare against.
2407
+ * @documentationMaturity preview
2408
+ */
2409
+ eq: (propertyName: 'type' | 'name' | 'description' | 'tagLine' | 'hidden' | 'category.id' | 'category.name' | 'form.id' | 'form.mobileSettings.hidden' | 'payment.custom.description' | 'payment.options.online' | 'payment.options.inPerson' | 'payment.options.pricingPlan' | 'onlineBooking.enabled' | 'staffMembersIds' | 'locations.business.name' | 'locations.business.address.streetAddress.name' | 'locations.type' | 'bookingPolicy.name' | 'bookingPolicy.customPolicyDescription.description' | 'supportedSlugs.name' | 'seoData.tags.type', value: any) => ServicesQueryBuilder;
2410
+ /** @param propertyName - Property whose value is compared with `value`.
2411
+ * @param value - Value to compare against.
2412
+ * @documentationMaturity preview
2413
+ */
2414
+ ne: (propertyName: 'type' | 'name' | 'description' | 'tagLine' | 'hidden' | 'category.id' | 'category.name' | 'form.id' | 'form.mobileSettings.hidden' | 'payment.custom.description' | 'payment.options.online' | 'payment.options.inPerson' | 'payment.options.pricingPlan' | 'onlineBooking.enabled' | 'staffMembersIds' | 'locations.business.name' | 'locations.business.address.streetAddress.name' | 'locations.type' | 'bookingPolicy.name' | 'bookingPolicy.customPolicyDescription.description' | 'supportedSlugs.name' | 'seoData.tags.type', value: any) => ServicesQueryBuilder;
2415
+ /** @param propertyName - Property whose value is compared with `string`.
2416
+ * @param string - String to compare against. Case-insensitive.
2417
+ * @documentationMaturity preview
2418
+ */
2419
+ startsWith: (propertyName: 'name' | 'description' | 'tagLine' | 'category.id' | 'category.name' | 'form.id' | 'payment.custom.description' | 'locations.business.name' | 'locations.business.address.streetAddress.name' | 'bookingPolicy.name' | 'bookingPolicy.customPolicyDescription.description' | 'supportedSlugs.name' | 'seoData.tags.type', value: string) => ServicesQueryBuilder;
2420
+ /** @param propertyName - Property whose value is compared with `values`.
2421
+ * @param values - List of values to compare against.
2422
+ * @documentationMaturity preview
2423
+ */
2424
+ hasSome: (propertyName: 'type' | 'name' | 'description' | 'tagLine' | 'hidden' | 'category.id' | 'category.name' | 'form.id' | 'form.mobileSettings.hidden' | 'payment.custom.description' | 'payment.options.online' | 'payment.options.inPerson' | 'payment.options.pricingPlan' | 'onlineBooking.enabled' | 'staffMembersIds' | 'locations.business.name' | 'locations.business.address.streetAddress.name' | 'locations.type' | 'bookingPolicy.name' | 'bookingPolicy.customPolicyDescription.description' | 'supportedSlugs.name' | 'seoData.tags.type', value: any[]) => ServicesQueryBuilder;
2425
+ /** @param propertyName - Property whose value is compared with `values`.
2426
+ * @param values - List of values to compare against.
2427
+ * @documentationMaturity preview
2428
+ */
2429
+ hasAll: (propertyName: 'staffMembersIds', value: any[]) => ServicesQueryBuilder;
2430
+ /** @documentationMaturity preview */
2431
+ in: (propertyName: 'type' | 'name' | 'description' | 'tagLine' | 'hidden' | 'category.id' | 'category.name' | 'form.id' | 'form.mobileSettings.hidden' | 'payment.custom.description' | 'payment.options.online' | 'payment.options.inPerson' | 'payment.options.pricingPlan' | 'onlineBooking.enabled' | 'staffMembersIds' | 'locations.business.name' | 'locations.business.address.streetAddress.name' | 'locations.type' | 'bookingPolicy.name' | 'bookingPolicy.customPolicyDescription.description' | 'supportedSlugs.name' | 'seoData.tags.type', value: any) => ServicesQueryBuilder;
2432
+ /** @documentationMaturity preview */
2433
+ exists: (propertyName: 'type' | 'name' | 'description' | 'tagLine' | 'hidden' | 'category.id' | 'category.name' | 'form.id' | 'form.mobileSettings.hidden' | 'payment.custom.description' | 'payment.options.online' | 'payment.options.inPerson' | 'payment.options.pricingPlan' | 'onlineBooking.enabled' | 'staffMembersIds' | 'locations.business.name' | 'locations.business.address.streetAddress.name' | 'locations.type' | 'bookingPolicy.name' | 'bookingPolicy.customPolicyDescription.description' | 'supportedSlugs.name' | 'seoData.tags.type', value: boolean) => ServicesQueryBuilder;
2434
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
2435
+ * @documentationMaturity preview
2436
+ */
2437
+ ascending: (...propertyNames: Array<string>) => ServicesQueryBuilder;
2438
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
2439
+ * @documentationMaturity preview
2440
+ */
2441
+ descending: (...propertyNames: Array<string>) => ServicesQueryBuilder;
2442
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
2443
+ * @documentationMaturity preview
2444
+ */
2445
+ limit: (limit: number) => ServicesQueryBuilder;
2446
+ /** @param skip - Number of items to skip in the query results before returning the results.
2447
+ * @documentationMaturity preview
2448
+ */
2449
+ skip: (skip: number) => ServicesQueryBuilder;
2450
+ /** @documentationMaturity preview */
2451
+ find: () => Promise<ServicesQueryResult>;
2452
+ }
2453
+ export {};
@@ -32,6 +32,7 @@ exports.queryServices = exports.getService = exports.InvalidSlugError = exports.
32
32
  const velo_1 = require("@wix/metro-runtime/velo");
33
33
  const ambassadorWixBookingsServicesV2Service = __importStar(require("./bookings-services-v2-service.http"));
34
34
  // @ts-ignore
35
+ const motion_edm_autogen_query_wrapper_1 = require("@wix/motion-edm-autogen-query-wrapper");
35
36
  let __verbose = false;
36
37
  function __log(...args) {
37
38
  __verbose && console.log(...args);
@@ -387,61 +388,67 @@ exports.getService = getService;
387
388
  * >**Notes:**
388
389
  * > + Use UTC format when filtering with dates.
389
390
  * > + 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.
390
- * @param query - WQL expression.
391
391
  * @public
392
392
  * @documentationMaturity preview
393
- * @requiredField query
394
393
  */
395
- function queryServices(query) {
396
- var _a, _b, _c;
397
- return __awaiter(this, arguments, void 0, function* () {
398
- const requestTransformation = { query: '$[0]' };
399
- const responseTransformation = '$';
400
- // @ts-ignore
401
- const { httpClient, sideEffects } = arguments[1];
402
- const { toAmbassadorRequest } = (0, velo_1.serializer)({
403
- rootSchema: _queryServicesRequest,
404
- depSchemas: {},
405
- fqdnTransformation: {
406
- paths: [],
407
- transformation: _fromVeloEntity,
408
- },
409
- customTransformation: requestTransformation,
410
- });
411
- const { fromJSON } = (0, velo_1.serializer)({
412
- rootSchema: _queryServicesResponse,
413
- depSchemas: {
414
- _businessLocationOptions,
415
- _customLocationOptions,
416
- _location,
417
- _media,
418
- _mediaItem,
419
- _service,
420
- _uRLs,
421
- },
422
- fqdnTransformation: {
423
- paths: [...['Array#services']],
424
- transformation: _toVeloEntity,
425
- },
426
- customTransformation: responseTransformation,
427
- });
428
- const payload = toAmbassadorRequest([query]);
429
- const reqOpts = ambassadorWixBookingsServicesV2Service.queryServices(payload);
430
- __log(`"QueryServices" sending request with: ${__inspect(reqOpts)}`);
431
- (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
432
- try {
433
- const result = yield httpClient.request(reqOpts);
434
- (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
435
- return fromJSON(result.data);
436
- }
437
- catch (err) {
438
- const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
439
- 'query',
440
- ]);
441
- (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
442
- throw transformedError;
443
- }
394
+ function queryServices() {
395
+ const requestTransformation = { '*': '$[1]', query: '$[0]' };
396
+ const responseTransformation = {
397
+ items: '$.services',
398
+ pagingMetadata: '$.pagingMetadata',
399
+ };
400
+ // @ts-ignore
401
+ const { httpClient, sideEffects } = arguments[0];
402
+ const { toAmbassadorRequest } = (0, velo_1.serializer)({
403
+ rootSchema: _queryServicesRequest,
404
+ depSchemas: {},
405
+ fqdnTransformation: {
406
+ paths: [],
407
+ transformation: _fromVeloEntity,
408
+ },
409
+ customTransformation: requestTransformation,
444
410
  });
411
+ const { fromJSON } = (0, velo_1.serializer)({
412
+ rootSchema: _queryServicesResponse,
413
+ depSchemas: {
414
+ _businessLocationOptions,
415
+ _customLocationOptions,
416
+ _location,
417
+ _media,
418
+ _mediaItem,
419
+ _service,
420
+ _uRLs,
421
+ },
422
+ fqdnTransformation: {
423
+ paths: [...['Array#services']],
424
+ transformation: _toVeloEntity,
425
+ },
426
+ customTransformation: responseTransformation,
427
+ });
428
+ return (0, motion_edm_autogen_query_wrapper_1.wrapWithQueryBuilder)({
429
+ func: (payload) => __awaiter(this, void 0, void 0, function* () {
430
+ var _a, _b, _c;
431
+ const reqOpts = ambassadorWixBookingsServicesV2Service.queryServices(payload);
432
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
433
+ try {
434
+ const result = yield httpClient.request(reqOpts);
435
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
436
+ return result;
437
+ }
438
+ catch (err) {
439
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
440
+ throw err;
441
+ }
442
+ }),
443
+ requestTransformer: (...args) => toAmbassadorRequest(args),
444
+ responseTransformer: ({ data }) => fromJSON(data),
445
+ errorTransformer: (err) => {
446
+ const transformedError = (0, velo_1.transformError)(err, requestTransformation);
447
+ throw transformedError;
448
+ },
449
+ pagingMethod: 'OFFSET',
450
+ transformationPaths: (0, velo_1.resolveQueryFieldsTransformationPaths)(_toVeloEntity),
451
+ })({ cursorWithEmptyFilterAndSort: true });
445
452
  }
446
453
  exports.queryServices = queryServices;
447
454
  //# sourceMappingURL=bookings-services-v2-service.universal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-services-v2-service.universal.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,4GAA8F;AAC9F,aAAa;AAEb,IAAI,SAAS,GAAG,K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E,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC;QACjE,mBAAmB,EAAE,CAAC,EAAE,IAAI,EAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;QACtD,gBAAgB,EAAE,CAAC,GAAQ,EAAE,EAAE;YAC7B,MAAM,gBAAgB,GAAG,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;YAEpE,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,IAAA,4CAAqC,EAAC,aAAa,CAAC;KAC1E,CAAC,CAAC,EAAE,4BAA4B,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC;AAlED,sCAkEC"}
@@ -60,7 +60,7 @@ export declare function deleteServiceOptionsAndVariants(payload: DeleteServiceOp
60
60
  * - `cursorPaging.limit` is `100`
61
61
  *
62
62
  * For a detailed list of supported filtering operations see
63
- * [supported filters](https://dev.wix.com/api/rest/wix-bookings/service-variants/supported-filters).
63
+ * [supported filters](https://dev.wix.com/api/rest/wix-bookings/service-options-and-variants/supported-filters).
64
64
  *
65
65
  * To learn about working with _Query_ endpoints, see
66
66
  * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
@@ -274,7 +274,7 @@ export function deleteServiceOptionsAndVariants(payload) {
274
274
  * - `cursorPaging.limit` is `100`
275
275
  *
276
276
  * For a detailed list of supported filtering operations see
277
- * [supported filters](https://dev.wix.com/api/rest/wix-bookings/service-variants/supported-filters).
277
+ * [supported filters](https://dev.wix.com/api/rest/wix-bookings/service-options-and-variants/supported-filters).
278
278
  *
279
279
  * To learn about working with _Query_ endpoints, see
280
280
  * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
@@ -85,7 +85,7 @@ export interface ServiceChoice extends ServiceChoiceChoiceOneOf {
85
85
  /** Name of the custom choice. */
86
86
  custom?: string;
87
87
  /**
88
- * ID of the staff member providing the service. Equal to the `resourceId`
88
+ * ID of the staff member providing the service. This ID is the equivalent of the `resourceId`
89
89
  * of the staff member or the `scheduleOwnerId` of the relevant
90
90
  * [schedule's](https://dev.wix.com/api/rest/wix-bookings/schedules-and-sessions/schedule/schedule-object)
91
91
  * `availability.linkedSchedules`.
@@ -99,7 +99,7 @@ export interface ServiceChoiceChoiceOneOf {
99
99
  /** Name of the custom choice. */
100
100
  custom?: string;
101
101
  /**
102
- * ID of the staff member providing the service. Equal to the `resourceId`
102
+ * ID of the staff member providing the service. This ID is the equivalent of the `resourceId`
103
103
  * of the staff member or the `scheduleOwnerId` of the relevant
104
104
  * [schedule's](https://dev.wix.com/api/rest/wix-bookings/schedules-and-sessions/schedule/schedule-object)
105
105
  * `availability.linkedSchedules`.
@@ -91,7 +91,7 @@ export interface ServiceChoice extends ServiceChoiceChoiceOneOf {
91
91
  /** Name of the custom choice. */
92
92
  custom?: string;
93
93
  /**
94
- * ID of the staff member providing the service. Equal to the `resourceId`
94
+ * ID of the staff member providing the service. This ID is the equivalent of the `resourceId`
95
95
  * of the staff member or the `scheduleOwnerId` of the relevant
96
96
  * [schedule's](https://dev.wix.com/api/rest/wix-bookings/schedules-and-sessions/schedule/schedule-object)
97
97
  * `availability.linkedSchedules`.
@@ -105,7 +105,7 @@ export interface ServiceChoiceChoiceOneOf {
105
105
  /** Name of the custom choice. */
106
106
  custom?: string;
107
107
  /**
108
- * ID of the staff member providing the service. Equal to the `resourceId`
108
+ * ID of the staff member providing the service. This ID is the equivalent of the `resourceId`
109
109
  * of the staff member or the `scheduleOwnerId` of the relevant
110
110
  * [schedule's](https://dev.wix.com/api/rest/wix-bookings/schedules-and-sessions/schedule/schedule-object)
111
111
  * `availability.linkedSchedules`.
@@ -1958,7 +1958,7 @@ export interface DeleteServiceOptionsAndVariantsOptions {
1958
1958
  * - `cursorPaging.limit` is `100`
1959
1959
  *
1960
1960
  * For a detailed list of supported filtering operations see
1961
- * [supported filters](https://dev.wix.com/api/rest/wix-bookings/service-variants/supported-filters).
1961
+ * [supported filters](https://dev.wix.com/api/rest/wix-bookings/service-options-and-variants/supported-filters).
1962
1962
  *
1963
1963
  * To learn about working with _Query_ endpoints, see
1964
1964
  * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
@@ -593,7 +593,7 @@ export function deleteServiceOptionsAndVariants(serviceOptionsAndVariantsId, opt
593
593
  * - `cursorPaging.limit` is `100`
594
594
  *
595
595
  * For a detailed list of supported filtering operations see
596
- * [supported filters](https://dev.wix.com/api/rest/wix-bookings/service-variants/supported-filters).
596
+ * [supported filters](https://dev.wix.com/api/rest/wix-bookings/service-options-and-variants/supported-filters).
597
597
  *
598
598
  * To learn about working with _Query_ endpoints, see
599
599
  * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
@@ -1,9 +1,8 @@
1
1
  import { HttpClient } from '@wix/sdk-types';
2
- import { QueryV2 } from './bookings-services-v2-service.universal';
3
2
  export declare const __metadata: {
4
3
  PACKAGE_NAME: string;
5
4
  };
6
5
  export declare function getService(httpClient: HttpClient): (serviceId: string) => Promise<import("./bookings-services-v2-service.universal").Service>;
7
- export declare function queryServices(httpClient: HttpClient): (query: QueryV2) => Promise<import("./bookings-services-v2-service.universal").QueryServicesResponse>;
6
+ export declare function queryServices(httpClient: HttpClient): () => import("./bookings-services-v2-service.universal").ServicesQueryBuilder;
8
7
  export { ServiceType, RateType, LocationType, SortOrder, Status, Event, Day, Transparency, RecurringIntervalType, LocationLocationType, LocationStatus, LocationsLocationType, DayOfWeek, ApprovalStatus, ScheduleStatus, ConferenceType, CalendarType, SessionStatus, SessionType, ResourceStatus, ResourceNotificationEvent, BenefitType, BenefitNotificationEvent, Action, InvalidSlugError, } from './bookings-services-v2-service.universal';
9
- export { Service, Media, MediaItem, MediaItemItemOneOf, V2Category, Form, FormSettings, Payment, PaymentRateOneOf, FixedPayment, Money, CustomPayment, VariedPayment, PaymentOptions, OnlineBooking, Conferencing, Location, LocationOptionsOneOf, Address, AddressStreetOneOf, StreetAddress, AddressLocation, BusinessLocationOptions, CustomLocationOptions, BookingPolicy, PolicyDescription, LimitEarlyBookingPolicy, LimitLateBookingPolicy, BookAfterStartPolicy, CancellationPolicy, ReschedulePolicy, WaitlistPolicy, ParticipantsPolicy, Schedule, AvailabilityConstraints, Slug, URLs, ExtendedFields, SeoSchema, Keyword, Tag, Settings, CreateServiceRequest, CreateServiceResponse, BulkCreateServicesRequest, BulkCreateServicesResponse, BulkServiceResult, ItemMetadata, ApplicationError, BulkActionMetadata, GetServiceRequest, GetServiceResponse, UpdateServiceRequest, UpdateServiceResponse, BulkUpdateServicesRequest, MaskedService, BulkUpdateServicesResponse, DeleteServiceRequest, ParticipantNotification, DeleteServiceResponse, BulkDeleteServicesRequest, BulkDeleteServicesResponse, QueryServicesRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryServicesResponse, PagingMetadataV2, Cursors, QueryPoliciesRequest, CursorQuery, CursorQueryPagingMethodOneOf, QueryPoliciesResponse, BookingPolicyWithServices, CursorPagingMetadata, CountServicesRequest, CountServicesResponse, CategoryNotification, Category, Empty, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, ExtendedFieldsUpdatedEvent, ScheduleNotification, ScheduleNotificationEventOneOf, ScheduleCreated, V1Schedule, RecurringInterval, Interval, Frequency, LinkedSchedule, V1Location, CommonAddress, CommonAddressStreetOneOf, CommonStreetAddress, CommonAddressLocation, Subdivision, LocationsLocation, LocationsAddress, LocationsStreetAddress, LocationsAddressLocation, BusinessSchedule, TimePeriod, SpecialHourPeriod, Rate, Price, Availability, V1AvailabilityConstraints, SplitInterval, Participant, ExternalCalendarOverrides, Version, ConferenceProvider, CalendarConference, ScheduleUpdated, RecurringSessionsUpdated, Session, CalendarDateTime, LocalDateTime, ExternalCalendarInfo, SessionVersion, V1ParticipantNotification, ScheduleCancelled, SessionCreated, SessionUpdated, SessionCancelled, AvailabilityPolicyUpdated, AvailabilityPolicy, IntervalSplit, RecurringSessionSplit, ScheduleUnassignedFromUser, MultipleSessionsCreated, ScheduleWithSessions, SitePropertiesOnScheduleCreation, MigrationEvent, MigrationData, StaffData, ResourceNotification, Resource, BenefitNotification, Benefit, EntryPass, Discount, DiscountDiscountOneOf, Behavior, BehaviorBehaviorOneOf, SetServiceLocationsRequest, RemovedLocationSessionsAction, RemovedLocationSessionsActionActionOptionsOneOf, MoveToNewLocationsOptions, SetServiceLocationsResponse, EnablePricingPlansForServiceRequest, EnablePricingPlansForServiceResponse, InvalidPricingPlan, DisablePricingPlansForServiceRequest, DisablePricingPlansForServiceResponse, SetCustomSlugRequest, SetCustomSlugResponse, ValidateSlugRequest, ValidateSlugResponse, } from './bookings-services-v2-service.universal';
8
+ export { Service, Media, MediaItem, MediaItemItemOneOf, V2Category, Form, FormSettings, Payment, PaymentRateOneOf, FixedPayment, Money, CustomPayment, VariedPayment, PaymentOptions, OnlineBooking, Conferencing, Location, LocationOptionsOneOf, Address, AddressStreetOneOf, StreetAddress, AddressLocation, BusinessLocationOptions, CustomLocationOptions, BookingPolicy, PolicyDescription, LimitEarlyBookingPolicy, LimitLateBookingPolicy, BookAfterStartPolicy, CancellationPolicy, ReschedulePolicy, WaitlistPolicy, ParticipantsPolicy, Schedule, AvailabilityConstraints, Slug, URLs, ExtendedFields, SeoSchema, Keyword, Tag, Settings, CreateServiceRequest, CreateServiceResponse, BulkCreateServicesRequest, BulkCreateServicesResponse, BulkServiceResult, ItemMetadata, ApplicationError, BulkActionMetadata, GetServiceRequest, GetServiceResponse, UpdateServiceRequest, UpdateServiceResponse, BulkUpdateServicesRequest, MaskedService, BulkUpdateServicesResponse, DeleteServiceRequest, ParticipantNotification, DeleteServiceResponse, BulkDeleteServicesRequest, BulkDeleteServicesResponse, QueryServicesRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryServicesResponse, PagingMetadataV2, Cursors, QueryPoliciesRequest, CursorQuery, CursorQueryPagingMethodOneOf, QueryPoliciesResponse, BookingPolicyWithServices, CursorPagingMetadata, CountServicesRequest, CountServicesResponse, CategoryNotification, Category, Empty, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, ExtendedFieldsUpdatedEvent, ScheduleNotification, ScheduleNotificationEventOneOf, ScheduleCreated, V1Schedule, RecurringInterval, Interval, Frequency, LinkedSchedule, V1Location, CommonAddress, CommonAddressStreetOneOf, CommonStreetAddress, CommonAddressLocation, Subdivision, LocationsLocation, LocationsAddress, LocationsStreetAddress, LocationsAddressLocation, BusinessSchedule, TimePeriod, SpecialHourPeriod, Rate, Price, Availability, V1AvailabilityConstraints, SplitInterval, Participant, ExternalCalendarOverrides, Version, ConferenceProvider, CalendarConference, ScheduleUpdated, RecurringSessionsUpdated, Session, CalendarDateTime, LocalDateTime, ExternalCalendarInfo, SessionVersion, V1ParticipantNotification, ScheduleCancelled, SessionCreated, SessionUpdated, SessionCancelled, AvailabilityPolicyUpdated, AvailabilityPolicy, IntervalSplit, RecurringSessionSplit, ScheduleUnassignedFromUser, MultipleSessionsCreated, ScheduleWithSessions, SitePropertiesOnScheduleCreation, MigrationEvent, MigrationData, StaffData, ResourceNotification, Resource, BenefitNotification, Benefit, EntryPass, Discount, DiscountDiscountOneOf, Behavior, BehaviorBehaviorOneOf, SetServiceLocationsRequest, RemovedLocationSessionsAction, RemovedLocationSessionsActionActionOptionsOneOf, MoveToNewLocationsOptions, SetServiceLocationsResponse, EnablePricingPlansForServiceRequest, EnablePricingPlansForServiceResponse, InvalidPricingPlan, DisablePricingPlansForServiceRequest, DisablePricingPlansForServiceResponse, SetCustomSlugRequest, SetCustomSlugResponse, ValidateSlugRequest, ValidateSlugResponse, ServicesQueryResult, ServicesQueryBuilder, } from './bookings-services-v2-service.universal';
@@ -6,7 +6,7 @@ export function getService(httpClient) {
6
6
  { httpClient });
7
7
  }
8
8
  export function queryServices(httpClient) {
9
- return (query) => universalQueryServices(query,
9
+ return () => universalQueryServices(
10
10
  // @ts-ignore
11
11
  { httpClient });
12
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-services-v2-service.public.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,IAAI,mBAAmB,EACjC,aAAa,IAAI,sBAAsB,GAExC,MAAM,0CAA0C,CAAC;AAElD,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,MAAM,UAAU,UAAU,CAAC,UAAsB;IAC/C,OAAO,CAAC,SAAiB,EAAE,EAAE,CAC3B,mBAAmB,CACjB,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,UAAsB;IAClD,OAAO,CAAC,KAAc,EAAE,EAAE,CACxB,sBAAsB,CACpB,KAAK;IACL,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,OAAO,EACL,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,MAAM,EACN,KAAK,EACL,GAAG,EACH,YAAY,EACZ,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACd,qBAAqB,EACrB,SAAS,EACT,cAAc,EACd,cAAc,EACd,cAAc,EACd,YAAY,EACZ,aAAa,EACb,WAAW,EACX,cAAc,EACd,yBAAyB,EACzB,WAAW,EACX,wBAAwB,EACxB,MAAM,EACN,gBAAgB,GACjB,MAAM,0CAA0C,CAAC"}
1
+ {"version":3,"file":"bookings-services-v2-service.public.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,IAAI,mBAAmB,EACjC,aAAa,IAAI,sBAAsB,GACxC,MAAM,0CAA0C,CAAC;AAElD,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,MAAM,UAAU,UAAU,CAAC,UAAsB;IAC/C,OAAO,CAAC,SAAiB,EAAE,EAAE,CAC3B,mBAAmB,CACjB,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,UAAsB;IAClD,OAAO,GAAG,EAAE,CACV,sBAAsB;IACpB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,OAAO,EACL,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,MAAM,EACN,KAAK,EACL,GAAG,EACH,YAAY,EACZ,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACd,qBAAqB,EACrB,SAAS,EACT,cAAc,EACd,cAAc,EACd,cAAc,EACd,YAAY,EACZ,aAAa,EACb,WAAW,EACX,cAAc,EACd,yBAAyB,EACzB,WAAW,EACX,wBAAwB,EACxB,MAAM,EACN,gBAAgB,GACjB,MAAM,0CAA0C,CAAC"}
@@ -2382,9 +2382,72 @@ export declare function getService(serviceId: string): Promise<Service>;
2382
2382
  * >**Notes:**
2383
2383
  * > + Use UTC format when filtering with dates.
2384
2384
  * > + 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.
2385
- * @param query - WQL expression.
2386
2385
  * @public
2387
2386
  * @documentationMaturity preview
2388
- * @requiredField query
2389
2387
  */
2390
- export declare function queryServices(query: QueryV2): Promise<QueryServicesResponse>;
2388
+ export declare function queryServices(): ServicesQueryBuilder;
2389
+ interface QueryOffsetResult {
2390
+ currentPage: number;
2391
+ totalPages: number;
2392
+ totalCount: number;
2393
+ hasNext: () => boolean;
2394
+ hasPrev: () => boolean;
2395
+ length: number;
2396
+ pageSize: number;
2397
+ }
2398
+ export interface ServicesQueryResult extends QueryOffsetResult {
2399
+ items: Service[];
2400
+ query: ServicesQueryBuilder;
2401
+ next: () => Promise<ServicesQueryResult>;
2402
+ prev: () => Promise<ServicesQueryResult>;
2403
+ }
2404
+ export interface ServicesQueryBuilder {
2405
+ /** @param propertyName - Property whose value is compared with `value`.
2406
+ * @param value - Value to compare against.
2407
+ * @documentationMaturity preview
2408
+ */
2409
+ eq: (propertyName: 'type' | 'name' | 'description' | 'tagLine' | 'hidden' | 'category.id' | 'category.name' | 'form.id' | 'form.mobileSettings.hidden' | 'payment.custom.description' | 'payment.options.online' | 'payment.options.inPerson' | 'payment.options.pricingPlan' | 'onlineBooking.enabled' | 'staffMembersIds' | 'locations.business.name' | 'locations.business.address.streetAddress.name' | 'locations.type' | 'bookingPolicy.name' | 'bookingPolicy.customPolicyDescription.description' | 'supportedSlugs.name' | 'seoData.tags.type', value: any) => ServicesQueryBuilder;
2410
+ /** @param propertyName - Property whose value is compared with `value`.
2411
+ * @param value - Value to compare against.
2412
+ * @documentationMaturity preview
2413
+ */
2414
+ ne: (propertyName: 'type' | 'name' | 'description' | 'tagLine' | 'hidden' | 'category.id' | 'category.name' | 'form.id' | 'form.mobileSettings.hidden' | 'payment.custom.description' | 'payment.options.online' | 'payment.options.inPerson' | 'payment.options.pricingPlan' | 'onlineBooking.enabled' | 'staffMembersIds' | 'locations.business.name' | 'locations.business.address.streetAddress.name' | 'locations.type' | 'bookingPolicy.name' | 'bookingPolicy.customPolicyDescription.description' | 'supportedSlugs.name' | 'seoData.tags.type', value: any) => ServicesQueryBuilder;
2415
+ /** @param propertyName - Property whose value is compared with `string`.
2416
+ * @param string - String to compare against. Case-insensitive.
2417
+ * @documentationMaturity preview
2418
+ */
2419
+ startsWith: (propertyName: 'name' | 'description' | 'tagLine' | 'category.id' | 'category.name' | 'form.id' | 'payment.custom.description' | 'locations.business.name' | 'locations.business.address.streetAddress.name' | 'bookingPolicy.name' | 'bookingPolicy.customPolicyDescription.description' | 'supportedSlugs.name' | 'seoData.tags.type', value: string) => ServicesQueryBuilder;
2420
+ /** @param propertyName - Property whose value is compared with `values`.
2421
+ * @param values - List of values to compare against.
2422
+ * @documentationMaturity preview
2423
+ */
2424
+ hasSome: (propertyName: 'type' | 'name' | 'description' | 'tagLine' | 'hidden' | 'category.id' | 'category.name' | 'form.id' | 'form.mobileSettings.hidden' | 'payment.custom.description' | 'payment.options.online' | 'payment.options.inPerson' | 'payment.options.pricingPlan' | 'onlineBooking.enabled' | 'staffMembersIds' | 'locations.business.name' | 'locations.business.address.streetAddress.name' | 'locations.type' | 'bookingPolicy.name' | 'bookingPolicy.customPolicyDescription.description' | 'supportedSlugs.name' | 'seoData.tags.type', value: any[]) => ServicesQueryBuilder;
2425
+ /** @param propertyName - Property whose value is compared with `values`.
2426
+ * @param values - List of values to compare against.
2427
+ * @documentationMaturity preview
2428
+ */
2429
+ hasAll: (propertyName: 'staffMembersIds', value: any[]) => ServicesQueryBuilder;
2430
+ /** @documentationMaturity preview */
2431
+ in: (propertyName: 'type' | 'name' | 'description' | 'tagLine' | 'hidden' | 'category.id' | 'category.name' | 'form.id' | 'form.mobileSettings.hidden' | 'payment.custom.description' | 'payment.options.online' | 'payment.options.inPerson' | 'payment.options.pricingPlan' | 'onlineBooking.enabled' | 'staffMembersIds' | 'locations.business.name' | 'locations.business.address.streetAddress.name' | 'locations.type' | 'bookingPolicy.name' | 'bookingPolicy.customPolicyDescription.description' | 'supportedSlugs.name' | 'seoData.tags.type', value: any) => ServicesQueryBuilder;
2432
+ /** @documentationMaturity preview */
2433
+ exists: (propertyName: 'type' | 'name' | 'description' | 'tagLine' | 'hidden' | 'category.id' | 'category.name' | 'form.id' | 'form.mobileSettings.hidden' | 'payment.custom.description' | 'payment.options.online' | 'payment.options.inPerson' | 'payment.options.pricingPlan' | 'onlineBooking.enabled' | 'staffMembersIds' | 'locations.business.name' | 'locations.business.address.streetAddress.name' | 'locations.type' | 'bookingPolicy.name' | 'bookingPolicy.customPolicyDescription.description' | 'supportedSlugs.name' | 'seoData.tags.type', value: boolean) => ServicesQueryBuilder;
2434
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
2435
+ * @documentationMaturity preview
2436
+ */
2437
+ ascending: (...propertyNames: Array<string>) => ServicesQueryBuilder;
2438
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
2439
+ * @documentationMaturity preview
2440
+ */
2441
+ descending: (...propertyNames: Array<string>) => ServicesQueryBuilder;
2442
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
2443
+ * @documentationMaturity preview
2444
+ */
2445
+ limit: (limit: number) => ServicesQueryBuilder;
2446
+ /** @param skip - Number of items to skip in the query results before returning the results.
2447
+ * @documentationMaturity preview
2448
+ */
2449
+ skip: (skip: number) => ServicesQueryBuilder;
2450
+ /** @documentationMaturity preview */
2451
+ find: () => Promise<ServicesQueryResult>;
2452
+ }
2453
+ export {};
@@ -7,9 +7,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { serializer, transformError } from '@wix/metro-runtime/velo';
10
+ import { serializer, transformError, resolveQueryFieldsTransformationPaths, } from '@wix/metro-runtime/velo';
11
11
  import * as ambassadorWixBookingsServicesV2Service from './bookings-services-v2-service.http';
12
12
  // @ts-ignore
13
+ import { wrapWithQueryBuilder } from '@wix/motion-edm-autogen-query-wrapper';
13
14
  let __verbose = false;
14
15
  function __log(...args) {
15
16
  __verbose && console.log(...args);
@@ -364,60 +365,66 @@ export function getService(serviceId) {
364
365
  * >**Notes:**
365
366
  * > + Use UTC format when filtering with dates.
366
367
  * > + 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.
367
- * @param query - WQL expression.
368
368
  * @public
369
369
  * @documentationMaturity preview
370
- * @requiredField query
371
370
  */
372
- export function queryServices(query) {
373
- var _a, _b, _c;
374
- return __awaiter(this, arguments, void 0, function* () {
375
- const requestTransformation = { query: '$[0]' };
376
- const responseTransformation = '$';
377
- // @ts-ignore
378
- const { httpClient, sideEffects } = arguments[1];
379
- const { toAmbassadorRequest } = serializer({
380
- rootSchema: _queryServicesRequest,
381
- depSchemas: {},
382
- fqdnTransformation: {
383
- paths: [],
384
- transformation: _fromVeloEntity,
385
- },
386
- customTransformation: requestTransformation,
387
- });
388
- const { fromJSON } = serializer({
389
- rootSchema: _queryServicesResponse,
390
- depSchemas: {
391
- _businessLocationOptions,
392
- _customLocationOptions,
393
- _location,
394
- _media,
395
- _mediaItem,
396
- _service,
397
- _uRLs,
398
- },
399
- fqdnTransformation: {
400
- paths: [...['Array#services']],
401
- transformation: _toVeloEntity,
402
- },
403
- customTransformation: responseTransformation,
404
- });
405
- const payload = toAmbassadorRequest([query]);
406
- const reqOpts = ambassadorWixBookingsServicesV2Service.queryServices(payload);
407
- __log(`"QueryServices" sending request with: ${__inspect(reqOpts)}`);
408
- (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
409
- try {
410
- const result = yield httpClient.request(reqOpts);
411
- (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
412
- return fromJSON(result.data);
413
- }
414
- catch (err) {
415
- const transformedError = transformError(err, requestTransformation, [
416
- 'query',
417
- ]);
418
- (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
419
- throw transformedError;
420
- }
371
+ export function queryServices() {
372
+ const requestTransformation = { '*': '$[1]', query: '$[0]' };
373
+ const responseTransformation = {
374
+ items: '$.services',
375
+ pagingMetadata: '$.pagingMetadata',
376
+ };
377
+ // @ts-ignore
378
+ const { httpClient, sideEffects } = arguments[0];
379
+ const { toAmbassadorRequest } = serializer({
380
+ rootSchema: _queryServicesRequest,
381
+ depSchemas: {},
382
+ fqdnTransformation: {
383
+ paths: [],
384
+ transformation: _fromVeloEntity,
385
+ },
386
+ customTransformation: requestTransformation,
421
387
  });
388
+ const { fromJSON } = serializer({
389
+ rootSchema: _queryServicesResponse,
390
+ depSchemas: {
391
+ _businessLocationOptions,
392
+ _customLocationOptions,
393
+ _location,
394
+ _media,
395
+ _mediaItem,
396
+ _service,
397
+ _uRLs,
398
+ },
399
+ fqdnTransformation: {
400
+ paths: [...['Array#services']],
401
+ transformation: _toVeloEntity,
402
+ },
403
+ customTransformation: responseTransformation,
404
+ });
405
+ return wrapWithQueryBuilder({
406
+ func: (payload) => __awaiter(this, void 0, void 0, function* () {
407
+ var _a, _b, _c;
408
+ const reqOpts = ambassadorWixBookingsServicesV2Service.queryServices(payload);
409
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
410
+ try {
411
+ const result = yield httpClient.request(reqOpts);
412
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
413
+ return result;
414
+ }
415
+ catch (err) {
416
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
417
+ throw err;
418
+ }
419
+ }),
420
+ requestTransformer: (...args) => toAmbassadorRequest(args),
421
+ responseTransformer: ({ data }) => fromJSON(data),
422
+ errorTransformer: (err) => {
423
+ const transformedError = transformError(err, requestTransformation);
424
+ throw transformedError;
425
+ },
426
+ pagingMethod: 'OFFSET',
427
+ transformationPaths: resolveQueryFieldsTransformationPaths(_toVeloEntity),
428
+ })({ cursorWithEmptyFilterAndSort: true });
422
429
  }
423
430
  //# sourceMappingURL=bookings-services-v2-service.universal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-services-v2-service.universal.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,sCAAsC,MAAM,qCAAqC,CAAC;AAC9F,aAAa;AAEb,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AAC;YAC9B,UAAU,EAAE,sBAAsB;YAClC,UAAU,EAAE;gBACV,wBAAwB;gBACxB,sBAAsB;gBACtB,SAAS;gBACT,MAAM;gBACN,UAAU;gBACV,QAAQ;gBACR,KAAK;aACN;YACD,kBAAkB,EAAE;gBAClB,KAAK,EAAE,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;gBAC9B,cAAc,EAAE,aAAa;aAC9B;YACD,oBAAoB,EAAE,sBAAsB;SAC7C,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,mBAAmB,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QAE7C,MAAM,OAAO,GAAG,sCAAsC,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAE9E,KAAK,CAAC,yCAAyC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAErE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,+CAAvB,WAAW,CAAgB,CAAC;QAC5B,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,OAAO;aACR,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF"}
1
+ {"version":3,"file":"bookings-services-v2-service.universal.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd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O,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;QACtD,gBAAgB,EAAE,CAAC,GAAQ,EAAE,EAAE;YAC7B,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;YAEpE,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,qCAAqC,CAAC,aAAa,CAAC;KAC1E,CAAC,CAAC,EAAE,4BAA4B,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/bookings",
3
- "version": "1.0.119",
3
+ "version": "1.0.121",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -33,5 +33,5 @@
33
33
  "groupId": "com.wixpress.public-sdk-autogen"
34
34
  }
35
35
  },
36
- "falconPackageHash": "050af337651148dcf99684b55650e829cf6faeb3dd258b81cb44f0bd"
36
+ "falconPackageHash": "0cfca932e4d041b8e6fe61bd5b534beab52e989c7bf7acde6dc48d8d"
37
37
  }