@connectedxm/admin 6.22.1 → 6.23.1
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 +1102 -79
- package/dist/index.d.cts +692 -8
- package/dist/index.d.ts +692 -8
- package/dist/index.js +1037 -79
- package/openapi.json +2761 -191
- package/package.json +1 -1
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,71 +3548,29 @@ var useGetBookingPlaceTranslation = (placeId = "", locale = "", options = {}) =>
|
|
|
3085
3548
|
);
|
|
3086
3549
|
};
|
|
3087
3550
|
|
|
3088
|
-
// src/queries/bookings/
|
|
3089
|
-
var
|
|
3090
|
-
...
|
|
3091
|
-
"
|
|
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
|
|
3551
|
+
// src/queries/bookings/useGetBookingResponses.ts
|
|
3552
|
+
var BOOKING_RESPONSES_QUERY_KEY = (bookingId) => [
|
|
3553
|
+
...BOOKING_QUERY_KEY(bookingId),
|
|
3554
|
+
"RESPONSES"
|
|
3131
3555
|
];
|
|
3132
|
-
var
|
|
3133
|
-
client.setQueryData(
|
|
3556
|
+
var SET_BOOKING_RESPONSES_QUERY_DATA = (client, keyParams, response) => {
|
|
3557
|
+
client.setQueryData(BOOKING_RESPONSES_QUERY_KEY(...keyParams), response);
|
|
3134
3558
|
};
|
|
3135
|
-
var
|
|
3136
|
-
|
|
3137
|
-
spaceId,
|
|
3559
|
+
var GetBookingResponses = async ({
|
|
3560
|
+
bookingId,
|
|
3138
3561
|
adminApiParams
|
|
3139
3562
|
}) => {
|
|
3140
3563
|
const adminApi = await GetAdminAPI(adminApiParams);
|
|
3141
|
-
const { data } = await adminApi.get(
|
|
3142
|
-
`/bookings/places/${placeId}/spaces/${spaceId}`
|
|
3143
|
-
);
|
|
3564
|
+
const { data } = await adminApi.get(`/bookings/${bookingId}/responses`);
|
|
3144
3565
|
return data;
|
|
3145
3566
|
};
|
|
3146
|
-
var
|
|
3567
|
+
var useGetBookingResponses = (bookingId = "", options = {}) => {
|
|
3147
3568
|
return useConnectedSingleQuery(
|
|
3148
|
-
|
|
3149
|
-
(params) =>
|
|
3569
|
+
BOOKING_RESPONSES_QUERY_KEY(bookingId),
|
|
3570
|
+
(params) => GetBookingResponses({ bookingId, ...params }),
|
|
3150
3571
|
{
|
|
3151
3572
|
...options,
|
|
3152
|
-
enabled: !!
|
|
3573
|
+
enabled: !!bookingId && (options?.enabled ?? true)
|
|
3153
3574
|
}
|
|
3154
3575
|
);
|
|
3155
3576
|
};
|
|
@@ -22569,6 +22990,478 @@ var useUpdateBookingPlace = (options = {}) => {
|
|
|
22569
22990
|
return useConnectedMutation(UpdateBookingPlace, options);
|
|
22570
22991
|
};
|
|
22571
22992
|
|
|
22993
|
+
// src/mutations/bookings/questions/choices/translations/useDeleteBookingSpaceQuestionChoiceTranslation.ts
|
|
22994
|
+
var DeleteBookingSpaceQuestionChoiceTranslation = async ({
|
|
22995
|
+
placeId,
|
|
22996
|
+
spaceId,
|
|
22997
|
+
questionId,
|
|
22998
|
+
choiceId,
|
|
22999
|
+
locale,
|
|
23000
|
+
adminApiParams,
|
|
23001
|
+
queryClient
|
|
23002
|
+
}) => {
|
|
23003
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
23004
|
+
const { data } = await connectedXM.delete(
|
|
23005
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/choices/${choiceId}/translations/${locale}`
|
|
23006
|
+
);
|
|
23007
|
+
if (queryClient && data.status === "ok") {
|
|
23008
|
+
queryClient.invalidateQueries({
|
|
23009
|
+
queryKey: BOOKING_SPACE_QUESTION_CHOICE_TRANSLATIONS_QUERY_KEY(
|
|
23010
|
+
placeId,
|
|
23011
|
+
spaceId,
|
|
23012
|
+
questionId,
|
|
23013
|
+
choiceId
|
|
23014
|
+
)
|
|
23015
|
+
});
|
|
23016
|
+
queryClient.invalidateQueries({
|
|
23017
|
+
queryKey: BOOKING_SPACE_QUESTION_CHOICE_TRANSLATION_QUERY_KEY(
|
|
23018
|
+
placeId,
|
|
23019
|
+
spaceId,
|
|
23020
|
+
questionId,
|
|
23021
|
+
choiceId,
|
|
23022
|
+
locale
|
|
23023
|
+
)
|
|
23024
|
+
});
|
|
23025
|
+
}
|
|
23026
|
+
return data;
|
|
23027
|
+
};
|
|
23028
|
+
var useDeleteBookingSpaceQuestionChoiceTranslation = (options = {}) => {
|
|
23029
|
+
return useConnectedMutation(DeleteBookingSpaceQuestionChoiceTranslation, options);
|
|
23030
|
+
};
|
|
23031
|
+
|
|
23032
|
+
// src/mutations/bookings/questions/choices/translations/useUpdateBookingSpaceQuestionChoiceTranslation.ts
|
|
23033
|
+
var UpdateBookingSpaceQuestionChoiceTranslation = async ({
|
|
23034
|
+
placeId,
|
|
23035
|
+
spaceId,
|
|
23036
|
+
questionId,
|
|
23037
|
+
choiceId,
|
|
23038
|
+
locale,
|
|
23039
|
+
choiceTranslation,
|
|
23040
|
+
adminApiParams,
|
|
23041
|
+
queryClient
|
|
23042
|
+
}) => {
|
|
23043
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
23044
|
+
const { data } = await connectedXM.put(
|
|
23045
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/choices/${choiceId}/translations/${locale}`,
|
|
23046
|
+
choiceTranslation
|
|
23047
|
+
);
|
|
23048
|
+
if (queryClient && data.status === "ok") {
|
|
23049
|
+
queryClient.invalidateQueries({
|
|
23050
|
+
queryKey: BOOKING_SPACE_QUESTION_CHOICE_TRANSLATIONS_QUERY_KEY(
|
|
23051
|
+
placeId,
|
|
23052
|
+
spaceId,
|
|
23053
|
+
questionId,
|
|
23054
|
+
choiceId
|
|
23055
|
+
)
|
|
23056
|
+
});
|
|
23057
|
+
SET_BOOKING_SPACE_QUESTION_CHOICE_TRANSLATION_QUERY_DATA(
|
|
23058
|
+
queryClient,
|
|
23059
|
+
[placeId, spaceId, questionId, choiceId, data.data?.locale ?? locale],
|
|
23060
|
+
data
|
|
23061
|
+
);
|
|
23062
|
+
}
|
|
23063
|
+
return data;
|
|
23064
|
+
};
|
|
23065
|
+
var useUpdateBookingSpaceQuestionChoiceTranslation = (options = {}) => {
|
|
23066
|
+
return useConnectedMutation(UpdateBookingSpaceQuestionChoiceTranslation, options);
|
|
23067
|
+
};
|
|
23068
|
+
|
|
23069
|
+
// src/mutations/bookings/questions/choices/useCreateBookingSpaceQuestionChoice.ts
|
|
23070
|
+
var CreateBookingSpaceQuestionChoice = async ({
|
|
23071
|
+
placeId,
|
|
23072
|
+
spaceId,
|
|
23073
|
+
questionId,
|
|
23074
|
+
choice,
|
|
23075
|
+
adminApiParams,
|
|
23076
|
+
queryClient
|
|
23077
|
+
}) => {
|
|
23078
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
23079
|
+
const { data } = await connectedXM.post(
|
|
23080
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/choices`,
|
|
23081
|
+
choice
|
|
23082
|
+
);
|
|
23083
|
+
if (queryClient && data.status === "ok") {
|
|
23084
|
+
queryClient.invalidateQueries({
|
|
23085
|
+
queryKey: BOOKING_SPACE_QUESTION_CHOICES_QUERY_KEY(
|
|
23086
|
+
placeId,
|
|
23087
|
+
spaceId,
|
|
23088
|
+
questionId
|
|
23089
|
+
)
|
|
23090
|
+
});
|
|
23091
|
+
if (data.data?.id) {
|
|
23092
|
+
SET_BOOKING_SPACE_QUESTION_CHOICE_QUERY_DATA(
|
|
23093
|
+
queryClient,
|
|
23094
|
+
[placeId, spaceId, questionId, data.data.id],
|
|
23095
|
+
data
|
|
23096
|
+
);
|
|
23097
|
+
}
|
|
23098
|
+
}
|
|
23099
|
+
return data;
|
|
23100
|
+
};
|
|
23101
|
+
var useCreateBookingSpaceQuestionChoice = (options = {}) => {
|
|
23102
|
+
return useConnectedMutation(CreateBookingSpaceQuestionChoice, options);
|
|
23103
|
+
};
|
|
23104
|
+
|
|
23105
|
+
// src/mutations/bookings/questions/choices/useDeleteBookingSpaceQuestionChoice.ts
|
|
23106
|
+
var DeleteBookingSpaceQuestionChoice = async ({
|
|
23107
|
+
placeId,
|
|
23108
|
+
spaceId,
|
|
23109
|
+
questionId,
|
|
23110
|
+
choiceId,
|
|
23111
|
+
adminApiParams,
|
|
23112
|
+
queryClient
|
|
23113
|
+
}) => {
|
|
23114
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
23115
|
+
const { data } = await connectedXM.delete(
|
|
23116
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/choices/${choiceId}`
|
|
23117
|
+
);
|
|
23118
|
+
if (queryClient && data.status === "ok") {
|
|
23119
|
+
queryClient.invalidateQueries({
|
|
23120
|
+
queryKey: BOOKING_SPACE_QUESTION_CHOICES_QUERY_KEY(
|
|
23121
|
+
placeId,
|
|
23122
|
+
spaceId,
|
|
23123
|
+
questionId
|
|
23124
|
+
)
|
|
23125
|
+
});
|
|
23126
|
+
queryClient.removeQueries({
|
|
23127
|
+
queryKey: BOOKING_SPACE_QUESTION_CHOICE_QUERY_KEY(
|
|
23128
|
+
placeId,
|
|
23129
|
+
spaceId,
|
|
23130
|
+
questionId,
|
|
23131
|
+
choiceId
|
|
23132
|
+
)
|
|
23133
|
+
});
|
|
23134
|
+
}
|
|
23135
|
+
return data;
|
|
23136
|
+
};
|
|
23137
|
+
var useDeleteBookingSpaceQuestionChoice = (options = {}) => {
|
|
23138
|
+
return useConnectedMutation(DeleteBookingSpaceQuestionChoice, options);
|
|
23139
|
+
};
|
|
23140
|
+
|
|
23141
|
+
// src/mutations/bookings/questions/choices/useReorderBookingSpaceQuestionChoices.ts
|
|
23142
|
+
var ReorderBookingSpaceQuestionChoices = async ({
|
|
23143
|
+
placeId,
|
|
23144
|
+
spaceId,
|
|
23145
|
+
questionId,
|
|
23146
|
+
choicesIds,
|
|
23147
|
+
adminApiParams,
|
|
23148
|
+
queryClient
|
|
23149
|
+
}) => {
|
|
23150
|
+
if (!questionId) throw new Error("Question ID is undefined");
|
|
23151
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
23152
|
+
const { data } = await connectedXM.put(
|
|
23153
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/choices/reorder`,
|
|
23154
|
+
{
|
|
23155
|
+
choicesIds
|
|
23156
|
+
}
|
|
23157
|
+
);
|
|
23158
|
+
if (queryClient && data.status === "ok") {
|
|
23159
|
+
SET_BOOKING_SPACE_QUESTION_CHOICES_QUERY_DATA(
|
|
23160
|
+
queryClient,
|
|
23161
|
+
[placeId, spaceId, questionId],
|
|
23162
|
+
data
|
|
23163
|
+
);
|
|
23164
|
+
queryClient.invalidateQueries({
|
|
23165
|
+
queryKey: BOOKING_SPACE_QUESTION_CHOICES_QUERY_KEY(
|
|
23166
|
+
placeId,
|
|
23167
|
+
spaceId,
|
|
23168
|
+
questionId
|
|
23169
|
+
)
|
|
23170
|
+
});
|
|
23171
|
+
}
|
|
23172
|
+
return data;
|
|
23173
|
+
};
|
|
23174
|
+
var useReorderBookingSpaceQuestionChoices = (options = {}) => {
|
|
23175
|
+
return useConnectedMutation(ReorderBookingSpaceQuestionChoices, options);
|
|
23176
|
+
};
|
|
23177
|
+
|
|
23178
|
+
// src/mutations/bookings/questions/choices/useUpdateBookingSpaceQuestionChoice.ts
|
|
23179
|
+
var UpdateBookingSpaceQuestionChoice = async ({
|
|
23180
|
+
placeId,
|
|
23181
|
+
spaceId,
|
|
23182
|
+
questionId,
|
|
23183
|
+
choiceId,
|
|
23184
|
+
choice,
|
|
23185
|
+
adminApiParams,
|
|
23186
|
+
queryClient
|
|
23187
|
+
}) => {
|
|
23188
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
23189
|
+
const { data } = await connectedXM.put(
|
|
23190
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/choices/${choiceId}`,
|
|
23191
|
+
choice
|
|
23192
|
+
);
|
|
23193
|
+
if (queryClient && data.status === "ok") {
|
|
23194
|
+
queryClient.invalidateQueries({
|
|
23195
|
+
queryKey: BOOKING_SPACE_QUESTION_CHOICES_QUERY_KEY(
|
|
23196
|
+
placeId,
|
|
23197
|
+
spaceId,
|
|
23198
|
+
questionId
|
|
23199
|
+
)
|
|
23200
|
+
});
|
|
23201
|
+
SET_BOOKING_SPACE_QUESTION_CHOICE_QUERY_DATA(
|
|
23202
|
+
queryClient,
|
|
23203
|
+
[placeId, spaceId, questionId, choiceId],
|
|
23204
|
+
data
|
|
23205
|
+
);
|
|
23206
|
+
}
|
|
23207
|
+
return data;
|
|
23208
|
+
};
|
|
23209
|
+
var useUpdateBookingSpaceQuestionChoice = (options = {}) => {
|
|
23210
|
+
return useConnectedMutation(UpdateBookingSpaceQuestionChoice, options);
|
|
23211
|
+
};
|
|
23212
|
+
|
|
23213
|
+
// src/mutations/bookings/questions/translations/useDeleteBookingSpaceQuestionTranslation.ts
|
|
23214
|
+
var DeleteBookingSpaceQuestionTranslation = async ({
|
|
23215
|
+
placeId,
|
|
23216
|
+
spaceId,
|
|
23217
|
+
questionId,
|
|
23218
|
+
locale,
|
|
23219
|
+
adminApiParams,
|
|
23220
|
+
queryClient
|
|
23221
|
+
}) => {
|
|
23222
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
23223
|
+
const { data } = await connectedXM.delete(
|
|
23224
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/translations/${locale}`
|
|
23225
|
+
);
|
|
23226
|
+
if (queryClient && data.status === "ok") {
|
|
23227
|
+
queryClient.invalidateQueries({
|
|
23228
|
+
queryKey: BOOKING_SPACE_QUESTION_TRANSLATIONS_QUERY_KEY(
|
|
23229
|
+
placeId,
|
|
23230
|
+
spaceId,
|
|
23231
|
+
questionId
|
|
23232
|
+
)
|
|
23233
|
+
});
|
|
23234
|
+
queryClient.invalidateQueries({
|
|
23235
|
+
queryKey: BOOKING_SPACE_QUESTION_TRANSLATION_QUERY_KEY(
|
|
23236
|
+
placeId,
|
|
23237
|
+
spaceId,
|
|
23238
|
+
questionId,
|
|
23239
|
+
locale
|
|
23240
|
+
)
|
|
23241
|
+
});
|
|
23242
|
+
}
|
|
23243
|
+
return data;
|
|
23244
|
+
};
|
|
23245
|
+
var useDeleteBookingSpaceQuestionTranslation = (options = {}) => {
|
|
23246
|
+
return useConnectedMutation(DeleteBookingSpaceQuestionTranslation, options);
|
|
23247
|
+
};
|
|
23248
|
+
|
|
23249
|
+
// src/mutations/bookings/questions/translations/useUpdateBookingSpaceQuestionTranslation.ts
|
|
23250
|
+
var UpdateBookingSpaceQuestionTranslation = async ({
|
|
23251
|
+
placeId,
|
|
23252
|
+
spaceId,
|
|
23253
|
+
questionId,
|
|
23254
|
+
locale,
|
|
23255
|
+
questionTranslation,
|
|
23256
|
+
adminApiParams,
|
|
23257
|
+
queryClient
|
|
23258
|
+
}) => {
|
|
23259
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
23260
|
+
const { data } = await connectedXM.put(
|
|
23261
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/translations/${locale}`,
|
|
23262
|
+
questionTranslation
|
|
23263
|
+
);
|
|
23264
|
+
if (queryClient && data.status === "ok") {
|
|
23265
|
+
queryClient.invalidateQueries({
|
|
23266
|
+
queryKey: BOOKING_SPACE_QUESTION_QUERY_KEY(placeId, spaceId, questionId)
|
|
23267
|
+
});
|
|
23268
|
+
queryClient.invalidateQueries({
|
|
23269
|
+
queryKey: BOOKING_SPACE_QUESTION_TRANSLATIONS_QUERY_KEY(
|
|
23270
|
+
placeId,
|
|
23271
|
+
spaceId,
|
|
23272
|
+
questionId
|
|
23273
|
+
)
|
|
23274
|
+
});
|
|
23275
|
+
queryClient.invalidateQueries({
|
|
23276
|
+
queryKey: BOOKING_SPACE_QUESTION_TRANSLATION_QUERY_KEY(
|
|
23277
|
+
placeId,
|
|
23278
|
+
spaceId,
|
|
23279
|
+
questionId,
|
|
23280
|
+
locale
|
|
23281
|
+
)
|
|
23282
|
+
});
|
|
23283
|
+
queryClient.invalidateQueries({
|
|
23284
|
+
queryKey: BOOKING_SPACE_QUESTIONS_QUERY_KEY(placeId, spaceId)
|
|
23285
|
+
});
|
|
23286
|
+
}
|
|
23287
|
+
return data;
|
|
23288
|
+
};
|
|
23289
|
+
var useUpdateBookingSpaceQuestionTranslation = (options = {}) => {
|
|
23290
|
+
return useConnectedMutation(UpdateBookingSpaceQuestionTranslation, options);
|
|
23291
|
+
};
|
|
23292
|
+
|
|
23293
|
+
// src/mutations/bookings/questions/useAttachBookingSpaceQuestionSearchList.ts
|
|
23294
|
+
var AttachBookingSpaceQuestionSearchList = async ({
|
|
23295
|
+
placeId,
|
|
23296
|
+
spaceId,
|
|
23297
|
+
questionId,
|
|
23298
|
+
searchList,
|
|
23299
|
+
adminApiParams,
|
|
23300
|
+
queryClient
|
|
23301
|
+
}) => {
|
|
23302
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
23303
|
+
const { data } = await connectedXM.put(
|
|
23304
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/searchlist`,
|
|
23305
|
+
searchList
|
|
23306
|
+
);
|
|
23307
|
+
if (queryClient && data.status === "ok") {
|
|
23308
|
+
queryClient.invalidateQueries({
|
|
23309
|
+
queryKey: BOOKING_SPACE_QUESTION_QUERY_KEY(placeId, spaceId, questionId)
|
|
23310
|
+
});
|
|
23311
|
+
queryClient.invalidateQueries({
|
|
23312
|
+
queryKey: SEARCHLIST_QUERY_KEY(searchList.searchListId)
|
|
23313
|
+
});
|
|
23314
|
+
queryClient.invalidateQueries({
|
|
23315
|
+
predicate: (query) => {
|
|
23316
|
+
return query.queryKey[0] === "SEARCHLIST_VALUES";
|
|
23317
|
+
}
|
|
23318
|
+
});
|
|
23319
|
+
}
|
|
23320
|
+
return data;
|
|
23321
|
+
};
|
|
23322
|
+
var useAttachBookingSpaceQuestionSearchList = (options = {}) => {
|
|
23323
|
+
return useConnectedMutation(AttachBookingSpaceQuestionSearchList, options);
|
|
23324
|
+
};
|
|
23325
|
+
|
|
23326
|
+
// src/mutations/bookings/questions/useCreateBookingSpaceQuestion.ts
|
|
23327
|
+
var CreateBookingSpaceQuestion = async ({
|
|
23328
|
+
placeId,
|
|
23329
|
+
spaceId,
|
|
23330
|
+
question,
|
|
23331
|
+
adminApiParams,
|
|
23332
|
+
queryClient
|
|
23333
|
+
}) => {
|
|
23334
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
23335
|
+
const { data } = await connectedXM.post(`/bookings/places/${placeId}/spaces/${spaceId}/questions`, question);
|
|
23336
|
+
if (queryClient && data.status === "ok") {
|
|
23337
|
+
queryClient.invalidateQueries({
|
|
23338
|
+
queryKey: BOOKING_SPACE_QUESTIONS_QUERY_KEY(placeId, spaceId)
|
|
23339
|
+
});
|
|
23340
|
+
if (data.data?.id) {
|
|
23341
|
+
SET_BOOKING_SPACE_QUESTION_QUERY_DATA(
|
|
23342
|
+
queryClient,
|
|
23343
|
+
[placeId, spaceId, data.data.id],
|
|
23344
|
+
data
|
|
23345
|
+
);
|
|
23346
|
+
}
|
|
23347
|
+
}
|
|
23348
|
+
return data;
|
|
23349
|
+
};
|
|
23350
|
+
var useCreateBookingSpaceQuestion = (options = {}) => {
|
|
23351
|
+
return useConnectedMutation(CreateBookingSpaceQuestion, options);
|
|
23352
|
+
};
|
|
23353
|
+
|
|
23354
|
+
// src/mutations/bookings/questions/useDeleteBookingSpaceQuestion.ts
|
|
23355
|
+
var DeleteBookingSpaceQuestion = async ({
|
|
23356
|
+
placeId,
|
|
23357
|
+
spaceId,
|
|
23358
|
+
questionId,
|
|
23359
|
+
adminApiParams,
|
|
23360
|
+
queryClient
|
|
23361
|
+
}) => {
|
|
23362
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
23363
|
+
const { data } = await connectedXM.delete(
|
|
23364
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}`
|
|
23365
|
+
);
|
|
23366
|
+
if (queryClient && data.status === "ok") {
|
|
23367
|
+
queryClient.invalidateQueries({
|
|
23368
|
+
queryKey: BOOKING_SPACE_QUESTIONS_QUERY_KEY(placeId, spaceId)
|
|
23369
|
+
});
|
|
23370
|
+
queryClient.removeQueries({
|
|
23371
|
+
queryKey: BOOKING_SPACE_QUESTION_QUERY_KEY(placeId, spaceId, questionId)
|
|
23372
|
+
});
|
|
23373
|
+
}
|
|
23374
|
+
return data;
|
|
23375
|
+
};
|
|
23376
|
+
var useDeleteBookingSpaceQuestion = (options = {}) => {
|
|
23377
|
+
return useConnectedMutation(DeleteBookingSpaceQuestion, options);
|
|
23378
|
+
};
|
|
23379
|
+
|
|
23380
|
+
// src/mutations/bookings/questions/useDetachBookingSpaceQuestionSearchList.ts
|
|
23381
|
+
var DetachBookingSpaceQuestionSearchList = async ({
|
|
23382
|
+
placeId,
|
|
23383
|
+
spaceId,
|
|
23384
|
+
questionId,
|
|
23385
|
+
adminApiParams,
|
|
23386
|
+
queryClient
|
|
23387
|
+
}) => {
|
|
23388
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
23389
|
+
const { data } = await connectedXM.delete(
|
|
23390
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}/searchlist`
|
|
23391
|
+
);
|
|
23392
|
+
if (queryClient && data.status === "ok") {
|
|
23393
|
+
queryClient.invalidateQueries({
|
|
23394
|
+
queryKey: BOOKING_SPACE_QUESTION_QUERY_KEY(placeId, spaceId, questionId)
|
|
23395
|
+
});
|
|
23396
|
+
queryClient.invalidateQueries({
|
|
23397
|
+
queryKey: SEARCHLISTS_QUERY_KEY()
|
|
23398
|
+
});
|
|
23399
|
+
queryClient.invalidateQueries({
|
|
23400
|
+
predicate: (query) => {
|
|
23401
|
+
return query.queryKey[0] === "SEARCHLIST_VALUES";
|
|
23402
|
+
}
|
|
23403
|
+
});
|
|
23404
|
+
}
|
|
23405
|
+
return data;
|
|
23406
|
+
};
|
|
23407
|
+
var useDetachBookingSpaceQuestionSearchList = (options = {}) => {
|
|
23408
|
+
return useConnectedMutation(DetachBookingSpaceQuestionSearchList, options);
|
|
23409
|
+
};
|
|
23410
|
+
|
|
23411
|
+
// src/mutations/bookings/questions/useReorderBookingSpaceQuestions.ts
|
|
23412
|
+
var ReorderBookingSpaceQuestions = async ({
|
|
23413
|
+
placeId,
|
|
23414
|
+
spaceId,
|
|
23415
|
+
questionsIds,
|
|
23416
|
+
adminApiParams,
|
|
23417
|
+
queryClient
|
|
23418
|
+
}) => {
|
|
23419
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
23420
|
+
const { data } = await connectedXM.put(`/bookings/places/${placeId}/spaces/${spaceId}/questions/reorder`, {
|
|
23421
|
+
questionsIds
|
|
23422
|
+
});
|
|
23423
|
+
if (queryClient && data.status === "ok") {
|
|
23424
|
+
queryClient.invalidateQueries({
|
|
23425
|
+
queryKey: BOOKING_SPACE_QUESTIONS_QUERY_KEY(placeId, spaceId)
|
|
23426
|
+
});
|
|
23427
|
+
}
|
|
23428
|
+
return data;
|
|
23429
|
+
};
|
|
23430
|
+
var useReorderBookingSpaceQuestions = (options = {}) => {
|
|
23431
|
+
return useConnectedMutation(ReorderBookingSpaceQuestions, options);
|
|
23432
|
+
};
|
|
23433
|
+
|
|
23434
|
+
// src/mutations/bookings/questions/useUpdateBookingSpaceQuestion.ts
|
|
23435
|
+
var UpdateBookingSpaceQuestion = async ({
|
|
23436
|
+
placeId,
|
|
23437
|
+
spaceId,
|
|
23438
|
+
questionId,
|
|
23439
|
+
question,
|
|
23440
|
+
adminApiParams,
|
|
23441
|
+
queryClient
|
|
23442
|
+
}) => {
|
|
23443
|
+
if (!questionId) throw new Error("Question ID Undefined");
|
|
23444
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
23445
|
+
const { data } = await connectedXM.put(
|
|
23446
|
+
`/bookings/places/${placeId}/spaces/${spaceId}/questions/${questionId}`,
|
|
23447
|
+
question
|
|
23448
|
+
);
|
|
23449
|
+
if (queryClient && data.status === "ok") {
|
|
23450
|
+
queryClient.invalidateQueries({
|
|
23451
|
+
queryKey: BOOKING_SPACE_QUESTIONS_QUERY_KEY(placeId, spaceId)
|
|
23452
|
+
});
|
|
23453
|
+
SET_BOOKING_SPACE_QUESTION_QUERY_DATA(
|
|
23454
|
+
queryClient,
|
|
23455
|
+
[placeId, spaceId, questionId || data.data.id],
|
|
23456
|
+
data
|
|
23457
|
+
);
|
|
23458
|
+
}
|
|
23459
|
+
return data;
|
|
23460
|
+
};
|
|
23461
|
+
var useUpdateBookingSpaceQuestion = (options = {}) => {
|
|
23462
|
+
return useConnectedMutation(UpdateBookingSpaceQuestion, options);
|
|
23463
|
+
};
|
|
23464
|
+
|
|
22572
23465
|
// src/mutations/bookings/spaces/translations/useDeleteBookingSpaceTranslation.ts
|
|
22573
23466
|
var DeleteBookingSpaceTranslation = async ({
|
|
22574
23467
|
placeId,
|
|
@@ -38177,6 +39070,7 @@ export {
|
|
|
38177
39070
|
AdvertisementType,
|
|
38178
39071
|
AppendInfiniteQuery,
|
|
38179
39072
|
ArchiveActivity,
|
|
39073
|
+
AttachBookingSpaceQuestionSearchList,
|
|
38180
39074
|
AttachEventQuestionSearchList,
|
|
38181
39075
|
AttachEventSessionQuestionSearchList,
|
|
38182
39076
|
AttachSurveyQuestionSearchList,
|
|
@@ -38193,6 +39087,7 @@ export {
|
|
|
38193
39087
|
BOOKING_PLACE_TRANSLATIONS_QUERY_KEY,
|
|
38194
39088
|
BOOKING_PLACE_TRANSLATION_QUERY_KEY,
|
|
38195
39089
|
BOOKING_QUERY_KEY,
|
|
39090
|
+
BOOKING_RESPONSES_QUERY_KEY,
|
|
38196
39091
|
BOOKING_SPACES_QUERY_KEY,
|
|
38197
39092
|
BOOKING_SPACE_AVAILABILITIES_QUERY_KEY,
|
|
38198
39093
|
BOOKING_SPACE_AVAILABILITY_QUERY_KEY,
|
|
@@ -38201,9 +39096,18 @@ export {
|
|
|
38201
39096
|
BOOKING_SPACE_BOOKINGS_QUERY_KEY,
|
|
38202
39097
|
BOOKING_SPACE_PAYMENTS_QUERY_KEY,
|
|
38203
39098
|
BOOKING_SPACE_QUERY_KEY,
|
|
39099
|
+
BOOKING_SPACE_QUESTIONS_QUERY_KEY,
|
|
39100
|
+
BOOKING_SPACE_QUESTION_CHOICES_QUERY_KEY,
|
|
39101
|
+
BOOKING_SPACE_QUESTION_CHOICE_QUERY_KEY,
|
|
39102
|
+
BOOKING_SPACE_QUESTION_CHOICE_TRANSLATIONS_QUERY_KEY,
|
|
39103
|
+
BOOKING_SPACE_QUESTION_CHOICE_TRANSLATION_QUERY_KEY,
|
|
39104
|
+
BOOKING_SPACE_QUESTION_QUERY_KEY,
|
|
39105
|
+
BOOKING_SPACE_QUESTION_TRANSLATIONS_QUERY_KEY,
|
|
39106
|
+
BOOKING_SPACE_QUESTION_TRANSLATION_QUERY_KEY,
|
|
38204
39107
|
BOOKING_SPACE_SLOTS_QUERY_KEY,
|
|
38205
39108
|
BOOKING_SPACE_TRANSLATIONS_QUERY_KEY,
|
|
38206
39109
|
BOOKING_SPACE_TRANSLATION_QUERY_KEY,
|
|
39110
|
+
BookingSpaceQuestionType,
|
|
38207
39111
|
BulkUploadSearchListValues,
|
|
38208
39112
|
CHANNELS_QUERY_KEY,
|
|
38209
39113
|
CHANNEL_ACTIVITIES_QUERY_KEY,
|
|
@@ -38260,6 +39164,8 @@ export {
|
|
|
38260
39164
|
CreateBookingSpace,
|
|
38261
39165
|
CreateBookingSpaceAvailability,
|
|
38262
39166
|
CreateBookingSpaceBlackout,
|
|
39167
|
+
CreateBookingSpaceQuestion,
|
|
39168
|
+
CreateBookingSpaceQuestionChoice,
|
|
38263
39169
|
CreateChannel,
|
|
38264
39170
|
CreateChannelContent,
|
|
38265
39171
|
CreateChannelContentGuest,
|
|
@@ -38378,6 +39284,10 @@ export {
|
|
|
38378
39284
|
DeleteBookingSpace,
|
|
38379
39285
|
DeleteBookingSpaceAvailability,
|
|
38380
39286
|
DeleteBookingSpaceBlackout,
|
|
39287
|
+
DeleteBookingSpaceQuestion,
|
|
39288
|
+
DeleteBookingSpaceQuestionChoice,
|
|
39289
|
+
DeleteBookingSpaceQuestionChoiceTranslation,
|
|
39290
|
+
DeleteBookingSpaceQuestionTranslation,
|
|
38381
39291
|
DeleteBookingSpaceTranslation,
|
|
38382
39292
|
DeleteChannel,
|
|
38383
39293
|
DeleteChannelContent,
|
|
@@ -38516,6 +39426,7 @@ export {
|
|
|
38516
39426
|
DeleteUserImage,
|
|
38517
39427
|
DeleteVideo,
|
|
38518
39428
|
DeleteVideoCaption,
|
|
39429
|
+
DetachBookingSpaceQuestionSearchList,
|
|
38519
39430
|
DetachEventQuestionSearchList,
|
|
38520
39431
|
DetachEventSessionQuestionSearchList,
|
|
38521
39432
|
DetachSurveyQuestionSearchList,
|
|
@@ -38832,6 +39743,7 @@ export {
|
|
|
38832
39743
|
GetBookingPlaceTranslation,
|
|
38833
39744
|
GetBookingPlaceTranslations,
|
|
38834
39745
|
GetBookingPlaces,
|
|
39746
|
+
GetBookingResponses,
|
|
38835
39747
|
GetBookingSpace,
|
|
38836
39748
|
GetBookingSpaceAvailabilities,
|
|
38837
39749
|
GetBookingSpaceAvailability,
|
|
@@ -38839,6 +39751,14 @@ export {
|
|
|
38839
39751
|
GetBookingSpaceBlackouts,
|
|
38840
39752
|
GetBookingSpaceBookings,
|
|
38841
39753
|
GetBookingSpacePayments,
|
|
39754
|
+
GetBookingSpaceQuestion,
|
|
39755
|
+
GetBookingSpaceQuestionChoice,
|
|
39756
|
+
GetBookingSpaceQuestionChoiceTranslation,
|
|
39757
|
+
GetBookingSpaceQuestionChoiceTranslations,
|
|
39758
|
+
GetBookingSpaceQuestionChoices,
|
|
39759
|
+
GetBookingSpaceQuestionTranslation,
|
|
39760
|
+
GetBookingSpaceQuestionTranslations,
|
|
39761
|
+
GetBookingSpaceQuestions,
|
|
38842
39762
|
GetBookingSpaceSlots,
|
|
38843
39763
|
GetBookingSpaceTranslation,
|
|
38844
39764
|
GetBookingSpaceTranslations,
|
|
@@ -39484,6 +40404,8 @@ export {
|
|
|
39484
40404
|
RemoveSurveySectionQuestion,
|
|
39485
40405
|
RemoveSurveySession,
|
|
39486
40406
|
RemoveTierAccounts,
|
|
40407
|
+
ReorderBookingSpaceQuestionChoices,
|
|
40408
|
+
ReorderBookingSpaceQuestions,
|
|
39487
40409
|
ReorderEventFaqSectionQuestions,
|
|
39488
40410
|
ReorderEventFollowupQuestions,
|
|
39489
40411
|
ReorderEventQuestionChoiceSubQuestions,
|
|
@@ -39584,6 +40506,7 @@ export {
|
|
|
39584
40506
|
SET_BOOKING_PLACE_TRANSLATIONS_QUERY_DATA,
|
|
39585
40507
|
SET_BOOKING_PLACE_TRANSLATION_QUERY_DATA,
|
|
39586
40508
|
SET_BOOKING_QUERY_DATA,
|
|
40509
|
+
SET_BOOKING_RESPONSES_QUERY_DATA,
|
|
39587
40510
|
SET_BOOKING_SPACES_QUERY_DATA,
|
|
39588
40511
|
SET_BOOKING_SPACE_AVAILABILITIES_QUERY_DATA,
|
|
39589
40512
|
SET_BOOKING_SPACE_AVAILABILITY_QUERY_DATA,
|
|
@@ -39592,6 +40515,14 @@ export {
|
|
|
39592
40515
|
SET_BOOKING_SPACE_BOOKINGS_QUERY_DATA,
|
|
39593
40516
|
SET_BOOKING_SPACE_PAYMENTS_QUERY_DATA,
|
|
39594
40517
|
SET_BOOKING_SPACE_QUERY_DATA,
|
|
40518
|
+
SET_BOOKING_SPACE_QUESTIONS_QUERY_DATA,
|
|
40519
|
+
SET_BOOKING_SPACE_QUESTION_CHOICES_QUERY_DATA,
|
|
40520
|
+
SET_BOOKING_SPACE_QUESTION_CHOICE_QUERY_DATA,
|
|
40521
|
+
SET_BOOKING_SPACE_QUESTION_CHOICE_TRANSLATIONS_QUERY_DATA,
|
|
40522
|
+
SET_BOOKING_SPACE_QUESTION_CHOICE_TRANSLATION_QUERY_DATA,
|
|
40523
|
+
SET_BOOKING_SPACE_QUESTION_QUERY_DATA,
|
|
40524
|
+
SET_BOOKING_SPACE_QUESTION_TRANSLATIONS_QUERY_DATA,
|
|
40525
|
+
SET_BOOKING_SPACE_QUESTION_TRANSLATION_QUERY_DATA,
|
|
39595
40526
|
SET_BOOKING_SPACE_SLOTS_QUERY_DATA,
|
|
39596
40527
|
SET_BOOKING_SPACE_TRANSLATIONS_QUERY_DATA,
|
|
39597
40528
|
SET_BOOKING_SPACE_TRANSLATION_QUERY_DATA,
|
|
@@ -40143,6 +41074,10 @@ export {
|
|
|
40143
41074
|
UpdateBookingSpace,
|
|
40144
41075
|
UpdateBookingSpaceAvailability,
|
|
40145
41076
|
UpdateBookingSpaceBlackout,
|
|
41077
|
+
UpdateBookingSpaceQuestion,
|
|
41078
|
+
UpdateBookingSpaceQuestionChoice,
|
|
41079
|
+
UpdateBookingSpaceQuestionChoiceTranslation,
|
|
41080
|
+
UpdateBookingSpaceQuestionTranslation,
|
|
40146
41081
|
UpdateBookingSpaceTranslation,
|
|
40147
41082
|
UpdateChannel,
|
|
40148
41083
|
UpdateChannelContent,
|
|
@@ -40386,6 +41321,7 @@ export {
|
|
|
40386
41321
|
useAddSurveySectionQuestion,
|
|
40387
41322
|
useAddSurveySession,
|
|
40388
41323
|
useArchiveActivity,
|
|
41324
|
+
useAttachBookingSpaceQuestionSearchList,
|
|
40389
41325
|
useAttachEventQuestionSearchList,
|
|
40390
41326
|
useAttachEventSessionQuestionSearchList,
|
|
40391
41327
|
useAttachSurveyQuestionSearchList,
|
|
@@ -40419,6 +41355,8 @@ export {
|
|
|
40419
41355
|
useCreateBookingSpace,
|
|
40420
41356
|
useCreateBookingSpaceAvailability,
|
|
40421
41357
|
useCreateBookingSpaceBlackout,
|
|
41358
|
+
useCreateBookingSpaceQuestion,
|
|
41359
|
+
useCreateBookingSpaceQuestionChoice,
|
|
40422
41360
|
useCreateChannel,
|
|
40423
41361
|
useCreateChannelContent,
|
|
40424
41362
|
useCreateChannelContentGuest,
|
|
@@ -40528,6 +41466,10 @@ export {
|
|
|
40528
41466
|
useDeleteBookingSpace,
|
|
40529
41467
|
useDeleteBookingSpaceAvailability,
|
|
40530
41468
|
useDeleteBookingSpaceBlackout,
|
|
41469
|
+
useDeleteBookingSpaceQuestion,
|
|
41470
|
+
useDeleteBookingSpaceQuestionChoice,
|
|
41471
|
+
useDeleteBookingSpaceQuestionChoiceTranslation,
|
|
41472
|
+
useDeleteBookingSpaceQuestionTranslation,
|
|
40531
41473
|
useDeleteBookingSpaceTranslation,
|
|
40532
41474
|
useDeleteChannel,
|
|
40533
41475
|
useDeleteChannelContent,
|
|
@@ -40666,6 +41608,7 @@ export {
|
|
|
40666
41608
|
useDeleteUserImage,
|
|
40667
41609
|
useDeleteVideo,
|
|
40668
41610
|
useDeleteVideoCaption,
|
|
41611
|
+
useDetachBookingSpaceQuestionSearchList,
|
|
40669
41612
|
useDetachEventQuestionSearchList,
|
|
40670
41613
|
useDetachEventSessionQuestionSearchList,
|
|
40671
41614
|
useDetachSurveyQuestionSearchList,
|
|
@@ -40732,6 +41675,7 @@ export {
|
|
|
40732
41675
|
useGetBookingPlaceTranslation,
|
|
40733
41676
|
useGetBookingPlaceTranslations,
|
|
40734
41677
|
useGetBookingPlaces,
|
|
41678
|
+
useGetBookingResponses,
|
|
40735
41679
|
useGetBookingSpace,
|
|
40736
41680
|
useGetBookingSpaceAvailabilities,
|
|
40737
41681
|
useGetBookingSpaceAvailability,
|
|
@@ -40739,6 +41683,14 @@ export {
|
|
|
40739
41683
|
useGetBookingSpaceBlackouts,
|
|
40740
41684
|
useGetBookingSpaceBookings,
|
|
40741
41685
|
useGetBookingSpacePayments,
|
|
41686
|
+
useGetBookingSpaceQuestion,
|
|
41687
|
+
useGetBookingSpaceQuestionChoice,
|
|
41688
|
+
useGetBookingSpaceQuestionChoiceTranslation,
|
|
41689
|
+
useGetBookingSpaceQuestionChoiceTranslations,
|
|
41690
|
+
useGetBookingSpaceQuestionChoices,
|
|
41691
|
+
useGetBookingSpaceQuestionTranslation,
|
|
41692
|
+
useGetBookingSpaceQuestionTranslations,
|
|
41693
|
+
useGetBookingSpaceQuestions,
|
|
40742
41694
|
useGetBookingSpaceSlots,
|
|
40743
41695
|
useGetBookingSpaceTranslation,
|
|
40744
41696
|
useGetBookingSpaceTranslations,
|
|
@@ -41266,6 +42218,8 @@ export {
|
|
|
41266
42218
|
useRemoveSurveySectionQuestion,
|
|
41267
42219
|
useRemoveSurveySession,
|
|
41268
42220
|
useRemoveTierAccounts,
|
|
42221
|
+
useReorderBookingSpaceQuestionChoices,
|
|
42222
|
+
useReorderBookingSpaceQuestions,
|
|
41269
42223
|
useReorderEventFaqSectionQuestions,
|
|
41270
42224
|
useReorderEventFollowupQuestions,
|
|
41271
42225
|
useReorderEventQuestionChoiceSubQuestions,
|
|
@@ -41314,6 +42268,10 @@ export {
|
|
|
41314
42268
|
useUpdateBookingSpace,
|
|
41315
42269
|
useUpdateBookingSpaceAvailability,
|
|
41316
42270
|
useUpdateBookingSpaceBlackout,
|
|
42271
|
+
useUpdateBookingSpaceQuestion,
|
|
42272
|
+
useUpdateBookingSpaceQuestionChoice,
|
|
42273
|
+
useUpdateBookingSpaceQuestionChoiceTranslation,
|
|
42274
|
+
useUpdateBookingSpaceQuestionTranslation,
|
|
41317
42275
|
useUpdateBookingSpaceTranslation,
|
|
41318
42276
|
useUpdateChannel,
|
|
41319
42277
|
useUpdateChannelContent,
|