@wix/auto_sdk_bookings_catalog-search 1.0.31 → 1.0.33
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/index.d.ts +1 -1
- package/build/cjs/index.js +48 -65
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +27 -1
- package/build/cjs/index.typings.js +48 -65
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +27 -1
- package/build/cjs/meta.js +28 -46
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +48 -65
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +27 -1
- package/build/es/index.typings.mjs +48 -65
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +27 -1
- package/build/es/meta.mjs +28 -46
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.typings.d.ts +32 -1
- package/build/internal/cjs/meta.d.ts +32 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.typings.d.mts +32 -1
- package/build/internal/es/meta.d.mts +32 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
2
|
import { QueryServicesByFiltersOptions, QueryServicesByFiltersResponse } from './index.typings.js';
|
|
3
|
-
export { AddOnDetails, AddOnGroup, AddOnPaymentOptions, AddOnPaymentOptionsWithLiterals, Address, AddressLocation, AddressStreetOneOf, Attribute, AttributeValueOneOf, AvailabilityConstraints, BookAfterStartPolicy, BookingPolicy, BusinessLocationOptions, CancellationFeePolicy, CancellationPolicy, CancellationWindow, CancellationWindowFeeOneOf, CatalogSearchResult, Category, CompletionRequirement, CompletionRequirementWithLiterals, Conferencing, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomLocationOptions, CustomOptions, CustomPayment, DailyConfig, DepositDetails, DepositDetailsValueOneOf, DiscountInfo, Duration, DurationRange, DurationRangeConfigOneOf, ExtendedFields, FirstChargeDateType, FirstChargeDateTypeWithLiterals, FixedPayment, Form, FormSettings, FrequencyType, FrequencyTypeWithLiterals, FullUpfrontPayment, HourlyConfig, IntakeFormPolicy, Keyword, LimitEarlyBookingPolicy, LimitLateBookingPolicy, LimitRebookingPolicy, Location, LocationOptionsOneOf, LocationType, LocationTypeWithLiterals, Media, MediaItem, MediaItemItemOneOf, Mode, ModeWithLiterals, Money, NumberRange, NumberValues, OnlineBooking, ParticipantsPolicy, Payment, PaymentOptions, PaymentRateOneOf, PhoneCall, PolicyDescription, QueryServicesByFiltersRequest, RankingOptions, RankingOrder, RankingOrderWithLiterals, RateType, RateTypeWithLiterals, ReschedulePolicy, ResourceDetails, ResourceGroup, ResourceIds, ResourceInfo, ResourceType, ResourcesPolicy, SaveCreditCardPolicy, Schedule, SeoSchema, Service, ServiceFilters, ServiceResource, ServiceResourceSelectionOneOf, ServiceType, ServiceTypeWithLiterals, ServiceWithAvailability, Settings, Slug, SortOrder, SortOrderWithLiterals, Sorting, SortingMethodType, SortingMethodTypeWithLiterals, StaffMediaItem, StaffMediaItemItemOneOf, StaffMember, StaffMemberDetails, StaffSortingPolicy, StaffSortingPolicyOptionsOneOf, StreetAddress, SubscriptionPayment, Tag, TaxableAddress, TaxableAddressType, TaxableAddressTypeWithLiterals, Timing, TimingWithLiterals, URLs, UnitType, UnitTypeWithLiterals, VariedPayment, WaitlistPolicy, WorkingHours, WorkingHoursLocationCoverage } from './index.typings.js';
|
|
3
|
+
export { AddOnDetails, AddOnGroup, AddOnPaymentOptions, AddOnPaymentOptionsWithLiterals, Address, AddressLocation, AddressStreetOneOf, Attribute, AttributeValueOneOf, AvailabilityConstraints, BookAfterStartPolicy, BookingPolicy, BusinessLocationOptions, CancellationFeePolicy, CancellationPolicy, CancellationWindow, CancellationWindowFeeOneOf, CatalogSearchResult, Category, CompletionRequirement, CompletionRequirementWithLiterals, Conferencing, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomLocationOptions, CustomOptions, CustomPayment, DailyConfig, DepositDetails, DepositDetailsValueOneOf, DiscountInfo, Duration, DurationRange, DurationRangeConfigOneOf, ExtendedFields, FirstChargeDateType, FirstChargeDateTypeWithLiterals, FixedPayment, Form, FormSettings, FrequencyType, FrequencyTypeWithLiterals, FullUpfrontPayment, HourlyConfig, IntakeFormPolicy, Keyword, LimitEarlyBookingPolicy, LimitLateBookingPolicy, LimitRebookingPolicy, Location, LocationOptionsOneOf, LocationType, LocationTypeWithLiterals, Media, MediaItem, MediaItemItemOneOf, Mode, ModeWithLiterals, Money, NumberRange, NumberValues, OnlineBooking, ParticipantsPolicy, Payment, PaymentOptions, PaymentRateOneOf, PhoneCall, PolicyDescription, PricingPlanRefundPolicy, QueryServicesByFiltersRequest, RankingOptions, RankingOrder, RankingOrderWithLiterals, RateType, RateTypeWithLiterals, RefundWindow, ReschedulePolicy, ResourceDetails, ResourceGroup, ResourceIds, ResourceInfo, ResourceType, ResourcesPolicy, SaveCreditCardPolicy, Schedule, SeoSchema, Service, ServiceFilters, ServiceResource, ServiceResourceSelectionOneOf, ServiceType, ServiceTypeWithLiterals, ServiceWithAvailability, Settings, Slug, SortOrder, SortOrderWithLiterals, Sorting, SortingMethodType, SortingMethodTypeWithLiterals, StaffMediaItem, StaffMediaItemItemOneOf, StaffMember, StaffMemberDetails, StaffSortingPolicy, StaffSortingPolicyOptionsOneOf, StreetAddress, SubscriptionPayment, Tag, TaxableAddress, TaxableAddressType, TaxableAddressTypeWithLiterals, Timing, TimingWithLiterals, URLs, UnitType, UnitTypeWithLiterals, VariedPayment, WaitlistPolicy, WorkingHours, WorkingHoursLocationCoverage } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function queryServicesByFilters$1(httpClient: HttpClient): QueryServicesByFiltersSignature;
|
|
6
6
|
interface QueryServicesByFiltersSignature {
|
package/build/cjs/index.js
CHANGED
|
@@ -47,6 +47,32 @@ var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
|
47
47
|
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
48
48
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
49
49
|
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
50
|
+
var TRANSFORM_PATHS_0 = [
|
|
51
|
+
{ path: "results.service.createdDate" },
|
|
52
|
+
{ path: "results.service.updatedDate" },
|
|
53
|
+
{ path: "results.service.media.items.image.urlExpirationDate" },
|
|
54
|
+
{ path: "results.service.media.mainMedia.image.urlExpirationDate" },
|
|
55
|
+
{ path: "results.service.media.coverMedia.image.urlExpirationDate" },
|
|
56
|
+
{ path: "results.service.payment.subscription.recurringStartDate" },
|
|
57
|
+
{ path: "results.service.bookingPolicy.createdDate" },
|
|
58
|
+
{ path: "results.service.bookingPolicy.updatedDate" },
|
|
59
|
+
{ path: "results.service.schedule.firstSessionStart" },
|
|
60
|
+
{ path: "results.service.schedule.lastSessionEnd" },
|
|
61
|
+
{ path: "results.service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
62
|
+
{
|
|
63
|
+
path: "results.service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
64
|
+
},
|
|
65
|
+
{ path: "results.service.supportedSlugs.createdDate" },
|
|
66
|
+
{ path: "results.service.mainSlug.createdDate" }
|
|
67
|
+
];
|
|
68
|
+
var TRANSFORM_PATHS_1 = [
|
|
69
|
+
{ path: "results.service.locations.business.address.geocode.latitude" },
|
|
70
|
+
{ path: "results.service.locations.business.address.geocode.longitude" },
|
|
71
|
+
{ path: "results.service.locations.custom.address.geocode.latitude" },
|
|
72
|
+
{ path: "results.service.locations.custom.address.geocode.longitude" },
|
|
73
|
+
{ path: "results.service.locations.calculatedAddress.geocode.latitude" },
|
|
74
|
+
{ path: "results.service.locations.calculatedAddress.geocode.longitude" }
|
|
75
|
+
];
|
|
50
76
|
function resolveWixBookingsCatalogSearchV1CatalogSearchUrl(opts) {
|
|
51
77
|
const domainToMappings = {
|
|
52
78
|
_: [
|
|
@@ -108,55 +134,11 @@ function queryServicesByFilters(payload) {
|
|
|
108
134
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
109
135
|
{
|
|
110
136
|
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
111
|
-
paths:
|
|
112
|
-
{ path: "results.service.createdDate" },
|
|
113
|
-
{ path: "results.service.updatedDate" },
|
|
114
|
-
{ path: "results.service.media.items.image.urlExpirationDate" },
|
|
115
|
-
{
|
|
116
|
-
path: "results.service.media.mainMedia.image.urlExpirationDate"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
path: "results.service.media.coverMedia.image.urlExpirationDate"
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
path: "results.service.payment.subscription.recurringStartDate"
|
|
123
|
-
},
|
|
124
|
-
{ path: "results.service.bookingPolicy.createdDate" },
|
|
125
|
-
{ path: "results.service.bookingPolicy.updatedDate" },
|
|
126
|
-
{ path: "results.service.schedule.firstSessionStart" },
|
|
127
|
-
{ path: "results.service.schedule.lastSessionEnd" },
|
|
128
|
-
{
|
|
129
|
-
path: "results.service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
path: "results.service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
133
|
-
},
|
|
134
|
-
{ path: "results.service.supportedSlugs.createdDate" },
|
|
135
|
-
{ path: "results.service.mainSlug.createdDate" }
|
|
136
|
-
]
|
|
137
|
+
paths: TRANSFORM_PATHS_0
|
|
137
138
|
},
|
|
138
139
|
{
|
|
139
140
|
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
140
|
-
paths:
|
|
141
|
-
{
|
|
142
|
-
path: "results.service.locations.business.address.geocode.latitude"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
path: "results.service.locations.business.address.geocode.longitude"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
path: "results.service.locations.custom.address.geocode.latitude"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
path: "results.service.locations.custom.address.geocode.longitude"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
path: "results.service.locations.calculatedAddress.geocode.latitude"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
path: "results.service.locations.calculatedAddress.geocode.longitude"
|
|
158
|
-
}
|
|
159
|
-
]
|
|
141
|
+
paths: TRANSFORM_PATHS_1
|
|
160
142
|
}
|
|
161
143
|
])
|
|
162
144
|
};
|
|
@@ -170,6 +152,23 @@ var import_address = require("@wix/sdk-runtime/transformations/address");
|
|
|
170
152
|
var import_image = require("@wix/sdk-runtime/transformations/image");
|
|
171
153
|
var import_page_url_v2 = require("@wix/sdk-runtime/transformations/page-url-v2");
|
|
172
154
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
155
|
+
var TRANSFORM_PATHS_02 = [
|
|
156
|
+
{ path: "results.service.media.items.image" },
|
|
157
|
+
{ path: "results.service.media.mainMedia.image" },
|
|
158
|
+
{ path: "results.service.media.coverMedia.image" },
|
|
159
|
+
{ path: "results.service.staffMembers.mainMedia.image" },
|
|
160
|
+
{ path: "results.service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
161
|
+
];
|
|
162
|
+
var TRANSFORM_PATHS_12 = [
|
|
163
|
+
{ path: "results.service.locations.calculatedAddress" },
|
|
164
|
+
{ path: "results.service.locations.business.address" },
|
|
165
|
+
{ path: "results.service.locations.custom.address" }
|
|
166
|
+
];
|
|
167
|
+
var TRANSFORM_PATHS_2 = [
|
|
168
|
+
{ path: "results.service.urls.servicePage" },
|
|
169
|
+
{ path: "results.service.urls.bookingPage" },
|
|
170
|
+
{ path: "results.service.urls.calendarPage" }
|
|
171
|
+
];
|
|
173
172
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
174
173
|
SortOrder2["ASC"] = "ASC";
|
|
175
174
|
SortOrder2["DESC"] = "DESC";
|
|
@@ -262,31 +261,15 @@ async function queryServicesByFilters2(options) {
|
|
|
262
261
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
263
262
|
{
|
|
264
263
|
transformFn: import_image.transformRESTImageToSDKImage,
|
|
265
|
-
paths:
|
|
266
|
-
{ path: "results.service.media.items.image" },
|
|
267
|
-
{ path: "results.service.media.mainMedia.image" },
|
|
268
|
-
{ path: "results.service.media.coverMedia.image" },
|
|
269
|
-
{ path: "results.service.staffMembers.mainMedia.image" },
|
|
270
|
-
{
|
|
271
|
-
path: "results.service.staffMemberDetails.staffMembers.mainMedia.image"
|
|
272
|
-
}
|
|
273
|
-
]
|
|
264
|
+
paths: TRANSFORM_PATHS_02
|
|
274
265
|
},
|
|
275
266
|
{
|
|
276
267
|
transformFn: import_address.transformRESTAddressToSDKAddress,
|
|
277
|
-
paths:
|
|
278
|
-
{ path: "results.service.locations.calculatedAddress" },
|
|
279
|
-
{ path: "results.service.locations.business.address" },
|
|
280
|
-
{ path: "results.service.locations.custom.address" }
|
|
281
|
-
]
|
|
268
|
+
paths: TRANSFORM_PATHS_12
|
|
282
269
|
},
|
|
283
270
|
{
|
|
284
271
|
transformFn: import_page_url_v2.transformRESTPageURLV2ToSDKPageURLV2,
|
|
285
|
-
paths:
|
|
286
|
-
{ path: "results.service.urls.servicePage" },
|
|
287
|
-
{ path: "results.service.urls.bookingPage" },
|
|
288
|
-
{ path: "results.service.urls.calendarPage" }
|
|
289
|
-
]
|
|
272
|
+
paths: TRANSFORM_PATHS_2
|
|
290
273
|
}
|
|
291
274
|
])
|
|
292
275
|
);
|