@wix/bookings 1.0.95 → 1.0.97
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.
- package/build/cjs/src/bookings-services-v2-service.public.d.ts +3 -2
- package/build/cjs/src/bookings-services-v2-service.public.js +1 -1
- package/build/cjs/src/bookings-services-v2-service.public.js.map +1 -1
- package/build/cjs/src/bookings-services-v2-service.types.d.ts +61 -6
- package/build/cjs/src/bookings-services-v2-service.types.js.map +1 -1
- package/build/cjs/src/bookings-services-v2-service.universal.d.ts +64 -72
- package/build/cjs/src/bookings-services-v2-service.universal.js +51 -58
- package/build/cjs/src/bookings-services-v2-service.universal.js.map +1 -1
- package/build/es/src/bookings-services-v2-service.public.d.ts +3 -2
- package/build/es/src/bookings-services-v2-service.public.js +1 -1
- package/build/es/src/bookings-services-v2-service.public.js.map +1 -1
- package/build/es/src/bookings-services-v2-service.types.d.ts +61 -6
- package/build/es/src/bookings-services-v2-service.types.js.map +1 -1
- package/build/es/src/bookings-services-v2-service.universal.d.ts +64 -72
- package/build/es/src/bookings-services-v2-service.universal.js +52 -59
- package/build/es/src/bookings-services-v2-service.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { QueryV2 } from './bookings-services-v2-service.universal';
|
|
2
3
|
export declare function getService(httpClient: HttpClient): (serviceId: string) => Promise<import("./bookings-services-v2-service.universal").Service>;
|
|
3
|
-
export declare function queryServices(httpClient: HttpClient): () => import("./bookings-services-v2-service.universal").
|
|
4
|
+
export declare function queryServices(httpClient: HttpClient): (query: QueryV2) => Promise<import("./bookings-services-v2-service.universal").QueryServicesResponse>;
|
|
4
5
|
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';
|
|
5
|
-
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, GetServiceRequest, GetServiceResponse, UpdateServiceRequest, UpdateServiceResponse, DeleteServiceRequest, DeleteServiceResponse, QueryServicesRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryServicesResponse, PagingMetadataV2, Cursors, 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,
|
|
6
|
+
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, GetServiceRequest, GetServiceResponse, UpdateServiceRequest, UpdateServiceResponse, DeleteServiceRequest, ParticipantNotification, DeleteServiceResponse, 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';
|
|
@@ -9,7 +9,7 @@ function getService(httpClient) {
|
|
|
9
9
|
}
|
|
10
10
|
exports.getService = getService;
|
|
11
11
|
function queryServices(httpClient) {
|
|
12
|
-
return () => (0, bookings_services_v2_service_universal_1.queryServices)(
|
|
12
|
+
return (query) => (0, bookings_services_v2_service_universal_1.queryServices)(query,
|
|
13
13
|
// @ts-ignore
|
|
14
14
|
{ httpClient });
|
|
15
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-services-v2-service.public.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.public.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"bookings-services-v2-service.public.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.public.ts"],"names":[],"mappings":";;;AACA,qGAIkD;AAElD,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"}
|
|
@@ -824,6 +824,16 @@ export interface DeleteServiceRequest {
|
|
|
824
824
|
serviceId?: string;
|
|
825
825
|
/** The revision of the service. */
|
|
826
826
|
revision?: string;
|
|
827
|
+
/** Whether to preserve future sessions with participants. Optional, default is false. */
|
|
828
|
+
preserveFutureSessionsWithParticipants?: boolean;
|
|
829
|
+
/** Whether to notify participants about the change and an optional custom message. */
|
|
830
|
+
participantNotification?: ParticipantNotification;
|
|
831
|
+
}
|
|
832
|
+
export interface ParticipantNotification {
|
|
833
|
+
/** Whether to send the message about the changes to the customer. `false` by default */
|
|
834
|
+
notifyParticipants?: boolean | null;
|
|
835
|
+
/** Custom message to send to the participants about the changes to the booking. */
|
|
836
|
+
message?: string | null;
|
|
827
837
|
}
|
|
828
838
|
export interface DeleteServiceResponse {
|
|
829
839
|
}
|
|
@@ -917,6 +927,57 @@ export interface Cursors {
|
|
|
917
927
|
/** Cursor pointing to previous page in the list of results. */
|
|
918
928
|
prev?: string | null;
|
|
919
929
|
}
|
|
930
|
+
export interface QueryPoliciesRequest {
|
|
931
|
+
/** WQL expression. */
|
|
932
|
+
query?: CursorQuery;
|
|
933
|
+
}
|
|
934
|
+
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
935
|
+
/**
|
|
936
|
+
* Filter object in the following format:
|
|
937
|
+
* `"filter" : {
|
|
938
|
+
* "fieldName1": "value1",
|
|
939
|
+
* "fieldName2":{"$operator":"value2"}
|
|
940
|
+
* }`
|
|
941
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
942
|
+
*/
|
|
943
|
+
filter?: Record<string, any> | null;
|
|
944
|
+
/**
|
|
945
|
+
* Sort object in the following format:
|
|
946
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
947
|
+
*/
|
|
948
|
+
sort?: Sorting[];
|
|
949
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
950
|
+
cursorPaging?: CursorPaging;
|
|
951
|
+
}
|
|
952
|
+
/** @oneof */
|
|
953
|
+
export interface CursorQueryPagingMethodOneOf {
|
|
954
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
955
|
+
cursorPaging?: CursorPaging;
|
|
956
|
+
}
|
|
957
|
+
export interface QueryPoliciesResponse {
|
|
958
|
+
/** The retrieved policies. */
|
|
959
|
+
bookingPolicies?: BookingPolicyWithServices[];
|
|
960
|
+
/** Paging metadata, including offset and count. */
|
|
961
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
962
|
+
}
|
|
963
|
+
export interface BookingPolicyWithServices {
|
|
964
|
+
/** The booking policy. */
|
|
965
|
+
bookingPolicy?: BookingPolicy;
|
|
966
|
+
/** The services associated with the booking policy. */
|
|
967
|
+
services?: Service[];
|
|
968
|
+
}
|
|
969
|
+
export interface CursorPagingMetadata {
|
|
970
|
+
/** Number of items returned in the response. */
|
|
971
|
+
count?: number | null;
|
|
972
|
+
/** Use these cursor to paginate between results. [Read more](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging). */
|
|
973
|
+
cursors?: Cursors;
|
|
974
|
+
/**
|
|
975
|
+
* Indicates if there are more results after the current page.
|
|
976
|
+
* If `true`, another page of results can be retrieved.
|
|
977
|
+
* If `false`, this is the last page.
|
|
978
|
+
*/
|
|
979
|
+
hasNext?: boolean | null;
|
|
980
|
+
}
|
|
920
981
|
export interface CountServicesRequest {
|
|
921
982
|
/** The filters for performing the count. */
|
|
922
983
|
filter?: Record<string, any> | null;
|
|
@@ -2227,12 +2288,6 @@ export interface MoveToNewLocationsOptions {
|
|
|
2227
2288
|
/** The new location to move existing sessions currently set to a removed location, used when `action` is `MOVE_TO_LOCATION`. */
|
|
2228
2289
|
newLocation?: Location;
|
|
2229
2290
|
}
|
|
2230
|
-
export interface ParticipantNotification {
|
|
2231
|
-
/** Whether to send the message about the changes to the customer. `false` by default */
|
|
2232
|
-
notifyParticipants?: boolean | null;
|
|
2233
|
-
/** Custom message to send to the participants about the changes to the booking. */
|
|
2234
|
-
message?: string | null;
|
|
2235
|
-
}
|
|
2236
2291
|
export interface SetServiceLocationsResponse {
|
|
2237
2292
|
/** The updated service with the newly set locations. */
|
|
2238
2293
|
service?: Service;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-services-v2-service.types.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.types.ts"],"names":[],"mappings":";;;AAyFA,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,4DAA6C,CAAA;IAC7C,qCAAqC;IACrC,0CAA2B,CAAA;IAC3B,8BAA8B;IAC9B,8BAAe,CAAA;IACf,+BAA+B;IAC/B,gCAAiB,CAAA;AACnB,CAAC,EARW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAQtB;AA2ID,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,qCAAqC;IACrC,2BAAe,CAAA;IACf,wEAAwE;IACxE,6BAAiB,CAAA;IACjB,uFAAuF;IACvF,6BAAiB,CAAA;IACjB,8CAA8C;IAC9C,6BAAiB,CAAA;AACnB,CAAC,EAVW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAUnB;AA0HD,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,+DAA+C,CAAA;IAC/C,iQAAiQ;IACjQ,iCAAiB,CAAA;IACjB,6JAA6J;IAC7J,qCAAqB,CAAA;IACrB,8IAA8I;IAC9I,qCAAqB,CAAA;AACvB,CAAC,EARW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAQvB;
|
|
1
|
+
{"version":3,"file":"bookings-services-v2-service.types.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.types.ts"],"names":[],"mappings":";;;AAyFA,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,4DAA6C,CAAA;IAC7C,qCAAqC;IACrC,0CAA2B,CAAA;IAC3B,8BAA8B;IAC9B,8BAAe,CAAA;IACf,+BAA+B;IAC/B,gCAAiB,CAAA;AACnB,CAAC,EARW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAQtB;AA2ID,IAA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C,EANW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAM3B"}
|
|
@@ -798,6 +798,16 @@ export interface DeleteServiceRequest {
|
|
|
798
798
|
serviceId?: string;
|
|
799
799
|
/** The revision of the service. */
|
|
800
800
|
revision?: string;
|
|
801
|
+
/** Whether to preserve future sessions with participants. Optional, default is false. */
|
|
802
|
+
preserveFutureSessionsWithParticipants?: boolean;
|
|
803
|
+
/** Whether to notify participants about the change and an optional custom message. */
|
|
804
|
+
participantNotification?: ParticipantNotification;
|
|
805
|
+
}
|
|
806
|
+
export interface ParticipantNotification {
|
|
807
|
+
/** Whether to send the message about the changes to the customer. `false` by default */
|
|
808
|
+
notifyParticipants?: boolean | null;
|
|
809
|
+
/** Custom message to send to the participants about the changes to the booking. */
|
|
810
|
+
message?: string | null;
|
|
801
811
|
}
|
|
802
812
|
export interface DeleteServiceResponse {
|
|
803
813
|
}
|
|
@@ -891,6 +901,57 @@ export interface Cursors {
|
|
|
891
901
|
/** Cursor pointing to previous page in the list of results. */
|
|
892
902
|
prev?: string | null;
|
|
893
903
|
}
|
|
904
|
+
export interface QueryPoliciesRequest {
|
|
905
|
+
/** WQL expression. */
|
|
906
|
+
query?: CursorQuery;
|
|
907
|
+
}
|
|
908
|
+
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
909
|
+
/**
|
|
910
|
+
* Filter object in the following format:
|
|
911
|
+
* `"filter" : {
|
|
912
|
+
* "fieldName1": "value1",
|
|
913
|
+
* "fieldName2":{"$operator":"value2"}
|
|
914
|
+
* }`
|
|
915
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
916
|
+
*/
|
|
917
|
+
filter?: Record<string, any> | null;
|
|
918
|
+
/**
|
|
919
|
+
* Sort object in the following format:
|
|
920
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
921
|
+
*/
|
|
922
|
+
sort?: Sorting[];
|
|
923
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
924
|
+
cursorPaging?: CursorPaging;
|
|
925
|
+
}
|
|
926
|
+
/** @oneof */
|
|
927
|
+
export interface CursorQueryPagingMethodOneOf {
|
|
928
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
929
|
+
cursorPaging?: CursorPaging;
|
|
930
|
+
}
|
|
931
|
+
export interface QueryPoliciesResponse {
|
|
932
|
+
/** The retrieved policies. */
|
|
933
|
+
bookingPolicies?: BookingPolicyWithServices[];
|
|
934
|
+
/** Paging metadata, including offset and count. */
|
|
935
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
936
|
+
}
|
|
937
|
+
export interface BookingPolicyWithServices {
|
|
938
|
+
/** The booking policy. */
|
|
939
|
+
bookingPolicy?: BookingPolicy;
|
|
940
|
+
/** The services associated with the booking policy. */
|
|
941
|
+
services?: Service[];
|
|
942
|
+
}
|
|
943
|
+
export interface CursorPagingMetadata {
|
|
944
|
+
/** Number of items returned in the response. */
|
|
945
|
+
count?: number | null;
|
|
946
|
+
/** Use these cursor to paginate between results. [Read more](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging). */
|
|
947
|
+
cursors?: Cursors;
|
|
948
|
+
/**
|
|
949
|
+
* Indicates if there are more results after the current page.
|
|
950
|
+
* If `true`, another page of results can be retrieved.
|
|
951
|
+
* If `false`, this is the last page.
|
|
952
|
+
*/
|
|
953
|
+
hasNext?: boolean | null;
|
|
954
|
+
}
|
|
894
955
|
export interface CountServicesRequest {
|
|
895
956
|
/** The filters for performing the count. */
|
|
896
957
|
filter?: Record<string, any> | null;
|
|
@@ -2172,12 +2233,6 @@ export interface MoveToNewLocationsOptions {
|
|
|
2172
2233
|
/** The new location to move existing sessions currently set to a removed location, used when `action` is `MOVE_TO_LOCATION`. */
|
|
2173
2234
|
newLocation?: Location;
|
|
2174
2235
|
}
|
|
2175
|
-
export interface ParticipantNotification {
|
|
2176
|
-
/** Whether to send the message about the changes to the customer. `false` by default */
|
|
2177
|
-
notifyParticipants?: boolean | null;
|
|
2178
|
-
/** Custom message to send to the participants about the changes to the booking. */
|
|
2179
|
-
message?: string | null;
|
|
2180
|
-
}
|
|
2181
2236
|
export interface SetServiceLocationsResponse {
|
|
2182
2237
|
/** The updated service with the newly set locations. */
|
|
2183
2238
|
service?: Service;
|
|
@@ -2256,72 +2311,9 @@ export declare function getService(serviceId: string): Promise<Service>;
|
|
|
2256
2311
|
* >**Notes:**
|
|
2257
2312
|
* > + Use UTC format when filtering with dates.
|
|
2258
2313
|
* > + 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.
|
|
2314
|
+
* @param query - WQL expression.
|
|
2259
2315
|
* @public
|
|
2260
2316
|
* @documentationMaturity preview
|
|
2317
|
+
* @requiredField query
|
|
2261
2318
|
*/
|
|
2262
|
-
export declare function queryServices():
|
|
2263
|
-
interface QueryOffsetResult {
|
|
2264
|
-
currentPage: number;
|
|
2265
|
-
totalPages: number;
|
|
2266
|
-
totalCount: number;
|
|
2267
|
-
hasNext: () => boolean;
|
|
2268
|
-
hasPrev: () => boolean;
|
|
2269
|
-
length: number;
|
|
2270
|
-
pageSize: number;
|
|
2271
|
-
}
|
|
2272
|
-
export interface ServicesQueryResult extends QueryOffsetResult {
|
|
2273
|
-
items: Service[];
|
|
2274
|
-
query: ServicesQueryBuilder;
|
|
2275
|
-
next: () => Promise<ServicesQueryResult>;
|
|
2276
|
-
prev: () => Promise<ServicesQueryResult>;
|
|
2277
|
-
}
|
|
2278
|
-
export interface ServicesQueryBuilder {
|
|
2279
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
2280
|
-
* @param value - Value to compare against.
|
|
2281
|
-
* @documentationMaturity preview
|
|
2282
|
-
*/
|
|
2283
|
-
eq: (propertyName: 'type' | 'name' | 'description' | 'tagLine' | 'hidden' | 'category.id' | 'category.name' | 'form.id' | 'form.mobileSettings.hidden' | 'payment.custom.description' | 'onlineBooking.enabled' | 'staffMembersIds' | 'locations.type' | 'locations.calculatedAddress.streetAddress.name' | 'locations.business.name' | 'bookingPolicy.name' | 'bookingPolicy.customPolicyDescription.description' | 'supportedSlugs.name' | 'seoData.tags.type', value: any) => ServicesQueryBuilder;
|
|
2284
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
2285
|
-
* @param value - Value to compare against.
|
|
2286
|
-
* @documentationMaturity preview
|
|
2287
|
-
*/
|
|
2288
|
-
ne: (propertyName: 'type' | 'name' | 'description' | 'tagLine' | 'hidden' | 'category.id' | 'category.name' | 'form.id' | 'form.mobileSettings.hidden' | 'payment.custom.description' | 'onlineBooking.enabled' | 'staffMembersIds' | 'locations.type' | 'locations.calculatedAddress.streetAddress.name' | 'locations.business.name' | 'bookingPolicy.name' | 'bookingPolicy.customPolicyDescription.description' | 'supportedSlugs.name' | 'seoData.tags.type', value: any) => ServicesQueryBuilder;
|
|
2289
|
-
/** @param propertyName - Property whose value is compared with `string`.
|
|
2290
|
-
* @param string - String to compare against. Case-insensitive.
|
|
2291
|
-
* @documentationMaturity preview
|
|
2292
|
-
*/
|
|
2293
|
-
startsWith: (propertyName: 'name' | 'description' | 'tagLine' | 'category.id' | 'category.name' | 'form.id' | 'payment.custom.description' | 'locations.calculatedAddress.streetAddress.name' | 'locations.business.name' | 'bookingPolicy.name' | 'bookingPolicy.customPolicyDescription.description' | 'supportedSlugs.name' | 'seoData.tags.type', value: string) => ServicesQueryBuilder;
|
|
2294
|
-
/** @param propertyName - Property whose value is compared with `values`.
|
|
2295
|
-
* @param values - List of values to compare against.
|
|
2296
|
-
* @documentationMaturity preview
|
|
2297
|
-
*/
|
|
2298
|
-
hasSome: (propertyName: 'type' | 'name' | 'description' | 'tagLine' | 'hidden' | 'category.id' | 'category.name' | 'form.id' | 'form.mobileSettings.hidden' | 'payment.custom.description' | 'onlineBooking.enabled' | 'staffMembersIds' | 'locations.type' | 'locations.calculatedAddress.streetAddress.name' | 'locations.business.name' | 'bookingPolicy.name' | 'bookingPolicy.customPolicyDescription.description' | 'supportedSlugs.name' | 'seoData.tags.type', value: any[]) => ServicesQueryBuilder;
|
|
2299
|
-
/** @param propertyName - Property whose value is compared with `values`.
|
|
2300
|
-
* @param values - List of values to compare against.
|
|
2301
|
-
* @documentationMaturity preview
|
|
2302
|
-
*/
|
|
2303
|
-
hasAll: (propertyName: 'staffMembersIds', value: any[]) => ServicesQueryBuilder;
|
|
2304
|
-
/** @documentationMaturity preview */
|
|
2305
|
-
in: (propertyName: 'type' | 'name' | 'description' | 'tagLine' | 'hidden' | 'category.id' | 'category.name' | 'form.id' | 'form.mobileSettings.hidden' | 'payment.custom.description' | 'onlineBooking.enabled' | 'staffMembersIds' | 'locations.type' | 'locations.calculatedAddress.streetAddress.name' | 'locations.business.name' | 'bookingPolicy.name' | 'bookingPolicy.customPolicyDescription.description' | 'supportedSlugs.name' | 'seoData.tags.type', value: any) => ServicesQueryBuilder;
|
|
2306
|
-
/** @documentationMaturity preview */
|
|
2307
|
-
exists: (propertyName: 'type' | 'name' | 'description' | 'tagLine' | 'hidden' | 'category.id' | 'category.name' | 'form.id' | 'form.mobileSettings.hidden' | 'payment.custom.description' | 'onlineBooking.enabled' | 'staffMembersIds' | 'locations.type' | 'locations.calculatedAddress.streetAddress.name' | 'locations.business.name' | 'bookingPolicy.name' | 'bookingPolicy.customPolicyDescription.description' | 'supportedSlugs.name' | 'seoData.tags.type', value: boolean) => ServicesQueryBuilder;
|
|
2308
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
2309
|
-
* @documentationMaturity preview
|
|
2310
|
-
*/
|
|
2311
|
-
ascending: (...propertyNames: Array<string>) => ServicesQueryBuilder;
|
|
2312
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
2313
|
-
* @documentationMaturity preview
|
|
2314
|
-
*/
|
|
2315
|
-
descending: (...propertyNames: Array<string>) => ServicesQueryBuilder;
|
|
2316
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
2317
|
-
* @documentationMaturity preview
|
|
2318
|
-
*/
|
|
2319
|
-
limit: (limit: number) => ServicesQueryBuilder;
|
|
2320
|
-
/** @param skip - Number of items to skip in the query results before returning the results.
|
|
2321
|
-
* @documentationMaturity preview
|
|
2322
|
-
*/
|
|
2323
|
-
skip: (skip: number) => ServicesQueryBuilder;
|
|
2324
|
-
/** @documentationMaturity preview */
|
|
2325
|
-
find: () => Promise<ServicesQueryResult>;
|
|
2326
|
-
}
|
|
2327
|
-
export {};
|
|
2319
|
+
export declare function queryServices(query: QueryV2): Promise<QueryServicesResponse>;
|
|
@@ -32,7 +32,6 @@ 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");
|
|
36
35
|
let __verbose = false;
|
|
37
36
|
function __log(...args) {
|
|
38
37
|
__verbose && console.log(...args);
|
|
@@ -388,67 +387,61 @@ exports.getService = getService;
|
|
|
388
387
|
* >**Notes:**
|
|
389
388
|
* > + Use UTC format when filtering with dates.
|
|
390
389
|
* > + 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
|
|
393
394
|
*/
|
|
394
|
-
function queryServices() {
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
}
|
|
442
|
-
}),
|
|
443
|
-
requestTransformer: (...args) => toAmbassadorRequest(args),
|
|
444
|
-
responseTransformer: ({ data }) => fromJSON(data),
|
|
445
|
-
errorTransformer: (err) => {
|
|
446
|
-
const transformedError = (0, velo_1.transformError)(err, requestTransformation);
|
|
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);
|
|
447
442
|
throw transformedError;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
transformationPaths: (0, velo_1.resolveQueryFieldsTransformationPaths)(_toVeloEntity),
|
|
451
|
-
})({ cursorWithEmptyFilterAndSort: true });
|
|
443
|
+
}
|
|
444
|
+
});
|
|
452
445
|
}
|
|
453
446
|
exports.queryServices = queryServices;
|
|
454
447
|
//# 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,
|
|
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,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AA2F5B,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,4DAA6C,CAAA;IAC7C,qCAAqC;IACrC,0CAA2B,CAAA;IAC3B,8BAA8B;IAC9B,8BAAe,CAAA;IACf,+BAA+B;IAC/B,gCAAiB,CAAA;AACnB,CAAC,EARW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAQtB;AAkHD,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,qCAAqC;IACrC,2BAAe,CAAA;IACf,wEAAwE;IACxE,6BAAiB,CAAA;IACjB,uFAAuF;IACvF,6BAAiB,CAAA;IACjB,8CAA8C;IAC9C,6BAAiB,CAAA;AACnB,CAAC,EAVW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAUnB;AA0HD,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,+D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G,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;AA5DD,sCA4DC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { QueryV2 } from './bookings-services-v2-service.universal';
|
|
2
3
|
export declare function getService(httpClient: HttpClient): (serviceId: string) => Promise<import("./bookings-services-v2-service.universal").Service>;
|
|
3
|
-
export declare function queryServices(httpClient: HttpClient): () => import("./bookings-services-v2-service.universal").
|
|
4
|
+
export declare function queryServices(httpClient: HttpClient): (query: QueryV2) => Promise<import("./bookings-services-v2-service.universal").QueryServicesResponse>;
|
|
4
5
|
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';
|
|
5
|
-
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, GetServiceRequest, GetServiceResponse, UpdateServiceRequest, UpdateServiceResponse, DeleteServiceRequest, DeleteServiceResponse, QueryServicesRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryServicesResponse, PagingMetadataV2, Cursors, 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,
|
|
6
|
+
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, GetServiceRequest, GetServiceResponse, UpdateServiceRequest, UpdateServiceResponse, DeleteServiceRequest, ParticipantNotification, DeleteServiceResponse, 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';
|
|
@@ -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,
|
|
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,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"}
|
|
@@ -824,6 +824,16 @@ export interface DeleteServiceRequest {
|
|
|
824
824
|
serviceId?: string;
|
|
825
825
|
/** The revision of the service. */
|
|
826
826
|
revision?: string;
|
|
827
|
+
/** Whether to preserve future sessions with participants. Optional, default is false. */
|
|
828
|
+
preserveFutureSessionsWithParticipants?: boolean;
|
|
829
|
+
/** Whether to notify participants about the change and an optional custom message. */
|
|
830
|
+
participantNotification?: ParticipantNotification;
|
|
831
|
+
}
|
|
832
|
+
export interface ParticipantNotification {
|
|
833
|
+
/** Whether to send the message about the changes to the customer. `false` by default */
|
|
834
|
+
notifyParticipants?: boolean | null;
|
|
835
|
+
/** Custom message to send to the participants about the changes to the booking. */
|
|
836
|
+
message?: string | null;
|
|
827
837
|
}
|
|
828
838
|
export interface DeleteServiceResponse {
|
|
829
839
|
}
|
|
@@ -917,6 +927,57 @@ export interface Cursors {
|
|
|
917
927
|
/** Cursor pointing to previous page in the list of results. */
|
|
918
928
|
prev?: string | null;
|
|
919
929
|
}
|
|
930
|
+
export interface QueryPoliciesRequest {
|
|
931
|
+
/** WQL expression. */
|
|
932
|
+
query?: CursorQuery;
|
|
933
|
+
}
|
|
934
|
+
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
935
|
+
/**
|
|
936
|
+
* Filter object in the following format:
|
|
937
|
+
* `"filter" : {
|
|
938
|
+
* "fieldName1": "value1",
|
|
939
|
+
* "fieldName2":{"$operator":"value2"}
|
|
940
|
+
* }`
|
|
941
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
942
|
+
*/
|
|
943
|
+
filter?: Record<string, any> | null;
|
|
944
|
+
/**
|
|
945
|
+
* Sort object in the following format:
|
|
946
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
947
|
+
*/
|
|
948
|
+
sort?: Sorting[];
|
|
949
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
950
|
+
cursorPaging?: CursorPaging;
|
|
951
|
+
}
|
|
952
|
+
/** @oneof */
|
|
953
|
+
export interface CursorQueryPagingMethodOneOf {
|
|
954
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
955
|
+
cursorPaging?: CursorPaging;
|
|
956
|
+
}
|
|
957
|
+
export interface QueryPoliciesResponse {
|
|
958
|
+
/** The retrieved policies. */
|
|
959
|
+
bookingPolicies?: BookingPolicyWithServices[];
|
|
960
|
+
/** Paging metadata, including offset and count. */
|
|
961
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
962
|
+
}
|
|
963
|
+
export interface BookingPolicyWithServices {
|
|
964
|
+
/** The booking policy. */
|
|
965
|
+
bookingPolicy?: BookingPolicy;
|
|
966
|
+
/** The services associated with the booking policy. */
|
|
967
|
+
services?: Service[];
|
|
968
|
+
}
|
|
969
|
+
export interface CursorPagingMetadata {
|
|
970
|
+
/** Number of items returned in the response. */
|
|
971
|
+
count?: number | null;
|
|
972
|
+
/** Use these cursor to paginate between results. [Read more](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging). */
|
|
973
|
+
cursors?: Cursors;
|
|
974
|
+
/**
|
|
975
|
+
* Indicates if there are more results after the current page.
|
|
976
|
+
* If `true`, another page of results can be retrieved.
|
|
977
|
+
* If `false`, this is the last page.
|
|
978
|
+
*/
|
|
979
|
+
hasNext?: boolean | null;
|
|
980
|
+
}
|
|
920
981
|
export interface CountServicesRequest {
|
|
921
982
|
/** The filters for performing the count. */
|
|
922
983
|
filter?: Record<string, any> | null;
|
|
@@ -2227,12 +2288,6 @@ export interface MoveToNewLocationsOptions {
|
|
|
2227
2288
|
/** The new location to move existing sessions currently set to a removed location, used when `action` is `MOVE_TO_LOCATION`. */
|
|
2228
2289
|
newLocation?: Location;
|
|
2229
2290
|
}
|
|
2230
|
-
export interface ParticipantNotification {
|
|
2231
|
-
/** Whether to send the message about the changes to the customer. `false` by default */
|
|
2232
|
-
notifyParticipants?: boolean | null;
|
|
2233
|
-
/** Custom message to send to the participants about the changes to the booking. */
|
|
2234
|
-
message?: string | null;
|
|
2235
|
-
}
|
|
2236
2291
|
export interface SetServiceLocationsResponse {
|
|
2237
2292
|
/** The updated service with the newly set locations. */
|
|
2238
2293
|
service?: Service;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-services-v2-service.types.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.types.ts"],"names":[],"mappings":"AAyFA,MAAM,CAAN,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,4DAA6C,CAAA;IAC7C,qCAAqC;IACrC,0CAA2B,CAAA;IAC3B,8BAA8B;IAC9B,8BAAe,CAAA;IACf,+BAA+B;IAC/B,gCAAiB,CAAA;AACnB,CAAC,EARW,WAAW,KAAX,WAAW,QAQtB;AA2ID,MAAM,CAAN,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,qCAAqC;IACrC,2BAAe,CAAA;IACf,wEAAwE;IACxE,6BAAiB,CAAA;IACjB,uFAAuF;IACvF,6BAAiB,CAAA;IACjB,8CAA8C;IAC9C,6BAAiB,CAAA;AACnB,CAAC,EAVW,QAAQ,KAAR,QAAQ,QAUnB;AA0HD,MAAM,CAAN,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,+DAA+C,CAAA;IAC/C,iQAAiQ;IACjQ,iCAAiB,CAAA;IACjB,6JAA6J;IAC7J,qCAAqB,CAAA;IACrB,8IAA8I;IAC9I,qCAAqB,CAAA;AACvB,CAAC,EARW,YAAY,KAAZ,YAAY,QAQvB;
|
|
1
|
+
{"version":3,"file":"bookings-services-v2-service.types.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.types.ts"],"names":[],"mappings":"AAyFA,MAAM,CAAN,IAAY,WAQ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BjB;AAoED,MAAM,CAAN,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,6DAAyC,CAAA;IACzC,0DAA0D;IAC1D,yFAAqE,CAAA;IACrE,iEAAiE;IACjE,+DAA2C,CAAA;AAC7C,CAAC,EANW,gBAAgB,KAAhB,gBAAgB,QAM3B"}
|
|
@@ -798,6 +798,16 @@ export interface DeleteServiceRequest {
|
|
|
798
798
|
serviceId?: string;
|
|
799
799
|
/** The revision of the service. */
|
|
800
800
|
revision?: string;
|
|
801
|
+
/** Whether to preserve future sessions with participants. Optional, default is false. */
|
|
802
|
+
preserveFutureSessionsWithParticipants?: boolean;
|
|
803
|
+
/** Whether to notify participants about the change and an optional custom message. */
|
|
804
|
+
participantNotification?: ParticipantNotification;
|
|
805
|
+
}
|
|
806
|
+
export interface ParticipantNotification {
|
|
807
|
+
/** Whether to send the message about the changes to the customer. `false` by default */
|
|
808
|
+
notifyParticipants?: boolean | null;
|
|
809
|
+
/** Custom message to send to the participants about the changes to the booking. */
|
|
810
|
+
message?: string | null;
|
|
801
811
|
}
|
|
802
812
|
export interface DeleteServiceResponse {
|
|
803
813
|
}
|
|
@@ -891,6 +901,57 @@ export interface Cursors {
|
|
|
891
901
|
/** Cursor pointing to previous page in the list of results. */
|
|
892
902
|
prev?: string | null;
|
|
893
903
|
}
|
|
904
|
+
export interface QueryPoliciesRequest {
|
|
905
|
+
/** WQL expression. */
|
|
906
|
+
query?: CursorQuery;
|
|
907
|
+
}
|
|
908
|
+
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
909
|
+
/**
|
|
910
|
+
* Filter object in the following format:
|
|
911
|
+
* `"filter" : {
|
|
912
|
+
* "fieldName1": "value1",
|
|
913
|
+
* "fieldName2":{"$operator":"value2"}
|
|
914
|
+
* }`
|
|
915
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
916
|
+
*/
|
|
917
|
+
filter?: Record<string, any> | null;
|
|
918
|
+
/**
|
|
919
|
+
* Sort object in the following format:
|
|
920
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
921
|
+
*/
|
|
922
|
+
sort?: Sorting[];
|
|
923
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
924
|
+
cursorPaging?: CursorPaging;
|
|
925
|
+
}
|
|
926
|
+
/** @oneof */
|
|
927
|
+
export interface CursorQueryPagingMethodOneOf {
|
|
928
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
929
|
+
cursorPaging?: CursorPaging;
|
|
930
|
+
}
|
|
931
|
+
export interface QueryPoliciesResponse {
|
|
932
|
+
/** The retrieved policies. */
|
|
933
|
+
bookingPolicies?: BookingPolicyWithServices[];
|
|
934
|
+
/** Paging metadata, including offset and count. */
|
|
935
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
936
|
+
}
|
|
937
|
+
export interface BookingPolicyWithServices {
|
|
938
|
+
/** The booking policy. */
|
|
939
|
+
bookingPolicy?: BookingPolicy;
|
|
940
|
+
/** The services associated with the booking policy. */
|
|
941
|
+
services?: Service[];
|
|
942
|
+
}
|
|
943
|
+
export interface CursorPagingMetadata {
|
|
944
|
+
/** Number of items returned in the response. */
|
|
945
|
+
count?: number | null;
|
|
946
|
+
/** Use these cursor to paginate between results. [Read more](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging). */
|
|
947
|
+
cursors?: Cursors;
|
|
948
|
+
/**
|
|
949
|
+
* Indicates if there are more results after the current page.
|
|
950
|
+
* If `true`, another page of results can be retrieved.
|
|
951
|
+
* If `false`, this is the last page.
|
|
952
|
+
*/
|
|
953
|
+
hasNext?: boolean | null;
|
|
954
|
+
}
|
|
894
955
|
export interface CountServicesRequest {
|
|
895
956
|
/** The filters for performing the count. */
|
|
896
957
|
filter?: Record<string, any> | null;
|
|
@@ -2172,12 +2233,6 @@ export interface MoveToNewLocationsOptions {
|
|
|
2172
2233
|
/** The new location to move existing sessions currently set to a removed location, used when `action` is `MOVE_TO_LOCATION`. */
|
|
2173
2234
|
newLocation?: Location;
|
|
2174
2235
|
}
|
|
2175
|
-
export interface ParticipantNotification {
|
|
2176
|
-
/** Whether to send the message about the changes to the customer. `false` by default */
|
|
2177
|
-
notifyParticipants?: boolean | null;
|
|
2178
|
-
/** Custom message to send to the participants about the changes to the booking. */
|
|
2179
|
-
message?: string | null;
|
|
2180
|
-
}
|
|
2181
2236
|
export interface SetServiceLocationsResponse {
|
|
2182
2237
|
/** The updated service with the newly set locations. */
|
|
2183
2238
|
service?: Service;
|
|
@@ -2256,72 +2311,9 @@ export declare function getService(serviceId: string): Promise<Service>;
|
|
|
2256
2311
|
* >**Notes:**
|
|
2257
2312
|
* > + Use UTC format when filtering with dates.
|
|
2258
2313
|
* > + 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.
|
|
2314
|
+
* @param query - WQL expression.
|
|
2259
2315
|
* @public
|
|
2260
2316
|
* @documentationMaturity preview
|
|
2317
|
+
* @requiredField query
|
|
2261
2318
|
*/
|
|
2262
|
-
export declare function queryServices():
|
|
2263
|
-
interface QueryOffsetResult {
|
|
2264
|
-
currentPage: number;
|
|
2265
|
-
totalPages: number;
|
|
2266
|
-
totalCount: number;
|
|
2267
|
-
hasNext: () => boolean;
|
|
2268
|
-
hasPrev: () => boolean;
|
|
2269
|
-
length: number;
|
|
2270
|
-
pageSize: number;
|
|
2271
|
-
}
|
|
2272
|
-
export interface ServicesQueryResult extends QueryOffsetResult {
|
|
2273
|
-
items: Service[];
|
|
2274
|
-
query: ServicesQueryBuilder;
|
|
2275
|
-
next: () => Promise<ServicesQueryResult>;
|
|
2276
|
-
prev: () => Promise<ServicesQueryResult>;
|
|
2277
|
-
}
|
|
2278
|
-
export interface ServicesQueryBuilder {
|
|
2279
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
2280
|
-
* @param value - Value to compare against.
|
|
2281
|
-
* @documentationMaturity preview
|
|
2282
|
-
*/
|
|
2283
|
-
eq: (propertyName: 'type' | 'name' | 'description' | 'tagLine' | 'hidden' | 'category.id' | 'category.name' | 'form.id' | 'form.mobileSettings.hidden' | 'payment.custom.description' | 'onlineBooking.enabled' | 'staffMembersIds' | 'locations.type' | 'locations.calculatedAddress.streetAddress.name' | 'locations.business.name' | 'bookingPolicy.name' | 'bookingPolicy.customPolicyDescription.description' | 'supportedSlugs.name' | 'seoData.tags.type', value: any) => ServicesQueryBuilder;
|
|
2284
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
2285
|
-
* @param value - Value to compare against.
|
|
2286
|
-
* @documentationMaturity preview
|
|
2287
|
-
*/
|
|
2288
|
-
ne: (propertyName: 'type' | 'name' | 'description' | 'tagLine' | 'hidden' | 'category.id' | 'category.name' | 'form.id' | 'form.mobileSettings.hidden' | 'payment.custom.description' | 'onlineBooking.enabled' | 'staffMembersIds' | 'locations.type' | 'locations.calculatedAddress.streetAddress.name' | 'locations.business.name' | 'bookingPolicy.name' | 'bookingPolicy.customPolicyDescription.description' | 'supportedSlugs.name' | 'seoData.tags.type', value: any) => ServicesQueryBuilder;
|
|
2289
|
-
/** @param propertyName - Property whose value is compared with `string`.
|
|
2290
|
-
* @param string - String to compare against. Case-insensitive.
|
|
2291
|
-
* @documentationMaturity preview
|
|
2292
|
-
*/
|
|
2293
|
-
startsWith: (propertyName: 'name' | 'description' | 'tagLine' | 'category.id' | 'category.name' | 'form.id' | 'payment.custom.description' | 'locations.calculatedAddress.streetAddress.name' | 'locations.business.name' | 'bookingPolicy.name' | 'bookingPolicy.customPolicyDescription.description' | 'supportedSlugs.name' | 'seoData.tags.type', value: string) => ServicesQueryBuilder;
|
|
2294
|
-
/** @param propertyName - Property whose value is compared with `values`.
|
|
2295
|
-
* @param values - List of values to compare against.
|
|
2296
|
-
* @documentationMaturity preview
|
|
2297
|
-
*/
|
|
2298
|
-
hasSome: (propertyName: 'type' | 'name' | 'description' | 'tagLine' | 'hidden' | 'category.id' | 'category.name' | 'form.id' | 'form.mobileSettings.hidden' | 'payment.custom.description' | 'onlineBooking.enabled' | 'staffMembersIds' | 'locations.type' | 'locations.calculatedAddress.streetAddress.name' | 'locations.business.name' | 'bookingPolicy.name' | 'bookingPolicy.customPolicyDescription.description' | 'supportedSlugs.name' | 'seoData.tags.type', value: any[]) => ServicesQueryBuilder;
|
|
2299
|
-
/** @param propertyName - Property whose value is compared with `values`.
|
|
2300
|
-
* @param values - List of values to compare against.
|
|
2301
|
-
* @documentationMaturity preview
|
|
2302
|
-
*/
|
|
2303
|
-
hasAll: (propertyName: 'staffMembersIds', value: any[]) => ServicesQueryBuilder;
|
|
2304
|
-
/** @documentationMaturity preview */
|
|
2305
|
-
in: (propertyName: 'type' | 'name' | 'description' | 'tagLine' | 'hidden' | 'category.id' | 'category.name' | 'form.id' | 'form.mobileSettings.hidden' | 'payment.custom.description' | 'onlineBooking.enabled' | 'staffMembersIds' | 'locations.type' | 'locations.calculatedAddress.streetAddress.name' | 'locations.business.name' | 'bookingPolicy.name' | 'bookingPolicy.customPolicyDescription.description' | 'supportedSlugs.name' | 'seoData.tags.type', value: any) => ServicesQueryBuilder;
|
|
2306
|
-
/** @documentationMaturity preview */
|
|
2307
|
-
exists: (propertyName: 'type' | 'name' | 'description' | 'tagLine' | 'hidden' | 'category.id' | 'category.name' | 'form.id' | 'form.mobileSettings.hidden' | 'payment.custom.description' | 'onlineBooking.enabled' | 'staffMembersIds' | 'locations.type' | 'locations.calculatedAddress.streetAddress.name' | 'locations.business.name' | 'bookingPolicy.name' | 'bookingPolicy.customPolicyDescription.description' | 'supportedSlugs.name' | 'seoData.tags.type', value: boolean) => ServicesQueryBuilder;
|
|
2308
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
2309
|
-
* @documentationMaturity preview
|
|
2310
|
-
*/
|
|
2311
|
-
ascending: (...propertyNames: Array<string>) => ServicesQueryBuilder;
|
|
2312
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
2313
|
-
* @documentationMaturity preview
|
|
2314
|
-
*/
|
|
2315
|
-
descending: (...propertyNames: Array<string>) => ServicesQueryBuilder;
|
|
2316
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
2317
|
-
* @documentationMaturity preview
|
|
2318
|
-
*/
|
|
2319
|
-
limit: (limit: number) => ServicesQueryBuilder;
|
|
2320
|
-
/** @param skip - Number of items to skip in the query results before returning the results.
|
|
2321
|
-
* @documentationMaturity preview
|
|
2322
|
-
*/
|
|
2323
|
-
skip: (skip: number) => ServicesQueryBuilder;
|
|
2324
|
-
/** @documentationMaturity preview */
|
|
2325
|
-
find: () => Promise<ServicesQueryResult>;
|
|
2326
|
-
}
|
|
2327
|
-
export {};
|
|
2319
|
+
export declare function queryServices(query: QueryV2): Promise<QueryServicesResponse>;
|
|
@@ -7,10 +7,9 @@ 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
|
|
10
|
+
import { serializer, transformError } 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';
|
|
14
13
|
let __verbose = false;
|
|
15
14
|
function __log(...args) {
|
|
16
15
|
__verbose && console.log(...args);
|
|
@@ -365,66 +364,60 @@ export function getService(serviceId) {
|
|
|
365
364
|
* >**Notes:**
|
|
366
365
|
* > + Use UTC format when filtering with dates.
|
|
367
366
|
* > + 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
|
|
370
371
|
*/
|
|
371
|
-
export function queryServices() {
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
}
|
|
419
|
-
}),
|
|
420
|
-
requestTransformer: (...args) => toAmbassadorRequest(args),
|
|
421
|
-
responseTransformer: ({ data }) => fromJSON(data),
|
|
422
|
-
errorTransformer: (err) => {
|
|
423
|
-
const transformedError = transformError(err, requestTransformation);
|
|
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);
|
|
424
419
|
throw transformedError;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
transformationPaths: resolveQueryFieldsTransformationPaths(_toVeloEntity),
|
|
428
|
-
})({ cursorWithEmptyFilterAndSort: true });
|
|
420
|
+
}
|
|
421
|
+
});
|
|
429
422
|
}
|
|
430
423
|
//# 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,
|
|
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,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AA2F5B,MAAM,CAAN,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,4DAA6C,CAAA;IAC7C,qCAAqC;IACrC,0CAA2B,CAAA;IAC3B,8BAA8B;IAC9B,8BAAe,CAAA;IACf,+BAA+B;IAC/B,gCAAiB,CAAA;AACnB,CAAC,EARW,WAAW,KAAX,WAAW,QAQtB;AAkHD,MAAM,CAAN,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,qCAAqC;IACrC,2BAAe,CAA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AAC,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/bookings",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.97",
|
|
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": "
|
|
36
|
+
"falconPackageHash": "c8c94f877e25bb70b660639803595175400256328d16f41fe2b2efd7"
|
|
37
37
|
}
|