@wix/bookings 1.0.119 → 1.0.120
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 +2 -3
- 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.universal.d.ts +66 -3
- package/build/cjs/src/bookings-services-v2-service.universal.js +58 -51
- package/build/cjs/src/bookings-services-v2-service.universal.js.map +1 -1
- package/build/es/src/bookings-services-v2-service.public.d.ts +2 -3
- 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.universal.d.ts +66 -3
- package/build/es/src/bookings-services-v2-service.universal.js +59 -52
- package/build/es/src/bookings-services-v2-service.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -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): (
|
|
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 (
|
|
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,
|
|
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(
|
|
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(
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
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,
|
|
1
|
+
{"version":3,"file":"bookings-services-v2-service.universal.js","sourceRoot":"","sources":["../../../src/bookings-services-v2-service.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAIiC;AAEjC,4GAA8F;AAC9F,aAAa;AACb,4FAA6E;AAE7E,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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AE,QAAQ;QACtB,mBAAmB,EAAE,IAAA,4CAAqC,EAAC,aAAa,CAAC;KAC1E,CAAC,CAAC,EAAE,4BAA4B,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC;AAlED,sCAkEC"}
|
|
@@ -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): (
|
|
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';
|
|
@@ -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,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(
|
|
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(
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
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,
|
|
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,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,sCAAsC,MAAM,qCAAqC,CAAC;AAC9F,aAAa;AACb,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,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;AA6F5B,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;AAoHD,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,CAA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AAM,GAAG,CAAC;aACX;QACH,CAAC,CAAA;QACD,kBAAkB,EAAE,CAAC,GAAG,IAAW,EAAE,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,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.
|
|
3
|
+
"version": "1.0.120",
|
|
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": "69bd68d86529123d55a6a59f2953bce4879429ef64f8036dca75c817"
|
|
37
37
|
}
|