@connectedxm/admin 6.22.1 → 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.js CHANGED
@@ -665,6 +665,21 @@ var DayOfWeek = /* @__PURE__ */ ((DayOfWeek2) => {
665
665
  DayOfWeek2["saturday"] = "saturday";
666
666
  return DayOfWeek2;
667
667
  })(DayOfWeek || {});
668
+ var BookingSpaceQuestionType = /* @__PURE__ */ ((BookingSpaceQuestionType2) => {
669
+ BookingSpaceQuestionType2["text"] = "text";
670
+ BookingSpaceQuestionType2["textarea"] = "textarea";
671
+ BookingSpaceQuestionType2["number"] = "number";
672
+ BookingSpaceQuestionType2["time"] = "time";
673
+ BookingSpaceQuestionType2["date"] = "date";
674
+ BookingSpaceQuestionType2["toggle"] = "toggle";
675
+ BookingSpaceQuestionType2["select"] = "select";
676
+ BookingSpaceQuestionType2["radio"] = "radio";
677
+ BookingSpaceQuestionType2["checkbox"] = "checkbox";
678
+ BookingSpaceQuestionType2["search"] = "search";
679
+ BookingSpaceQuestionType2["file"] = "file";
680
+ BookingSpaceQuestionType2["location"] = "location";
681
+ return BookingSpaceQuestionType2;
682
+ })(BookingSpaceQuestionType || {});
668
683
  var WidgetCategory = /* @__PURE__ */ ((WidgetCategory2) => {
669
684
  WidgetCategory2["organization"] = "organization";
670
685
  WidgetCategory2["event"] = "event";
@@ -2826,30 +2841,6 @@ var useGetBenefitClicks = (benefitId = "", params = {}, options = {}) => {
2826
2841
  );
2827
2842
  };
2828
2843
 
2829
- // src/queries/bookings/useGetBooking.ts
2830
- var BOOKING_QUERY_KEY = (bookingId) => ["BOOKINGS", bookingId];
2831
- var SET_BOOKING_QUERY_DATA = (client, keyParams, response) => {
2832
- client.setQueryData(BOOKING_QUERY_KEY(...keyParams), response);
2833
- };
2834
- var GetBooking = async ({
2835
- bookingId,
2836
- adminApiParams
2837
- }) => {
2838
- const adminApi = await GetAdminAPI(adminApiParams);
2839
- const { data } = await adminApi.get(`/bookings/${bookingId}`);
2840
- return data;
2841
- };
2842
- var useGetBooking = (bookingId = "", options = {}) => {
2843
- return useConnectedSingleQuery(
2844
- BOOKING_QUERY_KEY(bookingId),
2845
- (params) => GetBooking({ bookingId, ...params }),
2846
- {
2847
- ...options,
2848
- enabled: !!bookingId && (options?.enabled ?? true)
2849
- }
2850
- );
2851
- };
2852
-
2853
2844
  // src/queries/bookings/useGetBookingPlaces.ts
2854
2845
  var BOOKING_PLACES_QUERY_KEY = () => ["BOOKING_PLACES"];
2855
2846
  var SET_BOOKING_PLACES_QUERY_DATA = (client, keyParams, response) => {
@@ -2909,6 +2900,478 @@ var useGetBookingPlace = (placeId = "", options = {}) => {
2909
2900
  );
2910
2901
  };
2911
2902
 
2903
+ // src/queries/bookings/useGetBookingSpaces.ts
2904
+ var BOOKING_SPACES_QUERY_KEY = (placeId) => [
2905
+ ...BOOKING_PLACE_QUERY_KEY(placeId),
2906
+ "BOOKING_SPACES"
2907
+ ];
2908
+ var SET_BOOKING_SPACES_QUERY_DATA = (client, keyParams, response) => {
2909
+ client.setQueryData(BOOKING_SPACES_QUERY_KEY(...keyParams), response);
2910
+ };
2911
+ var GetBookingSpaces = async ({
2912
+ placeId,
2913
+ pageParam,
2914
+ pageSize,
2915
+ orderBy,
2916
+ search,
2917
+ adminApiParams
2918
+ }) => {
2919
+ const adminApi = await GetAdminAPI(adminApiParams);
2920
+ const { data } = await adminApi.get(`/bookings/places/${placeId}/spaces`, {
2921
+ params: {
2922
+ page: pageParam || void 0,
2923
+ pageSize: pageSize || void 0,
2924
+ orderBy: orderBy || void 0,
2925
+ search: search || void 0
2926
+ }
2927
+ });
2928
+ return data;
2929
+ };
2930
+ var useGetBookingSpaces = (placeId = "", params = {}, options = {}) => {
2931
+ return useConnectedInfiniteQuery(
2932
+ BOOKING_SPACES_QUERY_KEY(placeId),
2933
+ (params2) => GetBookingSpaces({ placeId, ...params2 }),
2934
+ params,
2935
+ {
2936
+ ...options,
2937
+ enabled: !!placeId && (options?.enabled ?? true)
2938
+ }
2939
+ );
2940
+ };
2941
+
2942
+ // src/queries/bookings/useGetBookingSpace.ts
2943
+ var BOOKING_SPACE_QUERY_KEY = (placeId, spaceId) => [
2944
+ ...BOOKING_SPACES_QUERY_KEY(placeId),
2945
+ spaceId
2946
+ ];
2947
+ var SET_BOOKING_SPACE_QUERY_DATA = (client, keyParams, response) => {
2948
+ client.setQueryData(BOOKING_SPACE_QUERY_KEY(...keyParams), response);
2949
+ };
2950
+ var GetBookingSpace = async ({
2951
+ placeId,
2952
+ spaceId,
2953
+ adminApiParams
2954
+ }) => {
2955
+ const adminApi = await GetAdminAPI(adminApiParams);
2956
+ const { data } = await adminApi.get(
2957
+ `/bookings/places/${placeId}/spaces/${spaceId}`
2958
+ );
2959
+ return data;
2960
+ };
2961
+ var useGetBookingSpace = (placeId = "", spaceId = "", options = {}) => {
2962
+ return useConnectedSingleQuery(
2963
+ BOOKING_SPACE_QUERY_KEY(placeId, spaceId),
2964
+ (params) => GetBookingSpace({ placeId, spaceId, ...params }),
2965
+ {
2966
+ ...options,
2967
+ enabled: !!placeId && !!spaceId && (options?.enabled ?? true)
2968
+ }
2969
+ );
2970
+ };
2971
+
2972
+ // src/queries/bookings/questions/useGetBookingSpaceQuestions.ts
2973
+ var BOOKING_SPACE_QUESTIONS_QUERY_KEY = (placeId, spaceId) => [...BOOKING_SPACE_QUERY_KEY(placeId, spaceId), "QUESTIONS"];
2974
+ var SET_BOOKING_SPACE_QUESTIONS_QUERY_DATA = (client, keyParams, response, search = "") => {
2975
+ client.setQueryData(
2976
+ [
2977
+ ...BOOKING_SPACE_QUESTIONS_QUERY_KEY(...keyParams),
2978
+ ...GetBaseInfiniteQueryKeys(search)
2979
+ ],
2980
+ {
2981
+ pages: [response],
2982
+ pageParams: [null]
2983
+ }
2984
+ );
2985
+ };
2986
+ var GetBookingSpaceQuestions = async ({
2987
+ placeId,
2988
+ spaceId,
2989
+ pageParam,
2990
+ pageSize,
2991
+ orderBy,
2992
+ search,
2993
+ adminApiParams
2994
+ }) => {
2995
+ const adminApi = await GetAdminAPI(adminApiParams);
2996
+ const { data } = await adminApi.get(
2997
+ `/bookings/places/${placeId}/spaces/${spaceId}/questions`,
2998
+ {
2999
+ params: {
3000
+ page: pageParam || void 0,
3001
+ pageSize: pageSize || void 0,
3002
+ orderBy: orderBy || void 0,
3003
+ search: search || void 0
3004
+ }
3005
+ }
3006
+ );
3007
+ return data;
3008
+ };
3009
+ var useGetBookingSpaceQuestions = (placeId = "", spaceId = "", params = {}, options = {}) => {
3010
+ return useConnectedInfiniteQuery(
3011
+ BOOKING_SPACE_QUESTIONS_QUERY_KEY(placeId, spaceId),
3012
+ (queryParams) => GetBookingSpaceQuestions({
3013
+ ...queryParams,
3014
+ placeId,
3015
+ spaceId
3016
+ }),
3017
+ params,
3018
+ {
3019
+ ...options,
3020
+ enabled: !!placeId && !!spaceId && (options.enabled ?? true)
3021
+ }
3022
+ );
3023
+ };
3024
+
3025
+ // src/queries/bookings/questions/useGetBookingSpaceQuestion.ts
3026
+ var BOOKING_SPACE_QUESTION_QUERY_KEY = (placeId, spaceId, questionId) => [...BOOKING_SPACE_QUESTIONS_QUERY_KEY(placeId, spaceId), questionId];
3027
+ var SET_BOOKING_SPACE_QUESTION_QUERY_DATA = (client, keyParams, response) => {
3028
+ client.setQueryData(BOOKING_SPACE_QUESTION_QUERY_KEY(...keyParams), response);
3029
+ };
3030
+ var GetBookingSpaceQuestion = async ({
3031
+ placeId,
3032
+ spaceId,
3033
+ questionId,
3034
+ adminApiParams
3035
+ }) => {
3036
+ const adminApi = await GetAdminAPI(adminApiParams);
3037
+ const { data } = await adminApi.get(
3038
+ `/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}`
3039
+ );
3040
+ return data;
3041
+ };
3042
+ var useGetBookingSpaceQuestion = (placeId = "", spaceId = "", questionId = "", options = {}) => {
3043
+ return useConnectedSingleQuery(
3044
+ BOOKING_SPACE_QUESTION_QUERY_KEY(placeId, spaceId, questionId),
3045
+ (params) => GetBookingSpaceQuestion({ placeId, spaceId, questionId, ...params }),
3046
+ {
3047
+ ...options,
3048
+ enabled: !!placeId && !!spaceId && !!questionId && (options?.enabled ?? true)
3049
+ }
3050
+ );
3051
+ };
3052
+
3053
+ // src/queries/bookings/questions/choices/useGetBookingSpaceQuestionChoices.ts
3054
+ var BOOKING_SPACE_QUESTION_CHOICES_QUERY_KEY = (placeId, spaceId, questionId) => [
3055
+ ...BOOKING_SPACE_QUESTION_QUERY_KEY(placeId, spaceId, questionId),
3056
+ "CHOICES"
3057
+ ];
3058
+ var SET_BOOKING_SPACE_QUESTION_CHOICES_QUERY_DATA = (client, keyParams, response) => {
3059
+ client.setQueryData(
3060
+ [
3061
+ ...BOOKING_SPACE_QUESTION_CHOICES_QUERY_KEY(...keyParams),
3062
+ ...GetBaseInfiniteQueryKeys("")
3063
+ ],
3064
+ {
3065
+ pages: [response],
3066
+ pageParams: [null]
3067
+ }
3068
+ );
3069
+ };
3070
+ var GetBookingSpaceQuestionChoices = async ({
3071
+ placeId,
3072
+ spaceId,
3073
+ questionId,
3074
+ pageParam,
3075
+ pageSize,
3076
+ orderBy,
3077
+ search,
3078
+ adminApiParams
3079
+ }) => {
3080
+ const adminApi = await GetAdminAPI(adminApiParams);
3081
+ const { data } = await adminApi.get(
3082
+ `/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/choices`,
3083
+ {
3084
+ params: {
3085
+ page: pageParam || void 0,
3086
+ pageSize: pageSize || void 0,
3087
+ orderBy: orderBy || void 0,
3088
+ search: search || void 0
3089
+ }
3090
+ }
3091
+ );
3092
+ return data;
3093
+ };
3094
+ var useGetBookingSpaceQuestionChoices = (placeId = "", spaceId = "", questionId = "", params = {}, options = {}) => {
3095
+ return useConnectedInfiniteQuery(
3096
+ BOOKING_SPACE_QUESTION_CHOICES_QUERY_KEY(placeId, spaceId, questionId),
3097
+ (queryParams) => GetBookingSpaceQuestionChoices({
3098
+ ...queryParams,
3099
+ placeId,
3100
+ spaceId,
3101
+ questionId
3102
+ }),
3103
+ params,
3104
+ {
3105
+ ...options,
3106
+ enabled: !!placeId && !!spaceId && !!questionId && (options.enabled ?? true)
3107
+ }
3108
+ );
3109
+ };
3110
+
3111
+ // src/queries/bookings/questions/choices/useGetBookingSpaceQuestionChoice.ts
3112
+ var BOOKING_SPACE_QUESTION_CHOICE_QUERY_KEY = (placeId, spaceId, questionId, choiceId) => [
3113
+ ...BOOKING_SPACE_QUESTION_CHOICES_QUERY_KEY(placeId, spaceId, questionId),
3114
+ choiceId
3115
+ ];
3116
+ var SET_BOOKING_SPACE_QUESTION_CHOICE_QUERY_DATA = (client, keyParams, response) => {
3117
+ client.setQueryData(
3118
+ BOOKING_SPACE_QUESTION_CHOICE_QUERY_KEY(...keyParams),
3119
+ response
3120
+ );
3121
+ };
3122
+ var GetBookingSpaceQuestionChoice = async ({
3123
+ placeId,
3124
+ spaceId,
3125
+ questionId,
3126
+ choiceId,
3127
+ adminApiParams
3128
+ }) => {
3129
+ const adminApi = await GetAdminAPI(adminApiParams);
3130
+ const { data } = await adminApi.get(
3131
+ `/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/choices/${choiceId}`
3132
+ );
3133
+ return data;
3134
+ };
3135
+ var useGetBookingSpaceQuestionChoice = (placeId = "", spaceId = "", questionId = "", choiceId = "", options = {}) => {
3136
+ return useConnectedSingleQuery(
3137
+ BOOKING_SPACE_QUESTION_CHOICE_QUERY_KEY(
3138
+ placeId,
3139
+ spaceId,
3140
+ questionId,
3141
+ choiceId
3142
+ ),
3143
+ (params) => GetBookingSpaceQuestionChoice({
3144
+ placeId,
3145
+ spaceId,
3146
+ questionId,
3147
+ choiceId,
3148
+ ...params
3149
+ }),
3150
+ {
3151
+ ...options,
3152
+ enabled: !!placeId && !!spaceId && !!questionId && !!choiceId && (options?.enabled ?? true)
3153
+ }
3154
+ );
3155
+ };
3156
+
3157
+ // src/queries/bookings/questions/choices/translations/useGetBookingSpaceQuestionChoiceTranslations.ts
3158
+ var BOOKING_SPACE_QUESTION_CHOICE_TRANSLATIONS_QUERY_KEY = (placeId, spaceId, questionId, choiceId) => [
3159
+ ...BOOKING_SPACE_QUESTION_CHOICE_QUERY_KEY(
3160
+ placeId,
3161
+ spaceId,
3162
+ questionId,
3163
+ choiceId
3164
+ ),
3165
+ "TRANSLATIONS"
3166
+ ];
3167
+ var SET_BOOKING_SPACE_QUESTION_CHOICE_TRANSLATIONS_QUERY_DATA = (client, keyParams, response) => {
3168
+ client.setQueryData(
3169
+ BOOKING_SPACE_QUESTION_CHOICE_TRANSLATIONS_QUERY_KEY(...keyParams),
3170
+ response
3171
+ );
3172
+ };
3173
+ var GetBookingSpaceQuestionChoiceTranslations = async ({
3174
+ placeId,
3175
+ spaceId,
3176
+ questionId,
3177
+ choiceId,
3178
+ adminApiParams
3179
+ }) => {
3180
+ const adminApi = await GetAdminAPI(adminApiParams);
3181
+ const { data } = await adminApi.get(
3182
+ `/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/choices/${choiceId}/translations`
3183
+ );
3184
+ return data;
3185
+ };
3186
+ var useGetBookingSpaceQuestionChoiceTranslations = (placeId = "", spaceId = "", questionId = "", choiceId = "", options = {}) => {
3187
+ return useConnectedSingleQuery(
3188
+ BOOKING_SPACE_QUESTION_CHOICE_TRANSLATIONS_QUERY_KEY(
3189
+ placeId,
3190
+ spaceId,
3191
+ questionId,
3192
+ choiceId
3193
+ ),
3194
+ (params) => GetBookingSpaceQuestionChoiceTranslations({
3195
+ placeId,
3196
+ spaceId,
3197
+ questionId,
3198
+ choiceId,
3199
+ ...params
3200
+ }),
3201
+ {
3202
+ ...options,
3203
+ enabled: !!placeId && !!spaceId && !!questionId && !!choiceId && (options?.enabled ?? true)
3204
+ }
3205
+ );
3206
+ };
3207
+
3208
+ // src/queries/bookings/questions/choices/translations/useGetBookingSpaceQuestionChoiceTranslation.ts
3209
+ var BOOKING_SPACE_QUESTION_CHOICE_TRANSLATION_QUERY_KEY = (placeId, spaceId, questionId, choiceId, locale) => [
3210
+ ...BOOKING_SPACE_QUESTION_CHOICE_TRANSLATIONS_QUERY_KEY(
3211
+ placeId,
3212
+ spaceId,
3213
+ questionId,
3214
+ choiceId
3215
+ ),
3216
+ locale
3217
+ ];
3218
+ var SET_BOOKING_SPACE_QUESTION_CHOICE_TRANSLATION_QUERY_DATA = (client, keyParams, response) => {
3219
+ client.setQueryData(
3220
+ BOOKING_SPACE_QUESTION_CHOICE_TRANSLATION_QUERY_KEY(...keyParams),
3221
+ response
3222
+ );
3223
+ };
3224
+ var GetBookingSpaceQuestionChoiceTranslation = async ({
3225
+ placeId,
3226
+ spaceId,
3227
+ questionId,
3228
+ choiceId,
3229
+ locale,
3230
+ adminApiParams
3231
+ }) => {
3232
+ const adminApi = await GetAdminAPI(adminApiParams);
3233
+ const { data } = await adminApi.get(
3234
+ `/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/choices/${choiceId}/translations/${locale}`
3235
+ );
3236
+ return data;
3237
+ };
3238
+ var useGetBookingSpaceQuestionChoiceTranslation = (placeId = "", spaceId = "", questionId = "", choiceId = "", locale = "", options = {}) => {
3239
+ return useConnectedSingleQuery(
3240
+ BOOKING_SPACE_QUESTION_CHOICE_TRANSLATION_QUERY_KEY(
3241
+ placeId,
3242
+ spaceId,
3243
+ questionId,
3244
+ choiceId,
3245
+ locale
3246
+ ),
3247
+ (params) => GetBookingSpaceQuestionChoiceTranslation({
3248
+ placeId,
3249
+ spaceId,
3250
+ questionId,
3251
+ choiceId,
3252
+ locale,
3253
+ ...params
3254
+ }),
3255
+ {
3256
+ ...options,
3257
+ enabled: !!placeId && !!spaceId && !!questionId && !!choiceId && !!locale && locale !== "en" && (options?.enabled ?? true)
3258
+ }
3259
+ );
3260
+ };
3261
+
3262
+ // src/queries/bookings/questions/translations/useGetBookingSpaceQuestionTranslations.ts
3263
+ var BOOKING_SPACE_QUESTION_TRANSLATIONS_QUERY_KEY = (placeId, spaceId, questionId) => [
3264
+ ...BOOKING_SPACE_QUESTION_QUERY_KEY(placeId, spaceId, questionId),
3265
+ "TRANSLATIONS"
3266
+ ];
3267
+ var SET_BOOKING_SPACE_QUESTION_TRANSLATIONS_QUERY_DATA = (client, keyParams, response) => {
3268
+ client.setQueryData(
3269
+ BOOKING_SPACE_QUESTION_TRANSLATIONS_QUERY_KEY(...keyParams),
3270
+ response
3271
+ );
3272
+ };
3273
+ var GetBookingSpaceQuestionTranslations = async ({
3274
+ placeId,
3275
+ spaceId,
3276
+ questionId,
3277
+ adminApiParams
3278
+ }) => {
3279
+ const adminApi = await GetAdminAPI(adminApiParams);
3280
+ const { data } = await adminApi.get(
3281
+ `/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/translations`
3282
+ );
3283
+ return data;
3284
+ };
3285
+ var useGetBookingSpaceQuestionTranslations = (placeId = "", spaceId = "", questionId = "", options = {}) => {
3286
+ return useConnectedSingleQuery(
3287
+ BOOKING_SPACE_QUESTION_TRANSLATIONS_QUERY_KEY(placeId, spaceId, questionId),
3288
+ (params) => GetBookingSpaceQuestionTranslations({
3289
+ placeId,
3290
+ spaceId,
3291
+ questionId,
3292
+ ...params
3293
+ }),
3294
+ {
3295
+ ...options,
3296
+ enabled: !!placeId && !!spaceId && !!questionId && (options?.enabled ?? true)
3297
+ }
3298
+ );
3299
+ };
3300
+
3301
+ // src/queries/bookings/questions/translations/useGetBookingSpaceQuestionTranslation.ts
3302
+ var BOOKING_SPACE_QUESTION_TRANSLATION_QUERY_KEY = (placeId, spaceId, questionId, locale) => [
3303
+ ...BOOKING_SPACE_QUESTION_TRANSLATIONS_QUERY_KEY(
3304
+ placeId,
3305
+ spaceId,
3306
+ questionId
3307
+ ),
3308
+ locale
3309
+ ];
3310
+ var SET_BOOKING_SPACE_QUESTION_TRANSLATION_QUERY_DATA = (client, keyParams, response) => {
3311
+ client.setQueryData(
3312
+ BOOKING_SPACE_QUESTION_TRANSLATION_QUERY_KEY(...keyParams),
3313
+ response
3314
+ );
3315
+ };
3316
+ var GetBookingSpaceQuestionTranslation = async ({
3317
+ placeId,
3318
+ spaceId,
3319
+ questionId,
3320
+ locale,
3321
+ adminApiParams
3322
+ }) => {
3323
+ const adminApi = await GetAdminAPI(adminApiParams);
3324
+ const { data } = await adminApi.get(
3325
+ `/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/translations/${locale}`
3326
+ );
3327
+ return data;
3328
+ };
3329
+ var useGetBookingSpaceQuestionTranslation = (placeId = "", spaceId = "", questionId = "", locale = "", options = {}) => {
3330
+ return useConnectedSingleQuery(
3331
+ BOOKING_SPACE_QUESTION_TRANSLATION_QUERY_KEY(
3332
+ placeId,
3333
+ spaceId,
3334
+ questionId,
3335
+ locale
3336
+ ),
3337
+ (params) => GetBookingSpaceQuestionTranslation({
3338
+ placeId,
3339
+ spaceId,
3340
+ questionId,
3341
+ locale,
3342
+ ...params
3343
+ }),
3344
+ {
3345
+ ...options,
3346
+ enabled: !!placeId && !!spaceId && !!questionId && !!locale && locale !== "en" && (options?.enabled ?? true)
3347
+ }
3348
+ );
3349
+ };
3350
+
3351
+ // src/queries/bookings/useGetBooking.ts
3352
+ var BOOKING_QUERY_KEY = (bookingId) => ["BOOKINGS", bookingId];
3353
+ var SET_BOOKING_QUERY_DATA = (client, keyParams, response) => {
3354
+ client.setQueryData(BOOKING_QUERY_KEY(...keyParams), response);
3355
+ };
3356
+ var GetBooking = async ({
3357
+ bookingId,
3358
+ adminApiParams
3359
+ }) => {
3360
+ const adminApi = await GetAdminAPI(adminApiParams);
3361
+ const { data } = await adminApi.get(`/bookings/${bookingId}`);
3362
+ return data;
3363
+ };
3364
+ var useGetBooking = (bookingId = "", options = {}) => {
3365
+ return useConnectedSingleQuery(
3366
+ BOOKING_QUERY_KEY(bookingId),
3367
+ (params) => GetBooking({ bookingId, ...params }),
3368
+ {
3369
+ ...options,
3370
+ enabled: !!bookingId && (options?.enabled ?? true)
3371
+ }
3372
+ );
3373
+ };
3374
+
2912
3375
  // src/queries/bookings/useGetBookingPlaceBookings.ts
2913
3376
  var BOOKING_PLACE_BOOKINGS_QUERY_KEY = (placeId, past, status) => {
2914
3377
  const keys = [...BOOKING_PLACE_QUERY_KEY(placeId), "BOOKINGS"];
@@ -3085,75 +3548,6 @@ var useGetBookingPlaceTranslation = (placeId = "", locale = "", options = {}) =>
3085
3548
  );
3086
3549
  };
3087
3550
 
3088
- // src/queries/bookings/useGetBookingSpaces.ts
3089
- var BOOKING_SPACES_QUERY_KEY = (placeId) => [
3090
- ...BOOKING_PLACE_QUERY_KEY(placeId),
3091
- "BOOKING_SPACES"
3092
- ];
3093
- var SET_BOOKING_SPACES_QUERY_DATA = (client, keyParams, response) => {
3094
- client.setQueryData(BOOKING_SPACES_QUERY_KEY(...keyParams), response);
3095
- };
3096
- var GetBookingSpaces = async ({
3097
- placeId,
3098
- pageParam,
3099
- pageSize,
3100
- orderBy,
3101
- search,
3102
- adminApiParams
3103
- }) => {
3104
- const adminApi = await GetAdminAPI(adminApiParams);
3105
- const { data } = await adminApi.get(`/bookings/places/${placeId}/spaces`, {
3106
- params: {
3107
- page: pageParam || void 0,
3108
- pageSize: pageSize || void 0,
3109
- orderBy: orderBy || void 0,
3110
- search: search || void 0
3111
- }
3112
- });
3113
- return data;
3114
- };
3115
- var useGetBookingSpaces = (placeId = "", params = {}, options = {}) => {
3116
- return useConnectedInfiniteQuery(
3117
- BOOKING_SPACES_QUERY_KEY(placeId),
3118
- (params2) => GetBookingSpaces({ placeId, ...params2 }),
3119
- params,
3120
- {
3121
- ...options,
3122
- enabled: !!placeId && (options?.enabled ?? true)
3123
- }
3124
- );
3125
- };
3126
-
3127
- // src/queries/bookings/useGetBookingSpace.ts
3128
- var BOOKING_SPACE_QUERY_KEY = (placeId, spaceId) => [
3129
- ...BOOKING_SPACES_QUERY_KEY(placeId),
3130
- spaceId
3131
- ];
3132
- var SET_BOOKING_SPACE_QUERY_DATA = (client, keyParams, response) => {
3133
- client.setQueryData(BOOKING_SPACE_QUERY_KEY(...keyParams), response);
3134
- };
3135
- var GetBookingSpace = async ({
3136
- placeId,
3137
- spaceId,
3138
- adminApiParams
3139
- }) => {
3140
- const adminApi = await GetAdminAPI(adminApiParams);
3141
- const { data } = await adminApi.get(
3142
- `/bookings/places/${placeId}/spaces/${spaceId}`
3143
- );
3144
- return data;
3145
- };
3146
- var useGetBookingSpace = (placeId = "", spaceId = "", options = {}) => {
3147
- return useConnectedSingleQuery(
3148
- BOOKING_SPACE_QUERY_KEY(placeId, spaceId),
3149
- (params) => GetBookingSpace({ placeId, spaceId, ...params }),
3150
- {
3151
- ...options,
3152
- enabled: !!placeId && !!spaceId && (options?.enabled ?? true)
3153
- }
3154
- );
3155
- };
3156
-
3157
3551
  // src/queries/bookings/useGetBookingSpaceAvailabilities.ts
3158
3552
  var BOOKING_SPACE_AVAILABILITIES_QUERY_KEY = (placeId, spaceId) => [...BOOKING_SPACE_QUERY_KEY(placeId, spaceId), "AVAILABILITIES"];
3159
3553
  var SET_BOOKING_SPACE_AVAILABILITIES_QUERY_DATA = (client, keyParams, response) => {
@@ -22569,6 +22963,478 @@ var useUpdateBookingPlace = (options = {}) => {
22569
22963
  return useConnectedMutation(UpdateBookingPlace, options);
22570
22964
  };
22571
22965
 
22966
+ // src/mutations/bookings/questions/choices/translations/useDeleteBookingSpaceQuestionChoiceTranslation.ts
22967
+ var DeleteBookingSpaceQuestionChoiceTranslation = async ({
22968
+ placeId,
22969
+ spaceId,
22970
+ questionId,
22971
+ choiceId,
22972
+ locale,
22973
+ adminApiParams,
22974
+ queryClient
22975
+ }) => {
22976
+ const connectedXM = await GetAdminAPI(adminApiParams);
22977
+ const { data } = await connectedXM.delete(
22978
+ `/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/choices/${choiceId}/translations/${locale}`
22979
+ );
22980
+ if (queryClient && data.status === "ok") {
22981
+ queryClient.invalidateQueries({
22982
+ queryKey: BOOKING_SPACE_QUESTION_CHOICE_TRANSLATIONS_QUERY_KEY(
22983
+ placeId,
22984
+ spaceId,
22985
+ questionId,
22986
+ choiceId
22987
+ )
22988
+ });
22989
+ queryClient.invalidateQueries({
22990
+ queryKey: BOOKING_SPACE_QUESTION_CHOICE_TRANSLATION_QUERY_KEY(
22991
+ placeId,
22992
+ spaceId,
22993
+ questionId,
22994
+ choiceId,
22995
+ locale
22996
+ )
22997
+ });
22998
+ }
22999
+ return data;
23000
+ };
23001
+ var useDeleteBookingSpaceQuestionChoiceTranslation = (options = {}) => {
23002
+ return useConnectedMutation(DeleteBookingSpaceQuestionChoiceTranslation, options);
23003
+ };
23004
+
23005
+ // src/mutations/bookings/questions/choices/translations/useUpdateBookingSpaceQuestionChoiceTranslation.ts
23006
+ var UpdateBookingSpaceQuestionChoiceTranslation = async ({
23007
+ placeId,
23008
+ spaceId,
23009
+ questionId,
23010
+ choiceId,
23011
+ locale,
23012
+ choiceTranslation,
23013
+ adminApiParams,
23014
+ queryClient
23015
+ }) => {
23016
+ const connectedXM = await GetAdminAPI(adminApiParams);
23017
+ const { data } = await connectedXM.put(
23018
+ `/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/choices/${choiceId}/translations/${locale}`,
23019
+ choiceTranslation
23020
+ );
23021
+ if (queryClient && data.status === "ok") {
23022
+ queryClient.invalidateQueries({
23023
+ queryKey: BOOKING_SPACE_QUESTION_CHOICE_TRANSLATIONS_QUERY_KEY(
23024
+ placeId,
23025
+ spaceId,
23026
+ questionId,
23027
+ choiceId
23028
+ )
23029
+ });
23030
+ SET_BOOKING_SPACE_QUESTION_CHOICE_TRANSLATION_QUERY_DATA(
23031
+ queryClient,
23032
+ [placeId, spaceId, questionId, choiceId, data.data?.locale ?? locale],
23033
+ data
23034
+ );
23035
+ }
23036
+ return data;
23037
+ };
23038
+ var useUpdateBookingSpaceQuestionChoiceTranslation = (options = {}) => {
23039
+ return useConnectedMutation(UpdateBookingSpaceQuestionChoiceTranslation, options);
23040
+ };
23041
+
23042
+ // src/mutations/bookings/questions/choices/useCreateBookingSpaceQuestionChoice.ts
23043
+ var CreateBookingSpaceQuestionChoice = async ({
23044
+ placeId,
23045
+ spaceId,
23046
+ questionId,
23047
+ choice,
23048
+ adminApiParams,
23049
+ queryClient
23050
+ }) => {
23051
+ const connectedXM = await GetAdminAPI(adminApiParams);
23052
+ const { data } = await connectedXM.post(
23053
+ `/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/choices`,
23054
+ choice
23055
+ );
23056
+ if (queryClient && data.status === "ok") {
23057
+ queryClient.invalidateQueries({
23058
+ queryKey: BOOKING_SPACE_QUESTION_CHOICES_QUERY_KEY(
23059
+ placeId,
23060
+ spaceId,
23061
+ questionId
23062
+ )
23063
+ });
23064
+ if (data.data?.id) {
23065
+ SET_BOOKING_SPACE_QUESTION_CHOICE_QUERY_DATA(
23066
+ queryClient,
23067
+ [placeId, spaceId, questionId, data.data.id],
23068
+ data
23069
+ );
23070
+ }
23071
+ }
23072
+ return data;
23073
+ };
23074
+ var useCreateBookingSpaceQuestionChoice = (options = {}) => {
23075
+ return useConnectedMutation(CreateBookingSpaceQuestionChoice, options);
23076
+ };
23077
+
23078
+ // src/mutations/bookings/questions/choices/useDeleteBookingSpaceQuestionChoice.ts
23079
+ var DeleteBookingSpaceQuestionChoice = async ({
23080
+ placeId,
23081
+ spaceId,
23082
+ questionId,
23083
+ choiceId,
23084
+ adminApiParams,
23085
+ queryClient
23086
+ }) => {
23087
+ const connectedXM = await GetAdminAPI(adminApiParams);
23088
+ const { data } = await connectedXM.delete(
23089
+ `/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/choices/${choiceId}`
23090
+ );
23091
+ if (queryClient && data.status === "ok") {
23092
+ queryClient.invalidateQueries({
23093
+ queryKey: BOOKING_SPACE_QUESTION_CHOICES_QUERY_KEY(
23094
+ placeId,
23095
+ spaceId,
23096
+ questionId
23097
+ )
23098
+ });
23099
+ queryClient.removeQueries({
23100
+ queryKey: BOOKING_SPACE_QUESTION_CHOICE_QUERY_KEY(
23101
+ placeId,
23102
+ spaceId,
23103
+ questionId,
23104
+ choiceId
23105
+ )
23106
+ });
23107
+ }
23108
+ return data;
23109
+ };
23110
+ var useDeleteBookingSpaceQuestionChoice = (options = {}) => {
23111
+ return useConnectedMutation(DeleteBookingSpaceQuestionChoice, options);
23112
+ };
23113
+
23114
+ // src/mutations/bookings/questions/choices/useReorderBookingSpaceQuestionChoices.ts
23115
+ var ReorderBookingSpaceQuestionChoices = async ({
23116
+ placeId,
23117
+ spaceId,
23118
+ questionId,
23119
+ choicesIds,
23120
+ adminApiParams,
23121
+ queryClient
23122
+ }) => {
23123
+ if (!questionId) throw new Error("Question ID is undefined");
23124
+ const connectedXM = await GetAdminAPI(adminApiParams);
23125
+ const { data } = await connectedXM.put(
23126
+ `/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/choices/reorder`,
23127
+ {
23128
+ choicesIds
23129
+ }
23130
+ );
23131
+ if (queryClient && data.status === "ok") {
23132
+ SET_BOOKING_SPACE_QUESTION_CHOICES_QUERY_DATA(
23133
+ queryClient,
23134
+ [placeId, spaceId, questionId],
23135
+ data
23136
+ );
23137
+ queryClient.invalidateQueries({
23138
+ queryKey: BOOKING_SPACE_QUESTION_CHOICES_QUERY_KEY(
23139
+ placeId,
23140
+ spaceId,
23141
+ questionId
23142
+ )
23143
+ });
23144
+ }
23145
+ return data;
23146
+ };
23147
+ var useReorderBookingSpaceQuestionChoices = (options = {}) => {
23148
+ return useConnectedMutation(ReorderBookingSpaceQuestionChoices, options);
23149
+ };
23150
+
23151
+ // src/mutations/bookings/questions/choices/useUpdateBookingSpaceQuestionChoice.ts
23152
+ var UpdateBookingSpaceQuestionChoice = async ({
23153
+ placeId,
23154
+ spaceId,
23155
+ questionId,
23156
+ choiceId,
23157
+ choice,
23158
+ adminApiParams,
23159
+ queryClient
23160
+ }) => {
23161
+ const connectedXM = await GetAdminAPI(adminApiParams);
23162
+ const { data } = await connectedXM.put(
23163
+ `/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/choices/${choiceId}`,
23164
+ choice
23165
+ );
23166
+ if (queryClient && data.status === "ok") {
23167
+ queryClient.invalidateQueries({
23168
+ queryKey: BOOKING_SPACE_QUESTION_CHOICES_QUERY_KEY(
23169
+ placeId,
23170
+ spaceId,
23171
+ questionId
23172
+ )
23173
+ });
23174
+ SET_BOOKING_SPACE_QUESTION_CHOICE_QUERY_DATA(
23175
+ queryClient,
23176
+ [placeId, spaceId, questionId, choiceId],
23177
+ data
23178
+ );
23179
+ }
23180
+ return data;
23181
+ };
23182
+ var useUpdateBookingSpaceQuestionChoice = (options = {}) => {
23183
+ return useConnectedMutation(UpdateBookingSpaceQuestionChoice, options);
23184
+ };
23185
+
23186
+ // src/mutations/bookings/questions/translations/useDeleteBookingSpaceQuestionTranslation.ts
23187
+ var DeleteBookingSpaceQuestionTranslation = async ({
23188
+ placeId,
23189
+ spaceId,
23190
+ questionId,
23191
+ locale,
23192
+ adminApiParams,
23193
+ queryClient
23194
+ }) => {
23195
+ const connectedXM = await GetAdminAPI(adminApiParams);
23196
+ const { data } = await connectedXM.delete(
23197
+ `/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/translations/${locale}`
23198
+ );
23199
+ if (queryClient && data.status === "ok") {
23200
+ queryClient.invalidateQueries({
23201
+ queryKey: BOOKING_SPACE_QUESTION_TRANSLATIONS_QUERY_KEY(
23202
+ placeId,
23203
+ spaceId,
23204
+ questionId
23205
+ )
23206
+ });
23207
+ queryClient.invalidateQueries({
23208
+ queryKey: BOOKING_SPACE_QUESTION_TRANSLATION_QUERY_KEY(
23209
+ placeId,
23210
+ spaceId,
23211
+ questionId,
23212
+ locale
23213
+ )
23214
+ });
23215
+ }
23216
+ return data;
23217
+ };
23218
+ var useDeleteBookingSpaceQuestionTranslation = (options = {}) => {
23219
+ return useConnectedMutation(DeleteBookingSpaceQuestionTranslation, options);
23220
+ };
23221
+
23222
+ // src/mutations/bookings/questions/translations/useUpdateBookingSpaceQuestionTranslation.ts
23223
+ var UpdateBookingSpaceQuestionTranslation = async ({
23224
+ placeId,
23225
+ spaceId,
23226
+ questionId,
23227
+ locale,
23228
+ questionTranslation,
23229
+ adminApiParams,
23230
+ queryClient
23231
+ }) => {
23232
+ const connectedXM = await GetAdminAPI(adminApiParams);
23233
+ const { data } = await connectedXM.put(
23234
+ `/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/translations/${locale}`,
23235
+ questionTranslation
23236
+ );
23237
+ if (queryClient && data.status === "ok") {
23238
+ queryClient.invalidateQueries({
23239
+ queryKey: BOOKING_SPACE_QUESTION_QUERY_KEY(placeId, spaceId, questionId)
23240
+ });
23241
+ queryClient.invalidateQueries({
23242
+ queryKey: BOOKING_SPACE_QUESTION_TRANSLATIONS_QUERY_KEY(
23243
+ placeId,
23244
+ spaceId,
23245
+ questionId
23246
+ )
23247
+ });
23248
+ queryClient.invalidateQueries({
23249
+ queryKey: BOOKING_SPACE_QUESTION_TRANSLATION_QUERY_KEY(
23250
+ placeId,
23251
+ spaceId,
23252
+ questionId,
23253
+ locale
23254
+ )
23255
+ });
23256
+ queryClient.invalidateQueries({
23257
+ queryKey: BOOKING_SPACE_QUESTIONS_QUERY_KEY(placeId, spaceId)
23258
+ });
23259
+ }
23260
+ return data;
23261
+ };
23262
+ var useUpdateBookingSpaceQuestionTranslation = (options = {}) => {
23263
+ return useConnectedMutation(UpdateBookingSpaceQuestionTranslation, options);
23264
+ };
23265
+
23266
+ // src/mutations/bookings/questions/useAttachBookingSpaceQuestionSearchList.ts
23267
+ var AttachBookingSpaceQuestionSearchList = async ({
23268
+ placeId,
23269
+ spaceId,
23270
+ questionId,
23271
+ searchList,
23272
+ adminApiParams,
23273
+ queryClient
23274
+ }) => {
23275
+ const connectedXM = await GetAdminAPI(adminApiParams);
23276
+ const { data } = await connectedXM.put(
23277
+ `/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/searchlist`,
23278
+ searchList
23279
+ );
23280
+ if (queryClient && data.status === "ok") {
23281
+ queryClient.invalidateQueries({
23282
+ queryKey: BOOKING_SPACE_QUESTION_QUERY_KEY(placeId, spaceId, questionId)
23283
+ });
23284
+ queryClient.invalidateQueries({
23285
+ queryKey: SEARCHLIST_QUERY_KEY(searchList.searchListId)
23286
+ });
23287
+ queryClient.invalidateQueries({
23288
+ predicate: (query) => {
23289
+ return query.queryKey[0] === "SEARCHLIST_VALUES";
23290
+ }
23291
+ });
23292
+ }
23293
+ return data;
23294
+ };
23295
+ var useAttachBookingSpaceQuestionSearchList = (options = {}) => {
23296
+ return useConnectedMutation(AttachBookingSpaceQuestionSearchList, options);
23297
+ };
23298
+
23299
+ // src/mutations/bookings/questions/useCreateBookingSpaceQuestion.ts
23300
+ var CreateBookingSpaceQuestion = async ({
23301
+ placeId,
23302
+ spaceId,
23303
+ question,
23304
+ adminApiParams,
23305
+ queryClient
23306
+ }) => {
23307
+ const connectedXM = await GetAdminAPI(adminApiParams);
23308
+ const { data } = await connectedXM.post(`/bookings/places/${placeId}/spaces/${spaceId}/questions`, question);
23309
+ if (queryClient && data.status === "ok") {
23310
+ queryClient.invalidateQueries({
23311
+ queryKey: BOOKING_SPACE_QUESTIONS_QUERY_KEY(placeId, spaceId)
23312
+ });
23313
+ if (data.data?.id) {
23314
+ SET_BOOKING_SPACE_QUESTION_QUERY_DATA(
23315
+ queryClient,
23316
+ [placeId, spaceId, data.data.id],
23317
+ data
23318
+ );
23319
+ }
23320
+ }
23321
+ return data;
23322
+ };
23323
+ var useCreateBookingSpaceQuestion = (options = {}) => {
23324
+ return useConnectedMutation(CreateBookingSpaceQuestion, options);
23325
+ };
23326
+
23327
+ // src/mutations/bookings/questions/useDeleteBookingSpaceQuestion.ts
23328
+ var DeleteBookingSpaceQuestion = async ({
23329
+ placeId,
23330
+ spaceId,
23331
+ questionId,
23332
+ adminApiParams,
23333
+ queryClient
23334
+ }) => {
23335
+ const connectedXM = await GetAdminAPI(adminApiParams);
23336
+ const { data } = await connectedXM.delete(
23337
+ `/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}`
23338
+ );
23339
+ if (queryClient && data.status === "ok") {
23340
+ queryClient.invalidateQueries({
23341
+ queryKey: BOOKING_SPACE_QUESTIONS_QUERY_KEY(placeId, spaceId)
23342
+ });
23343
+ queryClient.removeQueries({
23344
+ queryKey: BOOKING_SPACE_QUESTION_QUERY_KEY(placeId, spaceId, questionId)
23345
+ });
23346
+ }
23347
+ return data;
23348
+ };
23349
+ var useDeleteBookingSpaceQuestion = (options = {}) => {
23350
+ return useConnectedMutation(DeleteBookingSpaceQuestion, options);
23351
+ };
23352
+
23353
+ // src/mutations/bookings/questions/useDetachBookingSpaceQuestionSearchList.ts
23354
+ var DetachBookingSpaceQuestionSearchList = async ({
23355
+ placeId,
23356
+ spaceId,
23357
+ questionId,
23358
+ adminApiParams,
23359
+ queryClient
23360
+ }) => {
23361
+ const connectedXM = await GetAdminAPI(adminApiParams);
23362
+ const { data } = await connectedXM.delete(
23363
+ `/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/searchlist`
23364
+ );
23365
+ if (queryClient && data.status === "ok") {
23366
+ queryClient.invalidateQueries({
23367
+ queryKey: BOOKING_SPACE_QUESTION_QUERY_KEY(placeId, spaceId, questionId)
23368
+ });
23369
+ queryClient.invalidateQueries({
23370
+ queryKey: SEARCHLISTS_QUERY_KEY()
23371
+ });
23372
+ queryClient.invalidateQueries({
23373
+ predicate: (query) => {
23374
+ return query.queryKey[0] === "SEARCHLIST_VALUES";
23375
+ }
23376
+ });
23377
+ }
23378
+ return data;
23379
+ };
23380
+ var useDetachBookingSpaceQuestionSearchList = (options = {}) => {
23381
+ return useConnectedMutation(DetachBookingSpaceQuestionSearchList, options);
23382
+ };
23383
+
23384
+ // src/mutations/bookings/questions/useReorderBookingSpaceQuestions.ts
23385
+ var ReorderBookingSpaceQuestions = async ({
23386
+ placeId,
23387
+ spaceId,
23388
+ questionsIds,
23389
+ adminApiParams,
23390
+ queryClient
23391
+ }) => {
23392
+ const connectedXM = await GetAdminAPI(adminApiParams);
23393
+ const { data } = await connectedXM.put(`/bookings/places/${placeId}/spaces/${spaceId}/questions/reorder`, {
23394
+ questionsIds
23395
+ });
23396
+ if (queryClient && data.status === "ok") {
23397
+ queryClient.invalidateQueries({
23398
+ queryKey: BOOKING_SPACE_QUESTIONS_QUERY_KEY(placeId, spaceId)
23399
+ });
23400
+ }
23401
+ return data;
23402
+ };
23403
+ var useReorderBookingSpaceQuestions = (options = {}) => {
23404
+ return useConnectedMutation(ReorderBookingSpaceQuestions, options);
23405
+ };
23406
+
23407
+ // src/mutations/bookings/questions/useUpdateBookingSpaceQuestion.ts
23408
+ var UpdateBookingSpaceQuestion = async ({
23409
+ placeId,
23410
+ spaceId,
23411
+ questionId,
23412
+ question,
23413
+ adminApiParams,
23414
+ queryClient
23415
+ }) => {
23416
+ if (!questionId) throw new Error("Question ID Undefined");
23417
+ const connectedXM = await GetAdminAPI(adminApiParams);
23418
+ const { data } = await connectedXM.put(
23419
+ `/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}`,
23420
+ question
23421
+ );
23422
+ if (queryClient && data.status === "ok") {
23423
+ queryClient.invalidateQueries({
23424
+ queryKey: BOOKING_SPACE_QUESTIONS_QUERY_KEY(placeId, spaceId)
23425
+ });
23426
+ SET_BOOKING_SPACE_QUESTION_QUERY_DATA(
23427
+ queryClient,
23428
+ [placeId, spaceId, questionId || data.data.id],
23429
+ data
23430
+ );
23431
+ }
23432
+ return data;
23433
+ };
23434
+ var useUpdateBookingSpaceQuestion = (options = {}) => {
23435
+ return useConnectedMutation(UpdateBookingSpaceQuestion, options);
23436
+ };
23437
+
22572
23438
  // src/mutations/bookings/spaces/translations/useDeleteBookingSpaceTranslation.ts
22573
23439
  var DeleteBookingSpaceTranslation = async ({
22574
23440
  placeId,
@@ -38177,6 +39043,7 @@ export {
38177
39043
  AdvertisementType,
38178
39044
  AppendInfiniteQuery,
38179
39045
  ArchiveActivity,
39046
+ AttachBookingSpaceQuestionSearchList,
38180
39047
  AttachEventQuestionSearchList,
38181
39048
  AttachEventSessionQuestionSearchList,
38182
39049
  AttachSurveyQuestionSearchList,
@@ -38201,9 +39068,18 @@ export {
38201
39068
  BOOKING_SPACE_BOOKINGS_QUERY_KEY,
38202
39069
  BOOKING_SPACE_PAYMENTS_QUERY_KEY,
38203
39070
  BOOKING_SPACE_QUERY_KEY,
39071
+ BOOKING_SPACE_QUESTIONS_QUERY_KEY,
39072
+ BOOKING_SPACE_QUESTION_CHOICES_QUERY_KEY,
39073
+ BOOKING_SPACE_QUESTION_CHOICE_QUERY_KEY,
39074
+ BOOKING_SPACE_QUESTION_CHOICE_TRANSLATIONS_QUERY_KEY,
39075
+ BOOKING_SPACE_QUESTION_CHOICE_TRANSLATION_QUERY_KEY,
39076
+ BOOKING_SPACE_QUESTION_QUERY_KEY,
39077
+ BOOKING_SPACE_QUESTION_TRANSLATIONS_QUERY_KEY,
39078
+ BOOKING_SPACE_QUESTION_TRANSLATION_QUERY_KEY,
38204
39079
  BOOKING_SPACE_SLOTS_QUERY_KEY,
38205
39080
  BOOKING_SPACE_TRANSLATIONS_QUERY_KEY,
38206
39081
  BOOKING_SPACE_TRANSLATION_QUERY_KEY,
39082
+ BookingSpaceQuestionType,
38207
39083
  BulkUploadSearchListValues,
38208
39084
  CHANNELS_QUERY_KEY,
38209
39085
  CHANNEL_ACTIVITIES_QUERY_KEY,
@@ -38260,6 +39136,8 @@ export {
38260
39136
  CreateBookingSpace,
38261
39137
  CreateBookingSpaceAvailability,
38262
39138
  CreateBookingSpaceBlackout,
39139
+ CreateBookingSpaceQuestion,
39140
+ CreateBookingSpaceQuestionChoice,
38263
39141
  CreateChannel,
38264
39142
  CreateChannelContent,
38265
39143
  CreateChannelContentGuest,
@@ -38378,6 +39256,10 @@ export {
38378
39256
  DeleteBookingSpace,
38379
39257
  DeleteBookingSpaceAvailability,
38380
39258
  DeleteBookingSpaceBlackout,
39259
+ DeleteBookingSpaceQuestion,
39260
+ DeleteBookingSpaceQuestionChoice,
39261
+ DeleteBookingSpaceQuestionChoiceTranslation,
39262
+ DeleteBookingSpaceQuestionTranslation,
38381
39263
  DeleteBookingSpaceTranslation,
38382
39264
  DeleteChannel,
38383
39265
  DeleteChannelContent,
@@ -38516,6 +39398,7 @@ export {
38516
39398
  DeleteUserImage,
38517
39399
  DeleteVideo,
38518
39400
  DeleteVideoCaption,
39401
+ DetachBookingSpaceQuestionSearchList,
38519
39402
  DetachEventQuestionSearchList,
38520
39403
  DetachEventSessionQuestionSearchList,
38521
39404
  DetachSurveyQuestionSearchList,
@@ -38839,6 +39722,14 @@ export {
38839
39722
  GetBookingSpaceBlackouts,
38840
39723
  GetBookingSpaceBookings,
38841
39724
  GetBookingSpacePayments,
39725
+ GetBookingSpaceQuestion,
39726
+ GetBookingSpaceQuestionChoice,
39727
+ GetBookingSpaceQuestionChoiceTranslation,
39728
+ GetBookingSpaceQuestionChoiceTranslations,
39729
+ GetBookingSpaceQuestionChoices,
39730
+ GetBookingSpaceQuestionTranslation,
39731
+ GetBookingSpaceQuestionTranslations,
39732
+ GetBookingSpaceQuestions,
38842
39733
  GetBookingSpaceSlots,
38843
39734
  GetBookingSpaceTranslation,
38844
39735
  GetBookingSpaceTranslations,
@@ -39484,6 +40375,8 @@ export {
39484
40375
  RemoveSurveySectionQuestion,
39485
40376
  RemoveSurveySession,
39486
40377
  RemoveTierAccounts,
40378
+ ReorderBookingSpaceQuestionChoices,
40379
+ ReorderBookingSpaceQuestions,
39487
40380
  ReorderEventFaqSectionQuestions,
39488
40381
  ReorderEventFollowupQuestions,
39489
40382
  ReorderEventQuestionChoiceSubQuestions,
@@ -39592,6 +40485,14 @@ export {
39592
40485
  SET_BOOKING_SPACE_BOOKINGS_QUERY_DATA,
39593
40486
  SET_BOOKING_SPACE_PAYMENTS_QUERY_DATA,
39594
40487
  SET_BOOKING_SPACE_QUERY_DATA,
40488
+ SET_BOOKING_SPACE_QUESTIONS_QUERY_DATA,
40489
+ SET_BOOKING_SPACE_QUESTION_CHOICES_QUERY_DATA,
40490
+ SET_BOOKING_SPACE_QUESTION_CHOICE_QUERY_DATA,
40491
+ SET_BOOKING_SPACE_QUESTION_CHOICE_TRANSLATIONS_QUERY_DATA,
40492
+ SET_BOOKING_SPACE_QUESTION_CHOICE_TRANSLATION_QUERY_DATA,
40493
+ SET_BOOKING_SPACE_QUESTION_QUERY_DATA,
40494
+ SET_BOOKING_SPACE_QUESTION_TRANSLATIONS_QUERY_DATA,
40495
+ SET_BOOKING_SPACE_QUESTION_TRANSLATION_QUERY_DATA,
39595
40496
  SET_BOOKING_SPACE_SLOTS_QUERY_DATA,
39596
40497
  SET_BOOKING_SPACE_TRANSLATIONS_QUERY_DATA,
39597
40498
  SET_BOOKING_SPACE_TRANSLATION_QUERY_DATA,
@@ -40143,6 +41044,10 @@ export {
40143
41044
  UpdateBookingSpace,
40144
41045
  UpdateBookingSpaceAvailability,
40145
41046
  UpdateBookingSpaceBlackout,
41047
+ UpdateBookingSpaceQuestion,
41048
+ UpdateBookingSpaceQuestionChoice,
41049
+ UpdateBookingSpaceQuestionChoiceTranslation,
41050
+ UpdateBookingSpaceQuestionTranslation,
40146
41051
  UpdateBookingSpaceTranslation,
40147
41052
  UpdateChannel,
40148
41053
  UpdateChannelContent,
@@ -40386,6 +41291,7 @@ export {
40386
41291
  useAddSurveySectionQuestion,
40387
41292
  useAddSurveySession,
40388
41293
  useArchiveActivity,
41294
+ useAttachBookingSpaceQuestionSearchList,
40389
41295
  useAttachEventQuestionSearchList,
40390
41296
  useAttachEventSessionQuestionSearchList,
40391
41297
  useAttachSurveyQuestionSearchList,
@@ -40419,6 +41325,8 @@ export {
40419
41325
  useCreateBookingSpace,
40420
41326
  useCreateBookingSpaceAvailability,
40421
41327
  useCreateBookingSpaceBlackout,
41328
+ useCreateBookingSpaceQuestion,
41329
+ useCreateBookingSpaceQuestionChoice,
40422
41330
  useCreateChannel,
40423
41331
  useCreateChannelContent,
40424
41332
  useCreateChannelContentGuest,
@@ -40528,6 +41436,10 @@ export {
40528
41436
  useDeleteBookingSpace,
40529
41437
  useDeleteBookingSpaceAvailability,
40530
41438
  useDeleteBookingSpaceBlackout,
41439
+ useDeleteBookingSpaceQuestion,
41440
+ useDeleteBookingSpaceQuestionChoice,
41441
+ useDeleteBookingSpaceQuestionChoiceTranslation,
41442
+ useDeleteBookingSpaceQuestionTranslation,
40531
41443
  useDeleteBookingSpaceTranslation,
40532
41444
  useDeleteChannel,
40533
41445
  useDeleteChannelContent,
@@ -40666,6 +41578,7 @@ export {
40666
41578
  useDeleteUserImage,
40667
41579
  useDeleteVideo,
40668
41580
  useDeleteVideoCaption,
41581
+ useDetachBookingSpaceQuestionSearchList,
40669
41582
  useDetachEventQuestionSearchList,
40670
41583
  useDetachEventSessionQuestionSearchList,
40671
41584
  useDetachSurveyQuestionSearchList,
@@ -40739,6 +41652,14 @@ export {
40739
41652
  useGetBookingSpaceBlackouts,
40740
41653
  useGetBookingSpaceBookings,
40741
41654
  useGetBookingSpacePayments,
41655
+ useGetBookingSpaceQuestion,
41656
+ useGetBookingSpaceQuestionChoice,
41657
+ useGetBookingSpaceQuestionChoiceTranslation,
41658
+ useGetBookingSpaceQuestionChoiceTranslations,
41659
+ useGetBookingSpaceQuestionChoices,
41660
+ useGetBookingSpaceQuestionTranslation,
41661
+ useGetBookingSpaceQuestionTranslations,
41662
+ useGetBookingSpaceQuestions,
40742
41663
  useGetBookingSpaceSlots,
40743
41664
  useGetBookingSpaceTranslation,
40744
41665
  useGetBookingSpaceTranslations,
@@ -41266,6 +42187,8 @@ export {
41266
42187
  useRemoveSurveySectionQuestion,
41267
42188
  useRemoveSurveySession,
41268
42189
  useRemoveTierAccounts,
42190
+ useReorderBookingSpaceQuestionChoices,
42191
+ useReorderBookingSpaceQuestions,
41269
42192
  useReorderEventFaqSectionQuestions,
41270
42193
  useReorderEventFollowupQuestions,
41271
42194
  useReorderEventQuestionChoiceSubQuestions,
@@ -41314,6 +42237,10 @@ export {
41314
42237
  useUpdateBookingSpace,
41315
42238
  useUpdateBookingSpaceAvailability,
41316
42239
  useUpdateBookingSpaceBlackout,
42240
+ useUpdateBookingSpaceQuestion,
42241
+ useUpdateBookingSpaceQuestionChoice,
42242
+ useUpdateBookingSpaceQuestionChoiceTranslation,
42243
+ useUpdateBookingSpaceQuestionTranslation,
41317
42244
  useUpdateBookingSpaceTranslation,
41318
42245
  useUpdateChannel,
41319
42246
  useUpdateChannelContent,