@wix/auto_sdk_bookings_catalog-search 1.0.31 → 1.0.32

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.
@@ -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
  );