@connectedxm/admin 6.21.2 → 6.23.0
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/dist/index.cjs +1082 -93
- package/dist/index.d.cts +679 -5
- package/dist/index.d.ts +679 -5
- package/dist/index.js +1021 -93
- package/openapi.json +2765 -191
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -147,6 +147,7 @@ __export(index_exports, {
|
|
|
147
147
|
AdvertisementType: () => AdvertisementType,
|
|
148
148
|
AppendInfiniteQuery: () => AppendInfiniteQuery,
|
|
149
149
|
ArchiveActivity: () => ArchiveActivity,
|
|
150
|
+
AttachBookingSpaceQuestionSearchList: () => AttachBookingSpaceQuestionSearchList,
|
|
150
151
|
AttachEventQuestionSearchList: () => AttachEventQuestionSearchList,
|
|
151
152
|
AttachEventSessionQuestionSearchList: () => AttachEventSessionQuestionSearchList,
|
|
152
153
|
AttachSurveyQuestionSearchList: () => AttachSurveyQuestionSearchList,
|
|
@@ -171,9 +172,18 @@ __export(index_exports, {
|
|
|
171
172
|
BOOKING_SPACE_BOOKINGS_QUERY_KEY: () => BOOKING_SPACE_BOOKINGS_QUERY_KEY,
|
|
172
173
|
BOOKING_SPACE_PAYMENTS_QUERY_KEY: () => BOOKING_SPACE_PAYMENTS_QUERY_KEY,
|
|
173
174
|
BOOKING_SPACE_QUERY_KEY: () => BOOKING_SPACE_QUERY_KEY,
|
|
175
|
+
BOOKING_SPACE_QUESTIONS_QUERY_KEY: () => BOOKING_SPACE_QUESTIONS_QUERY_KEY,
|
|
176
|
+
BOOKING_SPACE_QUESTION_CHOICES_QUERY_KEY: () => BOOKING_SPACE_QUESTION_CHOICES_QUERY_KEY,
|
|
177
|
+
BOOKING_SPACE_QUESTION_CHOICE_QUERY_KEY: () => BOOKING_SPACE_QUESTION_CHOICE_QUERY_KEY,
|
|
178
|
+
BOOKING_SPACE_QUESTION_CHOICE_TRANSLATIONS_QUERY_KEY: () => BOOKING_SPACE_QUESTION_CHOICE_TRANSLATIONS_QUERY_KEY,
|
|
179
|
+
BOOKING_SPACE_QUESTION_CHOICE_TRANSLATION_QUERY_KEY: () => BOOKING_SPACE_QUESTION_CHOICE_TRANSLATION_QUERY_KEY,
|
|
180
|
+
BOOKING_SPACE_QUESTION_QUERY_KEY: () => BOOKING_SPACE_QUESTION_QUERY_KEY,
|
|
181
|
+
BOOKING_SPACE_QUESTION_TRANSLATIONS_QUERY_KEY: () => BOOKING_SPACE_QUESTION_TRANSLATIONS_QUERY_KEY,
|
|
182
|
+
BOOKING_SPACE_QUESTION_TRANSLATION_QUERY_KEY: () => BOOKING_SPACE_QUESTION_TRANSLATION_QUERY_KEY,
|
|
174
183
|
BOOKING_SPACE_SLOTS_QUERY_KEY: () => BOOKING_SPACE_SLOTS_QUERY_KEY,
|
|
175
184
|
BOOKING_SPACE_TRANSLATIONS_QUERY_KEY: () => BOOKING_SPACE_TRANSLATIONS_QUERY_KEY,
|
|
176
185
|
BOOKING_SPACE_TRANSLATION_QUERY_KEY: () => BOOKING_SPACE_TRANSLATION_QUERY_KEY,
|
|
186
|
+
BookingSpaceQuestionType: () => BookingSpaceQuestionType,
|
|
177
187
|
BulkUploadSearchListValues: () => BulkUploadSearchListValues,
|
|
178
188
|
CHANNELS_QUERY_KEY: () => CHANNELS_QUERY_KEY,
|
|
179
189
|
CHANNEL_ACTIVITIES_QUERY_KEY: () => CHANNEL_ACTIVITIES_QUERY_KEY,
|
|
@@ -230,6 +240,8 @@ __export(index_exports, {
|
|
|
230
240
|
CreateBookingSpace: () => CreateBookingSpace,
|
|
231
241
|
CreateBookingSpaceAvailability: () => CreateBookingSpaceAvailability,
|
|
232
242
|
CreateBookingSpaceBlackout: () => CreateBookingSpaceBlackout,
|
|
243
|
+
CreateBookingSpaceQuestion: () => CreateBookingSpaceQuestion,
|
|
244
|
+
CreateBookingSpaceQuestionChoice: () => CreateBookingSpaceQuestionChoice,
|
|
233
245
|
CreateChannel: () => CreateChannel,
|
|
234
246
|
CreateChannelContent: () => CreateChannelContent,
|
|
235
247
|
CreateChannelContentGuest: () => CreateChannelContentGuest,
|
|
@@ -348,6 +360,10 @@ __export(index_exports, {
|
|
|
348
360
|
DeleteBookingSpace: () => DeleteBookingSpace,
|
|
349
361
|
DeleteBookingSpaceAvailability: () => DeleteBookingSpaceAvailability,
|
|
350
362
|
DeleteBookingSpaceBlackout: () => DeleteBookingSpaceBlackout,
|
|
363
|
+
DeleteBookingSpaceQuestion: () => DeleteBookingSpaceQuestion,
|
|
364
|
+
DeleteBookingSpaceQuestionChoice: () => DeleteBookingSpaceQuestionChoice,
|
|
365
|
+
DeleteBookingSpaceQuestionChoiceTranslation: () => DeleteBookingSpaceQuestionChoiceTranslation,
|
|
366
|
+
DeleteBookingSpaceQuestionTranslation: () => DeleteBookingSpaceQuestionTranslation,
|
|
351
367
|
DeleteBookingSpaceTranslation: () => DeleteBookingSpaceTranslation,
|
|
352
368
|
DeleteChannel: () => DeleteChannel,
|
|
353
369
|
DeleteChannelContent: () => DeleteChannelContent,
|
|
@@ -486,6 +502,7 @@ __export(index_exports, {
|
|
|
486
502
|
DeleteUserImage: () => DeleteUserImage,
|
|
487
503
|
DeleteVideo: () => DeleteVideo,
|
|
488
504
|
DeleteVideoCaption: () => DeleteVideoCaption,
|
|
505
|
+
DetachBookingSpaceQuestionSearchList: () => DetachBookingSpaceQuestionSearchList,
|
|
489
506
|
DetachEventQuestionSearchList: () => DetachEventQuestionSearchList,
|
|
490
507
|
DetachEventSessionQuestionSearchList: () => DetachEventSessionQuestionSearchList,
|
|
491
508
|
DetachSurveyQuestionSearchList: () => DetachSurveyQuestionSearchList,
|
|
@@ -809,6 +826,14 @@ __export(index_exports, {
|
|
|
809
826
|
GetBookingSpaceBlackouts: () => GetBookingSpaceBlackouts,
|
|
810
827
|
GetBookingSpaceBookings: () => GetBookingSpaceBookings,
|
|
811
828
|
GetBookingSpacePayments: () => GetBookingSpacePayments,
|
|
829
|
+
GetBookingSpaceQuestion: () => GetBookingSpaceQuestion,
|
|
830
|
+
GetBookingSpaceQuestionChoice: () => GetBookingSpaceQuestionChoice,
|
|
831
|
+
GetBookingSpaceQuestionChoiceTranslation: () => GetBookingSpaceQuestionChoiceTranslation,
|
|
832
|
+
GetBookingSpaceQuestionChoiceTranslations: () => GetBookingSpaceQuestionChoiceTranslations,
|
|
833
|
+
GetBookingSpaceQuestionChoices: () => GetBookingSpaceQuestionChoices,
|
|
834
|
+
GetBookingSpaceQuestionTranslation: () => GetBookingSpaceQuestionTranslation,
|
|
835
|
+
GetBookingSpaceQuestionTranslations: () => GetBookingSpaceQuestionTranslations,
|
|
836
|
+
GetBookingSpaceQuestions: () => GetBookingSpaceQuestions,
|
|
812
837
|
GetBookingSpaceSlots: () => GetBookingSpaceSlots,
|
|
813
838
|
GetBookingSpaceTranslation: () => GetBookingSpaceTranslation,
|
|
814
839
|
GetBookingSpaceTranslations: () => GetBookingSpaceTranslations,
|
|
@@ -1454,6 +1479,8 @@ __export(index_exports, {
|
|
|
1454
1479
|
RemoveSurveySectionQuestion: () => RemoveSurveySectionQuestion,
|
|
1455
1480
|
RemoveSurveySession: () => RemoveSurveySession,
|
|
1456
1481
|
RemoveTierAccounts: () => RemoveTierAccounts,
|
|
1482
|
+
ReorderBookingSpaceQuestionChoices: () => ReorderBookingSpaceQuestionChoices,
|
|
1483
|
+
ReorderBookingSpaceQuestions: () => ReorderBookingSpaceQuestions,
|
|
1457
1484
|
ReorderEventFaqSectionQuestions: () => ReorderEventFaqSectionQuestions,
|
|
1458
1485
|
ReorderEventFollowupQuestions: () => ReorderEventFollowupQuestions,
|
|
1459
1486
|
ReorderEventQuestionChoiceSubQuestions: () => ReorderEventQuestionChoiceSubQuestions,
|
|
@@ -1562,6 +1589,14 @@ __export(index_exports, {
|
|
|
1562
1589
|
SET_BOOKING_SPACE_BOOKINGS_QUERY_DATA: () => SET_BOOKING_SPACE_BOOKINGS_QUERY_DATA,
|
|
1563
1590
|
SET_BOOKING_SPACE_PAYMENTS_QUERY_DATA: () => SET_BOOKING_SPACE_PAYMENTS_QUERY_DATA,
|
|
1564
1591
|
SET_BOOKING_SPACE_QUERY_DATA: () => SET_BOOKING_SPACE_QUERY_DATA,
|
|
1592
|
+
SET_BOOKING_SPACE_QUESTIONS_QUERY_DATA: () => SET_BOOKING_SPACE_QUESTIONS_QUERY_DATA,
|
|
1593
|
+
SET_BOOKING_SPACE_QUESTION_CHOICES_QUERY_DATA: () => SET_BOOKING_SPACE_QUESTION_CHOICES_QUERY_DATA,
|
|
1594
|
+
SET_BOOKING_SPACE_QUESTION_CHOICE_QUERY_DATA: () => SET_BOOKING_SPACE_QUESTION_CHOICE_QUERY_DATA,
|
|
1595
|
+
SET_BOOKING_SPACE_QUESTION_CHOICE_TRANSLATIONS_QUERY_DATA: () => SET_BOOKING_SPACE_QUESTION_CHOICE_TRANSLATIONS_QUERY_DATA,
|
|
1596
|
+
SET_BOOKING_SPACE_QUESTION_CHOICE_TRANSLATION_QUERY_DATA: () => SET_BOOKING_SPACE_QUESTION_CHOICE_TRANSLATION_QUERY_DATA,
|
|
1597
|
+
SET_BOOKING_SPACE_QUESTION_QUERY_DATA: () => SET_BOOKING_SPACE_QUESTION_QUERY_DATA,
|
|
1598
|
+
SET_BOOKING_SPACE_QUESTION_TRANSLATIONS_QUERY_DATA: () => SET_BOOKING_SPACE_QUESTION_TRANSLATIONS_QUERY_DATA,
|
|
1599
|
+
SET_BOOKING_SPACE_QUESTION_TRANSLATION_QUERY_DATA: () => SET_BOOKING_SPACE_QUESTION_TRANSLATION_QUERY_DATA,
|
|
1565
1600
|
SET_BOOKING_SPACE_SLOTS_QUERY_DATA: () => SET_BOOKING_SPACE_SLOTS_QUERY_DATA,
|
|
1566
1601
|
SET_BOOKING_SPACE_TRANSLATIONS_QUERY_DATA: () => SET_BOOKING_SPACE_TRANSLATIONS_QUERY_DATA,
|
|
1567
1602
|
SET_BOOKING_SPACE_TRANSLATION_QUERY_DATA: () => SET_BOOKING_SPACE_TRANSLATION_QUERY_DATA,
|
|
@@ -2113,6 +2148,10 @@ __export(index_exports, {
|
|
|
2113
2148
|
UpdateBookingSpace: () => UpdateBookingSpace,
|
|
2114
2149
|
UpdateBookingSpaceAvailability: () => UpdateBookingSpaceAvailability,
|
|
2115
2150
|
UpdateBookingSpaceBlackout: () => UpdateBookingSpaceBlackout,
|
|
2151
|
+
UpdateBookingSpaceQuestion: () => UpdateBookingSpaceQuestion,
|
|
2152
|
+
UpdateBookingSpaceQuestionChoice: () => UpdateBookingSpaceQuestionChoice,
|
|
2153
|
+
UpdateBookingSpaceQuestionChoiceTranslation: () => UpdateBookingSpaceQuestionChoiceTranslation,
|
|
2154
|
+
UpdateBookingSpaceQuestionTranslation: () => UpdateBookingSpaceQuestionTranslation,
|
|
2116
2155
|
UpdateBookingSpaceTranslation: () => UpdateBookingSpaceTranslation,
|
|
2117
2156
|
UpdateChannel: () => UpdateChannel,
|
|
2118
2157
|
UpdateChannelContent: () => UpdateChannelContent,
|
|
@@ -2356,6 +2395,7 @@ __export(index_exports, {
|
|
|
2356
2395
|
useAddSurveySectionQuestion: () => useAddSurveySectionQuestion,
|
|
2357
2396
|
useAddSurveySession: () => useAddSurveySession,
|
|
2358
2397
|
useArchiveActivity: () => useArchiveActivity,
|
|
2398
|
+
useAttachBookingSpaceQuestionSearchList: () => useAttachBookingSpaceQuestionSearchList,
|
|
2359
2399
|
useAttachEventQuestionSearchList: () => useAttachEventQuestionSearchList,
|
|
2360
2400
|
useAttachEventSessionQuestionSearchList: () => useAttachEventSessionQuestionSearchList,
|
|
2361
2401
|
useAttachSurveyQuestionSearchList: () => useAttachSurveyQuestionSearchList,
|
|
@@ -2389,6 +2429,8 @@ __export(index_exports, {
|
|
|
2389
2429
|
useCreateBookingSpace: () => useCreateBookingSpace,
|
|
2390
2430
|
useCreateBookingSpaceAvailability: () => useCreateBookingSpaceAvailability,
|
|
2391
2431
|
useCreateBookingSpaceBlackout: () => useCreateBookingSpaceBlackout,
|
|
2432
|
+
useCreateBookingSpaceQuestion: () => useCreateBookingSpaceQuestion,
|
|
2433
|
+
useCreateBookingSpaceQuestionChoice: () => useCreateBookingSpaceQuestionChoice,
|
|
2392
2434
|
useCreateChannel: () => useCreateChannel,
|
|
2393
2435
|
useCreateChannelContent: () => useCreateChannelContent,
|
|
2394
2436
|
useCreateChannelContentGuest: () => useCreateChannelContentGuest,
|
|
@@ -2498,6 +2540,10 @@ __export(index_exports, {
|
|
|
2498
2540
|
useDeleteBookingSpace: () => useDeleteBookingSpace,
|
|
2499
2541
|
useDeleteBookingSpaceAvailability: () => useDeleteBookingSpaceAvailability,
|
|
2500
2542
|
useDeleteBookingSpaceBlackout: () => useDeleteBookingSpaceBlackout,
|
|
2543
|
+
useDeleteBookingSpaceQuestion: () => useDeleteBookingSpaceQuestion,
|
|
2544
|
+
useDeleteBookingSpaceQuestionChoice: () => useDeleteBookingSpaceQuestionChoice,
|
|
2545
|
+
useDeleteBookingSpaceQuestionChoiceTranslation: () => useDeleteBookingSpaceQuestionChoiceTranslation,
|
|
2546
|
+
useDeleteBookingSpaceQuestionTranslation: () => useDeleteBookingSpaceQuestionTranslation,
|
|
2501
2547
|
useDeleteBookingSpaceTranslation: () => useDeleteBookingSpaceTranslation,
|
|
2502
2548
|
useDeleteChannel: () => useDeleteChannel,
|
|
2503
2549
|
useDeleteChannelContent: () => useDeleteChannelContent,
|
|
@@ -2636,6 +2682,7 @@ __export(index_exports, {
|
|
|
2636
2682
|
useDeleteUserImage: () => useDeleteUserImage,
|
|
2637
2683
|
useDeleteVideo: () => useDeleteVideo,
|
|
2638
2684
|
useDeleteVideoCaption: () => useDeleteVideoCaption,
|
|
2685
|
+
useDetachBookingSpaceQuestionSearchList: () => useDetachBookingSpaceQuestionSearchList,
|
|
2639
2686
|
useDetachEventQuestionSearchList: () => useDetachEventQuestionSearchList,
|
|
2640
2687
|
useDetachEventSessionQuestionSearchList: () => useDetachEventSessionQuestionSearchList,
|
|
2641
2688
|
useDetachSurveyQuestionSearchList: () => useDetachSurveyQuestionSearchList,
|
|
@@ -2709,6 +2756,14 @@ __export(index_exports, {
|
|
|
2709
2756
|
useGetBookingSpaceBlackouts: () => useGetBookingSpaceBlackouts,
|
|
2710
2757
|
useGetBookingSpaceBookings: () => useGetBookingSpaceBookings,
|
|
2711
2758
|
useGetBookingSpacePayments: () => useGetBookingSpacePayments,
|
|
2759
|
+
useGetBookingSpaceQuestion: () => useGetBookingSpaceQuestion,
|
|
2760
|
+
useGetBookingSpaceQuestionChoice: () => useGetBookingSpaceQuestionChoice,
|
|
2761
|
+
useGetBookingSpaceQuestionChoiceTranslation: () => useGetBookingSpaceQuestionChoiceTranslation,
|
|
2762
|
+
useGetBookingSpaceQuestionChoiceTranslations: () => useGetBookingSpaceQuestionChoiceTranslations,
|
|
2763
|
+
useGetBookingSpaceQuestionChoices: () => useGetBookingSpaceQuestionChoices,
|
|
2764
|
+
useGetBookingSpaceQuestionTranslation: () => useGetBookingSpaceQuestionTranslation,
|
|
2765
|
+
useGetBookingSpaceQuestionTranslations: () => useGetBookingSpaceQuestionTranslations,
|
|
2766
|
+
useGetBookingSpaceQuestions: () => useGetBookingSpaceQuestions,
|
|
2712
2767
|
useGetBookingSpaceSlots: () => useGetBookingSpaceSlots,
|
|
2713
2768
|
useGetBookingSpaceTranslation: () => useGetBookingSpaceTranslation,
|
|
2714
2769
|
useGetBookingSpaceTranslations: () => useGetBookingSpaceTranslations,
|
|
@@ -3236,6 +3291,8 @@ __export(index_exports, {
|
|
|
3236
3291
|
useRemoveSurveySectionQuestion: () => useRemoveSurveySectionQuestion,
|
|
3237
3292
|
useRemoveSurveySession: () => useRemoveSurveySession,
|
|
3238
3293
|
useRemoveTierAccounts: () => useRemoveTierAccounts,
|
|
3294
|
+
useReorderBookingSpaceQuestionChoices: () => useReorderBookingSpaceQuestionChoices,
|
|
3295
|
+
useReorderBookingSpaceQuestions: () => useReorderBookingSpaceQuestions,
|
|
3239
3296
|
useReorderEventFaqSectionQuestions: () => useReorderEventFaqSectionQuestions,
|
|
3240
3297
|
useReorderEventFollowupQuestions: () => useReorderEventFollowupQuestions,
|
|
3241
3298
|
useReorderEventQuestionChoiceSubQuestions: () => useReorderEventQuestionChoiceSubQuestions,
|
|
@@ -3284,6 +3341,10 @@ __export(index_exports, {
|
|
|
3284
3341
|
useUpdateBookingSpace: () => useUpdateBookingSpace,
|
|
3285
3342
|
useUpdateBookingSpaceAvailability: () => useUpdateBookingSpaceAvailability,
|
|
3286
3343
|
useUpdateBookingSpaceBlackout: () => useUpdateBookingSpaceBlackout,
|
|
3344
|
+
useUpdateBookingSpaceQuestion: () => useUpdateBookingSpaceQuestion,
|
|
3345
|
+
useUpdateBookingSpaceQuestionChoice: () => useUpdateBookingSpaceQuestionChoice,
|
|
3346
|
+
useUpdateBookingSpaceQuestionChoiceTranslation: () => useUpdateBookingSpaceQuestionChoiceTranslation,
|
|
3347
|
+
useUpdateBookingSpaceQuestionTranslation: () => useUpdateBookingSpaceQuestionTranslation,
|
|
3287
3348
|
useUpdateBookingSpaceTranslation: () => useUpdateBookingSpaceTranslation,
|
|
3288
3349
|
useUpdateChannel: () => useUpdateChannel,
|
|
3289
3350
|
useUpdateChannelContent: () => useUpdateChannelContent,
|
|
@@ -4116,6 +4177,21 @@ var DayOfWeek = /* @__PURE__ */ ((DayOfWeek2) => {
|
|
|
4116
4177
|
DayOfWeek2["saturday"] = "saturday";
|
|
4117
4178
|
return DayOfWeek2;
|
|
4118
4179
|
})(DayOfWeek || {});
|
|
4180
|
+
var BookingSpaceQuestionType = /* @__PURE__ */ ((BookingSpaceQuestionType2) => {
|
|
4181
|
+
BookingSpaceQuestionType2["text"] = "text";
|
|
4182
|
+
BookingSpaceQuestionType2["textarea"] = "textarea";
|
|
4183
|
+
BookingSpaceQuestionType2["number"] = "number";
|
|
4184
|
+
BookingSpaceQuestionType2["time"] = "time";
|
|
4185
|
+
BookingSpaceQuestionType2["date"] = "date";
|
|
4186
|
+
BookingSpaceQuestionType2["toggle"] = "toggle";
|
|
4187
|
+
BookingSpaceQuestionType2["select"] = "select";
|
|
4188
|
+
BookingSpaceQuestionType2["radio"] = "radio";
|
|
4189
|
+
BookingSpaceQuestionType2["checkbox"] = "checkbox";
|
|
4190
|
+
BookingSpaceQuestionType2["search"] = "search";
|
|
4191
|
+
BookingSpaceQuestionType2["file"] = "file";
|
|
4192
|
+
BookingSpaceQuestionType2["location"] = "location";
|
|
4193
|
+
return BookingSpaceQuestionType2;
|
|
4194
|
+
})(BookingSpaceQuestionType || {});
|
|
4119
4195
|
var WidgetCategory = /* @__PURE__ */ ((WidgetCategory2) => {
|
|
4120
4196
|
WidgetCategory2["organization"] = "organization";
|
|
4121
4197
|
WidgetCategory2["event"] = "event";
|
|
@@ -6275,30 +6351,6 @@ var useGetBenefitClicks = (benefitId = "", params = {}, options = {}) => {
|
|
|
6275
6351
|
);
|
|
6276
6352
|
};
|
|
6277
6353
|
|
|
6278
|
-
// src/queries/bookings/useGetBooking.ts
|
|
6279
|
-
var BOOKING_QUERY_KEY = (bookingId) => ["BOOKINGS", bookingId];
|
|
6280
|
-
var SET_BOOKING_QUERY_DATA = (client, keyParams, response) => {
|
|
6281
|
-
client.setQueryData(BOOKING_QUERY_KEY(...keyParams), response);
|
|
6282
|
-
};
|
|
6283
|
-
var GetBooking = async ({
|
|
6284
|
-
bookingId,
|
|
6285
|
-
adminApiParams
|
|
6286
|
-
}) => {
|
|
6287
|
-
const adminApi = await GetAdminAPI(adminApiParams);
|
|
6288
|
-
const { data } = await adminApi.get(`/bookings/${bookingId}`);
|
|
6289
|
-
return data;
|
|
6290
|
-
};
|
|
6291
|
-
var useGetBooking = (bookingId = "", options = {}) => {
|
|
6292
|
-
return useConnectedSingleQuery(
|
|
6293
|
-
BOOKING_QUERY_KEY(bookingId),
|
|
6294
|
-
(params) => GetBooking({ bookingId, ...params }),
|
|
6295
|
-
{
|
|
6296
|
-
...options,
|
|
6297
|
-
enabled: !!bookingId && (options?.enabled ?? true)
|
|
6298
|
-
}
|
|
6299
|
-
);
|
|
6300
|
-
};
|
|
6301
|
-
|
|
6302
6354
|
// src/queries/bookings/useGetBookingPlaces.ts
|
|
6303
6355
|
var BOOKING_PLACES_QUERY_KEY = () => ["BOOKING_PLACES"];
|
|
6304
6356
|
var SET_BOOKING_PLACES_QUERY_DATA = (client, keyParams, response) => {
|
|
@@ -6358,6 +6410,478 @@ var useGetBookingPlace = (placeId = "", options = {}) => {
|
|
|
6358
6410
|
);
|
|
6359
6411
|
};
|
|
6360
6412
|
|
|
6413
|
+
// src/queries/bookings/useGetBookingSpaces.ts
|
|
6414
|
+
var BOOKING_SPACES_QUERY_KEY = (placeId) => [
|
|
6415
|
+
...BOOKING_PLACE_QUERY_KEY(placeId),
|
|
6416
|
+
"BOOKING_SPACES"
|
|
6417
|
+
];
|
|
6418
|
+
var SET_BOOKING_SPACES_QUERY_DATA = (client, keyParams, response) => {
|
|
6419
|
+
client.setQueryData(BOOKING_SPACES_QUERY_KEY(...keyParams), response);
|
|
6420
|
+
};
|
|
6421
|
+
var GetBookingSpaces = async ({
|
|
6422
|
+
placeId,
|
|
6423
|
+
pageParam,
|
|
6424
|
+
pageSize,
|
|
6425
|
+
orderBy,
|
|
6426
|
+
search,
|
|
6427
|
+
adminApiParams
|
|
6428
|
+
}) => {
|
|
6429
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
6430
|
+
const { data } = await adminApi.get(`/bookings/places/${placeId}/spaces`, {
|
|
6431
|
+
params: {
|
|
6432
|
+
page: pageParam || void 0,
|
|
6433
|
+
pageSize: pageSize || void 0,
|
|
6434
|
+
orderBy: orderBy || void 0,
|
|
6435
|
+
search: search || void 0
|
|
6436
|
+
}
|
|
6437
|
+
});
|
|
6438
|
+
return data;
|
|
6439
|
+
};
|
|
6440
|
+
var useGetBookingSpaces = (placeId = "", params = {}, options = {}) => {
|
|
6441
|
+
return useConnectedInfiniteQuery(
|
|
6442
|
+
BOOKING_SPACES_QUERY_KEY(placeId),
|
|
6443
|
+
(params2) => GetBookingSpaces({ placeId, ...params2 }),
|
|
6444
|
+
params,
|
|
6445
|
+
{
|
|
6446
|
+
...options,
|
|
6447
|
+
enabled: !!placeId && (options?.enabled ?? true)
|
|
6448
|
+
}
|
|
6449
|
+
);
|
|
6450
|
+
};
|
|
6451
|
+
|
|
6452
|
+
// src/queries/bookings/useGetBookingSpace.ts
|
|
6453
|
+
var BOOKING_SPACE_QUERY_KEY = (placeId, spaceId) => [
|
|
6454
|
+
...BOOKING_SPACES_QUERY_KEY(placeId),
|
|
6455
|
+
spaceId
|
|
6456
|
+
];
|
|
6457
|
+
var SET_BOOKING_SPACE_QUERY_DATA = (client, keyParams, response) => {
|
|
6458
|
+
client.setQueryData(BOOKING_SPACE_QUERY_KEY(...keyParams), response);
|
|
6459
|
+
};
|
|
6460
|
+
var GetBookingSpace = async ({
|
|
6461
|
+
placeId,
|
|
6462
|
+
spaceId,
|
|
6463
|
+
adminApiParams
|
|
6464
|
+
}) => {
|
|
6465
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
6466
|
+
const { data } = await adminApi.get(
|
|
6467
|
+
`/bookings/places/${placeId}/spaces/${spaceId}`
|
|
6468
|
+
);
|
|
6469
|
+
return data;
|
|
6470
|
+
};
|
|
6471
|
+
var useGetBookingSpace = (placeId = "", spaceId = "", options = {}) => {
|
|
6472
|
+
return useConnectedSingleQuery(
|
|
6473
|
+
BOOKING_SPACE_QUERY_KEY(placeId, spaceId),
|
|
6474
|
+
(params) => GetBookingSpace({ placeId, spaceId, ...params }),
|
|
6475
|
+
{
|
|
6476
|
+
...options,
|
|
6477
|
+
enabled: !!placeId && !!spaceId && (options?.enabled ?? true)
|
|
6478
|
+
}
|
|
6479
|
+
);
|
|
6480
|
+
};
|
|
6481
|
+
|
|
6482
|
+
// src/queries/bookings/questions/useGetBookingSpaceQuestions.ts
|
|
6483
|
+
var BOOKING_SPACE_QUESTIONS_QUERY_KEY = (placeId, spaceId) => [...BOOKING_SPACE_QUERY_KEY(placeId, spaceId), "QUESTIONS"];
|
|
6484
|
+
var SET_BOOKING_SPACE_QUESTIONS_QUERY_DATA = (client, keyParams, response, search = "") => {
|
|
6485
|
+
client.setQueryData(
|
|
6486
|
+
[
|
|
6487
|
+
...BOOKING_SPACE_QUESTIONS_QUERY_KEY(...keyParams),
|
|
6488
|
+
...GetBaseInfiniteQueryKeys(search)
|
|
6489
|
+
],
|
|
6490
|
+
{
|
|
6491
|
+
pages: [response],
|
|
6492
|
+
pageParams: [null]
|
|
6493
|
+
}
|
|
6494
|
+
);
|
|
6495
|
+
};
|
|
6496
|
+
var GetBookingSpaceQuestions = async ({
|
|
6497
|
+
placeId,
|
|
6498
|
+
spaceId,
|
|
6499
|
+
pageParam,
|
|
6500
|
+
pageSize,
|
|
6501
|
+
orderBy,
|
|
6502
|
+
search,
|
|
6503
|
+
adminApiParams
|
|
6504
|
+
}) => {
|
|
6505
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
6506
|
+
const { data } = await adminApi.get(
|
|
6507
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions`,
|
|
6508
|
+
{
|
|
6509
|
+
params: {
|
|
6510
|
+
page: pageParam || void 0,
|
|
6511
|
+
pageSize: pageSize || void 0,
|
|
6512
|
+
orderBy: orderBy || void 0,
|
|
6513
|
+
search: search || void 0
|
|
6514
|
+
}
|
|
6515
|
+
}
|
|
6516
|
+
);
|
|
6517
|
+
return data;
|
|
6518
|
+
};
|
|
6519
|
+
var useGetBookingSpaceQuestions = (placeId = "", spaceId = "", params = {}, options = {}) => {
|
|
6520
|
+
return useConnectedInfiniteQuery(
|
|
6521
|
+
BOOKING_SPACE_QUESTIONS_QUERY_KEY(placeId, spaceId),
|
|
6522
|
+
(queryParams) => GetBookingSpaceQuestions({
|
|
6523
|
+
...queryParams,
|
|
6524
|
+
placeId,
|
|
6525
|
+
spaceId
|
|
6526
|
+
}),
|
|
6527
|
+
params,
|
|
6528
|
+
{
|
|
6529
|
+
...options,
|
|
6530
|
+
enabled: !!placeId && !!spaceId && (options.enabled ?? true)
|
|
6531
|
+
}
|
|
6532
|
+
);
|
|
6533
|
+
};
|
|
6534
|
+
|
|
6535
|
+
// src/queries/bookings/questions/useGetBookingSpaceQuestion.ts
|
|
6536
|
+
var BOOKING_SPACE_QUESTION_QUERY_KEY = (placeId, spaceId, questionId) => [...BOOKING_SPACE_QUESTIONS_QUERY_KEY(placeId, spaceId), questionId];
|
|
6537
|
+
var SET_BOOKING_SPACE_QUESTION_QUERY_DATA = (client, keyParams, response) => {
|
|
6538
|
+
client.setQueryData(BOOKING_SPACE_QUESTION_QUERY_KEY(...keyParams), response);
|
|
6539
|
+
};
|
|
6540
|
+
var GetBookingSpaceQuestion = async ({
|
|
6541
|
+
placeId,
|
|
6542
|
+
spaceId,
|
|
6543
|
+
questionId,
|
|
6544
|
+
adminApiParams
|
|
6545
|
+
}) => {
|
|
6546
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
6547
|
+
const { data } = await adminApi.get(
|
|
6548
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}`
|
|
6549
|
+
);
|
|
6550
|
+
return data;
|
|
6551
|
+
};
|
|
6552
|
+
var useGetBookingSpaceQuestion = (placeId = "", spaceId = "", questionId = "", options = {}) => {
|
|
6553
|
+
return useConnectedSingleQuery(
|
|
6554
|
+
BOOKING_SPACE_QUESTION_QUERY_KEY(placeId, spaceId, questionId),
|
|
6555
|
+
(params) => GetBookingSpaceQuestion({ placeId, spaceId, questionId, ...params }),
|
|
6556
|
+
{
|
|
6557
|
+
...options,
|
|
6558
|
+
enabled: !!placeId && !!spaceId && !!questionId && (options?.enabled ?? true)
|
|
6559
|
+
}
|
|
6560
|
+
);
|
|
6561
|
+
};
|
|
6562
|
+
|
|
6563
|
+
// src/queries/bookings/questions/choices/useGetBookingSpaceQuestionChoices.ts
|
|
6564
|
+
var BOOKING_SPACE_QUESTION_CHOICES_QUERY_KEY = (placeId, spaceId, questionId) => [
|
|
6565
|
+
...BOOKING_SPACE_QUESTION_QUERY_KEY(placeId, spaceId, questionId),
|
|
6566
|
+
"CHOICES"
|
|
6567
|
+
];
|
|
6568
|
+
var SET_BOOKING_SPACE_QUESTION_CHOICES_QUERY_DATA = (client, keyParams, response) => {
|
|
6569
|
+
client.setQueryData(
|
|
6570
|
+
[
|
|
6571
|
+
...BOOKING_SPACE_QUESTION_CHOICES_QUERY_KEY(...keyParams),
|
|
6572
|
+
...GetBaseInfiniteQueryKeys("")
|
|
6573
|
+
],
|
|
6574
|
+
{
|
|
6575
|
+
pages: [response],
|
|
6576
|
+
pageParams: [null]
|
|
6577
|
+
}
|
|
6578
|
+
);
|
|
6579
|
+
};
|
|
6580
|
+
var GetBookingSpaceQuestionChoices = async ({
|
|
6581
|
+
placeId,
|
|
6582
|
+
spaceId,
|
|
6583
|
+
questionId,
|
|
6584
|
+
pageParam,
|
|
6585
|
+
pageSize,
|
|
6586
|
+
orderBy,
|
|
6587
|
+
search,
|
|
6588
|
+
adminApiParams
|
|
6589
|
+
}) => {
|
|
6590
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
6591
|
+
const { data } = await adminApi.get(
|
|
6592
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/choices`,
|
|
6593
|
+
{
|
|
6594
|
+
params: {
|
|
6595
|
+
page: pageParam || void 0,
|
|
6596
|
+
pageSize: pageSize || void 0,
|
|
6597
|
+
orderBy: orderBy || void 0,
|
|
6598
|
+
search: search || void 0
|
|
6599
|
+
}
|
|
6600
|
+
}
|
|
6601
|
+
);
|
|
6602
|
+
return data;
|
|
6603
|
+
};
|
|
6604
|
+
var useGetBookingSpaceQuestionChoices = (placeId = "", spaceId = "", questionId = "", params = {}, options = {}) => {
|
|
6605
|
+
return useConnectedInfiniteQuery(
|
|
6606
|
+
BOOKING_SPACE_QUESTION_CHOICES_QUERY_KEY(placeId, spaceId, questionId),
|
|
6607
|
+
(queryParams) => GetBookingSpaceQuestionChoices({
|
|
6608
|
+
...queryParams,
|
|
6609
|
+
placeId,
|
|
6610
|
+
spaceId,
|
|
6611
|
+
questionId
|
|
6612
|
+
}),
|
|
6613
|
+
params,
|
|
6614
|
+
{
|
|
6615
|
+
...options,
|
|
6616
|
+
enabled: !!placeId && !!spaceId && !!questionId && (options.enabled ?? true)
|
|
6617
|
+
}
|
|
6618
|
+
);
|
|
6619
|
+
};
|
|
6620
|
+
|
|
6621
|
+
// src/queries/bookings/questions/choices/useGetBookingSpaceQuestionChoice.ts
|
|
6622
|
+
var BOOKING_SPACE_QUESTION_CHOICE_QUERY_KEY = (placeId, spaceId, questionId, choiceId) => [
|
|
6623
|
+
...BOOKING_SPACE_QUESTION_CHOICES_QUERY_KEY(placeId, spaceId, questionId),
|
|
6624
|
+
choiceId
|
|
6625
|
+
];
|
|
6626
|
+
var SET_BOOKING_SPACE_QUESTION_CHOICE_QUERY_DATA = (client, keyParams, response) => {
|
|
6627
|
+
client.setQueryData(
|
|
6628
|
+
BOOKING_SPACE_QUESTION_CHOICE_QUERY_KEY(...keyParams),
|
|
6629
|
+
response
|
|
6630
|
+
);
|
|
6631
|
+
};
|
|
6632
|
+
var GetBookingSpaceQuestionChoice = async ({
|
|
6633
|
+
placeId,
|
|
6634
|
+
spaceId,
|
|
6635
|
+
questionId,
|
|
6636
|
+
choiceId,
|
|
6637
|
+
adminApiParams
|
|
6638
|
+
}) => {
|
|
6639
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
6640
|
+
const { data } = await adminApi.get(
|
|
6641
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/choices/${choiceId}`
|
|
6642
|
+
);
|
|
6643
|
+
return data;
|
|
6644
|
+
};
|
|
6645
|
+
var useGetBookingSpaceQuestionChoice = (placeId = "", spaceId = "", questionId = "", choiceId = "", options = {}) => {
|
|
6646
|
+
return useConnectedSingleQuery(
|
|
6647
|
+
BOOKING_SPACE_QUESTION_CHOICE_QUERY_KEY(
|
|
6648
|
+
placeId,
|
|
6649
|
+
spaceId,
|
|
6650
|
+
questionId,
|
|
6651
|
+
choiceId
|
|
6652
|
+
),
|
|
6653
|
+
(params) => GetBookingSpaceQuestionChoice({
|
|
6654
|
+
placeId,
|
|
6655
|
+
spaceId,
|
|
6656
|
+
questionId,
|
|
6657
|
+
choiceId,
|
|
6658
|
+
...params
|
|
6659
|
+
}),
|
|
6660
|
+
{
|
|
6661
|
+
...options,
|
|
6662
|
+
enabled: !!placeId && !!spaceId && !!questionId && !!choiceId && (options?.enabled ?? true)
|
|
6663
|
+
}
|
|
6664
|
+
);
|
|
6665
|
+
};
|
|
6666
|
+
|
|
6667
|
+
// src/queries/bookings/questions/choices/translations/useGetBookingSpaceQuestionChoiceTranslations.ts
|
|
6668
|
+
var BOOKING_SPACE_QUESTION_CHOICE_TRANSLATIONS_QUERY_KEY = (placeId, spaceId, questionId, choiceId) => [
|
|
6669
|
+
...BOOKING_SPACE_QUESTION_CHOICE_QUERY_KEY(
|
|
6670
|
+
placeId,
|
|
6671
|
+
spaceId,
|
|
6672
|
+
questionId,
|
|
6673
|
+
choiceId
|
|
6674
|
+
),
|
|
6675
|
+
"TRANSLATIONS"
|
|
6676
|
+
];
|
|
6677
|
+
var SET_BOOKING_SPACE_QUESTION_CHOICE_TRANSLATIONS_QUERY_DATA = (client, keyParams, response) => {
|
|
6678
|
+
client.setQueryData(
|
|
6679
|
+
BOOKING_SPACE_QUESTION_CHOICE_TRANSLATIONS_QUERY_KEY(...keyParams),
|
|
6680
|
+
response
|
|
6681
|
+
);
|
|
6682
|
+
};
|
|
6683
|
+
var GetBookingSpaceQuestionChoiceTranslations = async ({
|
|
6684
|
+
placeId,
|
|
6685
|
+
spaceId,
|
|
6686
|
+
questionId,
|
|
6687
|
+
choiceId,
|
|
6688
|
+
adminApiParams
|
|
6689
|
+
}) => {
|
|
6690
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
6691
|
+
const { data } = await adminApi.get(
|
|
6692
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/choices/${choiceId}/translations`
|
|
6693
|
+
);
|
|
6694
|
+
return data;
|
|
6695
|
+
};
|
|
6696
|
+
var useGetBookingSpaceQuestionChoiceTranslations = (placeId = "", spaceId = "", questionId = "", choiceId = "", options = {}) => {
|
|
6697
|
+
return useConnectedSingleQuery(
|
|
6698
|
+
BOOKING_SPACE_QUESTION_CHOICE_TRANSLATIONS_QUERY_KEY(
|
|
6699
|
+
placeId,
|
|
6700
|
+
spaceId,
|
|
6701
|
+
questionId,
|
|
6702
|
+
choiceId
|
|
6703
|
+
),
|
|
6704
|
+
(params) => GetBookingSpaceQuestionChoiceTranslations({
|
|
6705
|
+
placeId,
|
|
6706
|
+
spaceId,
|
|
6707
|
+
questionId,
|
|
6708
|
+
choiceId,
|
|
6709
|
+
...params
|
|
6710
|
+
}),
|
|
6711
|
+
{
|
|
6712
|
+
...options,
|
|
6713
|
+
enabled: !!placeId && !!spaceId && !!questionId && !!choiceId && (options?.enabled ?? true)
|
|
6714
|
+
}
|
|
6715
|
+
);
|
|
6716
|
+
};
|
|
6717
|
+
|
|
6718
|
+
// src/queries/bookings/questions/choices/translations/useGetBookingSpaceQuestionChoiceTranslation.ts
|
|
6719
|
+
var BOOKING_SPACE_QUESTION_CHOICE_TRANSLATION_QUERY_KEY = (placeId, spaceId, questionId, choiceId, locale) => [
|
|
6720
|
+
...BOOKING_SPACE_QUESTION_CHOICE_TRANSLATIONS_QUERY_KEY(
|
|
6721
|
+
placeId,
|
|
6722
|
+
spaceId,
|
|
6723
|
+
questionId,
|
|
6724
|
+
choiceId
|
|
6725
|
+
),
|
|
6726
|
+
locale
|
|
6727
|
+
];
|
|
6728
|
+
var SET_BOOKING_SPACE_QUESTION_CHOICE_TRANSLATION_QUERY_DATA = (client, keyParams, response) => {
|
|
6729
|
+
client.setQueryData(
|
|
6730
|
+
BOOKING_SPACE_QUESTION_CHOICE_TRANSLATION_QUERY_KEY(...keyParams),
|
|
6731
|
+
response
|
|
6732
|
+
);
|
|
6733
|
+
};
|
|
6734
|
+
var GetBookingSpaceQuestionChoiceTranslation = async ({
|
|
6735
|
+
placeId,
|
|
6736
|
+
spaceId,
|
|
6737
|
+
questionId,
|
|
6738
|
+
choiceId,
|
|
6739
|
+
locale,
|
|
6740
|
+
adminApiParams
|
|
6741
|
+
}) => {
|
|
6742
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
6743
|
+
const { data } = await adminApi.get(
|
|
6744
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/choices/${choiceId}/translations/${locale}`
|
|
6745
|
+
);
|
|
6746
|
+
return data;
|
|
6747
|
+
};
|
|
6748
|
+
var useGetBookingSpaceQuestionChoiceTranslation = (placeId = "", spaceId = "", questionId = "", choiceId = "", locale = "", options = {}) => {
|
|
6749
|
+
return useConnectedSingleQuery(
|
|
6750
|
+
BOOKING_SPACE_QUESTION_CHOICE_TRANSLATION_QUERY_KEY(
|
|
6751
|
+
placeId,
|
|
6752
|
+
spaceId,
|
|
6753
|
+
questionId,
|
|
6754
|
+
choiceId,
|
|
6755
|
+
locale
|
|
6756
|
+
),
|
|
6757
|
+
(params) => GetBookingSpaceQuestionChoiceTranslation({
|
|
6758
|
+
placeId,
|
|
6759
|
+
spaceId,
|
|
6760
|
+
questionId,
|
|
6761
|
+
choiceId,
|
|
6762
|
+
locale,
|
|
6763
|
+
...params
|
|
6764
|
+
}),
|
|
6765
|
+
{
|
|
6766
|
+
...options,
|
|
6767
|
+
enabled: !!placeId && !!spaceId && !!questionId && !!choiceId && !!locale && locale !== "en" && (options?.enabled ?? true)
|
|
6768
|
+
}
|
|
6769
|
+
);
|
|
6770
|
+
};
|
|
6771
|
+
|
|
6772
|
+
// src/queries/bookings/questions/translations/useGetBookingSpaceQuestionTranslations.ts
|
|
6773
|
+
var BOOKING_SPACE_QUESTION_TRANSLATIONS_QUERY_KEY = (placeId, spaceId, questionId) => [
|
|
6774
|
+
...BOOKING_SPACE_QUESTION_QUERY_KEY(placeId, spaceId, questionId),
|
|
6775
|
+
"TRANSLATIONS"
|
|
6776
|
+
];
|
|
6777
|
+
var SET_BOOKING_SPACE_QUESTION_TRANSLATIONS_QUERY_DATA = (client, keyParams, response) => {
|
|
6778
|
+
client.setQueryData(
|
|
6779
|
+
BOOKING_SPACE_QUESTION_TRANSLATIONS_QUERY_KEY(...keyParams),
|
|
6780
|
+
response
|
|
6781
|
+
);
|
|
6782
|
+
};
|
|
6783
|
+
var GetBookingSpaceQuestionTranslations = async ({
|
|
6784
|
+
placeId,
|
|
6785
|
+
spaceId,
|
|
6786
|
+
questionId,
|
|
6787
|
+
adminApiParams
|
|
6788
|
+
}) => {
|
|
6789
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
6790
|
+
const { data } = await adminApi.get(
|
|
6791
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/translations`
|
|
6792
|
+
);
|
|
6793
|
+
return data;
|
|
6794
|
+
};
|
|
6795
|
+
var useGetBookingSpaceQuestionTranslations = (placeId = "", spaceId = "", questionId = "", options = {}) => {
|
|
6796
|
+
return useConnectedSingleQuery(
|
|
6797
|
+
BOOKING_SPACE_QUESTION_TRANSLATIONS_QUERY_KEY(placeId, spaceId, questionId),
|
|
6798
|
+
(params) => GetBookingSpaceQuestionTranslations({
|
|
6799
|
+
placeId,
|
|
6800
|
+
spaceId,
|
|
6801
|
+
questionId,
|
|
6802
|
+
...params
|
|
6803
|
+
}),
|
|
6804
|
+
{
|
|
6805
|
+
...options,
|
|
6806
|
+
enabled: !!placeId && !!spaceId && !!questionId && (options?.enabled ?? true)
|
|
6807
|
+
}
|
|
6808
|
+
);
|
|
6809
|
+
};
|
|
6810
|
+
|
|
6811
|
+
// src/queries/bookings/questions/translations/useGetBookingSpaceQuestionTranslation.ts
|
|
6812
|
+
var BOOKING_SPACE_QUESTION_TRANSLATION_QUERY_KEY = (placeId, spaceId, questionId, locale) => [
|
|
6813
|
+
...BOOKING_SPACE_QUESTION_TRANSLATIONS_QUERY_KEY(
|
|
6814
|
+
placeId,
|
|
6815
|
+
spaceId,
|
|
6816
|
+
questionId
|
|
6817
|
+
),
|
|
6818
|
+
locale
|
|
6819
|
+
];
|
|
6820
|
+
var SET_BOOKING_SPACE_QUESTION_TRANSLATION_QUERY_DATA = (client, keyParams, response) => {
|
|
6821
|
+
client.setQueryData(
|
|
6822
|
+
BOOKING_SPACE_QUESTION_TRANSLATION_QUERY_KEY(...keyParams),
|
|
6823
|
+
response
|
|
6824
|
+
);
|
|
6825
|
+
};
|
|
6826
|
+
var GetBookingSpaceQuestionTranslation = async ({
|
|
6827
|
+
placeId,
|
|
6828
|
+
spaceId,
|
|
6829
|
+
questionId,
|
|
6830
|
+
locale,
|
|
6831
|
+
adminApiParams
|
|
6832
|
+
}) => {
|
|
6833
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
6834
|
+
const { data } = await adminApi.get(
|
|
6835
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/translations/${locale}`
|
|
6836
|
+
);
|
|
6837
|
+
return data;
|
|
6838
|
+
};
|
|
6839
|
+
var useGetBookingSpaceQuestionTranslation = (placeId = "", spaceId = "", questionId = "", locale = "", options = {}) => {
|
|
6840
|
+
return useConnectedSingleQuery(
|
|
6841
|
+
BOOKING_SPACE_QUESTION_TRANSLATION_QUERY_KEY(
|
|
6842
|
+
placeId,
|
|
6843
|
+
spaceId,
|
|
6844
|
+
questionId,
|
|
6845
|
+
locale
|
|
6846
|
+
),
|
|
6847
|
+
(params) => GetBookingSpaceQuestionTranslation({
|
|
6848
|
+
placeId,
|
|
6849
|
+
spaceId,
|
|
6850
|
+
questionId,
|
|
6851
|
+
locale,
|
|
6852
|
+
...params
|
|
6853
|
+
}),
|
|
6854
|
+
{
|
|
6855
|
+
...options,
|
|
6856
|
+
enabled: !!placeId && !!spaceId && !!questionId && !!locale && locale !== "en" && (options?.enabled ?? true)
|
|
6857
|
+
}
|
|
6858
|
+
);
|
|
6859
|
+
};
|
|
6860
|
+
|
|
6861
|
+
// src/queries/bookings/useGetBooking.ts
|
|
6862
|
+
var BOOKING_QUERY_KEY = (bookingId) => ["BOOKINGS", bookingId];
|
|
6863
|
+
var SET_BOOKING_QUERY_DATA = (client, keyParams, response) => {
|
|
6864
|
+
client.setQueryData(BOOKING_QUERY_KEY(...keyParams), response);
|
|
6865
|
+
};
|
|
6866
|
+
var GetBooking = async ({
|
|
6867
|
+
bookingId,
|
|
6868
|
+
adminApiParams
|
|
6869
|
+
}) => {
|
|
6870
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
6871
|
+
const { data } = await adminApi.get(`/bookings/${bookingId}`);
|
|
6872
|
+
return data;
|
|
6873
|
+
};
|
|
6874
|
+
var useGetBooking = (bookingId = "", options = {}) => {
|
|
6875
|
+
return useConnectedSingleQuery(
|
|
6876
|
+
BOOKING_QUERY_KEY(bookingId),
|
|
6877
|
+
(params) => GetBooking({ bookingId, ...params }),
|
|
6878
|
+
{
|
|
6879
|
+
...options,
|
|
6880
|
+
enabled: !!bookingId && (options?.enabled ?? true)
|
|
6881
|
+
}
|
|
6882
|
+
);
|
|
6883
|
+
};
|
|
6884
|
+
|
|
6361
6885
|
// src/queries/bookings/useGetBookingPlaceBookings.ts
|
|
6362
6886
|
var BOOKING_PLACE_BOOKINGS_QUERY_KEY = (placeId, past, status) => {
|
|
6363
6887
|
const keys = [...BOOKING_PLACE_QUERY_KEY(placeId), "BOOKINGS"];
|
|
@@ -6534,75 +7058,6 @@ var useGetBookingPlaceTranslation = (placeId = "", locale = "", options = {}) =>
|
|
|
6534
7058
|
);
|
|
6535
7059
|
};
|
|
6536
7060
|
|
|
6537
|
-
// src/queries/bookings/useGetBookingSpaces.ts
|
|
6538
|
-
var BOOKING_SPACES_QUERY_KEY = (placeId) => [
|
|
6539
|
-
...BOOKING_PLACE_QUERY_KEY(placeId),
|
|
6540
|
-
"BOOKING_SPACES"
|
|
6541
|
-
];
|
|
6542
|
-
var SET_BOOKING_SPACES_QUERY_DATA = (client, keyParams, response) => {
|
|
6543
|
-
client.setQueryData(BOOKING_SPACES_QUERY_KEY(...keyParams), response);
|
|
6544
|
-
};
|
|
6545
|
-
var GetBookingSpaces = async ({
|
|
6546
|
-
placeId,
|
|
6547
|
-
pageParam,
|
|
6548
|
-
pageSize,
|
|
6549
|
-
orderBy,
|
|
6550
|
-
search,
|
|
6551
|
-
adminApiParams
|
|
6552
|
-
}) => {
|
|
6553
|
-
const adminApi = await GetAdminAPI(adminApiParams);
|
|
6554
|
-
const { data } = await adminApi.get(`/bookings/places/${placeId}/spaces`, {
|
|
6555
|
-
params: {
|
|
6556
|
-
page: pageParam || void 0,
|
|
6557
|
-
pageSize: pageSize || void 0,
|
|
6558
|
-
orderBy: orderBy || void 0,
|
|
6559
|
-
search: search || void 0
|
|
6560
|
-
}
|
|
6561
|
-
});
|
|
6562
|
-
return data;
|
|
6563
|
-
};
|
|
6564
|
-
var useGetBookingSpaces = (placeId = "", params = {}, options = {}) => {
|
|
6565
|
-
return useConnectedInfiniteQuery(
|
|
6566
|
-
BOOKING_SPACES_QUERY_KEY(placeId),
|
|
6567
|
-
(params2) => GetBookingSpaces({ placeId, ...params2 }),
|
|
6568
|
-
params,
|
|
6569
|
-
{
|
|
6570
|
-
...options,
|
|
6571
|
-
enabled: !!placeId && (options?.enabled ?? true)
|
|
6572
|
-
}
|
|
6573
|
-
);
|
|
6574
|
-
};
|
|
6575
|
-
|
|
6576
|
-
// src/queries/bookings/useGetBookingSpace.ts
|
|
6577
|
-
var BOOKING_SPACE_QUERY_KEY = (placeId, spaceId) => [
|
|
6578
|
-
...BOOKING_SPACES_QUERY_KEY(placeId),
|
|
6579
|
-
spaceId
|
|
6580
|
-
];
|
|
6581
|
-
var SET_BOOKING_SPACE_QUERY_DATA = (client, keyParams, response) => {
|
|
6582
|
-
client.setQueryData(BOOKING_SPACE_QUERY_KEY(...keyParams), response);
|
|
6583
|
-
};
|
|
6584
|
-
var GetBookingSpace = async ({
|
|
6585
|
-
placeId,
|
|
6586
|
-
spaceId,
|
|
6587
|
-
adminApiParams
|
|
6588
|
-
}) => {
|
|
6589
|
-
const adminApi = await GetAdminAPI(adminApiParams);
|
|
6590
|
-
const { data } = await adminApi.get(
|
|
6591
|
-
`/bookings/places/${placeId}/spaces/${spaceId}`
|
|
6592
|
-
);
|
|
6593
|
-
return data;
|
|
6594
|
-
};
|
|
6595
|
-
var useGetBookingSpace = (placeId = "", spaceId = "", options = {}) => {
|
|
6596
|
-
return useConnectedSingleQuery(
|
|
6597
|
-
BOOKING_SPACE_QUERY_KEY(placeId, spaceId),
|
|
6598
|
-
(params) => GetBookingSpace({ placeId, spaceId, ...params }),
|
|
6599
|
-
{
|
|
6600
|
-
...options,
|
|
6601
|
-
enabled: !!placeId && !!spaceId && (options?.enabled ?? true)
|
|
6602
|
-
}
|
|
6603
|
-
);
|
|
6604
|
-
};
|
|
6605
|
-
|
|
6606
7061
|
// src/queries/bookings/useGetBookingSpaceAvailabilities.ts
|
|
6607
7062
|
var BOOKING_SPACE_AVAILABILITIES_QUERY_KEY = (placeId, spaceId) => [...BOOKING_SPACE_QUERY_KEY(placeId, spaceId), "AVAILABILITIES"];
|
|
6608
7063
|
var SET_BOOKING_SPACE_AVAILABILITIES_QUERY_DATA = (client, keyParams, response) => {
|
|
@@ -26013,6 +26468,478 @@ var useUpdateBookingPlace = (options = {}) => {
|
|
|
26013
26468
|
return useConnectedMutation(UpdateBookingPlace, options);
|
|
26014
26469
|
};
|
|
26015
26470
|
|
|
26471
|
+
// src/mutations/bookings/questions/choices/translations/useDeleteBookingSpaceQuestionChoiceTranslation.ts
|
|
26472
|
+
var DeleteBookingSpaceQuestionChoiceTranslation = async ({
|
|
26473
|
+
placeId,
|
|
26474
|
+
spaceId,
|
|
26475
|
+
questionId,
|
|
26476
|
+
choiceId,
|
|
26477
|
+
locale,
|
|
26478
|
+
adminApiParams,
|
|
26479
|
+
queryClient
|
|
26480
|
+
}) => {
|
|
26481
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
26482
|
+
const { data } = await connectedXM.delete(
|
|
26483
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/choices/${choiceId}/translations/${locale}`
|
|
26484
|
+
);
|
|
26485
|
+
if (queryClient && data.status === "ok") {
|
|
26486
|
+
queryClient.invalidateQueries({
|
|
26487
|
+
queryKey: BOOKING_SPACE_QUESTION_CHOICE_TRANSLATIONS_QUERY_KEY(
|
|
26488
|
+
placeId,
|
|
26489
|
+
spaceId,
|
|
26490
|
+
questionId,
|
|
26491
|
+
choiceId
|
|
26492
|
+
)
|
|
26493
|
+
});
|
|
26494
|
+
queryClient.invalidateQueries({
|
|
26495
|
+
queryKey: BOOKING_SPACE_QUESTION_CHOICE_TRANSLATION_QUERY_KEY(
|
|
26496
|
+
placeId,
|
|
26497
|
+
spaceId,
|
|
26498
|
+
questionId,
|
|
26499
|
+
choiceId,
|
|
26500
|
+
locale
|
|
26501
|
+
)
|
|
26502
|
+
});
|
|
26503
|
+
}
|
|
26504
|
+
return data;
|
|
26505
|
+
};
|
|
26506
|
+
var useDeleteBookingSpaceQuestionChoiceTranslation = (options = {}) => {
|
|
26507
|
+
return useConnectedMutation(DeleteBookingSpaceQuestionChoiceTranslation, options);
|
|
26508
|
+
};
|
|
26509
|
+
|
|
26510
|
+
// src/mutations/bookings/questions/choices/translations/useUpdateBookingSpaceQuestionChoiceTranslation.ts
|
|
26511
|
+
var UpdateBookingSpaceQuestionChoiceTranslation = async ({
|
|
26512
|
+
placeId,
|
|
26513
|
+
spaceId,
|
|
26514
|
+
questionId,
|
|
26515
|
+
choiceId,
|
|
26516
|
+
locale,
|
|
26517
|
+
choiceTranslation,
|
|
26518
|
+
adminApiParams,
|
|
26519
|
+
queryClient
|
|
26520
|
+
}) => {
|
|
26521
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
26522
|
+
const { data } = await connectedXM.put(
|
|
26523
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/choices/${choiceId}/translations/${locale}`,
|
|
26524
|
+
choiceTranslation
|
|
26525
|
+
);
|
|
26526
|
+
if (queryClient && data.status === "ok") {
|
|
26527
|
+
queryClient.invalidateQueries({
|
|
26528
|
+
queryKey: BOOKING_SPACE_QUESTION_CHOICE_TRANSLATIONS_QUERY_KEY(
|
|
26529
|
+
placeId,
|
|
26530
|
+
spaceId,
|
|
26531
|
+
questionId,
|
|
26532
|
+
choiceId
|
|
26533
|
+
)
|
|
26534
|
+
});
|
|
26535
|
+
SET_BOOKING_SPACE_QUESTION_CHOICE_TRANSLATION_QUERY_DATA(
|
|
26536
|
+
queryClient,
|
|
26537
|
+
[placeId, spaceId, questionId, choiceId, data.data?.locale ?? locale],
|
|
26538
|
+
data
|
|
26539
|
+
);
|
|
26540
|
+
}
|
|
26541
|
+
return data;
|
|
26542
|
+
};
|
|
26543
|
+
var useUpdateBookingSpaceQuestionChoiceTranslation = (options = {}) => {
|
|
26544
|
+
return useConnectedMutation(UpdateBookingSpaceQuestionChoiceTranslation, options);
|
|
26545
|
+
};
|
|
26546
|
+
|
|
26547
|
+
// src/mutations/bookings/questions/choices/useCreateBookingSpaceQuestionChoice.ts
|
|
26548
|
+
var CreateBookingSpaceQuestionChoice = async ({
|
|
26549
|
+
placeId,
|
|
26550
|
+
spaceId,
|
|
26551
|
+
questionId,
|
|
26552
|
+
choice,
|
|
26553
|
+
adminApiParams,
|
|
26554
|
+
queryClient
|
|
26555
|
+
}) => {
|
|
26556
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
26557
|
+
const { data } = await connectedXM.post(
|
|
26558
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/choices`,
|
|
26559
|
+
choice
|
|
26560
|
+
);
|
|
26561
|
+
if (queryClient && data.status === "ok") {
|
|
26562
|
+
queryClient.invalidateQueries({
|
|
26563
|
+
queryKey: BOOKING_SPACE_QUESTION_CHOICES_QUERY_KEY(
|
|
26564
|
+
placeId,
|
|
26565
|
+
spaceId,
|
|
26566
|
+
questionId
|
|
26567
|
+
)
|
|
26568
|
+
});
|
|
26569
|
+
if (data.data?.id) {
|
|
26570
|
+
SET_BOOKING_SPACE_QUESTION_CHOICE_QUERY_DATA(
|
|
26571
|
+
queryClient,
|
|
26572
|
+
[placeId, spaceId, questionId, data.data.id],
|
|
26573
|
+
data
|
|
26574
|
+
);
|
|
26575
|
+
}
|
|
26576
|
+
}
|
|
26577
|
+
return data;
|
|
26578
|
+
};
|
|
26579
|
+
var useCreateBookingSpaceQuestionChoice = (options = {}) => {
|
|
26580
|
+
return useConnectedMutation(CreateBookingSpaceQuestionChoice, options);
|
|
26581
|
+
};
|
|
26582
|
+
|
|
26583
|
+
// src/mutations/bookings/questions/choices/useDeleteBookingSpaceQuestionChoice.ts
|
|
26584
|
+
var DeleteBookingSpaceQuestionChoice = async ({
|
|
26585
|
+
placeId,
|
|
26586
|
+
spaceId,
|
|
26587
|
+
questionId,
|
|
26588
|
+
choiceId,
|
|
26589
|
+
adminApiParams,
|
|
26590
|
+
queryClient
|
|
26591
|
+
}) => {
|
|
26592
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
26593
|
+
const { data } = await connectedXM.delete(
|
|
26594
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/choices/${choiceId}`
|
|
26595
|
+
);
|
|
26596
|
+
if (queryClient && data.status === "ok") {
|
|
26597
|
+
queryClient.invalidateQueries({
|
|
26598
|
+
queryKey: BOOKING_SPACE_QUESTION_CHOICES_QUERY_KEY(
|
|
26599
|
+
placeId,
|
|
26600
|
+
spaceId,
|
|
26601
|
+
questionId
|
|
26602
|
+
)
|
|
26603
|
+
});
|
|
26604
|
+
queryClient.removeQueries({
|
|
26605
|
+
queryKey: BOOKING_SPACE_QUESTION_CHOICE_QUERY_KEY(
|
|
26606
|
+
placeId,
|
|
26607
|
+
spaceId,
|
|
26608
|
+
questionId,
|
|
26609
|
+
choiceId
|
|
26610
|
+
)
|
|
26611
|
+
});
|
|
26612
|
+
}
|
|
26613
|
+
return data;
|
|
26614
|
+
};
|
|
26615
|
+
var useDeleteBookingSpaceQuestionChoice = (options = {}) => {
|
|
26616
|
+
return useConnectedMutation(DeleteBookingSpaceQuestionChoice, options);
|
|
26617
|
+
};
|
|
26618
|
+
|
|
26619
|
+
// src/mutations/bookings/questions/choices/useReorderBookingSpaceQuestionChoices.ts
|
|
26620
|
+
var ReorderBookingSpaceQuestionChoices = async ({
|
|
26621
|
+
placeId,
|
|
26622
|
+
spaceId,
|
|
26623
|
+
questionId,
|
|
26624
|
+
choicesIds,
|
|
26625
|
+
adminApiParams,
|
|
26626
|
+
queryClient
|
|
26627
|
+
}) => {
|
|
26628
|
+
if (!questionId) throw new Error("Question ID is undefined");
|
|
26629
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
26630
|
+
const { data } = await connectedXM.put(
|
|
26631
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/choices/reorder`,
|
|
26632
|
+
{
|
|
26633
|
+
choicesIds
|
|
26634
|
+
}
|
|
26635
|
+
);
|
|
26636
|
+
if (queryClient && data.status === "ok") {
|
|
26637
|
+
SET_BOOKING_SPACE_QUESTION_CHOICES_QUERY_DATA(
|
|
26638
|
+
queryClient,
|
|
26639
|
+
[placeId, spaceId, questionId],
|
|
26640
|
+
data
|
|
26641
|
+
);
|
|
26642
|
+
queryClient.invalidateQueries({
|
|
26643
|
+
queryKey: BOOKING_SPACE_QUESTION_CHOICES_QUERY_KEY(
|
|
26644
|
+
placeId,
|
|
26645
|
+
spaceId,
|
|
26646
|
+
questionId
|
|
26647
|
+
)
|
|
26648
|
+
});
|
|
26649
|
+
}
|
|
26650
|
+
return data;
|
|
26651
|
+
};
|
|
26652
|
+
var useReorderBookingSpaceQuestionChoices = (options = {}) => {
|
|
26653
|
+
return useConnectedMutation(ReorderBookingSpaceQuestionChoices, options);
|
|
26654
|
+
};
|
|
26655
|
+
|
|
26656
|
+
// src/mutations/bookings/questions/choices/useUpdateBookingSpaceQuestionChoice.ts
|
|
26657
|
+
var UpdateBookingSpaceQuestionChoice = async ({
|
|
26658
|
+
placeId,
|
|
26659
|
+
spaceId,
|
|
26660
|
+
questionId,
|
|
26661
|
+
choiceId,
|
|
26662
|
+
choice,
|
|
26663
|
+
adminApiParams,
|
|
26664
|
+
queryClient
|
|
26665
|
+
}) => {
|
|
26666
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
26667
|
+
const { data } = await connectedXM.put(
|
|
26668
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/choices/${choiceId}`,
|
|
26669
|
+
choice
|
|
26670
|
+
);
|
|
26671
|
+
if (queryClient && data.status === "ok") {
|
|
26672
|
+
queryClient.invalidateQueries({
|
|
26673
|
+
queryKey: BOOKING_SPACE_QUESTION_CHOICES_QUERY_KEY(
|
|
26674
|
+
placeId,
|
|
26675
|
+
spaceId,
|
|
26676
|
+
questionId
|
|
26677
|
+
)
|
|
26678
|
+
});
|
|
26679
|
+
SET_BOOKING_SPACE_QUESTION_CHOICE_QUERY_DATA(
|
|
26680
|
+
queryClient,
|
|
26681
|
+
[placeId, spaceId, questionId, choiceId],
|
|
26682
|
+
data
|
|
26683
|
+
);
|
|
26684
|
+
}
|
|
26685
|
+
return data;
|
|
26686
|
+
};
|
|
26687
|
+
var useUpdateBookingSpaceQuestionChoice = (options = {}) => {
|
|
26688
|
+
return useConnectedMutation(UpdateBookingSpaceQuestionChoice, options);
|
|
26689
|
+
};
|
|
26690
|
+
|
|
26691
|
+
// src/mutations/bookings/questions/translations/useDeleteBookingSpaceQuestionTranslation.ts
|
|
26692
|
+
var DeleteBookingSpaceQuestionTranslation = async ({
|
|
26693
|
+
placeId,
|
|
26694
|
+
spaceId,
|
|
26695
|
+
questionId,
|
|
26696
|
+
locale,
|
|
26697
|
+
adminApiParams,
|
|
26698
|
+
queryClient
|
|
26699
|
+
}) => {
|
|
26700
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
26701
|
+
const { data } = await connectedXM.delete(
|
|
26702
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/translations/${locale}`
|
|
26703
|
+
);
|
|
26704
|
+
if (queryClient && data.status === "ok") {
|
|
26705
|
+
queryClient.invalidateQueries({
|
|
26706
|
+
queryKey: BOOKING_SPACE_QUESTION_TRANSLATIONS_QUERY_KEY(
|
|
26707
|
+
placeId,
|
|
26708
|
+
spaceId,
|
|
26709
|
+
questionId
|
|
26710
|
+
)
|
|
26711
|
+
});
|
|
26712
|
+
queryClient.invalidateQueries({
|
|
26713
|
+
queryKey: BOOKING_SPACE_QUESTION_TRANSLATION_QUERY_KEY(
|
|
26714
|
+
placeId,
|
|
26715
|
+
spaceId,
|
|
26716
|
+
questionId,
|
|
26717
|
+
locale
|
|
26718
|
+
)
|
|
26719
|
+
});
|
|
26720
|
+
}
|
|
26721
|
+
return data;
|
|
26722
|
+
};
|
|
26723
|
+
var useDeleteBookingSpaceQuestionTranslation = (options = {}) => {
|
|
26724
|
+
return useConnectedMutation(DeleteBookingSpaceQuestionTranslation, options);
|
|
26725
|
+
};
|
|
26726
|
+
|
|
26727
|
+
// src/mutations/bookings/questions/translations/useUpdateBookingSpaceQuestionTranslation.ts
|
|
26728
|
+
var UpdateBookingSpaceQuestionTranslation = async ({
|
|
26729
|
+
placeId,
|
|
26730
|
+
spaceId,
|
|
26731
|
+
questionId,
|
|
26732
|
+
locale,
|
|
26733
|
+
questionTranslation,
|
|
26734
|
+
adminApiParams,
|
|
26735
|
+
queryClient
|
|
26736
|
+
}) => {
|
|
26737
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
26738
|
+
const { data } = await connectedXM.put(
|
|
26739
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/translations/${locale}`,
|
|
26740
|
+
questionTranslation
|
|
26741
|
+
);
|
|
26742
|
+
if (queryClient && data.status === "ok") {
|
|
26743
|
+
queryClient.invalidateQueries({
|
|
26744
|
+
queryKey: BOOKING_SPACE_QUESTION_QUERY_KEY(placeId, spaceId, questionId)
|
|
26745
|
+
});
|
|
26746
|
+
queryClient.invalidateQueries({
|
|
26747
|
+
queryKey: BOOKING_SPACE_QUESTION_TRANSLATIONS_QUERY_KEY(
|
|
26748
|
+
placeId,
|
|
26749
|
+
spaceId,
|
|
26750
|
+
questionId
|
|
26751
|
+
)
|
|
26752
|
+
});
|
|
26753
|
+
queryClient.invalidateQueries({
|
|
26754
|
+
queryKey: BOOKING_SPACE_QUESTION_TRANSLATION_QUERY_KEY(
|
|
26755
|
+
placeId,
|
|
26756
|
+
spaceId,
|
|
26757
|
+
questionId,
|
|
26758
|
+
locale
|
|
26759
|
+
)
|
|
26760
|
+
});
|
|
26761
|
+
queryClient.invalidateQueries({
|
|
26762
|
+
queryKey: BOOKING_SPACE_QUESTIONS_QUERY_KEY(placeId, spaceId)
|
|
26763
|
+
});
|
|
26764
|
+
}
|
|
26765
|
+
return data;
|
|
26766
|
+
};
|
|
26767
|
+
var useUpdateBookingSpaceQuestionTranslation = (options = {}) => {
|
|
26768
|
+
return useConnectedMutation(UpdateBookingSpaceQuestionTranslation, options);
|
|
26769
|
+
};
|
|
26770
|
+
|
|
26771
|
+
// src/mutations/bookings/questions/useAttachBookingSpaceQuestionSearchList.ts
|
|
26772
|
+
var AttachBookingSpaceQuestionSearchList = async ({
|
|
26773
|
+
placeId,
|
|
26774
|
+
spaceId,
|
|
26775
|
+
questionId,
|
|
26776
|
+
searchList,
|
|
26777
|
+
adminApiParams,
|
|
26778
|
+
queryClient
|
|
26779
|
+
}) => {
|
|
26780
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
26781
|
+
const { data } = await connectedXM.put(
|
|
26782
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/searchlist`,
|
|
26783
|
+
searchList
|
|
26784
|
+
);
|
|
26785
|
+
if (queryClient && data.status === "ok") {
|
|
26786
|
+
queryClient.invalidateQueries({
|
|
26787
|
+
queryKey: BOOKING_SPACE_QUESTION_QUERY_KEY(placeId, spaceId, questionId)
|
|
26788
|
+
});
|
|
26789
|
+
queryClient.invalidateQueries({
|
|
26790
|
+
queryKey: SEARCHLIST_QUERY_KEY(searchList.searchListId)
|
|
26791
|
+
});
|
|
26792
|
+
queryClient.invalidateQueries({
|
|
26793
|
+
predicate: (query) => {
|
|
26794
|
+
return query.queryKey[0] === "SEARCHLIST_VALUES";
|
|
26795
|
+
}
|
|
26796
|
+
});
|
|
26797
|
+
}
|
|
26798
|
+
return data;
|
|
26799
|
+
};
|
|
26800
|
+
var useAttachBookingSpaceQuestionSearchList = (options = {}) => {
|
|
26801
|
+
return useConnectedMutation(AttachBookingSpaceQuestionSearchList, options);
|
|
26802
|
+
};
|
|
26803
|
+
|
|
26804
|
+
// src/mutations/bookings/questions/useCreateBookingSpaceQuestion.ts
|
|
26805
|
+
var CreateBookingSpaceQuestion = async ({
|
|
26806
|
+
placeId,
|
|
26807
|
+
spaceId,
|
|
26808
|
+
question,
|
|
26809
|
+
adminApiParams,
|
|
26810
|
+
queryClient
|
|
26811
|
+
}) => {
|
|
26812
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
26813
|
+
const { data } = await connectedXM.post(`/bookings/places/${placeId}/spaces/${spaceId}/questions`, question);
|
|
26814
|
+
if (queryClient && data.status === "ok") {
|
|
26815
|
+
queryClient.invalidateQueries({
|
|
26816
|
+
queryKey: BOOKING_SPACE_QUESTIONS_QUERY_KEY(placeId, spaceId)
|
|
26817
|
+
});
|
|
26818
|
+
if (data.data?.id) {
|
|
26819
|
+
SET_BOOKING_SPACE_QUESTION_QUERY_DATA(
|
|
26820
|
+
queryClient,
|
|
26821
|
+
[placeId, spaceId, data.data.id],
|
|
26822
|
+
data
|
|
26823
|
+
);
|
|
26824
|
+
}
|
|
26825
|
+
}
|
|
26826
|
+
return data;
|
|
26827
|
+
};
|
|
26828
|
+
var useCreateBookingSpaceQuestion = (options = {}) => {
|
|
26829
|
+
return useConnectedMutation(CreateBookingSpaceQuestion, options);
|
|
26830
|
+
};
|
|
26831
|
+
|
|
26832
|
+
// src/mutations/bookings/questions/useDeleteBookingSpaceQuestion.ts
|
|
26833
|
+
var DeleteBookingSpaceQuestion = async ({
|
|
26834
|
+
placeId,
|
|
26835
|
+
spaceId,
|
|
26836
|
+
questionId,
|
|
26837
|
+
adminApiParams,
|
|
26838
|
+
queryClient
|
|
26839
|
+
}) => {
|
|
26840
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
26841
|
+
const { data } = await connectedXM.delete(
|
|
26842
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}`
|
|
26843
|
+
);
|
|
26844
|
+
if (queryClient && data.status === "ok") {
|
|
26845
|
+
queryClient.invalidateQueries({
|
|
26846
|
+
queryKey: BOOKING_SPACE_QUESTIONS_QUERY_KEY(placeId, spaceId)
|
|
26847
|
+
});
|
|
26848
|
+
queryClient.removeQueries({
|
|
26849
|
+
queryKey: BOOKING_SPACE_QUESTION_QUERY_KEY(placeId, spaceId, questionId)
|
|
26850
|
+
});
|
|
26851
|
+
}
|
|
26852
|
+
return data;
|
|
26853
|
+
};
|
|
26854
|
+
var useDeleteBookingSpaceQuestion = (options = {}) => {
|
|
26855
|
+
return useConnectedMutation(DeleteBookingSpaceQuestion, options);
|
|
26856
|
+
};
|
|
26857
|
+
|
|
26858
|
+
// src/mutations/bookings/questions/useDetachBookingSpaceQuestionSearchList.ts
|
|
26859
|
+
var DetachBookingSpaceQuestionSearchList = async ({
|
|
26860
|
+
placeId,
|
|
26861
|
+
spaceId,
|
|
26862
|
+
questionId,
|
|
26863
|
+
adminApiParams,
|
|
26864
|
+
queryClient
|
|
26865
|
+
}) => {
|
|
26866
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
26867
|
+
const { data } = await connectedXM.delete(
|
|
26868
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/searchlist`
|
|
26869
|
+
);
|
|
26870
|
+
if (queryClient && data.status === "ok") {
|
|
26871
|
+
queryClient.invalidateQueries({
|
|
26872
|
+
queryKey: BOOKING_SPACE_QUESTION_QUERY_KEY(placeId, spaceId, questionId)
|
|
26873
|
+
});
|
|
26874
|
+
queryClient.invalidateQueries({
|
|
26875
|
+
queryKey: SEARCHLISTS_QUERY_KEY()
|
|
26876
|
+
});
|
|
26877
|
+
queryClient.invalidateQueries({
|
|
26878
|
+
predicate: (query) => {
|
|
26879
|
+
return query.queryKey[0] === "SEARCHLIST_VALUES";
|
|
26880
|
+
}
|
|
26881
|
+
});
|
|
26882
|
+
}
|
|
26883
|
+
return data;
|
|
26884
|
+
};
|
|
26885
|
+
var useDetachBookingSpaceQuestionSearchList = (options = {}) => {
|
|
26886
|
+
return useConnectedMutation(DetachBookingSpaceQuestionSearchList, options);
|
|
26887
|
+
};
|
|
26888
|
+
|
|
26889
|
+
// src/mutations/bookings/questions/useReorderBookingSpaceQuestions.ts
|
|
26890
|
+
var ReorderBookingSpaceQuestions = async ({
|
|
26891
|
+
placeId,
|
|
26892
|
+
spaceId,
|
|
26893
|
+
questionsIds,
|
|
26894
|
+
adminApiParams,
|
|
26895
|
+
queryClient
|
|
26896
|
+
}) => {
|
|
26897
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
26898
|
+
const { data } = await connectedXM.put(`/bookings/places/${placeId}/spaces/${spaceId}/questions/reorder`, {
|
|
26899
|
+
questionsIds
|
|
26900
|
+
});
|
|
26901
|
+
if (queryClient && data.status === "ok") {
|
|
26902
|
+
queryClient.invalidateQueries({
|
|
26903
|
+
queryKey: BOOKING_SPACE_QUESTIONS_QUERY_KEY(placeId, spaceId)
|
|
26904
|
+
});
|
|
26905
|
+
}
|
|
26906
|
+
return data;
|
|
26907
|
+
};
|
|
26908
|
+
var useReorderBookingSpaceQuestions = (options = {}) => {
|
|
26909
|
+
return useConnectedMutation(ReorderBookingSpaceQuestions, options);
|
|
26910
|
+
};
|
|
26911
|
+
|
|
26912
|
+
// src/mutations/bookings/questions/useUpdateBookingSpaceQuestion.ts
|
|
26913
|
+
var UpdateBookingSpaceQuestion = async ({
|
|
26914
|
+
placeId,
|
|
26915
|
+
spaceId,
|
|
26916
|
+
questionId,
|
|
26917
|
+
question,
|
|
26918
|
+
adminApiParams,
|
|
26919
|
+
queryClient
|
|
26920
|
+
}) => {
|
|
26921
|
+
if (!questionId) throw new Error("Question ID Undefined");
|
|
26922
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
26923
|
+
const { data } = await connectedXM.put(
|
|
26924
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}`,
|
|
26925
|
+
question
|
|
26926
|
+
);
|
|
26927
|
+
if (queryClient && data.status === "ok") {
|
|
26928
|
+
queryClient.invalidateQueries({
|
|
26929
|
+
queryKey: BOOKING_SPACE_QUESTIONS_QUERY_KEY(placeId, spaceId)
|
|
26930
|
+
});
|
|
26931
|
+
SET_BOOKING_SPACE_QUESTION_QUERY_DATA(
|
|
26932
|
+
queryClient,
|
|
26933
|
+
[placeId, spaceId, questionId || data.data.id],
|
|
26934
|
+
data
|
|
26935
|
+
);
|
|
26936
|
+
}
|
|
26937
|
+
return data;
|
|
26938
|
+
};
|
|
26939
|
+
var useUpdateBookingSpaceQuestion = (options = {}) => {
|
|
26940
|
+
return useConnectedMutation(UpdateBookingSpaceQuestion, options);
|
|
26941
|
+
};
|
|
26942
|
+
|
|
26016
26943
|
// src/mutations/bookings/spaces/translations/useDeleteBookingSpaceTranslation.ts
|
|
26017
26944
|
var DeleteBookingSpaceTranslation = async ({
|
|
26018
26945
|
placeId,
|
|
@@ -26134,6 +27061,7 @@ var UpdateBookingSpace = async ({
|
|
|
26134
27061
|
...bookingSpace,
|
|
26135
27062
|
id: void 0,
|
|
26136
27063
|
image: void 0,
|
|
27064
|
+
meeting: void 0,
|
|
26137
27065
|
createdAt: void 0,
|
|
26138
27066
|
updatedAt: void 0
|
|
26139
27067
|
}
|
|
@@ -41621,6 +42549,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
41621
42549
|
AdvertisementType,
|
|
41622
42550
|
AppendInfiniteQuery,
|
|
41623
42551
|
ArchiveActivity,
|
|
42552
|
+
AttachBookingSpaceQuestionSearchList,
|
|
41624
42553
|
AttachEventQuestionSearchList,
|
|
41625
42554
|
AttachEventSessionQuestionSearchList,
|
|
41626
42555
|
AttachSurveyQuestionSearchList,
|
|
@@ -41645,9 +42574,18 @@ var useUpdateTier = (options = {}) => {
|
|
|
41645
42574
|
BOOKING_SPACE_BOOKINGS_QUERY_KEY,
|
|
41646
42575
|
BOOKING_SPACE_PAYMENTS_QUERY_KEY,
|
|
41647
42576
|
BOOKING_SPACE_QUERY_KEY,
|
|
42577
|
+
BOOKING_SPACE_QUESTIONS_QUERY_KEY,
|
|
42578
|
+
BOOKING_SPACE_QUESTION_CHOICES_QUERY_KEY,
|
|
42579
|
+
BOOKING_SPACE_QUESTION_CHOICE_QUERY_KEY,
|
|
42580
|
+
BOOKING_SPACE_QUESTION_CHOICE_TRANSLATIONS_QUERY_KEY,
|
|
42581
|
+
BOOKING_SPACE_QUESTION_CHOICE_TRANSLATION_QUERY_KEY,
|
|
42582
|
+
BOOKING_SPACE_QUESTION_QUERY_KEY,
|
|
42583
|
+
BOOKING_SPACE_QUESTION_TRANSLATIONS_QUERY_KEY,
|
|
42584
|
+
BOOKING_SPACE_QUESTION_TRANSLATION_QUERY_KEY,
|
|
41648
42585
|
BOOKING_SPACE_SLOTS_QUERY_KEY,
|
|
41649
42586
|
BOOKING_SPACE_TRANSLATIONS_QUERY_KEY,
|
|
41650
42587
|
BOOKING_SPACE_TRANSLATION_QUERY_KEY,
|
|
42588
|
+
BookingSpaceQuestionType,
|
|
41651
42589
|
BulkUploadSearchListValues,
|
|
41652
42590
|
CHANNELS_QUERY_KEY,
|
|
41653
42591
|
CHANNEL_ACTIVITIES_QUERY_KEY,
|
|
@@ -41704,6 +42642,8 @@ var useUpdateTier = (options = {}) => {
|
|
|
41704
42642
|
CreateBookingSpace,
|
|
41705
42643
|
CreateBookingSpaceAvailability,
|
|
41706
42644
|
CreateBookingSpaceBlackout,
|
|
42645
|
+
CreateBookingSpaceQuestion,
|
|
42646
|
+
CreateBookingSpaceQuestionChoice,
|
|
41707
42647
|
CreateChannel,
|
|
41708
42648
|
CreateChannelContent,
|
|
41709
42649
|
CreateChannelContentGuest,
|
|
@@ -41822,6 +42762,10 @@ var useUpdateTier = (options = {}) => {
|
|
|
41822
42762
|
DeleteBookingSpace,
|
|
41823
42763
|
DeleteBookingSpaceAvailability,
|
|
41824
42764
|
DeleteBookingSpaceBlackout,
|
|
42765
|
+
DeleteBookingSpaceQuestion,
|
|
42766
|
+
DeleteBookingSpaceQuestionChoice,
|
|
42767
|
+
DeleteBookingSpaceQuestionChoiceTranslation,
|
|
42768
|
+
DeleteBookingSpaceQuestionTranslation,
|
|
41825
42769
|
DeleteBookingSpaceTranslation,
|
|
41826
42770
|
DeleteChannel,
|
|
41827
42771
|
DeleteChannelContent,
|
|
@@ -41960,6 +42904,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
41960
42904
|
DeleteUserImage,
|
|
41961
42905
|
DeleteVideo,
|
|
41962
42906
|
DeleteVideoCaption,
|
|
42907
|
+
DetachBookingSpaceQuestionSearchList,
|
|
41963
42908
|
DetachEventQuestionSearchList,
|
|
41964
42909
|
DetachEventSessionQuestionSearchList,
|
|
41965
42910
|
DetachSurveyQuestionSearchList,
|
|
@@ -42283,6 +43228,14 @@ var useUpdateTier = (options = {}) => {
|
|
|
42283
43228
|
GetBookingSpaceBlackouts,
|
|
42284
43229
|
GetBookingSpaceBookings,
|
|
42285
43230
|
GetBookingSpacePayments,
|
|
43231
|
+
GetBookingSpaceQuestion,
|
|
43232
|
+
GetBookingSpaceQuestionChoice,
|
|
43233
|
+
GetBookingSpaceQuestionChoiceTranslation,
|
|
43234
|
+
GetBookingSpaceQuestionChoiceTranslations,
|
|
43235
|
+
GetBookingSpaceQuestionChoices,
|
|
43236
|
+
GetBookingSpaceQuestionTranslation,
|
|
43237
|
+
GetBookingSpaceQuestionTranslations,
|
|
43238
|
+
GetBookingSpaceQuestions,
|
|
42286
43239
|
GetBookingSpaceSlots,
|
|
42287
43240
|
GetBookingSpaceTranslation,
|
|
42288
43241
|
GetBookingSpaceTranslations,
|
|
@@ -42928,6 +43881,8 @@ var useUpdateTier = (options = {}) => {
|
|
|
42928
43881
|
RemoveSurveySectionQuestion,
|
|
42929
43882
|
RemoveSurveySession,
|
|
42930
43883
|
RemoveTierAccounts,
|
|
43884
|
+
ReorderBookingSpaceQuestionChoices,
|
|
43885
|
+
ReorderBookingSpaceQuestions,
|
|
42931
43886
|
ReorderEventFaqSectionQuestions,
|
|
42932
43887
|
ReorderEventFollowupQuestions,
|
|
42933
43888
|
ReorderEventQuestionChoiceSubQuestions,
|
|
@@ -43036,6 +43991,14 @@ var useUpdateTier = (options = {}) => {
|
|
|
43036
43991
|
SET_BOOKING_SPACE_BOOKINGS_QUERY_DATA,
|
|
43037
43992
|
SET_BOOKING_SPACE_PAYMENTS_QUERY_DATA,
|
|
43038
43993
|
SET_BOOKING_SPACE_QUERY_DATA,
|
|
43994
|
+
SET_BOOKING_SPACE_QUESTIONS_QUERY_DATA,
|
|
43995
|
+
SET_BOOKING_SPACE_QUESTION_CHOICES_QUERY_DATA,
|
|
43996
|
+
SET_BOOKING_SPACE_QUESTION_CHOICE_QUERY_DATA,
|
|
43997
|
+
SET_BOOKING_SPACE_QUESTION_CHOICE_TRANSLATIONS_QUERY_DATA,
|
|
43998
|
+
SET_BOOKING_SPACE_QUESTION_CHOICE_TRANSLATION_QUERY_DATA,
|
|
43999
|
+
SET_BOOKING_SPACE_QUESTION_QUERY_DATA,
|
|
44000
|
+
SET_BOOKING_SPACE_QUESTION_TRANSLATIONS_QUERY_DATA,
|
|
44001
|
+
SET_BOOKING_SPACE_QUESTION_TRANSLATION_QUERY_DATA,
|
|
43039
44002
|
SET_BOOKING_SPACE_SLOTS_QUERY_DATA,
|
|
43040
44003
|
SET_BOOKING_SPACE_TRANSLATIONS_QUERY_DATA,
|
|
43041
44004
|
SET_BOOKING_SPACE_TRANSLATION_QUERY_DATA,
|
|
@@ -43587,6 +44550,10 @@ var useUpdateTier = (options = {}) => {
|
|
|
43587
44550
|
UpdateBookingSpace,
|
|
43588
44551
|
UpdateBookingSpaceAvailability,
|
|
43589
44552
|
UpdateBookingSpaceBlackout,
|
|
44553
|
+
UpdateBookingSpaceQuestion,
|
|
44554
|
+
UpdateBookingSpaceQuestionChoice,
|
|
44555
|
+
UpdateBookingSpaceQuestionChoiceTranslation,
|
|
44556
|
+
UpdateBookingSpaceQuestionTranslation,
|
|
43590
44557
|
UpdateBookingSpaceTranslation,
|
|
43591
44558
|
UpdateChannel,
|
|
43592
44559
|
UpdateChannelContent,
|
|
@@ -43830,6 +44797,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
43830
44797
|
useAddSurveySectionQuestion,
|
|
43831
44798
|
useAddSurveySession,
|
|
43832
44799
|
useArchiveActivity,
|
|
44800
|
+
useAttachBookingSpaceQuestionSearchList,
|
|
43833
44801
|
useAttachEventQuestionSearchList,
|
|
43834
44802
|
useAttachEventSessionQuestionSearchList,
|
|
43835
44803
|
useAttachSurveyQuestionSearchList,
|
|
@@ -43863,6 +44831,8 @@ var useUpdateTier = (options = {}) => {
|
|
|
43863
44831
|
useCreateBookingSpace,
|
|
43864
44832
|
useCreateBookingSpaceAvailability,
|
|
43865
44833
|
useCreateBookingSpaceBlackout,
|
|
44834
|
+
useCreateBookingSpaceQuestion,
|
|
44835
|
+
useCreateBookingSpaceQuestionChoice,
|
|
43866
44836
|
useCreateChannel,
|
|
43867
44837
|
useCreateChannelContent,
|
|
43868
44838
|
useCreateChannelContentGuest,
|
|
@@ -43972,6 +44942,10 @@ var useUpdateTier = (options = {}) => {
|
|
|
43972
44942
|
useDeleteBookingSpace,
|
|
43973
44943
|
useDeleteBookingSpaceAvailability,
|
|
43974
44944
|
useDeleteBookingSpaceBlackout,
|
|
44945
|
+
useDeleteBookingSpaceQuestion,
|
|
44946
|
+
useDeleteBookingSpaceQuestionChoice,
|
|
44947
|
+
useDeleteBookingSpaceQuestionChoiceTranslation,
|
|
44948
|
+
useDeleteBookingSpaceQuestionTranslation,
|
|
43975
44949
|
useDeleteBookingSpaceTranslation,
|
|
43976
44950
|
useDeleteChannel,
|
|
43977
44951
|
useDeleteChannelContent,
|
|
@@ -44110,6 +45084,7 @@ var useUpdateTier = (options = {}) => {
|
|
|
44110
45084
|
useDeleteUserImage,
|
|
44111
45085
|
useDeleteVideo,
|
|
44112
45086
|
useDeleteVideoCaption,
|
|
45087
|
+
useDetachBookingSpaceQuestionSearchList,
|
|
44113
45088
|
useDetachEventQuestionSearchList,
|
|
44114
45089
|
useDetachEventSessionQuestionSearchList,
|
|
44115
45090
|
useDetachSurveyQuestionSearchList,
|
|
@@ -44183,6 +45158,14 @@ var useUpdateTier = (options = {}) => {
|
|
|
44183
45158
|
useGetBookingSpaceBlackouts,
|
|
44184
45159
|
useGetBookingSpaceBookings,
|
|
44185
45160
|
useGetBookingSpacePayments,
|
|
45161
|
+
useGetBookingSpaceQuestion,
|
|
45162
|
+
useGetBookingSpaceQuestionChoice,
|
|
45163
|
+
useGetBookingSpaceQuestionChoiceTranslation,
|
|
45164
|
+
useGetBookingSpaceQuestionChoiceTranslations,
|
|
45165
|
+
useGetBookingSpaceQuestionChoices,
|
|
45166
|
+
useGetBookingSpaceQuestionTranslation,
|
|
45167
|
+
useGetBookingSpaceQuestionTranslations,
|
|
45168
|
+
useGetBookingSpaceQuestions,
|
|
44186
45169
|
useGetBookingSpaceSlots,
|
|
44187
45170
|
useGetBookingSpaceTranslation,
|
|
44188
45171
|
useGetBookingSpaceTranslations,
|
|
@@ -44710,6 +45693,8 @@ var useUpdateTier = (options = {}) => {
|
|
|
44710
45693
|
useRemoveSurveySectionQuestion,
|
|
44711
45694
|
useRemoveSurveySession,
|
|
44712
45695
|
useRemoveTierAccounts,
|
|
45696
|
+
useReorderBookingSpaceQuestionChoices,
|
|
45697
|
+
useReorderBookingSpaceQuestions,
|
|
44713
45698
|
useReorderEventFaqSectionQuestions,
|
|
44714
45699
|
useReorderEventFollowupQuestions,
|
|
44715
45700
|
useReorderEventQuestionChoiceSubQuestions,
|
|
@@ -44758,6 +45743,10 @@ var useUpdateTier = (options = {}) => {
|
|
|
44758
45743
|
useUpdateBookingSpace,
|
|
44759
45744
|
useUpdateBookingSpaceAvailability,
|
|
44760
45745
|
useUpdateBookingSpaceBlackout,
|
|
45746
|
+
useUpdateBookingSpaceQuestion,
|
|
45747
|
+
useUpdateBookingSpaceQuestionChoice,
|
|
45748
|
+
useUpdateBookingSpaceQuestionChoiceTranslation,
|
|
45749
|
+
useUpdateBookingSpaceQuestionTranslation,
|
|
44761
45750
|
useUpdateBookingSpaceTranslation,
|
|
44762
45751
|
useUpdateChannel,
|
|
44763
45752
|
useUpdateChannelContent,
|