@connectedxm/client 0.0.59 → 0.0.78
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.d.mts +325 -320
- package/dist/index.d.ts +325 -320
- package/dist/index.js +503 -399
- package/dist/index.mjs +500 -394
- package/package.json +5 -2
package/dist/index.js
CHANGED
|
@@ -128,6 +128,7 @@ __export(src_exports, {
|
|
|
128
128
|
GetActivityComments: () => GetActivityComments,
|
|
129
129
|
GetAdvertisement: () => GetAdvertisement,
|
|
130
130
|
GetBenefits: () => GetBenefits,
|
|
131
|
+
GetClientAPI: () => GetClientAPI,
|
|
131
132
|
GetCommunities: () => GetCommunities,
|
|
132
133
|
GetCommunity: () => GetCommunity,
|
|
133
134
|
GetCommunityActivities: () => GetCommunityActivities,
|
|
@@ -363,7 +364,6 @@ __export(src_exports, {
|
|
|
363
364
|
UpdateSelfNotificationPreferences: () => UpdateSelfNotificationPreferences,
|
|
364
365
|
UpdateSelfPushDevice: () => UpdateSelfPushDevice,
|
|
365
366
|
UpdateSubscriptionPaymentMethod: () => UpdateSubscriptionPaymentMethod,
|
|
366
|
-
getClientAPI: () => getClientAPI,
|
|
367
367
|
isListing: () => isListing,
|
|
368
368
|
isManagedCoupon: () => isManagedCoupon,
|
|
369
369
|
isSelf: () => isSelf,
|
|
@@ -413,7 +413,6 @@ __export(src_exports, {
|
|
|
413
413
|
useCancelSubscription: () => useCancelSubscription,
|
|
414
414
|
useCancelTransfer: () => useCancelTransfer,
|
|
415
415
|
useCaptureSelfEventRegistrationPayment: () => useCaptureSelfEventRegistrationPayment,
|
|
416
|
-
useClientAPI: () => useClientAPI,
|
|
417
416
|
useCompleteEventActivation: () => useCompleteEventActivation,
|
|
418
417
|
useConnectedXM: () => useConnectedXM,
|
|
419
418
|
useCreateCommunityAnnouncement: () => useCreateCommunityAnnouncement,
|
|
@@ -568,72 +567,35 @@ module.exports = __toCommonJS(src_exports);
|
|
|
568
567
|
|
|
569
568
|
// src/ConnectedXMProvider.tsx
|
|
570
569
|
var import_react = __toESM(require("react"));
|
|
571
|
-
var
|
|
572
|
-
|
|
573
|
-
);
|
|
570
|
+
var import_react_query = require("@tanstack/react-query");
|
|
571
|
+
var ConnectedXMClientContext = import_react.default.createContext({});
|
|
574
572
|
var ConnectedXMProvider = ({
|
|
573
|
+
queryClient,
|
|
575
574
|
children,
|
|
576
575
|
...state
|
|
577
576
|
}) => {
|
|
578
|
-
const [
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
setExecuteAs
|
|
589
|
-
}
|
|
590
|
-
},
|
|
591
|
-
children
|
|
592
|
-
);
|
|
577
|
+
const [ssr, setSSR] = import_react.default.useState(true);
|
|
578
|
+
import_react.default.useEffect(() => {
|
|
579
|
+
setSSR(false);
|
|
580
|
+
}, []);
|
|
581
|
+
const render = () => {
|
|
582
|
+
return /* @__PURE__ */ import_react.default.createElement(ConnectedXMClientContext.Provider, { value: state }, children);
|
|
583
|
+
};
|
|
584
|
+
if (ssr)
|
|
585
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react_query.QueryClientProvider, { client: queryClient }, render());
|
|
586
|
+
return render();
|
|
593
587
|
};
|
|
594
588
|
|
|
595
589
|
// src/hooks/useConnectedXM.ts
|
|
596
590
|
var import_react2 = __toESM(require("react"));
|
|
597
591
|
var useConnectedXM = () => {
|
|
598
|
-
const context = import_react2.default.useContext(
|
|
599
|
-
ConnectedXMClientContext
|
|
600
|
-
);
|
|
592
|
+
const context = import_react2.default.useContext(ConnectedXMClientContext);
|
|
601
593
|
if (!context) {
|
|
602
594
|
throw new Error("useConnectedXM must be used within a ConnectedXMProvider");
|
|
603
595
|
}
|
|
604
596
|
return context;
|
|
605
597
|
};
|
|
606
598
|
|
|
607
|
-
// src/hooks/useClientAPI.ts
|
|
608
|
-
var import_axios = __toESM(require("axios"));
|
|
609
|
-
var getClientAPI = (apiUrl, organizationId, token, executeAs, locale) => {
|
|
610
|
-
return import_axios.default.create({
|
|
611
|
-
baseURL: apiUrl,
|
|
612
|
-
headers: {
|
|
613
|
-
authorization: token,
|
|
614
|
-
organization: organizationId,
|
|
615
|
-
executeAs,
|
|
616
|
-
locale
|
|
617
|
-
}
|
|
618
|
-
});
|
|
619
|
-
};
|
|
620
|
-
var useClientAPI = (locale) => {
|
|
621
|
-
const {
|
|
622
|
-
apiUrl,
|
|
623
|
-
token,
|
|
624
|
-
organizationId,
|
|
625
|
-
executeAs,
|
|
626
|
-
locale: _locale
|
|
627
|
-
} = useConnectedXM();
|
|
628
|
-
return getClientAPI(
|
|
629
|
-
apiUrl,
|
|
630
|
-
organizationId,
|
|
631
|
-
token,
|
|
632
|
-
executeAs,
|
|
633
|
-
locale || _locale
|
|
634
|
-
);
|
|
635
|
-
};
|
|
636
|
-
|
|
637
599
|
// src/interfaces.ts
|
|
638
600
|
var RegistrationStatus = /* @__PURE__ */ ((RegistrationStatus2) => {
|
|
639
601
|
RegistrationStatus2["registered"] = "registered";
|
|
@@ -891,10 +853,10 @@ var AppendInfiniteQuery = (queryClient, key, newData) => {
|
|
|
891
853
|
};
|
|
892
854
|
|
|
893
855
|
// src/utilities/GetErrorMessage.ts
|
|
894
|
-
var
|
|
856
|
+
var import_axios = __toESM(require("axios"));
|
|
895
857
|
var GetErrorMessage = (error, fallback = "Something went wrong") => {
|
|
896
858
|
let message = fallback;
|
|
897
|
-
if (
|
|
859
|
+
if (import_axios.default.isAxiosError(error)) {
|
|
898
860
|
message = error.response?.data?.message || message;
|
|
899
861
|
} else {
|
|
900
862
|
message = error.message;
|
|
@@ -913,30 +875,38 @@ function MergeInfinitePages(data) {
|
|
|
913
875
|
}
|
|
914
876
|
|
|
915
877
|
// src/queries/useConnectedSingleQuery.ts
|
|
916
|
-
var
|
|
878
|
+
var import_react_query2 = require("@tanstack/react-query");
|
|
917
879
|
var GetBaseSingleQueryKeys = (locale) => {
|
|
918
880
|
return [locale];
|
|
919
881
|
};
|
|
920
882
|
var useConnectedSingleQuery = (queryKeys, queryFn, options) => {
|
|
921
|
-
const {
|
|
922
|
-
|
|
923
|
-
|
|
883
|
+
const {
|
|
884
|
+
locale,
|
|
885
|
+
onModuleForbidden,
|
|
886
|
+
onNotAuthorized,
|
|
887
|
+
onNotFound,
|
|
888
|
+
apiUrl,
|
|
889
|
+
organizationId,
|
|
890
|
+
getToken,
|
|
891
|
+
getExecuteAs
|
|
892
|
+
} = useConnectedXM();
|
|
893
|
+
return (0, import_react_query2.useQuery)({
|
|
924
894
|
staleTime: 60 * 1e3,
|
|
925
895
|
// 60 Seconds
|
|
926
896
|
retry: (failureCount, error) => {
|
|
927
897
|
if (error.response?.status === 404) {
|
|
928
898
|
if (onNotFound)
|
|
929
|
-
onNotFound(error);
|
|
899
|
+
onNotFound(error, queryKeys);
|
|
930
900
|
return false;
|
|
931
901
|
}
|
|
932
902
|
if (error.response?.status === 403) {
|
|
933
903
|
if (onModuleForbidden)
|
|
934
|
-
onModuleForbidden(error);
|
|
904
|
+
onModuleForbidden(error, queryKeys);
|
|
935
905
|
return false;
|
|
936
906
|
}
|
|
937
907
|
if (error.response?.status === 401) {
|
|
938
908
|
if (onNotAuthorized)
|
|
939
|
-
onNotAuthorized(error);
|
|
909
|
+
onNotAuthorized(error, queryKeys);
|
|
940
910
|
return false;
|
|
941
911
|
}
|
|
942
912
|
if (failureCount < 3)
|
|
@@ -946,7 +916,13 @@ var useConnectedSingleQuery = (queryKeys, queryFn, options) => {
|
|
|
946
916
|
...options,
|
|
947
917
|
queryKey: [...queryKeys, ...GetBaseSingleQueryKeys(locale)],
|
|
948
918
|
queryFn: () => queryFn({
|
|
949
|
-
|
|
919
|
+
clientApiParams: {
|
|
920
|
+
apiUrl,
|
|
921
|
+
organizationId,
|
|
922
|
+
getToken,
|
|
923
|
+
getExecuteAs,
|
|
924
|
+
locale
|
|
925
|
+
}
|
|
950
926
|
})
|
|
951
927
|
});
|
|
952
928
|
};
|
|
@@ -1022,7 +998,7 @@ var CacheIndividualQueries = (page, queryClient, queryKeyFn, locale = "en", item
|
|
|
1022
998
|
};
|
|
1023
999
|
|
|
1024
1000
|
// src/queries/useConnectedInfiniteQuery.ts
|
|
1025
|
-
var
|
|
1001
|
+
var import_react_query3 = require("@tanstack/react-query");
|
|
1026
1002
|
var GetBaseInfiniteQueryKeys = (locale, search = "") => {
|
|
1027
1003
|
return [locale, search];
|
|
1028
1004
|
};
|
|
@@ -1033,32 +1009,39 @@ var setFirstPageData = (response) => {
|
|
|
1033
1009
|
};
|
|
1034
1010
|
};
|
|
1035
1011
|
var useConnectedInfiniteQuery = (queryKeys, queryFn, params = {}, options) => {
|
|
1036
|
-
const {
|
|
1037
|
-
|
|
1038
|
-
|
|
1012
|
+
const {
|
|
1013
|
+
locale,
|
|
1014
|
+
onModuleForbidden,
|
|
1015
|
+
onNotAuthorized,
|
|
1016
|
+
onNotFound,
|
|
1017
|
+
apiUrl,
|
|
1018
|
+
getToken,
|
|
1019
|
+
organizationId,
|
|
1020
|
+
getExecuteAs
|
|
1021
|
+
} = useConnectedXM();
|
|
1039
1022
|
const getNextPageParam = (lastPage, allPages) => {
|
|
1040
1023
|
if (lastPage.data.length === params.pageSize) {
|
|
1041
1024
|
return allPages.length + 1;
|
|
1042
1025
|
}
|
|
1043
1026
|
return void 0;
|
|
1044
1027
|
};
|
|
1045
|
-
return (0,
|
|
1028
|
+
return (0, import_react_query3.useInfiniteQuery)({
|
|
1046
1029
|
staleTime: 60 * 1e3,
|
|
1047
1030
|
// 60 Seconds
|
|
1048
1031
|
retry: (failureCount, error) => {
|
|
1049
1032
|
if (error.response?.status === 404) {
|
|
1050
1033
|
if (onNotFound)
|
|
1051
|
-
onNotFound(error);
|
|
1034
|
+
onNotFound(error, queryKeys);
|
|
1052
1035
|
return false;
|
|
1053
1036
|
}
|
|
1054
1037
|
if (error.response?.status === 403) {
|
|
1055
1038
|
if (onModuleForbidden)
|
|
1056
|
-
onModuleForbidden(error);
|
|
1039
|
+
onModuleForbidden(error, queryKeys);
|
|
1057
1040
|
return false;
|
|
1058
1041
|
}
|
|
1059
1042
|
if (error.response?.status === 401) {
|
|
1060
1043
|
if (onNotAuthorized)
|
|
1061
|
-
onNotAuthorized(error);
|
|
1044
|
+
onNotAuthorized(error, queryKeys);
|
|
1062
1045
|
return false;
|
|
1063
1046
|
}
|
|
1064
1047
|
if (failureCount < 3)
|
|
@@ -1070,12 +1053,34 @@ var useConnectedInfiniteQuery = (queryKeys, queryFn, params = {}, options) => {
|
|
|
1070
1053
|
...queryKeys,
|
|
1071
1054
|
...GetBaseInfiniteQueryKeys(params?.locale || locale, params?.search)
|
|
1072
1055
|
],
|
|
1073
|
-
queryFn: ({ pageParam }) => queryFn({ ...params, pageSize: params.pageSize || 25, locale: params.locale || locale, pageParam,
|
|
1056
|
+
queryFn: ({ pageParam }) => queryFn({ ...params, pageSize: params.pageSize || 25, locale: params.locale || locale, pageParam, clientApiParams: {
|
|
1057
|
+
apiUrl,
|
|
1058
|
+
getToken,
|
|
1059
|
+
organizationId,
|
|
1060
|
+
getExecuteAs,
|
|
1061
|
+
locale
|
|
1062
|
+
} }),
|
|
1074
1063
|
initialPageParam: 1,
|
|
1075
1064
|
getNextPageParam
|
|
1076
1065
|
});
|
|
1077
1066
|
};
|
|
1078
1067
|
|
|
1068
|
+
// src/ClientAPI.ts
|
|
1069
|
+
var import_axios2 = __toESM(require("axios"));
|
|
1070
|
+
var GetClientAPI = async (params) => {
|
|
1071
|
+
const token = await params.getToken();
|
|
1072
|
+
const executeAs = params.getExecuteAs ? await params.getExecuteAs() : void 0;
|
|
1073
|
+
return import_axios2.default.create({
|
|
1074
|
+
baseURL: params.apiUrl,
|
|
1075
|
+
headers: {
|
|
1076
|
+
organization: params.organizationId,
|
|
1077
|
+
locale: params.locale,
|
|
1078
|
+
authorization: token,
|
|
1079
|
+
executeAs
|
|
1080
|
+
}
|
|
1081
|
+
});
|
|
1082
|
+
};
|
|
1083
|
+
|
|
1079
1084
|
// src/queries/accounts/useGetAccounts.ts
|
|
1080
1085
|
var ACCOUNTS_QUERY_KEY = () => ["ACCOUNTS"];
|
|
1081
1086
|
var SET_ACCOUNTS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
@@ -1092,9 +1097,10 @@ var GetAccounts = async ({
|
|
|
1092
1097
|
orderBy,
|
|
1093
1098
|
search,
|
|
1094
1099
|
queryClient,
|
|
1095
|
-
|
|
1100
|
+
clientApiParams,
|
|
1096
1101
|
locale
|
|
1097
1102
|
}) => {
|
|
1103
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1098
1104
|
const { data } = await clientApi.get(`/accounts`, {
|
|
1099
1105
|
params: {
|
|
1100
1106
|
pageSize: pageSize || void 0,
|
|
@@ -1113,14 +1119,12 @@ var GetAccounts = async ({
|
|
|
1113
1119
|
return data;
|
|
1114
1120
|
};
|
|
1115
1121
|
var useGetAccounts = (params = {}, options = {}) => {
|
|
1116
|
-
const { token } = useConnectedXM();
|
|
1117
1122
|
return useConnectedInfiniteQuery(
|
|
1118
1123
|
ACCOUNTS_QUERY_KEY(),
|
|
1119
1124
|
(params2) => GetAccounts({ ...params2 }),
|
|
1120
1125
|
params,
|
|
1121
1126
|
{
|
|
1122
|
-
...options
|
|
1123
|
-
enabled: !!token && (options?.enabled ?? true)
|
|
1127
|
+
...options
|
|
1124
1128
|
}
|
|
1125
1129
|
);
|
|
1126
1130
|
};
|
|
@@ -1141,19 +1145,19 @@ var SET_ACCOUNT_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) =>
|
|
|
1141
1145
|
};
|
|
1142
1146
|
var GetAccount = async ({
|
|
1143
1147
|
accountId,
|
|
1144
|
-
|
|
1148
|
+
clientApiParams
|
|
1145
1149
|
}) => {
|
|
1150
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1146
1151
|
const { data } = await clientApi.get(`/accounts/${accountId}`);
|
|
1147
1152
|
return data;
|
|
1148
1153
|
};
|
|
1149
|
-
var useGetAccount = (accountId, options = {}) => {
|
|
1150
|
-
const { token } = useConnectedXM();
|
|
1154
|
+
var useGetAccount = (accountId = "", options = {}) => {
|
|
1151
1155
|
return useConnectedSingleQuery(
|
|
1152
1156
|
ACCOUNT_QUERY_KEY(accountId),
|
|
1153
1157
|
(_params) => GetAccount({ accountId, ..._params }),
|
|
1154
1158
|
{
|
|
1155
1159
|
...options,
|
|
1156
|
-
enabled: !!
|
|
1160
|
+
enabled: !!accountId && (options?.enabled ?? true)
|
|
1157
1161
|
}
|
|
1158
1162
|
);
|
|
1159
1163
|
};
|
|
@@ -1175,9 +1179,10 @@ var GetActivities = async ({
|
|
|
1175
1179
|
orderBy,
|
|
1176
1180
|
search,
|
|
1177
1181
|
queryClient,
|
|
1178
|
-
|
|
1182
|
+
clientApiParams,
|
|
1179
1183
|
locale
|
|
1180
1184
|
}) => {
|
|
1185
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1181
1186
|
const { data } = await clientApi.get(`/activities`, {
|
|
1182
1187
|
params: {
|
|
1183
1188
|
page: pageParam || void 0,
|
|
@@ -1197,13 +1202,12 @@ var GetActivities = async ({
|
|
|
1197
1202
|
return data;
|
|
1198
1203
|
};
|
|
1199
1204
|
var useGetActivities = (params = {}, options = {}) => {
|
|
1200
|
-
const { token } = useConnectedXM();
|
|
1201
1205
|
return useConnectedInfiniteQuery(
|
|
1202
1206
|
ACTIVITIES_QUERY_KEY(),
|
|
1203
1207
|
(params2) => GetActivities(params2),
|
|
1204
1208
|
params,
|
|
1205
1209
|
{
|
|
1206
|
-
|
|
1210
|
+
...options
|
|
1207
1211
|
}
|
|
1208
1212
|
);
|
|
1209
1213
|
};
|
|
@@ -1224,19 +1228,19 @@ var SET_ACTIVITY_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) =
|
|
|
1224
1228
|
};
|
|
1225
1229
|
var GetActivity = async ({
|
|
1226
1230
|
activityId,
|
|
1227
|
-
|
|
1231
|
+
clientApiParams
|
|
1228
1232
|
}) => {
|
|
1233
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1229
1234
|
const { data } = await clientApi.get(`/activities/${activityId}`);
|
|
1230
1235
|
return data;
|
|
1231
1236
|
};
|
|
1232
|
-
var useGetActivity = (activityId, options = {}) => {
|
|
1233
|
-
const { token } = useConnectedXM();
|
|
1237
|
+
var useGetActivity = (activityId = "", options = {}) => {
|
|
1234
1238
|
return useConnectedSingleQuery(
|
|
1235
1239
|
ACTIVITY_QUERY_KEY(activityId),
|
|
1236
1240
|
(params) => GetActivity({ activityId: activityId || "unknown", ...params }),
|
|
1237
1241
|
{
|
|
1238
1242
|
...options,
|
|
1239
|
-
enabled: !!
|
|
1243
|
+
enabled: !!activityId && (options?.enabled ?? true)
|
|
1240
1244
|
}
|
|
1241
1245
|
);
|
|
1242
1246
|
};
|
|
@@ -1262,9 +1266,10 @@ var GetAccountActivities = async ({
|
|
|
1262
1266
|
search,
|
|
1263
1267
|
accountId,
|
|
1264
1268
|
queryClient,
|
|
1265
|
-
|
|
1269
|
+
clientApiParams,
|
|
1266
1270
|
locale
|
|
1267
1271
|
}) => {
|
|
1272
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1268
1273
|
const { data } = await clientApi.get(`/accounts/${accountId}/activities`, {
|
|
1269
1274
|
params: {
|
|
1270
1275
|
page: pageParam || void 0,
|
|
@@ -1283,15 +1288,14 @@ var GetAccountActivities = async ({
|
|
|
1283
1288
|
}
|
|
1284
1289
|
return data;
|
|
1285
1290
|
};
|
|
1286
|
-
var useGetAccountActivities = (accountId, params = {}, options = {}) => {
|
|
1287
|
-
const { token } = useConnectedXM();
|
|
1291
|
+
var useGetAccountActivities = (accountId = "", params = {}, options = {}) => {
|
|
1288
1292
|
return useConnectedInfiniteQuery(
|
|
1289
1293
|
ACCOUNT_ACTIVITIES_QUERY_KEY(accountId),
|
|
1290
1294
|
(params2) => GetAccountActivities({ accountId, ...params2 }),
|
|
1291
1295
|
params,
|
|
1292
1296
|
{
|
|
1293
1297
|
...options,
|
|
1294
|
-
enabled: !!
|
|
1298
|
+
enabled: !!accountId
|
|
1295
1299
|
}
|
|
1296
1300
|
);
|
|
1297
1301
|
};
|
|
@@ -1309,19 +1313,19 @@ var SET_ACCOUNT_BY_SHARE_CODE_QUERY_DATA = (client, keyParams, response, baseKey
|
|
|
1309
1313
|
};
|
|
1310
1314
|
var GetAccountByShareCode = async ({
|
|
1311
1315
|
shareCode,
|
|
1312
|
-
|
|
1316
|
+
clientApiParams
|
|
1313
1317
|
}) => {
|
|
1318
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1314
1319
|
const { data } = await clientApi.get(`/accounts/shareCode/${shareCode}`);
|
|
1315
1320
|
return data;
|
|
1316
1321
|
};
|
|
1317
|
-
var useGetAccountByShareCode = (shareCode, options = {}) => {
|
|
1318
|
-
const { token } = useConnectedXM();
|
|
1322
|
+
var useGetAccountByShareCode = (shareCode = "", options = {}) => {
|
|
1319
1323
|
return useConnectedSingleQuery(
|
|
1320
1324
|
ACCOUNT_BY_SHARE_CODE_QUERY_KEY(shareCode),
|
|
1321
1325
|
(params) => GetAccountByShareCode({ shareCode: shareCode || "unknown", ...params }),
|
|
1322
1326
|
{
|
|
1323
1327
|
...options,
|
|
1324
|
-
enabled: !!
|
|
1328
|
+
enabled: !!shareCode && (options?.enabled ?? true),
|
|
1325
1329
|
retry: false
|
|
1326
1330
|
}
|
|
1327
1331
|
);
|
|
@@ -1345,7 +1349,7 @@ var GetCommunities = async ({
|
|
|
1345
1349
|
search,
|
|
1346
1350
|
privateCommunities,
|
|
1347
1351
|
queryClient,
|
|
1348
|
-
|
|
1352
|
+
clientApiParams,
|
|
1349
1353
|
locale
|
|
1350
1354
|
}) => {
|
|
1351
1355
|
if (privateCommunities) {
|
|
@@ -1355,6 +1359,7 @@ var GetCommunities = async ({
|
|
|
1355
1359
|
data: []
|
|
1356
1360
|
};
|
|
1357
1361
|
}
|
|
1362
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1358
1363
|
const { data } = await clientApi.get(`/communities`, {
|
|
1359
1364
|
params: {
|
|
1360
1365
|
page: pageParam || void 0,
|
|
@@ -1400,12 +1405,13 @@ var SET_COMMUNITY_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"],
|
|
|
1400
1405
|
};
|
|
1401
1406
|
var GetCommunity = async ({
|
|
1402
1407
|
communityId,
|
|
1403
|
-
|
|
1408
|
+
clientApiParams
|
|
1404
1409
|
}) => {
|
|
1410
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1405
1411
|
const { data } = await clientApi.get(`/communities/${communityId}`);
|
|
1406
1412
|
return data;
|
|
1407
1413
|
};
|
|
1408
|
-
var useGetCommunity = (communityId, options = {}) => {
|
|
1414
|
+
var useGetCommunity = (communityId = "", options = {}) => {
|
|
1409
1415
|
return useConnectedSingleQuery(
|
|
1410
1416
|
COMMUNITY_QUERY_KEY(communityId),
|
|
1411
1417
|
(params) => GetCommunity({ communityId, ...params }),
|
|
@@ -1437,9 +1443,10 @@ var GetAccountCommunities = async ({
|
|
|
1437
1443
|
search,
|
|
1438
1444
|
accountId,
|
|
1439
1445
|
queryClient,
|
|
1440
|
-
|
|
1446
|
+
clientApiParams,
|
|
1441
1447
|
locale
|
|
1442
1448
|
}) => {
|
|
1449
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1443
1450
|
const { data } = await clientApi.get(`/accounts/${accountId}/communities`, {
|
|
1444
1451
|
params: {
|
|
1445
1452
|
page: pageParam || void 0,
|
|
@@ -1458,15 +1465,14 @@ var GetAccountCommunities = async ({
|
|
|
1458
1465
|
}
|
|
1459
1466
|
return data;
|
|
1460
1467
|
};
|
|
1461
|
-
var useGetAccountCommunities = (accountId, params = {}, options = {}) => {
|
|
1462
|
-
const { token } = useConnectedXM();
|
|
1468
|
+
var useGetAccountCommunities = (accountId = "", params = {}, options = {}) => {
|
|
1463
1469
|
return useConnectedInfiniteQuery(
|
|
1464
1470
|
ACCOUNT_COMMUNITIES_QUERY_KEY(accountId),
|
|
1465
1471
|
(params2) => GetAccountCommunities({ accountId, ...params2 }),
|
|
1466
1472
|
params,
|
|
1467
1473
|
{
|
|
1468
1474
|
...options,
|
|
1469
|
-
enabled: !!
|
|
1475
|
+
enabled: !!accountId && (options?.enabled ?? true)
|
|
1470
1476
|
}
|
|
1471
1477
|
);
|
|
1472
1478
|
};
|
|
@@ -1492,9 +1498,10 @@ var GetAccountFollowers = async ({
|
|
|
1492
1498
|
search,
|
|
1493
1499
|
accountId,
|
|
1494
1500
|
queryClient,
|
|
1495
|
-
|
|
1501
|
+
clientApiParams,
|
|
1496
1502
|
locale
|
|
1497
1503
|
}) => {
|
|
1504
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1498
1505
|
const { data } = await clientApi.get(`/accounts/${accountId}/followers`, {
|
|
1499
1506
|
params: {
|
|
1500
1507
|
page: pageParam || void 0,
|
|
@@ -1513,15 +1520,14 @@ var GetAccountFollowers = async ({
|
|
|
1513
1520
|
}
|
|
1514
1521
|
return data;
|
|
1515
1522
|
};
|
|
1516
|
-
var useGetAccountFollowers = (accountId, params = {}, options = {}) => {
|
|
1517
|
-
const { token } = useConnectedXM();
|
|
1523
|
+
var useGetAccountFollowers = (accountId = "", params = {}, options = {}) => {
|
|
1518
1524
|
return useConnectedInfiniteQuery(
|
|
1519
1525
|
ACCOUNT_FOLLOWERS_QUERY_KEY(accountId),
|
|
1520
1526
|
(params2) => GetAccountFollowers({ accountId, ...params2 }),
|
|
1521
1527
|
params,
|
|
1522
1528
|
{
|
|
1523
1529
|
...options,
|
|
1524
|
-
enabled: !!
|
|
1530
|
+
enabled: !!accountId && (options?.enabled ?? true)
|
|
1525
1531
|
}
|
|
1526
1532
|
);
|
|
1527
1533
|
};
|
|
@@ -1547,9 +1553,10 @@ var GetAccountFollowings = async ({
|
|
|
1547
1553
|
search,
|
|
1548
1554
|
accountId,
|
|
1549
1555
|
queryClient,
|
|
1550
|
-
|
|
1556
|
+
clientApiParams,
|
|
1551
1557
|
locale
|
|
1552
1558
|
}) => {
|
|
1559
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1553
1560
|
const { data } = await clientApi.get(`/accounts/${accountId}/following`, {
|
|
1554
1561
|
params: {
|
|
1555
1562
|
page: pageParam || void 0,
|
|
@@ -1568,15 +1575,14 @@ var GetAccountFollowings = async ({
|
|
|
1568
1575
|
}
|
|
1569
1576
|
return data;
|
|
1570
1577
|
};
|
|
1571
|
-
var useGetAccountFollowings = (accountId, params = {}, options = {}) => {
|
|
1572
|
-
const { token } = useConnectedXM();
|
|
1578
|
+
var useGetAccountFollowings = (accountId = "", params = {}, options = {}) => {
|
|
1573
1579
|
return useConnectedInfiniteQuery(
|
|
1574
1580
|
ACCOUNT_FOLLOWINGS_QUERY_KEY(accountId),
|
|
1575
1581
|
(params2) => GetAccountFollowings({ accountId, ...params2 }),
|
|
1576
1582
|
params,
|
|
1577
1583
|
{
|
|
1578
1584
|
...options,
|
|
1579
|
-
enabled: !!
|
|
1585
|
+
enabled: !!accountId && (options?.enabled ?? true)
|
|
1580
1586
|
}
|
|
1581
1587
|
);
|
|
1582
1588
|
};
|
|
@@ -1602,9 +1608,10 @@ var GetActivityComments = async ({
|
|
|
1602
1608
|
orderBy,
|
|
1603
1609
|
search,
|
|
1604
1610
|
queryClient,
|
|
1605
|
-
|
|
1611
|
+
clientApiParams,
|
|
1606
1612
|
locale
|
|
1607
1613
|
}) => {
|
|
1614
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1608
1615
|
const { data } = await clientApi.get(`/activities/${activityId}/comments`, {
|
|
1609
1616
|
params: {
|
|
1610
1617
|
page: pageParam || void 0,
|
|
@@ -1623,14 +1630,13 @@ var GetActivityComments = async ({
|
|
|
1623
1630
|
}
|
|
1624
1631
|
return data;
|
|
1625
1632
|
};
|
|
1626
|
-
var useGetActivityComments = (activityId, params = {}, options = {}) => {
|
|
1627
|
-
const { token } = useConnectedXM();
|
|
1633
|
+
var useGetActivityComments = (activityId = "", params = {}, options = {}) => {
|
|
1628
1634
|
return useConnectedInfiniteQuery(
|
|
1629
1635
|
ACTIVITY_COMMENTS_QUERY_KEY(activityId),
|
|
1630
1636
|
(params2) => GetActivityComments({ activityId, ...params2 }),
|
|
1631
1637
|
params,
|
|
1632
1638
|
{
|
|
1633
|
-
enabled: !!
|
|
1639
|
+
enabled: !!activityId && (options?.enabled ?? true)
|
|
1634
1640
|
}
|
|
1635
1641
|
);
|
|
1636
1642
|
};
|
|
@@ -1650,8 +1656,9 @@ var SET_ADVERTISEMENT_QUERY_DATA = (client, keyParams, response, baseKeys = ["en
|
|
|
1650
1656
|
);
|
|
1651
1657
|
};
|
|
1652
1658
|
var GetAdvertisement = async ({
|
|
1653
|
-
|
|
1659
|
+
clientApiParams
|
|
1654
1660
|
}) => {
|
|
1661
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1655
1662
|
const { data } = await clientApi.get(`/advertisement`);
|
|
1656
1663
|
return data;
|
|
1657
1664
|
};
|
|
@@ -1682,8 +1689,9 @@ var GetBenefits = async ({
|
|
|
1682
1689
|
pageSize,
|
|
1683
1690
|
orderBy,
|
|
1684
1691
|
search,
|
|
1685
|
-
|
|
1692
|
+
clientApiParams
|
|
1686
1693
|
}) => {
|
|
1694
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1687
1695
|
const { data } = await clientApi.get(`/benefits`, {
|
|
1688
1696
|
params: {
|
|
1689
1697
|
page: pageParam || void 0,
|
|
@@ -1695,14 +1703,12 @@ var GetBenefits = async ({
|
|
|
1695
1703
|
return data;
|
|
1696
1704
|
};
|
|
1697
1705
|
var useGetBenefits = (params = {}, options = {}) => {
|
|
1698
|
-
const { token } = useConnectedXM();
|
|
1699
1706
|
return useConnectedInfiniteQuery(
|
|
1700
1707
|
BENEFITS_QUERY_KEY(),
|
|
1701
1708
|
(params2) => GetBenefits(params2),
|
|
1702
1709
|
params,
|
|
1703
1710
|
{
|
|
1704
|
-
...options
|
|
1705
|
-
enabled: !!token && (options?.enabled ?? true)
|
|
1711
|
+
...options
|
|
1706
1712
|
}
|
|
1707
1713
|
);
|
|
1708
1714
|
};
|
|
@@ -1725,9 +1731,10 @@ var GetCommunityActivities = async ({
|
|
|
1725
1731
|
search,
|
|
1726
1732
|
communityId,
|
|
1727
1733
|
queryClient,
|
|
1728
|
-
|
|
1734
|
+
clientApiParams,
|
|
1729
1735
|
locale
|
|
1730
1736
|
}) => {
|
|
1737
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1731
1738
|
const { data } = await clientApi.get(
|
|
1732
1739
|
`/communities/${communityId}/activities`,
|
|
1733
1740
|
{
|
|
@@ -1749,15 +1756,14 @@ var GetCommunityActivities = async ({
|
|
|
1749
1756
|
}
|
|
1750
1757
|
return data;
|
|
1751
1758
|
};
|
|
1752
|
-
var useGetCommunityActivities = (communityId, params = {}, options = {}) => {
|
|
1753
|
-
const { token } = useConnectedXM();
|
|
1759
|
+
var useGetCommunityActivities = (communityId = "", params = {}, options = {}) => {
|
|
1754
1760
|
return useConnectedInfiniteQuery(
|
|
1755
1761
|
COMMUNITY_ACTIVITIES_QUERY_KEY(communityId),
|
|
1756
1762
|
(params2) => GetCommunityActivities({ communityId, ...params2 }),
|
|
1757
1763
|
params,
|
|
1758
1764
|
{
|
|
1759
1765
|
...options,
|
|
1760
|
-
enabled: !!
|
|
1766
|
+
enabled: !!communityId && (options?.enabled ?? true)
|
|
1761
1767
|
}
|
|
1762
1768
|
);
|
|
1763
1769
|
};
|
|
@@ -1779,8 +1785,9 @@ var GetCommunityAnnouncements = async ({
|
|
|
1779
1785
|
pageSize,
|
|
1780
1786
|
orderBy,
|
|
1781
1787
|
search,
|
|
1782
|
-
|
|
1788
|
+
clientApiParams
|
|
1783
1789
|
}) => {
|
|
1790
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1784
1791
|
const { data } = await clientApi.get(
|
|
1785
1792
|
`/communities/${communityId}/announcements`,
|
|
1786
1793
|
{
|
|
@@ -1794,15 +1801,14 @@ var GetCommunityAnnouncements = async ({
|
|
|
1794
1801
|
);
|
|
1795
1802
|
return data;
|
|
1796
1803
|
};
|
|
1797
|
-
var useGetCommunityAnnouncements = (communityId, params = {}, options = {}) => {
|
|
1798
|
-
const { token } = useConnectedXM();
|
|
1804
|
+
var useGetCommunityAnnouncements = (communityId = "", params = {}, options = {}) => {
|
|
1799
1805
|
return useConnectedInfiniteQuery(
|
|
1800
1806
|
COMMUNITY_ANNOUNCEMENTS_QUERY_KEY(communityId),
|
|
1801
1807
|
(params2) => GetCommunityAnnouncements({ communityId, ...params2 }),
|
|
1802
1808
|
params,
|
|
1803
1809
|
{
|
|
1804
1810
|
...options,
|
|
1805
|
-
enabled: !!
|
|
1811
|
+
enabled: !!communityId && (options?.enabled ?? true)
|
|
1806
1812
|
}
|
|
1807
1813
|
);
|
|
1808
1814
|
};
|
|
@@ -1831,9 +1837,10 @@ var GetEvents = async ({
|
|
|
1831
1837
|
search,
|
|
1832
1838
|
past,
|
|
1833
1839
|
queryClient,
|
|
1834
|
-
|
|
1840
|
+
clientApiParams,
|
|
1835
1841
|
locale
|
|
1836
1842
|
}) => {
|
|
1843
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1837
1844
|
const { data } = await clientApi.get(`/events`, {
|
|
1838
1845
|
params: {
|
|
1839
1846
|
page: pageParam || void 0,
|
|
@@ -1875,12 +1882,13 @@ var SET_EVENT_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
|
1875
1882
|
};
|
|
1876
1883
|
var GetEvent = async ({
|
|
1877
1884
|
eventId,
|
|
1878
|
-
|
|
1885
|
+
clientApiParams
|
|
1879
1886
|
}) => {
|
|
1887
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1880
1888
|
const { data } = await clientApi.get(`/events/${eventId}`);
|
|
1881
1889
|
return data;
|
|
1882
1890
|
};
|
|
1883
|
-
var useGetEvent = (eventId, options = {}) => {
|
|
1891
|
+
var useGetEvent = (eventId = "", options = {}) => {
|
|
1884
1892
|
return useConnectedSingleQuery(
|
|
1885
1893
|
EVENT_QUERY_KEY(eventId),
|
|
1886
1894
|
(params) => GetEvent({ eventId, ...params }),
|
|
@@ -1914,9 +1922,10 @@ var GetCommunityEvents = async ({
|
|
|
1914
1922
|
communityId,
|
|
1915
1923
|
past,
|
|
1916
1924
|
queryClient,
|
|
1917
|
-
|
|
1925
|
+
clientApiParams,
|
|
1918
1926
|
locale
|
|
1919
1927
|
}) => {
|
|
1928
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1920
1929
|
const { data } = await clientApi.get(`/communities/${communityId}/events`, {
|
|
1921
1930
|
params: {
|
|
1922
1931
|
page: pageParam || void 0,
|
|
@@ -1936,7 +1945,7 @@ var GetCommunityEvents = async ({
|
|
|
1936
1945
|
}
|
|
1937
1946
|
return data;
|
|
1938
1947
|
};
|
|
1939
|
-
var useGetCommunityEvents = (communityId, past = false, params = {}, options = {}) => {
|
|
1948
|
+
var useGetCommunityEvents = (communityId = "", past = false, params = {}, options = {}) => {
|
|
1940
1949
|
return useConnectedInfiniteQuery(
|
|
1941
1950
|
COMMUNITY_EVENTS_QUERY_KEY(communityId, past),
|
|
1942
1951
|
(params2) => GetCommunityEvents({ communityId, past, ...params2 }),
|
|
@@ -1968,8 +1977,9 @@ var GetCommunityMembers = async ({
|
|
|
1968
1977
|
orderBy,
|
|
1969
1978
|
search,
|
|
1970
1979
|
communityId,
|
|
1971
|
-
|
|
1980
|
+
clientApiParams
|
|
1972
1981
|
}) => {
|
|
1982
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1973
1983
|
const { data } = await clientApi.get(`/communities/${communityId}/members`, {
|
|
1974
1984
|
params: {
|
|
1975
1985
|
page: pageParam || void 0,
|
|
@@ -1980,15 +1990,14 @@ var GetCommunityMembers = async ({
|
|
|
1980
1990
|
});
|
|
1981
1991
|
return data;
|
|
1982
1992
|
};
|
|
1983
|
-
var useGetCommunityMembers = (communityId, params = {}, options = {}) => {
|
|
1984
|
-
const { token } = useConnectedXM();
|
|
1993
|
+
var useGetCommunityMembers = (communityId = "", params = {}, options = {}) => {
|
|
1985
1994
|
return useConnectedInfiniteQuery(
|
|
1986
1995
|
COMMUNITY_MEMBERS_QUERY_KEY(communityId),
|
|
1987
1996
|
(params2) => GetCommunityMembers({ communityId, ...params2 }),
|
|
1988
1997
|
params,
|
|
1989
1998
|
{
|
|
1990
1999
|
...options,
|
|
1991
|
-
enabled: !!
|
|
2000
|
+
enabled: !!communityId && (options?.enabled ?? true)
|
|
1992
2001
|
}
|
|
1993
2002
|
);
|
|
1994
2003
|
};
|
|
@@ -2010,8 +2019,9 @@ var GetCommunityModerators = async ({
|
|
|
2010
2019
|
orderBy,
|
|
2011
2020
|
search,
|
|
2012
2021
|
communityId,
|
|
2013
|
-
|
|
2022
|
+
clientApiParams
|
|
2014
2023
|
}) => {
|
|
2024
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2015
2025
|
const { data } = await clientApi.get(
|
|
2016
2026
|
`/communities/${communityId}/moderators`,
|
|
2017
2027
|
{
|
|
@@ -2025,15 +2035,14 @@ var GetCommunityModerators = async ({
|
|
|
2025
2035
|
);
|
|
2026
2036
|
return data;
|
|
2027
2037
|
};
|
|
2028
|
-
var useGetCommunityModerators = (communityId, params = {}, options = {}) => {
|
|
2029
|
-
const { token } = useConnectedXM();
|
|
2038
|
+
var useGetCommunityModerators = (communityId = "", params = {}, options = {}) => {
|
|
2030
2039
|
return useConnectedInfiniteQuery(
|
|
2031
2040
|
COMMUNITY_MODERATORS_QUERY_KEY(communityId),
|
|
2032
2041
|
(params2) => GetCommunityModerators({ communityId, ...params2 }),
|
|
2033
2042
|
params,
|
|
2034
2043
|
{
|
|
2035
2044
|
...options,
|
|
2036
|
-
enabled: !!
|
|
2045
|
+
enabled: !!communityId && (options?.enabled ?? true)
|
|
2037
2046
|
}
|
|
2038
2047
|
);
|
|
2039
2048
|
};
|
|
@@ -2054,8 +2063,9 @@ var GetSponsors = async ({
|
|
|
2054
2063
|
pageSize,
|
|
2055
2064
|
orderBy,
|
|
2056
2065
|
search,
|
|
2057
|
-
|
|
2066
|
+
clientApiParams
|
|
2058
2067
|
}) => {
|
|
2068
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2059
2069
|
const { data } = await clientApi.get(`/sponsors`, {
|
|
2060
2070
|
params: {
|
|
2061
2071
|
page: pageParam || void 0,
|
|
@@ -2091,12 +2101,13 @@ var SET_SPONSOR_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) =>
|
|
|
2091
2101
|
};
|
|
2092
2102
|
var GetSponsor = async ({
|
|
2093
2103
|
accountId,
|
|
2094
|
-
|
|
2104
|
+
clientApiParams
|
|
2095
2105
|
}) => {
|
|
2106
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2096
2107
|
const { data } = await clientApi.get(`/sponsors/${accountId}`);
|
|
2097
2108
|
return data;
|
|
2098
2109
|
};
|
|
2099
|
-
var useGetSponsor = (accountId, options = {}) => {
|
|
2110
|
+
var useGetSponsor = (accountId = "", options = {}) => {
|
|
2100
2111
|
return useConnectedSingleQuery_default(
|
|
2101
2112
|
SPONSOR_QUERY_KEY(accountId),
|
|
2102
2113
|
(params) => GetSponsor({ accountId, ...params }),
|
|
@@ -2128,9 +2139,10 @@ var GetCommunitySponsors = async ({
|
|
|
2128
2139
|
search,
|
|
2129
2140
|
communityId,
|
|
2130
2141
|
queryClient,
|
|
2131
|
-
|
|
2142
|
+
clientApiParams,
|
|
2132
2143
|
locale
|
|
2133
2144
|
}) => {
|
|
2145
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2134
2146
|
const { data } = await clientApi.get(`/communities/${communityId}/sponsors`, {
|
|
2135
2147
|
params: {
|
|
2136
2148
|
page: pageParam || void 0,
|
|
@@ -2149,7 +2161,7 @@ var GetCommunitySponsors = async ({
|
|
|
2149
2161
|
}
|
|
2150
2162
|
return data;
|
|
2151
2163
|
};
|
|
2152
|
-
var useGetCommunitySponsors = (communityId, params = {}, options = {}) => {
|
|
2164
|
+
var useGetCommunitySponsors = (communityId = "", params = {}, options = {}) => {
|
|
2153
2165
|
return useConnectedInfiniteQuery(
|
|
2154
2166
|
COMMUNITY_SPONSORS_QUERY_KEY(communityId),
|
|
2155
2167
|
(params2) => GetCommunitySponsors({ communityId, ...params2 }),
|
|
@@ -2178,9 +2190,10 @@ var GetContents = async ({
|
|
|
2178
2190
|
orderBy,
|
|
2179
2191
|
search,
|
|
2180
2192
|
queryClient,
|
|
2181
|
-
|
|
2193
|
+
clientApiParams,
|
|
2182
2194
|
locale
|
|
2183
2195
|
}) => {
|
|
2196
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2184
2197
|
const { data } = await clientApi.get(`/contents`, {
|
|
2185
2198
|
params: {
|
|
2186
2199
|
page: pageParam || void 0,
|
|
@@ -2224,12 +2237,13 @@ var SET_CONTENT_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) =>
|
|
|
2224
2237
|
};
|
|
2225
2238
|
var GetContent = async ({
|
|
2226
2239
|
contentId,
|
|
2227
|
-
|
|
2240
|
+
clientApiParams
|
|
2228
2241
|
}) => {
|
|
2242
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2229
2243
|
const { data } = await clientApi.get(`/contents/${contentId}`);
|
|
2230
2244
|
return data;
|
|
2231
2245
|
};
|
|
2232
|
-
var useGetContent = (contentId, options = {}) => {
|
|
2246
|
+
var useGetContent = (contentId = "", options = {}) => {
|
|
2233
2247
|
return useConnectedSingleQuery_default(
|
|
2234
2248
|
CONTENT_QUERY_KEY(contentId),
|
|
2235
2249
|
(params) => GetContent({ contentId: contentId || "", ...params }),
|
|
@@ -2261,9 +2275,10 @@ var GetContentActivities = async ({
|
|
|
2261
2275
|
search,
|
|
2262
2276
|
contentId,
|
|
2263
2277
|
queryClient,
|
|
2264
|
-
|
|
2278
|
+
clientApiParams,
|
|
2265
2279
|
locale
|
|
2266
2280
|
}) => {
|
|
2281
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2267
2282
|
const { data } = await clientApi.get(`/contents/${contentId}/activities`, {
|
|
2268
2283
|
params: {
|
|
2269
2284
|
page: pageParam || void 0,
|
|
@@ -2282,15 +2297,14 @@ var GetContentActivities = async ({
|
|
|
2282
2297
|
}
|
|
2283
2298
|
return data;
|
|
2284
2299
|
};
|
|
2285
|
-
var useGetContentActivities = (contentId, params = {}, options = {}) => {
|
|
2286
|
-
const { token } = useConnectedXM();
|
|
2300
|
+
var useGetContentActivities = (contentId = "", params = {}, options = {}) => {
|
|
2287
2301
|
return useConnectedInfiniteQuery(
|
|
2288
2302
|
CONTENT_ACTIVITIES_QUERY_KEY(contentId),
|
|
2289
2303
|
(params2) => GetContentActivities({ contentId, ...params2 }),
|
|
2290
2304
|
params,
|
|
2291
2305
|
{
|
|
2292
2306
|
...options,
|
|
2293
|
-
enabled: !!
|
|
2307
|
+
enabled: !!contentId && (options.enabled ?? true)
|
|
2294
2308
|
}
|
|
2295
2309
|
);
|
|
2296
2310
|
};
|
|
@@ -2312,9 +2326,10 @@ var GetContentTypes = async ({
|
|
|
2312
2326
|
orderBy,
|
|
2313
2327
|
search,
|
|
2314
2328
|
queryClient,
|
|
2315
|
-
|
|
2329
|
+
clientApiParams,
|
|
2316
2330
|
locale
|
|
2317
2331
|
}) => {
|
|
2332
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2318
2333
|
const { data } = await clientApi.get(`/contentTypes`, {
|
|
2319
2334
|
params: {
|
|
2320
2335
|
page: pageParam || void 0,
|
|
@@ -2358,12 +2373,13 @@ var SET_CONTENT_TYPE_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"
|
|
|
2358
2373
|
};
|
|
2359
2374
|
var GetContentType = async ({
|
|
2360
2375
|
contentTypeId,
|
|
2361
|
-
|
|
2376
|
+
clientApiParams
|
|
2362
2377
|
}) => {
|
|
2378
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2363
2379
|
const { data } = await clientApi.get(`/contentTypes/${contentTypeId}`);
|
|
2364
2380
|
return data;
|
|
2365
2381
|
};
|
|
2366
|
-
var useGetContentType = (contentTypeId, options = {}) => {
|
|
2382
|
+
var useGetContentType = (contentTypeId = "", options = {}) => {
|
|
2367
2383
|
return useConnectedSingleQuery_default(
|
|
2368
2384
|
CONTENT_TYPE_QUERY_KEY(contentTypeId),
|
|
2369
2385
|
(params) => GetContentType({ contentTypeId: contentTypeId || "", ...params }),
|
|
@@ -2392,9 +2408,10 @@ var GetContentTypeContents = async ({
|
|
|
2392
2408
|
search,
|
|
2393
2409
|
contentTypeId,
|
|
2394
2410
|
queryClient,
|
|
2395
|
-
|
|
2411
|
+
clientApiParams,
|
|
2396
2412
|
locale
|
|
2397
2413
|
}) => {
|
|
2414
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2398
2415
|
const { data } = await clientApi.get(
|
|
2399
2416
|
`/contentTypes/${contentTypeId}/contents`,
|
|
2400
2417
|
{
|
|
@@ -2416,7 +2433,7 @@ var GetContentTypeContents = async ({
|
|
|
2416
2433
|
}
|
|
2417
2434
|
return data;
|
|
2418
2435
|
};
|
|
2419
|
-
var useGetContentTypeContents = (contentTypeId, params = {}, options = {}) => {
|
|
2436
|
+
var useGetContentTypeContents = (contentTypeId = "", params = {}, options = {}) => {
|
|
2420
2437
|
return useConnectedInfiniteQuery(
|
|
2421
2438
|
CONTENT_TYPE_CONTENTS_QUERY_KEY(contentTypeId),
|
|
2422
2439
|
(params2) => GetContentTypeContents({ ...params2, contentTypeId: contentTypeId || "" }),
|
|
@@ -2449,9 +2466,10 @@ var GetEventActivities = async ({
|
|
|
2449
2466
|
orderBy,
|
|
2450
2467
|
search,
|
|
2451
2468
|
queryClient,
|
|
2452
|
-
|
|
2469
|
+
clientApiParams,
|
|
2453
2470
|
locale
|
|
2454
2471
|
}) => {
|
|
2472
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2455
2473
|
const { data } = await clientApi.get(`/events/${eventId}/activities`, {
|
|
2456
2474
|
params: {
|
|
2457
2475
|
page: pageParam || void 0,
|
|
@@ -2470,15 +2488,14 @@ var GetEventActivities = async ({
|
|
|
2470
2488
|
}
|
|
2471
2489
|
return data;
|
|
2472
2490
|
};
|
|
2473
|
-
var useGetEventActivities = (eventId, params = {}, options = {}) => {
|
|
2474
|
-
const { token } = useConnectedXM();
|
|
2491
|
+
var useGetEventActivities = (eventId = "", params = {}, options = {}) => {
|
|
2475
2492
|
return useConnectedInfiniteQuery(
|
|
2476
2493
|
EVENT_ACTIVITIES_QUERY_KEY(eventId),
|
|
2477
2494
|
(params2) => GetEventActivities({ eventId, ...params2 }),
|
|
2478
2495
|
params,
|
|
2479
2496
|
{
|
|
2480
2497
|
...options,
|
|
2481
|
-
enabled: !!
|
|
2498
|
+
enabled: !!eventId
|
|
2482
2499
|
}
|
|
2483
2500
|
);
|
|
2484
2501
|
};
|
|
@@ -2504,9 +2521,10 @@ var GetEventFaqSections = async ({
|
|
|
2504
2521
|
orderBy,
|
|
2505
2522
|
search,
|
|
2506
2523
|
queryClient,
|
|
2507
|
-
|
|
2524
|
+
clientApiParams,
|
|
2508
2525
|
locale
|
|
2509
2526
|
}) => {
|
|
2527
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2510
2528
|
const { data } = await clientApi.get(`/events/${eventId}/faqs`, {
|
|
2511
2529
|
params: {
|
|
2512
2530
|
page: pageParam || void 0,
|
|
@@ -2525,7 +2543,7 @@ var GetEventFaqSections = async ({
|
|
|
2525
2543
|
}
|
|
2526
2544
|
return data;
|
|
2527
2545
|
};
|
|
2528
|
-
var useGetEventFaqSections = (eventId, params = {}, options = {}) => {
|
|
2546
|
+
var useGetEventFaqSections = (eventId = "", params = {}, options = {}) => {
|
|
2529
2547
|
return useConnectedInfiniteQuery(
|
|
2530
2548
|
EVENT_FAQ_SECTIONS_QUERY_KEY(eventId),
|
|
2531
2549
|
(params2) => GetEventFaqSections({ eventId, ...params2 }),
|
|
@@ -2551,12 +2569,13 @@ var SET_EVENT_FAQ_SECTION_QUERY_DATA = (client, keyParams, response, baseKeys =
|
|
|
2551
2569
|
var GetEventFAQSection = async ({
|
|
2552
2570
|
eventId,
|
|
2553
2571
|
sectionId,
|
|
2554
|
-
|
|
2572
|
+
clientApiParams
|
|
2555
2573
|
}) => {
|
|
2574
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2556
2575
|
const { data } = await clientApi.get(`/events/${eventId}/faqs/${sectionId}`);
|
|
2557
2576
|
return data;
|
|
2558
2577
|
};
|
|
2559
|
-
var useGetEventFAQSection = (eventId, sectionId, options = {}) => {
|
|
2578
|
+
var useGetEventFAQSection = (eventId = "", sectionId = "", options = {}) => {
|
|
2560
2579
|
return useConnectedSingleQuery(
|
|
2561
2580
|
EVENT_FAQ_SECTION_QUERY_KEY(eventId, sectionId),
|
|
2562
2581
|
(params) => GetEventFAQSection({ eventId, sectionId, ...params }),
|
|
@@ -2589,9 +2608,10 @@ var GetEventFaqs = async ({
|
|
|
2589
2608
|
orderBy,
|
|
2590
2609
|
search,
|
|
2591
2610
|
queryClient,
|
|
2592
|
-
|
|
2611
|
+
clientApiParams,
|
|
2593
2612
|
locale
|
|
2594
2613
|
}) => {
|
|
2614
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2595
2615
|
const { data } = await clientApi.get(
|
|
2596
2616
|
`/events/${eventId}/faqs/${sectionId}/questions`,
|
|
2597
2617
|
{
|
|
@@ -2613,7 +2633,7 @@ var GetEventFaqs = async ({
|
|
|
2613
2633
|
}
|
|
2614
2634
|
return data;
|
|
2615
2635
|
};
|
|
2616
|
-
var useGetEventFaqs = (eventId, sectionId, params = {}, options = {}) => {
|
|
2636
|
+
var useGetEventFaqs = (eventId = "", sectionId = "", params = {}, options = {}) => {
|
|
2617
2637
|
return useConnectedInfiniteQuery(
|
|
2618
2638
|
EVENT_FAQ_SECTION_QUESTIONS_QUERY_KEY(eventId, sectionId),
|
|
2619
2639
|
(params2) => GetEventFaqs({ eventId, sectionId, ...params2 }),
|
|
@@ -2643,14 +2663,15 @@ var GetEventFAQSectionQuestion = async ({
|
|
|
2643
2663
|
eventId,
|
|
2644
2664
|
sectionId,
|
|
2645
2665
|
questionId,
|
|
2646
|
-
|
|
2666
|
+
clientApiParams
|
|
2647
2667
|
}) => {
|
|
2668
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2648
2669
|
const { data } = await clientApi.get(
|
|
2649
2670
|
`/events/${eventId}/faqs/${sectionId}/questions/${questionId}`
|
|
2650
2671
|
);
|
|
2651
2672
|
return data;
|
|
2652
2673
|
};
|
|
2653
|
-
var useGetEventFAQSectionQuestion = (eventId, sectionId, questionId, options = {}) => {
|
|
2674
|
+
var useGetEventFAQSectionQuestion = (eventId = "", sectionId = "", questionId = "", options = {}) => {
|
|
2654
2675
|
return useConnectedSingleQuery(
|
|
2655
2676
|
EVENT_FAQ_SECTION_QUESTION_QUERY_KEY(eventId, sectionId, questionId),
|
|
2656
2677
|
(params) => GetEventFAQSectionQuestion({ eventId, sectionId, questionId, ...params }),
|
|
@@ -2682,9 +2703,10 @@ var GetEventPages = async ({
|
|
|
2682
2703
|
orderBy,
|
|
2683
2704
|
search,
|
|
2684
2705
|
queryClient,
|
|
2685
|
-
|
|
2706
|
+
clientApiParams,
|
|
2686
2707
|
locale
|
|
2687
2708
|
}) => {
|
|
2709
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2688
2710
|
const { data } = await clientApi.get(`/events/${eventId}/pages`, {
|
|
2689
2711
|
params: {
|
|
2690
2712
|
page: pageParam || void 0,
|
|
@@ -2703,7 +2725,7 @@ var GetEventPages = async ({
|
|
|
2703
2725
|
}
|
|
2704
2726
|
return data;
|
|
2705
2727
|
};
|
|
2706
|
-
var useGetEventPages = (eventId, params = {}, options = {}) => {
|
|
2728
|
+
var useGetEventPages = (eventId = "", params = {}, options = {}) => {
|
|
2707
2729
|
return useConnectedInfiniteQuery(
|
|
2708
2730
|
EVENT_PAGES_QUERY_KEY(eventId),
|
|
2709
2731
|
(params2) => GetEventPages({ eventId, ...params2 }),
|
|
@@ -2729,12 +2751,13 @@ var SET_EVENT_PAGE_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"])
|
|
|
2729
2751
|
var GetEventPage = async ({
|
|
2730
2752
|
eventId,
|
|
2731
2753
|
pageId,
|
|
2732
|
-
|
|
2754
|
+
clientApiParams
|
|
2733
2755
|
}) => {
|
|
2756
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2734
2757
|
const { data } = await clientApi.get(`/events/${eventId}/pages/${pageId}`);
|
|
2735
2758
|
return data;
|
|
2736
2759
|
};
|
|
2737
|
-
var useGetEventPage = (eventId, pageId, options = {}) => {
|
|
2760
|
+
var useGetEventPage = (eventId = "", pageId, options = {}) => {
|
|
2738
2761
|
return useConnectedSingleQuery(
|
|
2739
2762
|
EVENT_PAGE_QUERY_KEY(eventId, pageId),
|
|
2740
2763
|
(params) => GetEventPage({ eventId, pageId, ...params }),
|
|
@@ -2754,8 +2777,9 @@ var GetEventQuestionSearchValues = async ({
|
|
|
2754
2777
|
pageSize,
|
|
2755
2778
|
orderBy,
|
|
2756
2779
|
search,
|
|
2757
|
-
|
|
2780
|
+
clientApiParams
|
|
2758
2781
|
}) => {
|
|
2782
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2759
2783
|
const { data } = await clientApi.get(
|
|
2760
2784
|
`/events/${eventId}/questions/${questionId}/values`,
|
|
2761
2785
|
{
|
|
@@ -2769,7 +2793,7 @@ var GetEventQuestionSearchValues = async ({
|
|
|
2769
2793
|
);
|
|
2770
2794
|
return data;
|
|
2771
2795
|
};
|
|
2772
|
-
var useGetEventQuestionSearchValues = (eventId, questionId, params = {}, options = {}) => {
|
|
2796
|
+
var useGetEventQuestionSearchValues = (eventId = "", questionId = "", params = {}, options = {}) => {
|
|
2773
2797
|
return useConnectedInfiniteQuery(
|
|
2774
2798
|
EVENT_QUESTION_VALUES_QUERY_KEY(eventId, questionId),
|
|
2775
2799
|
(params2) => GetEventQuestionSearchValues({
|
|
@@ -2806,9 +2830,10 @@ var GetEventRegistrants = async ({
|
|
|
2806
2830
|
orderBy,
|
|
2807
2831
|
search,
|
|
2808
2832
|
queryClient,
|
|
2809
|
-
|
|
2833
|
+
clientApiParams,
|
|
2810
2834
|
locale
|
|
2811
2835
|
}) => {
|
|
2836
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2812
2837
|
const { data } = await clientApi.get(`/events/${eventId}/registrants`, {
|
|
2813
2838
|
params: {
|
|
2814
2839
|
page: pageParam || void 0,
|
|
@@ -2827,15 +2852,14 @@ var GetEventRegistrants = async ({
|
|
|
2827
2852
|
}
|
|
2828
2853
|
return data;
|
|
2829
2854
|
};
|
|
2830
|
-
var useGetEventRegistrants = (eventId, params = {}, options = {}) => {
|
|
2831
|
-
const { token } = useConnectedXM();
|
|
2855
|
+
var useGetEventRegistrants = (eventId = "", params = {}, options = {}) => {
|
|
2832
2856
|
return useConnectedInfiniteQuery(
|
|
2833
2857
|
EVENT_REGISTRANTS_QUERY_KEY(eventId),
|
|
2834
2858
|
(params2) => GetEventRegistrants({ eventId, ...params2 }),
|
|
2835
2859
|
params,
|
|
2836
2860
|
{
|
|
2837
2861
|
...options,
|
|
2838
|
-
enabled: !!
|
|
2862
|
+
enabled: !!eventId && (options?.enabled ?? true)
|
|
2839
2863
|
}
|
|
2840
2864
|
);
|
|
2841
2865
|
};
|
|
@@ -2861,9 +2885,10 @@ var GetEventSessions = async ({
|
|
|
2861
2885
|
orderBy,
|
|
2862
2886
|
search,
|
|
2863
2887
|
queryClient,
|
|
2864
|
-
|
|
2888
|
+
clientApiParams,
|
|
2865
2889
|
locale
|
|
2866
2890
|
}) => {
|
|
2891
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2867
2892
|
const { data } = await clientApi.get(`/events/${eventId}/sessions`, {
|
|
2868
2893
|
params: {
|
|
2869
2894
|
page: pageParam || void 0,
|
|
@@ -2882,7 +2907,7 @@ var GetEventSessions = async ({
|
|
|
2882
2907
|
}
|
|
2883
2908
|
return data;
|
|
2884
2909
|
};
|
|
2885
|
-
var useGetEventSessions = (eventId, params = {}, options = {}) => {
|
|
2910
|
+
var useGetEventSessions = (eventId = "", params = {}, options = {}) => {
|
|
2886
2911
|
return useConnectedInfiniteQuery(
|
|
2887
2912
|
EVENT_SESSIONS_QUERY_KEY(eventId),
|
|
2888
2913
|
(params2) => GetEventSessions({ eventId, ...params2 }),
|
|
@@ -2908,14 +2933,15 @@ var SET_EVENT_SESSION_QUERY_DATA = (client, keyParams, response, baseKeys = ["en
|
|
|
2908
2933
|
var GetEventSession = async ({
|
|
2909
2934
|
eventId,
|
|
2910
2935
|
sessionId,
|
|
2911
|
-
|
|
2936
|
+
clientApiParams
|
|
2912
2937
|
}) => {
|
|
2938
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2913
2939
|
const { data } = await clientApi.get(
|
|
2914
2940
|
`/events/${eventId}/sessions/${sessionId}`
|
|
2915
2941
|
);
|
|
2916
2942
|
return data;
|
|
2917
2943
|
};
|
|
2918
|
-
var useGetEventSession = (eventId, sessionId, options = {}) => {
|
|
2944
|
+
var useGetEventSession = (eventId = "", sessionId = "", options = {}) => {
|
|
2919
2945
|
return useConnectedSingleQuery(
|
|
2920
2946
|
EVENT_SESSION_QUERY_KEY(eventId, sessionId),
|
|
2921
2947
|
(params) => GetEventSession({ eventId, sessionId, ...params }),
|
|
@@ -2947,9 +2973,10 @@ var GetEventSpeakers = async ({
|
|
|
2947
2973
|
orderBy,
|
|
2948
2974
|
search,
|
|
2949
2975
|
queryClient,
|
|
2950
|
-
|
|
2976
|
+
clientApiParams,
|
|
2951
2977
|
locale
|
|
2952
2978
|
}) => {
|
|
2979
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2953
2980
|
const { data } = await clientApi.get(`/events/${eventId}/speakers`, {
|
|
2954
2981
|
params: {
|
|
2955
2982
|
page: pageParam || void 0,
|
|
@@ -2968,7 +2995,7 @@ var GetEventSpeakers = async ({
|
|
|
2968
2995
|
}
|
|
2969
2996
|
return data;
|
|
2970
2997
|
};
|
|
2971
|
-
var useGetEventSpeakers = (eventId, params = {}, options = {}) => {
|
|
2998
|
+
var useGetEventSpeakers = (eventId = "", params = {}, options = {}) => {
|
|
2972
2999
|
return useConnectedInfiniteQuery(
|
|
2973
3000
|
EVENT_SPEAKERS_QUERY_KEY(eventId),
|
|
2974
3001
|
(params2) => GetEventSpeakers({ eventId, ...params2 }),
|
|
@@ -2994,14 +3021,15 @@ var SET_EVENT_SPEAKER_QUERY_DATA = (client, keyParams, response, baseKeys = ["en
|
|
|
2994
3021
|
var GetEventSpeaker = async ({
|
|
2995
3022
|
eventId,
|
|
2996
3023
|
speakerId,
|
|
2997
|
-
|
|
3024
|
+
clientApiParams
|
|
2998
3025
|
}) => {
|
|
3026
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2999
3027
|
const { data } = await clientApi.get(
|
|
3000
3028
|
`/events/${eventId}/speakers/${speakerId}`
|
|
3001
3029
|
);
|
|
3002
3030
|
return data;
|
|
3003
3031
|
};
|
|
3004
|
-
var useGetEventSpeaker = (eventId, speakerId, options = {}) => {
|
|
3032
|
+
var useGetEventSpeaker = (eventId = "", speakerId = "", options = {}) => {
|
|
3005
3033
|
return useConnectedSingleQuery(
|
|
3006
3034
|
EVENT_SPEAKER_QUERY_KEY(eventId, speakerId),
|
|
3007
3035
|
(params) => GetEventSpeaker({ eventId, speakerId, ...params }),
|
|
@@ -3032,8 +3060,9 @@ var GetEventTickets = async ({
|
|
|
3032
3060
|
pageSize,
|
|
3033
3061
|
orderBy,
|
|
3034
3062
|
search,
|
|
3035
|
-
|
|
3063
|
+
clientApiParams
|
|
3036
3064
|
}) => {
|
|
3065
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3037
3066
|
const { data } = await clientApi.get(`/events/${eventId}/tickets`, {
|
|
3038
3067
|
params: {
|
|
3039
3068
|
page: pageParam || void 0,
|
|
@@ -3044,7 +3073,7 @@ var GetEventTickets = async ({
|
|
|
3044
3073
|
});
|
|
3045
3074
|
return data;
|
|
3046
3075
|
};
|
|
3047
|
-
var useGetEventTickets = (eventId, params = {}, options = {}) => {
|
|
3076
|
+
var useGetEventTickets = (eventId = "", params = {}, options = {}) => {
|
|
3048
3077
|
return useConnectedInfiniteQuery(
|
|
3049
3078
|
EVENT_TICKETS_QUERY_KEY(eventId),
|
|
3050
3079
|
(params2) => GetEventTickets({ eventId, ...params2 }),
|
|
@@ -3077,9 +3106,10 @@ var GetEventSponsors = async ({
|
|
|
3077
3106
|
orderBy,
|
|
3078
3107
|
search,
|
|
3079
3108
|
queryClient,
|
|
3080
|
-
|
|
3109
|
+
clientApiParams,
|
|
3081
3110
|
locale
|
|
3082
3111
|
}) => {
|
|
3112
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3083
3113
|
const { data } = await clientApi.get(`/events/${eventId}/sponsors`, {
|
|
3084
3114
|
params: {
|
|
3085
3115
|
page: pageParam || void 0,
|
|
@@ -3098,7 +3128,7 @@ var GetEventSponsors = async ({
|
|
|
3098
3128
|
}
|
|
3099
3129
|
return data;
|
|
3100
3130
|
};
|
|
3101
|
-
var useGetEventSponsors = (eventId, params = {}, options = {}) => {
|
|
3131
|
+
var useGetEventSponsors = (eventId = "", params = {}, options = {}) => {
|
|
3102
3132
|
return useConnectedInfiniteQuery(
|
|
3103
3133
|
EVENT_TICKETS_QUERY_KEY(eventId),
|
|
3104
3134
|
(params2) => GetEventSponsors({ eventId, ...params2 }),
|
|
@@ -3129,9 +3159,10 @@ var GetFeaturedEvents = async ({
|
|
|
3129
3159
|
pageSize,
|
|
3130
3160
|
orderBy,
|
|
3131
3161
|
queryClient,
|
|
3132
|
-
|
|
3162
|
+
clientApiParams,
|
|
3133
3163
|
locale
|
|
3134
3164
|
}) => {
|
|
3165
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3135
3166
|
const { data } = await clientApi.get(`/events/featured`, {
|
|
3136
3167
|
params: {
|
|
3137
3168
|
page: pageParam || void 0,
|
|
@@ -3161,8 +3192,9 @@ var useGetFeaturedEvents = (params = {}, options = {}) => {
|
|
|
3161
3192
|
// src/queries/organization/useGetOrganization.ts
|
|
3162
3193
|
var ORGANIZATION_QUERY_KEY = () => ["ORGANIZATION"];
|
|
3163
3194
|
var GetOrganization = async ({
|
|
3164
|
-
|
|
3195
|
+
clientApiParams
|
|
3165
3196
|
}) => {
|
|
3197
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3166
3198
|
const { data } = await clientApi.get(`/organization`);
|
|
3167
3199
|
return data;
|
|
3168
3200
|
};
|
|
@@ -3180,8 +3212,9 @@ var ORGANIZATION_EXPLORE_QUERY_KEY = () => [
|
|
|
3180
3212
|
"ORGANIZATION"
|
|
3181
3213
|
];
|
|
3182
3214
|
var GetOrganizationExplore = async ({
|
|
3183
|
-
|
|
3215
|
+
clientApiParams
|
|
3184
3216
|
}) => {
|
|
3217
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3185
3218
|
const { data } = await clientApi.get(`/organization/explore`);
|
|
3186
3219
|
return data;
|
|
3187
3220
|
};
|
|
@@ -3210,8 +3243,9 @@ var SET_ORGANIZATION_PAGE_QUERY_DATA = (queryClient, keyParams, response, baseKe
|
|
|
3210
3243
|
};
|
|
3211
3244
|
var GetOrganizationPage = async ({
|
|
3212
3245
|
type,
|
|
3213
|
-
|
|
3246
|
+
clientApiParams
|
|
3214
3247
|
}) => {
|
|
3248
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3215
3249
|
const { data } = await clientApi.get(`/organization/pages/${type}`);
|
|
3216
3250
|
return data;
|
|
3217
3251
|
};
|
|
@@ -3232,8 +3266,9 @@ var ORGANIZATION_SUBSCRIPTIONS_QUERY_KEY = () => [
|
|
|
3232
3266
|
"SUBSCRIPTIONS"
|
|
3233
3267
|
];
|
|
3234
3268
|
var GetOrganizationSubscriptionProducts = async ({
|
|
3235
|
-
|
|
3269
|
+
clientApiParams
|
|
3236
3270
|
}) => {
|
|
3271
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3237
3272
|
const { data } = await clientApi.get(`/organization/subscriptions`);
|
|
3238
3273
|
return data;
|
|
3239
3274
|
};
|
|
@@ -3252,8 +3287,9 @@ var ORGANIZATION_PAYMENT_INTEGRATION_QUERY_KEY = () => [
|
|
|
3252
3287
|
"PAYMENT_INTEGRATION"
|
|
3253
3288
|
];
|
|
3254
3289
|
var GetOrganizationPaymentIntegration = async ({
|
|
3255
|
-
|
|
3290
|
+
clientApiParams
|
|
3256
3291
|
}) => {
|
|
3292
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3257
3293
|
const { data } = await clientApi.get(`/organization/payment-integration`);
|
|
3258
3294
|
return data;
|
|
3259
3295
|
};
|
|
@@ -3282,9 +3318,10 @@ var GetSelfChatChannels = async ({
|
|
|
3282
3318
|
orderBy,
|
|
3283
3319
|
search,
|
|
3284
3320
|
queryClient,
|
|
3285
|
-
|
|
3321
|
+
clientApiParams,
|
|
3286
3322
|
locale
|
|
3287
3323
|
}) => {
|
|
3324
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3288
3325
|
const { data } = await clientApi.get(`/self/chat/channels`, {
|
|
3289
3326
|
params: {
|
|
3290
3327
|
page: pageParam || void 0,
|
|
@@ -3310,14 +3347,12 @@ var GetSelfChatChannels = async ({
|
|
|
3310
3347
|
return data;
|
|
3311
3348
|
};
|
|
3312
3349
|
var useGetSelfChatChannels = (params = {}, options = {}) => {
|
|
3313
|
-
const { token } = useConnectedXM();
|
|
3314
3350
|
return useConnectedInfiniteQuery(
|
|
3315
3351
|
SELF_CHAT_CHANNELS_QUERY_KEY(),
|
|
3316
3352
|
(params2) => GetSelfChatChannels(params2),
|
|
3317
3353
|
params,
|
|
3318
3354
|
{
|
|
3319
|
-
...options
|
|
3320
|
-
enabled: !!token && (options?.enabled ?? true)
|
|
3355
|
+
...options
|
|
3321
3356
|
}
|
|
3322
3357
|
);
|
|
3323
3358
|
};
|
|
@@ -3338,13 +3373,13 @@ var SET_SELF_CHAT_CHANNEL_QUERY_DATA = (client, keyParams, response, baseKeys =
|
|
|
3338
3373
|
};
|
|
3339
3374
|
var GetSelfChatChannel = async ({
|
|
3340
3375
|
channelId,
|
|
3341
|
-
|
|
3376
|
+
clientApiParams
|
|
3342
3377
|
}) => {
|
|
3378
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3343
3379
|
const { data } = await clientApi.get(`/self/chat/channels/${channelId}`);
|
|
3344
3380
|
return data;
|
|
3345
3381
|
};
|
|
3346
3382
|
var useGetSelfChatChannel = (channelId, options = {}) => {
|
|
3347
|
-
const { token } = useConnectedXM();
|
|
3348
3383
|
return useConnectedSingleQuery(
|
|
3349
3384
|
SELF_CHAT_CHANNEL_QUERY_KEY(channelId),
|
|
3350
3385
|
(params) => GetSelfChatChannel({
|
|
@@ -3354,7 +3389,7 @@ var useGetSelfChatChannel = (channelId, options = {}) => {
|
|
|
3354
3389
|
{
|
|
3355
3390
|
staleTime: Infinity,
|
|
3356
3391
|
...options,
|
|
3357
|
-
enabled: !!
|
|
3392
|
+
enabled: !!channelId && (options?.enabled ?? true)
|
|
3358
3393
|
}
|
|
3359
3394
|
);
|
|
3360
3395
|
};
|
|
@@ -3376,8 +3411,9 @@ var GetSelfChatChannelMembers = async ({
|
|
|
3376
3411
|
pageSize,
|
|
3377
3412
|
orderBy,
|
|
3378
3413
|
search,
|
|
3379
|
-
|
|
3414
|
+
clientApiParams
|
|
3380
3415
|
}) => {
|
|
3416
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3381
3417
|
const { data } = await clientApi.get(
|
|
3382
3418
|
`/self/chat/channels/${channelId}/members`,
|
|
3383
3419
|
{
|
|
@@ -3392,14 +3428,13 @@ var GetSelfChatChannelMembers = async ({
|
|
|
3392
3428
|
return data;
|
|
3393
3429
|
};
|
|
3394
3430
|
var useGetSelfChatChannelMembers = (channelId, params = {}, options = {}) => {
|
|
3395
|
-
const { token } = useConnectedXM();
|
|
3396
3431
|
return useConnectedInfiniteQuery(
|
|
3397
3432
|
SELF_CHAT_CHANNEL_MEMBERS_QUERY_KEY(channelId),
|
|
3398
3433
|
(params2) => GetSelfChatChannelMembers({ ...params2, channelId }),
|
|
3399
3434
|
params,
|
|
3400
3435
|
{
|
|
3401
3436
|
...options,
|
|
3402
|
-
enabled: !!
|
|
3437
|
+
enabled: !!channelId && (options?.enabled ?? true)
|
|
3403
3438
|
}
|
|
3404
3439
|
);
|
|
3405
3440
|
};
|
|
@@ -3422,8 +3457,9 @@ var GetSelfChatChannelMessages = async ({
|
|
|
3422
3457
|
orderBy,
|
|
3423
3458
|
search,
|
|
3424
3459
|
queryClient,
|
|
3425
|
-
|
|
3460
|
+
clientApiParams
|
|
3426
3461
|
}) => {
|
|
3462
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3427
3463
|
const { data } = await clientApi.get(
|
|
3428
3464
|
`/self/chat/channels/${channelId}/messages`,
|
|
3429
3465
|
{
|
|
@@ -3447,14 +3483,13 @@ var GetSelfChatChannelMessages = async ({
|
|
|
3447
3483
|
return data;
|
|
3448
3484
|
};
|
|
3449
3485
|
var useGetSelfChatChannelMessages = (channelId, params = {}, options = {}) => {
|
|
3450
|
-
const { token } = useConnectedXM();
|
|
3451
3486
|
return useConnectedInfiniteQuery(
|
|
3452
3487
|
SELF_CHAT_CHANNEL_MESSAGES_QUERY_KEY(channelId),
|
|
3453
3488
|
(params2) => GetSelfChatChannelMessages({ ...params2, channelId }),
|
|
3454
3489
|
params,
|
|
3455
3490
|
{
|
|
3456
3491
|
...options,
|
|
3457
|
-
enabled: !!
|
|
3492
|
+
enabled: !!channelId && (options?.enabled ?? true)
|
|
3458
3493
|
}
|
|
3459
3494
|
);
|
|
3460
3495
|
};
|
|
@@ -3474,20 +3509,21 @@ var SET_SELF_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
|
3474
3509
|
};
|
|
3475
3510
|
var GetSelf = async ({
|
|
3476
3511
|
authenticated,
|
|
3477
|
-
|
|
3512
|
+
clientApiParams
|
|
3478
3513
|
}) => {
|
|
3479
|
-
|
|
3480
|
-
|
|
3514
|
+
const clientApi = await GetClientAPI({
|
|
3515
|
+
...clientApiParams,
|
|
3516
|
+
getExecuteAs: authenticated ? void 0 : clientApiParams.getExecuteAs
|
|
3517
|
+
});
|
|
3481
3518
|
const { data } = await clientApi.get(`/self`);
|
|
3482
3519
|
return data;
|
|
3483
3520
|
};
|
|
3484
3521
|
var useGetSelf = (authenticated, options = {}) => {
|
|
3485
|
-
const { token } = useConnectedXM();
|
|
3486
3522
|
return useConnectedSingleQuery(
|
|
3487
3523
|
SELF_QUERY_KEY(authenticated),
|
|
3488
3524
|
(params) => GetSelf({ authenticated, ...params }),
|
|
3489
3525
|
{
|
|
3490
|
-
|
|
3526
|
+
...options
|
|
3491
3527
|
}
|
|
3492
3528
|
);
|
|
3493
3529
|
};
|
|
@@ -3508,8 +3544,9 @@ var GetSelfEventRegistration = async ({
|
|
|
3508
3544
|
ticket,
|
|
3509
3545
|
quantity,
|
|
3510
3546
|
coupon,
|
|
3511
|
-
|
|
3547
|
+
clientApiParams
|
|
3512
3548
|
}) => {
|
|
3549
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3513
3550
|
const { data } = await clientApi.get(`/self/events/${eventId}/registration`, {
|
|
3514
3551
|
params: {
|
|
3515
3552
|
ticket: ticket || void 0,
|
|
@@ -3520,7 +3557,6 @@ var GetSelfEventRegistration = async ({
|
|
|
3520
3557
|
return data;
|
|
3521
3558
|
};
|
|
3522
3559
|
var useGetSelfEventRegistration = (eventId, ticket, quantity, coupon, options = {}) => {
|
|
3523
|
-
const { token } = useConnectedXM();
|
|
3524
3560
|
return useConnectedSingleQuery_default(
|
|
3525
3561
|
SELF_EVENT_REGISTRATION_QUERY_KEY(eventId),
|
|
3526
3562
|
(params) => GetSelfEventRegistration({
|
|
@@ -3535,7 +3571,7 @@ var useGetSelfEventRegistration = (eventId, ticket, quantity, coupon, options =
|
|
|
3535
3571
|
staleTime: Infinity,
|
|
3536
3572
|
refetchOnMount: false,
|
|
3537
3573
|
...options,
|
|
3538
|
-
enabled: !!
|
|
3574
|
+
enabled: !!eventId && (options?.enabled ?? true)
|
|
3539
3575
|
}
|
|
3540
3576
|
);
|
|
3541
3577
|
};
|
|
@@ -3549,15 +3585,15 @@ var SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY = (eventId, registrationId) => [
|
|
|
3549
3585
|
var GetSelfEventRegistrationCheckout = async ({
|
|
3550
3586
|
eventId,
|
|
3551
3587
|
registrationId,
|
|
3552
|
-
|
|
3588
|
+
clientApiParams
|
|
3553
3589
|
}) => {
|
|
3590
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3554
3591
|
const { data } = await clientApi.get(
|
|
3555
3592
|
`/self/events/${eventId}/registration/${registrationId}/draft/checkout`
|
|
3556
3593
|
);
|
|
3557
3594
|
return data;
|
|
3558
3595
|
};
|
|
3559
3596
|
var useGetSelfEventRegistrationCheckout = (eventId, registrationId = "", options = {}) => {
|
|
3560
|
-
const { token } = useConnectedXM();
|
|
3561
3597
|
return useConnectedSingleQuery_default(
|
|
3562
3598
|
SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY(eventId, registrationId),
|
|
3563
3599
|
(params) => GetSelfEventRegistrationCheckout({ eventId, registrationId, ...params }),
|
|
@@ -3566,7 +3602,7 @@ var useGetSelfEventRegistrationCheckout = (eventId, registrationId = "", options
|
|
|
3566
3602
|
retry: false,
|
|
3567
3603
|
retryOnMount: false,
|
|
3568
3604
|
...options,
|
|
3569
|
-
enabled: !!
|
|
3605
|
+
enabled: !!eventId && !!registrationId
|
|
3570
3606
|
}
|
|
3571
3607
|
);
|
|
3572
3608
|
};
|
|
@@ -3586,9 +3622,10 @@ var GetSelfSubscriptions = async ({
|
|
|
3586
3622
|
orderBy,
|
|
3587
3623
|
search,
|
|
3588
3624
|
queryClient,
|
|
3589
|
-
|
|
3625
|
+
clientApiParams,
|
|
3590
3626
|
locale
|
|
3591
3627
|
}) => {
|
|
3628
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3592
3629
|
const { data } = await clientApi.get(`/self/subscriptions`, {
|
|
3593
3630
|
params: {
|
|
3594
3631
|
page: pageParam || void 0,
|
|
@@ -3609,14 +3646,12 @@ var GetSelfSubscriptions = async ({
|
|
|
3609
3646
|
return data;
|
|
3610
3647
|
};
|
|
3611
3648
|
var useGetSelfSubscriptions = (status, params = {}, options = {}) => {
|
|
3612
|
-
const { token } = useConnectedXM();
|
|
3613
3649
|
return useConnectedInfiniteQuery(
|
|
3614
3650
|
SELF_SUBSCRIPTIONS_QUERY_KEY(status),
|
|
3615
3651
|
(params2) => GetSelfSubscriptions({ status, ...params2 }),
|
|
3616
3652
|
params,
|
|
3617
3653
|
{
|
|
3618
|
-
...options
|
|
3619
|
-
enabled: !!token
|
|
3654
|
+
...options
|
|
3620
3655
|
}
|
|
3621
3656
|
);
|
|
3622
3657
|
};
|
|
@@ -3625,19 +3660,19 @@ var useGetSelfSubscriptions = (status, params = {}, options = {}) => {
|
|
|
3625
3660
|
var SELF_SUBSCRIPTION_QUERY_KEY = (subscriptionId) => [...SELF_SUBSCRIPTIONS_QUERY_KEY(), subscriptionId];
|
|
3626
3661
|
var GetSelfSubcription = async ({
|
|
3627
3662
|
subscriptionId,
|
|
3628
|
-
|
|
3663
|
+
clientApiParams
|
|
3629
3664
|
}) => {
|
|
3665
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3630
3666
|
const { data } = await clientApi.get(`/self/subscriptions/${subscriptionId}`);
|
|
3631
3667
|
return data;
|
|
3632
3668
|
};
|
|
3633
3669
|
var useGetSelfSubcription = (subscriptionId = "", options = {}) => {
|
|
3634
|
-
const { token } = useConnectedXM();
|
|
3635
3670
|
return useConnectedSingleQuery(
|
|
3636
3671
|
SELF_SUBSCRIPTION_QUERY_KEY(subscriptionId),
|
|
3637
3672
|
(params) => GetSelfSubcription({ subscriptionId, ...params }),
|
|
3638
3673
|
{
|
|
3639
3674
|
...options,
|
|
3640
|
-
enabled: !!
|
|
3675
|
+
enabled: !!subscriptionId
|
|
3641
3676
|
}
|
|
3642
3677
|
);
|
|
3643
3678
|
};
|
|
@@ -3650,8 +3685,9 @@ var GetSelfSubscriptionPayments = async ({
|
|
|
3650
3685
|
pageSize,
|
|
3651
3686
|
orderBy,
|
|
3652
3687
|
search,
|
|
3653
|
-
|
|
3688
|
+
clientApiParams
|
|
3654
3689
|
}) => {
|
|
3690
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3655
3691
|
const { data } = await clientApi.get(
|
|
3656
3692
|
`/self/subscriptions/${subscriptionId}/payments`,
|
|
3657
3693
|
{
|
|
@@ -3666,14 +3702,12 @@ var GetSelfSubscriptionPayments = async ({
|
|
|
3666
3702
|
return data;
|
|
3667
3703
|
};
|
|
3668
3704
|
var useGetSelfSubscriptionPayments = (subscriptionId, params = {}, options = {}) => {
|
|
3669
|
-
const { token } = useConnectedXM();
|
|
3670
3705
|
return useConnectedInfiniteQuery(
|
|
3671
3706
|
SELF_SUBSCRIPTION_PAYMENTS_QUERY_KEY(subscriptionId),
|
|
3672
3707
|
(params2) => GetSelfSubscriptionPayments({ ...params2, subscriptionId }),
|
|
3673
3708
|
params,
|
|
3674
3709
|
{
|
|
3675
|
-
...options
|
|
3676
|
-
enabled: !!token
|
|
3710
|
+
...options
|
|
3677
3711
|
}
|
|
3678
3712
|
);
|
|
3679
3713
|
};
|
|
@@ -3689,9 +3723,10 @@ var GetSelfActivities = async ({
|
|
|
3689
3723
|
orderBy,
|
|
3690
3724
|
search,
|
|
3691
3725
|
queryClient,
|
|
3692
|
-
|
|
3726
|
+
clientApiParams,
|
|
3693
3727
|
locale
|
|
3694
3728
|
}) => {
|
|
3729
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3695
3730
|
const { data } = await clientApi.get(`/self/activities`, {
|
|
3696
3731
|
params: {
|
|
3697
3732
|
page: pageParam || void 0,
|
|
@@ -3711,14 +3746,13 @@ var GetSelfActivities = async ({
|
|
|
3711
3746
|
return data;
|
|
3712
3747
|
};
|
|
3713
3748
|
var useGetSelfActivities = (params = {}, options = {}) => {
|
|
3714
|
-
const { token } = useConnectedXM();
|
|
3715
3749
|
return useConnectedInfiniteQuery(
|
|
3716
3750
|
SELF_ACTIVITIES_QUERY_KEY(),
|
|
3717
3751
|
(params2) => GetSelfActivities({ ...params2 }),
|
|
3718
3752
|
params,
|
|
3719
3753
|
{
|
|
3720
3754
|
...options,
|
|
3721
|
-
enabled:
|
|
3755
|
+
enabled: options.enabled ?? true
|
|
3722
3756
|
}
|
|
3723
3757
|
);
|
|
3724
3758
|
};
|
|
@@ -3727,19 +3761,19 @@ var useGetSelfActivities = (params = {}, options = {}) => {
|
|
|
3727
3761
|
var SELF_ANNOUNCEMENT_QUERY_KEY = (announcementId) => [...SELF_QUERY_KEY(), "ANNOUNCEMENT", announcementId];
|
|
3728
3762
|
var GetSelfAnnouncement = async ({
|
|
3729
3763
|
announcementId,
|
|
3730
|
-
|
|
3764
|
+
clientApiParams
|
|
3731
3765
|
}) => {
|
|
3766
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3732
3767
|
const { data } = await clientApi.get(`/self/announcements/${announcementId}`);
|
|
3733
3768
|
return data;
|
|
3734
3769
|
};
|
|
3735
3770
|
var useGetSelfAnnouncement = (announcementId, options = {}) => {
|
|
3736
|
-
const { token } = useConnectedXM();
|
|
3737
3771
|
return useConnectedSingleQuery(
|
|
3738
3772
|
SELF_ANNOUNCEMENT_QUERY_KEY(announcementId),
|
|
3739
3773
|
(params) => GetSelfAnnouncement({ announcementId, ...params }),
|
|
3740
3774
|
{
|
|
3741
3775
|
...options,
|
|
3742
|
-
enabled: !!
|
|
3776
|
+
enabled: !!announcementId && (options?.enabled ?? true)
|
|
3743
3777
|
}
|
|
3744
3778
|
);
|
|
3745
3779
|
};
|
|
@@ -3754,8 +3788,9 @@ var GetSelfCommunityMemberships = async ({
|
|
|
3754
3788
|
pageSize,
|
|
3755
3789
|
orderBy,
|
|
3756
3790
|
search,
|
|
3757
|
-
|
|
3791
|
+
clientApiParams
|
|
3758
3792
|
}) => {
|
|
3793
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3759
3794
|
const { data } = await clientApi.get(`/self/communities`, {
|
|
3760
3795
|
params: {
|
|
3761
3796
|
page: pageParam || void 0,
|
|
@@ -3767,14 +3802,12 @@ var GetSelfCommunityMemberships = async ({
|
|
|
3767
3802
|
return data;
|
|
3768
3803
|
};
|
|
3769
3804
|
var useGetSelfCommunityMemberships = (params = {}, options = {}) => {
|
|
3770
|
-
const { token } = useConnectedXM();
|
|
3771
3805
|
return useConnectedInfiniteQuery(
|
|
3772
3806
|
SELF_COMMUNITY_MEMBERSHIPS_QUERY_KEY(),
|
|
3773
3807
|
(params2) => GetSelfCommunityMemberships({ ...params2 }),
|
|
3774
3808
|
params,
|
|
3775
3809
|
{
|
|
3776
|
-
...options
|
|
3777
|
-
enabled: !!token && (options?.enabled ?? true)
|
|
3810
|
+
...options
|
|
3778
3811
|
}
|
|
3779
3812
|
);
|
|
3780
3813
|
};
|
|
@@ -3792,21 +3825,21 @@ var SET_SELF_COMMUNITY_MEMBERSHIP_QUERY_DATA = (client, keyParams, response, bas
|
|
|
3792
3825
|
};
|
|
3793
3826
|
var GetSelfCommunityMembership = async ({
|
|
3794
3827
|
communityId,
|
|
3795
|
-
|
|
3828
|
+
clientApiParams
|
|
3796
3829
|
}) => {
|
|
3830
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3797
3831
|
const { data } = await clientApi.get(
|
|
3798
3832
|
`/self/communities/${communityId}/membership`
|
|
3799
3833
|
);
|
|
3800
3834
|
return data;
|
|
3801
3835
|
};
|
|
3802
3836
|
var useGetSelfCommunityMembership = (communityId, options = {}) => {
|
|
3803
|
-
const { token } = useConnectedXM();
|
|
3804
3837
|
return useConnectedSingleQuery(
|
|
3805
3838
|
SELF_COMMUNITY_MEMBERSHIP_QUERY_KEY(communityId),
|
|
3806
3839
|
(params) => GetSelfCommunityMembership({ communityId, ...params }),
|
|
3807
3840
|
{
|
|
3808
3841
|
...options,
|
|
3809
|
-
enabled: !!
|
|
3842
|
+
enabled: !!communityId && (options?.enabled ?? true)
|
|
3810
3843
|
}
|
|
3811
3844
|
);
|
|
3812
3845
|
};
|
|
@@ -3822,9 +3855,10 @@ var GetSelfDelegateOf = async ({
|
|
|
3822
3855
|
orderBy,
|
|
3823
3856
|
search,
|
|
3824
3857
|
queryClient,
|
|
3825
|
-
|
|
3858
|
+
clientApiParams,
|
|
3826
3859
|
locale
|
|
3827
3860
|
}) => {
|
|
3861
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3828
3862
|
const { data } = await clientApi.get(`/self/delegateof`, {
|
|
3829
3863
|
params: {
|
|
3830
3864
|
page: pageParam || void 0,
|
|
@@ -3844,14 +3878,12 @@ var GetSelfDelegateOf = async ({
|
|
|
3844
3878
|
return data;
|
|
3845
3879
|
};
|
|
3846
3880
|
var useGetSelfDelegateOf = (params = {}, options = {}) => {
|
|
3847
|
-
const { token } = useConnectedXM();
|
|
3848
3881
|
return useConnectedInfiniteQuery(
|
|
3849
3882
|
SELF_DELEGATE_OF_QUERY_KEY(),
|
|
3850
3883
|
(params2) => GetSelfDelegateOf({ ...params2 }),
|
|
3851
3884
|
params,
|
|
3852
3885
|
{
|
|
3853
|
-
...options
|
|
3854
|
-
enabled: !!token
|
|
3886
|
+
...options
|
|
3855
3887
|
}
|
|
3856
3888
|
);
|
|
3857
3889
|
};
|
|
@@ -3867,9 +3899,10 @@ var GetSelfDelegates = async ({
|
|
|
3867
3899
|
orderBy,
|
|
3868
3900
|
search,
|
|
3869
3901
|
queryClient,
|
|
3870
|
-
|
|
3902
|
+
clientApiParams,
|
|
3871
3903
|
locale
|
|
3872
3904
|
}) => {
|
|
3905
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3873
3906
|
const { data } = await clientApi.get(`/self/delegates`, {
|
|
3874
3907
|
params: {
|
|
3875
3908
|
page: pageParam || void 0,
|
|
@@ -3889,14 +3922,12 @@ var GetSelfDelegates = async ({
|
|
|
3889
3922
|
return data;
|
|
3890
3923
|
};
|
|
3891
3924
|
var useGetSelfDelegates = (params = {}, options = {}) => {
|
|
3892
|
-
const { token } = useConnectedXM();
|
|
3893
3925
|
return useConnectedInfiniteQuery(
|
|
3894
3926
|
SELF_DELEGATES_QUERY_KEY(),
|
|
3895
3927
|
(params2) => GetSelfDelegates(params2),
|
|
3896
3928
|
params,
|
|
3897
3929
|
{
|
|
3898
|
-
...options
|
|
3899
|
-
enabled: !!token
|
|
3930
|
+
...options
|
|
3900
3931
|
}
|
|
3901
3932
|
);
|
|
3902
3933
|
};
|
|
@@ -3914,9 +3945,10 @@ var GetSelfEventListings = async ({
|
|
|
3914
3945
|
search,
|
|
3915
3946
|
past,
|
|
3916
3947
|
queryClient,
|
|
3917
|
-
|
|
3948
|
+
clientApiParams,
|
|
3918
3949
|
locale
|
|
3919
3950
|
}) => {
|
|
3951
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3920
3952
|
const { data } = await clientApi.get(`/self/events/listings`, {
|
|
3921
3953
|
params: {
|
|
3922
3954
|
page: pageParam || void 0,
|
|
@@ -3937,14 +3969,12 @@ var GetSelfEventListings = async ({
|
|
|
3937
3969
|
return data;
|
|
3938
3970
|
};
|
|
3939
3971
|
var useGetSelfEventListings = (past = false, params = {}, options = {}) => {
|
|
3940
|
-
const { token } = useConnectedXM();
|
|
3941
3972
|
return useConnectedInfiniteQuery(
|
|
3942
3973
|
SELF_EVENT_LISTINGS_QUERY_KEY(past),
|
|
3943
3974
|
(params2) => GetSelfEventListings({ past, ...params2 }),
|
|
3944
3975
|
params,
|
|
3945
3976
|
{
|
|
3946
|
-
...options
|
|
3947
|
-
enabled: !!token
|
|
3977
|
+
...options
|
|
3948
3978
|
}
|
|
3949
3979
|
);
|
|
3950
3980
|
};
|
|
@@ -3965,19 +3995,19 @@ var SET_SELF_EVENT_LISTING_QUERY_DATA = (client, keyParams, response, baseKeys =
|
|
|
3965
3995
|
};
|
|
3966
3996
|
var GetSelfEventListing = async ({
|
|
3967
3997
|
eventId,
|
|
3968
|
-
|
|
3998
|
+
clientApiParams
|
|
3969
3999
|
}) => {
|
|
4000
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3970
4001
|
const { data } = await clientApi.get(`self/events/listings/${eventId}`);
|
|
3971
4002
|
return data;
|
|
3972
4003
|
};
|
|
3973
4004
|
var useGetSelfEventListing = (eventId, options = {}) => {
|
|
3974
|
-
const { token } = useConnectedXM();
|
|
3975
4005
|
return useConnectedSingleQuery(
|
|
3976
4006
|
SELF_EVENT_LISTING_QUERY_KEY(eventId),
|
|
3977
4007
|
(params) => GetSelfEventListing({ eventId, ...params }),
|
|
3978
4008
|
{
|
|
3979
4009
|
...options,
|
|
3980
|
-
enabled: !!
|
|
4010
|
+
enabled: !!eventId && (options?.enabled ?? true)
|
|
3981
4011
|
}
|
|
3982
4012
|
);
|
|
3983
4013
|
};
|
|
@@ -3995,8 +4025,9 @@ var GetSelfEventListingRegistrations = async ({
|
|
|
3995
4025
|
orderBy,
|
|
3996
4026
|
search,
|
|
3997
4027
|
checkedIn,
|
|
3998
|
-
|
|
4028
|
+
clientApiParams
|
|
3999
4029
|
}) => {
|
|
4030
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4000
4031
|
const { data } = await clientApi.get(
|
|
4001
4032
|
`/self/events/listings/${eventId}/registrations`,
|
|
4002
4033
|
{
|
|
@@ -4012,14 +4043,13 @@ var GetSelfEventListingRegistrations = async ({
|
|
|
4012
4043
|
return data;
|
|
4013
4044
|
};
|
|
4014
4045
|
var useGetSelfEventListingsRegistrations = (eventId, checkedIn = false, params = {}, options = {}) => {
|
|
4015
|
-
const { token } = useConnectedXM();
|
|
4016
4046
|
return useConnectedInfiniteQuery(
|
|
4017
4047
|
SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId, checkedIn),
|
|
4018
4048
|
(params2) => GetSelfEventListingRegistrations({ eventId, checkedIn, ...params2 }),
|
|
4019
4049
|
params,
|
|
4020
4050
|
{
|
|
4021
4051
|
...options,
|
|
4022
|
-
enabled: !!
|
|
4052
|
+
enabled: !!eventId && (options?.enabled ?? true)
|
|
4023
4053
|
}
|
|
4024
4054
|
);
|
|
4025
4055
|
};
|
|
@@ -4037,9 +4067,10 @@ var GetSelfEvents = async ({
|
|
|
4037
4067
|
search,
|
|
4038
4068
|
past,
|
|
4039
4069
|
queryClient,
|
|
4040
|
-
|
|
4070
|
+
clientApiParams,
|
|
4041
4071
|
locale
|
|
4042
4072
|
}) => {
|
|
4073
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4043
4074
|
const { data } = await clientApi.get(`/self/events`, {
|
|
4044
4075
|
params: {
|
|
4045
4076
|
page: pageParam || void 0,
|
|
@@ -4060,14 +4091,13 @@ var GetSelfEvents = async ({
|
|
|
4060
4091
|
return data;
|
|
4061
4092
|
};
|
|
4062
4093
|
var useGetSelfEvents = (past = false, params = {}, options = {}) => {
|
|
4063
|
-
const { token } = useConnectedXM();
|
|
4064
4094
|
return useConnectedInfiniteQuery(
|
|
4065
4095
|
SELF_EVENTS_QUERY_KEY(past),
|
|
4066
4096
|
(params2) => GetSelfEvents({ ...params2, past }),
|
|
4067
4097
|
params,
|
|
4068
4098
|
{
|
|
4069
4099
|
...options,
|
|
4070
|
-
enabled:
|
|
4100
|
+
enabled: options.enabled ?? true
|
|
4071
4101
|
}
|
|
4072
4102
|
);
|
|
4073
4103
|
};
|
|
@@ -4085,9 +4115,10 @@ var GetSelfEventSessions = async ({
|
|
|
4085
4115
|
orderBy,
|
|
4086
4116
|
search,
|
|
4087
4117
|
queryClient,
|
|
4088
|
-
|
|
4118
|
+
clientApiParams,
|
|
4089
4119
|
locale
|
|
4090
4120
|
}) => {
|
|
4121
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4091
4122
|
const { data } = await clientApi.get(`/self/events/${eventId}/sessions`, {
|
|
4092
4123
|
params: {
|
|
4093
4124
|
eventId: eventId || void 0,
|
|
@@ -4108,14 +4139,13 @@ var GetSelfEventSessions = async ({
|
|
|
4108
4139
|
return data;
|
|
4109
4140
|
};
|
|
4110
4141
|
var useGetSelfEventSessions = (eventId, params = {}, options = {}) => {
|
|
4111
|
-
const { token } = useConnectedXM();
|
|
4112
4142
|
return useConnectedInfiniteQuery(
|
|
4113
4143
|
SELF_EVENT_SESSIONS_QUERY_KEY(eventId),
|
|
4114
4144
|
(params2) => GetSelfEventSessions({ eventId, ...params2 }),
|
|
4115
4145
|
params,
|
|
4116
4146
|
{
|
|
4117
4147
|
...options,
|
|
4118
|
-
enabled: !!
|
|
4148
|
+
enabled: !!eventId && (options.enabled ?? true)
|
|
4119
4149
|
}
|
|
4120
4150
|
);
|
|
4121
4151
|
};
|
|
@@ -4131,9 +4161,10 @@ var GetSelfFeed = async ({
|
|
|
4131
4161
|
orderBy,
|
|
4132
4162
|
search,
|
|
4133
4163
|
queryClient,
|
|
4134
|
-
|
|
4164
|
+
clientApiParams,
|
|
4135
4165
|
locale
|
|
4136
4166
|
}) => {
|
|
4167
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4137
4168
|
const { data } = await clientApi.get(`/self/activities/feed`, {
|
|
4138
4169
|
params: {
|
|
4139
4170
|
page: pageParam || void 0,
|
|
@@ -4153,14 +4184,12 @@ var GetSelfFeed = async ({
|
|
|
4153
4184
|
return data;
|
|
4154
4185
|
};
|
|
4155
4186
|
var useGetSelfFeed = (params = {}, options = {}) => {
|
|
4156
|
-
const { token } = useConnectedXM();
|
|
4157
4187
|
return useConnectedInfiniteQuery(
|
|
4158
4188
|
SELF_FEED_QUERY_KEY(),
|
|
4159
4189
|
(params2) => GetSelfFeed(params2),
|
|
4160
4190
|
params,
|
|
4161
4191
|
{
|
|
4162
|
-
...options
|
|
4163
|
-
enabled: !!token && (options?.enabled ?? true)
|
|
4192
|
+
...options
|
|
4164
4193
|
}
|
|
4165
4194
|
);
|
|
4166
4195
|
};
|
|
@@ -4175,8 +4204,9 @@ var GetSelfInterests = async ({
|
|
|
4175
4204
|
pageSize,
|
|
4176
4205
|
orderBy,
|
|
4177
4206
|
search,
|
|
4178
|
-
|
|
4207
|
+
clientApiParams
|
|
4179
4208
|
}) => {
|
|
4209
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4180
4210
|
const { data } = await clientApi.get(`/self/interests`, {
|
|
4181
4211
|
params: {
|
|
4182
4212
|
page: pageParam || void 0,
|
|
@@ -4188,14 +4218,12 @@ var GetSelfInterests = async ({
|
|
|
4188
4218
|
return data;
|
|
4189
4219
|
};
|
|
4190
4220
|
var useGetSelfInterests = (params = {}, options = {}) => {
|
|
4191
|
-
const { token } = useConnectedXM();
|
|
4192
4221
|
return useConnectedInfiniteQuery(
|
|
4193
4222
|
SELF_INTERESTS_QUERY_KEY(),
|
|
4194
4223
|
(params2) => GetSelfInterests({ ...params2 }),
|
|
4195
4224
|
params,
|
|
4196
4225
|
{
|
|
4197
|
-
...options
|
|
4198
|
-
enabled: !!token && (options?.enabled ?? true)
|
|
4226
|
+
...options
|
|
4199
4227
|
}
|
|
4200
4228
|
);
|
|
4201
4229
|
};
|
|
@@ -4206,19 +4234,18 @@ var SELF_PREFERENCES_QUERY_KEY = () => [
|
|
|
4206
4234
|
"PREFERENCES"
|
|
4207
4235
|
];
|
|
4208
4236
|
var GetSelfNotificationPreferences = async ({
|
|
4209
|
-
|
|
4237
|
+
clientApiParams
|
|
4210
4238
|
}) => {
|
|
4239
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4211
4240
|
const { data } = await clientApi.get(`/self/notificationPreferences`);
|
|
4212
4241
|
return data;
|
|
4213
4242
|
};
|
|
4214
4243
|
var useGetSelfNotificationPreferences = (options = {}) => {
|
|
4215
|
-
const { token } = useConnectedXM();
|
|
4216
4244
|
return useConnectedSingleQuery(
|
|
4217
4245
|
SELF_PREFERENCES_QUERY_KEY(),
|
|
4218
4246
|
(params) => GetSelfNotificationPreferences({ ...params }),
|
|
4219
4247
|
{
|
|
4220
|
-
...options
|
|
4221
|
-
enabled: !!token && (options?.enabled ?? true)
|
|
4248
|
+
...options
|
|
4222
4249
|
}
|
|
4223
4250
|
);
|
|
4224
4251
|
};
|
|
@@ -4235,8 +4262,9 @@ var GetSelfNotifications = async ({
|
|
|
4235
4262
|
orderBy,
|
|
4236
4263
|
search,
|
|
4237
4264
|
filters,
|
|
4238
|
-
|
|
4265
|
+
clientApiParams
|
|
4239
4266
|
}) => {
|
|
4267
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4240
4268
|
const { data } = await clientApi.get(`/self/notifications`, {
|
|
4241
4269
|
params: {
|
|
4242
4270
|
page: pageParam || void 0,
|
|
@@ -4249,15 +4277,13 @@ var GetSelfNotifications = async ({
|
|
|
4249
4277
|
return data;
|
|
4250
4278
|
};
|
|
4251
4279
|
var useGetSelfNotifications = (filters = "", params = {}, options = {}) => {
|
|
4252
|
-
const { token } = useConnectedXM();
|
|
4253
4280
|
return useConnectedInfiniteQuery(
|
|
4254
4281
|
SELF_NOTIFICATIONS_QUERY_KEY(filters),
|
|
4255
4282
|
(params2) => GetSelfNotifications({ ...params2, filters }),
|
|
4256
4283
|
params,
|
|
4257
4284
|
{
|
|
4258
4285
|
staleTime: 0,
|
|
4259
|
-
...options
|
|
4260
|
-
enabled: !!token && (options?.enabled ?? true)
|
|
4286
|
+
...options
|
|
4261
4287
|
}
|
|
4262
4288
|
);
|
|
4263
4289
|
};
|
|
@@ -4266,8 +4292,9 @@ var useGetSelfNotifications = (filters = "", params = {}, options = {}) => {
|
|
|
4266
4292
|
var SELF_NOTIFICATION_COUNT_QUERY_KEY = (filters) => [...SELF_QUERY_KEY(), "NOTIFICATION_COUNT", filters];
|
|
4267
4293
|
var GetSelfNewNotificationsCount = async ({
|
|
4268
4294
|
filters,
|
|
4269
|
-
|
|
4295
|
+
clientApiParams
|
|
4270
4296
|
}) => {
|
|
4297
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4271
4298
|
const { data } = await clientApi.get(`/self/notifications/count`, {
|
|
4272
4299
|
params: {
|
|
4273
4300
|
filters
|
|
@@ -4276,13 +4303,11 @@ var GetSelfNewNotificationsCount = async ({
|
|
|
4276
4303
|
return data;
|
|
4277
4304
|
};
|
|
4278
4305
|
var useGetSelfNewNotificationsCount = (filters = "", options = {}) => {
|
|
4279
|
-
const { token } = useConnectedXM();
|
|
4280
4306
|
return useConnectedSingleQuery_default(
|
|
4281
4307
|
SELF_NOTIFICATION_COUNT_QUERY_KEY(filters),
|
|
4282
4308
|
(params) => GetSelfNewNotificationsCount({ filters, ...params }),
|
|
4283
4309
|
{
|
|
4284
|
-
...options
|
|
4285
|
-
enabled: !!token && (options?.enabled ?? true)
|
|
4310
|
+
...options
|
|
4286
4311
|
}
|
|
4287
4312
|
);
|
|
4288
4313
|
};
|
|
@@ -4298,9 +4323,10 @@ var GetSelfPushDevices = async ({
|
|
|
4298
4323
|
orderBy,
|
|
4299
4324
|
search,
|
|
4300
4325
|
queryClient,
|
|
4301
|
-
|
|
4326
|
+
clientApiParams,
|
|
4302
4327
|
locale
|
|
4303
4328
|
}) => {
|
|
4329
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4304
4330
|
const { data } = await clientApi.get(`/self/push-devices`, {
|
|
4305
4331
|
params: {
|
|
4306
4332
|
page: pageParam || void 0,
|
|
@@ -4320,14 +4346,12 @@ var GetSelfPushDevices = async ({
|
|
|
4320
4346
|
return data;
|
|
4321
4347
|
};
|
|
4322
4348
|
var useGetSelfPushDevices = (params = {}, options = {}) => {
|
|
4323
|
-
const { token } = useConnectedXM();
|
|
4324
4349
|
return useConnectedInfiniteQuery(
|
|
4325
4350
|
SELF_PUSH_DEVICES_QUERY_KEY(),
|
|
4326
4351
|
(params2) => GetSelfPushDevices({ ...params2 }),
|
|
4327
4352
|
params,
|
|
4328
4353
|
{
|
|
4329
|
-
...options
|
|
4330
|
-
enabled: !!token
|
|
4354
|
+
...options
|
|
4331
4355
|
}
|
|
4332
4356
|
);
|
|
4333
4357
|
};
|
|
@@ -4348,19 +4372,19 @@ var SET_PUSH_DEVICE_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]
|
|
|
4348
4372
|
};
|
|
4349
4373
|
var GetSelfPushDevice = async ({
|
|
4350
4374
|
pushDeviceId,
|
|
4351
|
-
|
|
4375
|
+
clientApiParams
|
|
4352
4376
|
}) => {
|
|
4377
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4353
4378
|
const { data } = await clientApi.get(`/self/push-devices/${pushDeviceId}`);
|
|
4354
4379
|
return data;
|
|
4355
4380
|
};
|
|
4356
4381
|
var useGetSelfPushDevice = (pushDeviceId, options = {}) => {
|
|
4357
|
-
const { token } = useConnectedXM();
|
|
4358
4382
|
return useConnectedSingleQuery(
|
|
4359
4383
|
SELF_PUSH_DEVICE_QUERY_KEY(pushDeviceId),
|
|
4360
4384
|
(params) => GetSelfPushDevice({ pushDeviceId, ...params }),
|
|
4361
4385
|
{
|
|
4362
4386
|
...options,
|
|
4363
|
-
enabled: !!
|
|
4387
|
+
enabled: !!pushDeviceId && (options?.enabled ?? true)
|
|
4364
4388
|
}
|
|
4365
4389
|
);
|
|
4366
4390
|
};
|
|
@@ -4380,9 +4404,10 @@ var GetSelfRecommendations = async ({
|
|
|
4380
4404
|
eventId,
|
|
4381
4405
|
type,
|
|
4382
4406
|
queryClient,
|
|
4383
|
-
|
|
4407
|
+
clientApiParams,
|
|
4384
4408
|
locale
|
|
4385
4409
|
}) => {
|
|
4410
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4386
4411
|
const { data } = await clientApi.get(`/self/recommendations`, {
|
|
4387
4412
|
params: {
|
|
4388
4413
|
page: pageParam || void 0,
|
|
@@ -4404,14 +4429,12 @@ var GetSelfRecommendations = async ({
|
|
|
4404
4429
|
return data;
|
|
4405
4430
|
};
|
|
4406
4431
|
var useGetSelfRecommendations = (type, eventId = "", params = {}, options = {}) => {
|
|
4407
|
-
const { token } = useConnectedXM();
|
|
4408
4432
|
return useConnectedInfiniteQuery(
|
|
4409
4433
|
SELF_RECOMMENDATIONS_QUERY_KEY(type, eventId),
|
|
4410
4434
|
(params2) => GetSelfRecommendations({ ...params2, eventId, type }),
|
|
4411
4435
|
params,
|
|
4412
4436
|
{
|
|
4413
|
-
...options
|
|
4414
|
-
enabled: !!token
|
|
4437
|
+
...options
|
|
4415
4438
|
}
|
|
4416
4439
|
);
|
|
4417
4440
|
};
|
|
@@ -4426,8 +4449,9 @@ var GetSelfTransfers = async ({
|
|
|
4426
4449
|
pageSize,
|
|
4427
4450
|
orderBy,
|
|
4428
4451
|
search,
|
|
4429
|
-
|
|
4452
|
+
clientApiParams
|
|
4430
4453
|
}) => {
|
|
4454
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4431
4455
|
const { data } = await clientApi.get(`/self/transfers`, {
|
|
4432
4456
|
params: {
|
|
4433
4457
|
page: pageParam || void 0,
|
|
@@ -4439,14 +4463,12 @@ var GetSelfTransfers = async ({
|
|
|
4439
4463
|
return data;
|
|
4440
4464
|
};
|
|
4441
4465
|
var useGetSelfTransfers = (params = {}, options = {}) => {
|
|
4442
|
-
const { token } = useConnectedXM();
|
|
4443
4466
|
return useConnectedInfiniteQuery(
|
|
4444
4467
|
SELF_TRANSFERS_QUERY_KEY(),
|
|
4445
4468
|
(params2) => GetSelfTransfers({ ...params2 }),
|
|
4446
4469
|
params,
|
|
4447
4470
|
{
|
|
4448
|
-
...options
|
|
4449
|
-
enabled: !!token && (options?.enabled ?? true)
|
|
4471
|
+
...options
|
|
4450
4472
|
}
|
|
4451
4473
|
);
|
|
4452
4474
|
};
|
|
@@ -4455,19 +4477,19 @@ var useGetSelfTransfers = (params = {}, options = {}) => {
|
|
|
4455
4477
|
var SELF_PENDING_TRANSFER_QUERY_KEY = (transferId) => [...SELF_TRANSFERS_QUERY_KEY(), transferId];
|
|
4456
4478
|
var GetSelfTransfer = async ({
|
|
4457
4479
|
transferId,
|
|
4458
|
-
|
|
4480
|
+
clientApiParams
|
|
4459
4481
|
}) => {
|
|
4482
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4460
4483
|
const { data } = await clientApi.get(`/self/transfers/${transferId}`);
|
|
4461
4484
|
return data;
|
|
4462
4485
|
};
|
|
4463
4486
|
var useGetSelfTransfer = (transferId = "", options = {}) => {
|
|
4464
|
-
const { token } = useConnectedXM();
|
|
4465
4487
|
return useConnectedSingleQuery(
|
|
4466
4488
|
SELF_PENDING_TRANSFER_QUERY_KEY(transferId),
|
|
4467
4489
|
(params) => GetSelfTransfer({ ...params, transferId }),
|
|
4468
4490
|
{
|
|
4469
4491
|
...options,
|
|
4470
|
-
enabled: !!
|
|
4492
|
+
enabled: !!transferId && (options?.enabled ?? true)
|
|
4471
4493
|
}
|
|
4472
4494
|
);
|
|
4473
4495
|
};
|
|
@@ -4489,9 +4511,10 @@ var GetSeriesList = async ({
|
|
|
4489
4511
|
orderBy,
|
|
4490
4512
|
search,
|
|
4491
4513
|
queryClient,
|
|
4492
|
-
|
|
4514
|
+
clientApiParams,
|
|
4493
4515
|
locale
|
|
4494
4516
|
}) => {
|
|
4517
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4495
4518
|
const { data } = await clientApi.get(`/series`, {
|
|
4496
4519
|
params: {
|
|
4497
4520
|
page: pageParam || void 0,
|
|
@@ -4532,12 +4555,13 @@ var SET_SERIES_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) =>
|
|
|
4532
4555
|
};
|
|
4533
4556
|
var GetSeries = async ({
|
|
4534
4557
|
seriesId,
|
|
4535
|
-
|
|
4558
|
+
clientApiParams
|
|
4536
4559
|
}) => {
|
|
4560
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4537
4561
|
const { data } = await clientApi.get(`/series/${seriesId}`);
|
|
4538
4562
|
return data;
|
|
4539
4563
|
};
|
|
4540
|
-
var useGetSeries = (seriesId, options = {}) => {
|
|
4564
|
+
var useGetSeries = (seriesId = "", options = {}) => {
|
|
4541
4565
|
return useConnectedSingleQuery(
|
|
4542
4566
|
SERIES_QUERY_KEY(seriesId),
|
|
4543
4567
|
(params) => GetSeries({ seriesId, ...params }),
|
|
@@ -4569,9 +4593,10 @@ var GetSeriesEvents = async ({
|
|
|
4569
4593
|
orderBy,
|
|
4570
4594
|
search,
|
|
4571
4595
|
queryClient,
|
|
4572
|
-
|
|
4596
|
+
clientApiParams,
|
|
4573
4597
|
locale
|
|
4574
4598
|
}) => {
|
|
4599
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4575
4600
|
const { data } = await clientApi.get(`/series/${seriesId}/events`, {
|
|
4576
4601
|
params: {
|
|
4577
4602
|
page: pageParam || void 0,
|
|
@@ -4590,7 +4615,7 @@ var GetSeriesEvents = async ({
|
|
|
4590
4615
|
}
|
|
4591
4616
|
return data;
|
|
4592
4617
|
};
|
|
4593
|
-
var useGetSeriesEvents = (seriesId, params = {}, options = {}) => {
|
|
4618
|
+
var useGetSeriesEvents = (seriesId = "", params = {}, options = {}) => {
|
|
4594
4619
|
return useConnectedInfiniteQuery(
|
|
4595
4620
|
SERIES_EVENTS_QUERY_KEY(seriesId),
|
|
4596
4621
|
(params2) => GetSeriesEvents({ seriesId, ...params2 }),
|
|
@@ -4619,9 +4644,10 @@ var GetLevels = async ({
|
|
|
4619
4644
|
orderBy,
|
|
4620
4645
|
search,
|
|
4621
4646
|
queryClient,
|
|
4622
|
-
|
|
4647
|
+
clientApiParams,
|
|
4623
4648
|
locale
|
|
4624
4649
|
}) => {
|
|
4650
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4625
4651
|
const { data } = await clientApi.get(`/levels`, {
|
|
4626
4652
|
params: {
|
|
4627
4653
|
page: pageParam || void 0,
|
|
@@ -4662,12 +4688,13 @@ var SET_LEVEL_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
|
4662
4688
|
};
|
|
4663
4689
|
var GetLevel = async ({
|
|
4664
4690
|
levelId,
|
|
4665
|
-
|
|
4691
|
+
clientApiParams
|
|
4666
4692
|
}) => {
|
|
4693
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4667
4694
|
const { data } = await clientApi.get(`/levels/${levelId}`, {});
|
|
4668
4695
|
return data;
|
|
4669
4696
|
};
|
|
4670
|
-
var useGetLevel = (levelId, options = {}) => {
|
|
4697
|
+
var useGetLevel = (levelId = "", options = {}) => {
|
|
4671
4698
|
return useConnectedSingleQuery_default(
|
|
4672
4699
|
LEVEL_QUERY_KEY(levelId),
|
|
4673
4700
|
(params) => GetLevel({ levelId, ...params }),
|
|
@@ -4699,9 +4726,10 @@ var GetLevelSponsors = async ({
|
|
|
4699
4726
|
orderBy,
|
|
4700
4727
|
search,
|
|
4701
4728
|
queryClient,
|
|
4702
|
-
|
|
4729
|
+
clientApiParams,
|
|
4703
4730
|
locale
|
|
4704
4731
|
}) => {
|
|
4732
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4705
4733
|
const { data } = await clientApi.get(`/levels/${levelId}/accounts`, {
|
|
4706
4734
|
params: {
|
|
4707
4735
|
page: pageParam || void 0,
|
|
@@ -4720,7 +4748,7 @@ var GetLevelSponsors = async ({
|
|
|
4720
4748
|
}
|
|
4721
4749
|
return data;
|
|
4722
4750
|
};
|
|
4723
|
-
var useGetLevelSponsors = (levelId, params = {}, options = {}) => {
|
|
4751
|
+
var useGetLevelSponsors = (levelId = "", params = {}, options = {}) => {
|
|
4724
4752
|
return useConnectedInfiniteQuery(
|
|
4725
4753
|
LEVEL_SPONSORS_QUERY_KEY(levelId),
|
|
4726
4754
|
(params2) => GetLevelSponsors({ levelId, ...params2 }),
|
|
@@ -4733,17 +4761,22 @@ var useGetLevelSponsors = (levelId, params = {}, options = {}) => {
|
|
|
4733
4761
|
};
|
|
4734
4762
|
|
|
4735
4763
|
// src/mutations/useConnectedMutation.ts
|
|
4736
|
-
var
|
|
4764
|
+
var import_react_query4 = require("@tanstack/react-query");
|
|
4737
4765
|
var useConnectedMutation = (mutation, params, options) => {
|
|
4738
|
-
const { locale } = useConnectedXM();
|
|
4739
|
-
const queryClient = (0,
|
|
4740
|
-
|
|
4741
|
-
return (0, import_react_query3.useMutation)({
|
|
4766
|
+
const { locale, apiUrl, getToken, organizationId, getExecuteAs } = useConnectedXM();
|
|
4767
|
+
const queryClient = (0, import_react_query4.useQueryClient)();
|
|
4768
|
+
return (0, import_react_query4.useMutation)({
|
|
4742
4769
|
mutationFn: (data) => mutation({
|
|
4743
|
-
locale: params?.locale || locale,
|
|
4744
|
-
...data,
|
|
4745
4770
|
queryClient,
|
|
4746
|
-
|
|
4771
|
+
locale: params?.locale || locale,
|
|
4772
|
+
clientApiParams: {
|
|
4773
|
+
apiUrl,
|
|
4774
|
+
getToken,
|
|
4775
|
+
organizationId,
|
|
4776
|
+
getExecuteAs,
|
|
4777
|
+
locale: params?.locale || locale
|
|
4778
|
+
},
|
|
4779
|
+
...data
|
|
4747
4780
|
}),
|
|
4748
4781
|
...options
|
|
4749
4782
|
});
|
|
@@ -4753,10 +4786,11 @@ var useConnectedMutation_default = useConnectedMutation;
|
|
|
4753
4786
|
// src/mutations/accounts/useFollowAccount.ts
|
|
4754
4787
|
var FollowAccount = async ({
|
|
4755
4788
|
accountId,
|
|
4756
|
-
|
|
4789
|
+
clientApiParams,
|
|
4757
4790
|
queryClient,
|
|
4758
4791
|
locale = "en"
|
|
4759
4792
|
}) => {
|
|
4793
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4760
4794
|
const { data } = await clientApi.post(
|
|
4761
4795
|
`/accounts/${accountId}/follow`
|
|
4762
4796
|
);
|
|
@@ -4776,10 +4810,11 @@ var useFollowAccount = (params = {}, options = {}) => {
|
|
|
4776
4810
|
// src/mutations/accounts/useUnfollowAccount.ts
|
|
4777
4811
|
var UnfollowAccount = async ({
|
|
4778
4812
|
accountId,
|
|
4779
|
-
|
|
4813
|
+
clientApiParams,
|
|
4780
4814
|
queryClient,
|
|
4781
4815
|
locale = "en"
|
|
4782
4816
|
}) => {
|
|
4817
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4783
4818
|
const { data } = await clientApi.post(
|
|
4784
4819
|
`/accounts/${accountId}/unfollow`
|
|
4785
4820
|
);
|
|
@@ -4854,7 +4889,7 @@ var UpdateResharesInfinite = (increment, queryClient, KEY, activityId) => {
|
|
|
4854
4889
|
// src/mutations/activities/useDeleteReshare.ts
|
|
4855
4890
|
var DeleteReshare = async ({
|
|
4856
4891
|
activityId,
|
|
4857
|
-
|
|
4892
|
+
clientApiParams,
|
|
4858
4893
|
queryClient
|
|
4859
4894
|
}) => {
|
|
4860
4895
|
if (queryClient) {
|
|
@@ -4866,6 +4901,7 @@ var DeleteReshare = async ({
|
|
|
4866
4901
|
activityId
|
|
4867
4902
|
);
|
|
4868
4903
|
}
|
|
4904
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4869
4905
|
const { data } = await clientApi.delete(
|
|
4870
4906
|
`/self/activities/${activityId}/reshares`
|
|
4871
4907
|
);
|
|
@@ -4933,13 +4969,14 @@ var UpdateLikesInfinite = (increment, queryClient, KEY, activityId) => {
|
|
|
4933
4969
|
// src/mutations/activities/useLikeActivity.ts
|
|
4934
4970
|
var LikeActivity = async ({
|
|
4935
4971
|
activityId,
|
|
4936
|
-
|
|
4972
|
+
clientApiParams,
|
|
4937
4973
|
queryClient
|
|
4938
4974
|
}) => {
|
|
4939
4975
|
if (queryClient) {
|
|
4940
4976
|
UpdateLikesSingle(true, queryClient, ACTIVITY_QUERY_KEY(activityId));
|
|
4941
4977
|
UpdateLikesInfinite(true, queryClient, ACTIVITIES_QUERY_KEY(), activityId);
|
|
4942
4978
|
}
|
|
4979
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4943
4980
|
const { data } = await clientApi.post(
|
|
4944
4981
|
`/self/activities/${activityId}/likes`
|
|
4945
4982
|
);
|
|
@@ -4953,7 +4990,7 @@ var useLikeActivity = (params = {}, options = {}) => {
|
|
|
4953
4990
|
var ReshareActivity = async ({
|
|
4954
4991
|
activityId,
|
|
4955
4992
|
queryClient,
|
|
4956
|
-
|
|
4993
|
+
clientApiParams
|
|
4957
4994
|
}) => {
|
|
4958
4995
|
if (queryClient) {
|
|
4959
4996
|
UpdateResharesSingle(true, queryClient, ACTIVITY_QUERY_KEY(activityId));
|
|
@@ -4964,6 +5001,7 @@ var ReshareActivity = async ({
|
|
|
4964
5001
|
activityId
|
|
4965
5002
|
);
|
|
4966
5003
|
}
|
|
5004
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4967
5005
|
const { data } = await clientApi.post(
|
|
4968
5006
|
`/self/activities/${activityId}/reshares`,
|
|
4969
5007
|
{
|
|
@@ -4979,13 +5017,14 @@ var useReshareActivity = (params = {}, options = {}) => {
|
|
|
4979
5017
|
// src/mutations/activities/useUnlikeActivity.ts
|
|
4980
5018
|
var UnlikeActivity = async ({
|
|
4981
5019
|
activityId,
|
|
4982
|
-
|
|
5020
|
+
clientApiParams,
|
|
4983
5021
|
queryClient
|
|
4984
5022
|
}) => {
|
|
4985
5023
|
if (queryClient) {
|
|
4986
5024
|
UpdateLikesSingle(false, queryClient, ACTIVITY_QUERY_KEY(activityId));
|
|
4987
5025
|
UpdateLikesInfinite(false, queryClient, ACTIVITIES_QUERY_KEY(), activityId);
|
|
4988
5026
|
}
|
|
5027
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4989
5028
|
const { data } = await clientApi.delete(
|
|
4990
5029
|
`/self/activities/${activityId}/likes`
|
|
4991
5030
|
);
|
|
@@ -4999,9 +5038,10 @@ var useUnlikeActivity = (params = {}, options = {}) => {
|
|
|
4999
5038
|
var AddCommunityEvent = async ({
|
|
5000
5039
|
communityId,
|
|
5001
5040
|
eventId,
|
|
5002
|
-
|
|
5041
|
+
clientApiParams,
|
|
5003
5042
|
queryClient
|
|
5004
5043
|
}) => {
|
|
5044
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5005
5045
|
const { data } = await clientApi.post(
|
|
5006
5046
|
`/communityModerator/${communityId}/events/${eventId}`
|
|
5007
5047
|
);
|
|
@@ -5029,9 +5069,10 @@ var CreateCommunityAnnouncement = async ({
|
|
|
5029
5069
|
html,
|
|
5030
5070
|
email,
|
|
5031
5071
|
push,
|
|
5032
|
-
|
|
5072
|
+
clientApiParams,
|
|
5033
5073
|
queryClient
|
|
5034
5074
|
}) => {
|
|
5075
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5035
5076
|
const { data } = await clientApi.post(
|
|
5036
5077
|
`/communityModerator/${communityId}/announcements`,
|
|
5037
5078
|
{
|
|
@@ -5058,9 +5099,10 @@ var useCreateCommunityAnnouncement = (params = {}, options = {}) => {
|
|
|
5058
5099
|
var RemoveCommunityEvent = async ({
|
|
5059
5100
|
communityId,
|
|
5060
5101
|
eventId,
|
|
5061
|
-
|
|
5102
|
+
clientApiParams,
|
|
5062
5103
|
queryClient
|
|
5063
5104
|
}) => {
|
|
5105
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5064
5106
|
const { data } = await clientApi.delete(
|
|
5065
5107
|
`/communityModerator/${communityId}/events/${eventId}`
|
|
5066
5108
|
);
|
|
@@ -5087,10 +5129,11 @@ var UpdateCommunity = async ({
|
|
|
5087
5129
|
description,
|
|
5088
5130
|
externalUrl,
|
|
5089
5131
|
base64,
|
|
5090
|
-
|
|
5132
|
+
clientApiParams,
|
|
5091
5133
|
queryClient,
|
|
5092
5134
|
locale = "en"
|
|
5093
5135
|
}) => {
|
|
5136
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5094
5137
|
const { data } = await clientApi.put(
|
|
5095
5138
|
`/communityModerator/${communityId}`,
|
|
5096
5139
|
{
|
|
@@ -5117,9 +5160,10 @@ var CompleteEventActivation = async ({
|
|
|
5117
5160
|
eventId,
|
|
5118
5161
|
activationId,
|
|
5119
5162
|
code,
|
|
5120
|
-
|
|
5163
|
+
clientApiParams,
|
|
5121
5164
|
queryClient
|
|
5122
5165
|
}) => {
|
|
5166
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5123
5167
|
const { data } = await clientApi.post(
|
|
5124
5168
|
`/events/${eventId}/activations/${activationId}`,
|
|
5125
5169
|
{
|
|
@@ -5139,9 +5183,10 @@ var CreateEventLead = async ({
|
|
|
5139
5183
|
eventId,
|
|
5140
5184
|
purchaseId,
|
|
5141
5185
|
note,
|
|
5142
|
-
|
|
5186
|
+
clientApiParams,
|
|
5143
5187
|
queryClient
|
|
5144
5188
|
}) => {
|
|
5189
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5145
5190
|
const { data } = await clientApi.post(
|
|
5146
5191
|
`/events/${eventId}/leads/${purchaseId}`,
|
|
5147
5192
|
{
|
|
@@ -5160,9 +5205,10 @@ var useCreateEventLead = (params = {}, options = {}) => {
|
|
|
5160
5205
|
var AddSelfChatChannelMember = async ({
|
|
5161
5206
|
channelId,
|
|
5162
5207
|
accountId,
|
|
5163
|
-
|
|
5208
|
+
clientApiParams,
|
|
5164
5209
|
queryClient
|
|
5165
5210
|
}) => {
|
|
5211
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5166
5212
|
const { data } = await clientApi.post(
|
|
5167
5213
|
`/self/chat/channels/${channelId}/members/${accountId}`
|
|
5168
5214
|
);
|
|
@@ -5181,9 +5227,10 @@ var useAddSelfChatChannelMember = (params = {}, options = {}) => {
|
|
|
5181
5227
|
var CreateSelfChatChannel = async ({
|
|
5182
5228
|
name,
|
|
5183
5229
|
accountIds,
|
|
5184
|
-
|
|
5230
|
+
clientApiParams,
|
|
5185
5231
|
queryClient
|
|
5186
5232
|
}) => {
|
|
5233
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5187
5234
|
const { data } = await clientApi.post(
|
|
5188
5235
|
`/self/chat/channels`,
|
|
5189
5236
|
{
|
|
@@ -5207,8 +5254,9 @@ var CreateSelfChatChannelMessage = async ({
|
|
|
5207
5254
|
channelId,
|
|
5208
5255
|
text,
|
|
5209
5256
|
queryClient,
|
|
5210
|
-
|
|
5257
|
+
clientApiParams
|
|
5211
5258
|
}) => {
|
|
5259
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5212
5260
|
const { data } = await clientApi.post(`/self/chat/channels/${channelId}/messages`, {
|
|
5213
5261
|
text
|
|
5214
5262
|
});
|
|
@@ -5223,9 +5271,10 @@ var useCreateSelfChatChannelMessage = (params = {}, options = {}) => {
|
|
|
5223
5271
|
// src/mutations/self/chat/useDeleteSelfChatChannel.ts
|
|
5224
5272
|
var DeleteSelfChatChannel = async ({
|
|
5225
5273
|
channelId,
|
|
5226
|
-
|
|
5274
|
+
clientApiParams,
|
|
5227
5275
|
queryClient
|
|
5228
5276
|
}) => {
|
|
5277
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5229
5278
|
const { data } = await clientApi.delete(
|
|
5230
5279
|
`/self/chat/channels/${channelId}`
|
|
5231
5280
|
);
|
|
@@ -5245,9 +5294,10 @@ var useDeleteSelfChatChannel = (params = {}, options = {}) => {
|
|
|
5245
5294
|
var DeleteSelfChatChannelMessage = async ({
|
|
5246
5295
|
channelId,
|
|
5247
5296
|
messageId,
|
|
5248
|
-
|
|
5297
|
+
clientApiParams,
|
|
5249
5298
|
queryClient
|
|
5250
5299
|
}) => {
|
|
5300
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5251
5301
|
const { data } = await clientApi.delete(
|
|
5252
5302
|
`/self/chat/channels/${channelId}/messages/${messageId}`
|
|
5253
5303
|
);
|
|
@@ -5265,9 +5315,10 @@ var useDeleteSelfChatChannelMessage = (params = {}, options = {}) => {
|
|
|
5265
5315
|
// src/mutations/self/chat/useLeaveSelfChatChannel.ts
|
|
5266
5316
|
var LeaveSelfChatChannel = async ({
|
|
5267
5317
|
channelId,
|
|
5268
|
-
|
|
5318
|
+
clientApiParams,
|
|
5269
5319
|
queryClient
|
|
5270
5320
|
}) => {
|
|
5321
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5271
5322
|
const { data } = await clientApi.delete(
|
|
5272
5323
|
`/self/chat/channels/${channelId}/leave`
|
|
5273
5324
|
);
|
|
@@ -5287,10 +5338,11 @@ var useLeaveSelfChatChannel = (params = {}, options = {}) => {
|
|
|
5287
5338
|
var UpdateSelfChatChannelNotifications = async ({
|
|
5288
5339
|
channelId,
|
|
5289
5340
|
notifications,
|
|
5290
|
-
|
|
5341
|
+
clientApiParams,
|
|
5291
5342
|
queryClient,
|
|
5292
5343
|
locale = "en"
|
|
5293
5344
|
}) => {
|
|
5345
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5294
5346
|
const { data } = await clientApi.put(
|
|
5295
5347
|
`/self/chat/channels/${channelId}/notifications`,
|
|
5296
5348
|
{
|
|
@@ -5313,10 +5365,11 @@ var useUpdateSelfChatChannelNotifications = (params = {}, options = {}) => {
|
|
|
5313
5365
|
var RegisterCancelledEventRegistration = async ({
|
|
5314
5366
|
eventId,
|
|
5315
5367
|
registrationId,
|
|
5316
|
-
|
|
5368
|
+
clientApiParams,
|
|
5317
5369
|
queryClient,
|
|
5318
5370
|
locale = "en"
|
|
5319
5371
|
}) => {
|
|
5372
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5320
5373
|
const { data } = await clientApi.post(
|
|
5321
5374
|
`/self/events/${eventId}/registration/${registrationId}/cancelled/register`
|
|
5322
5375
|
);
|
|
@@ -5348,10 +5401,11 @@ var SelectSelfEventRegistrationCoupon = async ({
|
|
|
5348
5401
|
eventId,
|
|
5349
5402
|
registrationId,
|
|
5350
5403
|
couponId,
|
|
5351
|
-
|
|
5404
|
+
clientApiParams,
|
|
5352
5405
|
queryClient,
|
|
5353
5406
|
locale = "en"
|
|
5354
5407
|
}) => {
|
|
5408
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5355
5409
|
const { data } = await clientApi.post(
|
|
5356
5410
|
`/self/events/${eventId}/registration/${registrationId}/draft/coupon`,
|
|
5357
5411
|
{
|
|
@@ -5391,10 +5445,11 @@ var useSelectSelfEventRegistrationCoupon = (params = {}, options = {}) => {
|
|
|
5391
5445
|
var CaptureSelfEventRegistrationPayment = async ({
|
|
5392
5446
|
eventId,
|
|
5393
5447
|
registrationId,
|
|
5394
|
-
|
|
5448
|
+
clientApiParams,
|
|
5395
5449
|
queryClient,
|
|
5396
5450
|
locale = "en"
|
|
5397
5451
|
}) => {
|
|
5452
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5398
5453
|
const { data } = await clientApi.post(
|
|
5399
5454
|
`/self/events/${eventId}/registration/${registrationId}/draft/capture`
|
|
5400
5455
|
);
|
|
@@ -5414,10 +5469,11 @@ var CreateSelfEventRegistrationGuest = async ({
|
|
|
5414
5469
|
eventId,
|
|
5415
5470
|
registrationId,
|
|
5416
5471
|
guest,
|
|
5417
|
-
|
|
5472
|
+
clientApiParams,
|
|
5418
5473
|
queryClient,
|
|
5419
5474
|
locale = "en"
|
|
5420
5475
|
}) => {
|
|
5476
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5421
5477
|
const { data } = await clientApi.post(
|
|
5422
5478
|
`/self/events/${eventId}/registration/${registrationId}/draft/guests`,
|
|
5423
5479
|
guest
|
|
@@ -5438,10 +5494,11 @@ var DeleteSelfEventRegistrationGuest = async ({
|
|
|
5438
5494
|
eventId,
|
|
5439
5495
|
registrationId,
|
|
5440
5496
|
guestId,
|
|
5441
|
-
|
|
5497
|
+
clientApiParams,
|
|
5442
5498
|
queryClient,
|
|
5443
5499
|
locale = "en"
|
|
5444
5500
|
}) => {
|
|
5501
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5445
5502
|
const { data } = await clientApi.delete(
|
|
5446
5503
|
`/self/events/${eventId}/registration/${registrationId}/draft/guests/${guestId}`
|
|
5447
5504
|
);
|
|
@@ -5460,10 +5517,11 @@ var useDeleteSelfEventRegistrationGuest = (params = {}, options = {}) => {
|
|
|
5460
5517
|
var RemoveSelfEventRegistrationCoupon = async ({
|
|
5461
5518
|
eventId,
|
|
5462
5519
|
registrationId,
|
|
5463
|
-
|
|
5520
|
+
clientApiParams,
|
|
5464
5521
|
queryClient,
|
|
5465
5522
|
locale = "en"
|
|
5466
5523
|
}) => {
|
|
5524
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5467
5525
|
const { data } = await clientApi.delete(
|
|
5468
5526
|
`/self/events/${eventId}/registration/${registrationId}/draft/coupon`
|
|
5469
5527
|
);
|
|
@@ -5500,10 +5558,11 @@ var useRemoveSelfEventRegistrationCoupon = (params = {}, options = {}) => {
|
|
|
5500
5558
|
var RemoveSelfEventRegistrationTicket = async ({
|
|
5501
5559
|
eventId,
|
|
5502
5560
|
registrationId,
|
|
5503
|
-
|
|
5561
|
+
clientApiParams,
|
|
5504
5562
|
queryClient,
|
|
5505
5563
|
locale = "en"
|
|
5506
5564
|
}) => {
|
|
5565
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5507
5566
|
const { data } = await clientApi.delete(
|
|
5508
5567
|
`/self/events/${eventId}/registration/${registrationId}/draft/ticket`
|
|
5509
5568
|
);
|
|
@@ -5541,10 +5600,11 @@ var SelectSelfEventRegistrationTicket = async ({
|
|
|
5541
5600
|
eventId,
|
|
5542
5601
|
registrationId,
|
|
5543
5602
|
ticketId,
|
|
5544
|
-
|
|
5603
|
+
clientApiParams,
|
|
5545
5604
|
queryClient,
|
|
5546
5605
|
locale = "en"
|
|
5547
5606
|
}) => {
|
|
5607
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5548
5608
|
const { data } = await clientApi.post(
|
|
5549
5609
|
`/self/events/${eventId}/registration/${registrationId}/draft/ticket`,
|
|
5550
5610
|
{
|
|
@@ -5580,10 +5640,11 @@ var SubmitSelfEventRegistration = async ({
|
|
|
5580
5640
|
eventId,
|
|
5581
5641
|
registrationId,
|
|
5582
5642
|
payment,
|
|
5583
|
-
|
|
5643
|
+
clientApiParams,
|
|
5584
5644
|
queryClient,
|
|
5585
5645
|
locale = "en"
|
|
5586
5646
|
}) => {
|
|
5647
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5587
5648
|
const { data } = await clientApi.post(
|
|
5588
5649
|
`/self/events/${eventId}/registration/${registrationId}/draft/submit`,
|
|
5589
5650
|
payment
|
|
@@ -5605,10 +5666,11 @@ var UpdateSelfEventRegistrationGuest = async ({
|
|
|
5605
5666
|
registrationId,
|
|
5606
5667
|
guestId,
|
|
5607
5668
|
guest,
|
|
5608
|
-
|
|
5669
|
+
clientApiParams,
|
|
5609
5670
|
queryClient,
|
|
5610
5671
|
locale = "en"
|
|
5611
5672
|
}) => {
|
|
5673
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5612
5674
|
const { data } = await clientApi.put(
|
|
5613
5675
|
`/self/events/${eventId}/registration/${registrationId}/draft/guests/${guestId}`,
|
|
5614
5676
|
guest
|
|
@@ -5632,10 +5694,11 @@ var UpdateSelfEventRegistrationGuestResponseFile = async ({
|
|
|
5632
5694
|
guestId,
|
|
5633
5695
|
dataUrl,
|
|
5634
5696
|
name,
|
|
5635
|
-
|
|
5697
|
+
clientApiParams
|
|
5636
5698
|
}) => {
|
|
5637
5699
|
if (!guestId)
|
|
5638
5700
|
throw new Error("Guest ID is required");
|
|
5701
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5639
5702
|
const { data } = await clientApi.put(
|
|
5640
5703
|
`/self/events/${eventId}/registration/${registrationId}/draft/guests/${guestId}/responses/file`,
|
|
5641
5704
|
{
|
|
@@ -5656,8 +5719,9 @@ var UpdateSelfEventRegistrationGuestResponses = async ({
|
|
|
5656
5719
|
registrationId,
|
|
5657
5720
|
guestId,
|
|
5658
5721
|
responses,
|
|
5659
|
-
|
|
5722
|
+
clientApiParams
|
|
5660
5723
|
}) => {
|
|
5724
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5661
5725
|
const { data } = await clientApi.put(
|
|
5662
5726
|
`/self/events/${eventId}/registration/${registrationId}/draft/guests/${guestId}/responses`,
|
|
5663
5727
|
responses
|
|
@@ -5675,8 +5739,9 @@ var UpdateSelfEventRegistrationResponseFile = async ({
|
|
|
5675
5739
|
dataUrl,
|
|
5676
5740
|
name,
|
|
5677
5741
|
questionId,
|
|
5678
|
-
|
|
5742
|
+
clientApiParams
|
|
5679
5743
|
}) => {
|
|
5744
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5680
5745
|
const { data } = await clientApi.put(
|
|
5681
5746
|
`/self/events/${eventId}/registration/${registrationId}/draft/responses/file`,
|
|
5682
5747
|
{
|
|
@@ -5696,10 +5761,11 @@ var UpdateSelfEventRegistrationResponses = async ({
|
|
|
5696
5761
|
eventId,
|
|
5697
5762
|
registrationId,
|
|
5698
5763
|
responses,
|
|
5699
|
-
|
|
5764
|
+
clientApiParams,
|
|
5700
5765
|
queryClient,
|
|
5701
5766
|
locale = "en"
|
|
5702
5767
|
}) => {
|
|
5768
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5703
5769
|
const { data } = await clientApi.put(
|
|
5704
5770
|
`/self/events/${eventId}/registration/${registrationId}/draft/responses`,
|
|
5705
5771
|
responses
|
|
@@ -5719,10 +5785,11 @@ var useUpdateSelfEventRegistrationResponses = (params = {}, options = {}) => {
|
|
|
5719
5785
|
var CancelEventRegistration = async ({
|
|
5720
5786
|
eventId,
|
|
5721
5787
|
registrationId,
|
|
5722
|
-
|
|
5788
|
+
clientApiParams,
|
|
5723
5789
|
queryClient,
|
|
5724
5790
|
locale = "env"
|
|
5725
5791
|
}) => {
|
|
5792
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5726
5793
|
const { data } = await clientApi.delete(
|
|
5727
5794
|
`/self/events/${eventId}/registration/${registrationId}/registered/cancel`
|
|
5728
5795
|
);
|
|
@@ -5754,9 +5821,10 @@ var CancelTransfer = async ({
|
|
|
5754
5821
|
transferId,
|
|
5755
5822
|
eventId,
|
|
5756
5823
|
registrationId,
|
|
5757
|
-
|
|
5824
|
+
clientApiParams,
|
|
5758
5825
|
queryClient
|
|
5759
5826
|
}) => {
|
|
5827
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5760
5828
|
const { data } = await clientApi.delete(
|
|
5761
5829
|
`/self/events/${eventId}/registration/${registrationId}/transfer/${transferId}`
|
|
5762
5830
|
);
|
|
@@ -5777,9 +5845,10 @@ var TransferPurchase = async ({
|
|
|
5777
5845
|
purchaseId,
|
|
5778
5846
|
eventId,
|
|
5779
5847
|
registrationId,
|
|
5780
|
-
|
|
5848
|
+
clientApiParams,
|
|
5781
5849
|
queryClient
|
|
5782
5850
|
}) => {
|
|
5851
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5783
5852
|
const { data } = await clientApi.post(
|
|
5784
5853
|
`/self/events/${eventId}/registration/${registrationId}/transfer`,
|
|
5785
5854
|
{
|
|
@@ -5804,10 +5873,11 @@ var UpdateSelfEventRegistrationResponse = async ({
|
|
|
5804
5873
|
registrationId,
|
|
5805
5874
|
questionId,
|
|
5806
5875
|
response,
|
|
5807
|
-
|
|
5876
|
+
clientApiParams,
|
|
5808
5877
|
queryClient,
|
|
5809
5878
|
locale = "en"
|
|
5810
5879
|
}) => {
|
|
5880
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5811
5881
|
const { data } = await clientApi.put(
|
|
5812
5882
|
`/self/events/${eventId}/registration/${registrationId}/registered/response`,
|
|
5813
5883
|
{
|
|
@@ -5837,10 +5907,11 @@ var UpdateSelfEventRegistrationGuestResponse = async ({
|
|
|
5837
5907
|
questionId,
|
|
5838
5908
|
guestId,
|
|
5839
5909
|
response,
|
|
5840
|
-
|
|
5910
|
+
clientApiParams,
|
|
5841
5911
|
queryClient,
|
|
5842
5912
|
locale = "en"
|
|
5843
5913
|
}) => {
|
|
5914
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5844
5915
|
const { data } = await clientApi.put(
|
|
5845
5916
|
`/self/events/${eventId}/registration/${registrationId}/registered/guests/${guestId}/response`,
|
|
5846
5917
|
{
|
|
@@ -5866,9 +5937,10 @@ var useUpdateSelfEventRegistrationGuestResponse = (params = {}, options = {}) =>
|
|
|
5866
5937
|
// src/mutations/self/subscriptions/useCancelSubscription.ts
|
|
5867
5938
|
var CancelSubscription = async ({
|
|
5868
5939
|
subscriptionId,
|
|
5869
|
-
|
|
5940
|
+
clientApiParams,
|
|
5870
5941
|
queryClient
|
|
5871
5942
|
}) => {
|
|
5943
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5872
5944
|
const { data } = await clientApi.delete(
|
|
5873
5945
|
`/self/subscriptions/${subscriptionId}`
|
|
5874
5946
|
);
|
|
@@ -5890,8 +5962,9 @@ var useCancelSubscription = (params = {}, options = {}) => {
|
|
|
5890
5962
|
var CreateSubscription = async ({
|
|
5891
5963
|
productId,
|
|
5892
5964
|
priceId,
|
|
5893
|
-
|
|
5965
|
+
clientApiParams
|
|
5894
5966
|
}) => {
|
|
5967
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5895
5968
|
const { data } = await clientApi.post("/self/subscriptions", {
|
|
5896
5969
|
productId,
|
|
5897
5970
|
priceId,
|
|
@@ -5907,9 +5980,10 @@ var useCreateSubscription = (params = {}, options = {}) => {
|
|
|
5907
5980
|
var UpdateSubscriptionPaymentMethod = async ({
|
|
5908
5981
|
subscriptionId,
|
|
5909
5982
|
paymentMethodId,
|
|
5910
|
-
|
|
5983
|
+
clientApiParams,
|
|
5911
5984
|
queryClient
|
|
5912
5985
|
}) => {
|
|
5986
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5913
5987
|
const { data } = await clientApi.put(
|
|
5914
5988
|
`/self/subscriptions/${subscriptionId}/payment-method`,
|
|
5915
5989
|
{
|
|
@@ -5930,9 +6004,10 @@ var useUpdateSubscriptionPaymentMethod = (params = {}, options = {}) => {
|
|
|
5930
6004
|
// src/mutations/self/useAcceptTransfer.ts
|
|
5931
6005
|
var AcceptTransfer = async ({
|
|
5932
6006
|
transferId,
|
|
5933
|
-
|
|
6007
|
+
clientApiParams,
|
|
5934
6008
|
queryClient
|
|
5935
6009
|
}) => {
|
|
6010
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5936
6011
|
const { data } = await clientApi.post(
|
|
5937
6012
|
`/self/transfers/${transferId}`
|
|
5938
6013
|
);
|
|
@@ -5948,9 +6023,10 @@ var useAcceptTransfer = (params = {}, options = {}) => {
|
|
|
5948
6023
|
// src/mutations/self/useAddSelfDelegate.ts
|
|
5949
6024
|
var AddSelfDelegate = async ({
|
|
5950
6025
|
email,
|
|
5951
|
-
|
|
6026
|
+
clientApiParams,
|
|
5952
6027
|
queryClient
|
|
5953
6028
|
}) => {
|
|
6029
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5954
6030
|
const { data } = await clientApi.post(
|
|
5955
6031
|
`/self/delegates`,
|
|
5956
6032
|
{
|
|
@@ -5970,10 +6046,11 @@ var useAddSelfDelegate = (params = {}, options = {}) => {
|
|
|
5970
6046
|
var AddSelfEventListingSession = async ({
|
|
5971
6047
|
eventId,
|
|
5972
6048
|
session,
|
|
5973
|
-
|
|
6049
|
+
clientApiParams,
|
|
5974
6050
|
queryClient,
|
|
5975
6051
|
locale = "en"
|
|
5976
6052
|
}) => {
|
|
6053
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5977
6054
|
const { data } = await clientApi.post(
|
|
5978
6055
|
`/self/events/listings/${eventId}/sessions`,
|
|
5979
6056
|
{
|
|
@@ -6022,10 +6099,11 @@ var useAddSelfEventListingSession = (params = {}, options = {}) => {
|
|
|
6022
6099
|
var AddSelfEventListingSpeaker = async ({
|
|
6023
6100
|
eventId,
|
|
6024
6101
|
speaker,
|
|
6025
|
-
|
|
6102
|
+
clientApiParams,
|
|
6026
6103
|
queryClient,
|
|
6027
6104
|
locale = "en"
|
|
6028
6105
|
}) => {
|
|
6106
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6029
6107
|
const { data } = await clientApi.post(
|
|
6030
6108
|
`/self/events/listings/${eventId}/speakers`,
|
|
6031
6109
|
{
|
|
@@ -6074,7 +6152,7 @@ var useAddSelfEventListingSpeaker = (params = {}, options = {}) => {
|
|
|
6074
6152
|
var AddSelfEventListingSponsor = async ({
|
|
6075
6153
|
eventId,
|
|
6076
6154
|
sponsor,
|
|
6077
|
-
|
|
6155
|
+
clientApiParams,
|
|
6078
6156
|
queryClient,
|
|
6079
6157
|
locale = "en"
|
|
6080
6158
|
}) => {
|
|
@@ -6108,6 +6186,7 @@ var AddSelfEventListingSponsor = async ({
|
|
|
6108
6186
|
}
|
|
6109
6187
|
);
|
|
6110
6188
|
}
|
|
6189
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6111
6190
|
const { data } = await clientApi.post(
|
|
6112
6191
|
`/self/events/listings/${eventId}/sponsors`,
|
|
6113
6192
|
{
|
|
@@ -6124,9 +6203,10 @@ var useAddSelfEventListingSponsor = (params = {}, options = {}) => {
|
|
|
6124
6203
|
var AddSelfEventSession = async ({
|
|
6125
6204
|
eventId,
|
|
6126
6205
|
sessionId,
|
|
6127
|
-
|
|
6206
|
+
clientApiParams,
|
|
6128
6207
|
queryClient
|
|
6129
6208
|
}) => {
|
|
6209
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6130
6210
|
const { data } = await clientApi.post(
|
|
6131
6211
|
`/self/events/${eventId}/sessions/${sessionId}`
|
|
6132
6212
|
);
|
|
@@ -6149,10 +6229,11 @@ var CreateSelfEventListing = async ({
|
|
|
6149
6229
|
sponsorIds,
|
|
6150
6230
|
speakers,
|
|
6151
6231
|
sessions,
|
|
6152
|
-
|
|
6232
|
+
clientApiParams,
|
|
6153
6233
|
queryClient,
|
|
6154
6234
|
locale = "en"
|
|
6155
6235
|
}) => {
|
|
6236
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6156
6237
|
let data;
|
|
6157
6238
|
if (communityId) {
|
|
6158
6239
|
data = (await clientApi.post(
|
|
@@ -6200,9 +6281,10 @@ var useCreateSelfEventListing = (params = {}, options = {}) => {
|
|
|
6200
6281
|
|
|
6201
6282
|
// src/mutations/self/useDeleteSelf.ts
|
|
6202
6283
|
var DeleteSelf = async ({
|
|
6203
|
-
|
|
6284
|
+
clientApiParams,
|
|
6204
6285
|
queryClient
|
|
6205
6286
|
}) => {
|
|
6287
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6206
6288
|
const { data } = await clientApi.delete(`/self`);
|
|
6207
6289
|
if (queryClient && data.status === "ok") {
|
|
6208
6290
|
queryClient.clear();
|
|
@@ -6216,9 +6298,10 @@ var useDeleteSelf = (params = {}, options = {}) => {
|
|
|
6216
6298
|
// src/mutations/self/useDeleteSelfPushDevice.ts
|
|
6217
6299
|
var DeleteSelfPushDevice = async ({
|
|
6218
6300
|
pushDeviceId,
|
|
6219
|
-
|
|
6301
|
+
clientApiParams,
|
|
6220
6302
|
queryClient
|
|
6221
6303
|
}) => {
|
|
6304
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6222
6305
|
const { data } = await clientApi.delete(
|
|
6223
6306
|
`/self/push-devices/${pushDeviceId}`
|
|
6224
6307
|
);
|
|
@@ -6236,9 +6319,10 @@ var useDeleteSelfPushDevice = (params = {}, options = {}) => {
|
|
|
6236
6319
|
// src/mutations/self/useRejectTransfer.ts
|
|
6237
6320
|
var RejectTransfer = async ({
|
|
6238
6321
|
transferId,
|
|
6239
|
-
|
|
6322
|
+
clientApiParams,
|
|
6240
6323
|
queryClient
|
|
6241
6324
|
}) => {
|
|
6325
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6242
6326
|
const { data } = await clientApi.delete(
|
|
6243
6327
|
`/self/transfers/${transferId}`
|
|
6244
6328
|
);
|
|
@@ -6256,9 +6340,10 @@ var useRejectTransfer = (params = {}, options = {}) => {
|
|
|
6256
6340
|
// src/mutations/self/useRemoveSelfDelegate.ts
|
|
6257
6341
|
var RemoveSelfDelegate = async ({
|
|
6258
6342
|
accountId,
|
|
6259
|
-
|
|
6343
|
+
clientApiParams,
|
|
6260
6344
|
queryClient
|
|
6261
6345
|
}) => {
|
|
6346
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6262
6347
|
const { data } = await clientApi.delete(
|
|
6263
6348
|
`/self/delegates/${accountId}`
|
|
6264
6349
|
);
|
|
@@ -6275,7 +6360,7 @@ var useRemoveSelfDelegate = (params = {}, options = {}) => {
|
|
|
6275
6360
|
var RemoveSelfEventListingSession = async ({
|
|
6276
6361
|
eventId,
|
|
6277
6362
|
sessionId,
|
|
6278
|
-
|
|
6363
|
+
clientApiParams,
|
|
6279
6364
|
queryClient,
|
|
6280
6365
|
locale = "en"
|
|
6281
6366
|
}) => {
|
|
@@ -6309,6 +6394,7 @@ var RemoveSelfEventListingSession = async ({
|
|
|
6309
6394
|
}
|
|
6310
6395
|
);
|
|
6311
6396
|
}
|
|
6397
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6312
6398
|
const { data } = await clientApi.delete(
|
|
6313
6399
|
`/self/events/listings/${eventId}/sessions/${sessionId}`
|
|
6314
6400
|
);
|
|
@@ -6322,7 +6408,7 @@ var useRemoveSelfEventListingSession = (params = {}, options = {}) => {
|
|
|
6322
6408
|
var RemoveSelfEventListingSpeaker = async ({
|
|
6323
6409
|
eventId,
|
|
6324
6410
|
speakerId,
|
|
6325
|
-
|
|
6411
|
+
clientApiParams,
|
|
6326
6412
|
queryClient,
|
|
6327
6413
|
locale = "en"
|
|
6328
6414
|
}) => {
|
|
@@ -6356,6 +6442,7 @@ var RemoveSelfEventListingSpeaker = async ({
|
|
|
6356
6442
|
}
|
|
6357
6443
|
);
|
|
6358
6444
|
}
|
|
6445
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6359
6446
|
const { data } = await clientApi.delete(
|
|
6360
6447
|
`/self/events/listings/${eventId}/speakers/${speakerId}`
|
|
6361
6448
|
);
|
|
@@ -6369,7 +6456,7 @@ var useRemoveSelfEventListingSpeaker = (params = {}, options = {}) => {
|
|
|
6369
6456
|
var RemoveSelfEventListingSponsor = async ({
|
|
6370
6457
|
eventId,
|
|
6371
6458
|
sponsorId,
|
|
6372
|
-
|
|
6459
|
+
clientApiParams,
|
|
6373
6460
|
queryClient,
|
|
6374
6461
|
locale = "en"
|
|
6375
6462
|
}) => {
|
|
@@ -6403,6 +6490,7 @@ var RemoveSelfEventListingSponsor = async ({
|
|
|
6403
6490
|
}
|
|
6404
6491
|
);
|
|
6405
6492
|
}
|
|
6493
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6406
6494
|
const { data } = await clientApi.delete(
|
|
6407
6495
|
`/self/events/listings/${eventId}/sponsors/${sponsorId}`
|
|
6408
6496
|
);
|
|
@@ -6416,9 +6504,10 @@ var useRemoveSelfEventListingSponsor = (params = {}, options = {}) => {
|
|
|
6416
6504
|
var RemoveSelfEventSession = async ({
|
|
6417
6505
|
eventId,
|
|
6418
6506
|
sessionId,
|
|
6419
|
-
|
|
6507
|
+
clientApiParams,
|
|
6420
6508
|
queryClient
|
|
6421
6509
|
}) => {
|
|
6510
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6422
6511
|
const { data } = await clientApi.delete(
|
|
6423
6512
|
`/self/events/${eventId}/sessions/${sessionId}`
|
|
6424
6513
|
);
|
|
@@ -6437,9 +6526,10 @@ var useRemoveSelfEventSession = (params = {}, options = {}) => {
|
|
|
6437
6526
|
var SelfCheckinRegistration = async ({
|
|
6438
6527
|
accountId,
|
|
6439
6528
|
eventId,
|
|
6440
|
-
|
|
6529
|
+
clientApiParams,
|
|
6441
6530
|
queryClient
|
|
6442
6531
|
}) => {
|
|
6532
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6443
6533
|
const { data } = await clientApi.post(
|
|
6444
6534
|
`/self/events/listings/${eventId}/registrations/${accountId}`
|
|
6445
6535
|
);
|
|
@@ -6523,7 +6613,7 @@ var SelfCreateActivity = async ({
|
|
|
6523
6613
|
activity,
|
|
6524
6614
|
base64Image,
|
|
6525
6615
|
videoUri,
|
|
6526
|
-
|
|
6616
|
+
clientApiParams,
|
|
6527
6617
|
queryClient,
|
|
6528
6618
|
locale = "en"
|
|
6529
6619
|
}) => {
|
|
@@ -6541,6 +6631,7 @@ var SelfCreateActivity = async ({
|
|
|
6541
6631
|
);
|
|
6542
6632
|
}
|
|
6543
6633
|
}
|
|
6634
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6544
6635
|
const { data } = await clientApi.post(
|
|
6545
6636
|
`/self/activities`,
|
|
6546
6637
|
{
|
|
@@ -6601,9 +6692,10 @@ var useSelfCreateActivity = (params = {}, options = {}) => {
|
|
|
6601
6692
|
// src/mutations/self/useSelfDeleteActivity.ts
|
|
6602
6693
|
var DeleteActivity = async ({
|
|
6603
6694
|
activityId,
|
|
6604
|
-
|
|
6695
|
+
clientApiParams,
|
|
6605
6696
|
queryClient
|
|
6606
6697
|
}) => {
|
|
6698
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6607
6699
|
const { data } = await clientApi.delete(
|
|
6608
6700
|
`/self/activities/${activityId}`
|
|
6609
6701
|
);
|
|
@@ -6619,9 +6711,10 @@ var useDeleteActivity = (params = {}, options = {}) => {
|
|
|
6619
6711
|
// src/mutations/self/useSelfJoinCommunity.ts
|
|
6620
6712
|
var SelfJoinCommunity = async ({
|
|
6621
6713
|
communityId,
|
|
6622
|
-
|
|
6714
|
+
clientApiParams,
|
|
6623
6715
|
queryClient
|
|
6624
6716
|
}) => {
|
|
6717
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6625
6718
|
const { data } = await clientApi.post(`/self/communities/${communityId}`);
|
|
6626
6719
|
if (queryClient && data.status === "ok") {
|
|
6627
6720
|
queryClient.invalidateQueries({
|
|
@@ -6646,9 +6739,10 @@ var useSelfJoinCommunity = (params = {}, options = {}) => {
|
|
|
6646
6739
|
// src/mutations/self/useSelfLeaveCommunity.ts
|
|
6647
6740
|
var SelfLeaveCommunity = async ({
|
|
6648
6741
|
communityId,
|
|
6649
|
-
|
|
6742
|
+
clientApiParams,
|
|
6650
6743
|
queryClient
|
|
6651
6744
|
}) => {
|
|
6745
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6652
6746
|
const { data } = await clientApi.delete(
|
|
6653
6747
|
`/self/communities/${communityId}`
|
|
6654
6748
|
);
|
|
@@ -6676,7 +6770,7 @@ var useSelfLeaveCommunity = (params = {}, options = {}) => {
|
|
|
6676
6770
|
var SelfUpdateCommunityMembership = async ({
|
|
6677
6771
|
communityId,
|
|
6678
6772
|
membership,
|
|
6679
|
-
|
|
6773
|
+
clientApiParams,
|
|
6680
6774
|
queryClient,
|
|
6681
6775
|
locale = "en"
|
|
6682
6776
|
}) => {
|
|
@@ -6694,6 +6788,7 @@ var SelfUpdateCommunityMembership = async ({
|
|
|
6694
6788
|
}
|
|
6695
6789
|
);
|
|
6696
6790
|
}
|
|
6791
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6697
6792
|
const { data } = await clientApi.put(`/self/communities/${communityId}`, membership);
|
|
6698
6793
|
return data;
|
|
6699
6794
|
};
|
|
@@ -6703,10 +6798,11 @@ var useSelfUpdateCommunityMembership = (params = {}, options = {}) => {
|
|
|
6703
6798
|
|
|
6704
6799
|
// src/mutations/self/useUpdateSelf.ts
|
|
6705
6800
|
var UpdateSelf = async ({
|
|
6706
|
-
|
|
6801
|
+
clientApiParams,
|
|
6707
6802
|
queryClient,
|
|
6708
6803
|
...params
|
|
6709
6804
|
}) => {
|
|
6805
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6710
6806
|
const { data } = await clientApi.put(
|
|
6711
6807
|
`/self`,
|
|
6712
6808
|
params
|
|
@@ -6725,10 +6821,11 @@ var UpdateSelfEventListing = async ({
|
|
|
6725
6821
|
eventId,
|
|
6726
6822
|
event,
|
|
6727
6823
|
base64,
|
|
6728
|
-
|
|
6824
|
+
clientApiParams,
|
|
6729
6825
|
queryClient,
|
|
6730
6826
|
locale = "en"
|
|
6731
6827
|
}) => {
|
|
6828
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6732
6829
|
const { data } = await clientApi.put(
|
|
6733
6830
|
`/self/events/listings/${eventId}`,
|
|
6734
6831
|
{
|
|
@@ -6761,10 +6858,11 @@ var UpdateSelfEventListingSession = async ({
|
|
|
6761
6858
|
eventId,
|
|
6762
6859
|
session,
|
|
6763
6860
|
sessionId,
|
|
6764
|
-
|
|
6861
|
+
clientApiParams,
|
|
6765
6862
|
queryClient,
|
|
6766
6863
|
locale = "en"
|
|
6767
6864
|
}) => {
|
|
6865
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6768
6866
|
const { data } = await clientApi.put(
|
|
6769
6867
|
`/self/events/listings/${eventId}/sessions/${sessionId}`,
|
|
6770
6868
|
{
|
|
@@ -6813,10 +6911,11 @@ var UpdateSelfEventListingSpeaker = async ({
|
|
|
6813
6911
|
speaker,
|
|
6814
6912
|
speakerId,
|
|
6815
6913
|
buffer,
|
|
6816
|
-
|
|
6914
|
+
clientApiParams,
|
|
6817
6915
|
queryClient,
|
|
6818
6916
|
locale = "en"
|
|
6819
6917
|
}) => {
|
|
6918
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6820
6919
|
const { data } = await clientApi.put(
|
|
6821
6920
|
`/self/events/listings/${eventId}/speakers/${speakerId}`,
|
|
6822
6921
|
{
|
|
@@ -6863,9 +6962,10 @@ var useUpdateSelfEventListingSpeaker = (params = {}, options = {}) => {
|
|
|
6863
6962
|
// src/mutations/self/useUpdateSelfImage.ts
|
|
6864
6963
|
var UpdateSelfImage = async ({
|
|
6865
6964
|
base64,
|
|
6866
|
-
|
|
6965
|
+
clientApiParams,
|
|
6867
6966
|
queryClient
|
|
6868
6967
|
}) => {
|
|
6968
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6869
6969
|
const { data } = await clientApi.put(
|
|
6870
6970
|
`/self/image`,
|
|
6871
6971
|
{
|
|
@@ -6885,8 +6985,9 @@ var useUpdateSelfImage = (params = {}, options = {}) => {
|
|
|
6885
6985
|
var UpdateSelfLead = async ({
|
|
6886
6986
|
leadId,
|
|
6887
6987
|
note,
|
|
6888
|
-
|
|
6988
|
+
clientApiParams
|
|
6889
6989
|
}) => {
|
|
6990
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6890
6991
|
const { data } = await clientApi.put(
|
|
6891
6992
|
`/self/leads/${leadId}`,
|
|
6892
6993
|
{
|
|
@@ -6901,7 +7002,7 @@ var useUpdateSelfLead = (params = {}, options = {}) => {
|
|
|
6901
7002
|
|
|
6902
7003
|
// src/mutations/self/useUpdateSelfNotificationPreferences.ts
|
|
6903
7004
|
var UpdateSelfNotificationPreferences = async ({
|
|
6904
|
-
|
|
7005
|
+
clientApiParams,
|
|
6905
7006
|
queryClient,
|
|
6906
7007
|
locale = "en",
|
|
6907
7008
|
...params
|
|
@@ -6919,6 +7020,7 @@ var UpdateSelfNotificationPreferences = async ({
|
|
|
6919
7020
|
}
|
|
6920
7021
|
);
|
|
6921
7022
|
}
|
|
7023
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6922
7024
|
const { data } = await clientApi.put(`/self/notificationPreferences`, params);
|
|
6923
7025
|
return data;
|
|
6924
7026
|
};
|
|
@@ -6930,9 +7032,10 @@ var useUpdateSelfNotificationPreferences = (params = {}, options = {}) => {
|
|
|
6930
7032
|
var UpdateSelfPushDevice = async ({
|
|
6931
7033
|
pushDeviceId,
|
|
6932
7034
|
pushDevice,
|
|
6933
|
-
|
|
7035
|
+
clientApiParams,
|
|
6934
7036
|
queryClient
|
|
6935
7037
|
}) => {
|
|
7038
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6936
7039
|
const { data } = await clientApi.put(
|
|
6937
7040
|
`/self/push-devices/${pushDeviceId}`,
|
|
6938
7041
|
{
|
|
@@ -6960,8 +7063,9 @@ var CreateSupportTicket = async ({
|
|
|
6960
7063
|
request,
|
|
6961
7064
|
eventId,
|
|
6962
7065
|
productId,
|
|
6963
|
-
|
|
7066
|
+
clientApiParams
|
|
6964
7067
|
}) => {
|
|
7068
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6965
7069
|
const { data } = await clientApi.post(
|
|
6966
7070
|
"/supportTickets",
|
|
6967
7071
|
{
|
|
@@ -6982,8 +7086,9 @@ var useCreateSupportTicket = (params = {}, options = {}) => {
|
|
|
6982
7086
|
var CreateTeamAccount = async ({
|
|
6983
7087
|
name,
|
|
6984
7088
|
email,
|
|
6985
|
-
|
|
7089
|
+
clientApiParams
|
|
6986
7090
|
}) => {
|
|
7091
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6987
7092
|
const { data } = await clientApi.post(
|
|
6988
7093
|
`/self/team`,
|
|
6989
7094
|
{
|
|
@@ -7096,6 +7201,7 @@ var useCreateTeamAccount = (params = {}, options = {}) => {
|
|
|
7096
7201
|
GetActivityComments,
|
|
7097
7202
|
GetAdvertisement,
|
|
7098
7203
|
GetBenefits,
|
|
7204
|
+
GetClientAPI,
|
|
7099
7205
|
GetCommunities,
|
|
7100
7206
|
GetCommunity,
|
|
7101
7207
|
GetCommunityActivities,
|
|
@@ -7331,7 +7437,6 @@ var useCreateTeamAccount = (params = {}, options = {}) => {
|
|
|
7331
7437
|
UpdateSelfNotificationPreferences,
|
|
7332
7438
|
UpdateSelfPushDevice,
|
|
7333
7439
|
UpdateSubscriptionPaymentMethod,
|
|
7334
|
-
getClientAPI,
|
|
7335
7440
|
isListing,
|
|
7336
7441
|
isManagedCoupon,
|
|
7337
7442
|
isSelf,
|
|
@@ -7381,7 +7486,6 @@ var useCreateTeamAccount = (params = {}, options = {}) => {
|
|
|
7381
7486
|
useCancelSubscription,
|
|
7382
7487
|
useCancelTransfer,
|
|
7383
7488
|
useCaptureSelfEventRegistrationPayment,
|
|
7384
|
-
useClientAPI,
|
|
7385
7489
|
useCompleteEventActivation,
|
|
7386
7490
|
useConnectedXM,
|
|
7387
7491
|
useCreateCommunityAnnouncement,
|