@wix/auto_sdk_seatings_seating-reservation 1.0.49 → 1.0.51
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.js +55 -65
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +27 -0
- package/build/cjs/index.typings.js +48 -55
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +27 -0
- package/build/cjs/meta.js +48 -55
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +55 -65
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +27 -0
- package/build/es/index.typings.mjs +48 -55
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +27 -0
- package/build/es/meta.mjs +48 -55
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +1 -9
- package/build/internal/cjs/meta.d.ts +1 -9
- package/build/internal/es/index.typings.d.mts +1 -9
- package/build/internal/es/meta.d.mts +1 -9
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -59,6 +59,46 @@ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
59
59
|
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
60
60
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
61
61
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
62
|
+
var TRANSFORM_PATHS_0 = [
|
|
63
|
+
{ path: "reservation.createdDate" },
|
|
64
|
+
{ path: "reservation.updatedDate" }
|
|
65
|
+
];
|
|
66
|
+
var TRANSFORM_PATHS_1 = [
|
|
67
|
+
{ path: "query.sort.origin.latitude" },
|
|
68
|
+
{ path: "query.sort.origin.longitude" }
|
|
69
|
+
];
|
|
70
|
+
var TRANSFORM_PATHS_2 = [
|
|
71
|
+
{ path: "reservations.createdDate" },
|
|
72
|
+
{ path: "reservations.updatedDate" }
|
|
73
|
+
];
|
|
74
|
+
var TRANSFORM_PATHS_3 = [
|
|
75
|
+
{ path: "plan.createdDate" },
|
|
76
|
+
{ path: "plan.updatedDate" }
|
|
77
|
+
];
|
|
78
|
+
var TRANSFORM_PATHS_4 = [
|
|
79
|
+
{ path: "plan.sections.elements.uiProperties.x" },
|
|
80
|
+
{ path: "plan.sections.elements.uiProperties.y" },
|
|
81
|
+
{ path: "plan.sections.elements.uiProperties.width" },
|
|
82
|
+
{ path: "plan.sections.elements.uiProperties.height" },
|
|
83
|
+
{ path: "plan.sections.elements.uiProperties.rotationAngle" },
|
|
84
|
+
{ path: "plan.sections.elements.multiRowProperties.curveAngleTo" },
|
|
85
|
+
{ path: "plan.sections.elements.multiRowProperties.curveAngleFrom" },
|
|
86
|
+
{
|
|
87
|
+
path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
|
|
88
|
+
},
|
|
89
|
+
{ path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width" },
|
|
90
|
+
{
|
|
91
|
+
path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
|
|
95
|
+
},
|
|
96
|
+
{ path: "plan.elementGroups.uiProperties.x" },
|
|
97
|
+
{ path: "plan.elementGroups.uiProperties.y" },
|
|
98
|
+
{ path: "plan.elementGroups.uiProperties.width" },
|
|
99
|
+
{ path: "plan.elementGroups.uiProperties.height" },
|
|
100
|
+
{ path: "plan.elementGroups.uiProperties.rotationAngle" }
|
|
101
|
+
];
|
|
62
102
|
function resolveComWixpressSeatingSeatingReservationServiceUrl(opts) {
|
|
63
103
|
const domainToMappings = {
|
|
64
104
|
_api_base_domain_: [
|
|
@@ -136,10 +176,7 @@ function createSeatingReservation(payload) {
|
|
|
136
176
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
137
177
|
{
|
|
138
178
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
139
|
-
paths:
|
|
140
|
-
{ path: "reservation.createdDate" },
|
|
141
|
-
{ path: "reservation.updatedDate" }
|
|
142
|
-
]
|
|
179
|
+
paths: TRANSFORM_PATHS_0
|
|
143
180
|
}
|
|
144
181
|
]);
|
|
145
182
|
const metadata = {
|
|
@@ -159,10 +196,7 @@ function createSeatingReservation(payload) {
|
|
|
159
196
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
160
197
|
{
|
|
161
198
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
162
|
-
paths:
|
|
163
|
-
{ path: "reservation.createdDate" },
|
|
164
|
-
{ path: "reservation.updatedDate" }
|
|
165
|
-
]
|
|
199
|
+
paths: TRANSFORM_PATHS_0
|
|
166
200
|
}
|
|
167
201
|
])
|
|
168
202
|
};
|
|
@@ -189,10 +223,7 @@ function getSeatingReservation(payload) {
|
|
|
189
223
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
190
224
|
{
|
|
191
225
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
192
|
-
paths:
|
|
193
|
-
{ path: "reservation.createdDate" },
|
|
194
|
-
{ path: "reservation.updatedDate" }
|
|
195
|
-
]
|
|
226
|
+
paths: TRANSFORM_PATHS_0
|
|
196
227
|
}
|
|
197
228
|
])
|
|
198
229
|
};
|
|
@@ -205,10 +236,7 @@ function querySeatingReservations(payload) {
|
|
|
205
236
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
206
237
|
{
|
|
207
238
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
208
|
-
paths:
|
|
209
|
-
{ path: "query.sort.origin.latitude" },
|
|
210
|
-
{ path: "query.sort.origin.longitude" }
|
|
211
|
-
]
|
|
239
|
+
paths: TRANSFORM_PATHS_1
|
|
212
240
|
}
|
|
213
241
|
]);
|
|
214
242
|
const metadata = {
|
|
@@ -228,10 +256,7 @@ function querySeatingReservations(payload) {
|
|
|
228
256
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
229
257
|
{
|
|
230
258
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
231
|
-
paths:
|
|
232
|
-
{ path: "reservations.createdDate" },
|
|
233
|
-
{ path: "reservations.updatedDate" }
|
|
234
|
-
]
|
|
259
|
+
paths: TRANSFORM_PATHS_2
|
|
235
260
|
}
|
|
236
261
|
])
|
|
237
262
|
};
|
|
@@ -258,10 +283,7 @@ function deleteSeatingReservation(payload) {
|
|
|
258
283
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
259
284
|
{
|
|
260
285
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
261
|
-
paths:
|
|
262
|
-
{ path: "reservation.createdDate" },
|
|
263
|
-
{ path: "reservation.updatedDate" }
|
|
264
|
-
]
|
|
286
|
+
paths: TRANSFORM_PATHS_0
|
|
265
287
|
}
|
|
266
288
|
])
|
|
267
289
|
};
|
|
@@ -309,40 +331,11 @@ function getSeatingReservationSummaryByExternalId(payload) {
|
|
|
309
331
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
310
332
|
{
|
|
311
333
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
312
|
-
paths:
|
|
334
|
+
paths: TRANSFORM_PATHS_3
|
|
313
335
|
},
|
|
314
336
|
{
|
|
315
337
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
316
|
-
paths:
|
|
317
|
-
{ path: "plan.sections.elements.uiProperties.x" },
|
|
318
|
-
{ path: "plan.sections.elements.uiProperties.y" },
|
|
319
|
-
{ path: "plan.sections.elements.uiProperties.width" },
|
|
320
|
-
{ path: "plan.sections.elements.uiProperties.height" },
|
|
321
|
-
{ path: "plan.sections.elements.uiProperties.rotationAngle" },
|
|
322
|
-
{
|
|
323
|
-
path: "plan.sections.elements.multiRowProperties.curveAngleTo"
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
path: "plan.sections.elements.multiRowProperties.curveAngleFrom"
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
path: "plan.sections.elements.multiRowProperties.rows.uiProperties.relativeX"
|
|
330
|
-
},
|
|
331
|
-
{
|
|
332
|
-
path: "plan.sections.elements.multiRowProperties.rows.uiProperties.width"
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleFrom"
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
path: "plan.sections.elements.multiRowProperties.rows.uiProperties.curveAngleTo"
|
|
339
|
-
},
|
|
340
|
-
{ path: "plan.elementGroups.uiProperties.x" },
|
|
341
|
-
{ path: "plan.elementGroups.uiProperties.y" },
|
|
342
|
-
{ path: "plan.elementGroups.uiProperties.width" },
|
|
343
|
-
{ path: "plan.elementGroups.uiProperties.height" },
|
|
344
|
-
{ path: "plan.elementGroups.uiProperties.rotationAngle" }
|
|
345
|
-
]
|
|
338
|
+
paths: TRANSFORM_PATHS_4
|
|
346
339
|
}
|
|
347
340
|
])
|
|
348
341
|
};
|
|
@@ -628,6 +621,11 @@ async function getSeatingReservationSummaryByExternalId2(externalId) {
|
|
|
628
621
|
}
|
|
629
622
|
|
|
630
623
|
// src/seating-v1-seating-reservation-seating-reservation.public.ts
|
|
624
|
+
var TRANSFORM_PATHS_02 = [
|
|
625
|
+
{ path: "entity.createdDate" },
|
|
626
|
+
{ path: "entity.updatedDate" },
|
|
627
|
+
{ path: "metadata.eventTime" }
|
|
628
|
+
];
|
|
631
629
|
function createSeatingReservation3(httpClient) {
|
|
632
630
|
return (options) => createSeatingReservation2(
|
|
633
631
|
options,
|
|
@@ -683,11 +681,7 @@ var onSeatingReservationCreated = /* @__PURE__ */ (0, import_sdk_types.EventDefi
|
|
|
683
681
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
684
682
|
{
|
|
685
683
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
686
|
-
paths:
|
|
687
|
-
{ path: "entity.createdDate" },
|
|
688
|
-
{ path: "entity.updatedDate" },
|
|
689
|
-
{ path: "metadata.eventTime" }
|
|
690
|
-
]
|
|
684
|
+
paths: TRANSFORM_PATHS_02
|
|
691
685
|
}
|
|
692
686
|
])
|
|
693
687
|
)
|
|
@@ -699,11 +693,7 @@ var onSeatingReservationDeleted = /* @__PURE__ */ (0, import_sdk_types.EventDefi
|
|
|
699
693
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
700
694
|
{
|
|
701
695
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
702
|
-
paths:
|
|
703
|
-
{ path: "entity.createdDate" },
|
|
704
|
-
{ path: "entity.updatedDate" },
|
|
705
|
-
{ path: "metadata.eventTime" }
|
|
706
|
-
]
|
|
696
|
+
paths: TRANSFORM_PATHS_02
|
|
707
697
|
}
|
|
708
698
|
])
|
|
709
699
|
)
|