@connectedxm/client 0.0.61 → 0.0.79
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 +329 -322
- package/dist/index.d.ts +329 -322
- package/dist/index.js +524 -371
- package/dist/index.mjs +529 -374
- package/package.json +4 -1
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,
|
|
@@ -572,12 +571,11 @@ var import_react_query = require("@tanstack/react-query");
|
|
|
572
571
|
var ConnectedXMClientContext = import_react.default.createContext({});
|
|
573
572
|
var ConnectedXMProvider = ({
|
|
574
573
|
queryClient,
|
|
574
|
+
authenticated = true,
|
|
575
575
|
children,
|
|
576
576
|
...state
|
|
577
577
|
}) => {
|
|
578
578
|
const [ssr, setSSR] = import_react.default.useState(true);
|
|
579
|
-
const [token, setToken] = import_react.default.useState();
|
|
580
|
-
const [executeAs, setExecuteAs] = import_react.default.useState();
|
|
581
579
|
import_react.default.useEffect(() => {
|
|
582
580
|
setSSR(false);
|
|
583
581
|
}, []);
|
|
@@ -587,10 +585,7 @@ var ConnectedXMProvider = ({
|
|
|
587
585
|
{
|
|
588
586
|
value: {
|
|
589
587
|
...state,
|
|
590
|
-
|
|
591
|
-
setToken,
|
|
592
|
-
executeAs,
|
|
593
|
-
setExecuteAs
|
|
588
|
+
authenticated
|
|
594
589
|
}
|
|
595
590
|
},
|
|
596
591
|
children
|
|
@@ -598,8 +593,7 @@ var ConnectedXMProvider = ({
|
|
|
598
593
|
};
|
|
599
594
|
if (ssr)
|
|
600
595
|
return /* @__PURE__ */ import_react.default.createElement(import_react_query.QueryClientProvider, { client: queryClient }, render());
|
|
601
|
-
|
|
602
|
-
return render();
|
|
596
|
+
return render();
|
|
603
597
|
};
|
|
604
598
|
|
|
605
599
|
// src/hooks/useConnectedXM.ts
|
|
@@ -612,36 +606,6 @@ var useConnectedXM = () => {
|
|
|
612
606
|
return context;
|
|
613
607
|
};
|
|
614
608
|
|
|
615
|
-
// src/hooks/useClientAPI.ts
|
|
616
|
-
var import_axios = __toESM(require("axios"));
|
|
617
|
-
var getClientAPI = (apiUrl, organizationId, token, executeAs, locale) => {
|
|
618
|
-
return import_axios.default.create({
|
|
619
|
-
baseURL: apiUrl,
|
|
620
|
-
headers: {
|
|
621
|
-
authorization: token,
|
|
622
|
-
organization: organizationId,
|
|
623
|
-
executeAs,
|
|
624
|
-
locale
|
|
625
|
-
}
|
|
626
|
-
});
|
|
627
|
-
};
|
|
628
|
-
var useClientAPI = (locale) => {
|
|
629
|
-
const {
|
|
630
|
-
apiUrl,
|
|
631
|
-
token,
|
|
632
|
-
organizationId,
|
|
633
|
-
executeAs,
|
|
634
|
-
locale: _locale
|
|
635
|
-
} = useConnectedXM();
|
|
636
|
-
return getClientAPI(
|
|
637
|
-
apiUrl,
|
|
638
|
-
organizationId,
|
|
639
|
-
token,
|
|
640
|
-
executeAs,
|
|
641
|
-
locale || _locale
|
|
642
|
-
);
|
|
643
|
-
};
|
|
644
|
-
|
|
645
609
|
// src/interfaces.ts
|
|
646
610
|
var RegistrationStatus = /* @__PURE__ */ ((RegistrationStatus2) => {
|
|
647
611
|
RegistrationStatus2["registered"] = "registered";
|
|
@@ -899,10 +863,10 @@ var AppendInfiniteQuery = (queryClient, key, newData) => {
|
|
|
899
863
|
};
|
|
900
864
|
|
|
901
865
|
// src/utilities/GetErrorMessage.ts
|
|
902
|
-
var
|
|
866
|
+
var import_axios = __toESM(require("axios"));
|
|
903
867
|
var GetErrorMessage = (error, fallback = "Something went wrong") => {
|
|
904
868
|
let message = fallback;
|
|
905
|
-
if (
|
|
869
|
+
if (import_axios.default.isAxiosError(error)) {
|
|
906
870
|
message = error.response?.data?.message || message;
|
|
907
871
|
} else {
|
|
908
872
|
message = error.message;
|
|
@@ -926,25 +890,33 @@ var GetBaseSingleQueryKeys = (locale) => {
|
|
|
926
890
|
return [locale];
|
|
927
891
|
};
|
|
928
892
|
var useConnectedSingleQuery = (queryKeys, queryFn, options) => {
|
|
929
|
-
const {
|
|
930
|
-
|
|
893
|
+
const {
|
|
894
|
+
locale,
|
|
895
|
+
onModuleForbidden,
|
|
896
|
+
onNotAuthorized,
|
|
897
|
+
onNotFound,
|
|
898
|
+
apiUrl,
|
|
899
|
+
organizationId,
|
|
900
|
+
getToken,
|
|
901
|
+
getExecuteAs
|
|
902
|
+
} = useConnectedXM();
|
|
931
903
|
return (0, import_react_query2.useQuery)({
|
|
932
904
|
staleTime: 60 * 1e3,
|
|
933
905
|
// 60 Seconds
|
|
934
906
|
retry: (failureCount, error) => {
|
|
935
907
|
if (error.response?.status === 404) {
|
|
936
908
|
if (onNotFound)
|
|
937
|
-
onNotFound(error);
|
|
909
|
+
onNotFound(error, queryKeys);
|
|
938
910
|
return false;
|
|
939
911
|
}
|
|
940
912
|
if (error.response?.status === 403) {
|
|
941
913
|
if (onModuleForbidden)
|
|
942
|
-
onModuleForbidden(error);
|
|
914
|
+
onModuleForbidden(error, queryKeys);
|
|
943
915
|
return false;
|
|
944
916
|
}
|
|
945
917
|
if (error.response?.status === 401) {
|
|
946
918
|
if (onNotAuthorized)
|
|
947
|
-
onNotAuthorized(error);
|
|
919
|
+
onNotAuthorized(error, queryKeys);
|
|
948
920
|
return false;
|
|
949
921
|
}
|
|
950
922
|
if (failureCount < 3)
|
|
@@ -954,7 +926,13 @@ var useConnectedSingleQuery = (queryKeys, queryFn, options) => {
|
|
|
954
926
|
...options,
|
|
955
927
|
queryKey: [...queryKeys, ...GetBaseSingleQueryKeys(locale)],
|
|
956
928
|
queryFn: () => queryFn({
|
|
957
|
-
|
|
929
|
+
clientApiParams: {
|
|
930
|
+
apiUrl,
|
|
931
|
+
organizationId,
|
|
932
|
+
getToken,
|
|
933
|
+
getExecuteAs,
|
|
934
|
+
locale
|
|
935
|
+
}
|
|
958
936
|
})
|
|
959
937
|
});
|
|
960
938
|
};
|
|
@@ -1041,9 +1019,16 @@ var setFirstPageData = (response) => {
|
|
|
1041
1019
|
};
|
|
1042
1020
|
};
|
|
1043
1021
|
var useConnectedInfiniteQuery = (queryKeys, queryFn, params = {}, options) => {
|
|
1044
|
-
const {
|
|
1045
|
-
|
|
1046
|
-
|
|
1022
|
+
const {
|
|
1023
|
+
locale,
|
|
1024
|
+
onModuleForbidden,
|
|
1025
|
+
onNotAuthorized,
|
|
1026
|
+
onNotFound,
|
|
1027
|
+
apiUrl,
|
|
1028
|
+
getToken,
|
|
1029
|
+
organizationId,
|
|
1030
|
+
getExecuteAs
|
|
1031
|
+
} = useConnectedXM();
|
|
1047
1032
|
const getNextPageParam = (lastPage, allPages) => {
|
|
1048
1033
|
if (lastPage.data.length === params.pageSize) {
|
|
1049
1034
|
return allPages.length + 1;
|
|
@@ -1056,17 +1041,17 @@ var useConnectedInfiniteQuery = (queryKeys, queryFn, params = {}, options) => {
|
|
|
1056
1041
|
retry: (failureCount, error) => {
|
|
1057
1042
|
if (error.response?.status === 404) {
|
|
1058
1043
|
if (onNotFound)
|
|
1059
|
-
onNotFound(error);
|
|
1044
|
+
onNotFound(error, queryKeys);
|
|
1060
1045
|
return false;
|
|
1061
1046
|
}
|
|
1062
1047
|
if (error.response?.status === 403) {
|
|
1063
1048
|
if (onModuleForbidden)
|
|
1064
|
-
onModuleForbidden(error);
|
|
1049
|
+
onModuleForbidden(error, queryKeys);
|
|
1065
1050
|
return false;
|
|
1066
1051
|
}
|
|
1067
1052
|
if (error.response?.status === 401) {
|
|
1068
1053
|
if (onNotAuthorized)
|
|
1069
|
-
onNotAuthorized(error);
|
|
1054
|
+
onNotAuthorized(error, queryKeys);
|
|
1070
1055
|
return false;
|
|
1071
1056
|
}
|
|
1072
1057
|
if (failureCount < 3)
|
|
@@ -1078,12 +1063,34 @@ var useConnectedInfiniteQuery = (queryKeys, queryFn, params = {}, options) => {
|
|
|
1078
1063
|
...queryKeys,
|
|
1079
1064
|
...GetBaseInfiniteQueryKeys(params?.locale || locale, params?.search)
|
|
1080
1065
|
],
|
|
1081
|
-
queryFn: ({ pageParam }) => queryFn({ ...params, pageSize: params.pageSize || 25, locale: params.locale || locale, pageParam,
|
|
1066
|
+
queryFn: ({ pageParam }) => queryFn({ ...params, pageSize: params.pageSize || 25, locale: params.locale || locale, pageParam, clientApiParams: {
|
|
1067
|
+
apiUrl,
|
|
1068
|
+
getToken,
|
|
1069
|
+
organizationId,
|
|
1070
|
+
getExecuteAs,
|
|
1071
|
+
locale
|
|
1072
|
+
} }),
|
|
1082
1073
|
initialPageParam: 1,
|
|
1083
1074
|
getNextPageParam
|
|
1084
1075
|
});
|
|
1085
1076
|
};
|
|
1086
1077
|
|
|
1078
|
+
// src/ClientAPI.ts
|
|
1079
|
+
var import_axios2 = __toESM(require("axios"));
|
|
1080
|
+
var GetClientAPI = async (params) => {
|
|
1081
|
+
const token = await params.getToken();
|
|
1082
|
+
const executeAs = params.getExecuteAs ? await params.getExecuteAs() : void 0;
|
|
1083
|
+
return import_axios2.default.create({
|
|
1084
|
+
baseURL: params.apiUrl,
|
|
1085
|
+
headers: {
|
|
1086
|
+
organization: params.organizationId,
|
|
1087
|
+
locale: params.locale,
|
|
1088
|
+
authorization: token,
|
|
1089
|
+
executeAs
|
|
1090
|
+
}
|
|
1091
|
+
});
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1087
1094
|
// src/queries/accounts/useGetAccounts.ts
|
|
1088
1095
|
var ACCOUNTS_QUERY_KEY = () => ["ACCOUNTS"];
|
|
1089
1096
|
var SET_ACCOUNTS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
@@ -1100,9 +1107,10 @@ var GetAccounts = async ({
|
|
|
1100
1107
|
orderBy,
|
|
1101
1108
|
search,
|
|
1102
1109
|
queryClient,
|
|
1103
|
-
|
|
1110
|
+
clientApiParams,
|
|
1104
1111
|
locale
|
|
1105
1112
|
}) => {
|
|
1113
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1106
1114
|
const { data } = await clientApi.get(`/accounts`, {
|
|
1107
1115
|
params: {
|
|
1108
1116
|
pageSize: pageSize || void 0,
|
|
@@ -1121,14 +1129,12 @@ var GetAccounts = async ({
|
|
|
1121
1129
|
return data;
|
|
1122
1130
|
};
|
|
1123
1131
|
var useGetAccounts = (params = {}, options = {}) => {
|
|
1124
|
-
const { token } = useConnectedXM();
|
|
1125
1132
|
return useConnectedInfiniteQuery(
|
|
1126
1133
|
ACCOUNTS_QUERY_KEY(),
|
|
1127
1134
|
(params2) => GetAccounts({ ...params2 }),
|
|
1128
1135
|
params,
|
|
1129
1136
|
{
|
|
1130
|
-
...options
|
|
1131
|
-
enabled: !!token && (options?.enabled ?? true)
|
|
1137
|
+
...options
|
|
1132
1138
|
}
|
|
1133
1139
|
);
|
|
1134
1140
|
};
|
|
@@ -1149,19 +1155,19 @@ var SET_ACCOUNT_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) =>
|
|
|
1149
1155
|
};
|
|
1150
1156
|
var GetAccount = async ({
|
|
1151
1157
|
accountId,
|
|
1152
|
-
|
|
1158
|
+
clientApiParams
|
|
1153
1159
|
}) => {
|
|
1160
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1154
1161
|
const { data } = await clientApi.get(`/accounts/${accountId}`);
|
|
1155
1162
|
return data;
|
|
1156
1163
|
};
|
|
1157
|
-
var useGetAccount = (accountId, options = {}) => {
|
|
1158
|
-
const { token } = useConnectedXM();
|
|
1164
|
+
var useGetAccount = (accountId = "", options = {}) => {
|
|
1159
1165
|
return useConnectedSingleQuery(
|
|
1160
1166
|
ACCOUNT_QUERY_KEY(accountId),
|
|
1161
1167
|
(_params) => GetAccount({ accountId, ..._params }),
|
|
1162
1168
|
{
|
|
1163
1169
|
...options,
|
|
1164
|
-
enabled: !!
|
|
1170
|
+
enabled: !!accountId && (options?.enabled ?? true)
|
|
1165
1171
|
}
|
|
1166
1172
|
);
|
|
1167
1173
|
};
|
|
@@ -1183,9 +1189,10 @@ var GetActivities = async ({
|
|
|
1183
1189
|
orderBy,
|
|
1184
1190
|
search,
|
|
1185
1191
|
queryClient,
|
|
1186
|
-
|
|
1192
|
+
clientApiParams,
|
|
1187
1193
|
locale
|
|
1188
1194
|
}) => {
|
|
1195
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1189
1196
|
const { data } = await clientApi.get(`/activities`, {
|
|
1190
1197
|
params: {
|
|
1191
1198
|
page: pageParam || void 0,
|
|
@@ -1205,13 +1212,12 @@ var GetActivities = async ({
|
|
|
1205
1212
|
return data;
|
|
1206
1213
|
};
|
|
1207
1214
|
var useGetActivities = (params = {}, options = {}) => {
|
|
1208
|
-
const { token } = useConnectedXM();
|
|
1209
1215
|
return useConnectedInfiniteQuery(
|
|
1210
1216
|
ACTIVITIES_QUERY_KEY(),
|
|
1211
1217
|
(params2) => GetActivities(params2),
|
|
1212
1218
|
params,
|
|
1213
1219
|
{
|
|
1214
|
-
|
|
1220
|
+
...options
|
|
1215
1221
|
}
|
|
1216
1222
|
);
|
|
1217
1223
|
};
|
|
@@ -1232,19 +1238,19 @@ var SET_ACTIVITY_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) =
|
|
|
1232
1238
|
};
|
|
1233
1239
|
var GetActivity = async ({
|
|
1234
1240
|
activityId,
|
|
1235
|
-
|
|
1241
|
+
clientApiParams
|
|
1236
1242
|
}) => {
|
|
1243
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1237
1244
|
const { data } = await clientApi.get(`/activities/${activityId}`);
|
|
1238
1245
|
return data;
|
|
1239
1246
|
};
|
|
1240
|
-
var useGetActivity = (activityId, options = {}) => {
|
|
1241
|
-
const { token } = useConnectedXM();
|
|
1247
|
+
var useGetActivity = (activityId = "", options = {}) => {
|
|
1242
1248
|
return useConnectedSingleQuery(
|
|
1243
1249
|
ACTIVITY_QUERY_KEY(activityId),
|
|
1244
1250
|
(params) => GetActivity({ activityId: activityId || "unknown", ...params }),
|
|
1245
1251
|
{
|
|
1246
1252
|
...options,
|
|
1247
|
-
enabled: !!
|
|
1253
|
+
enabled: !!activityId && (options?.enabled ?? true)
|
|
1248
1254
|
}
|
|
1249
1255
|
);
|
|
1250
1256
|
};
|
|
@@ -1270,9 +1276,10 @@ var GetAccountActivities = async ({
|
|
|
1270
1276
|
search,
|
|
1271
1277
|
accountId,
|
|
1272
1278
|
queryClient,
|
|
1273
|
-
|
|
1279
|
+
clientApiParams,
|
|
1274
1280
|
locale
|
|
1275
1281
|
}) => {
|
|
1282
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1276
1283
|
const { data } = await clientApi.get(`/accounts/${accountId}/activities`, {
|
|
1277
1284
|
params: {
|
|
1278
1285
|
page: pageParam || void 0,
|
|
@@ -1291,15 +1298,14 @@ var GetAccountActivities = async ({
|
|
|
1291
1298
|
}
|
|
1292
1299
|
return data;
|
|
1293
1300
|
};
|
|
1294
|
-
var useGetAccountActivities = (accountId, params = {}, options = {}) => {
|
|
1295
|
-
const { token } = useConnectedXM();
|
|
1301
|
+
var useGetAccountActivities = (accountId = "", params = {}, options = {}) => {
|
|
1296
1302
|
return useConnectedInfiniteQuery(
|
|
1297
1303
|
ACCOUNT_ACTIVITIES_QUERY_KEY(accountId),
|
|
1298
1304
|
(params2) => GetAccountActivities({ accountId, ...params2 }),
|
|
1299
1305
|
params,
|
|
1300
1306
|
{
|
|
1301
1307
|
...options,
|
|
1302
|
-
enabled: !!
|
|
1308
|
+
enabled: !!accountId
|
|
1303
1309
|
}
|
|
1304
1310
|
);
|
|
1305
1311
|
};
|
|
@@ -1317,19 +1323,19 @@ var SET_ACCOUNT_BY_SHARE_CODE_QUERY_DATA = (client, keyParams, response, baseKey
|
|
|
1317
1323
|
};
|
|
1318
1324
|
var GetAccountByShareCode = async ({
|
|
1319
1325
|
shareCode,
|
|
1320
|
-
|
|
1326
|
+
clientApiParams
|
|
1321
1327
|
}) => {
|
|
1328
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1322
1329
|
const { data } = await clientApi.get(`/accounts/shareCode/${shareCode}`);
|
|
1323
1330
|
return data;
|
|
1324
1331
|
};
|
|
1325
|
-
var useGetAccountByShareCode = (shareCode, options = {}) => {
|
|
1326
|
-
const { token } = useConnectedXM();
|
|
1332
|
+
var useGetAccountByShareCode = (shareCode = "", options = {}) => {
|
|
1327
1333
|
return useConnectedSingleQuery(
|
|
1328
1334
|
ACCOUNT_BY_SHARE_CODE_QUERY_KEY(shareCode),
|
|
1329
1335
|
(params) => GetAccountByShareCode({ shareCode: shareCode || "unknown", ...params }),
|
|
1330
1336
|
{
|
|
1331
1337
|
...options,
|
|
1332
|
-
enabled: !!
|
|
1338
|
+
enabled: !!shareCode && (options?.enabled ?? true),
|
|
1333
1339
|
retry: false
|
|
1334
1340
|
}
|
|
1335
1341
|
);
|
|
@@ -1353,7 +1359,7 @@ var GetCommunities = async ({
|
|
|
1353
1359
|
search,
|
|
1354
1360
|
privateCommunities,
|
|
1355
1361
|
queryClient,
|
|
1356
|
-
|
|
1362
|
+
clientApiParams,
|
|
1357
1363
|
locale
|
|
1358
1364
|
}) => {
|
|
1359
1365
|
if (privateCommunities) {
|
|
@@ -1363,6 +1369,7 @@ var GetCommunities = async ({
|
|
|
1363
1369
|
data: []
|
|
1364
1370
|
};
|
|
1365
1371
|
}
|
|
1372
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1366
1373
|
const { data } = await clientApi.get(`/communities`, {
|
|
1367
1374
|
params: {
|
|
1368
1375
|
page: pageParam || void 0,
|
|
@@ -1408,12 +1415,13 @@ var SET_COMMUNITY_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"],
|
|
|
1408
1415
|
};
|
|
1409
1416
|
var GetCommunity = async ({
|
|
1410
1417
|
communityId,
|
|
1411
|
-
|
|
1418
|
+
clientApiParams
|
|
1412
1419
|
}) => {
|
|
1420
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1413
1421
|
const { data } = await clientApi.get(`/communities/${communityId}`);
|
|
1414
1422
|
return data;
|
|
1415
1423
|
};
|
|
1416
|
-
var useGetCommunity = (communityId, options = {}) => {
|
|
1424
|
+
var useGetCommunity = (communityId = "", options = {}) => {
|
|
1417
1425
|
return useConnectedSingleQuery(
|
|
1418
1426
|
COMMUNITY_QUERY_KEY(communityId),
|
|
1419
1427
|
(params) => GetCommunity({ communityId, ...params }),
|
|
@@ -1445,9 +1453,10 @@ var GetAccountCommunities = async ({
|
|
|
1445
1453
|
search,
|
|
1446
1454
|
accountId,
|
|
1447
1455
|
queryClient,
|
|
1448
|
-
|
|
1456
|
+
clientApiParams,
|
|
1449
1457
|
locale
|
|
1450
1458
|
}) => {
|
|
1459
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1451
1460
|
const { data } = await clientApi.get(`/accounts/${accountId}/communities`, {
|
|
1452
1461
|
params: {
|
|
1453
1462
|
page: pageParam || void 0,
|
|
@@ -1466,15 +1475,14 @@ var GetAccountCommunities = async ({
|
|
|
1466
1475
|
}
|
|
1467
1476
|
return data;
|
|
1468
1477
|
};
|
|
1469
|
-
var useGetAccountCommunities = (accountId, params = {}, options = {}) => {
|
|
1470
|
-
const { token } = useConnectedXM();
|
|
1478
|
+
var useGetAccountCommunities = (accountId = "", params = {}, options = {}) => {
|
|
1471
1479
|
return useConnectedInfiniteQuery(
|
|
1472
1480
|
ACCOUNT_COMMUNITIES_QUERY_KEY(accountId),
|
|
1473
1481
|
(params2) => GetAccountCommunities({ accountId, ...params2 }),
|
|
1474
1482
|
params,
|
|
1475
1483
|
{
|
|
1476
1484
|
...options,
|
|
1477
|
-
enabled: !!
|
|
1485
|
+
enabled: !!accountId && (options?.enabled ?? true)
|
|
1478
1486
|
}
|
|
1479
1487
|
);
|
|
1480
1488
|
};
|
|
@@ -1500,9 +1508,10 @@ var GetAccountFollowers = async ({
|
|
|
1500
1508
|
search,
|
|
1501
1509
|
accountId,
|
|
1502
1510
|
queryClient,
|
|
1503
|
-
|
|
1511
|
+
clientApiParams,
|
|
1504
1512
|
locale
|
|
1505
1513
|
}) => {
|
|
1514
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1506
1515
|
const { data } = await clientApi.get(`/accounts/${accountId}/followers`, {
|
|
1507
1516
|
params: {
|
|
1508
1517
|
page: pageParam || void 0,
|
|
@@ -1521,15 +1530,14 @@ var GetAccountFollowers = async ({
|
|
|
1521
1530
|
}
|
|
1522
1531
|
return data;
|
|
1523
1532
|
};
|
|
1524
|
-
var useGetAccountFollowers = (accountId, params = {}, options = {}) => {
|
|
1525
|
-
const { token } = useConnectedXM();
|
|
1533
|
+
var useGetAccountFollowers = (accountId = "", params = {}, options = {}) => {
|
|
1526
1534
|
return useConnectedInfiniteQuery(
|
|
1527
1535
|
ACCOUNT_FOLLOWERS_QUERY_KEY(accountId),
|
|
1528
1536
|
(params2) => GetAccountFollowers({ accountId, ...params2 }),
|
|
1529
1537
|
params,
|
|
1530
1538
|
{
|
|
1531
1539
|
...options,
|
|
1532
|
-
enabled: !!
|
|
1540
|
+
enabled: !!accountId && (options?.enabled ?? true)
|
|
1533
1541
|
}
|
|
1534
1542
|
);
|
|
1535
1543
|
};
|
|
@@ -1555,9 +1563,10 @@ var GetAccountFollowings = async ({
|
|
|
1555
1563
|
search,
|
|
1556
1564
|
accountId,
|
|
1557
1565
|
queryClient,
|
|
1558
|
-
|
|
1566
|
+
clientApiParams,
|
|
1559
1567
|
locale
|
|
1560
1568
|
}) => {
|
|
1569
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1561
1570
|
const { data } = await clientApi.get(`/accounts/${accountId}/following`, {
|
|
1562
1571
|
params: {
|
|
1563
1572
|
page: pageParam || void 0,
|
|
@@ -1576,15 +1585,14 @@ var GetAccountFollowings = async ({
|
|
|
1576
1585
|
}
|
|
1577
1586
|
return data;
|
|
1578
1587
|
};
|
|
1579
|
-
var useGetAccountFollowings = (accountId, params = {}, options = {}) => {
|
|
1580
|
-
const { token } = useConnectedXM();
|
|
1588
|
+
var useGetAccountFollowings = (accountId = "", params = {}, options = {}) => {
|
|
1581
1589
|
return useConnectedInfiniteQuery(
|
|
1582
1590
|
ACCOUNT_FOLLOWINGS_QUERY_KEY(accountId),
|
|
1583
1591
|
(params2) => GetAccountFollowings({ accountId, ...params2 }),
|
|
1584
1592
|
params,
|
|
1585
1593
|
{
|
|
1586
1594
|
...options,
|
|
1587
|
-
enabled: !!
|
|
1595
|
+
enabled: !!accountId && (options?.enabled ?? true)
|
|
1588
1596
|
}
|
|
1589
1597
|
);
|
|
1590
1598
|
};
|
|
@@ -1610,9 +1618,10 @@ var GetActivityComments = async ({
|
|
|
1610
1618
|
orderBy,
|
|
1611
1619
|
search,
|
|
1612
1620
|
queryClient,
|
|
1613
|
-
|
|
1621
|
+
clientApiParams,
|
|
1614
1622
|
locale
|
|
1615
1623
|
}) => {
|
|
1624
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1616
1625
|
const { data } = await clientApi.get(`/activities/${activityId}/comments`, {
|
|
1617
1626
|
params: {
|
|
1618
1627
|
page: pageParam || void 0,
|
|
@@ -1631,14 +1640,13 @@ var GetActivityComments = async ({
|
|
|
1631
1640
|
}
|
|
1632
1641
|
return data;
|
|
1633
1642
|
};
|
|
1634
|
-
var useGetActivityComments = (activityId, params = {}, options = {}) => {
|
|
1635
|
-
const { token } = useConnectedXM();
|
|
1643
|
+
var useGetActivityComments = (activityId = "", params = {}, options = {}) => {
|
|
1636
1644
|
return useConnectedInfiniteQuery(
|
|
1637
1645
|
ACTIVITY_COMMENTS_QUERY_KEY(activityId),
|
|
1638
1646
|
(params2) => GetActivityComments({ activityId, ...params2 }),
|
|
1639
1647
|
params,
|
|
1640
1648
|
{
|
|
1641
|
-
enabled: !!
|
|
1649
|
+
enabled: !!activityId && (options?.enabled ?? true)
|
|
1642
1650
|
}
|
|
1643
1651
|
);
|
|
1644
1652
|
};
|
|
@@ -1658,8 +1666,9 @@ var SET_ADVERTISEMENT_QUERY_DATA = (client, keyParams, response, baseKeys = ["en
|
|
|
1658
1666
|
);
|
|
1659
1667
|
};
|
|
1660
1668
|
var GetAdvertisement = async ({
|
|
1661
|
-
|
|
1669
|
+
clientApiParams
|
|
1662
1670
|
}) => {
|
|
1671
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1663
1672
|
const { data } = await clientApi.get(`/advertisement`);
|
|
1664
1673
|
return data;
|
|
1665
1674
|
};
|
|
@@ -1690,8 +1699,9 @@ var GetBenefits = async ({
|
|
|
1690
1699
|
pageSize,
|
|
1691
1700
|
orderBy,
|
|
1692
1701
|
search,
|
|
1693
|
-
|
|
1702
|
+
clientApiParams
|
|
1694
1703
|
}) => {
|
|
1704
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1695
1705
|
const { data } = await clientApi.get(`/benefits`, {
|
|
1696
1706
|
params: {
|
|
1697
1707
|
page: pageParam || void 0,
|
|
@@ -1703,14 +1713,12 @@ var GetBenefits = async ({
|
|
|
1703
1713
|
return data;
|
|
1704
1714
|
};
|
|
1705
1715
|
var useGetBenefits = (params = {}, options = {}) => {
|
|
1706
|
-
const { token } = useConnectedXM();
|
|
1707
1716
|
return useConnectedInfiniteQuery(
|
|
1708
1717
|
BENEFITS_QUERY_KEY(),
|
|
1709
1718
|
(params2) => GetBenefits(params2),
|
|
1710
1719
|
params,
|
|
1711
1720
|
{
|
|
1712
|
-
...options
|
|
1713
|
-
enabled: !!token && (options?.enabled ?? true)
|
|
1721
|
+
...options
|
|
1714
1722
|
}
|
|
1715
1723
|
);
|
|
1716
1724
|
};
|
|
@@ -1733,9 +1741,10 @@ var GetCommunityActivities = async ({
|
|
|
1733
1741
|
search,
|
|
1734
1742
|
communityId,
|
|
1735
1743
|
queryClient,
|
|
1736
|
-
|
|
1744
|
+
clientApiParams,
|
|
1737
1745
|
locale
|
|
1738
1746
|
}) => {
|
|
1747
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1739
1748
|
const { data } = await clientApi.get(
|
|
1740
1749
|
`/communities/${communityId}/activities`,
|
|
1741
1750
|
{
|
|
@@ -1757,15 +1766,14 @@ var GetCommunityActivities = async ({
|
|
|
1757
1766
|
}
|
|
1758
1767
|
return data;
|
|
1759
1768
|
};
|
|
1760
|
-
var useGetCommunityActivities = (communityId, params = {}, options = {}) => {
|
|
1761
|
-
const { token } = useConnectedXM();
|
|
1769
|
+
var useGetCommunityActivities = (communityId = "", params = {}, options = {}) => {
|
|
1762
1770
|
return useConnectedInfiniteQuery(
|
|
1763
1771
|
COMMUNITY_ACTIVITIES_QUERY_KEY(communityId),
|
|
1764
1772
|
(params2) => GetCommunityActivities({ communityId, ...params2 }),
|
|
1765
1773
|
params,
|
|
1766
1774
|
{
|
|
1767
1775
|
...options,
|
|
1768
|
-
enabled: !!
|
|
1776
|
+
enabled: !!communityId && (options?.enabled ?? true)
|
|
1769
1777
|
}
|
|
1770
1778
|
);
|
|
1771
1779
|
};
|
|
@@ -1787,8 +1795,9 @@ var GetCommunityAnnouncements = async ({
|
|
|
1787
1795
|
pageSize,
|
|
1788
1796
|
orderBy,
|
|
1789
1797
|
search,
|
|
1790
|
-
|
|
1798
|
+
clientApiParams
|
|
1791
1799
|
}) => {
|
|
1800
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1792
1801
|
const { data } = await clientApi.get(
|
|
1793
1802
|
`/communities/${communityId}/announcements`,
|
|
1794
1803
|
{
|
|
@@ -1802,15 +1811,14 @@ var GetCommunityAnnouncements = async ({
|
|
|
1802
1811
|
);
|
|
1803
1812
|
return data;
|
|
1804
1813
|
};
|
|
1805
|
-
var useGetCommunityAnnouncements = (communityId, params = {}, options = {}) => {
|
|
1806
|
-
const { token } = useConnectedXM();
|
|
1814
|
+
var useGetCommunityAnnouncements = (communityId = "", params = {}, options = {}) => {
|
|
1807
1815
|
return useConnectedInfiniteQuery(
|
|
1808
1816
|
COMMUNITY_ANNOUNCEMENTS_QUERY_KEY(communityId),
|
|
1809
1817
|
(params2) => GetCommunityAnnouncements({ communityId, ...params2 }),
|
|
1810
1818
|
params,
|
|
1811
1819
|
{
|
|
1812
1820
|
...options,
|
|
1813
|
-
enabled: !!
|
|
1821
|
+
enabled: !!communityId && (options?.enabled ?? true)
|
|
1814
1822
|
}
|
|
1815
1823
|
);
|
|
1816
1824
|
};
|
|
@@ -1839,9 +1847,10 @@ var GetEvents = async ({
|
|
|
1839
1847
|
search,
|
|
1840
1848
|
past,
|
|
1841
1849
|
queryClient,
|
|
1842
|
-
|
|
1850
|
+
clientApiParams,
|
|
1843
1851
|
locale
|
|
1844
1852
|
}) => {
|
|
1853
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1845
1854
|
const { data } = await clientApi.get(`/events`, {
|
|
1846
1855
|
params: {
|
|
1847
1856
|
page: pageParam || void 0,
|
|
@@ -1883,12 +1892,13 @@ var SET_EVENT_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
|
1883
1892
|
};
|
|
1884
1893
|
var GetEvent = async ({
|
|
1885
1894
|
eventId,
|
|
1886
|
-
|
|
1895
|
+
clientApiParams
|
|
1887
1896
|
}) => {
|
|
1897
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1888
1898
|
const { data } = await clientApi.get(`/events/${eventId}`);
|
|
1889
1899
|
return data;
|
|
1890
1900
|
};
|
|
1891
|
-
var useGetEvent = (eventId, options = {}) => {
|
|
1901
|
+
var useGetEvent = (eventId = "", options = {}) => {
|
|
1892
1902
|
return useConnectedSingleQuery(
|
|
1893
1903
|
EVENT_QUERY_KEY(eventId),
|
|
1894
1904
|
(params) => GetEvent({ eventId, ...params }),
|
|
@@ -1922,9 +1932,10 @@ var GetCommunityEvents = async ({
|
|
|
1922
1932
|
communityId,
|
|
1923
1933
|
past,
|
|
1924
1934
|
queryClient,
|
|
1925
|
-
|
|
1935
|
+
clientApiParams,
|
|
1926
1936
|
locale
|
|
1927
1937
|
}) => {
|
|
1938
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1928
1939
|
const { data } = await clientApi.get(`/communities/${communityId}/events`, {
|
|
1929
1940
|
params: {
|
|
1930
1941
|
page: pageParam || void 0,
|
|
@@ -1944,7 +1955,7 @@ var GetCommunityEvents = async ({
|
|
|
1944
1955
|
}
|
|
1945
1956
|
return data;
|
|
1946
1957
|
};
|
|
1947
|
-
var useGetCommunityEvents = (communityId, past = false, params = {}, options = {}) => {
|
|
1958
|
+
var useGetCommunityEvents = (communityId = "", past = false, params = {}, options = {}) => {
|
|
1948
1959
|
return useConnectedInfiniteQuery(
|
|
1949
1960
|
COMMUNITY_EVENTS_QUERY_KEY(communityId, past),
|
|
1950
1961
|
(params2) => GetCommunityEvents({ communityId, past, ...params2 }),
|
|
@@ -1976,8 +1987,9 @@ var GetCommunityMembers = async ({
|
|
|
1976
1987
|
orderBy,
|
|
1977
1988
|
search,
|
|
1978
1989
|
communityId,
|
|
1979
|
-
|
|
1990
|
+
clientApiParams
|
|
1980
1991
|
}) => {
|
|
1992
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1981
1993
|
const { data } = await clientApi.get(`/communities/${communityId}/members`, {
|
|
1982
1994
|
params: {
|
|
1983
1995
|
page: pageParam || void 0,
|
|
@@ -1988,15 +2000,14 @@ var GetCommunityMembers = async ({
|
|
|
1988
2000
|
});
|
|
1989
2001
|
return data;
|
|
1990
2002
|
};
|
|
1991
|
-
var useGetCommunityMembers = (communityId, params = {}, options = {}) => {
|
|
1992
|
-
const { token } = useConnectedXM();
|
|
2003
|
+
var useGetCommunityMembers = (communityId = "", params = {}, options = {}) => {
|
|
1993
2004
|
return useConnectedInfiniteQuery(
|
|
1994
2005
|
COMMUNITY_MEMBERS_QUERY_KEY(communityId),
|
|
1995
2006
|
(params2) => GetCommunityMembers({ communityId, ...params2 }),
|
|
1996
2007
|
params,
|
|
1997
2008
|
{
|
|
1998
2009
|
...options,
|
|
1999
|
-
enabled: !!
|
|
2010
|
+
enabled: !!communityId && (options?.enabled ?? true)
|
|
2000
2011
|
}
|
|
2001
2012
|
);
|
|
2002
2013
|
};
|
|
@@ -2018,8 +2029,9 @@ var GetCommunityModerators = async ({
|
|
|
2018
2029
|
orderBy,
|
|
2019
2030
|
search,
|
|
2020
2031
|
communityId,
|
|
2021
|
-
|
|
2032
|
+
clientApiParams
|
|
2022
2033
|
}) => {
|
|
2034
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2023
2035
|
const { data } = await clientApi.get(
|
|
2024
2036
|
`/communities/${communityId}/moderators`,
|
|
2025
2037
|
{
|
|
@@ -2033,15 +2045,14 @@ var GetCommunityModerators = async ({
|
|
|
2033
2045
|
);
|
|
2034
2046
|
return data;
|
|
2035
2047
|
};
|
|
2036
|
-
var useGetCommunityModerators = (communityId, params = {}, options = {}) => {
|
|
2037
|
-
const { token } = useConnectedXM();
|
|
2048
|
+
var useGetCommunityModerators = (communityId = "", params = {}, options = {}) => {
|
|
2038
2049
|
return useConnectedInfiniteQuery(
|
|
2039
2050
|
COMMUNITY_MODERATORS_QUERY_KEY(communityId),
|
|
2040
2051
|
(params2) => GetCommunityModerators({ communityId, ...params2 }),
|
|
2041
2052
|
params,
|
|
2042
2053
|
{
|
|
2043
2054
|
...options,
|
|
2044
|
-
enabled: !!
|
|
2055
|
+
enabled: !!communityId && (options?.enabled ?? true)
|
|
2045
2056
|
}
|
|
2046
2057
|
);
|
|
2047
2058
|
};
|
|
@@ -2062,8 +2073,9 @@ var GetSponsors = async ({
|
|
|
2062
2073
|
pageSize,
|
|
2063
2074
|
orderBy,
|
|
2064
2075
|
search,
|
|
2065
|
-
|
|
2076
|
+
clientApiParams
|
|
2066
2077
|
}) => {
|
|
2078
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2067
2079
|
const { data } = await clientApi.get(`/sponsors`, {
|
|
2068
2080
|
params: {
|
|
2069
2081
|
page: pageParam || void 0,
|
|
@@ -2099,12 +2111,13 @@ var SET_SPONSOR_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) =>
|
|
|
2099
2111
|
};
|
|
2100
2112
|
var GetSponsor = async ({
|
|
2101
2113
|
accountId,
|
|
2102
|
-
|
|
2114
|
+
clientApiParams
|
|
2103
2115
|
}) => {
|
|
2116
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2104
2117
|
const { data } = await clientApi.get(`/sponsors/${accountId}`);
|
|
2105
2118
|
return data;
|
|
2106
2119
|
};
|
|
2107
|
-
var useGetSponsor = (accountId, options = {}) => {
|
|
2120
|
+
var useGetSponsor = (accountId = "", options = {}) => {
|
|
2108
2121
|
return useConnectedSingleQuery_default(
|
|
2109
2122
|
SPONSOR_QUERY_KEY(accountId),
|
|
2110
2123
|
(params) => GetSponsor({ accountId, ...params }),
|
|
@@ -2136,9 +2149,10 @@ var GetCommunitySponsors = async ({
|
|
|
2136
2149
|
search,
|
|
2137
2150
|
communityId,
|
|
2138
2151
|
queryClient,
|
|
2139
|
-
|
|
2152
|
+
clientApiParams,
|
|
2140
2153
|
locale
|
|
2141
2154
|
}) => {
|
|
2155
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2142
2156
|
const { data } = await clientApi.get(`/communities/${communityId}/sponsors`, {
|
|
2143
2157
|
params: {
|
|
2144
2158
|
page: pageParam || void 0,
|
|
@@ -2157,7 +2171,7 @@ var GetCommunitySponsors = async ({
|
|
|
2157
2171
|
}
|
|
2158
2172
|
return data;
|
|
2159
2173
|
};
|
|
2160
|
-
var useGetCommunitySponsors = (communityId, params = {}, options = {}) => {
|
|
2174
|
+
var useGetCommunitySponsors = (communityId = "", params = {}, options = {}) => {
|
|
2161
2175
|
return useConnectedInfiniteQuery(
|
|
2162
2176
|
COMMUNITY_SPONSORS_QUERY_KEY(communityId),
|
|
2163
2177
|
(params2) => GetCommunitySponsors({ communityId, ...params2 }),
|
|
@@ -2186,9 +2200,10 @@ var GetContents = async ({
|
|
|
2186
2200
|
orderBy,
|
|
2187
2201
|
search,
|
|
2188
2202
|
queryClient,
|
|
2189
|
-
|
|
2203
|
+
clientApiParams,
|
|
2190
2204
|
locale
|
|
2191
2205
|
}) => {
|
|
2206
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2192
2207
|
const { data } = await clientApi.get(`/contents`, {
|
|
2193
2208
|
params: {
|
|
2194
2209
|
page: pageParam || void 0,
|
|
@@ -2232,12 +2247,13 @@ var SET_CONTENT_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) =>
|
|
|
2232
2247
|
};
|
|
2233
2248
|
var GetContent = async ({
|
|
2234
2249
|
contentId,
|
|
2235
|
-
|
|
2250
|
+
clientApiParams
|
|
2236
2251
|
}) => {
|
|
2252
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2237
2253
|
const { data } = await clientApi.get(`/contents/${contentId}`);
|
|
2238
2254
|
return data;
|
|
2239
2255
|
};
|
|
2240
|
-
var useGetContent = (contentId, options = {}) => {
|
|
2256
|
+
var useGetContent = (contentId = "", options = {}) => {
|
|
2241
2257
|
return useConnectedSingleQuery_default(
|
|
2242
2258
|
CONTENT_QUERY_KEY(contentId),
|
|
2243
2259
|
(params) => GetContent({ contentId: contentId || "", ...params }),
|
|
@@ -2269,9 +2285,10 @@ var GetContentActivities = async ({
|
|
|
2269
2285
|
search,
|
|
2270
2286
|
contentId,
|
|
2271
2287
|
queryClient,
|
|
2272
|
-
|
|
2288
|
+
clientApiParams,
|
|
2273
2289
|
locale
|
|
2274
2290
|
}) => {
|
|
2291
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2275
2292
|
const { data } = await clientApi.get(`/contents/${contentId}/activities`, {
|
|
2276
2293
|
params: {
|
|
2277
2294
|
page: pageParam || void 0,
|
|
@@ -2290,15 +2307,14 @@ var GetContentActivities = async ({
|
|
|
2290
2307
|
}
|
|
2291
2308
|
return data;
|
|
2292
2309
|
};
|
|
2293
|
-
var useGetContentActivities = (contentId, params = {}, options = {}) => {
|
|
2294
|
-
const { token } = useConnectedXM();
|
|
2310
|
+
var useGetContentActivities = (contentId = "", params = {}, options = {}) => {
|
|
2295
2311
|
return useConnectedInfiniteQuery(
|
|
2296
2312
|
CONTENT_ACTIVITIES_QUERY_KEY(contentId),
|
|
2297
2313
|
(params2) => GetContentActivities({ contentId, ...params2 }),
|
|
2298
2314
|
params,
|
|
2299
2315
|
{
|
|
2300
2316
|
...options,
|
|
2301
|
-
enabled: !!
|
|
2317
|
+
enabled: !!contentId && (options.enabled ?? true)
|
|
2302
2318
|
}
|
|
2303
2319
|
);
|
|
2304
2320
|
};
|
|
@@ -2320,9 +2336,10 @@ var GetContentTypes = async ({
|
|
|
2320
2336
|
orderBy,
|
|
2321
2337
|
search,
|
|
2322
2338
|
queryClient,
|
|
2323
|
-
|
|
2339
|
+
clientApiParams,
|
|
2324
2340
|
locale
|
|
2325
2341
|
}) => {
|
|
2342
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2326
2343
|
const { data } = await clientApi.get(`/contentTypes`, {
|
|
2327
2344
|
params: {
|
|
2328
2345
|
page: pageParam || void 0,
|
|
@@ -2366,12 +2383,13 @@ var SET_CONTENT_TYPE_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"
|
|
|
2366
2383
|
};
|
|
2367
2384
|
var GetContentType = async ({
|
|
2368
2385
|
contentTypeId,
|
|
2369
|
-
|
|
2386
|
+
clientApiParams
|
|
2370
2387
|
}) => {
|
|
2388
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2371
2389
|
const { data } = await clientApi.get(`/contentTypes/${contentTypeId}`);
|
|
2372
2390
|
return data;
|
|
2373
2391
|
};
|
|
2374
|
-
var useGetContentType = (contentTypeId, options = {}) => {
|
|
2392
|
+
var useGetContentType = (contentTypeId = "", options = {}) => {
|
|
2375
2393
|
return useConnectedSingleQuery_default(
|
|
2376
2394
|
CONTENT_TYPE_QUERY_KEY(contentTypeId),
|
|
2377
2395
|
(params) => GetContentType({ contentTypeId: contentTypeId || "", ...params }),
|
|
@@ -2400,9 +2418,10 @@ var GetContentTypeContents = async ({
|
|
|
2400
2418
|
search,
|
|
2401
2419
|
contentTypeId,
|
|
2402
2420
|
queryClient,
|
|
2403
|
-
|
|
2421
|
+
clientApiParams,
|
|
2404
2422
|
locale
|
|
2405
2423
|
}) => {
|
|
2424
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2406
2425
|
const { data } = await clientApi.get(
|
|
2407
2426
|
`/contentTypes/${contentTypeId}/contents`,
|
|
2408
2427
|
{
|
|
@@ -2424,7 +2443,7 @@ var GetContentTypeContents = async ({
|
|
|
2424
2443
|
}
|
|
2425
2444
|
return data;
|
|
2426
2445
|
};
|
|
2427
|
-
var useGetContentTypeContents = (contentTypeId, params = {}, options = {}) => {
|
|
2446
|
+
var useGetContentTypeContents = (contentTypeId = "", params = {}, options = {}) => {
|
|
2428
2447
|
return useConnectedInfiniteQuery(
|
|
2429
2448
|
CONTENT_TYPE_CONTENTS_QUERY_KEY(contentTypeId),
|
|
2430
2449
|
(params2) => GetContentTypeContents({ ...params2, contentTypeId: contentTypeId || "" }),
|
|
@@ -2457,9 +2476,10 @@ var GetEventActivities = async ({
|
|
|
2457
2476
|
orderBy,
|
|
2458
2477
|
search,
|
|
2459
2478
|
queryClient,
|
|
2460
|
-
|
|
2479
|
+
clientApiParams,
|
|
2461
2480
|
locale
|
|
2462
2481
|
}) => {
|
|
2482
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2463
2483
|
const { data } = await clientApi.get(`/events/${eventId}/activities`, {
|
|
2464
2484
|
params: {
|
|
2465
2485
|
page: pageParam || void 0,
|
|
@@ -2478,15 +2498,14 @@ var GetEventActivities = async ({
|
|
|
2478
2498
|
}
|
|
2479
2499
|
return data;
|
|
2480
2500
|
};
|
|
2481
|
-
var useGetEventActivities = (eventId, params = {}, options = {}) => {
|
|
2482
|
-
const { token } = useConnectedXM();
|
|
2501
|
+
var useGetEventActivities = (eventId = "", params = {}, options = {}) => {
|
|
2483
2502
|
return useConnectedInfiniteQuery(
|
|
2484
2503
|
EVENT_ACTIVITIES_QUERY_KEY(eventId),
|
|
2485
2504
|
(params2) => GetEventActivities({ eventId, ...params2 }),
|
|
2486
2505
|
params,
|
|
2487
2506
|
{
|
|
2488
2507
|
...options,
|
|
2489
|
-
enabled: !!
|
|
2508
|
+
enabled: !!eventId
|
|
2490
2509
|
}
|
|
2491
2510
|
);
|
|
2492
2511
|
};
|
|
@@ -2512,9 +2531,10 @@ var GetEventFaqSections = async ({
|
|
|
2512
2531
|
orderBy,
|
|
2513
2532
|
search,
|
|
2514
2533
|
queryClient,
|
|
2515
|
-
|
|
2534
|
+
clientApiParams,
|
|
2516
2535
|
locale
|
|
2517
2536
|
}) => {
|
|
2537
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2518
2538
|
const { data } = await clientApi.get(`/events/${eventId}/faqs`, {
|
|
2519
2539
|
params: {
|
|
2520
2540
|
page: pageParam || void 0,
|
|
@@ -2533,7 +2553,7 @@ var GetEventFaqSections = async ({
|
|
|
2533
2553
|
}
|
|
2534
2554
|
return data;
|
|
2535
2555
|
};
|
|
2536
|
-
var useGetEventFaqSections = (eventId, params = {}, options = {}) => {
|
|
2556
|
+
var useGetEventFaqSections = (eventId = "", params = {}, options = {}) => {
|
|
2537
2557
|
return useConnectedInfiniteQuery(
|
|
2538
2558
|
EVENT_FAQ_SECTIONS_QUERY_KEY(eventId),
|
|
2539
2559
|
(params2) => GetEventFaqSections({ eventId, ...params2 }),
|
|
@@ -2559,12 +2579,13 @@ var SET_EVENT_FAQ_SECTION_QUERY_DATA = (client, keyParams, response, baseKeys =
|
|
|
2559
2579
|
var GetEventFAQSection = async ({
|
|
2560
2580
|
eventId,
|
|
2561
2581
|
sectionId,
|
|
2562
|
-
|
|
2582
|
+
clientApiParams
|
|
2563
2583
|
}) => {
|
|
2584
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2564
2585
|
const { data } = await clientApi.get(`/events/${eventId}/faqs/${sectionId}`);
|
|
2565
2586
|
return data;
|
|
2566
2587
|
};
|
|
2567
|
-
var useGetEventFAQSection = (eventId, sectionId, options = {}) => {
|
|
2588
|
+
var useGetEventFAQSection = (eventId = "", sectionId = "", options = {}) => {
|
|
2568
2589
|
return useConnectedSingleQuery(
|
|
2569
2590
|
EVENT_FAQ_SECTION_QUERY_KEY(eventId, sectionId),
|
|
2570
2591
|
(params) => GetEventFAQSection({ eventId, sectionId, ...params }),
|
|
@@ -2597,9 +2618,10 @@ var GetEventFaqs = async ({
|
|
|
2597
2618
|
orderBy,
|
|
2598
2619
|
search,
|
|
2599
2620
|
queryClient,
|
|
2600
|
-
|
|
2621
|
+
clientApiParams,
|
|
2601
2622
|
locale
|
|
2602
2623
|
}) => {
|
|
2624
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2603
2625
|
const { data } = await clientApi.get(
|
|
2604
2626
|
`/events/${eventId}/faqs/${sectionId}/questions`,
|
|
2605
2627
|
{
|
|
@@ -2621,7 +2643,7 @@ var GetEventFaqs = async ({
|
|
|
2621
2643
|
}
|
|
2622
2644
|
return data;
|
|
2623
2645
|
};
|
|
2624
|
-
var useGetEventFaqs = (eventId, sectionId, params = {}, options = {}) => {
|
|
2646
|
+
var useGetEventFaqs = (eventId = "", sectionId = "", params = {}, options = {}) => {
|
|
2625
2647
|
return useConnectedInfiniteQuery(
|
|
2626
2648
|
EVENT_FAQ_SECTION_QUESTIONS_QUERY_KEY(eventId, sectionId),
|
|
2627
2649
|
(params2) => GetEventFaqs({ eventId, sectionId, ...params2 }),
|
|
@@ -2651,14 +2673,15 @@ var GetEventFAQSectionQuestion = async ({
|
|
|
2651
2673
|
eventId,
|
|
2652
2674
|
sectionId,
|
|
2653
2675
|
questionId,
|
|
2654
|
-
|
|
2676
|
+
clientApiParams
|
|
2655
2677
|
}) => {
|
|
2678
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2656
2679
|
const { data } = await clientApi.get(
|
|
2657
2680
|
`/events/${eventId}/faqs/${sectionId}/questions/${questionId}`
|
|
2658
2681
|
);
|
|
2659
2682
|
return data;
|
|
2660
2683
|
};
|
|
2661
|
-
var useGetEventFAQSectionQuestion = (eventId, sectionId, questionId, options = {}) => {
|
|
2684
|
+
var useGetEventFAQSectionQuestion = (eventId = "", sectionId = "", questionId = "", options = {}) => {
|
|
2662
2685
|
return useConnectedSingleQuery(
|
|
2663
2686
|
EVENT_FAQ_SECTION_QUESTION_QUERY_KEY(eventId, sectionId, questionId),
|
|
2664
2687
|
(params) => GetEventFAQSectionQuestion({ eventId, sectionId, questionId, ...params }),
|
|
@@ -2690,9 +2713,10 @@ var GetEventPages = async ({
|
|
|
2690
2713
|
orderBy,
|
|
2691
2714
|
search,
|
|
2692
2715
|
queryClient,
|
|
2693
|
-
|
|
2716
|
+
clientApiParams,
|
|
2694
2717
|
locale
|
|
2695
2718
|
}) => {
|
|
2719
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2696
2720
|
const { data } = await clientApi.get(`/events/${eventId}/pages`, {
|
|
2697
2721
|
params: {
|
|
2698
2722
|
page: pageParam || void 0,
|
|
@@ -2711,7 +2735,7 @@ var GetEventPages = async ({
|
|
|
2711
2735
|
}
|
|
2712
2736
|
return data;
|
|
2713
2737
|
};
|
|
2714
|
-
var useGetEventPages = (eventId, params = {}, options = {}) => {
|
|
2738
|
+
var useGetEventPages = (eventId = "", params = {}, options = {}) => {
|
|
2715
2739
|
return useConnectedInfiniteQuery(
|
|
2716
2740
|
EVENT_PAGES_QUERY_KEY(eventId),
|
|
2717
2741
|
(params2) => GetEventPages({ eventId, ...params2 }),
|
|
@@ -2737,12 +2761,13 @@ var SET_EVENT_PAGE_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"])
|
|
|
2737
2761
|
var GetEventPage = async ({
|
|
2738
2762
|
eventId,
|
|
2739
2763
|
pageId,
|
|
2740
|
-
|
|
2764
|
+
clientApiParams
|
|
2741
2765
|
}) => {
|
|
2766
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2742
2767
|
const { data } = await clientApi.get(`/events/${eventId}/pages/${pageId}`);
|
|
2743
2768
|
return data;
|
|
2744
2769
|
};
|
|
2745
|
-
var useGetEventPage = (eventId, pageId, options = {}) => {
|
|
2770
|
+
var useGetEventPage = (eventId = "", pageId, options = {}) => {
|
|
2746
2771
|
return useConnectedSingleQuery(
|
|
2747
2772
|
EVENT_PAGE_QUERY_KEY(eventId, pageId),
|
|
2748
2773
|
(params) => GetEventPage({ eventId, pageId, ...params }),
|
|
@@ -2762,8 +2787,9 @@ var GetEventQuestionSearchValues = async ({
|
|
|
2762
2787
|
pageSize,
|
|
2763
2788
|
orderBy,
|
|
2764
2789
|
search,
|
|
2765
|
-
|
|
2790
|
+
clientApiParams
|
|
2766
2791
|
}) => {
|
|
2792
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2767
2793
|
const { data } = await clientApi.get(
|
|
2768
2794
|
`/events/${eventId}/questions/${questionId}/values`,
|
|
2769
2795
|
{
|
|
@@ -2777,7 +2803,7 @@ var GetEventQuestionSearchValues = async ({
|
|
|
2777
2803
|
);
|
|
2778
2804
|
return data;
|
|
2779
2805
|
};
|
|
2780
|
-
var useGetEventQuestionSearchValues = (eventId, questionId, params = {}, options = {}) => {
|
|
2806
|
+
var useGetEventQuestionSearchValues = (eventId = "", questionId = "", params = {}, options = {}) => {
|
|
2781
2807
|
return useConnectedInfiniteQuery(
|
|
2782
2808
|
EVENT_QUESTION_VALUES_QUERY_KEY(eventId, questionId),
|
|
2783
2809
|
(params2) => GetEventQuestionSearchValues({
|
|
@@ -2814,9 +2840,10 @@ var GetEventRegistrants = async ({
|
|
|
2814
2840
|
orderBy,
|
|
2815
2841
|
search,
|
|
2816
2842
|
queryClient,
|
|
2817
|
-
|
|
2843
|
+
clientApiParams,
|
|
2818
2844
|
locale
|
|
2819
2845
|
}) => {
|
|
2846
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2820
2847
|
const { data } = await clientApi.get(`/events/${eventId}/registrants`, {
|
|
2821
2848
|
params: {
|
|
2822
2849
|
page: pageParam || void 0,
|
|
@@ -2835,15 +2862,14 @@ var GetEventRegistrants = async ({
|
|
|
2835
2862
|
}
|
|
2836
2863
|
return data;
|
|
2837
2864
|
};
|
|
2838
|
-
var useGetEventRegistrants = (eventId, params = {}, options = {}) => {
|
|
2839
|
-
const { token } = useConnectedXM();
|
|
2865
|
+
var useGetEventRegistrants = (eventId = "", params = {}, options = {}) => {
|
|
2840
2866
|
return useConnectedInfiniteQuery(
|
|
2841
2867
|
EVENT_REGISTRANTS_QUERY_KEY(eventId),
|
|
2842
2868
|
(params2) => GetEventRegistrants({ eventId, ...params2 }),
|
|
2843
2869
|
params,
|
|
2844
2870
|
{
|
|
2845
2871
|
...options,
|
|
2846
|
-
enabled: !!
|
|
2872
|
+
enabled: !!eventId && (options?.enabled ?? true)
|
|
2847
2873
|
}
|
|
2848
2874
|
);
|
|
2849
2875
|
};
|
|
@@ -2869,9 +2895,10 @@ var GetEventSessions = async ({
|
|
|
2869
2895
|
orderBy,
|
|
2870
2896
|
search,
|
|
2871
2897
|
queryClient,
|
|
2872
|
-
|
|
2898
|
+
clientApiParams,
|
|
2873
2899
|
locale
|
|
2874
2900
|
}) => {
|
|
2901
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2875
2902
|
const { data } = await clientApi.get(`/events/${eventId}/sessions`, {
|
|
2876
2903
|
params: {
|
|
2877
2904
|
page: pageParam || void 0,
|
|
@@ -2890,7 +2917,7 @@ var GetEventSessions = async ({
|
|
|
2890
2917
|
}
|
|
2891
2918
|
return data;
|
|
2892
2919
|
};
|
|
2893
|
-
var useGetEventSessions = (eventId, params = {}, options = {}) => {
|
|
2920
|
+
var useGetEventSessions = (eventId = "", params = {}, options = {}) => {
|
|
2894
2921
|
return useConnectedInfiniteQuery(
|
|
2895
2922
|
EVENT_SESSIONS_QUERY_KEY(eventId),
|
|
2896
2923
|
(params2) => GetEventSessions({ eventId, ...params2 }),
|
|
@@ -2916,14 +2943,15 @@ var SET_EVENT_SESSION_QUERY_DATA = (client, keyParams, response, baseKeys = ["en
|
|
|
2916
2943
|
var GetEventSession = async ({
|
|
2917
2944
|
eventId,
|
|
2918
2945
|
sessionId,
|
|
2919
|
-
|
|
2946
|
+
clientApiParams
|
|
2920
2947
|
}) => {
|
|
2948
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2921
2949
|
const { data } = await clientApi.get(
|
|
2922
2950
|
`/events/${eventId}/sessions/${sessionId}`
|
|
2923
2951
|
);
|
|
2924
2952
|
return data;
|
|
2925
2953
|
};
|
|
2926
|
-
var useGetEventSession = (eventId, sessionId, options = {}) => {
|
|
2954
|
+
var useGetEventSession = (eventId = "", sessionId = "", options = {}) => {
|
|
2927
2955
|
return useConnectedSingleQuery(
|
|
2928
2956
|
EVENT_SESSION_QUERY_KEY(eventId, sessionId),
|
|
2929
2957
|
(params) => GetEventSession({ eventId, sessionId, ...params }),
|
|
@@ -2955,9 +2983,10 @@ var GetEventSpeakers = async ({
|
|
|
2955
2983
|
orderBy,
|
|
2956
2984
|
search,
|
|
2957
2985
|
queryClient,
|
|
2958
|
-
|
|
2986
|
+
clientApiParams,
|
|
2959
2987
|
locale
|
|
2960
2988
|
}) => {
|
|
2989
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2961
2990
|
const { data } = await clientApi.get(`/events/${eventId}/speakers`, {
|
|
2962
2991
|
params: {
|
|
2963
2992
|
page: pageParam || void 0,
|
|
@@ -2976,7 +3005,7 @@ var GetEventSpeakers = async ({
|
|
|
2976
3005
|
}
|
|
2977
3006
|
return data;
|
|
2978
3007
|
};
|
|
2979
|
-
var useGetEventSpeakers = (eventId, params = {}, options = {}) => {
|
|
3008
|
+
var useGetEventSpeakers = (eventId = "", params = {}, options = {}) => {
|
|
2980
3009
|
return useConnectedInfiniteQuery(
|
|
2981
3010
|
EVENT_SPEAKERS_QUERY_KEY(eventId),
|
|
2982
3011
|
(params2) => GetEventSpeakers({ eventId, ...params2 }),
|
|
@@ -3002,14 +3031,15 @@ var SET_EVENT_SPEAKER_QUERY_DATA = (client, keyParams, response, baseKeys = ["en
|
|
|
3002
3031
|
var GetEventSpeaker = async ({
|
|
3003
3032
|
eventId,
|
|
3004
3033
|
speakerId,
|
|
3005
|
-
|
|
3034
|
+
clientApiParams
|
|
3006
3035
|
}) => {
|
|
3036
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3007
3037
|
const { data } = await clientApi.get(
|
|
3008
3038
|
`/events/${eventId}/speakers/${speakerId}`
|
|
3009
3039
|
);
|
|
3010
3040
|
return data;
|
|
3011
3041
|
};
|
|
3012
|
-
var useGetEventSpeaker = (eventId, speakerId, options = {}) => {
|
|
3042
|
+
var useGetEventSpeaker = (eventId = "", speakerId = "", options = {}) => {
|
|
3013
3043
|
return useConnectedSingleQuery(
|
|
3014
3044
|
EVENT_SPEAKER_QUERY_KEY(eventId, speakerId),
|
|
3015
3045
|
(params) => GetEventSpeaker({ eventId, speakerId, ...params }),
|
|
@@ -3040,8 +3070,9 @@ var GetEventTickets = async ({
|
|
|
3040
3070
|
pageSize,
|
|
3041
3071
|
orderBy,
|
|
3042
3072
|
search,
|
|
3043
|
-
|
|
3073
|
+
clientApiParams
|
|
3044
3074
|
}) => {
|
|
3075
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3045
3076
|
const { data } = await clientApi.get(`/events/${eventId}/tickets`, {
|
|
3046
3077
|
params: {
|
|
3047
3078
|
page: pageParam || void 0,
|
|
@@ -3052,7 +3083,7 @@ var GetEventTickets = async ({
|
|
|
3052
3083
|
});
|
|
3053
3084
|
return data;
|
|
3054
3085
|
};
|
|
3055
|
-
var useGetEventTickets = (eventId, params = {}, options = {}) => {
|
|
3086
|
+
var useGetEventTickets = (eventId = "", params = {}, options = {}) => {
|
|
3056
3087
|
return useConnectedInfiniteQuery(
|
|
3057
3088
|
EVENT_TICKETS_QUERY_KEY(eventId),
|
|
3058
3089
|
(params2) => GetEventTickets({ eventId, ...params2 }),
|
|
@@ -3085,9 +3116,10 @@ var GetEventSponsors = async ({
|
|
|
3085
3116
|
orderBy,
|
|
3086
3117
|
search,
|
|
3087
3118
|
queryClient,
|
|
3088
|
-
|
|
3119
|
+
clientApiParams,
|
|
3089
3120
|
locale
|
|
3090
3121
|
}) => {
|
|
3122
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3091
3123
|
const { data } = await clientApi.get(`/events/${eventId}/sponsors`, {
|
|
3092
3124
|
params: {
|
|
3093
3125
|
page: pageParam || void 0,
|
|
@@ -3106,7 +3138,7 @@ var GetEventSponsors = async ({
|
|
|
3106
3138
|
}
|
|
3107
3139
|
return data;
|
|
3108
3140
|
};
|
|
3109
|
-
var useGetEventSponsors = (eventId, params = {}, options = {}) => {
|
|
3141
|
+
var useGetEventSponsors = (eventId = "", params = {}, options = {}) => {
|
|
3110
3142
|
return useConnectedInfiniteQuery(
|
|
3111
3143
|
EVENT_TICKETS_QUERY_KEY(eventId),
|
|
3112
3144
|
(params2) => GetEventSponsors({ eventId, ...params2 }),
|
|
@@ -3137,9 +3169,10 @@ var GetFeaturedEvents = async ({
|
|
|
3137
3169
|
pageSize,
|
|
3138
3170
|
orderBy,
|
|
3139
3171
|
queryClient,
|
|
3140
|
-
|
|
3172
|
+
clientApiParams,
|
|
3141
3173
|
locale
|
|
3142
3174
|
}) => {
|
|
3175
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3143
3176
|
const { data } = await clientApi.get(`/events/featured`, {
|
|
3144
3177
|
params: {
|
|
3145
3178
|
page: pageParam || void 0,
|
|
@@ -3169,8 +3202,9 @@ var useGetFeaturedEvents = (params = {}, options = {}) => {
|
|
|
3169
3202
|
// src/queries/organization/useGetOrganization.ts
|
|
3170
3203
|
var ORGANIZATION_QUERY_KEY = () => ["ORGANIZATION"];
|
|
3171
3204
|
var GetOrganization = async ({
|
|
3172
|
-
|
|
3205
|
+
clientApiParams
|
|
3173
3206
|
}) => {
|
|
3207
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3174
3208
|
const { data } = await clientApi.get(`/organization`);
|
|
3175
3209
|
return data;
|
|
3176
3210
|
};
|
|
@@ -3188,8 +3222,9 @@ var ORGANIZATION_EXPLORE_QUERY_KEY = () => [
|
|
|
3188
3222
|
"ORGANIZATION"
|
|
3189
3223
|
];
|
|
3190
3224
|
var GetOrganizationExplore = async ({
|
|
3191
|
-
|
|
3225
|
+
clientApiParams
|
|
3192
3226
|
}) => {
|
|
3227
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3193
3228
|
const { data } = await clientApi.get(`/organization/explore`);
|
|
3194
3229
|
return data;
|
|
3195
3230
|
};
|
|
@@ -3218,8 +3253,9 @@ var SET_ORGANIZATION_PAGE_QUERY_DATA = (queryClient, keyParams, response, baseKe
|
|
|
3218
3253
|
};
|
|
3219
3254
|
var GetOrganizationPage = async ({
|
|
3220
3255
|
type,
|
|
3221
|
-
|
|
3256
|
+
clientApiParams
|
|
3222
3257
|
}) => {
|
|
3258
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3223
3259
|
const { data } = await clientApi.get(`/organization/pages/${type}`);
|
|
3224
3260
|
return data;
|
|
3225
3261
|
};
|
|
@@ -3240,8 +3276,9 @@ var ORGANIZATION_SUBSCRIPTIONS_QUERY_KEY = () => [
|
|
|
3240
3276
|
"SUBSCRIPTIONS"
|
|
3241
3277
|
];
|
|
3242
3278
|
var GetOrganizationSubscriptionProducts = async ({
|
|
3243
|
-
|
|
3279
|
+
clientApiParams
|
|
3244
3280
|
}) => {
|
|
3281
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3245
3282
|
const { data } = await clientApi.get(`/organization/subscriptions`);
|
|
3246
3283
|
return data;
|
|
3247
3284
|
};
|
|
@@ -3260,8 +3297,9 @@ var ORGANIZATION_PAYMENT_INTEGRATION_QUERY_KEY = () => [
|
|
|
3260
3297
|
"PAYMENT_INTEGRATION"
|
|
3261
3298
|
];
|
|
3262
3299
|
var GetOrganizationPaymentIntegration = async ({
|
|
3263
|
-
|
|
3300
|
+
clientApiParams
|
|
3264
3301
|
}) => {
|
|
3302
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3265
3303
|
const { data } = await clientApi.get(`/organization/payment-integration`);
|
|
3266
3304
|
return data;
|
|
3267
3305
|
};
|
|
@@ -3290,9 +3328,10 @@ var GetSelfChatChannels = async ({
|
|
|
3290
3328
|
orderBy,
|
|
3291
3329
|
search,
|
|
3292
3330
|
queryClient,
|
|
3293
|
-
|
|
3331
|
+
clientApiParams,
|
|
3294
3332
|
locale
|
|
3295
3333
|
}) => {
|
|
3334
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3296
3335
|
const { data } = await clientApi.get(`/self/chat/channels`, {
|
|
3297
3336
|
params: {
|
|
3298
3337
|
page: pageParam || void 0,
|
|
@@ -3318,14 +3357,14 @@ var GetSelfChatChannels = async ({
|
|
|
3318
3357
|
return data;
|
|
3319
3358
|
};
|
|
3320
3359
|
var useGetSelfChatChannels = (params = {}, options = {}) => {
|
|
3321
|
-
const {
|
|
3360
|
+
const { authenticated } = useConnectedXM();
|
|
3322
3361
|
return useConnectedInfiniteQuery(
|
|
3323
3362
|
SELF_CHAT_CHANNELS_QUERY_KEY(),
|
|
3324
3363
|
(params2) => GetSelfChatChannels(params2),
|
|
3325
3364
|
params,
|
|
3326
3365
|
{
|
|
3327
3366
|
...options,
|
|
3328
|
-
enabled: !!
|
|
3367
|
+
enabled: !!authenticated && (options.enabled ?? true)
|
|
3329
3368
|
}
|
|
3330
3369
|
);
|
|
3331
3370
|
};
|
|
@@ -3346,13 +3385,14 @@ var SET_SELF_CHAT_CHANNEL_QUERY_DATA = (client, keyParams, response, baseKeys =
|
|
|
3346
3385
|
};
|
|
3347
3386
|
var GetSelfChatChannel = async ({
|
|
3348
3387
|
channelId,
|
|
3349
|
-
|
|
3388
|
+
clientApiParams
|
|
3350
3389
|
}) => {
|
|
3390
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3351
3391
|
const { data } = await clientApi.get(`/self/chat/channels/${channelId}`);
|
|
3352
3392
|
return data;
|
|
3353
3393
|
};
|
|
3354
3394
|
var useGetSelfChatChannel = (channelId, options = {}) => {
|
|
3355
|
-
const {
|
|
3395
|
+
const { authenticated } = useConnectedXM();
|
|
3356
3396
|
return useConnectedSingleQuery(
|
|
3357
3397
|
SELF_CHAT_CHANNEL_QUERY_KEY(channelId),
|
|
3358
3398
|
(params) => GetSelfChatChannel({
|
|
@@ -3362,7 +3402,7 @@ var useGetSelfChatChannel = (channelId, options = {}) => {
|
|
|
3362
3402
|
{
|
|
3363
3403
|
staleTime: Infinity,
|
|
3364
3404
|
...options,
|
|
3365
|
-
enabled: !!
|
|
3405
|
+
enabled: !!authenticated && !!channelId && (options?.enabled ?? true)
|
|
3366
3406
|
}
|
|
3367
3407
|
);
|
|
3368
3408
|
};
|
|
@@ -3384,8 +3424,9 @@ var GetSelfChatChannelMembers = async ({
|
|
|
3384
3424
|
pageSize,
|
|
3385
3425
|
orderBy,
|
|
3386
3426
|
search,
|
|
3387
|
-
|
|
3427
|
+
clientApiParams
|
|
3388
3428
|
}) => {
|
|
3429
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3389
3430
|
const { data } = await clientApi.get(
|
|
3390
3431
|
`/self/chat/channels/${channelId}/members`,
|
|
3391
3432
|
{
|
|
@@ -3400,14 +3441,14 @@ var GetSelfChatChannelMembers = async ({
|
|
|
3400
3441
|
return data;
|
|
3401
3442
|
};
|
|
3402
3443
|
var useGetSelfChatChannelMembers = (channelId, params = {}, options = {}) => {
|
|
3403
|
-
const {
|
|
3444
|
+
const { authenticated } = useConnectedXM();
|
|
3404
3445
|
return useConnectedInfiniteQuery(
|
|
3405
3446
|
SELF_CHAT_CHANNEL_MEMBERS_QUERY_KEY(channelId),
|
|
3406
3447
|
(params2) => GetSelfChatChannelMembers({ ...params2, channelId }),
|
|
3407
3448
|
params,
|
|
3408
3449
|
{
|
|
3409
3450
|
...options,
|
|
3410
|
-
enabled: !!
|
|
3451
|
+
enabled: !!authenticated && !!channelId && (options?.enabled ?? true)
|
|
3411
3452
|
}
|
|
3412
3453
|
);
|
|
3413
3454
|
};
|
|
@@ -3430,8 +3471,9 @@ var GetSelfChatChannelMessages = async ({
|
|
|
3430
3471
|
orderBy,
|
|
3431
3472
|
search,
|
|
3432
3473
|
queryClient,
|
|
3433
|
-
|
|
3474
|
+
clientApiParams
|
|
3434
3475
|
}) => {
|
|
3476
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3435
3477
|
const { data } = await clientApi.get(
|
|
3436
3478
|
`/self/chat/channels/${channelId}/messages`,
|
|
3437
3479
|
{
|
|
@@ -3455,23 +3497,23 @@ var GetSelfChatChannelMessages = async ({
|
|
|
3455
3497
|
return data;
|
|
3456
3498
|
};
|
|
3457
3499
|
var useGetSelfChatChannelMessages = (channelId, params = {}, options = {}) => {
|
|
3458
|
-
const {
|
|
3500
|
+
const { authenticated } = useConnectedXM();
|
|
3459
3501
|
return useConnectedInfiniteQuery(
|
|
3460
3502
|
SELF_CHAT_CHANNEL_MESSAGES_QUERY_KEY(channelId),
|
|
3461
3503
|
(params2) => GetSelfChatChannelMessages({ ...params2, channelId }),
|
|
3462
3504
|
params,
|
|
3463
3505
|
{
|
|
3464
3506
|
...options,
|
|
3465
|
-
enabled: !!
|
|
3507
|
+
enabled: !!authenticated && !!channelId && (options?.enabled ?? true)
|
|
3466
3508
|
}
|
|
3467
3509
|
);
|
|
3468
3510
|
};
|
|
3469
3511
|
|
|
3470
3512
|
// src/queries/self/useGetSelf.ts
|
|
3471
|
-
var SELF_QUERY_KEY = (
|
|
3513
|
+
var SELF_QUERY_KEY = (ignoreExecuteAs) => {
|
|
3472
3514
|
const keys = ["SELF"];
|
|
3473
|
-
if (
|
|
3474
|
-
keys.push("
|
|
3515
|
+
if (ignoreExecuteAs)
|
|
3516
|
+
keys.push("IGNORE_EXECUTEAS");
|
|
3475
3517
|
return keys;
|
|
3476
3518
|
};
|
|
3477
3519
|
var SET_SELF_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
@@ -3481,21 +3523,24 @@ var SET_SELF_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
|
3481
3523
|
);
|
|
3482
3524
|
};
|
|
3483
3525
|
var GetSelf = async ({
|
|
3484
|
-
|
|
3485
|
-
|
|
3526
|
+
ignoreExecuteAs,
|
|
3527
|
+
clientApiParams
|
|
3486
3528
|
}) => {
|
|
3487
|
-
|
|
3488
|
-
|
|
3529
|
+
const clientApi = await GetClientAPI({
|
|
3530
|
+
...clientApiParams,
|
|
3531
|
+
getExecuteAs: ignoreExecuteAs ? void 0 : clientApiParams.getExecuteAs
|
|
3532
|
+
});
|
|
3489
3533
|
const { data } = await clientApi.get(`/self`);
|
|
3490
3534
|
return data;
|
|
3491
3535
|
};
|
|
3492
|
-
var useGetSelf = (
|
|
3493
|
-
const {
|
|
3536
|
+
var useGetSelf = (ignoreExecuteAs, options = {}) => {
|
|
3537
|
+
const { authenticated } = useConnectedXM();
|
|
3494
3538
|
return useConnectedSingleQuery(
|
|
3495
|
-
SELF_QUERY_KEY(
|
|
3496
|
-
(params) => GetSelf({
|
|
3539
|
+
SELF_QUERY_KEY(ignoreExecuteAs),
|
|
3540
|
+
(params) => GetSelf({ ignoreExecuteAs, ...params }),
|
|
3497
3541
|
{
|
|
3498
|
-
|
|
3542
|
+
...options,
|
|
3543
|
+
enabled: authenticated && (options.enabled ?? true)
|
|
3499
3544
|
}
|
|
3500
3545
|
);
|
|
3501
3546
|
};
|
|
@@ -3516,8 +3561,9 @@ var GetSelfEventRegistration = async ({
|
|
|
3516
3561
|
ticket,
|
|
3517
3562
|
quantity,
|
|
3518
3563
|
coupon,
|
|
3519
|
-
|
|
3564
|
+
clientApiParams
|
|
3520
3565
|
}) => {
|
|
3566
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3521
3567
|
const { data } = await clientApi.get(`/self/events/${eventId}/registration`, {
|
|
3522
3568
|
params: {
|
|
3523
3569
|
ticket: ticket || void 0,
|
|
@@ -3528,7 +3574,7 @@ var GetSelfEventRegistration = async ({
|
|
|
3528
3574
|
return data;
|
|
3529
3575
|
};
|
|
3530
3576
|
var useGetSelfEventRegistration = (eventId, ticket, quantity, coupon, options = {}) => {
|
|
3531
|
-
const {
|
|
3577
|
+
const { authenticated } = useConnectedXM();
|
|
3532
3578
|
return useConnectedSingleQuery_default(
|
|
3533
3579
|
SELF_EVENT_REGISTRATION_QUERY_KEY(eventId),
|
|
3534
3580
|
(params) => GetSelfEventRegistration({
|
|
@@ -3543,7 +3589,7 @@ var useGetSelfEventRegistration = (eventId, ticket, quantity, coupon, options =
|
|
|
3543
3589
|
staleTime: Infinity,
|
|
3544
3590
|
refetchOnMount: false,
|
|
3545
3591
|
...options,
|
|
3546
|
-
enabled: !!
|
|
3592
|
+
enabled: !!authenticated && !!eventId && (options?.enabled ?? true)
|
|
3547
3593
|
}
|
|
3548
3594
|
);
|
|
3549
3595
|
};
|
|
@@ -3557,15 +3603,16 @@ var SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY = (eventId, registrationId) => [
|
|
|
3557
3603
|
var GetSelfEventRegistrationCheckout = async ({
|
|
3558
3604
|
eventId,
|
|
3559
3605
|
registrationId,
|
|
3560
|
-
|
|
3606
|
+
clientApiParams
|
|
3561
3607
|
}) => {
|
|
3608
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3562
3609
|
const { data } = await clientApi.get(
|
|
3563
3610
|
`/self/events/${eventId}/registration/${registrationId}/draft/checkout`
|
|
3564
3611
|
);
|
|
3565
3612
|
return data;
|
|
3566
3613
|
};
|
|
3567
3614
|
var useGetSelfEventRegistrationCheckout = (eventId, registrationId = "", options = {}) => {
|
|
3568
|
-
const {
|
|
3615
|
+
const { authenticated } = useConnectedXM();
|
|
3569
3616
|
return useConnectedSingleQuery_default(
|
|
3570
3617
|
SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY(eventId, registrationId),
|
|
3571
3618
|
(params) => GetSelfEventRegistrationCheckout({ eventId, registrationId, ...params }),
|
|
@@ -3574,7 +3621,7 @@ var useGetSelfEventRegistrationCheckout = (eventId, registrationId = "", options
|
|
|
3574
3621
|
retry: false,
|
|
3575
3622
|
retryOnMount: false,
|
|
3576
3623
|
...options,
|
|
3577
|
-
enabled: !!
|
|
3624
|
+
enabled: !!authenticated && !!eventId && !!registrationId && (options.enabled ?? true)
|
|
3578
3625
|
}
|
|
3579
3626
|
);
|
|
3580
3627
|
};
|
|
@@ -3594,9 +3641,10 @@ var GetSelfSubscriptions = async ({
|
|
|
3594
3641
|
orderBy,
|
|
3595
3642
|
search,
|
|
3596
3643
|
queryClient,
|
|
3597
|
-
|
|
3644
|
+
clientApiParams,
|
|
3598
3645
|
locale
|
|
3599
3646
|
}) => {
|
|
3647
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3600
3648
|
const { data } = await clientApi.get(`/self/subscriptions`, {
|
|
3601
3649
|
params: {
|
|
3602
3650
|
page: pageParam || void 0,
|
|
@@ -3617,14 +3665,14 @@ var GetSelfSubscriptions = async ({
|
|
|
3617
3665
|
return data;
|
|
3618
3666
|
};
|
|
3619
3667
|
var useGetSelfSubscriptions = (status, params = {}, options = {}) => {
|
|
3620
|
-
const {
|
|
3668
|
+
const { authenticated } = useConnectedXM();
|
|
3621
3669
|
return useConnectedInfiniteQuery(
|
|
3622
3670
|
SELF_SUBSCRIPTIONS_QUERY_KEY(status),
|
|
3623
3671
|
(params2) => GetSelfSubscriptions({ status, ...params2 }),
|
|
3624
3672
|
params,
|
|
3625
3673
|
{
|
|
3626
3674
|
...options,
|
|
3627
|
-
enabled: !!
|
|
3675
|
+
enabled: !!authenticated && (options.enabled ?? true)
|
|
3628
3676
|
}
|
|
3629
3677
|
);
|
|
3630
3678
|
};
|
|
@@ -3633,19 +3681,20 @@ var useGetSelfSubscriptions = (status, params = {}, options = {}) => {
|
|
|
3633
3681
|
var SELF_SUBSCRIPTION_QUERY_KEY = (subscriptionId) => [...SELF_SUBSCRIPTIONS_QUERY_KEY(), subscriptionId];
|
|
3634
3682
|
var GetSelfSubcription = async ({
|
|
3635
3683
|
subscriptionId,
|
|
3636
|
-
|
|
3684
|
+
clientApiParams
|
|
3637
3685
|
}) => {
|
|
3686
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3638
3687
|
const { data } = await clientApi.get(`/self/subscriptions/${subscriptionId}`);
|
|
3639
3688
|
return data;
|
|
3640
3689
|
};
|
|
3641
3690
|
var useGetSelfSubcription = (subscriptionId = "", options = {}) => {
|
|
3642
|
-
const {
|
|
3691
|
+
const { authenticated } = useConnectedXM();
|
|
3643
3692
|
return useConnectedSingleQuery(
|
|
3644
3693
|
SELF_SUBSCRIPTION_QUERY_KEY(subscriptionId),
|
|
3645
3694
|
(params) => GetSelfSubcription({ subscriptionId, ...params }),
|
|
3646
3695
|
{
|
|
3647
3696
|
...options,
|
|
3648
|
-
enabled: !!
|
|
3697
|
+
enabled: !!authenticated && !!subscriptionId && (options?.enabled ?? true)
|
|
3649
3698
|
}
|
|
3650
3699
|
);
|
|
3651
3700
|
};
|
|
@@ -3658,8 +3707,9 @@ var GetSelfSubscriptionPayments = async ({
|
|
|
3658
3707
|
pageSize,
|
|
3659
3708
|
orderBy,
|
|
3660
3709
|
search,
|
|
3661
|
-
|
|
3710
|
+
clientApiParams
|
|
3662
3711
|
}) => {
|
|
3712
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3663
3713
|
const { data } = await clientApi.get(
|
|
3664
3714
|
`/self/subscriptions/${subscriptionId}/payments`,
|
|
3665
3715
|
{
|
|
@@ -3674,14 +3724,14 @@ var GetSelfSubscriptionPayments = async ({
|
|
|
3674
3724
|
return data;
|
|
3675
3725
|
};
|
|
3676
3726
|
var useGetSelfSubscriptionPayments = (subscriptionId, params = {}, options = {}) => {
|
|
3677
|
-
const {
|
|
3727
|
+
const { authenticated } = useConnectedXM();
|
|
3678
3728
|
return useConnectedInfiniteQuery(
|
|
3679
3729
|
SELF_SUBSCRIPTION_PAYMENTS_QUERY_KEY(subscriptionId),
|
|
3680
3730
|
(params2) => GetSelfSubscriptionPayments({ ...params2, subscriptionId }),
|
|
3681
3731
|
params,
|
|
3682
3732
|
{
|
|
3683
3733
|
...options,
|
|
3684
|
-
enabled: !!
|
|
3734
|
+
enabled: !!authenticated && (options.enabled ?? true)
|
|
3685
3735
|
}
|
|
3686
3736
|
);
|
|
3687
3737
|
};
|
|
@@ -3697,9 +3747,10 @@ var GetSelfActivities = async ({
|
|
|
3697
3747
|
orderBy,
|
|
3698
3748
|
search,
|
|
3699
3749
|
queryClient,
|
|
3700
|
-
|
|
3750
|
+
clientApiParams,
|
|
3701
3751
|
locale
|
|
3702
3752
|
}) => {
|
|
3753
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3703
3754
|
const { data } = await clientApi.get(`/self/activities`, {
|
|
3704
3755
|
params: {
|
|
3705
3756
|
page: pageParam || void 0,
|
|
@@ -3719,14 +3770,14 @@ var GetSelfActivities = async ({
|
|
|
3719
3770
|
return data;
|
|
3720
3771
|
};
|
|
3721
3772
|
var useGetSelfActivities = (params = {}, options = {}) => {
|
|
3722
|
-
const {
|
|
3773
|
+
const { authenticated } = useConnectedXM();
|
|
3723
3774
|
return useConnectedInfiniteQuery(
|
|
3724
3775
|
SELF_ACTIVITIES_QUERY_KEY(),
|
|
3725
3776
|
(params2) => GetSelfActivities({ ...params2 }),
|
|
3726
3777
|
params,
|
|
3727
3778
|
{
|
|
3728
3779
|
...options,
|
|
3729
|
-
enabled: !!
|
|
3780
|
+
enabled: !!authenticated && (options.enabled ?? true)
|
|
3730
3781
|
}
|
|
3731
3782
|
);
|
|
3732
3783
|
};
|
|
@@ -3735,19 +3786,20 @@ var useGetSelfActivities = (params = {}, options = {}) => {
|
|
|
3735
3786
|
var SELF_ANNOUNCEMENT_QUERY_KEY = (announcementId) => [...SELF_QUERY_KEY(), "ANNOUNCEMENT", announcementId];
|
|
3736
3787
|
var GetSelfAnnouncement = async ({
|
|
3737
3788
|
announcementId,
|
|
3738
|
-
|
|
3789
|
+
clientApiParams
|
|
3739
3790
|
}) => {
|
|
3791
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3740
3792
|
const { data } = await clientApi.get(`/self/announcements/${announcementId}`);
|
|
3741
3793
|
return data;
|
|
3742
3794
|
};
|
|
3743
3795
|
var useGetSelfAnnouncement = (announcementId, options = {}) => {
|
|
3744
|
-
const {
|
|
3796
|
+
const { authenticated } = useConnectedXM();
|
|
3745
3797
|
return useConnectedSingleQuery(
|
|
3746
3798
|
SELF_ANNOUNCEMENT_QUERY_KEY(announcementId),
|
|
3747
3799
|
(params) => GetSelfAnnouncement({ announcementId, ...params }),
|
|
3748
3800
|
{
|
|
3749
3801
|
...options,
|
|
3750
|
-
enabled: !!
|
|
3802
|
+
enabled: !!authenticated && !!announcementId && (options?.enabled ?? true)
|
|
3751
3803
|
}
|
|
3752
3804
|
);
|
|
3753
3805
|
};
|
|
@@ -3762,8 +3814,9 @@ var GetSelfCommunityMemberships = async ({
|
|
|
3762
3814
|
pageSize,
|
|
3763
3815
|
orderBy,
|
|
3764
3816
|
search,
|
|
3765
|
-
|
|
3817
|
+
clientApiParams
|
|
3766
3818
|
}) => {
|
|
3819
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3767
3820
|
const { data } = await clientApi.get(`/self/communities`, {
|
|
3768
3821
|
params: {
|
|
3769
3822
|
page: pageParam || void 0,
|
|
@@ -3775,14 +3828,14 @@ var GetSelfCommunityMemberships = async ({
|
|
|
3775
3828
|
return data;
|
|
3776
3829
|
};
|
|
3777
3830
|
var useGetSelfCommunityMemberships = (params = {}, options = {}) => {
|
|
3778
|
-
const {
|
|
3831
|
+
const { authenticated } = useConnectedXM();
|
|
3779
3832
|
return useConnectedInfiniteQuery(
|
|
3780
3833
|
SELF_COMMUNITY_MEMBERSHIPS_QUERY_KEY(),
|
|
3781
3834
|
(params2) => GetSelfCommunityMemberships({ ...params2 }),
|
|
3782
3835
|
params,
|
|
3783
3836
|
{
|
|
3784
3837
|
...options,
|
|
3785
|
-
enabled: !!
|
|
3838
|
+
enabled: !!authenticated && (options.enabled ?? true)
|
|
3786
3839
|
}
|
|
3787
3840
|
);
|
|
3788
3841
|
};
|
|
@@ -3800,21 +3853,22 @@ var SET_SELF_COMMUNITY_MEMBERSHIP_QUERY_DATA = (client, keyParams, response, bas
|
|
|
3800
3853
|
};
|
|
3801
3854
|
var GetSelfCommunityMembership = async ({
|
|
3802
3855
|
communityId,
|
|
3803
|
-
|
|
3856
|
+
clientApiParams
|
|
3804
3857
|
}) => {
|
|
3858
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3805
3859
|
const { data } = await clientApi.get(
|
|
3806
3860
|
`/self/communities/${communityId}/membership`
|
|
3807
3861
|
);
|
|
3808
3862
|
return data;
|
|
3809
3863
|
};
|
|
3810
3864
|
var useGetSelfCommunityMembership = (communityId, options = {}) => {
|
|
3811
|
-
const {
|
|
3865
|
+
const { authenticated } = useConnectedXM();
|
|
3812
3866
|
return useConnectedSingleQuery(
|
|
3813
3867
|
SELF_COMMUNITY_MEMBERSHIP_QUERY_KEY(communityId),
|
|
3814
3868
|
(params) => GetSelfCommunityMembership({ communityId, ...params }),
|
|
3815
3869
|
{
|
|
3816
3870
|
...options,
|
|
3817
|
-
enabled: !!
|
|
3871
|
+
enabled: !!authenticated && !!communityId && (options?.enabled ?? true)
|
|
3818
3872
|
}
|
|
3819
3873
|
);
|
|
3820
3874
|
};
|
|
@@ -3830,9 +3884,10 @@ var GetSelfDelegateOf = async ({
|
|
|
3830
3884
|
orderBy,
|
|
3831
3885
|
search,
|
|
3832
3886
|
queryClient,
|
|
3833
|
-
|
|
3887
|
+
clientApiParams,
|
|
3834
3888
|
locale
|
|
3835
3889
|
}) => {
|
|
3890
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3836
3891
|
const { data } = await clientApi.get(`/self/delegateof`, {
|
|
3837
3892
|
params: {
|
|
3838
3893
|
page: pageParam || void 0,
|
|
@@ -3852,14 +3907,14 @@ var GetSelfDelegateOf = async ({
|
|
|
3852
3907
|
return data;
|
|
3853
3908
|
};
|
|
3854
3909
|
var useGetSelfDelegateOf = (params = {}, options = {}) => {
|
|
3855
|
-
const {
|
|
3910
|
+
const { authenticated } = useConnectedXM();
|
|
3856
3911
|
return useConnectedInfiniteQuery(
|
|
3857
3912
|
SELF_DELEGATE_OF_QUERY_KEY(),
|
|
3858
3913
|
(params2) => GetSelfDelegateOf({ ...params2 }),
|
|
3859
3914
|
params,
|
|
3860
3915
|
{
|
|
3861
3916
|
...options,
|
|
3862
|
-
enabled: !!
|
|
3917
|
+
enabled: !!authenticated && (options.enabled ?? true)
|
|
3863
3918
|
}
|
|
3864
3919
|
);
|
|
3865
3920
|
};
|
|
@@ -3875,9 +3930,10 @@ var GetSelfDelegates = async ({
|
|
|
3875
3930
|
orderBy,
|
|
3876
3931
|
search,
|
|
3877
3932
|
queryClient,
|
|
3878
|
-
|
|
3933
|
+
clientApiParams,
|
|
3879
3934
|
locale
|
|
3880
3935
|
}) => {
|
|
3936
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3881
3937
|
const { data } = await clientApi.get(`/self/delegates`, {
|
|
3882
3938
|
params: {
|
|
3883
3939
|
page: pageParam || void 0,
|
|
@@ -3897,14 +3953,14 @@ var GetSelfDelegates = async ({
|
|
|
3897
3953
|
return data;
|
|
3898
3954
|
};
|
|
3899
3955
|
var useGetSelfDelegates = (params = {}, options = {}) => {
|
|
3900
|
-
const {
|
|
3956
|
+
const { authenticated } = useConnectedXM();
|
|
3901
3957
|
return useConnectedInfiniteQuery(
|
|
3902
3958
|
SELF_DELEGATES_QUERY_KEY(),
|
|
3903
3959
|
(params2) => GetSelfDelegates(params2),
|
|
3904
3960
|
params,
|
|
3905
3961
|
{
|
|
3906
3962
|
...options,
|
|
3907
|
-
enabled: !!
|
|
3963
|
+
enabled: !!authenticated && (options.enabled ?? true)
|
|
3908
3964
|
}
|
|
3909
3965
|
);
|
|
3910
3966
|
};
|
|
@@ -3922,9 +3978,10 @@ var GetSelfEventListings = async ({
|
|
|
3922
3978
|
search,
|
|
3923
3979
|
past,
|
|
3924
3980
|
queryClient,
|
|
3925
|
-
|
|
3981
|
+
clientApiParams,
|
|
3926
3982
|
locale
|
|
3927
3983
|
}) => {
|
|
3984
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3928
3985
|
const { data } = await clientApi.get(`/self/events/listings`, {
|
|
3929
3986
|
params: {
|
|
3930
3987
|
page: pageParam || void 0,
|
|
@@ -3945,14 +4002,14 @@ var GetSelfEventListings = async ({
|
|
|
3945
4002
|
return data;
|
|
3946
4003
|
};
|
|
3947
4004
|
var useGetSelfEventListings = (past = false, params = {}, options = {}) => {
|
|
3948
|
-
const {
|
|
4005
|
+
const { authenticated } = useConnectedXM();
|
|
3949
4006
|
return useConnectedInfiniteQuery(
|
|
3950
4007
|
SELF_EVENT_LISTINGS_QUERY_KEY(past),
|
|
3951
4008
|
(params2) => GetSelfEventListings({ past, ...params2 }),
|
|
3952
4009
|
params,
|
|
3953
4010
|
{
|
|
3954
4011
|
...options,
|
|
3955
|
-
enabled: !!
|
|
4012
|
+
enabled: !!authenticated && (options.enabled ?? true)
|
|
3956
4013
|
}
|
|
3957
4014
|
);
|
|
3958
4015
|
};
|
|
@@ -3973,19 +4030,20 @@ var SET_SELF_EVENT_LISTING_QUERY_DATA = (client, keyParams, response, baseKeys =
|
|
|
3973
4030
|
};
|
|
3974
4031
|
var GetSelfEventListing = async ({
|
|
3975
4032
|
eventId,
|
|
3976
|
-
|
|
4033
|
+
clientApiParams
|
|
3977
4034
|
}) => {
|
|
4035
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3978
4036
|
const { data } = await clientApi.get(`self/events/listings/${eventId}`);
|
|
3979
4037
|
return data;
|
|
3980
4038
|
};
|
|
3981
4039
|
var useGetSelfEventListing = (eventId, options = {}) => {
|
|
3982
|
-
const {
|
|
4040
|
+
const { authenticated } = useConnectedXM();
|
|
3983
4041
|
return useConnectedSingleQuery(
|
|
3984
4042
|
SELF_EVENT_LISTING_QUERY_KEY(eventId),
|
|
3985
4043
|
(params) => GetSelfEventListing({ eventId, ...params }),
|
|
3986
4044
|
{
|
|
3987
4045
|
...options,
|
|
3988
|
-
enabled: !!
|
|
4046
|
+
enabled: !!authenticated && !!eventId && (options?.enabled ?? true)
|
|
3989
4047
|
}
|
|
3990
4048
|
);
|
|
3991
4049
|
};
|
|
@@ -4003,8 +4061,9 @@ var GetSelfEventListingRegistrations = async ({
|
|
|
4003
4061
|
orderBy,
|
|
4004
4062
|
search,
|
|
4005
4063
|
checkedIn,
|
|
4006
|
-
|
|
4064
|
+
clientApiParams
|
|
4007
4065
|
}) => {
|
|
4066
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4008
4067
|
const { data } = await clientApi.get(
|
|
4009
4068
|
`/self/events/listings/${eventId}/registrations`,
|
|
4010
4069
|
{
|
|
@@ -4020,14 +4079,14 @@ var GetSelfEventListingRegistrations = async ({
|
|
|
4020
4079
|
return data;
|
|
4021
4080
|
};
|
|
4022
4081
|
var useGetSelfEventListingsRegistrations = (eventId, checkedIn = false, params = {}, options = {}) => {
|
|
4023
|
-
const {
|
|
4082
|
+
const { authenticated } = useConnectedXM();
|
|
4024
4083
|
return useConnectedInfiniteQuery(
|
|
4025
4084
|
SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId, checkedIn),
|
|
4026
4085
|
(params2) => GetSelfEventListingRegistrations({ eventId, checkedIn, ...params2 }),
|
|
4027
4086
|
params,
|
|
4028
4087
|
{
|
|
4029
4088
|
...options,
|
|
4030
|
-
enabled: !!
|
|
4089
|
+
enabled: !!authenticated && !!eventId && (options?.enabled ?? true)
|
|
4031
4090
|
}
|
|
4032
4091
|
);
|
|
4033
4092
|
};
|
|
@@ -4045,9 +4104,10 @@ var GetSelfEvents = async ({
|
|
|
4045
4104
|
search,
|
|
4046
4105
|
past,
|
|
4047
4106
|
queryClient,
|
|
4048
|
-
|
|
4107
|
+
clientApiParams,
|
|
4049
4108
|
locale
|
|
4050
4109
|
}) => {
|
|
4110
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4051
4111
|
const { data } = await clientApi.get(`/self/events`, {
|
|
4052
4112
|
params: {
|
|
4053
4113
|
page: pageParam || void 0,
|
|
@@ -4068,14 +4128,14 @@ var GetSelfEvents = async ({
|
|
|
4068
4128
|
return data;
|
|
4069
4129
|
};
|
|
4070
4130
|
var useGetSelfEvents = (past = false, params = {}, options = {}) => {
|
|
4071
|
-
const {
|
|
4131
|
+
const { authenticated } = useConnectedXM();
|
|
4072
4132
|
return useConnectedInfiniteQuery(
|
|
4073
4133
|
SELF_EVENTS_QUERY_KEY(past),
|
|
4074
4134
|
(params2) => GetSelfEvents({ ...params2, past }),
|
|
4075
4135
|
params,
|
|
4076
4136
|
{
|
|
4077
4137
|
...options,
|
|
4078
|
-
enabled: !!
|
|
4138
|
+
enabled: !!authenticated && (options.enabled ?? true)
|
|
4079
4139
|
}
|
|
4080
4140
|
);
|
|
4081
4141
|
};
|
|
@@ -4093,9 +4153,10 @@ var GetSelfEventSessions = async ({
|
|
|
4093
4153
|
orderBy,
|
|
4094
4154
|
search,
|
|
4095
4155
|
queryClient,
|
|
4096
|
-
|
|
4156
|
+
clientApiParams,
|
|
4097
4157
|
locale
|
|
4098
4158
|
}) => {
|
|
4159
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4099
4160
|
const { data } = await clientApi.get(`/self/events/${eventId}/sessions`, {
|
|
4100
4161
|
params: {
|
|
4101
4162
|
eventId: eventId || void 0,
|
|
@@ -4116,14 +4177,14 @@ var GetSelfEventSessions = async ({
|
|
|
4116
4177
|
return data;
|
|
4117
4178
|
};
|
|
4118
4179
|
var useGetSelfEventSessions = (eventId, params = {}, options = {}) => {
|
|
4119
|
-
const {
|
|
4180
|
+
const { authenticated } = useConnectedXM();
|
|
4120
4181
|
return useConnectedInfiniteQuery(
|
|
4121
4182
|
SELF_EVENT_SESSIONS_QUERY_KEY(eventId),
|
|
4122
4183
|
(params2) => GetSelfEventSessions({ eventId, ...params2 }),
|
|
4123
4184
|
params,
|
|
4124
4185
|
{
|
|
4125
4186
|
...options,
|
|
4126
|
-
enabled: !!
|
|
4187
|
+
enabled: !!authenticated && !!eventId && (options.enabled ?? true)
|
|
4127
4188
|
}
|
|
4128
4189
|
);
|
|
4129
4190
|
};
|
|
@@ -4139,9 +4200,10 @@ var GetSelfFeed = async ({
|
|
|
4139
4200
|
orderBy,
|
|
4140
4201
|
search,
|
|
4141
4202
|
queryClient,
|
|
4142
|
-
|
|
4203
|
+
clientApiParams,
|
|
4143
4204
|
locale
|
|
4144
4205
|
}) => {
|
|
4206
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4145
4207
|
const { data } = await clientApi.get(`/self/activities/feed`, {
|
|
4146
4208
|
params: {
|
|
4147
4209
|
page: pageParam || void 0,
|
|
@@ -4161,14 +4223,14 @@ var GetSelfFeed = async ({
|
|
|
4161
4223
|
return data;
|
|
4162
4224
|
};
|
|
4163
4225
|
var useGetSelfFeed = (params = {}, options = {}) => {
|
|
4164
|
-
const {
|
|
4226
|
+
const { authenticated } = useConnectedXM();
|
|
4165
4227
|
return useConnectedInfiniteQuery(
|
|
4166
4228
|
SELF_FEED_QUERY_KEY(),
|
|
4167
4229
|
(params2) => GetSelfFeed(params2),
|
|
4168
4230
|
params,
|
|
4169
4231
|
{
|
|
4170
4232
|
...options,
|
|
4171
|
-
enabled: !!
|
|
4233
|
+
enabled: !!authenticated && (options.enabled ?? true)
|
|
4172
4234
|
}
|
|
4173
4235
|
);
|
|
4174
4236
|
};
|
|
@@ -4183,8 +4245,9 @@ var GetSelfInterests = async ({
|
|
|
4183
4245
|
pageSize,
|
|
4184
4246
|
orderBy,
|
|
4185
4247
|
search,
|
|
4186
|
-
|
|
4248
|
+
clientApiParams
|
|
4187
4249
|
}) => {
|
|
4250
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4188
4251
|
const { data } = await clientApi.get(`/self/interests`, {
|
|
4189
4252
|
params: {
|
|
4190
4253
|
page: pageParam || void 0,
|
|
@@ -4196,14 +4259,14 @@ var GetSelfInterests = async ({
|
|
|
4196
4259
|
return data;
|
|
4197
4260
|
};
|
|
4198
4261
|
var useGetSelfInterests = (params = {}, options = {}) => {
|
|
4199
|
-
const {
|
|
4262
|
+
const { authenticated } = useConnectedXM();
|
|
4200
4263
|
return useConnectedInfiniteQuery(
|
|
4201
4264
|
SELF_INTERESTS_QUERY_KEY(),
|
|
4202
4265
|
(params2) => GetSelfInterests({ ...params2 }),
|
|
4203
4266
|
params,
|
|
4204
4267
|
{
|
|
4205
4268
|
...options,
|
|
4206
|
-
enabled: !!
|
|
4269
|
+
enabled: !!authenticated && (options.enabled ?? true)
|
|
4207
4270
|
}
|
|
4208
4271
|
);
|
|
4209
4272
|
};
|
|
@@ -4214,19 +4277,20 @@ var SELF_PREFERENCES_QUERY_KEY = () => [
|
|
|
4214
4277
|
"PREFERENCES"
|
|
4215
4278
|
];
|
|
4216
4279
|
var GetSelfNotificationPreferences = async ({
|
|
4217
|
-
|
|
4280
|
+
clientApiParams
|
|
4218
4281
|
}) => {
|
|
4282
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4219
4283
|
const { data } = await clientApi.get(`/self/notificationPreferences`);
|
|
4220
4284
|
return data;
|
|
4221
4285
|
};
|
|
4222
4286
|
var useGetSelfNotificationPreferences = (options = {}) => {
|
|
4223
|
-
const {
|
|
4287
|
+
const { authenticated } = useConnectedXM();
|
|
4224
4288
|
return useConnectedSingleQuery(
|
|
4225
4289
|
SELF_PREFERENCES_QUERY_KEY(),
|
|
4226
4290
|
(params) => GetSelfNotificationPreferences({ ...params }),
|
|
4227
4291
|
{
|
|
4228
4292
|
...options,
|
|
4229
|
-
enabled: !!
|
|
4293
|
+
enabled: !!authenticated && (options.enabled ?? true)
|
|
4230
4294
|
}
|
|
4231
4295
|
);
|
|
4232
4296
|
};
|
|
@@ -4243,8 +4307,9 @@ var GetSelfNotifications = async ({
|
|
|
4243
4307
|
orderBy,
|
|
4244
4308
|
search,
|
|
4245
4309
|
filters,
|
|
4246
|
-
|
|
4310
|
+
clientApiParams
|
|
4247
4311
|
}) => {
|
|
4312
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4248
4313
|
const { data } = await clientApi.get(`/self/notifications`, {
|
|
4249
4314
|
params: {
|
|
4250
4315
|
page: pageParam || void 0,
|
|
@@ -4257,7 +4322,7 @@ var GetSelfNotifications = async ({
|
|
|
4257
4322
|
return data;
|
|
4258
4323
|
};
|
|
4259
4324
|
var useGetSelfNotifications = (filters = "", params = {}, options = {}) => {
|
|
4260
|
-
const {
|
|
4325
|
+
const { authenticated } = useConnectedXM();
|
|
4261
4326
|
return useConnectedInfiniteQuery(
|
|
4262
4327
|
SELF_NOTIFICATIONS_QUERY_KEY(filters),
|
|
4263
4328
|
(params2) => GetSelfNotifications({ ...params2, filters }),
|
|
@@ -4265,7 +4330,7 @@ var useGetSelfNotifications = (filters = "", params = {}, options = {}) => {
|
|
|
4265
4330
|
{
|
|
4266
4331
|
staleTime: 0,
|
|
4267
4332
|
...options,
|
|
4268
|
-
enabled: !!
|
|
4333
|
+
enabled: !!authenticated && (options.enabled ?? true)
|
|
4269
4334
|
}
|
|
4270
4335
|
);
|
|
4271
4336
|
};
|
|
@@ -4274,8 +4339,9 @@ var useGetSelfNotifications = (filters = "", params = {}, options = {}) => {
|
|
|
4274
4339
|
var SELF_NOTIFICATION_COUNT_QUERY_KEY = (filters) => [...SELF_QUERY_KEY(), "NOTIFICATION_COUNT", filters];
|
|
4275
4340
|
var GetSelfNewNotificationsCount = async ({
|
|
4276
4341
|
filters,
|
|
4277
|
-
|
|
4342
|
+
clientApiParams
|
|
4278
4343
|
}) => {
|
|
4344
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4279
4345
|
const { data } = await clientApi.get(`/self/notifications/count`, {
|
|
4280
4346
|
params: {
|
|
4281
4347
|
filters
|
|
@@ -4284,13 +4350,13 @@ var GetSelfNewNotificationsCount = async ({
|
|
|
4284
4350
|
return data;
|
|
4285
4351
|
};
|
|
4286
4352
|
var useGetSelfNewNotificationsCount = (filters = "", options = {}) => {
|
|
4287
|
-
const {
|
|
4353
|
+
const { authenticated } = useConnectedXM();
|
|
4288
4354
|
return useConnectedSingleQuery_default(
|
|
4289
4355
|
SELF_NOTIFICATION_COUNT_QUERY_KEY(filters),
|
|
4290
4356
|
(params) => GetSelfNewNotificationsCount({ filters, ...params }),
|
|
4291
4357
|
{
|
|
4292
4358
|
...options,
|
|
4293
|
-
enabled: !!
|
|
4359
|
+
enabled: !!authenticated && (options.enabled ?? true)
|
|
4294
4360
|
}
|
|
4295
4361
|
);
|
|
4296
4362
|
};
|
|
@@ -4306,9 +4372,10 @@ var GetSelfPushDevices = async ({
|
|
|
4306
4372
|
orderBy,
|
|
4307
4373
|
search,
|
|
4308
4374
|
queryClient,
|
|
4309
|
-
|
|
4375
|
+
clientApiParams,
|
|
4310
4376
|
locale
|
|
4311
4377
|
}) => {
|
|
4378
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4312
4379
|
const { data } = await clientApi.get(`/self/push-devices`, {
|
|
4313
4380
|
params: {
|
|
4314
4381
|
page: pageParam || void 0,
|
|
@@ -4328,14 +4395,14 @@ var GetSelfPushDevices = async ({
|
|
|
4328
4395
|
return data;
|
|
4329
4396
|
};
|
|
4330
4397
|
var useGetSelfPushDevices = (params = {}, options = {}) => {
|
|
4331
|
-
const {
|
|
4398
|
+
const { authenticated } = useConnectedXM();
|
|
4332
4399
|
return useConnectedInfiniteQuery(
|
|
4333
4400
|
SELF_PUSH_DEVICES_QUERY_KEY(),
|
|
4334
4401
|
(params2) => GetSelfPushDevices({ ...params2 }),
|
|
4335
4402
|
params,
|
|
4336
4403
|
{
|
|
4337
4404
|
...options,
|
|
4338
|
-
enabled: !!
|
|
4405
|
+
enabled: !!authenticated && (options.enabled ?? true)
|
|
4339
4406
|
}
|
|
4340
4407
|
);
|
|
4341
4408
|
};
|
|
@@ -4356,19 +4423,20 @@ var SET_PUSH_DEVICE_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]
|
|
|
4356
4423
|
};
|
|
4357
4424
|
var GetSelfPushDevice = async ({
|
|
4358
4425
|
pushDeviceId,
|
|
4359
|
-
|
|
4426
|
+
clientApiParams
|
|
4360
4427
|
}) => {
|
|
4428
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4361
4429
|
const { data } = await clientApi.get(`/self/push-devices/${pushDeviceId}`);
|
|
4362
4430
|
return data;
|
|
4363
4431
|
};
|
|
4364
4432
|
var useGetSelfPushDevice = (pushDeviceId, options = {}) => {
|
|
4365
|
-
const {
|
|
4433
|
+
const { authenticated } = useConnectedXM();
|
|
4366
4434
|
return useConnectedSingleQuery(
|
|
4367
4435
|
SELF_PUSH_DEVICE_QUERY_KEY(pushDeviceId),
|
|
4368
4436
|
(params) => GetSelfPushDevice({ pushDeviceId, ...params }),
|
|
4369
4437
|
{
|
|
4370
4438
|
...options,
|
|
4371
|
-
enabled: !!
|
|
4439
|
+
enabled: !!authenticated && !!pushDeviceId && (options?.enabled ?? true)
|
|
4372
4440
|
}
|
|
4373
4441
|
);
|
|
4374
4442
|
};
|
|
@@ -4388,9 +4456,10 @@ var GetSelfRecommendations = async ({
|
|
|
4388
4456
|
eventId,
|
|
4389
4457
|
type,
|
|
4390
4458
|
queryClient,
|
|
4391
|
-
|
|
4459
|
+
clientApiParams,
|
|
4392
4460
|
locale
|
|
4393
4461
|
}) => {
|
|
4462
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4394
4463
|
const { data } = await clientApi.get(`/self/recommendations`, {
|
|
4395
4464
|
params: {
|
|
4396
4465
|
page: pageParam || void 0,
|
|
@@ -4412,14 +4481,14 @@ var GetSelfRecommendations = async ({
|
|
|
4412
4481
|
return data;
|
|
4413
4482
|
};
|
|
4414
4483
|
var useGetSelfRecommendations = (type, eventId = "", params = {}, options = {}) => {
|
|
4415
|
-
const {
|
|
4484
|
+
const { authenticated } = useConnectedXM();
|
|
4416
4485
|
return useConnectedInfiniteQuery(
|
|
4417
4486
|
SELF_RECOMMENDATIONS_QUERY_KEY(type, eventId),
|
|
4418
4487
|
(params2) => GetSelfRecommendations({ ...params2, eventId, type }),
|
|
4419
4488
|
params,
|
|
4420
4489
|
{
|
|
4421
4490
|
...options,
|
|
4422
|
-
enabled: !!
|
|
4491
|
+
enabled: !!authenticated && (options.enabled ?? true)
|
|
4423
4492
|
}
|
|
4424
4493
|
);
|
|
4425
4494
|
};
|
|
@@ -4434,8 +4503,9 @@ var GetSelfTransfers = async ({
|
|
|
4434
4503
|
pageSize,
|
|
4435
4504
|
orderBy,
|
|
4436
4505
|
search,
|
|
4437
|
-
|
|
4506
|
+
clientApiParams
|
|
4438
4507
|
}) => {
|
|
4508
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4439
4509
|
const { data } = await clientApi.get(`/self/transfers`, {
|
|
4440
4510
|
params: {
|
|
4441
4511
|
page: pageParam || void 0,
|
|
@@ -4447,14 +4517,14 @@ var GetSelfTransfers = async ({
|
|
|
4447
4517
|
return data;
|
|
4448
4518
|
};
|
|
4449
4519
|
var useGetSelfTransfers = (params = {}, options = {}) => {
|
|
4450
|
-
const {
|
|
4520
|
+
const { authenticated } = useConnectedXM();
|
|
4451
4521
|
return useConnectedInfiniteQuery(
|
|
4452
4522
|
SELF_TRANSFERS_QUERY_KEY(),
|
|
4453
4523
|
(params2) => GetSelfTransfers({ ...params2 }),
|
|
4454
4524
|
params,
|
|
4455
4525
|
{
|
|
4456
4526
|
...options,
|
|
4457
|
-
enabled: !!
|
|
4527
|
+
enabled: !!authenticated && (options.enabled ?? true)
|
|
4458
4528
|
}
|
|
4459
4529
|
);
|
|
4460
4530
|
};
|
|
@@ -4463,19 +4533,20 @@ var useGetSelfTransfers = (params = {}, options = {}) => {
|
|
|
4463
4533
|
var SELF_PENDING_TRANSFER_QUERY_KEY = (transferId) => [...SELF_TRANSFERS_QUERY_KEY(), transferId];
|
|
4464
4534
|
var GetSelfTransfer = async ({
|
|
4465
4535
|
transferId,
|
|
4466
|
-
|
|
4536
|
+
clientApiParams
|
|
4467
4537
|
}) => {
|
|
4538
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4468
4539
|
const { data } = await clientApi.get(`/self/transfers/${transferId}`);
|
|
4469
4540
|
return data;
|
|
4470
4541
|
};
|
|
4471
4542
|
var useGetSelfTransfer = (transferId = "", options = {}) => {
|
|
4472
|
-
const {
|
|
4543
|
+
const { authenticated } = useConnectedXM();
|
|
4473
4544
|
return useConnectedSingleQuery(
|
|
4474
4545
|
SELF_PENDING_TRANSFER_QUERY_KEY(transferId),
|
|
4475
4546
|
(params) => GetSelfTransfer({ ...params, transferId }),
|
|
4476
4547
|
{
|
|
4477
4548
|
...options,
|
|
4478
|
-
enabled: !!
|
|
4549
|
+
enabled: !!authenticated && !!transferId && (options?.enabled ?? true)
|
|
4479
4550
|
}
|
|
4480
4551
|
);
|
|
4481
4552
|
};
|
|
@@ -4497,9 +4568,10 @@ var GetSeriesList = async ({
|
|
|
4497
4568
|
orderBy,
|
|
4498
4569
|
search,
|
|
4499
4570
|
queryClient,
|
|
4500
|
-
|
|
4571
|
+
clientApiParams,
|
|
4501
4572
|
locale
|
|
4502
4573
|
}) => {
|
|
4574
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4503
4575
|
const { data } = await clientApi.get(`/series`, {
|
|
4504
4576
|
params: {
|
|
4505
4577
|
page: pageParam || void 0,
|
|
@@ -4540,12 +4612,13 @@ var SET_SERIES_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) =>
|
|
|
4540
4612
|
};
|
|
4541
4613
|
var GetSeries = async ({
|
|
4542
4614
|
seriesId,
|
|
4543
|
-
|
|
4615
|
+
clientApiParams
|
|
4544
4616
|
}) => {
|
|
4617
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4545
4618
|
const { data } = await clientApi.get(`/series/${seriesId}`);
|
|
4546
4619
|
return data;
|
|
4547
4620
|
};
|
|
4548
|
-
var useGetSeries = (seriesId, options = {}) => {
|
|
4621
|
+
var useGetSeries = (seriesId = "", options = {}) => {
|
|
4549
4622
|
return useConnectedSingleQuery(
|
|
4550
4623
|
SERIES_QUERY_KEY(seriesId),
|
|
4551
4624
|
(params) => GetSeries({ seriesId, ...params }),
|
|
@@ -4577,9 +4650,10 @@ var GetSeriesEvents = async ({
|
|
|
4577
4650
|
orderBy,
|
|
4578
4651
|
search,
|
|
4579
4652
|
queryClient,
|
|
4580
|
-
|
|
4653
|
+
clientApiParams,
|
|
4581
4654
|
locale
|
|
4582
4655
|
}) => {
|
|
4656
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4583
4657
|
const { data } = await clientApi.get(`/series/${seriesId}/events`, {
|
|
4584
4658
|
params: {
|
|
4585
4659
|
page: pageParam || void 0,
|
|
@@ -4598,7 +4672,7 @@ var GetSeriesEvents = async ({
|
|
|
4598
4672
|
}
|
|
4599
4673
|
return data;
|
|
4600
4674
|
};
|
|
4601
|
-
var useGetSeriesEvents = (seriesId, params = {}, options = {}) => {
|
|
4675
|
+
var useGetSeriesEvents = (seriesId = "", params = {}, options = {}) => {
|
|
4602
4676
|
return useConnectedInfiniteQuery(
|
|
4603
4677
|
SERIES_EVENTS_QUERY_KEY(seriesId),
|
|
4604
4678
|
(params2) => GetSeriesEvents({ seriesId, ...params2 }),
|
|
@@ -4627,9 +4701,10 @@ var GetLevels = async ({
|
|
|
4627
4701
|
orderBy,
|
|
4628
4702
|
search,
|
|
4629
4703
|
queryClient,
|
|
4630
|
-
|
|
4704
|
+
clientApiParams,
|
|
4631
4705
|
locale
|
|
4632
4706
|
}) => {
|
|
4707
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4633
4708
|
const { data } = await clientApi.get(`/levels`, {
|
|
4634
4709
|
params: {
|
|
4635
4710
|
page: pageParam || void 0,
|
|
@@ -4670,12 +4745,13 @@ var SET_LEVEL_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
|
4670
4745
|
};
|
|
4671
4746
|
var GetLevel = async ({
|
|
4672
4747
|
levelId,
|
|
4673
|
-
|
|
4748
|
+
clientApiParams
|
|
4674
4749
|
}) => {
|
|
4750
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4675
4751
|
const { data } = await clientApi.get(`/levels/${levelId}`, {});
|
|
4676
4752
|
return data;
|
|
4677
4753
|
};
|
|
4678
|
-
var useGetLevel = (levelId, options = {}) => {
|
|
4754
|
+
var useGetLevel = (levelId = "", options = {}) => {
|
|
4679
4755
|
return useConnectedSingleQuery_default(
|
|
4680
4756
|
LEVEL_QUERY_KEY(levelId),
|
|
4681
4757
|
(params) => GetLevel({ levelId, ...params }),
|
|
@@ -4707,9 +4783,10 @@ var GetLevelSponsors = async ({
|
|
|
4707
4783
|
orderBy,
|
|
4708
4784
|
search,
|
|
4709
4785
|
queryClient,
|
|
4710
|
-
|
|
4786
|
+
clientApiParams,
|
|
4711
4787
|
locale
|
|
4712
4788
|
}) => {
|
|
4789
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4713
4790
|
const { data } = await clientApi.get(`/levels/${levelId}/accounts`, {
|
|
4714
4791
|
params: {
|
|
4715
4792
|
page: pageParam || void 0,
|
|
@@ -4728,7 +4805,7 @@ var GetLevelSponsors = async ({
|
|
|
4728
4805
|
}
|
|
4729
4806
|
return data;
|
|
4730
4807
|
};
|
|
4731
|
-
var useGetLevelSponsors = (levelId, params = {}, options = {}) => {
|
|
4808
|
+
var useGetLevelSponsors = (levelId = "", params = {}, options = {}) => {
|
|
4732
4809
|
return useConnectedInfiniteQuery(
|
|
4733
4810
|
LEVEL_SPONSORS_QUERY_KEY(levelId),
|
|
4734
4811
|
(params2) => GetLevelSponsors({ levelId, ...params2 }),
|
|
@@ -4743,15 +4820,20 @@ var useGetLevelSponsors = (levelId, params = {}, options = {}) => {
|
|
|
4743
4820
|
// src/mutations/useConnectedMutation.ts
|
|
4744
4821
|
var import_react_query4 = require("@tanstack/react-query");
|
|
4745
4822
|
var useConnectedMutation = (mutation, params, options) => {
|
|
4746
|
-
const { locale } = useConnectedXM();
|
|
4823
|
+
const { locale, apiUrl, getToken, organizationId, getExecuteAs } = useConnectedXM();
|
|
4747
4824
|
const queryClient = (0, import_react_query4.useQueryClient)();
|
|
4748
|
-
const clientApi = useClientAPI();
|
|
4749
4825
|
return (0, import_react_query4.useMutation)({
|
|
4750
4826
|
mutationFn: (data) => mutation({
|
|
4751
|
-
locale: params?.locale || locale,
|
|
4752
|
-
...data,
|
|
4753
4827
|
queryClient,
|
|
4754
|
-
|
|
4828
|
+
locale: params?.locale || locale,
|
|
4829
|
+
clientApiParams: {
|
|
4830
|
+
apiUrl,
|
|
4831
|
+
getToken,
|
|
4832
|
+
organizationId,
|
|
4833
|
+
getExecuteAs,
|
|
4834
|
+
locale: params?.locale || locale
|
|
4835
|
+
},
|
|
4836
|
+
...data
|
|
4755
4837
|
}),
|
|
4756
4838
|
...options
|
|
4757
4839
|
});
|
|
@@ -4761,10 +4843,11 @@ var useConnectedMutation_default = useConnectedMutation;
|
|
|
4761
4843
|
// src/mutations/accounts/useFollowAccount.ts
|
|
4762
4844
|
var FollowAccount = async ({
|
|
4763
4845
|
accountId,
|
|
4764
|
-
|
|
4846
|
+
clientApiParams,
|
|
4765
4847
|
queryClient,
|
|
4766
4848
|
locale = "en"
|
|
4767
4849
|
}) => {
|
|
4850
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4768
4851
|
const { data } = await clientApi.post(
|
|
4769
4852
|
`/accounts/${accountId}/follow`
|
|
4770
4853
|
);
|
|
@@ -4784,10 +4867,11 @@ var useFollowAccount = (params = {}, options = {}) => {
|
|
|
4784
4867
|
// src/mutations/accounts/useUnfollowAccount.ts
|
|
4785
4868
|
var UnfollowAccount = async ({
|
|
4786
4869
|
accountId,
|
|
4787
|
-
|
|
4870
|
+
clientApiParams,
|
|
4788
4871
|
queryClient,
|
|
4789
4872
|
locale = "en"
|
|
4790
4873
|
}) => {
|
|
4874
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4791
4875
|
const { data } = await clientApi.post(
|
|
4792
4876
|
`/accounts/${accountId}/unfollow`
|
|
4793
4877
|
);
|
|
@@ -4862,7 +4946,7 @@ var UpdateResharesInfinite = (increment, queryClient, KEY, activityId) => {
|
|
|
4862
4946
|
// src/mutations/activities/useDeleteReshare.ts
|
|
4863
4947
|
var DeleteReshare = async ({
|
|
4864
4948
|
activityId,
|
|
4865
|
-
|
|
4949
|
+
clientApiParams,
|
|
4866
4950
|
queryClient
|
|
4867
4951
|
}) => {
|
|
4868
4952
|
if (queryClient) {
|
|
@@ -4874,6 +4958,7 @@ var DeleteReshare = async ({
|
|
|
4874
4958
|
activityId
|
|
4875
4959
|
);
|
|
4876
4960
|
}
|
|
4961
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4877
4962
|
const { data } = await clientApi.delete(
|
|
4878
4963
|
`/self/activities/${activityId}/reshares`
|
|
4879
4964
|
);
|
|
@@ -4941,13 +5026,14 @@ var UpdateLikesInfinite = (increment, queryClient, KEY, activityId) => {
|
|
|
4941
5026
|
// src/mutations/activities/useLikeActivity.ts
|
|
4942
5027
|
var LikeActivity = async ({
|
|
4943
5028
|
activityId,
|
|
4944
|
-
|
|
5029
|
+
clientApiParams,
|
|
4945
5030
|
queryClient
|
|
4946
5031
|
}) => {
|
|
4947
5032
|
if (queryClient) {
|
|
4948
5033
|
UpdateLikesSingle(true, queryClient, ACTIVITY_QUERY_KEY(activityId));
|
|
4949
5034
|
UpdateLikesInfinite(true, queryClient, ACTIVITIES_QUERY_KEY(), activityId);
|
|
4950
5035
|
}
|
|
5036
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4951
5037
|
const { data } = await clientApi.post(
|
|
4952
5038
|
`/self/activities/${activityId}/likes`
|
|
4953
5039
|
);
|
|
@@ -4961,7 +5047,7 @@ var useLikeActivity = (params = {}, options = {}) => {
|
|
|
4961
5047
|
var ReshareActivity = async ({
|
|
4962
5048
|
activityId,
|
|
4963
5049
|
queryClient,
|
|
4964
|
-
|
|
5050
|
+
clientApiParams
|
|
4965
5051
|
}) => {
|
|
4966
5052
|
if (queryClient) {
|
|
4967
5053
|
UpdateResharesSingle(true, queryClient, ACTIVITY_QUERY_KEY(activityId));
|
|
@@ -4972,6 +5058,7 @@ var ReshareActivity = async ({
|
|
|
4972
5058
|
activityId
|
|
4973
5059
|
);
|
|
4974
5060
|
}
|
|
5061
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4975
5062
|
const { data } = await clientApi.post(
|
|
4976
5063
|
`/self/activities/${activityId}/reshares`,
|
|
4977
5064
|
{
|
|
@@ -4987,13 +5074,14 @@ var useReshareActivity = (params = {}, options = {}) => {
|
|
|
4987
5074
|
// src/mutations/activities/useUnlikeActivity.ts
|
|
4988
5075
|
var UnlikeActivity = async ({
|
|
4989
5076
|
activityId,
|
|
4990
|
-
|
|
5077
|
+
clientApiParams,
|
|
4991
5078
|
queryClient
|
|
4992
5079
|
}) => {
|
|
4993
5080
|
if (queryClient) {
|
|
4994
5081
|
UpdateLikesSingle(false, queryClient, ACTIVITY_QUERY_KEY(activityId));
|
|
4995
5082
|
UpdateLikesInfinite(false, queryClient, ACTIVITIES_QUERY_KEY(), activityId);
|
|
4996
5083
|
}
|
|
5084
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4997
5085
|
const { data } = await clientApi.delete(
|
|
4998
5086
|
`/self/activities/${activityId}/likes`
|
|
4999
5087
|
);
|
|
@@ -5007,9 +5095,10 @@ var useUnlikeActivity = (params = {}, options = {}) => {
|
|
|
5007
5095
|
var AddCommunityEvent = async ({
|
|
5008
5096
|
communityId,
|
|
5009
5097
|
eventId,
|
|
5010
|
-
|
|
5098
|
+
clientApiParams,
|
|
5011
5099
|
queryClient
|
|
5012
5100
|
}) => {
|
|
5101
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5013
5102
|
const { data } = await clientApi.post(
|
|
5014
5103
|
`/communityModerator/${communityId}/events/${eventId}`
|
|
5015
5104
|
);
|
|
@@ -5037,9 +5126,10 @@ var CreateCommunityAnnouncement = async ({
|
|
|
5037
5126
|
html,
|
|
5038
5127
|
email,
|
|
5039
5128
|
push,
|
|
5040
|
-
|
|
5129
|
+
clientApiParams,
|
|
5041
5130
|
queryClient
|
|
5042
5131
|
}) => {
|
|
5132
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5043
5133
|
const { data } = await clientApi.post(
|
|
5044
5134
|
`/communityModerator/${communityId}/announcements`,
|
|
5045
5135
|
{
|
|
@@ -5066,9 +5156,10 @@ var useCreateCommunityAnnouncement = (params = {}, options = {}) => {
|
|
|
5066
5156
|
var RemoveCommunityEvent = async ({
|
|
5067
5157
|
communityId,
|
|
5068
5158
|
eventId,
|
|
5069
|
-
|
|
5159
|
+
clientApiParams,
|
|
5070
5160
|
queryClient
|
|
5071
5161
|
}) => {
|
|
5162
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5072
5163
|
const { data } = await clientApi.delete(
|
|
5073
5164
|
`/communityModerator/${communityId}/events/${eventId}`
|
|
5074
5165
|
);
|
|
@@ -5095,10 +5186,11 @@ var UpdateCommunity = async ({
|
|
|
5095
5186
|
description,
|
|
5096
5187
|
externalUrl,
|
|
5097
5188
|
base64,
|
|
5098
|
-
|
|
5189
|
+
clientApiParams,
|
|
5099
5190
|
queryClient,
|
|
5100
5191
|
locale = "en"
|
|
5101
5192
|
}) => {
|
|
5193
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5102
5194
|
const { data } = await clientApi.put(
|
|
5103
5195
|
`/communityModerator/${communityId}`,
|
|
5104
5196
|
{
|
|
@@ -5125,9 +5217,10 @@ var CompleteEventActivation = async ({
|
|
|
5125
5217
|
eventId,
|
|
5126
5218
|
activationId,
|
|
5127
5219
|
code,
|
|
5128
|
-
|
|
5220
|
+
clientApiParams,
|
|
5129
5221
|
queryClient
|
|
5130
5222
|
}) => {
|
|
5223
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5131
5224
|
const { data } = await clientApi.post(
|
|
5132
5225
|
`/events/${eventId}/activations/${activationId}`,
|
|
5133
5226
|
{
|
|
@@ -5147,9 +5240,10 @@ var CreateEventLead = async ({
|
|
|
5147
5240
|
eventId,
|
|
5148
5241
|
purchaseId,
|
|
5149
5242
|
note,
|
|
5150
|
-
|
|
5243
|
+
clientApiParams,
|
|
5151
5244
|
queryClient
|
|
5152
5245
|
}) => {
|
|
5246
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5153
5247
|
const { data } = await clientApi.post(
|
|
5154
5248
|
`/events/${eventId}/leads/${purchaseId}`,
|
|
5155
5249
|
{
|
|
@@ -5168,9 +5262,10 @@ var useCreateEventLead = (params = {}, options = {}) => {
|
|
|
5168
5262
|
var AddSelfChatChannelMember = async ({
|
|
5169
5263
|
channelId,
|
|
5170
5264
|
accountId,
|
|
5171
|
-
|
|
5265
|
+
clientApiParams,
|
|
5172
5266
|
queryClient
|
|
5173
5267
|
}) => {
|
|
5268
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5174
5269
|
const { data } = await clientApi.post(
|
|
5175
5270
|
`/self/chat/channels/${channelId}/members/${accountId}`
|
|
5176
5271
|
);
|
|
@@ -5189,9 +5284,10 @@ var useAddSelfChatChannelMember = (params = {}, options = {}) => {
|
|
|
5189
5284
|
var CreateSelfChatChannel = async ({
|
|
5190
5285
|
name,
|
|
5191
5286
|
accountIds,
|
|
5192
|
-
|
|
5287
|
+
clientApiParams,
|
|
5193
5288
|
queryClient
|
|
5194
5289
|
}) => {
|
|
5290
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5195
5291
|
const { data } = await clientApi.post(
|
|
5196
5292
|
`/self/chat/channels`,
|
|
5197
5293
|
{
|
|
@@ -5215,8 +5311,9 @@ var CreateSelfChatChannelMessage = async ({
|
|
|
5215
5311
|
channelId,
|
|
5216
5312
|
text,
|
|
5217
5313
|
queryClient,
|
|
5218
|
-
|
|
5314
|
+
clientApiParams
|
|
5219
5315
|
}) => {
|
|
5316
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5220
5317
|
const { data } = await clientApi.post(`/self/chat/channels/${channelId}/messages`, {
|
|
5221
5318
|
text
|
|
5222
5319
|
});
|
|
@@ -5231,9 +5328,10 @@ var useCreateSelfChatChannelMessage = (params = {}, options = {}) => {
|
|
|
5231
5328
|
// src/mutations/self/chat/useDeleteSelfChatChannel.ts
|
|
5232
5329
|
var DeleteSelfChatChannel = async ({
|
|
5233
5330
|
channelId,
|
|
5234
|
-
|
|
5331
|
+
clientApiParams,
|
|
5235
5332
|
queryClient
|
|
5236
5333
|
}) => {
|
|
5334
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5237
5335
|
const { data } = await clientApi.delete(
|
|
5238
5336
|
`/self/chat/channels/${channelId}`
|
|
5239
5337
|
);
|
|
@@ -5253,9 +5351,10 @@ var useDeleteSelfChatChannel = (params = {}, options = {}) => {
|
|
|
5253
5351
|
var DeleteSelfChatChannelMessage = async ({
|
|
5254
5352
|
channelId,
|
|
5255
5353
|
messageId,
|
|
5256
|
-
|
|
5354
|
+
clientApiParams,
|
|
5257
5355
|
queryClient
|
|
5258
5356
|
}) => {
|
|
5357
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5259
5358
|
const { data } = await clientApi.delete(
|
|
5260
5359
|
`/self/chat/channels/${channelId}/messages/${messageId}`
|
|
5261
5360
|
);
|
|
@@ -5273,9 +5372,10 @@ var useDeleteSelfChatChannelMessage = (params = {}, options = {}) => {
|
|
|
5273
5372
|
// src/mutations/self/chat/useLeaveSelfChatChannel.ts
|
|
5274
5373
|
var LeaveSelfChatChannel = async ({
|
|
5275
5374
|
channelId,
|
|
5276
|
-
|
|
5375
|
+
clientApiParams,
|
|
5277
5376
|
queryClient
|
|
5278
5377
|
}) => {
|
|
5378
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5279
5379
|
const { data } = await clientApi.delete(
|
|
5280
5380
|
`/self/chat/channels/${channelId}/leave`
|
|
5281
5381
|
);
|
|
@@ -5295,10 +5395,11 @@ var useLeaveSelfChatChannel = (params = {}, options = {}) => {
|
|
|
5295
5395
|
var UpdateSelfChatChannelNotifications = async ({
|
|
5296
5396
|
channelId,
|
|
5297
5397
|
notifications,
|
|
5298
|
-
|
|
5398
|
+
clientApiParams,
|
|
5299
5399
|
queryClient,
|
|
5300
5400
|
locale = "en"
|
|
5301
5401
|
}) => {
|
|
5402
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5302
5403
|
const { data } = await clientApi.put(
|
|
5303
5404
|
`/self/chat/channels/${channelId}/notifications`,
|
|
5304
5405
|
{
|
|
@@ -5321,10 +5422,11 @@ var useUpdateSelfChatChannelNotifications = (params = {}, options = {}) => {
|
|
|
5321
5422
|
var RegisterCancelledEventRegistration = async ({
|
|
5322
5423
|
eventId,
|
|
5323
5424
|
registrationId,
|
|
5324
|
-
|
|
5425
|
+
clientApiParams,
|
|
5325
5426
|
queryClient,
|
|
5326
5427
|
locale = "en"
|
|
5327
5428
|
}) => {
|
|
5429
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5328
5430
|
const { data } = await clientApi.post(
|
|
5329
5431
|
`/self/events/${eventId}/registration/${registrationId}/cancelled/register`
|
|
5330
5432
|
);
|
|
@@ -5356,10 +5458,11 @@ var SelectSelfEventRegistrationCoupon = async ({
|
|
|
5356
5458
|
eventId,
|
|
5357
5459
|
registrationId,
|
|
5358
5460
|
couponId,
|
|
5359
|
-
|
|
5461
|
+
clientApiParams,
|
|
5360
5462
|
queryClient,
|
|
5361
5463
|
locale = "en"
|
|
5362
5464
|
}) => {
|
|
5465
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5363
5466
|
const { data } = await clientApi.post(
|
|
5364
5467
|
`/self/events/${eventId}/registration/${registrationId}/draft/coupon`,
|
|
5365
5468
|
{
|
|
@@ -5399,10 +5502,11 @@ var useSelectSelfEventRegistrationCoupon = (params = {}, options = {}) => {
|
|
|
5399
5502
|
var CaptureSelfEventRegistrationPayment = async ({
|
|
5400
5503
|
eventId,
|
|
5401
5504
|
registrationId,
|
|
5402
|
-
|
|
5505
|
+
clientApiParams,
|
|
5403
5506
|
queryClient,
|
|
5404
5507
|
locale = "en"
|
|
5405
5508
|
}) => {
|
|
5509
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5406
5510
|
const { data } = await clientApi.post(
|
|
5407
5511
|
`/self/events/${eventId}/registration/${registrationId}/draft/capture`
|
|
5408
5512
|
);
|
|
@@ -5422,10 +5526,11 @@ var CreateSelfEventRegistrationGuest = async ({
|
|
|
5422
5526
|
eventId,
|
|
5423
5527
|
registrationId,
|
|
5424
5528
|
guest,
|
|
5425
|
-
|
|
5529
|
+
clientApiParams,
|
|
5426
5530
|
queryClient,
|
|
5427
5531
|
locale = "en"
|
|
5428
5532
|
}) => {
|
|
5533
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5429
5534
|
const { data } = await clientApi.post(
|
|
5430
5535
|
`/self/events/${eventId}/registration/${registrationId}/draft/guests`,
|
|
5431
5536
|
guest
|
|
@@ -5446,10 +5551,11 @@ var DeleteSelfEventRegistrationGuest = async ({
|
|
|
5446
5551
|
eventId,
|
|
5447
5552
|
registrationId,
|
|
5448
5553
|
guestId,
|
|
5449
|
-
|
|
5554
|
+
clientApiParams,
|
|
5450
5555
|
queryClient,
|
|
5451
5556
|
locale = "en"
|
|
5452
5557
|
}) => {
|
|
5558
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5453
5559
|
const { data } = await clientApi.delete(
|
|
5454
5560
|
`/self/events/${eventId}/registration/${registrationId}/draft/guests/${guestId}`
|
|
5455
5561
|
);
|
|
@@ -5468,10 +5574,11 @@ var useDeleteSelfEventRegistrationGuest = (params = {}, options = {}) => {
|
|
|
5468
5574
|
var RemoveSelfEventRegistrationCoupon = async ({
|
|
5469
5575
|
eventId,
|
|
5470
5576
|
registrationId,
|
|
5471
|
-
|
|
5577
|
+
clientApiParams,
|
|
5472
5578
|
queryClient,
|
|
5473
5579
|
locale = "en"
|
|
5474
5580
|
}) => {
|
|
5581
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5475
5582
|
const { data } = await clientApi.delete(
|
|
5476
5583
|
`/self/events/${eventId}/registration/${registrationId}/draft/coupon`
|
|
5477
5584
|
);
|
|
@@ -5508,10 +5615,11 @@ var useRemoveSelfEventRegistrationCoupon = (params = {}, options = {}) => {
|
|
|
5508
5615
|
var RemoveSelfEventRegistrationTicket = async ({
|
|
5509
5616
|
eventId,
|
|
5510
5617
|
registrationId,
|
|
5511
|
-
|
|
5618
|
+
clientApiParams,
|
|
5512
5619
|
queryClient,
|
|
5513
5620
|
locale = "en"
|
|
5514
5621
|
}) => {
|
|
5622
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5515
5623
|
const { data } = await clientApi.delete(
|
|
5516
5624
|
`/self/events/${eventId}/registration/${registrationId}/draft/ticket`
|
|
5517
5625
|
);
|
|
@@ -5549,10 +5657,11 @@ var SelectSelfEventRegistrationTicket = async ({
|
|
|
5549
5657
|
eventId,
|
|
5550
5658
|
registrationId,
|
|
5551
5659
|
ticketId,
|
|
5552
|
-
|
|
5660
|
+
clientApiParams,
|
|
5553
5661
|
queryClient,
|
|
5554
5662
|
locale = "en"
|
|
5555
5663
|
}) => {
|
|
5664
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5556
5665
|
const { data } = await clientApi.post(
|
|
5557
5666
|
`/self/events/${eventId}/registration/${registrationId}/draft/ticket`,
|
|
5558
5667
|
{
|
|
@@ -5588,10 +5697,11 @@ var SubmitSelfEventRegistration = async ({
|
|
|
5588
5697
|
eventId,
|
|
5589
5698
|
registrationId,
|
|
5590
5699
|
payment,
|
|
5591
|
-
|
|
5700
|
+
clientApiParams,
|
|
5592
5701
|
queryClient,
|
|
5593
5702
|
locale = "en"
|
|
5594
5703
|
}) => {
|
|
5704
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5595
5705
|
const { data } = await clientApi.post(
|
|
5596
5706
|
`/self/events/${eventId}/registration/${registrationId}/draft/submit`,
|
|
5597
5707
|
payment
|
|
@@ -5613,10 +5723,11 @@ var UpdateSelfEventRegistrationGuest = async ({
|
|
|
5613
5723
|
registrationId,
|
|
5614
5724
|
guestId,
|
|
5615
5725
|
guest,
|
|
5616
|
-
|
|
5726
|
+
clientApiParams,
|
|
5617
5727
|
queryClient,
|
|
5618
5728
|
locale = "en"
|
|
5619
5729
|
}) => {
|
|
5730
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5620
5731
|
const { data } = await clientApi.put(
|
|
5621
5732
|
`/self/events/${eventId}/registration/${registrationId}/draft/guests/${guestId}`,
|
|
5622
5733
|
guest
|
|
@@ -5640,10 +5751,11 @@ var UpdateSelfEventRegistrationGuestResponseFile = async ({
|
|
|
5640
5751
|
guestId,
|
|
5641
5752
|
dataUrl,
|
|
5642
5753
|
name,
|
|
5643
|
-
|
|
5754
|
+
clientApiParams
|
|
5644
5755
|
}) => {
|
|
5645
5756
|
if (!guestId)
|
|
5646
5757
|
throw new Error("Guest ID is required");
|
|
5758
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5647
5759
|
const { data } = await clientApi.put(
|
|
5648
5760
|
`/self/events/${eventId}/registration/${registrationId}/draft/guests/${guestId}/responses/file`,
|
|
5649
5761
|
{
|
|
@@ -5664,8 +5776,9 @@ var UpdateSelfEventRegistrationGuestResponses = async ({
|
|
|
5664
5776
|
registrationId,
|
|
5665
5777
|
guestId,
|
|
5666
5778
|
responses,
|
|
5667
|
-
|
|
5779
|
+
clientApiParams
|
|
5668
5780
|
}) => {
|
|
5781
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5669
5782
|
const { data } = await clientApi.put(
|
|
5670
5783
|
`/self/events/${eventId}/registration/${registrationId}/draft/guests/${guestId}/responses`,
|
|
5671
5784
|
responses
|
|
@@ -5683,8 +5796,9 @@ var UpdateSelfEventRegistrationResponseFile = async ({
|
|
|
5683
5796
|
dataUrl,
|
|
5684
5797
|
name,
|
|
5685
5798
|
questionId,
|
|
5686
|
-
|
|
5799
|
+
clientApiParams
|
|
5687
5800
|
}) => {
|
|
5801
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5688
5802
|
const { data } = await clientApi.put(
|
|
5689
5803
|
`/self/events/${eventId}/registration/${registrationId}/draft/responses/file`,
|
|
5690
5804
|
{
|
|
@@ -5704,10 +5818,11 @@ var UpdateSelfEventRegistrationResponses = async ({
|
|
|
5704
5818
|
eventId,
|
|
5705
5819
|
registrationId,
|
|
5706
5820
|
responses,
|
|
5707
|
-
|
|
5821
|
+
clientApiParams,
|
|
5708
5822
|
queryClient,
|
|
5709
5823
|
locale = "en"
|
|
5710
5824
|
}) => {
|
|
5825
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5711
5826
|
const { data } = await clientApi.put(
|
|
5712
5827
|
`/self/events/${eventId}/registration/${registrationId}/draft/responses`,
|
|
5713
5828
|
responses
|
|
@@ -5727,10 +5842,11 @@ var useUpdateSelfEventRegistrationResponses = (params = {}, options = {}) => {
|
|
|
5727
5842
|
var CancelEventRegistration = async ({
|
|
5728
5843
|
eventId,
|
|
5729
5844
|
registrationId,
|
|
5730
|
-
|
|
5845
|
+
clientApiParams,
|
|
5731
5846
|
queryClient,
|
|
5732
5847
|
locale = "env"
|
|
5733
5848
|
}) => {
|
|
5849
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5734
5850
|
const { data } = await clientApi.delete(
|
|
5735
5851
|
`/self/events/${eventId}/registration/${registrationId}/registered/cancel`
|
|
5736
5852
|
);
|
|
@@ -5762,9 +5878,10 @@ var CancelTransfer = async ({
|
|
|
5762
5878
|
transferId,
|
|
5763
5879
|
eventId,
|
|
5764
5880
|
registrationId,
|
|
5765
|
-
|
|
5881
|
+
clientApiParams,
|
|
5766
5882
|
queryClient
|
|
5767
5883
|
}) => {
|
|
5884
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5768
5885
|
const { data } = await clientApi.delete(
|
|
5769
5886
|
`/self/events/${eventId}/registration/${registrationId}/transfer/${transferId}`
|
|
5770
5887
|
);
|
|
@@ -5785,9 +5902,10 @@ var TransferPurchase = async ({
|
|
|
5785
5902
|
purchaseId,
|
|
5786
5903
|
eventId,
|
|
5787
5904
|
registrationId,
|
|
5788
|
-
|
|
5905
|
+
clientApiParams,
|
|
5789
5906
|
queryClient
|
|
5790
5907
|
}) => {
|
|
5908
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5791
5909
|
const { data } = await clientApi.post(
|
|
5792
5910
|
`/self/events/${eventId}/registration/${registrationId}/transfer`,
|
|
5793
5911
|
{
|
|
@@ -5812,10 +5930,11 @@ var UpdateSelfEventRegistrationResponse = async ({
|
|
|
5812
5930
|
registrationId,
|
|
5813
5931
|
questionId,
|
|
5814
5932
|
response,
|
|
5815
|
-
|
|
5933
|
+
clientApiParams,
|
|
5816
5934
|
queryClient,
|
|
5817
5935
|
locale = "en"
|
|
5818
5936
|
}) => {
|
|
5937
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5819
5938
|
const { data } = await clientApi.put(
|
|
5820
5939
|
`/self/events/${eventId}/registration/${registrationId}/registered/response`,
|
|
5821
5940
|
{
|
|
@@ -5845,10 +5964,11 @@ var UpdateSelfEventRegistrationGuestResponse = async ({
|
|
|
5845
5964
|
questionId,
|
|
5846
5965
|
guestId,
|
|
5847
5966
|
response,
|
|
5848
|
-
|
|
5967
|
+
clientApiParams,
|
|
5849
5968
|
queryClient,
|
|
5850
5969
|
locale = "en"
|
|
5851
5970
|
}) => {
|
|
5971
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5852
5972
|
const { data } = await clientApi.put(
|
|
5853
5973
|
`/self/events/${eventId}/registration/${registrationId}/registered/guests/${guestId}/response`,
|
|
5854
5974
|
{
|
|
@@ -5874,9 +5994,10 @@ var useUpdateSelfEventRegistrationGuestResponse = (params = {}, options = {}) =>
|
|
|
5874
5994
|
// src/mutations/self/subscriptions/useCancelSubscription.ts
|
|
5875
5995
|
var CancelSubscription = async ({
|
|
5876
5996
|
subscriptionId,
|
|
5877
|
-
|
|
5997
|
+
clientApiParams,
|
|
5878
5998
|
queryClient
|
|
5879
5999
|
}) => {
|
|
6000
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5880
6001
|
const { data } = await clientApi.delete(
|
|
5881
6002
|
`/self/subscriptions/${subscriptionId}`
|
|
5882
6003
|
);
|
|
@@ -5898,8 +6019,9 @@ var useCancelSubscription = (params = {}, options = {}) => {
|
|
|
5898
6019
|
var CreateSubscription = async ({
|
|
5899
6020
|
productId,
|
|
5900
6021
|
priceId,
|
|
5901
|
-
|
|
6022
|
+
clientApiParams
|
|
5902
6023
|
}) => {
|
|
6024
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5903
6025
|
const { data } = await clientApi.post("/self/subscriptions", {
|
|
5904
6026
|
productId,
|
|
5905
6027
|
priceId,
|
|
@@ -5915,9 +6037,10 @@ var useCreateSubscription = (params = {}, options = {}) => {
|
|
|
5915
6037
|
var UpdateSubscriptionPaymentMethod = async ({
|
|
5916
6038
|
subscriptionId,
|
|
5917
6039
|
paymentMethodId,
|
|
5918
|
-
|
|
6040
|
+
clientApiParams,
|
|
5919
6041
|
queryClient
|
|
5920
6042
|
}) => {
|
|
6043
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5921
6044
|
const { data } = await clientApi.put(
|
|
5922
6045
|
`/self/subscriptions/${subscriptionId}/payment-method`,
|
|
5923
6046
|
{
|
|
@@ -5938,9 +6061,10 @@ var useUpdateSubscriptionPaymentMethod = (params = {}, options = {}) => {
|
|
|
5938
6061
|
// src/mutations/self/useAcceptTransfer.ts
|
|
5939
6062
|
var AcceptTransfer = async ({
|
|
5940
6063
|
transferId,
|
|
5941
|
-
|
|
6064
|
+
clientApiParams,
|
|
5942
6065
|
queryClient
|
|
5943
6066
|
}) => {
|
|
6067
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5944
6068
|
const { data } = await clientApi.post(
|
|
5945
6069
|
`/self/transfers/${transferId}`
|
|
5946
6070
|
);
|
|
@@ -5956,9 +6080,10 @@ var useAcceptTransfer = (params = {}, options = {}) => {
|
|
|
5956
6080
|
// src/mutations/self/useAddSelfDelegate.ts
|
|
5957
6081
|
var AddSelfDelegate = async ({
|
|
5958
6082
|
email,
|
|
5959
|
-
|
|
6083
|
+
clientApiParams,
|
|
5960
6084
|
queryClient
|
|
5961
6085
|
}) => {
|
|
6086
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5962
6087
|
const { data } = await clientApi.post(
|
|
5963
6088
|
`/self/delegates`,
|
|
5964
6089
|
{
|
|
@@ -5978,10 +6103,11 @@ var useAddSelfDelegate = (params = {}, options = {}) => {
|
|
|
5978
6103
|
var AddSelfEventListingSession = async ({
|
|
5979
6104
|
eventId,
|
|
5980
6105
|
session,
|
|
5981
|
-
|
|
6106
|
+
clientApiParams,
|
|
5982
6107
|
queryClient,
|
|
5983
6108
|
locale = "en"
|
|
5984
6109
|
}) => {
|
|
6110
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5985
6111
|
const { data } = await clientApi.post(
|
|
5986
6112
|
`/self/events/listings/${eventId}/sessions`,
|
|
5987
6113
|
{
|
|
@@ -6030,10 +6156,11 @@ var useAddSelfEventListingSession = (params = {}, options = {}) => {
|
|
|
6030
6156
|
var AddSelfEventListingSpeaker = async ({
|
|
6031
6157
|
eventId,
|
|
6032
6158
|
speaker,
|
|
6033
|
-
|
|
6159
|
+
clientApiParams,
|
|
6034
6160
|
queryClient,
|
|
6035
6161
|
locale = "en"
|
|
6036
6162
|
}) => {
|
|
6163
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6037
6164
|
const { data } = await clientApi.post(
|
|
6038
6165
|
`/self/events/listings/${eventId}/speakers`,
|
|
6039
6166
|
{
|
|
@@ -6082,7 +6209,7 @@ var useAddSelfEventListingSpeaker = (params = {}, options = {}) => {
|
|
|
6082
6209
|
var AddSelfEventListingSponsor = async ({
|
|
6083
6210
|
eventId,
|
|
6084
6211
|
sponsor,
|
|
6085
|
-
|
|
6212
|
+
clientApiParams,
|
|
6086
6213
|
queryClient,
|
|
6087
6214
|
locale = "en"
|
|
6088
6215
|
}) => {
|
|
@@ -6116,6 +6243,7 @@ var AddSelfEventListingSponsor = async ({
|
|
|
6116
6243
|
}
|
|
6117
6244
|
);
|
|
6118
6245
|
}
|
|
6246
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6119
6247
|
const { data } = await clientApi.post(
|
|
6120
6248
|
`/self/events/listings/${eventId}/sponsors`,
|
|
6121
6249
|
{
|
|
@@ -6132,9 +6260,10 @@ var useAddSelfEventListingSponsor = (params = {}, options = {}) => {
|
|
|
6132
6260
|
var AddSelfEventSession = async ({
|
|
6133
6261
|
eventId,
|
|
6134
6262
|
sessionId,
|
|
6135
|
-
|
|
6263
|
+
clientApiParams,
|
|
6136
6264
|
queryClient
|
|
6137
6265
|
}) => {
|
|
6266
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6138
6267
|
const { data } = await clientApi.post(
|
|
6139
6268
|
`/self/events/${eventId}/sessions/${sessionId}`
|
|
6140
6269
|
);
|
|
@@ -6157,10 +6286,11 @@ var CreateSelfEventListing = async ({
|
|
|
6157
6286
|
sponsorIds,
|
|
6158
6287
|
speakers,
|
|
6159
6288
|
sessions,
|
|
6160
|
-
|
|
6289
|
+
clientApiParams,
|
|
6161
6290
|
queryClient,
|
|
6162
6291
|
locale = "en"
|
|
6163
6292
|
}) => {
|
|
6293
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6164
6294
|
let data;
|
|
6165
6295
|
if (communityId) {
|
|
6166
6296
|
data = (await clientApi.post(
|
|
@@ -6208,9 +6338,10 @@ var useCreateSelfEventListing = (params = {}, options = {}) => {
|
|
|
6208
6338
|
|
|
6209
6339
|
// src/mutations/self/useDeleteSelf.ts
|
|
6210
6340
|
var DeleteSelf = async ({
|
|
6211
|
-
|
|
6341
|
+
clientApiParams,
|
|
6212
6342
|
queryClient
|
|
6213
6343
|
}) => {
|
|
6344
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6214
6345
|
const { data } = await clientApi.delete(`/self`);
|
|
6215
6346
|
if (queryClient && data.status === "ok") {
|
|
6216
6347
|
queryClient.clear();
|
|
@@ -6224,9 +6355,10 @@ var useDeleteSelf = (params = {}, options = {}) => {
|
|
|
6224
6355
|
// src/mutations/self/useDeleteSelfPushDevice.ts
|
|
6225
6356
|
var DeleteSelfPushDevice = async ({
|
|
6226
6357
|
pushDeviceId,
|
|
6227
|
-
|
|
6358
|
+
clientApiParams,
|
|
6228
6359
|
queryClient
|
|
6229
6360
|
}) => {
|
|
6361
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6230
6362
|
const { data } = await clientApi.delete(
|
|
6231
6363
|
`/self/push-devices/${pushDeviceId}`
|
|
6232
6364
|
);
|
|
@@ -6244,9 +6376,10 @@ var useDeleteSelfPushDevice = (params = {}, options = {}) => {
|
|
|
6244
6376
|
// src/mutations/self/useRejectTransfer.ts
|
|
6245
6377
|
var RejectTransfer = async ({
|
|
6246
6378
|
transferId,
|
|
6247
|
-
|
|
6379
|
+
clientApiParams,
|
|
6248
6380
|
queryClient
|
|
6249
6381
|
}) => {
|
|
6382
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6250
6383
|
const { data } = await clientApi.delete(
|
|
6251
6384
|
`/self/transfers/${transferId}`
|
|
6252
6385
|
);
|
|
@@ -6264,9 +6397,10 @@ var useRejectTransfer = (params = {}, options = {}) => {
|
|
|
6264
6397
|
// src/mutations/self/useRemoveSelfDelegate.ts
|
|
6265
6398
|
var RemoveSelfDelegate = async ({
|
|
6266
6399
|
accountId,
|
|
6267
|
-
|
|
6400
|
+
clientApiParams,
|
|
6268
6401
|
queryClient
|
|
6269
6402
|
}) => {
|
|
6403
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6270
6404
|
const { data } = await clientApi.delete(
|
|
6271
6405
|
`/self/delegates/${accountId}`
|
|
6272
6406
|
);
|
|
@@ -6283,7 +6417,7 @@ var useRemoveSelfDelegate = (params = {}, options = {}) => {
|
|
|
6283
6417
|
var RemoveSelfEventListingSession = async ({
|
|
6284
6418
|
eventId,
|
|
6285
6419
|
sessionId,
|
|
6286
|
-
|
|
6420
|
+
clientApiParams,
|
|
6287
6421
|
queryClient,
|
|
6288
6422
|
locale = "en"
|
|
6289
6423
|
}) => {
|
|
@@ -6317,6 +6451,7 @@ var RemoveSelfEventListingSession = async ({
|
|
|
6317
6451
|
}
|
|
6318
6452
|
);
|
|
6319
6453
|
}
|
|
6454
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6320
6455
|
const { data } = await clientApi.delete(
|
|
6321
6456
|
`/self/events/listings/${eventId}/sessions/${sessionId}`
|
|
6322
6457
|
);
|
|
@@ -6330,7 +6465,7 @@ var useRemoveSelfEventListingSession = (params = {}, options = {}) => {
|
|
|
6330
6465
|
var RemoveSelfEventListingSpeaker = async ({
|
|
6331
6466
|
eventId,
|
|
6332
6467
|
speakerId,
|
|
6333
|
-
|
|
6468
|
+
clientApiParams,
|
|
6334
6469
|
queryClient,
|
|
6335
6470
|
locale = "en"
|
|
6336
6471
|
}) => {
|
|
@@ -6364,6 +6499,7 @@ var RemoveSelfEventListingSpeaker = async ({
|
|
|
6364
6499
|
}
|
|
6365
6500
|
);
|
|
6366
6501
|
}
|
|
6502
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6367
6503
|
const { data } = await clientApi.delete(
|
|
6368
6504
|
`/self/events/listings/${eventId}/speakers/${speakerId}`
|
|
6369
6505
|
);
|
|
@@ -6377,7 +6513,7 @@ var useRemoveSelfEventListingSpeaker = (params = {}, options = {}) => {
|
|
|
6377
6513
|
var RemoveSelfEventListingSponsor = async ({
|
|
6378
6514
|
eventId,
|
|
6379
6515
|
sponsorId,
|
|
6380
|
-
|
|
6516
|
+
clientApiParams,
|
|
6381
6517
|
queryClient,
|
|
6382
6518
|
locale = "en"
|
|
6383
6519
|
}) => {
|
|
@@ -6411,6 +6547,7 @@ var RemoveSelfEventListingSponsor = async ({
|
|
|
6411
6547
|
}
|
|
6412
6548
|
);
|
|
6413
6549
|
}
|
|
6550
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6414
6551
|
const { data } = await clientApi.delete(
|
|
6415
6552
|
`/self/events/listings/${eventId}/sponsors/${sponsorId}`
|
|
6416
6553
|
);
|
|
@@ -6424,9 +6561,10 @@ var useRemoveSelfEventListingSponsor = (params = {}, options = {}) => {
|
|
|
6424
6561
|
var RemoveSelfEventSession = async ({
|
|
6425
6562
|
eventId,
|
|
6426
6563
|
sessionId,
|
|
6427
|
-
|
|
6564
|
+
clientApiParams,
|
|
6428
6565
|
queryClient
|
|
6429
6566
|
}) => {
|
|
6567
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6430
6568
|
const { data } = await clientApi.delete(
|
|
6431
6569
|
`/self/events/${eventId}/sessions/${sessionId}`
|
|
6432
6570
|
);
|
|
@@ -6445,9 +6583,10 @@ var useRemoveSelfEventSession = (params = {}, options = {}) => {
|
|
|
6445
6583
|
var SelfCheckinRegistration = async ({
|
|
6446
6584
|
accountId,
|
|
6447
6585
|
eventId,
|
|
6448
|
-
|
|
6586
|
+
clientApiParams,
|
|
6449
6587
|
queryClient
|
|
6450
6588
|
}) => {
|
|
6589
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6451
6590
|
const { data } = await clientApi.post(
|
|
6452
6591
|
`/self/events/listings/${eventId}/registrations/${accountId}`
|
|
6453
6592
|
);
|
|
@@ -6531,7 +6670,7 @@ var SelfCreateActivity = async ({
|
|
|
6531
6670
|
activity,
|
|
6532
6671
|
base64Image,
|
|
6533
6672
|
videoUri,
|
|
6534
|
-
|
|
6673
|
+
clientApiParams,
|
|
6535
6674
|
queryClient,
|
|
6536
6675
|
locale = "en"
|
|
6537
6676
|
}) => {
|
|
@@ -6549,6 +6688,7 @@ var SelfCreateActivity = async ({
|
|
|
6549
6688
|
);
|
|
6550
6689
|
}
|
|
6551
6690
|
}
|
|
6691
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6552
6692
|
const { data } = await clientApi.post(
|
|
6553
6693
|
`/self/activities`,
|
|
6554
6694
|
{
|
|
@@ -6609,9 +6749,10 @@ var useSelfCreateActivity = (params = {}, options = {}) => {
|
|
|
6609
6749
|
// src/mutations/self/useSelfDeleteActivity.ts
|
|
6610
6750
|
var DeleteActivity = async ({
|
|
6611
6751
|
activityId,
|
|
6612
|
-
|
|
6752
|
+
clientApiParams,
|
|
6613
6753
|
queryClient
|
|
6614
6754
|
}) => {
|
|
6755
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6615
6756
|
const { data } = await clientApi.delete(
|
|
6616
6757
|
`/self/activities/${activityId}`
|
|
6617
6758
|
);
|
|
@@ -6627,9 +6768,10 @@ var useDeleteActivity = (params = {}, options = {}) => {
|
|
|
6627
6768
|
// src/mutations/self/useSelfJoinCommunity.ts
|
|
6628
6769
|
var SelfJoinCommunity = async ({
|
|
6629
6770
|
communityId,
|
|
6630
|
-
|
|
6771
|
+
clientApiParams,
|
|
6631
6772
|
queryClient
|
|
6632
6773
|
}) => {
|
|
6774
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6633
6775
|
const { data } = await clientApi.post(`/self/communities/${communityId}`);
|
|
6634
6776
|
if (queryClient && data.status === "ok") {
|
|
6635
6777
|
queryClient.invalidateQueries({
|
|
@@ -6654,9 +6796,10 @@ var useSelfJoinCommunity = (params = {}, options = {}) => {
|
|
|
6654
6796
|
// src/mutations/self/useSelfLeaveCommunity.ts
|
|
6655
6797
|
var SelfLeaveCommunity = async ({
|
|
6656
6798
|
communityId,
|
|
6657
|
-
|
|
6799
|
+
clientApiParams,
|
|
6658
6800
|
queryClient
|
|
6659
6801
|
}) => {
|
|
6802
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6660
6803
|
const { data } = await clientApi.delete(
|
|
6661
6804
|
`/self/communities/${communityId}`
|
|
6662
6805
|
);
|
|
@@ -6684,7 +6827,7 @@ var useSelfLeaveCommunity = (params = {}, options = {}) => {
|
|
|
6684
6827
|
var SelfUpdateCommunityMembership = async ({
|
|
6685
6828
|
communityId,
|
|
6686
6829
|
membership,
|
|
6687
|
-
|
|
6830
|
+
clientApiParams,
|
|
6688
6831
|
queryClient,
|
|
6689
6832
|
locale = "en"
|
|
6690
6833
|
}) => {
|
|
@@ -6702,6 +6845,7 @@ var SelfUpdateCommunityMembership = async ({
|
|
|
6702
6845
|
}
|
|
6703
6846
|
);
|
|
6704
6847
|
}
|
|
6848
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6705
6849
|
const { data } = await clientApi.put(`/self/communities/${communityId}`, membership);
|
|
6706
6850
|
return data;
|
|
6707
6851
|
};
|
|
@@ -6711,10 +6855,11 @@ var useSelfUpdateCommunityMembership = (params = {}, options = {}) => {
|
|
|
6711
6855
|
|
|
6712
6856
|
// src/mutations/self/useUpdateSelf.ts
|
|
6713
6857
|
var UpdateSelf = async ({
|
|
6714
|
-
|
|
6858
|
+
clientApiParams,
|
|
6715
6859
|
queryClient,
|
|
6716
6860
|
...params
|
|
6717
6861
|
}) => {
|
|
6862
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6718
6863
|
const { data } = await clientApi.put(
|
|
6719
6864
|
`/self`,
|
|
6720
6865
|
params
|
|
@@ -6733,10 +6878,11 @@ var UpdateSelfEventListing = async ({
|
|
|
6733
6878
|
eventId,
|
|
6734
6879
|
event,
|
|
6735
6880
|
base64,
|
|
6736
|
-
|
|
6881
|
+
clientApiParams,
|
|
6737
6882
|
queryClient,
|
|
6738
6883
|
locale = "en"
|
|
6739
6884
|
}) => {
|
|
6885
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6740
6886
|
const { data } = await clientApi.put(
|
|
6741
6887
|
`/self/events/listings/${eventId}`,
|
|
6742
6888
|
{
|
|
@@ -6769,10 +6915,11 @@ var UpdateSelfEventListingSession = async ({
|
|
|
6769
6915
|
eventId,
|
|
6770
6916
|
session,
|
|
6771
6917
|
sessionId,
|
|
6772
|
-
|
|
6918
|
+
clientApiParams,
|
|
6773
6919
|
queryClient,
|
|
6774
6920
|
locale = "en"
|
|
6775
6921
|
}) => {
|
|
6922
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6776
6923
|
const { data } = await clientApi.put(
|
|
6777
6924
|
`/self/events/listings/${eventId}/sessions/${sessionId}`,
|
|
6778
6925
|
{
|
|
@@ -6821,10 +6968,11 @@ var UpdateSelfEventListingSpeaker = async ({
|
|
|
6821
6968
|
speaker,
|
|
6822
6969
|
speakerId,
|
|
6823
6970
|
buffer,
|
|
6824
|
-
|
|
6971
|
+
clientApiParams,
|
|
6825
6972
|
queryClient,
|
|
6826
6973
|
locale = "en"
|
|
6827
6974
|
}) => {
|
|
6975
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6828
6976
|
const { data } = await clientApi.put(
|
|
6829
6977
|
`/self/events/listings/${eventId}/speakers/${speakerId}`,
|
|
6830
6978
|
{
|
|
@@ -6871,9 +7019,10 @@ var useUpdateSelfEventListingSpeaker = (params = {}, options = {}) => {
|
|
|
6871
7019
|
// src/mutations/self/useUpdateSelfImage.ts
|
|
6872
7020
|
var UpdateSelfImage = async ({
|
|
6873
7021
|
base64,
|
|
6874
|
-
|
|
7022
|
+
clientApiParams,
|
|
6875
7023
|
queryClient
|
|
6876
7024
|
}) => {
|
|
7025
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6877
7026
|
const { data } = await clientApi.put(
|
|
6878
7027
|
`/self/image`,
|
|
6879
7028
|
{
|
|
@@ -6893,8 +7042,9 @@ var useUpdateSelfImage = (params = {}, options = {}) => {
|
|
|
6893
7042
|
var UpdateSelfLead = async ({
|
|
6894
7043
|
leadId,
|
|
6895
7044
|
note,
|
|
6896
|
-
|
|
7045
|
+
clientApiParams
|
|
6897
7046
|
}) => {
|
|
7047
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6898
7048
|
const { data } = await clientApi.put(
|
|
6899
7049
|
`/self/leads/${leadId}`,
|
|
6900
7050
|
{
|
|
@@ -6909,7 +7059,7 @@ var useUpdateSelfLead = (params = {}, options = {}) => {
|
|
|
6909
7059
|
|
|
6910
7060
|
// src/mutations/self/useUpdateSelfNotificationPreferences.ts
|
|
6911
7061
|
var UpdateSelfNotificationPreferences = async ({
|
|
6912
|
-
|
|
7062
|
+
clientApiParams,
|
|
6913
7063
|
queryClient,
|
|
6914
7064
|
locale = "en",
|
|
6915
7065
|
...params
|
|
@@ -6927,6 +7077,7 @@ var UpdateSelfNotificationPreferences = async ({
|
|
|
6927
7077
|
}
|
|
6928
7078
|
);
|
|
6929
7079
|
}
|
|
7080
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6930
7081
|
const { data } = await clientApi.put(`/self/notificationPreferences`, params);
|
|
6931
7082
|
return data;
|
|
6932
7083
|
};
|
|
@@ -6938,9 +7089,10 @@ var useUpdateSelfNotificationPreferences = (params = {}, options = {}) => {
|
|
|
6938
7089
|
var UpdateSelfPushDevice = async ({
|
|
6939
7090
|
pushDeviceId,
|
|
6940
7091
|
pushDevice,
|
|
6941
|
-
|
|
7092
|
+
clientApiParams,
|
|
6942
7093
|
queryClient
|
|
6943
7094
|
}) => {
|
|
7095
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6944
7096
|
const { data } = await clientApi.put(
|
|
6945
7097
|
`/self/push-devices/${pushDeviceId}`,
|
|
6946
7098
|
{
|
|
@@ -6968,8 +7120,9 @@ var CreateSupportTicket = async ({
|
|
|
6968
7120
|
request,
|
|
6969
7121
|
eventId,
|
|
6970
7122
|
productId,
|
|
6971
|
-
|
|
7123
|
+
clientApiParams
|
|
6972
7124
|
}) => {
|
|
7125
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6973
7126
|
const { data } = await clientApi.post(
|
|
6974
7127
|
"/supportTickets",
|
|
6975
7128
|
{
|
|
@@ -6990,8 +7143,9 @@ var useCreateSupportTicket = (params = {}, options = {}) => {
|
|
|
6990
7143
|
var CreateTeamAccount = async ({
|
|
6991
7144
|
name,
|
|
6992
7145
|
email,
|
|
6993
|
-
|
|
7146
|
+
clientApiParams
|
|
6994
7147
|
}) => {
|
|
7148
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6995
7149
|
const { data } = await clientApi.post(
|
|
6996
7150
|
`/self/team`,
|
|
6997
7151
|
{
|
|
@@ -7104,6 +7258,7 @@ var useCreateTeamAccount = (params = {}, options = {}) => {
|
|
|
7104
7258
|
GetActivityComments,
|
|
7105
7259
|
GetAdvertisement,
|
|
7106
7260
|
GetBenefits,
|
|
7261
|
+
GetClientAPI,
|
|
7107
7262
|
GetCommunities,
|
|
7108
7263
|
GetCommunity,
|
|
7109
7264
|
GetCommunityActivities,
|
|
@@ -7339,7 +7494,6 @@ var useCreateTeamAccount = (params = {}, options = {}) => {
|
|
|
7339
7494
|
UpdateSelfNotificationPreferences,
|
|
7340
7495
|
UpdateSelfPushDevice,
|
|
7341
7496
|
UpdateSubscriptionPaymentMethod,
|
|
7342
|
-
getClientAPI,
|
|
7343
7497
|
isListing,
|
|
7344
7498
|
isManagedCoupon,
|
|
7345
7499
|
isSelf,
|
|
@@ -7389,7 +7543,6 @@ var useCreateTeamAccount = (params = {}, options = {}) => {
|
|
|
7389
7543
|
useCancelSubscription,
|
|
7390
7544
|
useCancelTransfer,
|
|
7391
7545
|
useCaptureSelfEventRegistrationPayment,
|
|
7392
|
-
useClientAPI,
|
|
7393
7546
|
useCompleteEventActivation,
|
|
7394
7547
|
useConnectedXM,
|
|
7395
7548
|
useCreateCommunityAnnouncement,
|