@wix/bookings 1.0.309 → 1.0.310

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/build/cjs/index.js +5 -1
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.js +5 -1
  4. package/build/cjs/index.typings.js.map +1 -1
  5. package/build/cjs/meta.js +5 -1
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/cjs/src/bookings-availability-v1-slot-availability.meta.d.ts +1 -1
  8. package/build/cjs/src/bookings-availability-v1-slot-availability.meta.js +5 -1
  9. package/build/cjs/src/bookings-availability-v1-slot-availability.meta.js.map +1 -1
  10. package/build/cjs/src/bookings-availability-v1-slot-availability.public.d.ts +1 -1
  11. package/build/cjs/src/bookings-availability-v1-slot-availability.types.js +2 -2
  12. package/build/cjs/src/bookings-availability-v1-slot-availability.types.js.map +1 -1
  13. package/build/cjs/src/bookings-availability-v1-slot-availability.universal.js +7 -3
  14. package/build/cjs/src/bookings-availability-v1-slot-availability.universal.js.map +1 -1
  15. package/build/cjs/src/bookings-availability-v2-time-slot.meta.d.ts +1 -1
  16. package/build/cjs/src/bookings-availability-v2-time-slot.meta.js +5 -1
  17. package/build/cjs/src/bookings-availability-v2-time-slot.meta.js.map +1 -1
  18. package/build/cjs/src/bookings-availability-v2-time-slot.public.d.ts +3 -3
  19. package/build/cjs/src/bookings-availability-v2-time-slot.types.js +1 -1
  20. package/build/cjs/src/bookings-availability-v2-time-slot.types.js.map +1 -1
  21. package/build/cjs/src/bookings-availability-v2-time-slot.universal.js +6 -2
  22. package/build/cjs/src/bookings-availability-v2-time-slot.universal.js.map +1 -1
  23. package/build/cjs/src/bookings-calendar-v1-session.meta.d.ts +1 -1
  24. package/build/cjs/src/bookings-calendar-v1-session.meta.js +5 -1
  25. package/build/cjs/src/bookings-calendar-v1-session.meta.js.map +1 -1
  26. package/build/cjs/src/bookings-calendar-v1-session.public.d.ts +3 -3
  27. package/build/cjs/src/bookings-calendar-v1-session.types.js +12 -12
  28. package/build/cjs/src/bookings-calendar-v1-session.types.js.map +1 -1
  29. package/build/cjs/src/bookings-calendar-v1-session.universal.js +17 -13
  30. package/build/cjs/src/bookings-calendar-v1-session.universal.js.map +1 -1
  31. package/build/cjs/src/bookings-calendar-v2-external-calendar.meta.d.ts +1 -1
  32. package/build/cjs/src/bookings-calendar-v2-external-calendar.meta.js +5 -1
  33. package/build/cjs/src/bookings-calendar-v2-external-calendar.meta.js.map +1 -1
  34. package/build/cjs/src/bookings-calendar-v2-external-calendar.public.d.ts +2 -2
  35. package/build/cjs/src/bookings-calendar-v2-external-calendar.types.js +19 -19
  36. package/build/cjs/src/bookings-calendar-v2-external-calendar.types.js.map +1 -1
  37. package/build/cjs/src/bookings-calendar-v2-external-calendar.universal.js +24 -20
  38. package/build/cjs/src/bookings-calendar-v2-external-calendar.universal.js.map +1 -1
  39. package/build/cjs/src/bookings-calendar-v2-session-feed-event.types.js +13 -13
  40. package/build/cjs/src/bookings-calendar-v2-session-feed-event.types.js.map +1 -1
  41. package/build/cjs/src/bookings-calendar-v2-session-feed-event.universal.js +18 -14
  42. package/build/cjs/src/bookings-calendar-v2-session-feed-event.universal.js.map +1 -1
  43. package/build/cjs/src/bookings-calendar-v2-session-view.meta.d.ts +1 -1
  44. package/build/cjs/src/bookings-calendar-v2-session-view.meta.js +5 -1
  45. package/build/cjs/src/bookings-calendar-v2-session-view.meta.js.map +1 -1
  46. package/build/cjs/src/bookings-calendar-v2-session-view.types.js +13 -13
  47. package/build/cjs/src/bookings-calendar-v2-session-view.types.js.map +1 -1
  48. package/build/cjs/src/bookings-calendar-v2-session-view.universal.js +18 -14
  49. package/build/cjs/src/bookings-calendar-v2-session-view.universal.js.map +1 -1
  50. package/build/cjs/src/bookings-catalog-v1-resource.http.js +600 -172
  51. package/build/cjs/src/bookings-catalog-v1-resource.http.js.map +1 -1
  52. package/build/cjs/src/bookings-catalog-v1-resource.meta.d.ts +1 -1
  53. package/build/cjs/src/bookings-catalog-v1-resource.meta.js +5 -1
  54. package/build/cjs/src/bookings-catalog-v1-resource.meta.js.map +1 -1
  55. package/build/cjs/src/bookings-catalog-v1-resource.public.d.ts +1 -1
  56. package/build/cjs/src/bookings-catalog-v1-resource.types.js +13 -13
  57. package/build/cjs/src/bookings-catalog-v1-resource.types.js.map +1 -1
  58. package/build/cjs/src/bookings-catalog-v1-resource.universal.js +18 -14
  59. package/build/cjs/src/bookings-catalog-v1-resource.universal.js.map +1 -1
  60. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.meta.d.ts +1 -1
  61. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.meta.js +5 -1
  62. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.meta.js.map +1 -1
  63. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.public.d.ts +1 -1
  64. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.js +21 -21
  65. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.js.map +1 -1
  66. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.js +26 -22
  67. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.js.map +1 -1
  68. package/build/cjs/src/bookings-reader-v2-extended-booking.meta.d.ts +1 -1
  69. package/build/cjs/src/bookings-reader-v2-extended-booking.meta.js +5 -1
  70. package/build/cjs/src/bookings-reader-v2-extended-booking.meta.js.map +1 -1
  71. package/build/cjs/src/bookings-reader-v2-extended-booking.public.d.ts +1 -1
  72. package/build/cjs/src/bookings-reader-v2-extended-booking.types.js +11 -11
  73. package/build/cjs/src/bookings-reader-v2-extended-booking.types.js.map +1 -1
  74. package/build/cjs/src/bookings-reader-v2-extended-booking.universal.js +16 -12
  75. package/build/cjs/src/bookings-reader-v2-extended-booking.universal.js.map +1 -1
  76. package/build/cjs/src/bookings-services-v2-service.meta.d.ts +1 -1
  77. package/build/cjs/src/bookings-services-v2-service.meta.js +5 -1
  78. package/build/cjs/src/bookings-services-v2-service.meta.js.map +1 -1
  79. package/build/cjs/src/bookings-services-v2-service.public.d.ts +2 -2
  80. package/build/cjs/src/bookings-services-v2-service.types.js +27 -27
  81. package/build/cjs/src/bookings-services-v2-service.types.js.map +1 -1
  82. package/build/cjs/src/bookings-services-v2-service.universal.js +32 -28
  83. package/build/cjs/src/bookings-services-v2-service.universal.js.map +1 -1
  84. package/build/cjs/src/bookings-v1-category.http.js +8 -37
  85. package/build/cjs/src/bookings-v1-category.http.js.map +1 -1
  86. package/build/cjs/src/bookings-v1-category.meta.d.ts +1 -1
  87. package/build/cjs/src/bookings-v1-category.meta.js +5 -1
  88. package/build/cjs/src/bookings-v1-category.meta.js.map +1 -1
  89. package/build/cjs/src/bookings-v1-category.public.d.ts +2 -2
  90. package/build/cjs/src/bookings-v1-category.types.js +2 -2
  91. package/build/cjs/src/bookings-v1-category.types.js.map +1 -1
  92. package/build/cjs/src/bookings-v1-category.universal.js +7 -3
  93. package/build/cjs/src/bookings-v1-category.universal.js.map +1 -1
  94. package/build/cjs/src/bookings-v2-attendance.meta.d.ts +1 -1
  95. package/build/cjs/src/bookings-v2-attendance.meta.js +5 -1
  96. package/build/cjs/src/bookings-v2-attendance.meta.js.map +1 -1
  97. package/build/cjs/src/bookings-v2-attendance.public.d.ts +1 -1
  98. package/build/cjs/src/bookings-v2-attendance.types.js +2 -2
  99. package/build/cjs/src/bookings-v2-attendance.types.js.map +1 -1
  100. package/build/cjs/src/bookings-v2-attendance.universal.js +7 -3
  101. package/build/cjs/src/bookings-v2-attendance.universal.js.map +1 -1
  102. package/build/cjs/src/bookings-v2-booking.meta.d.ts +1 -1
  103. package/build/cjs/src/bookings-v2-booking.meta.js +5 -1
  104. package/build/cjs/src/bookings-v2-booking.meta.js.map +1 -1
  105. package/build/cjs/src/bookings-v2-booking.public.d.ts +9 -9
  106. package/build/cjs/src/bookings-v2-booking.types.js +12 -12
  107. package/build/cjs/src/bookings-v2-booking.types.js.map +1 -1
  108. package/build/cjs/src/bookings-v2-booking.universal.js +17 -13
  109. package/build/cjs/src/bookings-v2-booking.universal.js.map +1 -1
  110. package/build/cjs/src/bookings-v2-price-info.meta.d.ts +1 -1
  111. package/build/cjs/src/bookings-v2-price-info.meta.js +5 -1
  112. package/build/cjs/src/bookings-v2-price-info.meta.js.map +1 -1
  113. package/build/cjs/src/bookings-v2-price-info.types.js +9 -9
  114. package/build/cjs/src/bookings-v2-price-info.types.js.map +1 -1
  115. package/build/cjs/src/bookings-v2-price-info.universal.js +14 -10
  116. package/build/cjs/src/bookings-v2-price-info.universal.js.map +1 -1
  117. package/build/es/src/bookings-availability-v1-slot-availability.meta.d.ts +1 -1
  118. package/build/es/src/bookings-availability-v1-slot-availability.public.d.ts +1 -1
  119. package/build/es/src/bookings-availability-v1-slot-availability.universal.js.map +1 -1
  120. package/build/es/src/bookings-availability-v2-time-slot.meta.d.ts +1 -1
  121. package/build/es/src/bookings-availability-v2-time-slot.public.d.ts +3 -3
  122. package/build/es/src/bookings-availability-v2-time-slot.universal.js.map +1 -1
  123. package/build/es/src/bookings-calendar-v1-session.meta.d.ts +1 -1
  124. package/build/es/src/bookings-calendar-v1-session.public.d.ts +3 -3
  125. package/build/es/src/bookings-calendar-v1-session.universal.js.map +1 -1
  126. package/build/es/src/bookings-calendar-v2-external-calendar.meta.d.ts +1 -1
  127. package/build/es/src/bookings-calendar-v2-external-calendar.public.d.ts +2 -2
  128. package/build/es/src/bookings-calendar-v2-external-calendar.universal.js.map +1 -1
  129. package/build/es/src/bookings-calendar-v2-session-feed-event.universal.js.map +1 -1
  130. package/build/es/src/bookings-calendar-v2-session-view.meta.d.ts +1 -1
  131. package/build/es/src/bookings-calendar-v2-session-view.universal.js.map +1 -1
  132. package/build/es/src/bookings-catalog-v1-resource.http.js +600 -172
  133. package/build/es/src/bookings-catalog-v1-resource.http.js.map +1 -1
  134. package/build/es/src/bookings-catalog-v1-resource.meta.d.ts +1 -1
  135. package/build/es/src/bookings-catalog-v1-resource.public.d.ts +1 -1
  136. package/build/es/src/bookings-catalog-v1-resource.universal.js.map +1 -1
  137. package/build/es/src/bookings-catalog-v1-service-options-and-variants.meta.d.ts +1 -1
  138. package/build/es/src/bookings-catalog-v1-service-options-and-variants.public.d.ts +1 -1
  139. package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.js.map +1 -1
  140. package/build/es/src/bookings-reader-v2-extended-booking.meta.d.ts +1 -1
  141. package/build/es/src/bookings-reader-v2-extended-booking.public.d.ts +1 -1
  142. package/build/es/src/bookings-reader-v2-extended-booking.universal.js.map +1 -1
  143. package/build/es/src/bookings-services-v2-service.meta.d.ts +1 -1
  144. package/build/es/src/bookings-services-v2-service.public.d.ts +2 -2
  145. package/build/es/src/bookings-services-v2-service.universal.js.map +1 -1
  146. package/build/es/src/bookings-v1-category.http.js +8 -37
  147. package/build/es/src/bookings-v1-category.http.js.map +1 -1
  148. package/build/es/src/bookings-v1-category.meta.d.ts +1 -1
  149. package/build/es/src/bookings-v1-category.public.d.ts +2 -2
  150. package/build/es/src/bookings-v1-category.universal.js.map +1 -1
  151. package/build/es/src/bookings-v2-attendance.meta.d.ts +1 -1
  152. package/build/es/src/bookings-v2-attendance.public.d.ts +1 -1
  153. package/build/es/src/bookings-v2-attendance.universal.js.map +1 -1
  154. package/build/es/src/bookings-v2-booking.meta.d.ts +1 -1
  155. package/build/es/src/bookings-v2-booking.public.d.ts +9 -9
  156. package/build/es/src/bookings-v2-booking.universal.js.map +1 -1
  157. package/build/es/src/bookings-v2-price-info.meta.d.ts +1 -1
  158. package/build/es/src/bookings-v2-price-info.universal.js.map +1 -1
  159. package/package.json +7 -3
@@ -2,84 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports._delete = exports.updateSchedule = exports.update = exports.create = void 0;
4
4
  const metro_runtime_1 = require("@wix/metro-runtime");
5
- const ambassador_1 = require("@wix/metro-runtime/ambassador");
5
+ const float_1 = require("@wix/sdk-runtime/transformations/float");
6
+ const float_2 = require("@wix/sdk-runtime/transformations/float");
7
+ const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
8
+ const timestamp_2 = require("@wix/sdk-runtime/transformations/timestamp");
9
+ const field_mask_1 = require("@wix/sdk-runtime/transformations/field-mask");
10
+ const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
6
11
  const metro_runtime_2 = require("@wix/metro-runtime");
7
- const _address = { geocode: '_addressLocation' };
8
- const _addressLocation = {
9
- latitude: 'google.protobuf.DoubleValue',
10
- longitude: 'google.protobuf.DoubleValue',
11
- };
12
- const _availability = {
13
- start: 'google.protobuf.Timestamp',
14
- end: 'google.protobuf.Timestamp',
15
- locations: '_location',
16
- };
17
- const _batchRequest = {
18
- createRequests: '_createScheduleRequest',
19
- updateRequests: '_updateScheduleRequest',
20
- cancelRequests: '_cancelScheduleRequest',
21
- };
22
- const _batchResponse = {
23
- created: '_schedule',
24
- updated: '_schedule',
25
- cancelled: '_schedule',
26
- };
27
- const _cancelScheduleRequest = { from: 'google.protobuf.Timestamp' };
28
- const _createResourceRequest = {
29
- resource: '_resource',
30
- schedules: '_schedule',
31
- };
32
- const _createResourceResponse = { resource: '_resource' };
33
- const _createScheduleRequest = { schedule: '_schedule' };
34
- const _deleteResourceRequest = {};
35
- const _deleteResourceResponse = {};
36
- const _image = { urlExpirationDate: 'google.protobuf.Timestamp' };
37
- const _location = {
38
- customAddress: '_address',
39
- businessLocation: '_locationsLocation',
40
- };
41
- const _locationsAddress = { geocode: '_locationsAddressLocation' };
42
- const _locationsAddressLocation = {
43
- latitude: 'google.protobuf.DoubleValue',
44
- longitude: 'google.protobuf.DoubleValue',
45
- };
46
- const _locationsLocation = { address: '_locationsAddress' };
47
- const _recurringInterval = {
48
- start: 'google.protobuf.Timestamp',
49
- end: 'google.protobuf.Timestamp',
50
- };
51
- const _resource = {
52
- images: '_image',
53
- schedules: '_schedule',
54
- eventsSchedule: '_schedule',
55
- };
56
- const _resourceUpdateScheduleRequest = {
57
- fieldmask: 'google.protobuf.FieldMask',
58
- schedule: '_schedule',
59
- };
60
- const _schedule = {
61
- firstSessionStart: 'google.protobuf.Timestamp',
62
- lastSessionEnd: 'google.protobuf.Timestamp',
63
- created: 'google.protobuf.Timestamp',
64
- updated: 'google.protobuf.Timestamp',
65
- intervals: '_recurringInterval',
66
- location: '_location',
67
- availability: '_availability',
68
- };
69
- const _updateResourceRequest = {
70
- fieldMask: 'google.protobuf.FieldMask',
71
- resource: '_resource',
72
- scheduleActions: '_batchRequest',
73
- };
74
- const _updateResourceResponse = {
75
- resource: '_resource',
76
- schedules: '_batchResponse',
77
- };
78
- const _updateScheduleRequest = {
79
- fieldMask: 'google.protobuf.FieldMask',
80
- schedule: '_schedule',
81
- };
82
- const _updateScheduleResponse = { schedule: '_schedule' };
83
12
  function resolveComWixpressBookingsResourcesCoreApiV1ResourceResourcesServiceUrl(opts) {
84
13
  const domainToMappings = {
85
14
  'api._api_base_domain_': [
@@ -191,45 +120,198 @@ function resolveComWixpressBookingsResourcesCoreApiV1ResourceResourcesServiceUrl
191
120
  * >- You can have up to 135 active resources and an additional 135 deleted resources.
192
121
  */
193
122
  function create(payload) {
194
- const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_createResourceRequest, {
195
- _address,
196
- _addressLocation,
197
- _availability,
198
- _image,
199
- _location,
200
- _locationsAddress,
201
- _locationsAddressLocation,
202
- _locationsLocation,
203
- _recurringInterval,
204
- _resource,
205
- _schedule,
206
- });
207
- const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_createResourceResponse, {
208
- _address,
209
- _addressLocation,
210
- _availability,
211
- _image,
212
- _location,
213
- _locationsAddress,
214
- _locationsAddressLocation,
215
- _locationsLocation,
216
- _recurringInterval,
217
- _resource,
218
- _schedule,
219
- });
220
123
  function __create({ host }) {
221
- const serializedData = toReq(payload);
124
+ const serializedData = (0, transform_paths_1.transformPaths)(payload, [
125
+ {
126
+ transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
127
+ paths: [
128
+ { path: 'resource.images.urlExpirationDate' },
129
+ { path: 'resource.schedules.firstSessionStart' },
130
+ { path: 'resource.schedules.lastSessionEnd' },
131
+ { path: 'resource.schedules.created' },
132
+ { path: 'resource.schedules.updated' },
133
+ { path: 'resource.schedules.intervals.start' },
134
+ { path: 'resource.schedules.intervals.end' },
135
+ { path: 'resource.schedules.availability.start' },
136
+ { path: 'resource.schedules.availability.end' },
137
+ { path: 'resource.eventsSchedule.firstSessionStart' },
138
+ { path: 'resource.eventsSchedule.lastSessionEnd' },
139
+ { path: 'resource.eventsSchedule.created' },
140
+ { path: 'resource.eventsSchedule.updated' },
141
+ { path: 'resource.eventsSchedule.intervals.start' },
142
+ { path: 'resource.eventsSchedule.intervals.end' },
143
+ { path: 'resource.eventsSchedule.availability.start' },
144
+ { path: 'resource.eventsSchedule.availability.end' },
145
+ { path: 'schedules.firstSessionStart' },
146
+ { path: 'schedules.lastSessionEnd' },
147
+ { path: 'schedules.created' },
148
+ { path: 'schedules.updated' },
149
+ { path: 'schedules.intervals.start' },
150
+ { path: 'schedules.intervals.end' },
151
+ { path: 'schedules.availability.start' },
152
+ { path: 'schedules.availability.end' },
153
+ ],
154
+ },
155
+ {
156
+ transformFn: float_1.transformSDKFloatToRESTFloat,
157
+ paths: [
158
+ {
159
+ path: 'resource.schedules.location.customAddress.geocode.latitude',
160
+ },
161
+ {
162
+ path: 'resource.schedules.location.customAddress.geocode.longitude',
163
+ },
164
+ {
165
+ path: 'resource.schedules.location.businessLocation.address.geocode.latitude',
166
+ },
167
+ {
168
+ path: 'resource.schedules.location.businessLocation.address.geocode.longitude',
169
+ },
170
+ {
171
+ path: 'resource.schedules.availability.locations.customAddress.geocode.latitude',
172
+ },
173
+ {
174
+ path: 'resource.schedules.availability.locations.customAddress.geocode.longitude',
175
+ },
176
+ {
177
+ path: 'resource.schedules.availability.locations.businessLocation.address.geocode.latitude',
178
+ },
179
+ {
180
+ path: 'resource.schedules.availability.locations.businessLocation.address.geocode.longitude',
181
+ },
182
+ {
183
+ path: 'resource.eventsSchedule.location.customAddress.geocode.latitude',
184
+ },
185
+ {
186
+ path: 'resource.eventsSchedule.location.customAddress.geocode.longitude',
187
+ },
188
+ {
189
+ path: 'resource.eventsSchedule.location.businessLocation.address.geocode.latitude',
190
+ },
191
+ {
192
+ path: 'resource.eventsSchedule.location.businessLocation.address.geocode.longitude',
193
+ },
194
+ {
195
+ path: 'resource.eventsSchedule.availability.locations.customAddress.geocode.latitude',
196
+ },
197
+ {
198
+ path: 'resource.eventsSchedule.availability.locations.customAddress.geocode.longitude',
199
+ },
200
+ {
201
+ path: 'resource.eventsSchedule.availability.locations.businessLocation.address.geocode.latitude',
202
+ },
203
+ {
204
+ path: 'resource.eventsSchedule.availability.locations.businessLocation.address.geocode.longitude',
205
+ },
206
+ { path: 'schedules.location.customAddress.geocode.latitude' },
207
+ { path: 'schedules.location.customAddress.geocode.longitude' },
208
+ {
209
+ path: 'schedules.location.businessLocation.address.geocode.latitude',
210
+ },
211
+ {
212
+ path: 'schedules.location.businessLocation.address.geocode.longitude',
213
+ },
214
+ {
215
+ path: 'schedules.availability.locations.customAddress.geocode.latitude',
216
+ },
217
+ {
218
+ path: 'schedules.availability.locations.customAddress.geocode.longitude',
219
+ },
220
+ {
221
+ path: 'schedules.availability.locations.businessLocation.address.geocode.latitude',
222
+ },
223
+ {
224
+ path: 'schedules.availability.locations.businessLocation.address.geocode.longitude',
225
+ },
226
+ ],
227
+ },
228
+ ]);
222
229
  const metadata = {
223
230
  entityFqdn: 'wix.bookings.catalog.v1.resource',
224
231
  method: 'POST',
225
232
  methodFqn: 'com.wixpress.bookings.resources.core.api.v1.resource.ResourcesService.Create',
226
233
  url: resolveComWixpressBookingsResourcesCoreApiV1ResourceResourcesServiceUrl({ protoPath: '/v1/resources', data: serializedData, host }),
227
234
  data: serializedData,
228
- transformResponse: fromRes,
235
+ transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
236
+ {
237
+ transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
238
+ paths: [
239
+ { path: 'resource.images.urlExpirationDate' },
240
+ { path: 'resource.schedules.firstSessionStart' },
241
+ { path: 'resource.schedules.lastSessionEnd' },
242
+ { path: 'resource.schedules.created' },
243
+ { path: 'resource.schedules.updated' },
244
+ { path: 'resource.schedules.intervals.start' },
245
+ { path: 'resource.schedules.intervals.end' },
246
+ { path: 'resource.schedules.availability.start' },
247
+ { path: 'resource.schedules.availability.end' },
248
+ { path: 'resource.eventsSchedule.firstSessionStart' },
249
+ { path: 'resource.eventsSchedule.lastSessionEnd' },
250
+ { path: 'resource.eventsSchedule.created' },
251
+ { path: 'resource.eventsSchedule.updated' },
252
+ { path: 'resource.eventsSchedule.intervals.start' },
253
+ { path: 'resource.eventsSchedule.intervals.end' },
254
+ { path: 'resource.eventsSchedule.availability.start' },
255
+ { path: 'resource.eventsSchedule.availability.end' },
256
+ ],
257
+ },
258
+ {
259
+ transformFn: float_2.transformRESTFloatToSDKFloat,
260
+ paths: [
261
+ {
262
+ path: 'resource.schedules.location.customAddress.geocode.latitude',
263
+ },
264
+ {
265
+ path: 'resource.schedules.location.customAddress.geocode.longitude',
266
+ },
267
+ {
268
+ path: 'resource.schedules.location.businessLocation.address.geocode.latitude',
269
+ },
270
+ {
271
+ path: 'resource.schedules.location.businessLocation.address.geocode.longitude',
272
+ },
273
+ {
274
+ path: 'resource.schedules.availability.locations.customAddress.geocode.latitude',
275
+ },
276
+ {
277
+ path: 'resource.schedules.availability.locations.customAddress.geocode.longitude',
278
+ },
279
+ {
280
+ path: 'resource.schedules.availability.locations.businessLocation.address.geocode.latitude',
281
+ },
282
+ {
283
+ path: 'resource.schedules.availability.locations.businessLocation.address.geocode.longitude',
284
+ },
285
+ {
286
+ path: 'resource.eventsSchedule.location.customAddress.geocode.latitude',
287
+ },
288
+ {
289
+ path: 'resource.eventsSchedule.location.customAddress.geocode.longitude',
290
+ },
291
+ {
292
+ path: 'resource.eventsSchedule.location.businessLocation.address.geocode.latitude',
293
+ },
294
+ {
295
+ path: 'resource.eventsSchedule.location.businessLocation.address.geocode.longitude',
296
+ },
297
+ {
298
+ path: 'resource.eventsSchedule.availability.locations.customAddress.geocode.latitude',
299
+ },
300
+ {
301
+ path: 'resource.eventsSchedule.availability.locations.customAddress.geocode.longitude',
302
+ },
303
+ {
304
+ path: 'resource.eventsSchedule.availability.locations.businessLocation.address.geocode.latitude',
305
+ },
306
+ {
307
+ path: 'resource.eventsSchedule.availability.locations.businessLocation.address.geocode.longitude',
308
+ },
309
+ ],
310
+ },
311
+ ]),
229
312
  };
230
313
  return metadata;
231
314
  }
232
- __create.fromReq = fromReq;
233
315
  return __create;
234
316
  }
235
317
  exports.create = create;
@@ -244,50 +326,342 @@ exports.create = create;
244
326
  * > When updating a resource you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"business"` and `"staff"`.
245
327
  */
246
328
  function update(payload) {
247
- const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_updateResourceRequest, {
248
- _address,
249
- _addressLocation,
250
- _availability,
251
- _batchRequest,
252
- _cancelScheduleRequest,
253
- _createScheduleRequest,
254
- _image,
255
- _location,
256
- _locationsAddress,
257
- _locationsAddressLocation,
258
- _locationsLocation,
259
- _recurringInterval,
260
- _resource,
261
- _schedule,
262
- _updateScheduleRequest,
263
- });
264
- const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_updateResourceResponse, {
265
- _address,
266
- _addressLocation,
267
- _availability,
268
- _batchResponse,
269
- _image,
270
- _location,
271
- _locationsAddress,
272
- _locationsAddressLocation,
273
- _locationsLocation,
274
- _recurringInterval,
275
- _resource,
276
- _schedule,
277
- });
278
329
  function __update({ host }) {
279
- const serializedData = toReq(payload);
330
+ const serializedData = (0, transform_paths_1.transformPaths)(payload, [
331
+ {
332
+ transformFn: field_mask_1.transformSDKFieldMaskToRESTFieldMask,
333
+ paths: [
334
+ { path: 'fieldMask' },
335
+ { path: 'scheduleActions.updateRequests.fieldMask' },
336
+ ],
337
+ },
338
+ {
339
+ transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
340
+ paths: [
341
+ { path: 'resource.images.urlExpirationDate' },
342
+ { path: 'resource.schedules.firstSessionStart' },
343
+ { path: 'resource.schedules.lastSessionEnd' },
344
+ { path: 'resource.schedules.created' },
345
+ { path: 'resource.schedules.updated' },
346
+ { path: 'resource.schedules.intervals.start' },
347
+ { path: 'resource.schedules.intervals.end' },
348
+ { path: 'resource.schedules.availability.start' },
349
+ { path: 'resource.schedules.availability.end' },
350
+ { path: 'resource.eventsSchedule.firstSessionStart' },
351
+ { path: 'resource.eventsSchedule.lastSessionEnd' },
352
+ { path: 'resource.eventsSchedule.created' },
353
+ { path: 'resource.eventsSchedule.updated' },
354
+ { path: 'resource.eventsSchedule.intervals.start' },
355
+ { path: 'resource.eventsSchedule.intervals.end' },
356
+ { path: 'resource.eventsSchedule.availability.start' },
357
+ { path: 'resource.eventsSchedule.availability.end' },
358
+ { path: 'scheduleActions.createRequests.schedule.firstSessionStart' },
359
+ { path: 'scheduleActions.createRequests.schedule.lastSessionEnd' },
360
+ { path: 'scheduleActions.createRequests.schedule.created' },
361
+ { path: 'scheduleActions.createRequests.schedule.updated' },
362
+ { path: 'scheduleActions.createRequests.schedule.intervals.start' },
363
+ { path: 'scheduleActions.createRequests.schedule.intervals.end' },
364
+ {
365
+ path: 'scheduleActions.createRequests.schedule.availability.start',
366
+ },
367
+ { path: 'scheduleActions.createRequests.schedule.availability.end' },
368
+ { path: 'scheduleActions.updateRequests.schedule.firstSessionStart' },
369
+ { path: 'scheduleActions.updateRequests.schedule.lastSessionEnd' },
370
+ { path: 'scheduleActions.updateRequests.schedule.created' },
371
+ { path: 'scheduleActions.updateRequests.schedule.updated' },
372
+ { path: 'scheduleActions.updateRequests.schedule.intervals.start' },
373
+ { path: 'scheduleActions.updateRequests.schedule.intervals.end' },
374
+ {
375
+ path: 'scheduleActions.updateRequests.schedule.availability.start',
376
+ },
377
+ { path: 'scheduleActions.updateRequests.schedule.availability.end' },
378
+ { path: 'scheduleActions.cancelRequests.from' },
379
+ ],
380
+ },
381
+ {
382
+ transformFn: float_1.transformSDKFloatToRESTFloat,
383
+ paths: [
384
+ {
385
+ path: 'resource.schedules.location.customAddress.geocode.latitude',
386
+ },
387
+ {
388
+ path: 'resource.schedules.location.customAddress.geocode.longitude',
389
+ },
390
+ {
391
+ path: 'resource.schedules.location.businessLocation.address.geocode.latitude',
392
+ },
393
+ {
394
+ path: 'resource.schedules.location.businessLocation.address.geocode.longitude',
395
+ },
396
+ {
397
+ path: 'resource.schedules.availability.locations.customAddress.geocode.latitude',
398
+ },
399
+ {
400
+ path: 'resource.schedules.availability.locations.customAddress.geocode.longitude',
401
+ },
402
+ {
403
+ path: 'resource.schedules.availability.locations.businessLocation.address.geocode.latitude',
404
+ },
405
+ {
406
+ path: 'resource.schedules.availability.locations.businessLocation.address.geocode.longitude',
407
+ },
408
+ {
409
+ path: 'resource.eventsSchedule.location.customAddress.geocode.latitude',
410
+ },
411
+ {
412
+ path: 'resource.eventsSchedule.location.customAddress.geocode.longitude',
413
+ },
414
+ {
415
+ path: 'resource.eventsSchedule.location.businessLocation.address.geocode.latitude',
416
+ },
417
+ {
418
+ path: 'resource.eventsSchedule.location.businessLocation.address.geocode.longitude',
419
+ },
420
+ {
421
+ path: 'resource.eventsSchedule.availability.locations.customAddress.geocode.latitude',
422
+ },
423
+ {
424
+ path: 'resource.eventsSchedule.availability.locations.customAddress.geocode.longitude',
425
+ },
426
+ {
427
+ path: 'resource.eventsSchedule.availability.locations.businessLocation.address.geocode.latitude',
428
+ },
429
+ {
430
+ path: 'resource.eventsSchedule.availability.locations.businessLocation.address.geocode.longitude',
431
+ },
432
+ {
433
+ path: 'scheduleActions.createRequests.schedule.location.customAddress.geocode.latitude',
434
+ },
435
+ {
436
+ path: 'scheduleActions.createRequests.schedule.location.customAddress.geocode.longitude',
437
+ },
438
+ {
439
+ path: 'scheduleActions.createRequests.schedule.location.businessLocation.address.geocode.latitude',
440
+ },
441
+ {
442
+ path: 'scheduleActions.createRequests.schedule.location.businessLocation.address.geocode.longitude',
443
+ },
444
+ {
445
+ path: 'scheduleActions.createRequests.schedule.availability.locations.customAddress.geocode.latitude',
446
+ },
447
+ {
448
+ path: 'scheduleActions.createRequests.schedule.availability.locations.customAddress.geocode.longitude',
449
+ },
450
+ {
451
+ path: 'scheduleActions.createRequests.schedule.availability.locations.businessLocation.address.geocode.latitude',
452
+ },
453
+ {
454
+ path: 'scheduleActions.createRequests.schedule.availability.locations.businessLocation.address.geocode.longitude',
455
+ },
456
+ {
457
+ path: 'scheduleActions.updateRequests.schedule.location.customAddress.geocode.latitude',
458
+ },
459
+ {
460
+ path: 'scheduleActions.updateRequests.schedule.location.customAddress.geocode.longitude',
461
+ },
462
+ {
463
+ path: 'scheduleActions.updateRequests.schedule.location.businessLocation.address.geocode.latitude',
464
+ },
465
+ {
466
+ path: 'scheduleActions.updateRequests.schedule.location.businessLocation.address.geocode.longitude',
467
+ },
468
+ {
469
+ path: 'scheduleActions.updateRequests.schedule.availability.locations.customAddress.geocode.latitude',
470
+ },
471
+ {
472
+ path: 'scheduleActions.updateRequests.schedule.availability.locations.customAddress.geocode.longitude',
473
+ },
474
+ {
475
+ path: 'scheduleActions.updateRequests.schedule.availability.locations.businessLocation.address.geocode.latitude',
476
+ },
477
+ {
478
+ path: 'scheduleActions.updateRequests.schedule.availability.locations.businessLocation.address.geocode.longitude',
479
+ },
480
+ ],
481
+ },
482
+ ]);
280
483
  const metadata = {
281
484
  entityFqdn: 'wix.bookings.catalog.v1.resource',
282
485
  method: 'PATCH',
283
486
  methodFqn: 'com.wixpress.bookings.resources.core.api.v1.resource.ResourcesService.Update',
284
487
  url: resolveComWixpressBookingsResourcesCoreApiV1ResourceResourcesServiceUrl({ protoPath: '/v1/resources/{resource.id}', data: serializedData, host }),
285
488
  data: serializedData,
286
- transformResponse: fromRes,
489
+ transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
490
+ {
491
+ transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
492
+ paths: [
493
+ { path: 'resource.images.urlExpirationDate' },
494
+ { path: 'resource.schedules.firstSessionStart' },
495
+ { path: 'resource.schedules.lastSessionEnd' },
496
+ { path: 'resource.schedules.created' },
497
+ { path: 'resource.schedules.updated' },
498
+ { path: 'resource.schedules.intervals.start' },
499
+ { path: 'resource.schedules.intervals.end' },
500
+ { path: 'resource.schedules.availability.start' },
501
+ { path: 'resource.schedules.availability.end' },
502
+ { path: 'resource.eventsSchedule.firstSessionStart' },
503
+ { path: 'resource.eventsSchedule.lastSessionEnd' },
504
+ { path: 'resource.eventsSchedule.created' },
505
+ { path: 'resource.eventsSchedule.updated' },
506
+ { path: 'resource.eventsSchedule.intervals.start' },
507
+ { path: 'resource.eventsSchedule.intervals.end' },
508
+ { path: 'resource.eventsSchedule.availability.start' },
509
+ { path: 'resource.eventsSchedule.availability.end' },
510
+ { path: 'schedules.created.firstSessionStart' },
511
+ { path: 'schedules.created.lastSessionEnd' },
512
+ { path: 'schedules.created.created' },
513
+ { path: 'schedules.created.updated' },
514
+ { path: 'schedules.created.intervals.start' },
515
+ { path: 'schedules.created.intervals.end' },
516
+ { path: 'schedules.created.availability.start' },
517
+ { path: 'schedules.created.availability.end' },
518
+ { path: 'schedules.updated.firstSessionStart' },
519
+ { path: 'schedules.updated.lastSessionEnd' },
520
+ { path: 'schedules.updated.created' },
521
+ { path: 'schedules.updated.updated' },
522
+ { path: 'schedules.updated.intervals.start' },
523
+ { path: 'schedules.updated.intervals.end' },
524
+ { path: 'schedules.updated.availability.start' },
525
+ { path: 'schedules.updated.availability.end' },
526
+ { path: 'schedules.cancelled.firstSessionStart' },
527
+ { path: 'schedules.cancelled.lastSessionEnd' },
528
+ { path: 'schedules.cancelled.created' },
529
+ { path: 'schedules.cancelled.updated' },
530
+ { path: 'schedules.cancelled.intervals.start' },
531
+ { path: 'schedules.cancelled.intervals.end' },
532
+ { path: 'schedules.cancelled.availability.start' },
533
+ { path: 'schedules.cancelled.availability.end' },
534
+ ],
535
+ },
536
+ {
537
+ transformFn: float_2.transformRESTFloatToSDKFloat,
538
+ paths: [
539
+ {
540
+ path: 'resource.schedules.location.customAddress.geocode.latitude',
541
+ },
542
+ {
543
+ path: 'resource.schedules.location.customAddress.geocode.longitude',
544
+ },
545
+ {
546
+ path: 'resource.schedules.location.businessLocation.address.geocode.latitude',
547
+ },
548
+ {
549
+ path: 'resource.schedules.location.businessLocation.address.geocode.longitude',
550
+ },
551
+ {
552
+ path: 'resource.schedules.availability.locations.customAddress.geocode.latitude',
553
+ },
554
+ {
555
+ path: 'resource.schedules.availability.locations.customAddress.geocode.longitude',
556
+ },
557
+ {
558
+ path: 'resource.schedules.availability.locations.businessLocation.address.geocode.latitude',
559
+ },
560
+ {
561
+ path: 'resource.schedules.availability.locations.businessLocation.address.geocode.longitude',
562
+ },
563
+ {
564
+ path: 'resource.eventsSchedule.location.customAddress.geocode.latitude',
565
+ },
566
+ {
567
+ path: 'resource.eventsSchedule.location.customAddress.geocode.longitude',
568
+ },
569
+ {
570
+ path: 'resource.eventsSchedule.location.businessLocation.address.geocode.latitude',
571
+ },
572
+ {
573
+ path: 'resource.eventsSchedule.location.businessLocation.address.geocode.longitude',
574
+ },
575
+ {
576
+ path: 'resource.eventsSchedule.availability.locations.customAddress.geocode.latitude',
577
+ },
578
+ {
579
+ path: 'resource.eventsSchedule.availability.locations.customAddress.geocode.longitude',
580
+ },
581
+ {
582
+ path: 'resource.eventsSchedule.availability.locations.businessLocation.address.geocode.latitude',
583
+ },
584
+ {
585
+ path: 'resource.eventsSchedule.availability.locations.businessLocation.address.geocode.longitude',
586
+ },
587
+ {
588
+ path: 'schedules.created.location.customAddress.geocode.latitude',
589
+ },
590
+ {
591
+ path: 'schedules.created.location.customAddress.geocode.longitude',
592
+ },
593
+ {
594
+ path: 'schedules.created.location.businessLocation.address.geocode.latitude',
595
+ },
596
+ {
597
+ path: 'schedules.created.location.businessLocation.address.geocode.longitude',
598
+ },
599
+ {
600
+ path: 'schedules.created.availability.locations.customAddress.geocode.latitude',
601
+ },
602
+ {
603
+ path: 'schedules.created.availability.locations.customAddress.geocode.longitude',
604
+ },
605
+ {
606
+ path: 'schedules.created.availability.locations.businessLocation.address.geocode.latitude',
607
+ },
608
+ {
609
+ path: 'schedules.created.availability.locations.businessLocation.address.geocode.longitude',
610
+ },
611
+ {
612
+ path: 'schedules.updated.location.customAddress.geocode.latitude',
613
+ },
614
+ {
615
+ path: 'schedules.updated.location.customAddress.geocode.longitude',
616
+ },
617
+ {
618
+ path: 'schedules.updated.location.businessLocation.address.geocode.latitude',
619
+ },
620
+ {
621
+ path: 'schedules.updated.location.businessLocation.address.geocode.longitude',
622
+ },
623
+ {
624
+ path: 'schedules.updated.availability.locations.customAddress.geocode.latitude',
625
+ },
626
+ {
627
+ path: 'schedules.updated.availability.locations.customAddress.geocode.longitude',
628
+ },
629
+ {
630
+ path: 'schedules.updated.availability.locations.businessLocation.address.geocode.latitude',
631
+ },
632
+ {
633
+ path: 'schedules.updated.availability.locations.businessLocation.address.geocode.longitude',
634
+ },
635
+ {
636
+ path: 'schedules.cancelled.location.customAddress.geocode.latitude',
637
+ },
638
+ {
639
+ path: 'schedules.cancelled.location.customAddress.geocode.longitude',
640
+ },
641
+ {
642
+ path: 'schedules.cancelled.location.businessLocation.address.geocode.latitude',
643
+ },
644
+ {
645
+ path: 'schedules.cancelled.location.businessLocation.address.geocode.longitude',
646
+ },
647
+ {
648
+ path: 'schedules.cancelled.availability.locations.customAddress.geocode.latitude',
649
+ },
650
+ {
651
+ path: 'schedules.cancelled.availability.locations.customAddress.geocode.longitude',
652
+ },
653
+ {
654
+ path: 'schedules.cancelled.availability.locations.businessLocation.address.geocode.latitude',
655
+ },
656
+ {
657
+ path: 'schedules.cancelled.availability.locations.businessLocation.address.geocode.longitude',
658
+ },
659
+ ],
660
+ },
661
+ ]),
287
662
  };
288
663
  return metadata;
289
664
  }
290
- __update.fromReq = fromReq;
291
665
  return __update;
292
666
  }
293
667
  exports.update = update;
@@ -302,30 +676,51 @@ exports.update = update;
302
676
  * >- When updating a resource's schedule you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"INDIVIDUAL"`, `"GROUP"`, and `"COURSE"`.
303
677
  */
304
678
  function updateSchedule(payload) {
305
- const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_resourceUpdateScheduleRequest, {
306
- _address,
307
- _addressLocation,
308
- _availability,
309
- _location,
310
- _locationsAddress,
311
- _locationsAddressLocation,
312
- _locationsLocation,
313
- _recurringInterval,
314
- _schedule,
315
- });
316
- const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_updateScheduleResponse, {
317
- _address,
318
- _addressLocation,
319
- _availability,
320
- _location,
321
- _locationsAddress,
322
- _locationsAddressLocation,
323
- _locationsLocation,
324
- _recurringInterval,
325
- _schedule,
326
- });
327
679
  function __updateSchedule({ host }) {
328
- const serializedData = toReq(payload);
680
+ const serializedData = (0, transform_paths_1.transformPaths)(payload, [
681
+ {
682
+ transformFn: field_mask_1.transformSDKFieldMaskToRESTFieldMask,
683
+ paths: [{ path: 'fieldmask' }],
684
+ },
685
+ {
686
+ transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
687
+ paths: [
688
+ { path: 'schedule.firstSessionStart' },
689
+ { path: 'schedule.lastSessionEnd' },
690
+ { path: 'schedule.created' },
691
+ { path: 'schedule.updated' },
692
+ { path: 'schedule.intervals.start' },
693
+ { path: 'schedule.intervals.end' },
694
+ { path: 'schedule.availability.start' },
695
+ { path: 'schedule.availability.end' },
696
+ ],
697
+ },
698
+ {
699
+ transformFn: float_1.transformSDKFloatToRESTFloat,
700
+ paths: [
701
+ { path: 'schedule.location.customAddress.geocode.latitude' },
702
+ { path: 'schedule.location.customAddress.geocode.longitude' },
703
+ {
704
+ path: 'schedule.location.businessLocation.address.geocode.latitude',
705
+ },
706
+ {
707
+ path: 'schedule.location.businessLocation.address.geocode.longitude',
708
+ },
709
+ {
710
+ path: 'schedule.availability.locations.customAddress.geocode.latitude',
711
+ },
712
+ {
713
+ path: 'schedule.availability.locations.customAddress.geocode.longitude',
714
+ },
715
+ {
716
+ path: 'schedule.availability.locations.businessLocation.address.geocode.latitude',
717
+ },
718
+ {
719
+ path: 'schedule.availability.locations.businessLocation.address.geocode.longitude',
720
+ },
721
+ ],
722
+ },
723
+ ]);
329
724
  const metadata = {
330
725
  entityFqdn: 'wix.bookings.catalog.v1.resource',
331
726
  method: 'PATCH',
@@ -336,11 +731,49 @@ function updateSchedule(payload) {
336
731
  host,
337
732
  }),
338
733
  data: serializedData,
339
- transformResponse: fromRes,
734
+ transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
735
+ {
736
+ transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
737
+ paths: [
738
+ { path: 'schedule.firstSessionStart' },
739
+ { path: 'schedule.lastSessionEnd' },
740
+ { path: 'schedule.created' },
741
+ { path: 'schedule.updated' },
742
+ { path: 'schedule.intervals.start' },
743
+ { path: 'schedule.intervals.end' },
744
+ { path: 'schedule.availability.start' },
745
+ { path: 'schedule.availability.end' },
746
+ ],
747
+ },
748
+ {
749
+ transformFn: float_2.transformRESTFloatToSDKFloat,
750
+ paths: [
751
+ { path: 'schedule.location.customAddress.geocode.latitude' },
752
+ { path: 'schedule.location.customAddress.geocode.longitude' },
753
+ {
754
+ path: 'schedule.location.businessLocation.address.geocode.latitude',
755
+ },
756
+ {
757
+ path: 'schedule.location.businessLocation.address.geocode.longitude',
758
+ },
759
+ {
760
+ path: 'schedule.availability.locations.customAddress.geocode.latitude',
761
+ },
762
+ {
763
+ path: 'schedule.availability.locations.customAddress.geocode.longitude',
764
+ },
765
+ {
766
+ path: 'schedule.availability.locations.businessLocation.address.geocode.latitude',
767
+ },
768
+ {
769
+ path: 'schedule.availability.locations.businessLocation.address.geocode.longitude',
770
+ },
771
+ ],
772
+ },
773
+ ]),
340
774
  };
341
775
  return metadata;
342
776
  }
343
- __updateSchedule.fromReq = fromReq;
344
777
  return __updateSchedule;
345
778
  }
346
779
  exports.updateSchedule = updateSchedule;
@@ -360,21 +793,16 @@ exports.updateSchedule = updateSchedule;
360
793
  * >- You can have up to 135 active resources and an additional 135 deleted resources.
361
794
  */
362
795
  function _delete(payload) {
363
- const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_deleteResourceRequest, {});
364
- const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_deleteResourceResponse, {});
365
796
  function ___delete({ host }) {
366
- const serializedData = toReq(payload);
367
797
  const metadata = {
368
798
  entityFqdn: 'wix.bookings.catalog.v1.resource',
369
799
  method: 'DELETE',
370
800
  methodFqn: 'com.wixpress.bookings.resources.core.api.v1.resource.ResourcesService._delete',
371
- url: resolveComWixpressBookingsResourcesCoreApiV1ResourceResourcesServiceUrl({ protoPath: '/v1/resources/{id}', data: serializedData, host }),
372
- params: (0, metro_runtime_1.toURLSearchParams)(serializedData),
373
- transformResponse: fromRes,
801
+ url: resolveComWixpressBookingsResourcesCoreApiV1ResourceResourcesServiceUrl({ protoPath: '/v1/resources/{id}', data: payload, host }),
802
+ params: (0, metro_runtime_1.toURLSearchParams)(payload),
374
803
  };
375
804
  return metadata;
376
805
  }
377
- ___delete.fromReq = fromReq;
378
806
  return ___delete;
379
807
  }
380
808
  exports._delete = _delete;